/* ============ Rovix Store ============ */
:root {
  --bg: #0b0a12;
  --bg-2: #100e1a;
  --surface: #15121f;
  --surface-2: #1c1829;
  --surface-3: #251f36;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --text: #f4f2fb;
  --muted: #a39db8;
  --dim: #6e6886;
  --cyan: #38bdf8;
  --violet: #8b5cf6;
  --magenta: #c026d3;
  --grad: linear-gradient(100deg, #38bdf8 0%, #8b5cf6 55%, #c026d3 100%);
  --grad-soft: linear-gradient(100deg, rgba(56,189,248,.16), rgba(139,92,246,.16) 55%, rgba(192,38,211,.16));
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.6);
  --head: "Rajdhani", "Cairo", system-ui, sans-serif;
  --body: "Inter", "Cairo", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f4fa; --bg-2: #eeecf6; --surface: #ffffff; --surface-2: #f3f1f9; --surface-3: #e8e4f3;
  --line: rgba(20,10,50,.09); --line-2: rgba(20,10,50,.16);
  --text: #15121f; --muted: #5b5570; --dim: #8b85a0;
  --shadow: 0 20px 50px -25px rgba(40,20,90,.35);
  color-scheme: light;
}
html[dir="rtl"] { --head: "Cairo", "Rajdhani", system-ui, sans-serif; --body: "Cairo", "Inter", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--body);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh;
  background-image: radial-gradient(900px 500px at 85% -10%, rgba(139,92,246,.14), transparent 60%),
                    radial-gradient(700px 400px at -10% 10%, rgba(56,189,248,.08), transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.container { width: min(1280px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 28px; height: 28px; }
html[dir="rtl"] .flip { transform: scaleX(-1); }

/* ============ Header ============ */
.topbar { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.topbar .container { display: flex; gap: 22px; align-items: center; height: 34px; overflow: hidden; white-space: nowrap; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { width: 14px; height: 14px; color: var(--violet); }
.topbar .push { margin-inline-start: auto; }

.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: 22px; height: 74px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 54px; width: auto; border-radius: 6px; }
:root[data-theme="light"] .logo img { background: #0c0b14; padding: 2px 6px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-family: var(--head); font-weight: 600; font-size: 16.5px; letter-spacing: .02em; position: relative; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
.nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -16px; height: 2px; background: var(--grad); border-radius: 2px; }

.search { position: relative; flex: 1; max-width: 440px; margin-inline-start: auto; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px; height: 44px; transition: border-color .15s, box-shadow .15s; }
.search-box:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.18); }
.search-box .icon { color: var(--dim); }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; height: 100%; }
.search-box kbd { font-size: 11px; color: var(--dim); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: none; max-height: 70vh; overflow: auto; z-index: 60; }
.suggest.open { display: block; }
.suggest .s-head { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); padding: 8px 10px 4px; }
.s-item { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 10px; }
.s-item:hover, .s-item.sel { background: var(--surface-2); }
.s-item .thumb { width: 74px; height: 35px; border-radius: 6px; object-fit: cover; flex: none; background: var(--surface-3); }
.s-item .s-title { font-weight: 600; font-size: 14px; line-height: 1.25; }
.s-item .s-sub { font-size: 12px; color: var(--muted); }
.s-item mark { background: none; color: var(--cyan); }
.s-all { display: flex; justify-content: center; gap: 6px; align-items: center; font-size: 13px; color: var(--violet); padding: 10px; border-top: 1px solid var(--line); margin-top: 4px; font-weight: 600; }
.s-empty { padding: 14px 10px; color: var(--muted); font-size: 14px; }

.h-actions { display: flex; align-items: center; gap: 4px; }
.h-btn { height: 42px; min-width: 42px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); position: relative; font-size: 13.5px; }
.h-btn:hover { color: var(--text); background: var(--surface); }
.h-btn .badge { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; font-weight: 700; border-radius: 9px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.lang-btn { font-family: "Cairo", var(--body); font-weight: 600; }
html[dir="rtl"] .lang-btn { font-family: "Inter", sans-serif; }

.user-menu { position: relative; }
.user-pop { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; width: 250px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s; z-index: 70; }
.user-menu:hover .user-pop, .user-menu:focus-within .user-pop, .user-menu.open .user-pop { opacity: 1; visibility: visible; transform: none; }
.user-menu::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 10px; }
.user-pop p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.user-pop .btn { width: 100%; margin-top: 8px; }
.user-pop .u-link { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.user-pop .u-link:hover { background: var(--surface-2); color: var(--text); }
.user-pop .u-name { font-weight: 700; font-size: 15px; }
.user-pop .u-mail { font-size: 12.5px; color: var(--dim); margin-bottom: 8px; word-break: break-all; }
.menu-btn { display: none; }

.mobile-nav { display: none; }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 11px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; transition: transform .12s, filter .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 26px -10px rgba(139,92,246,.8); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--violet); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-outline:hover { border-color: var(--violet); background: var(--surface); }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.6); box-shadow: none; pointer-events: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.link { color: var(--violet); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }

/* ============ Common ============ */
main { min-height: 60vh; }
.page { padding: 40px 0 70px; }
.eyebrow { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.h1 { font-family: var(--head); font-size: clamp(34px, 5vw, 52px); font-weight: 700; line-height: 1.02; margin: 8px 0 0; letter-spacing: -.01em; }
.h1 .dot { color: var(--violet); }
.h2 { font-family: var(--head); font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin: 0; letter-spacing: -.005em; }
.sec { margin-top: 56px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 13.5px; font-weight: 500; }
.chip:hover { color: var(--text); border-color: var(--violet); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
/* Plan & duration picker: one row per tier, durations in ascending order (1 → 3 → 12 months). */
.dur-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.dur-chips .chip { height: auto; min-height: 48px; padding: 8px 10px; flex-direction: column; justify-content: center; gap: 2px; text-align: center; line-height: 1.25; white-space: normal; }
.dur-chips .chip b { font-size: 12px; font-weight: 600; opacity: .9; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); }
.stock-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.stock-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px rgba(248,113,113,.15); }
.stock-dot.in::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(52,211,153,.15); }
.muted { color: var(--muted); }
.notice { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-top: 26px; }
.notice .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); flex: none; box-shadow: 0 0 0 4px rgba(139,92,246,.2); }
.notice b { display: block; font-size: 14px; }
.notice span { font-size: 13px; color: var(--muted); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .icon { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--violet); }

/* ============ Hero ============ */
.hero { display: grid; grid-template-columns: 1fr 330px; gap: 18px; margin-top: 28px; }
.hero-main { position: relative; border-radius: 20px; overflow: hidden; min-height: 440px; background: var(--surface); border: 1px solid var(--line); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; }
.hero-slide.on { opacity: 1; z-index: 1; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,6,16,.92) 0%, rgba(8,6,16,.6) 45%, rgba(8,6,16,.05) 80%), linear-gradient(0deg, rgba(8,6,16,.8), transparent 45%); }
html[dir="rtl"] .hero-slide::after { background: linear-gradient(270deg, rgba(8,6,16,.92) 0%, rgba(8,6,16,.6) 45%, rgba(8,6,16,.05) 80%), linear-gradient(0deg, rgba(8,6,16,.8), transparent 45%); }
.hero-copy { position: absolute; z-index: 2; inset-inline-start: 44px; bottom: 44px; max-width: 470px; color: #fff; }
.hero-copy .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 8px; background: var(--grad); }
.hero-copy h1 { font-family: var(--head); font-size: clamp(34px, 4.6vw, 58px); line-height: .98; margin: 16px 0 12px; font-weight: 700; }
.hero-copy p { color: #d6d1e6; margin: 0 0 22px; font-size: 15px; }
.hero-copy .row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 3; inset-inline-end: 24px; bottom: 24px; display: flex; gap: 6px; }
.hero-dots button { width: 26px; height: 4px; border-radius: 2px; border: 0; background: rgba(255,255,255,.3); padding: 0; }
.hero-dots button.on { background: #fff; width: 40px; }
.hero-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 14px; }
.side-tile { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); padding: 20px; display: flex; flex-direction: column; justify-content: end; min-height: 130px; isolation: isolate; transition: border-color .15s, transform .15s; }
.side-tile:hover { border-color: var(--violet); transform: translateY(-2px); }
.side-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transition: transform .5s; }
.side-tile:hover img { transform: scale(1.05); }
.side-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,6,16,.95), rgba(8,6,16,.2)); }
.side-tile b { font-family: var(--head); font-size: 22px; line-height: 1.05; color: #fff; text-transform: uppercase; }
.side-tile span { font-size: 12.5px; color: #c9c3dc; }
.side-tile .arrow { position: absolute; top: 16px; inset-inline-end: 16px; width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.trust div { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.trust .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--grad-soft); display: grid; place-items: center; color: var(--violet); flex: none; }
.trust b { display: block; font-size: 14px; }
.trust span { font-size: 12.5px; color: var(--muted); }

/* ============ Game cards ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); border-color: rgba(139,92,246,.55); box-shadow: 0 18px 40px -20px rgba(139,92,246,.5); }
.card .media { position: relative; aspect-ratio: 460 / 215; background: var(--surface-3); overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .media img { transform: scale(1.04); }
.card .media .pills { position: absolute; bottom: 10px; inset-inline-start: 10px; display: flex; gap: 6px; }
.card .body { padding: 14px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.card .meta { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; display: flex; gap: 6px; flex-wrap: wrap; }
.card h3 { font-family: var(--head); font-size: 21px; font-weight: 700; margin: 4px 0 12px; line-height: 1.12; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.card .foot .go { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.card:hover .foot .go { color: var(--text); }
.ph-art { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 14px; font-family: var(--head); font-weight: 700; font-size: 26px; line-height: 1; color: #fff; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 4px 20px rgba(0,0,0,.4); }

.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .scroller { grid-auto-columns: calc((100% - 54px) / 4); } }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.arrows button:hover { color: var(--text); border-color: var(--violet); }

/* ============ Top-up cards ============ */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tcard { position: relative; border-radius: 16px; overflow: hidden; min-height: 150px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; border: 1px solid rgba(255,255,255,.08); isolation: isolate; transition: transform .18s; }
.tcard:hover { transform: translateY(-3px); }
.tcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.28), transparent 45%), repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); }
.tcard .t-cur { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.tcard b { font-family: var(--head); font-size: 28px; line-height: 1; text-transform: uppercase; }
.tcard .coin { position: absolute; inset-inline-end: 14px; top: 14px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); }
.tcard .t-go { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; margin-top: 10px; opacity: .9; }

/* ============ Catalog ============ */
.searchbar { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px 8px 8px 18px; margin-top: 30px; }
html[dir="rtl"] .searchbar { padding: 8px 18px 8px 8px; }
.searchbar:focus-within { border-color: var(--violet); }
.searchbar input { flex: 1; border: 0; outline: 0; background: none; height: 44px; font-size: 16px; min-width: 0; }
.searchbar .icon { color: var(--dim); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 20px 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.toolbar .right { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.select { height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 12px; }
.more-btn { display: flex; justify-content: center; margin-top: 28px; }

/* ============ Product page ============ */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.prod { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; margin-top: 20px; align-items: start; }
.prod-media { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); position: relative; aspect-ratio: 460 / 215; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.shots img { border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line); cursor: pointer; opacity: .75; }
.shots img:hover { opacity: 1; }
.prod-info .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tag-s { font-size: 12px; padding: 4px 10px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.prod-info h1 { font-family: var(--head); font-size: clamp(32px, 4vw, 46px); line-height: 1.02; margin: 0 0 10px; }
.prod-info .desc { color: var(--muted); margin: 0 0 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.facts span { display: block; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.facts b { font-size: 14px; font-weight: 600; }
.ed-title { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .1em; }
.editions { display: grid; gap: 10px; }
.edition { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; text-align: start; width: 100%; }
.edition:hover { border-color: rgba(139,92,246,.5); }
.edition.sel { border-color: var(--violet); background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border-color: transparent; }
.edition .plat { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); flex: none; }
.edition .plat svg { width: 22px; height: 22px; fill: currentColor; }
.edition .e-name { font-weight: 700; font-size: 15px; }
.edition .e-sub { font-size: 12.5px; color: var(--muted); }
.edition .e-price { margin-inline-start: auto; text-align: end; }
.edition .e-price b { font-family: var(--head); font-size: 22px; display: block; line-height: 1; }
.buy { display: grid; gap: 10px; margin-top: 18px; }
.buy-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 14px; }
.buy-note .icon { color: var(--violet); margin-top: 1px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.how .n { font-family: var(--head); font-size: 30px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.how b { display: block; margin: 8px 0 4px; }
.how p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* top-up page */
.pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pkg { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 12px; padding: 16px; text-align: start; transition: border-color .15s; }
.pkg:hover { border-color: rgba(139,92,246,.6); }
.pkg.sel { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border-color: transparent; }
.pkg b { display: block; font-family: var(--head); font-size: 21px; line-height: 1.1; }
.pkg span { font-size: 12.5px; color: var(--muted); }

/* ============ Modal ============ */
.modal-bg { position: fixed; inset: 0; background: rgba(5,3,12,.72); backdrop-filter: blur(6px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: min(480px, 100%); max-height: 92vh; overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); position: relative; animation: pop .18s; }
.modal h3 { font-family: var(--head); font-size: 26px; margin: 0 0 6px; }
.modal .x { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; }
.contact-opts { display: grid; gap: 10px; margin-top: 18px; }
.contact-opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 600; }
.contact-opt:hover { border-color: var(--violet); }
.contact-opt .ci { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.contact-opt .ci svg { width: 22px; height: 22px; fill: #fff; }
.contact-opt small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.ci.msg { background: linear-gradient(135deg, #00b2ff, #006aff 50%, #a033ff); }
.ci.ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
.ci.fb { background: #1877f2; }
.ci.wa { background: #25d366; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ============ Forms ============ */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input { height: 48px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); padding: 0 14px; outline: 0; width: 100%; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.15); }
textarea.input { height: auto; padding: 12px 14px; min-height: 110px; resize: vertical; }
.input.err { border-color: var(--bad); }
.f-err { font-size: 12.5px; color: var(--bad); }
.f-hint { font-size: 12px; color: var(--dim); }
.form-msg { font-size: 13.5px; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
.form-msg.bad { background: rgba(248,113,113,.1); color: var(--bad); border: 1px solid rgba(248,113,113,.3); }
.form-msg.ok { background: rgba(52,211,153,.1); color: var(--ok); border: 1px solid rgba(52,211,153,.3); }

.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); margin-top: 10px; }
.auth-art { position: relative; padding: 40px; display: flex; flex-direction: column; justify-content: end; color: #fff; isolation: isolate; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,6,16,.95), rgba(60,20,120,.35)); }
.auth-art h2 { font-family: var(--head); font-size: 40px; line-height: 1; margin: 0 0 10px; }
.auth-art p { margin: 0; color: #d6d1e6; }
.auth-form { padding: 40px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.tabs button { height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; }
.tabs button.on { background: var(--surface-3); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* ============ Checkout ============ */
.co { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-top: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-family: var(--head); font-size: 22px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.panel h3 .n { width: 28px; height: 28px; border-radius: 8px; background: var(--grad); color: #fff; font-size: 15px; display: grid; place-items: center; font-family: var(--body); }
.steps { display: flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 13px; color: var(--dim); flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 8px; }
.steps span.on { color: var(--text); font-weight: 600; }
.steps span.done { color: var(--ok); }
.steps i { width: 22px; height: 1px; background: var(--line-2); }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pm { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface-2); text-align: start; transition: border-color .15s; }
.pm:hover { border-color: rgba(139,92,246,.6); }
.pm.sel { background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box; border-color: transparent; }
.pm .logo-pm { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex: none; letter-spacing: -.02em; }
.pm b { display: block; font-size: 15px; }
.pm small { color: var(--muted); font-size: 12px; }
.lp-vf { background: #e60000; } .lp-ip { background: linear-gradient(135deg, #4b1c7a, #7b2cbf); } .lp-tl { background: #111; border: 1px solid #333; } .lp-fw { background: linear-gradient(135deg, #ffd400, #f7a600); color: #0a2f6b !important; }
.pay-box { margin-top: 18px; border-radius: 14px; background: var(--grad-soft); border: 1px solid rgba(139,92,246,.35); padding: 18px; }
.pay-box .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.pay-num { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 10px 10px 16px; }
.pay-num b { font-family: var(--head); font-size: 24px; letter-spacing: .04em; direction: ltr; }
.pay-steps { margin: 14px 0 0; padding-inline-start: 18px; color: var(--muted); font-size: 13.5px; }
.pay-steps li { margin: 4px 0; }
.sum-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sum-item img, .sum-item .sum-ph { width: 86px; height: 40px; border-radius: 7px; object-fit: cover; flex: none; background: var(--surface-3); }
.sum-item .t { font-weight: 600; font-size: 14px; line-height: 1.25; }
.sum-item .s { font-size: 12.5px; color: var(--muted); }
.sum-item .p { margin-inline-start: auto; font-weight: 700; white-space: nowrap; }
.sum-item .rm { border: 0; background: none; color: var(--dim); padding: 4px; }
.sum-item .rm:hover { color: var(--bad); }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--muted); }
.sum-row.total { color: var(--text); font-weight: 700; font-size: 17px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }

/* thank you */
.thanks { max-width: 680px; margin: 30px auto 0; text-align: center; }
.thanks-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 46px 34px; position: relative; overflow: hidden; }
.thanks-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.check { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 0 0 10px rgba(139,92,246,.15), 0 20px 50px -10px rgba(139,92,246,.7); color: #fff; }
.check .icon { width: 40px; height: 40px; stroke-width: 2.6; }
.thanks h1 { font-family: var(--head); font-size: clamp(34px, 5vw, 48px); margin: 0 0 8px; line-height: 1; }
.order-no { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 6px; padding: 10px 18px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); font-family: var(--head); font-size: 24px; font-weight: 700; letter-spacing: .06em; direction: ltr; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(251,191,36,.12); color: var(--warn); border: 1px solid rgba(251,191,36,.3); }
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
.status-badge.delivered { background: rgba(52,211,153,.12); color: var(--ok); border-color: rgba(52,211,153,.3); }
.status-badge.delivered::before, .status-badge.cancelled::before { animation: none; }
.status-badge.cancelled { background: rgba(248,113,113,.12); color: var(--bad); border-color: rgba(248,113,113,.3); }
@keyframes pulse { 50% { opacity: .3; } }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0; text-align: start; }
.timeline div { background: var(--surface-2); border-radius: 12px; padding: 14px; border: 1px solid var(--line); }
.timeline div.on { border-color: rgba(139,92,246,.5); }
.timeline b { display: block; font-size: 13.5px; margin-top: 6px; }
.timeline span { font-size: 12px; color: var(--muted); }
.timeline .icon { color: var(--violet); }

/* orders table */
.orders { display: grid; gap: 12px; }
.order-row { display: grid; grid-template-columns: 1.2fr 2fr 1fr 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 14px; }
.order-row .no { font-family: var(--head); font-weight: 700; font-size: 18px; direction: ltr; text-align: start; }
.order-row .sm { font-size: 12.5px; color: var(--muted); }
.admin-row { grid-template-columns: 1fr 2fr 1.6fr 1fr 170px; }

/* help */
.help-grid { display: grid; grid-template-columns: 280px 1fr; gap: 30px; margin-top: 30px; align-items: start; }
.help-nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.help-nav a { padding: 10px 14px; border-radius: 10px; color: var(--muted); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.help-nav a:hover { background: var(--surface); color: var(--text); }
.faq h2 { font-family: var(--head); font-size: 26px; margin: 34px 0 14px; display: flex; gap: 10px; align-items: center; }
.faq h2:first-child { margin-top: 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { padding: 16px 18px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--violet); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 16px; color: var(--muted); font-size: 14.5px; }
.faq details > div ul { margin: 6px 0; padding-inline-start: 20px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 26px; }

/* ============ Footer ============ */
.footer { margin-top: 80px; border-top: 1px solid var(--line); background: var(--bg-2); }
.help-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--grad-soft); border: 1px solid rgba(139,92,246,.3); border-radius: 18px; padding: 24px 28px; transform: translateY(-50%); }
.help-cta b { font-family: var(--head); font-size: 26px; display: block; line-height: 1.1; }
.help-cta span { color: var(--muted); font-size: 14px; }
.help-cta .row { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; padding: 10px 0 40px; }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin: 0 0 14px; }
.foot-grid a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.foot-grid a:hover { color: var(--text); }
.foot-grid p { color: var(--muted); font-size: 14px; margin: 12px 0 0; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 42px; height: 42px; border-radius: 11px; display: grid !important; place-items: center; padding: 0 !important; background: var(--surface); border: 1px solid var(--line-2); }
.socials a:hover { border-color: var(--violet); }
.socials svg { width: 19px; height: 19px; fill: var(--text); }
.pay-logos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pay-logos span { font-size: 11.5px; font-weight: 700; padding: 6px 10px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); }
.copy { border-top: 1px solid var(--line); padding: 18px 0; font-size: 13px; color: var(--dim); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); opacity: 0; transition: .25s; z-index: 200; display: flex; gap: 10px; align-items: center; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.toast .icon { color: var(--ok); }

.skel { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

/* ============ v2 additions ============ */
.icon.xs { width: 12px; height: 12px; }
.logo img { height: 50px; }
img.contain { object-fit: contain !important; }
.contain-bg { background: radial-gradient(circle at 50% 40%, var(--surface-3), var(--surface)) !important; }
.contain-bg img.contain { padding: 12%; }
.card .body .pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.card .body .pill { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); backdrop-filter: none; font-weight: 500; }
.card .body .pill svg { width: 12px; height: 12px; }
.card h3 { margin: 0 0 10px; }
.price { font-family: var(--head); font-weight: 700; font-size: 20px; color: #a5f3fc; font-style: normal; }
:root[data-theme="light"] .price { color: #6d28d9; }
.price small { font-family: var(--body); font-size: 12px; font-weight: 500; color: var(--muted); }
.deal-badge { position: absolute; top: 10px; inset-inline-start: 10px; background: linear-gradient(135deg, #f43f5e, #c026d3); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 9px; border-radius: 8px; }
.edition .e-price s { display: block; font-size: 12px; color: var(--dim); }
.pkg .price { display: block; font-size: 18px; margin-top: 2px; }
.thumb-w { position: relative; width: 74px; height: 35px; border-radius: 6px; overflow: hidden; flex: none; background: var(--surface-3); display: block; }
.thumb-w .thumb { width: 100%; height: 100%; }
.thumb.contain { padding: 3px; }
.h2 .icon { width: 24px; height: 24px; vertical-align: -3px; color: var(--violet); }

/* top-up cards with images */
.tcard { min-height: 170px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.tcard::before { z-index: -1; background: linear-gradient(0deg, rgba(6,4,14,.92) 0%, rgba(6,4,14,.35) 55%, rgba(6,4,14,.1) 100%); }
.tcard .tc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.tcard:hover .tc-bg { transform: scale(1.05); }
.tcard.is-contain .tc-bg { filter: blur(18px) saturate(1.4); transform: scale(1.3); opacity: .8; }
.tcard .tc-icon { position: absolute; top: 18px; inset-inline-end: 18px; width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.tcard b { display: block; }
.tcard .t-go { display: flex; }
.tcard .t-cur { display: inline-block; background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: 6px; align-self: flex-start; }

/* store filters */
.cat-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; }
.searchbar.sm { margin-top: 0; padding: 4px 4px 4px 14px; min-width: 280px; }
html[dir="rtl"] .searchbar.sm { padding: 4px 14px 4px 4px; }
.searchbar.sm input { height: 38px; font-size: 14.5px; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 24px 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.f-left { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dd { position: relative; }
.dd-btn { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.dd-btn:hover, .dd.open .dd-btn { border-color: var(--violet); }
.dd.has .dd-btn { background: var(--grad-soft); border-color: rgba(139,92,246,.6); }
.dd-menu { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 230px; max-height: 330px; overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 40; }
.dd.open .dd-menu { display: block; }
.dd-menu a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); }
.dd-menu a:hover { background: var(--surface-2); color: var(--text); }
.dd-menu a.on { color: var(--text); font-weight: 700; background: var(--surface-2); }
.dd-menu small { color: var(--dim); font-size: 12px; }
.filters .chip { border-radius: 999px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; }
.seg a { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.seg a:hover { color: var(--text); }
.seg a.on { background: var(--grad); color: #fff; font-weight: 600; }

/* account rules */
.rules { margin-top: 14px; border-radius: 14px; border: 1px solid rgba(251,191,36,.35); background: rgba(251,191,36,.06); padding: 14px 16px; font-size: 13.5px; }
.rules > b { display: flex; align-items: center; gap: 8px; color: var(--warn); margin-bottom: 6px; }
.rules-p span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; margin-top: 6px; }
.rules-p span svg { width: 15px; height: 15px; }
.rules ul { margin: 4px 0 0; padding-inline-start: 20px; color: var(--muted); }
.rules p { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; }
.pay-num + .pay-num { margin-top: 8px; }
.pay-instr { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; }

/* admin price editor */
.ap-list { display: grid; gap: 12px; }
.ap-row { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ap-head { display: flex; align-items: center; gap: 12px; }
.ap-head b { flex: 1; font-size: 15px; }
.ap-thumb { width: 86px; height: 40px; border-radius: 7px; overflow: hidden; background: var(--surface-3); flex: none; display: block; }
.ap-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ap-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; margin-top: 12px; }
.ap-opt { display: grid; grid-template-columns: 1fr 90px 90px auto; gap: 8px; align-items: end; background: var(--surface-2); border-radius: 10px; padding: 10px; }
.ap-opt .ap-l { align-self: center; font-size: 13px; font-weight: 600; }
.ap-opt label small { display: block; font-size: 11px; color: var(--dim); margin-bottom: 3px; }
.ap-opt .input { height: 36px; padding: 0 8px; border-radius: 8px; }
.ap-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; height: 36px; white-space: nowrap; }
@media (max-width: 720px) {
  .ap-opts { grid-template-columns: 1fr; }
  .ap-opt { grid-template-columns: 1fr 1fr; }
  .ap-opt .ap-l { grid-column: 1 / -1; }
  .seg { width: 100%; overflow-x: auto; }
  .searchbar.sm { min-width: 0; width: 100%; }
  .dd-menu { min-width: 200px; }
}

/* ============ v3: wallet & auth ============ */
.wallet-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 6px 0 12px; border-radius: 999px; border: 1px solid rgba(139,92,246,.45); background: var(--grad-soft); color: var(--text); font-size: 13.5px; font-weight: 700; white-space: nowrap; margin-inline-end: 4px; transition: border-color .15s, transform .15s; }
html[dir="rtl"] .wallet-btn { padding: 0 12px 0 6px; }
.wallet-btn:hover { border-color: var(--violet); transform: translateY(-1px); }
.wallet-btn > .icon { color: #a5f3fc; }
.wallet-btn .wb-plus { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; }
.u-bal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; background: var(--grad-soft); border: 1px solid rgba(139,92,246,.35); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; }
.u-bal span:first-child { font-size: 12px; color: var(--muted); width: 100%; }
.u-bal b { font-family: var(--head); font-size: 22px; }
.u-bal .link { font-size: 12.5px; }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 48px; }
.pw-eye { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.pw-eye:hover { color: var(--text); background: var(--surface-3); }
.pw-meter { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 6px; align-items: center; margin: -6px 0 14px; }
.pw-meter i { height: 4px; border-radius: 2px; background: var(--surface-3); transition: background .2s; }
.pw-meter span { font-size: 12px; color: var(--dim); min-width: 60px; text-align: end; }
.pw-meter[data-s="1"] i:nth-child(1) { background: var(--bad); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.pw-meter[data-s="3"] i { background: var(--ok); }
.pw-match { font-size: 12.5px; margin: -6px 0 14px; display: flex; align-items: center; gap: 6px; min-height: 0; }
.pw-match.ok { color: var(--ok); } .pw-match.bad { color: var(--bad); }
.remember { display: flex; align-items: center; gap: 12px; margin: 2px 0 18px; cursor: pointer; user-select: none; }
.remember input { position: absolute; opacity: 0; pointer-events: none; }
.remember .sw { width: 42px; height: 24px; border-radius: 12px; background: var(--surface-3); position: relative; flex: none; transition: background .2s; border: 1px solid var(--line-2); }
.remember .sw::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.remember input:checked + .sw { background: var(--grad); border-color: transparent; }
.remember input:checked + .sw::after { transform: translateX(18px); }
html[dir="rtl"] .remember input:checked + .sw::after { transform: translateX(-18px); }
.remember input:focus-visible + .sw { box-shadow: 0 0 0 3px rgba(139,92,246,.4); }
.remember b { display: block; font-size: 14px; }
.remember small { display: block; font-size: 12px; color: var(--muted); }

.wallet-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; margin-top: 22px; align-items: start; }
.bal-card { position: relative; overflow: hidden; border-radius: 20px; padding: 26px; color: #fff; background: linear-gradient(135deg, #0ea5e9 0%, #7c3aed 55%, #c026d3 100%); box-shadow: 0 24px 60px -24px rgba(139,92,246,.8); }
.bal-card::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.12); }
.bal-card > span { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .9; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.bal-card > b { display: block; font-family: var(--head); font-size: clamp(38px, 6vw, 54px); line-height: 1.1; margin: 10px 0 18px; }
.bal-actions { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.bal-card .btn-ghost { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.25); color: #fff; }
.how-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.how-top li { display: flex; gap: 12px; align-items: flex-start; }
.how-top .n { width: 28px; height: 28px; border-radius: 8px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.how-top b { font-size: 14.5px; } .how-top p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.tx-list { display: grid; gap: 4px; }
.tx { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }
.tx-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.tx-ic.in { background: rgba(52,211,153,.12); color: var(--ok); } .tx-ic.out { background: rgba(139,92,246,.14); color: var(--violet); }
.tx b { font-size: 14px; display: block; } .tx small { color: var(--dim); font-size: 12px; }
.tx-r { margin-inline-start: auto; text-align: end; }
.tx-r .pos { color: var(--ok); } .tx-r .neg { color: var(--text); }
.tx-s { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-top: 3px; }
.tx-s.pending { background: rgba(251,191,36,.14); color: var(--warn); } .tx-s.approved { background: rgba(52,211,153,.14); color: var(--ok); } .tx-s.rejected { background: rgba(248,113,113,.14); color: var(--bad); }
.amt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amt { height: 46px; border-radius: 11px; border: 1.5px solid var(--line-2); background: var(--surface-2); font-weight: 700; font-family: var(--head); font-size: 16px; }
.amt:hover { border-color: rgba(139,92,246,.6); }
.amt.sel { background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box; border-color: transparent; }
.pm-grid.sm .pm { padding: 10px 12px; } .pm-grid.sm .logo-pm { width: 36px; height: 36px; border-radius: 10px; font-size: 12px; }
.pm-wallet { width: 100%; margin-bottom: 12px; }
.pm-wallet.low { opacity: .85; cursor: default; }
.lp-wl { background: var(--grad); } .lp-wl .icon { width: 22px; height: 22px; }
.wallet-pay .wp-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); }
.wallet-pay .wp-row b { color: var(--text); }
.wallet-pay .wp-row.big { border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 12px; font-size: 16px; }
.wallet-pay .wp-row.big b { font-family: var(--head); font-size: 24px; }
@media (max-width: 860px) { .wallet-grid { grid-template-columns: 1fr; } .wallet-grid > form { order: -1; } }
@media (max-width: 720px) { .wallet-btn span#walletBal { max-width: 90px; overflow: hidden; text-overflow: ellipsis; } .amt-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ v4: top-up packages / Fortnite Crew ============ */
.pkg { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pkg .price { font-size: 20px; }
.pkg .stock-dot { font-size: 11.5px; margin-top: 2px; }
.pkg-crew { grid-column: 1 / -1; display: grid; grid-template-columns: 150px 1fr; column-gap: 14px; align-items: center; }
.pkg-crew .pkg-img { grid-row: 1 / span 4; width: 150px; aspect-ratio: 16/9; object-fit: cover; border-radius: 9px; }
.stock-tag { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.3); }
.tcard .t-stock { position: absolute; top: 18px; inset-inline-end: 18px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(52,211,153,.9); color: #052e1f; }
.tcard.is-contain .t-stock { top: 90px; }
.crew-card { margin-top: 14px; border-radius: 16px; padding: 18px 20px; background: linear-gradient(160deg, rgba(56,189,248,.12), rgba(139,92,246,.14) 60%, rgba(192,38,211,.12)); border: 1px solid rgba(139,92,246,.4); animation: pop .2s; }
.crew-card h3 { font-family: var(--head); font-size: 22px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.crew-card h3 .icon { color: #fbbf24; }
.crew-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.crew-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.crew-card li .icon { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--grad); color: #fff; stroke-width: 3; margin-top: 1px; }
.crew-why { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.crew-why b { display: flex; align-items: center; gap: 6px; color: #fb923c; font-size: 14px; }
.crew-why p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
@media (max-width: 720px) { .pkg-crew { grid-template-columns: 1fr; } .pkg-crew .pkg-img { grid-row: auto; width: 100%; } }

/* =====================================================================
   v5 — PREMIUM REDESIGN (preview)
   ===================================================================== */
:root {
  --bg: #07060d; --bg-2: #0b0915; --surface: rgba(22,18,36,.72); --surface-2: rgba(34,28,54,.6); --surface-3: #2a2342;
  --glass: rgba(20,16,34,.55); --glass-2: rgba(255,255,255,.04);
  --line: rgba(167,139,250,.12); --line-2: rgba(167,139,250,.22);
  --violet: #8b5cf6; --neon: #a855f7; --cyan: #22d3ee;
  --grad: linear-gradient(110deg, #22d3ee 0%, #6366f1 45%, #a855f7 100%);
  --glow: 0 0 0 1px rgba(168,85,247,.35), 0 18px 50px -18px rgba(139,92,246,.65);
  --radius: 18px;
}
:root[data-theme="light"] { --surface: #fff; --surface-2: #f3f1f9; --glass: rgba(255,255,255,.8); --glass-2: rgba(20,10,50,.03); --line: rgba(20,10,50,.08); --line-2: rgba(20,10,50,.16); }
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 90% -10%, rgba(168,85,247,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(34,211,238,.08), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(99,102,241,.10), transparent 60%);
}
.glass { background: var(--glass); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid var(--line); }
.header { background: rgba(7,6,13,.72); }
:root[data-theme="light"] .header { background: rgba(245,244,250,.8); }
.card, .panel, .trust div, .notice, .ap-row, .order-row, .faq details, .side-tile, .contact-opt, .edition, .pkg, .pm { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card { border-radius: var(--radius); background: linear-gradient(180deg, rgba(30,24,50,.75), rgba(16,13,28,.85)); }
:root[data-theme="light"] .card { background: #fff; }
.card:hover { box-shadow: var(--glow); border-color: rgba(168,85,247,.5); }
.btn-primary { background: var(--grad); background-size: 160% 100%; transition: background-position .4s, transform .12s, box-shadow .2s; box-shadow: 0 10px 30px -12px rgba(139,92,246,.9); }
.btn-primary:hover { background-position: 100% 0; filter: none; box-shadow: 0 14px 36px -10px rgba(139,92,246,1); }
.eyebrow-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
html[dir="rtl"] .eyebrow-pill { padding: 6px 6px 6px 12px; }
.eyebrow-pill b { background: var(--grad); color: #fff; padding: 3px 9px; border-radius: 999px; font-size: 11px; letter-spacing: .06em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- New hero ---------- */
.hx { position: relative; margin-top: 26px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); min-height: 520px; display: grid; grid-template-columns: 1.1fr 1fr; isolation: isolate; }
.hx-bg { position: absolute; inset: 0; z-index: -2; }
.hx-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(1.1); }
.hx::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,6,13,.96) 0%, rgba(7,6,13,.8) 45%, rgba(7,6,13,.35) 100%), radial-gradient(600px 300px at 80% 50%, rgba(168,85,247,.25), transparent 70%); }
html[dir="rtl"] .hx::before { background: linear-gradient(270deg, rgba(7,6,13,.96) 0%, rgba(7,6,13,.8) 45%, rgba(7,6,13,.35) 100%), radial-gradient(600px 300px at 20% 50%, rgba(168,85,247,.25), transparent 70%); }
.hx::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(167,139,250,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(167,139,250,.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 70% 50%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(circle at 70% 50%, #000 0%, transparent 70%); }
.hx-copy { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; color: #fff; }
.hx-copy h1 { font-family: var(--head); font-size: clamp(38px, 5.4vw, 66px); line-height: .98; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.hx-copy p { margin: 0; color: #c9c3dc; font-size: 16px; max-width: 470px; }
.hx-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hx-cta .btn { height: 52px; padding: 0 24px; font-size: 15px; }
.hx-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 14px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.hx-stats div b { display: block; font-family: var(--head); font-size: 26px; line-height: 1; }
.hx-stats div span { font-size: 12.5px; color: #a39db8; }
.hx-visual { position: relative; display: grid; place-items: center; padding: 30px; }
.hx-stack { position: relative; width: min(420px, 100%); aspect-ratio: 1 / 1; }
.hx-cardimg { position: absolute; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 70px -20px rgba(0,0,0,.8); background: #111; }
.hx-cardimg img { width: 100%; height: 100%; object-fit: cover; }
.hx-cardimg.c1 { width: 62%; aspect-ratio: 3/4; inset-inline-start: 4%; top: 10%; transform: rotate(-6deg); animation: floaty 7s ease-in-out infinite; }
.hx-cardimg.c2 { width: 62%; aspect-ratio: 3/4; inset-inline-end: 2%; top: 2%; transform: rotate(5deg); z-index: 2; animation: floaty 8s ease-in-out -2s infinite; }
.hx-cardimg.c3 { width: 70%; aspect-ratio: 16/9; inset-inline-start: 14%; bottom: 0; z-index: 3; animation: floaty 9s ease-in-out -4s infinite; }
.hx-chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; color: #fff; font-size: 13px; }
.hx-chip b { display: block; font-family: var(--head); font-size: 18px; }
.hx-chip small { color: #c9c3dc; }
.hx-chip .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; flex: none; }
.hx-chip.k1 { top: 6%; inset-inline-start: -6%; }
.hx-chip.k2 { bottom: 12%; inset-inline-end: -8%; }
.mascot { display: grid; place-items: center; }
.mascot img { max-width: 100%; height: auto; animation: floaty 6s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(139,92,246,.45)); }
.mascot.fallback svg { width: 70%; height: auto; filter: drop-shadow(0 10px 30px rgba(168,85,247,.6)); animation: floaty 6s ease-in-out infinite; }

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.cat { position: relative; overflow: hidden; border-radius: 20px; min-height: 150px; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line-2); isolation: isolate; color: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--glow); border-color: rgba(168,85,247,.55); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transition: transform .6s; }
.cat:hover img { transform: scale(1.06); }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,6,13,.95) 10%, rgba(7,6,13,.25)); }
.cat .ci-top { position: absolute; top: 16px; inset-inline-start: 16px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.cat .ci-top svg { width: 22px; height: 22px; }
.cat b { font-family: var(--head); font-size: 22px; line-height: 1.05; }
.cat span { font-size: 12.5px; color: #c9c3dc; }
.cat .go { position: absolute; top: 16px; inset-inline-end: 16px; opacity: .7; }

/* ---------- Promo banner ---------- */
.promo { position: relative; overflow: hidden; border-radius: 24px; display: grid; grid-template-columns: 1.2fr 1fr; min-height: 260px; border: 1px solid var(--line-2); isolation: isolate; }
.promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,6,24,.95) 0%, rgba(30,14,70,.75) 50%, rgba(10,6,24,.1) 100%); }
html[dir="rtl"] .promo::before { background: linear-gradient(270deg, rgba(10,6,24,.95) 0%, rgba(30,14,70,.75) 50%, rgba(10,6,24,.1) 100%); }
.promo-copy { padding: 34px 36px; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.promo-copy h2 { font-family: var(--head); font-size: clamp(28px, 3.6vw, 42px); line-height: 1; margin: 0; }
.promo-copy p { margin: 0; color: #d6d1e6; }
.promo-prices { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.promo-prices span { padding: 6px 11px; border-radius: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: 13px; }
.promo-prices b { font-family: var(--head); font-size: 16px; color: #a5f3fc; }

/* ---------- Reviews / trust ---------- */
.trustx { display: grid; grid-template-columns: 1fr 1.5fr; gap: 16px; }
.rv-card { border-radius: 22px; padding: 26px; background: linear-gradient(160deg, rgba(99,102,241,.22), rgba(168,85,247,.18)); border: 1px solid rgba(168,85,247,.4); display: flex; flex-direction: column; gap: 10px; }
.rv-card .big { font-family: var(--head); font-size: 64px; line-height: .9; }
.rv-card .stars { color: #fbbf24; display: flex; gap: 3px; }
.rv-card .stars svg { width: 20px; height: 20px; fill: currentColor; }
.tx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tx-grid > div { border-radius: 18px; padding: 18px; display: flex; gap: 12px; align-items: flex-start; }
.tx-grid .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-soft); color: var(--neon); display: grid; place-items: center; flex: none; }
.tx-grid b { display: block; font-size: 15px; } .tx-grid span { font-size: 13px; color: var(--muted); }

/* ---------- Product card v5 ---------- */
.card .media { aspect-ratio: 460 / 215; }
.card .media .tl { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 5px; z-index: 2; }
.card .media .tl span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 7px; background: rgba(7,6,13,.72); color: #fff; backdrop-filter: blur(6px); }
.card .media .tl svg { width: 12px; height: 12px; }
.card .media .oos { position: absolute; bottom: 10px; inset-inline-end: 10px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(7,6,13,.8); color: #fca5a5; border: 1px solid rgba(248,113,113,.35); }
.deal-badge { inset-inline-start: auto; inset-inline-end: 10px; }
.card .body { gap: 2px; }
.card .cat-line { font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.pr { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pr .now { font-family: var(--head); font-weight: 700; font-size: 22px; color: #e9d5ff; }
:root[data-theme="light"] .pr .now { color: #6d28d9; }
.pr .was { font-size: 13px; color: var(--dim); text-decoration: line-through; }
.pr .from { font-size: 12px; color: var(--muted); }
.pr .off { font-size: 11.5px; font-weight: 800; color: #fb7185; }

/* ---------- Auth v5 ---------- */
.auth-wrap { border-radius: 26px; }
.auth-art { justify-content: space-between; }
.auth-art .mascot { flex: 1; min-height: 180px; }
.auth-art .mascot img, .auth-art .mascot.fallback svg { max-height: 240px; }
.auth-perks { display: grid; gap: 8px; margin-top: 16px; }
.auth-perks div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #e5e1f2; }
.auth-perks .icon { color: #a5f3fc; }

/* ---------- Customer dashboard ---------- */
.dash { display: grid; grid-template-columns: 260px 1fr; gap: 22px; margin-top: 22px; align-items: start; }
.dash-nav { position: sticky; top: 96px; border-radius: 20px; padding: 14px; }
.dash-user { display: flex; gap: 12px; align-items: center; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.avatar { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 20px; flex: none; }
.dash-user b { display: block; font-size: 15px; } .dash-user small { color: var(--muted); font-size: 12px; word-break: break-all; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-size: 14px; font-weight: 500; }
.dash-nav a:hover { background: var(--glass-2); color: var(--text); }
.dash-nav a.on { background: var(--grad-soft); color: var(--text); border: 1px solid rgba(168,85,247,.35); }
.dash-nav a .cnt { margin-inline-start: auto; min-width: 20px; height: 20px; border-radius: 10px; background: var(--grad); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 6px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { border-radius: 18px; padding: 16px 18px; }
.kpi span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: 6px; }
.kpi b { display: block; font-family: var(--head); font-size: 30px; line-height: 1.1; margin-top: 6px; }
.kpi small { color: var(--dim); font-size: 12px; }
.notif { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif .ni { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--glass-2); }
.notif .ni.ok { color: var(--ok); background: rgba(52,211,153,.12); } .notif .ni.warn { color: var(--warn); background: rgba(251,191,36,.12); } .notif .ni.bad { color: var(--bad); background: rgba(248,113,113,.12); }
.notif b { display: block; font-size: 14px; } .notif small { color: var(--dim); font-size: 12px; }
.empty-m { text-align: center; padding: 40px 20px; }
.empty-m .mascot { width: 150px; margin: 0 auto 12px; }
.badge-soon { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(251,191,36,.15); color: var(--warn); margin-inline-start: 6px; }

/* ---------- Admin overview ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars div { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--grad); min-height: 3px; position: relative; opacity: .9; }
.bars div span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--dim); white-space: nowrap; }
.nav a { white-space: nowrap; padding: 8px 10px; }
@media (max-width: 1340px) { .nav a[data-nav="help"] { display: none; } .lang-btn .lbl { display: none; } }
@media (max-width: 720px) {
  .h-actions #langBtn, .h-actions #themeBtn { display: none; }
  .header .container { flex-wrap: wrap; }
  .h-actions { gap: 2px; }
  .wallet-btn { height: 36px; font-size: 12.5px; padding: 0 4px 0 10px; }
  .mobile-nav .sheet .mn-row { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
  .mobile-nav .sheet .mn-row button { flex: 1; }
}
/* Side menu (☰) stays solid, not see-through */
/* Admin: delivery email composer */
.deliv-item { background: #1d1830; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
:root[data-theme="light"] .deliv-item { background: #f3f1f9; }
.deliv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.deliv-grid .field, .deliv-item .field { margin-bottom: 6px; }
.deliv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.deliv-actions .btn { flex: 1 1 180px; }
#dvBody { font-size: 13px; line-height: 1.5; }
@media (max-width: 600px) { .deliv-grid { grid-template-columns: 1fr; } }
/* Admin: accounts-created button + window */
.acc-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 14px; border-radius: 18px; border: 1px solid rgba(168,85,247,.45); background: linear-gradient(120deg, rgba(34,211,238,.14), rgba(168,85,247,.2)); color: var(--text); text-align: start; transition: transform .15s, box-shadow .2s; }
.acc-btn:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.acc-btn .acc-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.acc-btn small { display: block; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.acc-btn b { font-family: var(--head); font-size: 32px; line-height: 1; }
.acc-btn .acc-new { margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--ok); background: rgba(52,211,153,.12); padding: 5px 10px; border-radius: 999px; }
.modal.modal-wide { width: min(720px, 100%); }
.acc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.acc-grid div { background: #1d1830; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
:root[data-theme="light"] .acc-grid div { background: #f3f1f9; }
.acc-grid span { display: block; font-size: 12px; color: var(--muted); }
.acc-grid b { font-family: var(--head); font-size: 26px; }
@media (max-width: 600px) { .acc-grid { grid-template-columns: 1fr 1fr; } }
/* Branded cover used when a game has no safe image */
.ph-art { flex-direction: column; gap: 6px; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.18), transparent 45%), linear-gradient(135deg, var(--p1, #22d3ee), var(--p2, #7c3aed)) !important; overflow: hidden; }
.ph-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.ph-art .ph-crown svg { width: 34px; height: auto; display: block; }
.ph-art .ph-t { font-size: clamp(15px, 2vw, 22px); line-height: 1.05; max-width: 92%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph-art .ph-brand { font-family: var(--body); font-size: 9.5px; letter-spacing: .3em; opacity: .75; font-weight: 700; }
.thumb-w .ph-art .ph-t, .thumb-w .ph-art .ph-brand, .ap-thumb .ph-art .ph-t, .ap-thumb .ph-art .ph-brand { display: none; }
.thumb-w .ph-art .ph-crown svg { width: 20px; }
/* Drop-downs and pop-ups are solid (not see-through) */
.dd-menu, .suggest, .user-pop, .modal { background: #16121f !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.dd-menu a:hover, .dd-menu a.on { background: #251f36 !important; }
:root[data-theme="light"] .dd-menu, :root[data-theme="light"] .suggest, :root[data-theme="light"] .user-pop, :root[data-theme="light"] .modal { background: #ffffff !important; }
:root[data-theme="light"] .dd-menu a:hover, :root[data-theme="light"] .dd-menu a.on { background: #f1eef8 !important; }
#mobileNav .sheet { background: #120f1d; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
:root[data-theme="light"] #mobileNav .sheet { background: #ffffff; }
.lchart { width: 100%; height: 230px; display: block; color: var(--text); }
.lchart .pt:hover circle:last-of-type { r: 6; }
.adm-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 16px; }
.mini-list .row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-list .row:last-child { border-bottom: 0; }
.mini-list small { color: var(--dim); }

@media (max-width: 1100px) {
  .hx { grid-template-columns: 1fr; }
  .hx-visual { display: none; }
  .cats { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .promo { grid-template-columns: 1fr; }
  .trustx, .adm-grid, .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
  .dash-nav .dash-user { display: none; }
  .dash-nav a { white-space: nowrap; }
}
@media (max-width: 720px) {
  .hx { min-height: 0; border-radius: 22px; }
  .hx-copy { padding: 30px 22px; }
  .hx-copy h1 { font-size: 38px; }
  .hx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hx-cta .btn { flex: 1; }
  .cats { gap: 10px; } .cat { min-height: 120px; padding: 14px; } .cat b { font-size: 18px; }
  .promo-copy { padding: 24px; }
  .tx-grid { grid-template-columns: 1fr; }
  .kpi b { font-size: 24px; }
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .prod, .co, .auth-wrap, .help-grid { grid-template-columns: 1fr; }
  .auth-art { min-height: 220px; }
  .help-nav { position: static; display: flex; overflow-x: auto; }
  .help-nav a { white-space: nowrap; }
  .how { grid-template-columns: 1fr; }
  .order-row, .admin-row { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header .container { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 10px; }
  .logo img { height: 44px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .h-actions { margin-inline-start: auto; }
  .lang-btn .lbl { display: none; }
  .hide-sm { display: none !important; }
  .hero-main { min-height: 400px; }
  .hero-copy { inset-inline: 22px; bottom: 30px; }
  .hero-side { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .pm-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .help-cta { transform: translateY(-30%); }
  .auth-form, .auth-art, .panel { padding: 22px; }
  .facts { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card h3 { font-size: 17px; }
  .card .body { padding: 10px 12px; }
  .card .foot .go span { display: none; }
}
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } }
.mobile-nav.open { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(5,3,12,.7); }
.mobile-nav .sheet { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(300px, 85vw); background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav .sheet a { padding: 12px 14px; border-radius: 10px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.mobile-nav .sheet a:hover { background: var(--surface-2); }
