/* WARP Scripts — store UI (Eleven-style: near-black, condensed type, rounded media). EN + AR (RTL). */
:root {
  --bg: #0f0f10;
  --bg-2: #0b0b0c;
  --panel: #141416;
  --panel-2: #1a1a1d;
  --line: #232326;
  --line-2: #2e2e33;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #6b6b73;
  --blue: #1f8bff;
  --blue-2: #5aa9ff;
  --accent: #1f8bff;
  --ok: #34c37a;
  --warn: #f0a93b;
  --bad: #ef4c55;
  --r: 6px;
  --r-lg: 16px;
  --font: 'Saira Semi Condensed', 'Segoe UI', system-ui, sans-serif;
  --font-d: 'Saira Semi Condensed', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1216px;
}
html[dir="rtl"] { --font: 'Tajawal', 'Segoe UI', sans-serif; --font-d: 'Tajawal', 'Segoe UI', sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); }
.accent { color: var(--blue-2); }
.dim { color: #7c7c84; }
.hidden { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 600; margin: 0; line-height: 1.08; letter-spacing: -.012em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; font-weight: 800; line-height: 1.3; }
.px { image-rendering: pixelated; shape-rendering: crispEdges; display: block; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(12, 12, 13, .92); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; justify-self: start; }
.brand img { height: 26px; width: auto; }
.brand b { font: 700 17px/1 var(--font-d); letter-spacing: .14em; }
.brand small { display: block; font: 600 9px/1 var(--font); letter-spacing: .32em; color: var(--dim); margin-top: 3px; }
html[dir="rtl"] .brand b, html[dir="rtl"] .brand small { font-family: 'Saira Semi Condensed', sans-serif; }
.nav { display: flex; gap: 4px; }
.nav a { font: 700 13px/1 var(--font-d); letter-spacing: .02em; text-transform: uppercase; color: #e4e4e7; padding: 9px 11px; border-radius: var(--r); transition: background .2s; }
.nav a:hover { background: #18181a; }
.nav a.on { background: #1f1f22; color: #fff; }
.hdr-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.icon-btn { position: relative; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: #d4d4d8; border-radius: var(--r); }
.icon-btn:hover { color: #fff; background: #18181a; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .count { position: absolute; top: 2px; inset-inline-end: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--blue); color: #fff; font: 700 10px/16px var(--font); text-align: center; }
.drop { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; padding: 7px 9px; background: none; border: 0; border-radius: var(--r); cursor: pointer; font: 700 13px/1 var(--font-d); text-transform: uppercase; color: #e4e4e7; }
.lang-btn:hover { background: #18181a; }
.flag { width: 18px; height: 18px; border-radius: 50%; overflow: hidden; flex: none; display: block; }
.chev { width: 14px; height: 14px; opacity: .8; }
.menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 180px; background: #141416; border: 1px solid var(--line-2); padding: 5px; display: none; border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); z-index: 5; }
.menu.open { display: block; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; font: 600 13.5px var(--font); background: none; border: 0; cursor: pointer; text-align: start; color: #d4d4d8; border-radius: 6px; }
.menu a:hover, .menu button:hover { background: #1f1f22; color: #fff; }
.menu .tick { margin-inline-start: auto; width: 15px; height: 15px; }
.user-chip { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px 4px 4px; background: #18181a; border: 1px solid var(--line); border-radius: 999px; }
.user-chip img { width: 28px; height: 28px; border-radius: 50%; }
.user-chip span { font-weight: 600; font-size: 13.5px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.burger { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 14px; min-height: 38px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer;
  font: 700 13px/1 var(--font-d); letter-spacing: .03em; text-transform: uppercase; color: #fff;
  background: #161618; transition: background .2s, border-color .2s, transform .15s, opacity .2s; white-space: nowrap;
}
.btn:hover { background: #1f1f22; border-color: #3a3a40; }
.btn:active { transform: translateY(1px); }
.btn.solid { background: #fff; color: #0b0b0c; border-color: #fff; }
.btn.solid:hover { background: #e4e4e7; }
.btn.blue, .btn.discord { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.blue:hover, .btn.discord:hover { background: #3b99ff; border-color: #3b99ff; }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: rgba(239, 76, 85, .45); color: #ff9aa0; }
.btn.danger:hover { background: rgba(239, 76, 85, .1); }
.btn.sm { padding: 7px 10px; min-height: 32px; font-size: 12px; }
.btn.lg { padding: 12px 18px; min-height: 46px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
html[dir="rtl"] .btn { letter-spacing: 0; font-weight: 700; }
.arrow::after { content: '→'; margin-inline-start: 6px; display: inline-block; transition: transform .2s; }
html[dir="rtl"] .arrow::after { content: '←'; }
a:hover .arrow::after, .arrow:hover::after { transform: translateX(3px); }
html[dir="rtl"] a:hover .arrow::after { transform: translateX(-3px); }

/* ---------- Home hero ---------- */
.hero { text-align: center; padding: 64px 0 0; }
.hero .px { width: 84px; height: auto; margin: 0 auto 26px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .5)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.hero h1 { font-size: clamp(40px, 5.8vw, 76px); font-weight: 600; max-width: 1040px; margin: 0 auto; }
.hero p { color: var(--muted); font-size: 18px; max-width: 680px; margin: 24px auto 32px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-media { position: relative; margin-top: 64px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 2000 / 667; background: #071226; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s ease; }
.hero-media:hover img { transform: scale(1.03); }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 15, 16, .55), transparent 40%); pointer-events: none; }
.live { position: absolute; inset-inline-start: 20px; bottom: 18px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.live span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; background: rgba(10, 10, 11, .78); border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; font: 600 13px/1 var(--font); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Sections ---------- */
.section { padding: 120px 0 0; }
.sh { max-width: 620px; margin-bottom: 40px; }
.sh.center { margin-inline: auto; text-align: center; }
.sh .px { width: 72px; height: auto; margin-bottom: 26px; }
.sh.center .px { margin-inline: auto; }
.sh h2 { font-size: clamp(34px, 4.2vw, 54px); }
.sh p { color: var(--muted); font-size: 16.5px; margin: 20px 0 0; }
.sh .row-btns { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.sh.center .row-btns { justify-content: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 5 / 4; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.points { display: grid; gap: 26px; margin-top: 34px; }
.points h4 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.points p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 24px; }
.grid.four { grid-template-columns: repeat(4, 1fr); gap: 30px 24px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.two .vcard .card-media { aspect-ratio: 16 / 9; }
.card { position: relative; display: flex; flex-direction: column; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #121214; }
.card-media .clip { position: absolute; inset: 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-badge { position: absolute; inset-inline-start: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; font: 700 11.5px/1 var(--font-d); letter-spacing: .03em; text-transform: uppercase; background: rgba(10, 10, 11, .78); border: 1px solid rgba(255, 255, 255, .12); color: #fff; border-radius: 999px; }
.card-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.card-badge.soon::before { background: var(--warn); }
.card-badge.free::before { background: var(--ok); }
.card-price { position: absolute; inset-inline-end: 12px; bottom: 12px; z-index: 2; padding: 6px 11px; background: rgba(10, 10, 11, .82); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; font: 700 15px/1 var(--font-d); color: #fff; white-space: nowrap; }
.card-price small { font-weight: 500; font-size: 12px; color: #a1a1aa; margin-inline-end: 4px; }
.card-cat { display: block; font: 600 13px var(--font); color: var(--dim); margin: 18px 0 4px; }
.card h3 { font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.card h3 a:hover { color: var(--blue-2); }
.card p { color: var(--muted); font-size: 15px; margin: 0 0 18px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card .wish { position: absolute; inset-inline-end: 12px; top: 12px; z-index: 3; width: 32px; height: 32px; display: grid; place-items: center; background: rgba(10, 10, 11, .78); border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; cursor: pointer; color: #d4d4d8; }
.card .wish:hover { color: #fff; }
.card .wish.on { color: #ff5a87; }
.card .wish svg { width: 14px; height: 14px; }
.cover-gen { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 30% 20%, #17407a 0%, #0b1b33 45%, #0b0b0c 100%); }
.cover-gen b { font: 700 30px/1.05 var(--font-d); white-space: pre-line; position: relative; text-transform: uppercase; }
.cover-gen img { position: absolute; width: 42%; opacity: .08; }

/* ---------- Release notes grid ---------- */
.note .card-media { aspect-ratio: 16 / 10; border-radius: 12px; }
.note time { display: block; font: 500 13.5px var(--font); color: var(--dim); margin: 16px 0 4px; }
.note h4 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.note h4 a:hover { color: var(--blue-2); }

/* ---------- Video cards ---------- */
.vcard { cursor: pointer; }
.vcard .card-media { aspect-ratio: 4 / 3; }
.vpill { position: absolute; inset-inline-start: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; background: rgba(10, 10, 11, .78); border-radius: 999px; font: 700 11.5px/1 var(--font-d); text-transform: uppercase; }
.vpill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ef4c55; }
.play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #0b0b0c; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .2s; }
.play svg { width: 22px; height: 22px; margin-left: 3px; }
.vcard:hover .play { transform: scale(1.08); }
.vcard h3 { font-size: 21px; font-weight: 600; margin: 22px 0 10px; }
.vcard p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Testimonials ---------- */
.tests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.test { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; isolation: isolate; }
.test > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.test:hover > img { transform: scale(1.04); }
.test::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 10, 11, .96) 8%, rgba(10, 10, 11, .55) 40%, transparent 70%); }
.test .who { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; margin-bottom: 14px; }
.test .who img, .test .who .av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #1f3a63; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.test blockquote { margin: 0; font-size: 15.5px; line-height: 1.55; color: #f4f4f5; }
.test .stars { color: #ffc93c; font-size: 13px; letter-spacing: 2px; margin-bottom: 6px; }

/* ---------- Social squares ---------- */
.socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.social .box { display: grid; place-items: center; aspect-ratio: 16 / 10.4; border: 1px solid var(--line-2); border-radius: 14px; background: #0f0f10; transition: background .25s, border-color .25s; color: #e4e4e7; }
.social:hover .box { background: #141416; border-color: #3a3a40; }
.social .box svg { width: 56px; height: 56px; transition: transform .25s; }
.social:hover .box svg { transform: scale(1.08); }
.social span { display: block; margin-top: 14px; color: var(--muted); font-size: 15px; }

/* ---------- Page hero (full-bleed, fades into the page) ---------- */
.fhero { position: relative; min-height: 640px; display: flex; align-items: flex-end; padding-bottom: 110px; isolation: isolate; overflow: hidden; }
.fhero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.fhero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 15, 16, .15) 0%, rgba(15, 15, 16, .5) 55%, var(--bg) 100%), linear-gradient(90deg, rgba(15, 15, 16, .7), transparent 70%); }
html[dir="rtl"] .fhero::after { background: linear-gradient(180deg, rgba(15, 15, 16, .15) 0%, rgba(15, 15, 16, .5) 55%, var(--bg) 100%), linear-gradient(270deg, rgba(15, 15, 16, .7), transparent 70%); }
.fhero.short { min-height: 470px; padding-bottom: 70px; }
.fhero .wrap > * { max-width: 760px; }
.fhero .tagpill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; background: rgba(10, 10, 11, .8); border-radius: 999px; font: 700 12px/1 var(--font-d); text-transform: uppercase; margin-bottom: 18px; }
.fhero .tagpill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.fhero h1 { font-size: clamp(40px, 5.6vw, 72px); }
.fhero p { color: #c9c9cf; font-size: 17px; margin: 22px 0 28px; max-width: 620px; }
.fhero .cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fhero .badges { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }

/* ---------- Product hero (text + framed image over a blurred backdrop) ---------- */
.phero { position: relative; padding: 90px 0 30px; isolation: isolate; overflow: hidden; }
.phero-bg { position: absolute; inset: -60px; z-index: -2; background: center / cover no-repeat; filter: blur(60px) brightness(.4) saturate(1.3); }
.phero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 15, 16, .35), var(--bg) 96%); }
.phero h1 { font-size: clamp(38px, 4.8vw, 64px); }
.phero-sub { font: 600 15px var(--font); color: var(--blue-2); margin-top: 10px; }
.phero p { color: #c9c9cf; font-size: 17px; margin: 18px 0 26px; }
.phero .cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.phero .badges { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.phero .media { aspect-ratio: 16 / 11; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }

/* ---------- Store toolbar ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 36px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.tab { padding: 8px 12px; font: 700 13px/1 var(--font-d); text-transform: uppercase; cursor: pointer; color: #d4d4d8; background: transparent; border: 1px solid transparent; border-radius: var(--r); transition: .2s; }
.tab:hover { background: #18181a; }
.tab.on { background: #1f1f22; color: #fff; border-color: var(--line-2); }
.tab i { font-style: normal; color: var(--dim); margin-inline-start: 6px; }
.field { position: relative; }
.input, .select, textarea.input { width: 100%; padding: 10px 12px; background: #121214; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text); outline: none; transition: border-color .2s; font-size: 15px; }
.input:focus, .select:focus { border-color: var(--blue); }
.select { appearance: none; padding-inline-end: 32px; background-image: linear-gradient(45deg, transparent 50%, #8a8a92 50%), linear-gradient(135deg, #8a8a92 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
html[dir="rtl"] .select { background-position: 17px 50%, 12px 50%; }
.select option { background: #141416; }
.search { min-width: 240px; }
.search .input { padding-inline-start: 36px; }
.search svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--dim); }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty b { display: block; font: 600 22px var(--font-d); color: #fff; margin-bottom: 6px; }

/* ---------- Product page ---------- */
.price-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tier { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; border: 1px solid var(--line-2); background: rgba(16, 16, 18, .85); border-radius: 10px; transition: .2s; }
.tier:hover { border-color: #4a4a52; }
.tier.on { border-color: #fff; background: rgba(30, 30, 34, .9); }
.tier b { font: 600 14px var(--font); color: var(--muted); }
.tier.on b { color: #fff; }
.tier span { font: 700 19px var(--font-d); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font: 700 12px/1 var(--font-d); text-transform: uppercase; background: rgba(10, 10, 11, .8); border: 1px solid rgba(255, 255, 255, .1); color: #e4e4e7; border-radius: 999px; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gal button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 10; background: #121214; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal button:hover img { transform: scale(1.04); }
.feats { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.feats li { display: flex; gap: 12px; align-items: flex-start; color: #d4d4d8; font-size: 16px; }
.feats li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps4 > div { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: #121214; }
.steps4 b { display: block; font: 700 15px var(--font-d); color: var(--blue-2); margin-bottom: 30px; }
.steps4 h4 { font-size: 19px; margin-bottom: 6px; }
.steps4 p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Gallery lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(8, 8, 9, .96); display: none; }
.lightbox.open { display: block; }
.lb-stage { position: absolute; inset: 70px 0 130px; display: flex; align-items: center; justify-content: center; }
.lb-main { max-width: min(1180px, 74vw); max-height: 100%; border-radius: 10px; border: 1px solid var(--line-2); object-fit: contain; }
.lb-side { position: absolute; top: 50%; transform: translateY(-50%); height: 72%; width: 14vw; object-fit: cover; opacity: .35; border-radius: 10px; }
.lb-side.prev { inset-inline-start: 0; border-start-start-radius: 0; border-end-start-radius: 0; }
.lb-side.next { inset-inline-end: 0; border-start-end-radius: 0; border-end-end-radius: 0; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-nav svg { width: 30px; height: 30px; }
.lb-nav.prev { inset-inline-start: 14px; }
.lb-nav.next { inset-inline-end: 14px; }
html[dir="rtl"] .lb-nav svg { transform: scaleX(-1); }
.lb-close { position: absolute; top: 18px; inset-inline-end: 22px; z-index: 3; width: 40px; height: 40px; border: 0; background: none; color: #fff; cursor: pointer; font-size: 26px; }
.lb-thumbs { position: absolute; left: 50%; transform: translateX(-50%); bottom: 34px; display: flex; gap: 10px; max-width: min(1180px, 92vw); overflow-x: auto; padding-bottom: 6px; }
.lb-thumbs button { flex: none; width: 66px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .6; background: #141416; }
.lb-thumbs button.on { border-color: #fff; opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Drawer / modals ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .72); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; inset-inline-end: 0; bottom: 0; z-index: 90; width: min(430px, 100%); background: #111113; border-inline-start: 1px solid var(--line-2); transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: none !important; }
.drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-h h3 { font-size: 20px; }
.drawer-b { flex: 1; overflow: auto; padding: 16px 22px; display: grid; gap: 10px; align-content: start; }
.drawer-f { padding: 18px 22px; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.line { display: grid; grid-template-columns: 70px 1fr auto; gap: 13px; align-items: center; padding: 10px; background: #161618; border: 1px solid var(--line); border-radius: 12px; }
.line img, .line .ph { width: 70px; height: 50px; object-fit: cover; background: #10223c; border-radius: 8px; }
.line b { display: block; font: 600 16px var(--font-d); }
.line small { color: var(--muted); }
.line .x { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 16px; }
.line .x:hover { color: var(--bad); }
.sum { display: flex; justify-content: space-between; color: var(--muted); font-size: 15px; }
.sum.total { color: #fff; font: 700 22px var(--font-d); }
.coupon-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.modal { position: fixed; z-index: 100; left: 50%; top: 50%; width: min(540px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow: auto; transform: translate(-50%, -46%); opacity: 0; pointer-events: none; transition: .25s; background: #141416; border: 1px solid var(--line-2); border-radius: 16px; padding: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal.wide { width: min(1240px, calc(100% - 32px)); }
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal h3 { font-size: 22px; margin-bottom: 6px; padding-inline-end: 36px; }
.modal-close { position: absolute; inset-inline-end: 12px; top: 12px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; margin-top: 16px; border-radius: 10px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ok-ico { width: 60px; height: 60px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: rgba(52, 195, 122, .12); color: var(--ok); }
.ok-ico svg { width: 30px; height: 30px; }
.toasts { position: fixed; z-index: 130; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; }
.toast { padding: 11px 16px; background: #18181b; border: 1px solid var(--line-2); color: #fff; font-weight: 600; font-size: 14.5px; border-radius: 10px; animation: toastIn .25s; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.toast.err { border-color: rgba(239, 76, 85, .6); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font: 600 13.5px var(--font); color: var(--muted); }
.form label .input, .form label .select { color: var(--text); font-weight: 400; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex !important; align-items: center; gap: 9px !important; cursor: pointer; color: #d4d4d8 !important; }
.check input { width: 17px; height: 17px; accent-color: var(--blue); }

/* ---------- Login page (split) ---------- */
.login { display: grid; grid-template-columns: 1fr 1.15fr; height: calc(100vh - 66px); min-height: 560px; }
.login-l { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: min(390px, 100%); }
.login-card .app { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 26px; }
.login-card h2 { font-size: 32px; }
.login-card p { color: var(--muted); margin: 8px 0 26px; }
.login-card .check { margin-bottom: 16px; font-weight: 600; font-size: 15px; }
.login-card .check a { text-decoration: underline; }
.login-card .soc { display: flex; gap: 16px; margin-top: 34px; color: var(--muted); font-size: 14.5px; flex-wrap: wrap; }
.login-card .soc a { display: inline-flex; align-items: center; gap: 6px; }
.login-card .soc a:hover { color: #fff; }
.login-card .soc svg { width: 16px; height: 16px; }
.login-r { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px 16px 16px 0; height: 100%; min-height: 0; }
html[dir="rtl"] .login-r { padding: 16px 0 16px 16px; }
.login-r img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); min-height: 0; }

/* ---------- Orders ---------- */
.orders { display: grid; gap: 12px; }
.order { display: grid; grid-template-columns: auto 1fr auto auto; gap: 22px; align-items: center; padding: 18px 22px; background: #141416; border: 1px solid var(--line); border-radius: 14px; }
.order .num { font: 700 22px var(--font-d); color: var(--blue-2); }
.order .items { color: #e4e4e7; font-size: 15px; }
.order .items small { display: block; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; font: 700 11.5px var(--font-d); text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; }
.pill.pending { color: var(--warn); } .pill.paid { color: var(--blue-2); } .pill.delivered { color: var(--ok); } .pill.cancelled { color: var(--bad); } .pill.closed { color: #85858d; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- FAQ / text ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #121214; }
.faq summary { cursor: pointer; padding: 18px 20px; font: 600 18px var(--font-d); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 22px; line-height: .9; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.prose { max-width: 820px; color: #c9c9cf; white-space: pre-line; }
.prose b { color: #fff; }
.stars { color: #ffc93c; letter-spacing: 2px; }

/* ---------- Footer ---------- */
.ftr { position: relative; margin-top: 140px; border-top: 1px solid var(--line); isolation: isolate; overflow: hidden; }
.ftr::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url(../img/shot-1.webp) center 40% / cover; }
body.no-footer .ftr { display: none; }
.ftr::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 15, 16, .9), rgba(15, 15, 16, .8) 40%, rgba(15, 15, 16, .94)); }
.ftr .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 140px 0 60px; }
.ftr h5 { font: 700 15px var(--font-d); color: #fff; margin: 0 0 20px; }
.ftr a { display: flex; align-items: center; gap: 8px; color: #b4b4bb; font-size: 15px; padding: 5px 0; }
.ftr a:hover { color: #fff; }
.ftr a svg { width: 16px; height: 16px; }
.ftr p { color: #b4b4bb; font-size: 16px; max-width: 340px; }
.ftr .copy-line { margin-top: 50px; color: #c9c9cf; font-size: 15px; }
.ftr-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.ftr-bottom .wrap { display: flex; justify-content: flex-end; gap: 10px; padding: 22px 0 30px; color: #85858d; font-size: 13px; grid-template-columns: none; }
.ftr-bottom span + span::before { content: '·'; margin-inline-end: 10px; }

/* ---------- Admin ---------- */
.page-h.plain { padding: 50px 0 0; }
.page-h.plain h1 { font-size: clamp(32px, 4vw, 48px); }
.page-h.plain h1 span { color: var(--dim); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; background: #18181a; border-radius: 999px; font: 700 12px/1 var(--font-d); text-transform: uppercase; margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.admin { display: grid; grid-template-columns: 210px 1fr; gap: 22px; margin-top: 30px; align-items: start; }
.admin-nav { position: sticky; top: 90px; display: grid; gap: 2px; padding: 8px; background: #141416; border: 1px solid var(--line); border-radius: 14px; }
.admin-nav button { text-align: start; padding: 10px 12px; background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--muted); font: 700 13.5px var(--font-d); text-transform: uppercase; }
.admin-nav button:hover { color: #fff; background: #1a1a1d; }
.admin-nav button.on { color: #fff; background: #222226; }
.panel { padding: 24px; background: #141416; border: 1px solid var(--line); border-radius: 14px; }
.panel + .panel { margin-top: 16px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-h h3 { font-size: 20px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat { padding: 20px 22px; background: #141416; border: 1px solid var(--line); border-radius: 14px; }
.stat b { display: block; font: 700 28px/1.1 var(--font-d); }
.stat span { color: var(--muted); font-size: 13.5px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: start; font: 700 12px var(--font-d); color: var(--dim); text-transform: uppercase; padding: 10px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: rgba(255, 255, 255, .015); }
.table .thumb { width: 64px; height: 42px; object-fit: cover; background: #10223c; border-radius: 6px; }
.table-wrap { overflow-x: auto; }
.drag { cursor: grab; color: var(--dim); user-select: none; font-size: 17px; }
tr.dragging { opacity: .4; }
.imgs-edit { display: flex; flex-wrap: wrap; gap: 8px; }
.imgs-edit .im { position: relative; width: 120px; aspect-ratio: 16 / 10; background: #10223c; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.imgs-edit .im img { width: 100%; height: 100%; object-fit: cover; }
.imgs-edit .im button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, .75); color: #fff; cursor: pointer; }
.imgs-edit .im .first { position: absolute; left: 4px; bottom: 4px; font: 700 10px var(--font-d); background: var(--blue); padding: 3px 6px; border-radius: 4px; }
.imgs-edit label.add { width: 120px; aspect-ratio: 16 / 10; display: grid; place-items: center; border: 1px dashed var(--line-2); border-radius: 8px; cursor: pointer; color: var(--muted); }
.imgs-edit label.add:hover { border-color: var(--blue); color: #fff; }
.tiers-edit { display: grid; gap: 8px; }
.tiers-edit div { display: grid; grid-template-columns: 1fr 120px 40px; gap: 8px; }
.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: #d4d4d8; font-size: 15px; }
.steps li::before { content: counter(s); width: 30px; height: 30px; display: grid; place-items: center; background: #222226; border-radius: 50%; font: 700 13px var(--font-d); }
.steps code, .code { background: rgba(255, 255, 255, .06); padding: 2px 7px; font-size: 13px; word-break: break-all; border-radius: 4px; }
.copy { cursor: pointer; }
.copy:hover { color: var(--blue-2); }

/* ---------- Loader / reveal / palette ---------- */
.loader { display: grid; place-items: center; min-height: 60vh; }
.loader img { width: 64px; animation: pulse 1.4s infinite; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.page-enter { animation: pageIn .4s ease; }
@keyframes pageIn { from { opacity: 0; } }
.palette { position: fixed; z-index: 110; left: 50%; top: 14vh; transform: translateX(-50%); width: min(600px, calc(100% - 32px)); background: #141416; border: 1px solid var(--line-2); border-radius: 14px; display: none; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); overflow: hidden; }
.palette.open { display: block; }
.palette .input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 17px 18px; font-size: 16px; background: transparent; }
.palette .res { max-height: 50vh; overflow: auto; padding: 6px; }
.palette .res a { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; }
.palette .res a:hover, .palette .res a.on { background: #1f1f22; }
.palette .res img, .palette .res .ph { width: 56px; height: 36px; object-fit: cover; background: #10223c; border-radius: 6px; }
.salebar { background: var(--blue); color: #fff; text-align: center; font: 700 13px/1 var(--font-d); padding: 10px 16px; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid, .tests { grid-template-columns: repeat(2, 1fr); }
  .grid.four, .steps4, .kpis { grid-template-columns: repeat(2, 1fr); }
  .ftr .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .hdr .wrap { grid-template-columns: auto 1fr; }
  .nav { position: fixed; inset: 66px 0 auto; flex-direction: column; gap: 0; background: #0c0c0d; border-bottom: 1px solid var(--line); padding: 6px 16px 14px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .burger { display: grid; }
  .user-chip span { display: none; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.flip > :first-child { order: 0; }
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .login { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 66px); }
  .login-r { display: none; }
  .socials { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .lb-side { display: none; }
  .lb-main { max-width: 94vw; }
}
@media (max-width: 640px) {
  .grid, .grid.four, .grid.two, .tests, .steps4 { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 16px; }
  .hero-media { aspect-ratio: 4 / 3; margin-top: 44px; }
  .hero-media img { object-position: 30% center; }
  .section { padding-top: 90px; }
  .fhero { min-height: 560px; padding-bottom: 60px; }
  .fhero h1 { font-size: 38px; }
  .order { grid-template-columns: 1fr auto; }
  .form .row { grid-template-columns: 1fr; }
  .search { min-width: 0; width: 100%; }
  .brand small, .lang-btn .code { display: none; }
  .hdr-actions { gap: 2px; }
  #login-btn span { display: none; }
  #login-btn { padding: 8px 10px; }
  .ftr .wrap { grid-template-columns: 1fr; padding-top: 90px; }
  .ftr-bottom .wrap { justify-content: flex-start; }
  .socials .box svg { width: 34px; height: 34px; }
  .test { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
