/* ==== css/base.css ==== */
/* =====================================================================
   SCREEN «الشاشة» — Cinematic Streaming · base.css (SHELL)
   Tokens · reset · type · layout · chrome · shared components.
   Page agents add ONLY page-specific CSS in their own group file.
   ===================================================================== */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  color-scheme: dark;
  /* cinema blacks */
  --bg: #0A0A0C;
  --bg-2: #0E0E11;
  --surface: #141418;
  --surface-2: #1A1A20;
  --surface-3: #222229;
  --surface-4: #2C2C35;
  --line: rgba(245, 241, 234, .08);
  --line-2: rgba(245, 241, 234, .14);
  --line-3: rgba(245, 241, 234, .24);
  /* warm white text */
  --text: #F5F1EA;             /* titles + primary copy: warm white */
  --text-2: #A9B6C6;           /* secondary copy: cool slate — clearly a second voice under the warm titles */
  --text-3: #7E8B9C;           /* meta, captions (AA on --bg) */
  --text-4: #576272;           /* dividers, disabled */
  /* tag roles (owner: tags must not all be grey) — soft tints, one hue per meaning */
  --tag-time: #BBA9FF;   --tag-time-bg: rgba(187, 169, 255, .12);   /* rental duration «7 أيام» */
  --tag-plat: #7FB2FF;   --tag-plat-bg: rgba(127, 178, 255, .12);   /* PS4 | PS5 */
  --tag-lang: #6FD8AA;   --tag-lang-bg: rgba(111, 216, 170, .12);   /* Arabic voice / subtitles */
  --tag-mood: #E8C9A0;   --tag-mood-bg: rgba(232, 201, 160, .10);   /* moods / genres «مع ربعك» */
  /* the ONE accent: ember */
  --ember: #FF5A1F;
  --ember-hi: #FF7B47;
  --ember-lo: #D8420D;
  --ember-soft: rgba(255, 90, 31, .14);
  --ember-line: rgba(255, 90, 31, .5);
  --ember-glow: rgba(255, 90, 31, .32);
  --on-ember: #140803;
  /* dark ember glass (replaces the old cream «play» fill) */
  --ember-glass: #2A140B;
  --ember-glass-hi: #3A1A0C;
  --ember-ink: #FFB089;        /* ember-tinted text on ember glass (AA on #2A140B) */
  /* semantic (small doses only) */
  --ok: #46D396;
  --ok-soft: rgba(70, 211, 150, .13);
  --warn: #FFB547;
  --warn-soft: rgba(255, 181, 71, .13);
  --danger: #FF5A6E;
  --danger-soft: rgba(255, 90, 110, .13);
  --info: #9DBBFF;
  --info-soft: rgba(157, 187, 255, .12);
  --credit: #46D396;           /* كريدت is always green */
  --silver: #C9CFD8;           /* tier marks only */
  --gold: #E8C46E;             /* tier marks only (never a theme colour) */
  /* v3 colour roles (owner: more colour, meaningfully) — ember stays THE action */
  --key: #F4C04E;              /* keys, prices in keys, savings, value */
  --key-soft: rgba(244, 192, 78, .13);
  --key-line: rgba(244, 192, 78, .45);
  --key-hi: #FFD271;
  --key-ink: #1C1303;          /* text ON a key fill — always dark ink */
  --key-glass: #211A0A;        /* dark key glass (.btn--key fill) — never a light slab */
  --key-glass-hi: #2D230C;
  --plus: #4CC6F5;             /* PS Plus */
  --plus-soft: rgba(76, 198, 245, .13);
  --plus-line: rgba(76, 198, 245, .45);
  /* each section's identity colour (page heads, block icon tiles, nav icons) */
  --sec-home: #FF5A1F; --sec-games: #FF7B47; --sec-packages: #F4C04E; --sec-plus: #4CC6F5;
  --sec-library: #46D396; --sec-keys: #F4C04E; --sec-redeem: #B79BFF; --sec-rules: #F28DD0; --sec-help: #3DD6C6;
  --sec-steam: #66A3FF;        /* Steam packages (distinct from --info and --plus) */
  /* scrims */
  --scrim: rgba(5, 5, 7, .72);
  --fade-bottom: linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 12, .86) 22%, rgba(10, 10, 12, .2) 60%, rgba(10, 10, 12, 0) 100%);
  /* type */
  --font-display: 'Noto Kufi Arabic', 'Readex Pro', system-ui, sans-serif;
  --font-ui: 'Readex Pro', 'Noto Kufi Arabic', system-ui, sans-serif;
  --fs-display: clamp(32px, 5.6vw, 74px);
  --fs-h1: clamp(26px, 3.4vw, 44px);
  --fs-h2: clamp(19px, 2vw, 26px);
  --fs-h3: 18px;
  --fs-lead: clamp(15px, 1.25vw, 18px);
  --fs-body: 15px;
  --fs-sm: 13.5px;
  --fs-xs: 12px;
  /* space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-7: 32px; --s-8: 40px; --s-9: 56px; --s-10: 72px; --s-11: 96px;
  --gutter: 16px;
  --maxw: 1320px;
  --hdr-row: 56px;             /* v3 header = bar row + a slim second row (phone: status strip · desktop: sections nav) */
  --hdr-sub: 32px;
  --hdr-h: 88px;               /* = --hdr-row + --hdr-sub (literal px: page scripts parseInt() it) */
  --tab-h: 64px;
  --dev-gap: 58px;             /* reserved for the 🧪 prototype panel button (bottom-left) */
  /* radii */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  /* shadows */
  --sh-1: 0 2px 10px rgba(0, 0, 0, .35);
  --sh-2: 0 14px 34px rgba(0, 0, 0, .5);
  --sh-3: 0 28px 80px rgba(0, 0, 0, .66);
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--ember);
  /* motion v3 — answer fast, settle soft. Exits use --ease-out too (never --ease-in on UI). */
  --ease: cubic-bezier(.2, .75, .2, 1);          /* hover / colour */
  --ease-out: cubic-bezier(.16, 1, .3, 1);       /* enter · exit · press */
  --ease-in: cubic-bezier(.55, 0, .8, .2);       /* RESERVED: authored celebrations only (vault doors) */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);  /* on-screen movement: sheet height, seg pill */
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);   /* bottom sheets + side panels */
  --d-press: 100ms;                              /* press-in (release = 200ms) */
  --d-1: 140ms; --d-2: 240ms; --d-3: 420ms; --d-cine: 900ms;
  /* rail tiles */
  --tile-w: clamp(160px, 44vw, 210px);
  --poster-w: clamp(118px, 31vw, 150px);
  --wide-w: clamp(250px, 76vw, 340px);
}
@media (min-width: 640px) {
  :root { --gutter: 28px; --tile-w: 230px; --poster-w: 160px; --wide-w: 360px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; --hdr-row: 64px; --hdr-sub: 46px; --hdr-h: 110px; --tile-w: 252px; --poster-w: 178px; --wide-w: 400px; }
}
@media (min-width: 1400px) {
  :root { --gutter: 64px; --tile-w: 286px; --poster-w: 196px; --wide-w: 440px; }
}

/* ---------------------------------------------------------------- 2. RESET */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/1.65 var(--font-ui);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
::selection { background: var(--ember); color: var(--on-ember); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
bdi { unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num, .t-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* skip link: invisible (and unclickable) unless reached with the keyboard */
.skip { position: fixed; top: 12px; inset-inline-start: 12px; z-index: 999; background: var(--ember); color: var(--on-ember); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
  transform: translateY(calc(-100% - 24px)); opacity: 0; pointer-events: none; }
.skip:focus-visible { transform: none; opacity: 1; pointer-events: auto; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------------- 3. TYPE */
.t-display { font: 800 var(--fs-display)/1.18 var(--font-display); letter-spacing: -.01em; }
h1, .t-h1 { font: 800 var(--fs-h1)/1.3 var(--font-display); }
h2, .t-h2 { font: 700 var(--fs-h2)/1.35 var(--font-display); }
h3, .t-h3 { font: 700 var(--fs-h3)/1.45 var(--font-display); }
h4, .t-h4 { font: 600 15px/1.5 var(--font-ui); }
.t-lead { font-size: var(--fs-lead); line-height: 1.75; color: var(--text-2); }
.t-sm { font-size: var(--fs-sm); }
.t-xs { font-size: var(--fs-xs); }
.t-mute { color: var(--text-2); }
.t-dim { color: var(--text-3); }
.t-ember, .accent { color: var(--ember); }
.t-ok { color: var(--ok); }
.t-warn { color: var(--warn); }
.t-danger { color: var(--danger); }
.t-credit { color: var(--credit); }
.t-gold { color: var(--gold); }
.t-center { text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1.4 var(--font-ui); color: var(--ember); letter-spacing: .01em; }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.kicker--plain::before { display: none; }
.clamp-1, .clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { -webkit-line-clamp: 1; } .clamp-2 { -webkit-line-clamp: 2; } .clamp-3 { -webkit-line-clamp: 3; }
.prose { color: var(--text-2); line-height: 1.9; }
.prose p + p { margin-top: 1em; }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose a { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- 4. LAYOUT */
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }
.wrap--wide { max-width: none; }
.bleed { padding-inline: var(--gutter); }        /* full-bleed sections (rails) keep only the gutter */
.stack > * + * { margin-top: var(--stack, var(--s-4)); }
.row { display: flex; align-items: center; gap: var(--gap, var(--s-3)); }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.spacer { flex: 1; }
.grid { display: grid; gap: var(--gap, var(--s-4)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.grid--tiles { grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 18px 12px; }
.grid--posters { grid-template-columns: repeat(auto-fill, minmax(min(30%, 160px), 1fr)); gap: 16px 12px; }
.section { padding-block: var(--s-7); }
.section--lg { padding-block: var(--s-9); }
.divider { height: 1px; background: var(--line); border: 0; margin: var(--s-6) 0; }
@media (min-width: 640px) {
  .grid--tiles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px 16px; }
  .grid--posters { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 16px; }
}

/* ---------------------------------------------------------------- 5. ICONS */
/* ONE icon system (full rules: _qa/icons/ICON_SYSTEM.md)
   · Library  Phosphor only (js/ph-icons.js). Weight: Regular everywhere; Fill (icon('x:fill')) ONLY for an active /
     selected state (current nav item, active tab) and round media play controls.
   · Size     3 steps, fixed px (never em): --ic-sm 18 small/inline · --ic-btn 20 buttons · --ic-sec 24 section/heading/tab bar.
              --ic-xl / --ic-2x are reserved for empty-state illustrations and device pickers.
   · Colour   currentColor = the text it sits in (neutral). Role colour only where the icon carries meaning:
              .i--key (keys/price) · .i--plus (PS Plus) · .i--ember (primary/active) · .i--ok (done/included).
              No tiles, glows, drop-shadows or gradients around icons; a block/section head icon is a plain glyph.
   · Spacing  icon-text gap --ic-gap 8px; --ic-gap-sm 6px in chips, tags, badges, amounts and links.
   · Align    flex parents: align-items:center. Inline in running text: vertical-align -0.18em (Arabic optical centre).
   · Hover    the parent's colour shift carries the icon (currentColor) + the motion v3 cues in 10b. Nothing else.
   Phosphor glyphs are filled paths on a 256 grid: stroke-width does nothing — never set it. */
:root { --ic-sm: 18px; --ic-btn: 20px; --ic-sec: 24px; --ic-xl: 32px; --ic-2x: 44px; --ic-gap: 8px; --ic-gap-sm: 6px; }
.i { display: inline-block; width: var(--ic-sm); height: var(--ic-sm); flex: 0 0 auto; fill: currentColor; stroke: none; vertical-align: -0.18em; }
.i--fill { fill: currentColor; stroke: none; }   /* set by App.icon('x:fill'): marker only */
.i-xs, .i-sm { width: var(--ic-sm); height: var(--ic-sm); } .i-md { width: var(--ic-btn); height: var(--ic-btn); }
.i-lg { width: var(--ic-sec); height: var(--ic-sec); } .i-xl { width: var(--ic-xl); height: var(--ic-xl); } .i-2x { width: var(--ic-2x); height: var(--ic-2x); }
.i-flip { transform: scaleX(-1); }
/* role colours (opt-in, important elements only) */
.i--key { color: var(--key); } .i--plus { color: var(--plus); } .i--ember { color: var(--ember); } .i--ok { color: var(--ok); }
.i--mute { color: var(--text-3); }

/* ---------------------------------------------------------------- 6. BOOT + VIEW + TRANSITIONS */
.boot { position: fixed; inset: 0; z-index: 400; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--bg); transition: opacity .45s var(--ease), visibility .45s; }
.boot img { width: 64px; height: 64px; animation: bootPulse 1.6s var(--ease) infinite; }
.boot-bar { width: 120px; height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; background: var(--ember); border-radius: 3px; animation: bootBar 1.1s var(--ease) infinite; }
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes bootPulse { 50% { transform: scale(.94); opacity: .8; } }
@keyframes bootBar { from { transform: translateX(160%); } to { transform: translateX(-260%); } }

.view { display: block; min-height: 70vh; padding-top: var(--hdr-h); outline: none; }
body.is-overlay .view { padding-top: 0; }
body[data-chrome="none"] .view { padding-top: 0; }
body[data-chrome="minimal"] .ftr, body[data-chrome="none"] .ftr,
body[data-chrome="minimal"] .tabbar, body[data-chrome="none"] .tabbar,
body[data-chrome="none"] .hdr { display: none; }
/* motion v3: quick route change — 90ms out, 260ms in, 8px rise, no blur */
.page { animation: pageIn 260ms var(--ease-out) both; }
.view.is-leaving .page { animation: pageOut 90ms var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pageOut { to { opacity: 0; } }
.page--still { animation: none; }

/* ---------------------------------------------------------------- 7. HEADER
   v3: two rows. Row 1 (--hdr-row) = brand · search · wallet · «شراء مفاتيح» · login/avatar.
   Row 2 (--hdr-sub) = desktop: the live 8-section nav (icon tinted by its --sc) · phone: micro status strip. */
.hdr {
  position: fixed; inset-inline: 0; top: 0; z-index: 60; height: var(--hdr-h);
  display: flex; flex-direction: column;
  background: rgba(10, 10, 12, .92); box-shadow: 0 1px 0 var(--line);
  transition: background var(--d-3) var(--ease), box-shadow var(--d-3) var(--ease), backdrop-filter var(--d-3);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hdr { background: rgba(10, 10, 12, .76); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
}
body.is-overlay .hdr:not(.is-solid) { background: linear-gradient(to bottom, rgba(10, 10, 12, .86) 0%, rgba(10, 10, 12, .58) 55%, rgba(10, 10, 12, 0) 100%); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body[data-chrome="minimal"] .hdr { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body[data-chrome="minimal"] .hdr .nav, body[data-chrome="minimal"] .hdr-micro,
body[data-route="login"] .hdr-micro, body[data-route="register"] .hdr-micro, body[data-route="forgot"] .hdr-micro,
body[data-route="verify"] .hdr-micro, body[data-route="onboarding"] .hdr-micro { display: none !important; }
.hdr-row { flex: 0 0 var(--hdr-row); height: var(--hdr-row); display: flex; align-items: center; gap: var(--s-3); padding-inline: var(--gutter); min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 1 auto; min-width: 0; min-height: 44px; }
.brand img { width: 34px; height: 34px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; overflow: hidden; }
.brand-name b { font: 800 16px/1.2 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-name small { font: 500 9.5px/1.2 var(--font-ui); letter-spacing: .22em; color: var(--text-3); direction: ltr; text-align: right; }
.hdr-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }   /* never shrinks: the brand gives way first */
.hdr-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--text); transition: background-color var(--d-1) var(--ease), transform 200ms var(--ease-out); flex: 0 0 auto; }
@media (hover: hover) and (pointer: fine) { .hdr-btn:hover { background: rgba(245, 241, 234, .08); } }
.hdr-btn:active { transform: scale(.92); transition-duration: var(--d-1), var(--d-press); }   /* motion v3 */
.hdr-btn .i { width: var(--ic-btn); height: var(--ic-btn); }
.hdr .btn--sm { min-height: 38px; }
.avatar-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; flex: 0 0 auto; transition: transform 200ms var(--ease-out); }
.avatar-btn:active { transform: scale(.94); transition-duration: var(--d-press); }
.avatar-btn .avatar { width: 34px; height: 34px; box-shadow: 0 0 0 2px transparent; transition: box-shadow var(--d-1); }
.avatar-btn[aria-expanded="true"] .avatar { box-shadow: 0 0 0 2px var(--ember); }
@media (hover: hover) and (pointer: fine) { .avatar-btn:hover .avatar { box-shadow: 0 0 0 2px var(--ember); } }
.hdr .hdr-buy { display: none; }
.hdr-login .hl-d { display: none; }
.hdr-login { padding-inline: 16px; }

/* desktop wallet: المفاتيح · كريدت · الفئة · المتبقّي (each cell labelled, coloured by role, clickable like live) */
.wal { display: flex; align-items: stretch; height: 46px; border-radius: 12px; background: rgba(20, 20, 24, .62); border: 1px solid var(--line-2); overflow: hidden; }
.hdr .wal { display: none; }
.wal-c { position: relative; display: grid; align-content: center; justify-items: start; gap: 4px; padding: 0 13px; min-width: 0; text-align: start; color: var(--text); transition: background var(--d-1); }
.wal-c + .wal-c::before { content: ""; position: absolute; inset-inline-start: 0; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
@media (hover: hover) and (pointer: fine) { a.wal-c:hover, button.wal-c:hover { background: rgba(245, 241, 234, .06); } }
a.wal-c:active, button.wal-c:active { background: rgba(245, 241, 234, .1); transition-duration: 0ms; }
.wal-l { font: 500 10.5px/1 var(--font-ui); color: var(--text-3); white-space: nowrap; }
.wal-v { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); font: 700 14px/1 var(--font-ui); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wal-v .i { width: var(--ic-sm); height: var(--ic-sm); }
.wal-k .i { color: var(--key); }
.wal-k.is-danger b { color: var(--danger); }
.wal-k.is-warn b { color: var(--warn); }
.wal-k.is-off b { color: var(--text-2); }
.wal-cr .wal-v { color: var(--credit); }
.wal-t .i { color: var(--text-3); }
.wal-t.tier-gold .wal-v, .wal-t.tier-gold .i { color: var(--gold); }
.wal-t.tier-silver .wal-v, .wal-t.tier-silver .i { color: var(--silver); }
.wal-t.tier-none b, .wal-t.tier-off b { color: var(--text-2); }
.wal-d .i { color: var(--text-3); }
.wal-d.is-warn b, .wal-d.is-warn .i { color: var(--warn); }
.wal-d.is-danger b, .wal-d.is-danger .i { color: var(--danger); }
.wal-d.is-off b { color: var(--text-3); }
/* motion v3 — header wallet tick: the key turns once when the balance changes (bow-centred, Phosphor) */
.wal-k.is-bump .i, .wb-k.is-bump .i { animation: keyTurn 520ms var(--ease-out); transform-origin: 62.5% 37.5%; }
@keyframes keyTurn { 40% { transform: rotate(-22deg); } }

/* phone wallet box (keys + credit merged, live) */
.wbox { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px; border-radius: 10px; background: rgba(20, 20, 24, .66); border: 1px solid var(--key-line); font: 700 13.5px/1 var(--font-ui); color: var(--text); white-space: nowrap; flex: 0 0 auto; }
.wbox { transition: transform 200ms var(--ease-out); }   /* motion v3 */
.wbox:active { transform: scale(.96); transition-duration: var(--d-press); }
.wbox > span { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); }
.wbox .i { width: var(--ic-sm); height: var(--ic-sm); }
.wb-k .i { color: var(--key); }
.wb-k.is-danger b { color: var(--danger); }
.wb-k.is-warn b { color: var(--warn); }
.wb-c { color: var(--credit); }
.wb-sep { width: 1px; height: 16px; background: var(--line-2); }

/* row 2 · desktop: sections nav */
.nav { display: none; flex: 1 1 auto; min-height: 0; padding-inline: var(--gutter); border-top: 1px solid var(--line); }
body.is-overlay .hdr:not(.is-solid) .nav { border-color: rgba(245, 241, 234, .07); }
.nav-in { display: flex; align-items: stretch; gap: 2px; height: 100%; overflow-x: auto; scrollbar-width: none; }
.nav-in::-webkit-scrollbar { display: none; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: var(--ic-gap); padding: 0 12px; font: 500 14px/1 var(--font-ui); color: var(--text-2); white-space: nowrap; transition: color var(--d-1); flex: 0 0 auto; }
.nav a .i { width: var(--ic-sm); height: var(--ic-sm); }            /* neutral: inherits the label colour */
.nav a:hover { color: var(--text); }
.nav a.is-on { color: var(--text); font-weight: 600; }
.nav a.is-on .i { color: var(--ember); }                               /* active = Fill glyph (paintActive) + ember */
.nav a.is-on::after { content: ""; position: absolute; inset-inline: 10px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--ember); }
.nav a:focus-visible { outline-offset: -3px; }

/* row 2 · phone: micro status strip (tier · days · status), the whole strip opens باقات الاشتراك */
.hdr-micro { flex: 1 1 auto; display: flex; align-items: center; gap: 12px; padding-inline: var(--gutter); border-top: 1px solid var(--line); font: 500 12px/1 var(--font-ui); color: var(--text-2); white-space: nowrap; overflow: hidden; min-width: 0; }
body.is-overlay .hdr:not(.is-solid) .hdr-micro { border-color: rgba(245, 241, 234, .07); }
.hdr-micro > span { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); }
.hdr-micro b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hm-t > span { color: var(--text-3); }
.hm-t .i { color: var(--text-3); }
.hm-t.tier-gold, .hm-t.tier-gold .i { color: var(--gold); }
.hm-t.tier-silver, .hm-t.tier-silver .i { color: var(--silver); }
.hm-d::before, .hm-s::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); margin-inline-end: 7px; }
.hm-d .i { color: var(--text-3); }
.hm-d.is-warn { color: var(--warn); } .hm-d.is-warn .i { color: var(--warn); }
.hm-d.is-danger { color: var(--danger); } .hm-d.is-danger .i { color: var(--danger); }
.hm-d.is-off { color: var(--text-3); }
.hm-s { font-weight: 600; }
.hm-s::after { content: ""; order: -1; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hm-s.is-ok { color: var(--ok); } .hm-s.is-warn { color: var(--warn); } .hm-s.is-danger { color: var(--danger); } .hm-s.is-off { color: var(--text-3); }
.hm-go { margin-inline-start: auto; color: var(--text-3); }

.tier-mark { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); font-weight: 600; }
.tier-mark--gold { color: var(--gold); }
.tier-mark--silver { color: var(--silver); }
.tier-mark--off, .tier-mark--none { color: var(--text-3); }

@media (min-width: 1024px) {
  .nav { display: block; }
  .hdr-micro { display: none; }
  .hdr .wal { display: flex; }
  .hdr .wbox { display: none; }
  .hdr .hdr-buy { display: inline-flex; }
  .hdr-login .hl-d { display: inline; }
  .hdr-login .hl-m { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand-name b { font-size: 17px; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .nav a { padding: 0 9px; gap: var(--ic-gap-sm); font-size: 13.5px; }
  .brand-name small { display: none; }
  .wal-c { padding: 0 10px; }
  .hdr-end { gap: 6px; }
}
@media (max-width: 1023.98px) {
  .hdr-row { gap: var(--s-2); }
  .hdr-end { gap: 6px; }
  .hdr-btn { width: 40px; height: 40px; }
  .avatar-btn { width: 40px; height: 40px; }
}
/* phones (360–639): the header row must fit for guest (search · wallet · دخول) and member (search · wallet · avatar) */
@media (max-width: 639.98px) {
  .hdr-row { gap: 6px; }
  .hdr-end { gap: 4px; }
  .brand { gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .brand-name small { display: none; }          /* Latin «CARD STATION» sub-line: desktop/tablet only */
  .brand-name b { font-size: 15px; }
  .hdr-login { padding-inline: 12px; }
  .wbox { gap: 7px; padding: 0 9px; }
  .wbox > span { gap: 4px; }
}
@media (max-width: 419.98px) {
  .brand-name b { font-size: 14px; }
  .hdr .hdr-search { width: 38px; }
}
@media (max-width: 389.98px) {
  .brand-name { display: none; }               /* logo only on the narrowest phones */
  .hdr-micro { gap: 9px; font-size: 11.5px; }
}

/* ---------------------------------------------------------------- 8. MOBILE TAB BAR */
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 55;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-inline-end: var(--dev-gap);
  background: rgba(12, 12, 15, .96); border-top: 1px solid var(--line);
}
.tabbar a, .tabbar button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 44px; color: var(--text-3); font: 500 11px/1.2 var(--font-ui); transition: color var(--d-1);
}
.tabbar .i { width: var(--ic-sec); height: var(--ic-sec); }
.tabbar .avatar { width: 25px; height: 25px; font-size: 11px; }
/* motion v3: the tab-bar icon dips on press (the label never moves) */
.tabbar .i, .tabbar .avatar { transition: transform 200ms var(--ease-out); }
.tabbar a:active .i, .tabbar button:active .i, .tabbar a:active .avatar { transform: scale(.86); transition-duration: var(--d-press); }
.tabbar .is-on { color: var(--text); }
.tabbar .is-on .i { color: var(--ember); }                            /* active = Fill glyph (paintActive) + ember; inactive = Regular, neutral */
.tabbar .is-on::before { content: ""; position: absolute; top: 0; width: 26px; height: 2px; border-radius: 0 0 2px 2px; background: var(--ember); }
.tabbar .is-on .avatar { box-shadow: 0 0 0 2px var(--ember); }
.tabbar .badge-dot { position: absolute; top: 9px; margin-inline-start: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 2px var(--bg-2); }
body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
body[data-chrome="minimal"], body[data-chrome="none"] { padding-bottom: 0; }
@media (min-width: 1024px) {
  .tabbar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------------------------------------------------------------- 9. FOOTER (live content: brand · socials · 6 links · ©) */
.ftr { margin-top: var(--s-10); border-top: 1px solid var(--line); background: var(--bg-2); }
.ftr-in { display: grid; gap: var(--s-5); padding-block: var(--s-8) var(--s-6); }
.ftr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.ftr-social { display: flex; gap: 8px; flex-wrap: wrap; }
.soc { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text-2); transition: color var(--d-1), border-color var(--d-1), background var(--d-1), transform 200ms var(--ease-out); }
.soc:active { transform: scale(.92); transition-duration: var(--d-1), var(--d-1), var(--d-1), var(--d-press); }
.soc .i { width: var(--ic-btn); height: var(--ic-btn); }
@media (hover: hover) and (pointer: fine) { .soc:hover { color: var(--text); border-color: var(--line-3); } }
.ftr-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding-block: var(--s-3); border-block: 1px solid var(--line); }
.ftr-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text-2); font-size: 14px; transition: color var(--d-1); }
.ftr-links a:hover { color: var(--ember-hi); }
.ftr-links .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }
.ftr-copy { color: var(--text-3); font-size: var(--fs-xs); }
@media (max-width: 639.98px) { .ftr-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; } .ftr-links .dot { display: none; } }

/* ---------------------------------------------------------------- 10. BUTTONS */
.btn {
  --bh: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--ic-gap);
  min-height: var(--bh); padding: 0 22px; border-radius: var(--r-sm);
  font: 600 15px/1.2 var(--font-ui); white-space: nowrap; text-align: center;
  border: 1px solid transparent; transition: background var(--d-1) var(--ease), color var(--d-1) var(--ease), border-color var(--d-1) var(--ease), box-shadow var(--d-2) var(--ease), opacity var(--d-1) var(--ease), transform 200ms var(--ease-out);   /* motion v3 */
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active:not(:disabled) { transform: scale(.97); transition-duration: var(--d-1), var(--d-1), var(--d-1), var(--d-2), var(--d-1), var(--d-press); }
.btn .i { width: var(--ic-btn); height: var(--ic-btn); }   /* colour = the button's text colour, always */
.btn--primary { background: var(--ember); color: var(--on-ember); }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover:not(:disabled) { background: var(--ember-hi); box-shadow: 0 10px 30px var(--ember-glow); } }
.btn--light { background: var(--ember-glass); color: var(--text); border-color: var(--ember-line); }   /* strong secondary: dark ember glass (same family as primary) */
@media (hover: hover) and (pointer: fine) { .btn--light:hover:not(:disabled) { background: var(--ember-glass-hi); border-color: var(--ember); box-shadow: 0 8px 26px rgba(255, 90, 31, .18); } }
/* keys / «شراء مفاتيح» — the buy-keys action (header, wallet, more sheet): dark key-tinted glass,
   key hairline, key-coloured label + icon. A clear buy action that never competes with ember or turns into a light slab. */
.btn--key { background: linear-gradient(180deg, var(--key-soft), transparent 140%), var(--key-glass); color: var(--key-hi); border-color: var(--key-line); }
@media (hover: hover) and (pointer: fine) { .btn--key:hover:not(:disabled) { background: linear-gradient(180deg, rgba(244, 192, 78, .2), transparent 140%), var(--key-glass-hi); border-color: var(--key); box-shadow: 0 8px 24px rgba(244, 192, 78, .14); } }
/* ghost = tertiary: a crisp outline, warm on hover (not a grey slab) */
.btn--ghost { background: rgba(245, 241, 234, .035); color: var(--text); border-color: var(--line-3); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover:not(:disabled) { background: rgba(255, 90, 31, .07); border-color: var(--ember-line); } }
.btn--subtle { background: transparent; color: var(--text-2); padding-inline: 12px; }
@media (hover: hover) and (pointer: fine) { .btn--subtle:hover:not(:disabled) { color: var(--text); background: rgba(245, 241, 234, .06); } }
.btn--outline { background: transparent; color: var(--text); border-color: var(--line-3); }
@media (hover: hover) and (pointer: fine) { .btn--outline:hover:not(:disabled) { border-color: var(--text); } }
.btn--ember-outline { background: transparent; color: var(--ember-hi); border-color: var(--ember-line); }
@media (hover: hover) and (pointer: fine) { .btn--ember-outline:hover:not(:disabled) { background: var(--ember-soft); } }
.btn--danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(255, 90, 110, .35); }
@media (hover: hover) and (pointer: fine) { .btn--danger:hover:not(:disabled) { background: rgba(255, 90, 110, .22); } }
.btn--success { background: var(--ok); color: #04150D; }
@media (hover: hover) and (pointer: fine) { .btn--success:hover:not(:disabled) { filter: brightness(1.08); } }
.btn--sm { --bh: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; gap: var(--ic-gap-sm); }
.btn--sm .i { width: var(--ic-sm); height: var(--ic-sm); }
.btn--lg { --bh: 56px; padding: 0 30px; font-size: 16.5px; border-radius: 12px; }
.btn--block { display: flex; width: 100%; }
.btn--icon { width: var(--bh); padding: 0; border-radius: 50%; }
.btn--round { border-radius: var(--r-pill); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
/* dialog step swaps: new buttons stay at rest under a still cursor (see App.ui.modal setActions) */
.btn--primary.is-fresh:hover:not(:disabled) { background: var(--ember); box-shadow: none; }
.btn--light.is-fresh:hover:not(:disabled) { background: var(--ember-glass); border-color: var(--ember-line); box-shadow: none; }
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy > * { opacity: 0; filter: blur(2px); }            /* motion v3: fades via the .btn > * transition (10b) */
.btn.is-busy::before, .btn.is-busy::after { transition: opacity 160ms var(--ease-out); }
@starting-style { .btn.is-busy::before, .btn.is-busy::after { opacity: 0; } }   /* older browsers: instant, harmless */
.btn.is-busy::after {
  content: attr(data-busy-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--busy-c, currentColor); visibility: visible; font-size: 14px;
}
.btn.is-busy::before {
  content: ""; position: absolute; top: 50%; inset-inline-start: 50%; width: 18px; height: 18px; margin: -9px -9px 0 0;
  border-radius: 50%; border: 2px solid var(--busy-c, currentColor); border-top-color: transparent; animation: spin .7s linear infinite; visibility: visible;
}
.btn.is-busy[data-busy-label]:not([data-busy-label=""])::before { inset-inline-start: auto; inset-inline-end: 18px; }
.btn--primary.is-busy { --busy-c: var(--on-ember); }
.btn--light.is-busy { --busy-c: var(--ember-hi); }
.btn--key.is-busy { --busy-c: var(--key); }
.btn--ghost.is-busy, .btn--outline.is-busy, .btn--subtle.is-busy { --busy-c: var(--text); }
.btn--danger.is-busy { --busy-c: var(--danger); }
.btn--success.is-busy { --busy-c: #04150D; }
.btn--ember-outline.is-busy { --busy-c: var(--ember-hi); }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-3); border-top-color: var(--ember); animation: spin .8s linear infinite; }
.link { color: var(--ember-hi); font-weight: 500; display: inline-flex; align-items: center; gap: var(--ic-gap-sm); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link--mute { color: var(--text-2); }
.play-btn { width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ember); color: var(--on-ember); transition: transform 200ms var(--ease-out), background-color var(--d-1) var(--ease); }
@media (hover: hover) and (pointer: fine) { .play-btn:hover { background: var(--ember-hi); transform: scale(1.06); } }
.play-btn:active { transform: scale(.94); transition-duration: var(--d-press), var(--d-1); }
@media (hover: hover) and (pointer: fine) { .play-btn:hover:active { transform: scale(1); } }
.play-btn .i { width: var(--ic-sec); height: var(--ic-sec); }   /* play:fill — Phosphor's triangle is already centroid-centred */

/* 10b. motion v3 — BUTTON CHILDREN + ICON CUES: an icon inside a control moves the way its meaning moves.
   Pointer-driven only (never idle, never on touch hover). No spin / bounce / wiggle anywhere.
   Phosphor glyphs (viewBox 256): the key's bow is the big ring centred ≈ (160, 96) → origin 62.5% 37.5%. */
.btn > * { transition: opacity 120ms var(--ease-out), filter 120ms var(--ease-out), transform 200ms var(--ease-out); }
.link .i, .more .i, .mini-btn .i, .play-btn .i, .wal-k .i { transition: transform 200ms var(--ease-out); }
.i[data-i="key"] { transform-origin: 62.5% 37.5%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) .i[data-i="chevron-left"]:not(.i-flip), .btn:hover:not(:disabled) .i[data-i="arrow-left"],
  .link:hover .i[data-i="chevron-left"], .more:hover .i[data-i="chevron-left"] { transform: translateX(-3px); }   /* forward = left in RTL */
  .btn:hover:not(:disabled) .i[data-i="play"], .mini-btn--play:hover .i, .play-btn:hover .i { transform: translateX(2px); }
  .btn:hover:not(:disabled) .i[data-i="external"] { transform: translate(2px, -2px); }
  .btn:hover:not(:disabled) .i[data-i="key"], .wal-k:hover .i[data-i="key"] { transform: rotate(-18deg); }      /* the key turns */
}
.btn:active:not(:disabled) .i[data-i="key"] { transform: rotate(-30deg); transition-duration: var(--d-press); }

/* motion v3 — copied / done flash (App.ui.flash) */
.is-flashed { color: var(--ok) !important; }
.btn--primary.is-flashed { color: var(--on-ember) !important; }
.is-flashed > .i { color: inherit !important; animation: flashIn 240ms var(--ease-out) both; }
.is-unflash > * { animation: fadeIn 160ms var(--ease-out) both; }
@keyframes flashIn { from { opacity: 0; transform: scale(.6); filter: blur(2px); } }

/* ---------------------------------------------------------------- 11. CHIPS · SEGMENTED · TABS */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  background: rgba(245, 241, 234, .06); border: 1px solid var(--line-2); color: var(--text-2);
  font: 500 13.5px/1.2 var(--font-ui); white-space: nowrap; transition: background-color var(--d-1) var(--ease), border-color var(--d-1) var(--ease), color var(--d-1) var(--ease), transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { button.chip:hover, a.chip:hover { color: var(--text); border-color: var(--line-3); } }
button.chip:active, a.chip:active { transform: scale(.96); transition-duration: var(--d-1), var(--d-1), var(--d-1), var(--d-press); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--ember-glass); color: var(--ember-ink); border-color: var(--ember-line); }
.chip--ember.is-on, .chip--ember[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
.chip .i { width: var(--ic-sm); height: var(--ic-sm); }
.chip--sm { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; scroll-snap-type: x proximity; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row > * { scroll-snap-align: start; flex: 0 0 auto; }
.meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; color: var(--text-2); font-size: 13.5px; }
.meta > * { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); }
.meta > * + *::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); margin-inline-end: 7px; }
.meta .i { color: var(--text-3); }
.tag { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); height: 26px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--text-2); font: 500 12.5px/1 var(--font-ui); white-space: nowrap; }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { min-height: 38px; padding: 0 16px; border-radius: var(--r-pill); color: var(--text-2); font: 500 14px/1 var(--font-ui); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease), transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .seg button:hover { color: var(--text); } }
.seg button:active { transform: scale(.96); transition-duration: var(--d-2), var(--d-2), var(--d-2), var(--d-press); }
.seg button[aria-pressed="true"], .seg button.is-on { background: var(--ember-glass); color: var(--ember-ink); box-shadow: inset 0 0 0 1px var(--ember-line); font-weight: 600; }
.seg--block { display: flex; width: 100%; }
.seg--block button { flex: 1; justify-content: center; }
/* motion v3 — sliding seg pill (App wireSegPill): the pressed option's highlight glides between options */
.seg { position: relative; isolation: isolate; }
.seg > .seg-ind { position: absolute; z-index: -1; top: 0; left: 0; width: 0; height: 0; opacity: 0; border-radius: var(--r-pill); background: var(--ember-glass); box-shadow: inset 0 0 0 1px var(--ember-line); pointer-events: none; transition: transform 240ms var(--ease-in-out), width 240ms var(--ease-in-out), opacity 140ms var(--ease); }
.seg.has-ind > button[aria-pressed="true"], .seg.has-ind > button.is-on { background: transparent; box-shadow: none; }

.tabs { display: flex; gap: var(--s-6); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 14px 2px; min-height: 48px; color: var(--text-3); font: 600 15px/1.2 var(--font-ui); white-space: nowrap; transition: color var(--d-1) var(--ease), transform 200ms var(--ease-out); display: inline-flex; align-items: center; gap: 8px; }
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--text-2); } }
.tab:active { transform: scale(.97); transition-duration: var(--d-1), var(--d-press); }
.tab[aria-selected="true"], .tab.is-on { color: var(--text); }
.tab[aria-selected="true"]::after, .tab.is-on::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ember); }
.tab .count { font: 600 11.5px/18px var(--font-ui); min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--surface-3); color: var(--text-2); text-align: center; }

/* ---------------------------------------------------------------- 12. FORMS */
.field { display: grid; gap: 8px; }
.field + .field { margin-top: var(--s-4); }
.label { font: 500 13.5px/1.4 var(--font-ui); color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.label .opt { font-size: 11.5px; color: var(--text-3); padding: 1px 7px; border-radius: 6px; background: var(--surface-3); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  font: 400 15.5px/1.4 var(--font-ui); transition: border-color var(--d-1), background var(--d-1), box-shadow var(--d-1);
}
.textarea { padding: 14px 16px; min-height: 110px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ember); background: var(--surface-3); box-shadow: 0 0 0 4px var(--ember-soft); outline: none; }
.input--ltr { direction: ltr; text-align: right; }
.input--ltr::placeholder { text-align: right; }
.input.is-err, .field.is-err .input { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.input-wrap { position: relative; }
.input-wrap .input { padding-inline-end: 50px; }
.input-wrap > .i, .input-wrap > button { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 6px; }
.input-wrap > .i { inset-inline-end: 16px; color: var(--text-3); pointer-events: none; }
.input-wrap > button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: var(--text-3); }
.input-wrap > button:hover { color: var(--text); }
.field-hint { font-size: 12.5px; color: var(--text-3); }
.field-err { font-size: 13px; color: var(--danger); display: flex; align-items: center; gap: 6px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: 18px 22px, 23px 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-start: 40px; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14.5px; color: var(--text-2); line-height: 1.6; min-height: 44px; padding-top: 2px; }
.check input { appearance: none; width: 22px; height: 22px; flex: 0 0 auto; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--line-3); background: var(--surface-2); display: grid; place-items: center; cursor: pointer; transition: background-color var(--d-1) var(--ease), border-color var(--d-1) var(--ease), box-shadow var(--d-1) var(--ease); }
.check input:checked { background: var(--ember); border-color: var(--ember); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--on-ember); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.check input::after { transition: opacity 140ms var(--ease-out), transform 160ms var(--ease-out); }   /* motion v3: the tick draws in */
@starting-style { .check input:checked::after { opacity: 0; transform: translateY(-1px) rotate(45deg) scale(.6); } }
.check input:focus-visible { box-shadow: var(--ring); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; }
.switch input { appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--surface-4); position: relative; cursor: pointer; transition: background var(--d-2); flex: 0 0 auto; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform var(--d-2) var(--ease); }
.switch input:checked { background: var(--ember); }
.switch input:checked::after { transform: translateX(-18px); }
.switch input:focus-visible { box-shadow: var(--ring); }

/* segmented code input (OTP / gift code): one real input over display cells */
.code-in { position: relative; display: flex; justify-content: center; gap: var(--ci-gap, 10px); direction: ltr; }
.code-in input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; border: 0; z-index: 2; cursor: text; caret-color: transparent; letter-spacing: 1em; }
.code-in .cells { display: flex; gap: var(--ci-gap, 10px); }
.code-in .grp { display: flex; gap: 6px; }
.code-in .grp + .grp { margin-inline-start: 0; }
.code-in .sep { align-self: center; width: 12px; height: 2px; background: var(--text-4); border-radius: 2px; }
.code-in .cell {
  width: var(--ci-w, 48px); height: var(--ci-h, 60px); display: grid; place-items: center; border-radius: 12px;
  background: var(--surface-2); border: 1.5px solid var(--line-2); font: 600 var(--ci-fs, 26px)/1 var(--font-ui); color: var(--text);
  font-variant-numeric: tabular-nums; transition: border-color var(--d-1), background var(--d-1), transform var(--d-1);
}
.code-in .cell.is-filled { border-color: var(--line-3); background: var(--surface-3); }
.code-in .cell.is-cur { border-color: var(--ember); box-shadow: 0 0 0 4px var(--ember-soft); }
.code-in .cell.is-cur:empty::after { content: ""; width: 2px; height: 40%; background: var(--ember); animation: caret 1s steps(1) infinite; }
.code-in .pre { align-self: center; font: 600 18px/1 var(--font-ui); color: var(--text-3); padding-inline-end: 6px; }
.code-in.is-err .cell { border-color: var(--danger); }
.code-in.is-ok .cell { border-color: var(--ok); color: var(--ok); }
.code-in.is-shake { animation: shake .4s; }
.code-in--sm { --ci-w: 40px; --ci-h: 50px; --ci-fs: 21px; --ci-gap: 7px; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 400px) { .code-in { --ci-w: 42px; --ci-h: 54px; --ci-fs: 23px; --ci-gap: 7px; } .code-in--sm { --ci-w: 34px; --ci-h: 46px; --ci-gap: 5px; } }

/* ---------------------------------------------------------------- 13. SURFACES · CARDS */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); }
.card--flat { background: var(--bg-2); }
.card--raised { background: var(--surface-2); box-shadow: var(--sh-2); }
.card--ember { background: linear-gradient(160deg, rgba(255, 90, 31, .16), rgba(255, 90, 31, .03) 55%), var(--surface); border-color: var(--ember-line); }
.card--tight { padding: var(--s-4); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.card-head h3 { font-size: 17px; }
a.card, button.card { display: block; text-align: inherit; width: 100%; transition: border-color var(--d-1), transform var(--d-2) var(--ease), background var(--d-1); }
a.card:hover, button.card:hover { border-color: var(--line-3); }
a.card:active, button.card:active { transform: scale(.985); transition-duration: var(--d-1), var(--d-press), var(--d-1); }   /* motion v3 */
@media (max-width: 640px) { .card { padding: var(--s-5); border-radius: var(--r-md); } }

/* ---------------------------------------------------------------- 14. COVERS + FALLBACK */
.cv { width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); color: transparent; }
.cv-fb {
  position: relative; display: grid; place-items: center; overflow: hidden; padding: 10%;
  background:
    radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--fb, #3a1a0c) 85%, #fff 15%) 0%, transparent 55%),
    radial-gradient(90% 80% at 10% 100%, rgba(255, 90, 31, .28) 0%, transparent 60%),
    linear-gradient(160deg, var(--fb, #3a1a0c), #0B0B0E 78%);
}
.cv-fb::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.cv-fb::after { content: ""; position: absolute; width: 38%; aspect-ratio: 1; inset-inline-start: -8%; bottom: -14%; background: url('/logo.png') center/contain no-repeat; opacity: .07; filter: grayscale(1); }
.cv-fb-t { position: relative; z-index: 1; font: 800 clamp(13px, 2.4vw, 22px)/1.25 var(--font-display); color: var(--text); text-align: center; text-wrap: balance; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cv-fb--nolabel .cv-fb-t { display: none; }

/* ---------------------------------------------------------------- 15. GAME CARDS */
/* 15a · TILE (16:9 landscape, rails + grids) */
.tile {
  position: relative; display: block; flex: 0 0 auto; width: var(--tile-w); aspect-ratio: 16 / 9;
  border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); isolation: isolate; cursor: pointer;
  transition: transform var(--d-3) var(--ease), box-shadow var(--d-3) var(--ease);
  -webkit-tap-highlight-color: transparent; text-align: start;
}
.grid .tile { width: 100%; }
.tile > .cv { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out), filter var(--d-3); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(8, 8, 10, .94) 0%, rgba(8, 8, 10, .5) 38%, rgba(8, 8, 10, 0) 68%); }
.tile-title { position: absolute; z-index: 2; inset-inline: 10px; bottom: 8px; font: 700 13.5px/1.4 var(--font-display); color: var(--text); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-top { position: absolute; z-index: 2; top: 8px; inset-inline: 8px; display: flex; gap: 5px; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.tile-top .lft { display: flex; gap: 5px; }
.tile-hover {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 12px;
  background: linear-gradient(to top, rgba(8, 8, 10, .97) 18%, rgba(8, 8, 10, .78) 60%, rgba(8, 8, 10, .35)); opacity: 0; visibility: hidden;
  transition: opacity var(--d-2) var(--ease), visibility var(--d-2);
}
.tile-hover .th-t { font: 700 14px/1.35 var(--font-display); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tile-hover .th-m { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.tile-hover .th-a { display: flex; align-items: center; gap: 8px; }
.tile-hover .th-a .keys { margin-inline-start: auto; }
.mini-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-3); color: var(--text); background: rgba(10, 10, 12, .4); transition: background-color var(--d-1) var(--ease), border-color var(--d-1) var(--ease), color var(--d-1) var(--ease), transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .mini-btn:hover { border-color: var(--text); background: rgba(245, 241, 234, .12); } }
.mini-btn .i { width: var(--ic-sm); height: var(--ic-sm); }
.mini-btn--play { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
@media (hover: hover) and (pointer: fine) { .mini-btn--play:hover { background: var(--ember-hi); border-color: var(--ember-hi); } }
.mini-btn:active { transform: scale(.9); transition-duration: var(--d-1), var(--d-1), var(--d-1), var(--d-press); }   /* motion v3 */
.tile.is-out > .cv { filter: grayscale(.55) brightness(.75); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover, .tile:focus-visible { transform: scale(1.045); box-shadow: 0 18px 44px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-3); z-index: 5; outline: none; }
  .tile:hover > .cv { transform: scale(1.06); }
  .tile:hover .tile-hover, .tile:focus-visible .tile-hover { opacity: 1; visibility: visible; }
}
.tile:active { transform: scale(.98); transition-duration: var(--d-press), var(--d-press); }   /* motion v3: dips fast, settles at --d-3 */
@media (hover: hover) and (pointer: fine) { .tile:hover:active { transform: scale(1.02); } }

/* 15b · POSTER (1:1 box art) */
.poster { position: relative; display: block; flex: 0 0 auto; width: var(--poster-w); aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); cursor: pointer; transition: transform var(--d-3) var(--ease), box-shadow var(--d-3); }
.grid .poster { width: 100%; }
.poster > .cv { position: absolute; inset: 0; }
.poster .tile-top { top: 7px; inset-inline: 7px; }
@media (hover: hover) and (pointer: fine) {
  .poster:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, .65), 0 0 0 1px var(--line-3); }
}
.poster:active { transform: scale(.98); transition-duration: var(--d-press), var(--d-press); }   /* motion v3 */
@media (hover: hover) and (pointer: fine) { .poster:hover:active { transform: translateY(-2px) scale(.99); } }
.poster-cap { margin-top: 10px; }
.poster-cap b { display: block; font: 700 14px/1.4 var(--font-display); }
.poster-cap span { font-size: 12.5px; color: var(--text-3); }

/* 15c · RANK (TOP-10) — v3: box art with a small numbered chip + caption (no giant outlined numerals) */
.rank { position: relative; display: grid; gap: 9px; align-content: start; flex: 0 0 auto; width: var(--poster-w); cursor: pointer; }
.rank .poster { width: 100%; }
.rank-n {
  position: absolute; z-index: 2; top: 8px; inset-inline-start: 8px; min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center;
  border-radius: 9px; background: rgba(10, 10, 12, .84); color: var(--text); font: 700 14.5px/1 var(--font-ui); font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px var(--line-3); direction: ltr;
}
.rank-n.is-top { background: var(--ember); color: var(--on-ember); box-shadow: none; }
.rank-cap { display: grid; gap: 5px; min-width: 0; }
.rank-cap b { font: 700 13.5px/1.4 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank:hover .rank-cap b { color: var(--ember-hi); }

/* 15d · WIDE (continue-playing card, 16:9 bigger + progress) */
.wide { position: relative; display: block; flex: 0 0 auto; width: var(--wide-w); border-radius: var(--r-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color var(--d-2), transform var(--d-3) var(--ease); }
.wide:hover { border-color: var(--line-3); }
.wide:active { transform: scale(.985); transition-duration: var(--d-2), var(--d-press); }   /* motion v3 */
.wide-media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.wide-media > .cv { position: absolute; inset: 0; }
.wide-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 10, .9), rgba(8, 8, 10, 0) 70%); }
.wide-media .play-btn { position: absolute; z-index: 2; inset-inline-end: 14px; bottom: 12px; width: 44px; height: 44px; }
.wide-media .tile-title { font-size: 15px; inset-inline: 14px 70px; bottom: 12px; }
.wide-body { padding: 12px 14px 14px; display: grid; gap: 8px; }
.wide-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.wide-row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* category badges · price · lock hint */
.cat { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); height: 22px; padding: 0 8px; border-radius: 6px; font: 600 11.5px/1 var(--font-ui); white-space: nowrap; }
.cat--classic { background: rgba(10, 10, 12, .74); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.cat--selected { background: var(--ember); color: var(--on-ember); }
.cat--elite { background: linear-gradient(120deg, var(--ember), #FF8A3D); color: var(--on-ember); }
.cat-lg { height: 28px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.lock-hint { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); height: 22px; padding: 0 8px; border-radius: 6px; background: rgba(10, 10, 12, .8); color: var(--gold); font: 600 11px/1 var(--font-ui); box-shadow: inset 0 0 0 1px rgba(232, 196, 110, .35); white-space: nowrap; }
.stock { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; background: rgba(10, 10, 12, .8); font: 600 11px/1 var(--font-ui); white-space: nowrap; color: var(--text-2); }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock--ok { color: var(--ok); } .stock--out { color: var(--danger); } .stock--queue { color: var(--warn); }

/* key amount */
.keys { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); font: 600 14px/1 var(--font-ui); color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.keys .i { color: var(--key); }                    /* the currency glyph: Regular key, gold, 18px */
.keys .u { font-weight: 400; color: var(--text-2); font-size: .86em; }
.keys--sm { font-size: 12.5px; } .keys--md { font-size: 15px; } .keys--lg { font-size: 22px; gap: var(--ic-gap-sm); }
.keys--xl { font: 700 clamp(34px, 5vw, 52px)/1 var(--font-ui); gap: var(--ic-gap); letter-spacing: -.02em; }
.keys--xl .i { width: var(--ic-sec); height: var(--ic-sec); }
.keys--xl .u { font-size: 16px; letter-spacing: 0; }
.keys--strike { color: var(--text-3); text-decoration: line-through; }
.credit-amt { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); color: var(--credit); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 16. STATUS · STATS · METERS */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: var(--r-pill); font: 600 12.5px/1 var(--font-ui); white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.pill--nodot::before { display: none; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--danger { background: var(--danger-soft); color: var(--danger); }
.pill--off { background: var(--surface-3); color: var(--text-3); }
.pill--info { background: var(--info-soft); color: var(--info); }
.pill--ember { background: var(--ember-soft); color: var(--ember-hi); }
.pill--gold { background: rgba(232, 196, 110, .13); color: var(--gold); }
.pill--silver { background: rgba(201, 207, 216, .12); color: var(--silver); }

.stat { padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; }
.stat-l { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.stat-v { font: 700 24px/1.15 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: -.01em; }
.stat-v small { font-size: 13px; font-weight: 400; color: var(--text-2); margin-inline-start: 4px; letter-spacing: 0; }
.stat-s { font-size: 12px; color: var(--text-3); }
.stat--ember .stat-v { color: var(--ember-hi); }
.stat--credit .stat-v { color: var(--credit); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }

.meter { position: relative; height: 4px; border-radius: 4px; background: rgba(245, 241, 234, .1); overflow: hidden; }
.meter > i { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: var(--ember); transition: width .8s var(--ease-out); }
.meter--ok > i { background: var(--ok); } .meter--warn > i { background: var(--warn); } .meter--danger > i { background: var(--danger); }
.meter--off > i { background: var(--text-4); } .meter--light > i { background: var(--text); }
.meter--lg { height: 6px; }
/* motion v3 — first view of a page: meters fill from empty (the fill IS the reading). Live re-renders (.page--still),
   dialogs and popovers never refill. Reduced motion: instant (global rule). */
.page:not(.page--still) .meter > i { transition-delay: 120ms; }
@starting-style { .page:not(.page--still) .meter > i { width: 0; } }

/* ---------------------------------------------------------------- 17. LISTS · TABLES · ACCORDION */
.list { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; min-height: 64px; }
.list-row + .list-row { border-top: 1px solid var(--line); }
a.list-row, button.list-row { width: 100%; text-align: inherit; transition: background var(--d-1); }
a.list-row:hover, button.list-row:hover { background: var(--surface-2); }
a.list-row:active, button.list-row:active { background: var(--surface-3); transition-duration: 0ms; }   /* motion v3: rows never scale */
.list-ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.list-ic .i { width: var(--ic-btn); height: var(--ic-btn); }
.list-ic--ember { color: var(--ember-hi); }     /* state (unread) = icon colour only; the tile stays neutral */
.list-ic--ok { color: var(--ok); }
.list-ic--sc { }                                /* kept for markup compatibility: section colour no longer tints list tiles */
.list-main { flex: 1; min-width: 0; }
.list-main b { display: block; font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-main span { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.list-end { text-align: end; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.list-group { font: 600 12.5px/1 var(--font-ui); color: var(--text-3); padding: 18px 2px 10px; }
.delta-plus { color: var(--ok); font-weight: 600; } .delta-minus { color: var(--text); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.table th, .table td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.table th { font: 500 12.5px/1.3 var(--font-ui); color: var(--text-3); background: var(--bg-2); }
.table tr:last-child td { border-bottom: 0; }

.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; cursor: pointer; font: 600 16px/1.55 var(--font-ui); color: var(--text); min-height: 60px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .i { color: var(--text-3); transition: transform var(--d-2) var(--ease); flex: 0 0 auto; }
.acc[open] summary .i { transform: rotate(45deg); color: var(--ember); }
.acc summary:hover { color: var(--text); }
.acc-body { padding: 0 2px 22px; color: var(--text-2); line-height: 1.9; max-width: 78ch; }
.acc-body .link { margin-top: 10px; }

/* ---------------------------------------------------------------- 18. SECTION HEADERS · PAGE HEADERS · EMPTY · SKELETON */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head p { color: var(--text-3); font-size: 13.5px; margin-top: 2px; }
.sec-head .more { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); color: var(--text-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; min-height: 36px; transition: color var(--d-1); }
.sec-head .more:hover { color: var(--ember-hi); }

.page-head { position: relative; padding-block: var(--s-8) var(--s-6); }
.page-head .kicker { margin-bottom: 10px; }
.page-head h1 { max-width: 22ch; }
.page-head p { margin-top: 10px; max-width: 60ch; color: var(--text-2); font-size: var(--fs-lead); line-height: 1.75; }
.page-head--backdrop { padding-top: calc(var(--hdr-h) + var(--s-9)); margin-top: calc(var(--hdr-h) * -1); overflow: hidden; isolation: isolate; }
.page-head--backdrop .ph-bg { position: absolute; inset: 0; z-index: -1; }
.page-head--backdrop .ph-bg .cv { position: absolute; inset: 0; opacity: .5; filter: saturate(1.1); }
.page-head--backdrop .ph-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(10, 10, 12, .55) 55%, rgba(10, 10, 12, .8)), linear-gradient(to left, rgba(10, 10, 12, .85), rgba(10, 10, 12, 0) 70%); }

.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: var(--s-9) var(--s-5); border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: radial-gradient(60% 80% at 50% 0%, rgba(255, 90, 31, .06), transparent 70%); }
.empty-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); margin-bottom: 6px; box-shadow: inset 0 0 0 1px var(--line-2); }
.empty-ic .i { width: var(--ic-xl); height: var(--ic-xl); }
.empty h3 { font-size: 18px; }
.empty p { color: var(--text-3); max-width: 42ch; font-size: 14px; }
.empty .btn { margin-top: 10px; }

.skel { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-sm); }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(100%); background: linear-gradient(90deg, transparent, rgba(245, 241, 234, .05), transparent); animation: shimmer 1.4s infinite; }
.skel--line { height: 12px; border-radius: 6px; }
.skel--tile { width: var(--tile-w); aspect-ratio: 16 / 9; flex: 0 0 auto; }
@keyframes shimmer { to { transform: translateX(-100%); } }

/* ---------------------------------------------------------------- 19. RAILS */
.rail { position: relative; margin-top: var(--s-8); }
.rail:first-child { margin-top: 0; }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-inline: var(--gutter); margin-bottom: 12px; }
.rail-head h2 { font: 700 var(--fs-h2)/1.35 var(--font-display); display: flex; align-items: center; gap: 10px; }
.rail-head h2 small { font: 500 13px/1 var(--font-ui); color: var(--text-3); }
.rail-ic { flex: 0 0 auto; display: inline-grid; place-items: center; color: var(--text-2); }   /* plain section glyph: no tile */
.rail-ic .i { width: var(--ic-sec); height: var(--ic-sec); }
.rail-head .more { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); color: var(--text-3); font-size: 13.5px; font-weight: 500; white-space: nowrap; min-height: 36px; transition: color var(--d-1); }
.rail-head .more:hover { color: var(--ember-hi); }
.rail-track {
  display: flex; gap: var(--rail-gap, 10px); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 14px var(--gutter) 26px; margin-block: -14px -26px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-track--rank { --rail-gap: 14px; }
.rail-track--wide { --rail-gap: 14px; }
.rail-arrow {
  position: absolute; z-index: 8; top: 50px; bottom: 26px; width: calc(var(--gutter) - 6px); min-width: 40px; display: none; place-items: center;
  color: var(--text); background: linear-gradient(to var(--dir, left), rgba(10, 10, 12, .92), rgba(10, 10, 12, 0)); opacity: 0; transition: opacity var(--d-2);
}
.rail-arrow .i { width: var(--ic-sec); height: var(--ic-sec); transition: transform var(--d-1); }
.rail-arrow:hover .i { transform: scale(1.12); }
.rail-arrow--prev { right: 0; --dir: left; }
.rail-arrow--next { left: 0; --dir: right; }
.rail-arrow[disabled] { visibility: hidden; }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .rail-arrow { display: grid; }
  .rail:hover .rail-arrow { opacity: 1; }
  .rail-track { --rail-gap: 12px; }
}

/* ---------------------------------------------------------------- 20. AVATARS */
.avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; display: inline-grid; place-items: center; background: linear-gradient(140deg, var(--ember), #8A2A08); color: var(--on-ember); font: 700 16px/1 var(--font-display); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 30px; height: 30px; font-size: 12px; }
.avatar--lg { width: 64px; height: 64px; font-size: 24px; }
.avatar--xl { width: 112px; height: 112px; font-size: 42px; }
.avatar--ring { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ember); }

/* ---------------------------------------------------------------- 21. LAYERS: MODAL · SHEET · SIDE · POPOVER */
.layers { position: relative; z-index: 100; }
.layer { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: var(--s-5); }
.layer-scrim { position: absolute; inset: 0; background: var(--scrim); animation: fadeIn var(--d-2) var(--ease) both; }
.dlg {
  position: relative; width: 100%; max-width: 520px; max-height: min(88vh, 900px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--sh-3);
  animation: dlgIn 280ms var(--ease-out) both; overflow: hidden;
}
.dlg:focus, .dlg:focus-visible { outline: none; }
.dlg--sm { max-width: 420px; } .dlg--lg { max-width: 760px; } .dlg--xl { max-width: 1040px; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.dlg-head h2 { font: 700 20px/1.4 var(--font-display); }
.dlg-head p { color: var(--text-3); font-size: 13.5px; margin-top: 4px; }
.dlg-x { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(245, 241, 234, .07); color: var(--text-2); flex: 0 0 auto; margin: -4px -6px 0 0; transition: background-color var(--d-1) var(--ease), color var(--d-1) var(--ease), transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .dlg-x:hover { background: rgba(245, 241, 234, .14); color: var(--text); } }
.dlg-x:active { transform: scale(.9); transition-duration: var(--d-1), var(--d-1), var(--d-press); }
.dlg-body { padding: 18px 24px 22px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.dlg-foot { display: flex; gap: 10px; padding: 16px 24px 22px; border-top: 1px solid var(--line); background: var(--bg-2); flex-wrap: wrap; }
.dlg-foot .btn { flex: 1 1 auto; }
.dlg.is-leaving { animation: dlgOut 180ms var(--ease-out) both; }   /* motion v3 */
.layer.is-leaving .layer-scrim { animation: fadeOut 180ms var(--ease) both; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dlgOut { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
/* side panel (desktop: slides from the inline-end = left in RTL) */
.layer--side { justify-content: flex-end; padding: 0; }
.dlg--side { max-width: 480px; height: 100%; max-height: none; border-radius: 0; border-width: 0 0 0 1px; animation-name: sideIn; animation-duration: 380ms; animation-timing-function: var(--ease-drawer); }
.dlg--side.is-leaving { animation-name: sideOut; }
@keyframes sideIn { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes sideOut { to { transform: translateX(-100%); } }
/* full-screen */
.layer--full { padding: 0; }
.dlg--full { max-width: none; height: 100%; max-height: none; border-radius: 0; border: 0; background: var(--bg); }
/* mobile: dialogs become bottom sheets */
@media (max-width: 640px) {
  .layer:not(.layer--full) { align-items: flex-end; padding: 0; }
  .layer--side { justify-content: center; }
  .dlg:not(.dlg--full) { max-width: none; max-height: 92vh; max-height: 92dvh; height: auto; border-radius: 22px 22px 0 0; border-width: 1px 0 0; animation-name: sheetIn; animation-duration: 380ms; animation-timing-function: var(--ease-drawer); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .dlg:not(.dlg--full).is-leaving { animation-name: sheetOut; animation-duration: 200ms; animation-timing-function: var(--ease-out); }
  .dlg:not(.dlg--full)::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-3); z-index: 2; }
  .dlg-head { padding: 26px 20px 0; }
  .dlg-body { padding: 16px 20px 20px; }
  .dlg-foot { padding: 14px 20px calc(18px + env(safe-area-inset-bottom, 0px)); }
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetOut { to { transform: translateY(100%); } }
body.is-locked { overflow: hidden; }

/* popover (desktop wallet / avatar menu) */
.pop { position: fixed; z-index: 120; width: 340px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 8px; animation: popIn var(--d-2) var(--ease-out) both; transform-origin: top left; }
.pop.is-leaving { animation: fadeOut 120ms var(--ease-out) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.menu a, .menu button { display: flex; align-items: center; gap: var(--ic-gap); width: 100%; min-height: 46px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font-size: 14.5px; text-align: start; transition: background var(--d-1), color var(--d-1); }
.menu a:hover, .menu button:hover { background: var(--surface-2); color: var(--text); }
.menu .i { color: var(--text-3); }
.menu .is-danger, .menu .is-danger .i { color: var(--danger); }
.menu hr { margin: 6px 4px; }
.menu-head { display: flex; align-items: center; gap: 12px; padding: 12px; }
.menu-head b { display: block; font-weight: 600; font-size: 15px; }
.menu-head span { font-size: 12.5px; color: var(--text-3); }

/* wallet panel content (popover + sheet) */
.wp { display: grid; gap: 14px; padding: 10px; }
.wp-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.wp-top .stat-l { margin-bottom: 4px; }
.wp-plan { padding: 14px 2px; border-block: 1px solid var(--line); display: grid; gap: 10px; }
.wp-plan .row { justify-content: space-between; font-size: 13.5px; }
.wp-lots { display: grid; gap: 4px; font-size: 12.5px; color: var(--text-3); }
.wp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wp-links { display: flex; gap: 6px; justify-content: center; border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------------------------------------------------------------- 22. TOASTS */
.toasts { position: fixed; z-index: 300; inset-inline: 0; top: calc(var(--hdr-h) + 10px); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding-inline: 16px; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: min(520px, 100%); padding: 12px 18px 12px 14px;
  border-radius: var(--r-md); background: rgba(28, 28, 34, .97); border: 1px solid var(--line-2); box-shadow: var(--sh-2);
  font: 500 14.5px/1.5 var(--font-ui); color: var(--text); animation: toastIn var(--d-3) var(--ease-out) both;
}
.toast .i { width: var(--ic-btn); height: var(--ic-btn); flex: 0 0 auto; }
.toast--ok .i { color: var(--ok); } .toast--err .i { color: var(--danger); } .toast--info .i { color: var(--ember-hi); }
.toast--err { border-color: rgba(255, 90, 110, .35); }
.toast.is-leaving { animation: toastOut 200ms var(--ease-out) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }
/* a dialog/sheet is open: toasts move out of its way — to the top edge, inline-start corner (right in RTL),
   above the scrim. Phone sheets start ≥ 8dvh below the top, so a compact toast sits above the sheet head. */
body:has(#layers .layer:not(.is-leaving)) .toasts { top: calc(env(safe-area-inset-top, 0px) + 10px); justify-items: start; padding-inline: 16px; }
@media (max-width: 640px) {
  body:has(#layers .layer:not(.is-leaving)) .toasts { top: calc(env(safe-area-inset-top, 0px) + 6px); padding-inline: 10px; }
  body:has(#layers .layer:not(.is-leaving)) .toast { padding: 7px 12px 7px 10px; font-size: 13px; line-height: 1.35; gap: 8px; }
  body:has(#layers .layer:not(.is-leaving)) .toast .i { width: var(--ic-sm); height: var(--ic-sm); }
  body:has(#layers .layer:not(.is-leaving)) .toast:not(:first-child) { display: none; }   /* newest only (motion v3: newest is first) */
}

/* ---------------------------------------------------------------- 23. GATE (live per-section copy · SCREEN art collage · section colour --sc) */
.layer--gate .dlg { max-width: 560px; background: var(--surface); }
.gate-in { --sc: var(--ember); }
.gate-art { position: relative; height: 200px; overflow: hidden; }
.gate-art .collage { position: absolute; inset: -20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; transform: rotate(-6deg) scale(1.15); opacity: .55; filter: saturate(1.1); }
.gate-art .collage > div { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.gate-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 6%, rgba(20, 20, 24, .5) 58%, rgba(20, 20, 24, .15)), radial-gradient(80% 110% at 90% 100%, color-mix(in srgb, var(--sc) 34%, transparent), transparent 70%); }
.gate-art .gate-mark { position: absolute; z-index: 2; inset-inline-start: 24px; bottom: 16px; display: flex; align-items: center; gap: 12px; }
.gate-art .gate-mark img { width: 44px; height: 44px; }
.gate-game { position: absolute; inset: 0; }
.gate-game .cv { position: absolute; inset: 0; opacity: .8; }
.gate-art--game { height: 230px; }
.gate-art .gate-mark { flex-wrap: wrap; inset-inline-end: 24px; }
.gate-title { flex-basis: 100%; order: -1; font: 800 clamp(18px, 2.6vw, 22px)/1.35 var(--font-display); text-shadow: 0 2px 14px rgba(0, 0, 0, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gate-sector { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px 6px 12px; border-radius: 12px; background: rgba(10, 10, 12, .74); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 45%, transparent); font: 600 14px/1.2 var(--font-ui); color: var(--text); }
.gate-sector .i { color: var(--sc); }
.gate-sector > span { display: block; }
.gate-body { padding: 6px 26px 8px; }
.gate-body h2 { font: 800 clamp(21px, 3vw, 26px)/1.45 var(--font-display); margin: 8px 0 10px; text-wrap: balance; }
.gate-body p { color: var(--text-2); line-height: 1.85; }
.gate-perks { display: grid; gap: 10px; margin: 18px 0 6px; }
.gate-perks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.gate-ck { flex: 0 0 auto; display: inline-grid; place-items: center; color: var(--sc); }   /* plain check in the section tint: no tile */
.gate-actions { display: grid; gap: 10px; padding: 18px 26px 24px; }
.gate-actions .btn--subtle { justify-self: center; }
@media (max-width: 640px) { .gate-art { height: 160px; } .gate-body { padding: 0 20px 6px; } .gate-actions { padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px)); } }

.layer--gate .dlg-head { position: absolute; z-index: 4; top: 0; inset-inline: 0; padding: 14px 14px 0; justify-content: flex-end; pointer-events: none; }
.layer--gate .dlg-x { pointer-events: auto; background: rgba(10, 10, 12, .6); margin: 0; }
.layer--gate .dlg-foot { display: none; }
.tile .lock-hint b, .poster .lock-hint b { display: none; }
.tile .lock-hint, .poster .lock-hint { padding: 0 6px; }
@media (min-width: 1024px) { .tile .lock-hint b { display: inline; } .tile .lock-hint { padding: 0 8px; } }
.lock-hint b { font-weight: 600; }

/* ---------------------------------------------------------------- 24. SEARCH OVERLAY */
.search-ov { position: fixed; inset: 0; z-index: 110; background: rgba(8, 8, 10, .97); overflow-y: auto; overscroll-behavior: contain; animation: fadeIn var(--d-2) both; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .search-ov { background: rgba(8, 8, 10, .9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); } }
.search-ov.is-leaving { animation: fadeOut 160ms both; }
.search-ov.is-instant { animation: none; }   /* motion v3: keyboard-opened search appears at once */
.so-top { position: sticky; top: 0; z-index: 2; padding: 18px var(--gutter) 14px; background: linear-gradient(to bottom, rgba(8, 8, 10, .98) 70%, rgba(8, 8, 10, 0)); }
.so-bar { display: flex; align-items: center; gap: 12px; max-width: 980px; margin-inline: auto; }
.so-field { position: relative; flex: 1; }
.so-field .i { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); width: var(--ic-sec); height: var(--ic-sec); color: var(--text-3); pointer-events: none; }
.so-input { width: 100%; height: 62px; padding: 0 56px 0 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); font: 500 clamp(17px, 2.2vw, 22px)/1 var(--font-ui); color: var(--text); }
.so-input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px var(--ember-soft); }
.so-input::placeholder { color: var(--text-4); }
.so-input::-webkit-search-cancel-button { display: none; }
.so-chips { max-width: 980px; margin: 14px auto 0; }
.so-body { max-width: 1180px; margin-inline: auto; padding: 8px var(--gutter) 60px; }
.so-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 600 14px/1.4 var(--font-ui); color: var(--text-3); margin: 18px 0 14px; }
.so-empty { padding: 60px 0; text-align: center; color: var(--text-3); }
.so-empty b { display: block; font: 700 20px/1.4 var(--font-display); color: var(--text); margin-bottom: 6px; }

/* ---------------------------------------------------------------- 25. COOKIE BAR (live copy) */
.cookie { position: fixed; z-index: 90; inset-inline-start: 16px; bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom, 0px)); width: min(460px, calc(100vw - 32px)); display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--sh-3); animation: cookieIn .5s var(--ease-out) both; }
.cookie-ic { flex: 0 0 auto; display: inline-grid; place-items: center; color: var(--text-2); margin-top: 1px; }   /* plain neutral glyph: no tile */
.cookie-ic .i { width: var(--ic-sec); height: var(--ic-sec); }
.cookie-b { min-width: 0; }
.cookie h3 { font: 700 15.5px/1.4 var(--font-display); }
.cookie p { font-size: 13.5px; color: var(--text-2); margin: 6px 0 14px; line-height: 1.75; }
.cookie .row { flex-wrap: wrap; }
.cookie .btn { flex: 1 1 auto; }
.cookie.is-leaving { animation: fadeOut 200ms both; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } }
@media (min-width: 1024px) { .cookie { bottom: 24px; inset-inline-start: 24px; } }

/* ---------------------------------------------------------------- 26. BANNED + STUB SCREENS */
.full-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 40px var(--gutter); text-align: center; position: relative; overflow: hidden; }
.full-screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 50% at 50% 40%, rgba(255, 90, 31, .1), transparent 70%); }
.full-screen > * { position: relative; }
.full-screen h1 { margin: 18px 0 10px; }
.banned h1 { color: var(--danger); }
.banned-ic { width: 72px; height: 72px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--danger-soft); color: var(--danger); }
.full-screen p { color: var(--text-2); max-width: 52ch; margin-inline: auto; line-height: 1.85; }

.stub { min-height: 62vh; display: grid; place-items: center; padding: var(--s-9) var(--gutter); }
.stub-card { position: relative; width: min(680px, 100%); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.stub-art { position: relative; aspect-ratio: 21 / 8; overflow: hidden; }
.stub-art .collage { position: absolute; inset: -10%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; transform: rotate(-5deg); opacity: .5; }
.stub-art .collage > div { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; }
.stub-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 2%, rgba(20, 20, 24, .3)); }
.stub-body { padding: 4px 28px 28px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.stub-body .pill { margin-top: -14px; position: relative; }
.stub-body h1 { font-size: clamp(22px, 3vw, 30px); }
.stub-body p { color: var(--text-3); max-width: 46ch; }
.stub-body code { font: 500 12.5px/1 var(--font-ui); color: var(--text-3); direction: ltr; background: var(--bg-2); padding: 5px 9px; border-radius: 6px; }

/* ---------------------------------------------------------------- 27. MISC UTILITIES */
.glass-line { border: 1px solid var(--line); }
.badge-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ember); color: var(--on-ember); font: 700 11px/1 var(--font-ui); }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); line-height: 1.75; }
.note .i { flex: 0 0 auto; margin-top: calc((1.75em - var(--ic-sm)) / 2); color: var(--text-3); }   /* centred on the first text line */
.note--warn { background: var(--warn-soft); border-color: rgba(255, 181, 71, .3); color: #FFD9A0; }
.note--warn .i { color: var(--warn); }
.note--danger { background: var(--danger-soft); border-color: rgba(255, 90, 110, .35); color: #FFC4CC; }
.note--danger .i { color: var(--danger); }
.note--ok { background: var(--ok-soft); border-color: rgba(70, 211, 150, .3); color: #BDF2D9; }
.note--ok .i { color: var(--ok); }
.note--ember { background: var(--ember-soft); border-color: var(--ember-line); color: #FFD3C1; }
.note--ember .i { color: var(--ember-hi); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; }
.kv dt { color: var(--text-3); }
.kv dd { text-align: end; font-weight: 500; font-variant-numeric: tabular-nums; }
.cred { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.cred-l { font-size: 12px; color: var(--text-3); }
.cred-v { flex: 1; min-width: 0; font: 500 15px/1.4 var(--font-ui); direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-hint { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9px; border: 1px dashed var(--line-3); color: var(--text-2); font-size: 13px; background: var(--bg-2); }
.dev-hint b { color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: .12em; direction: ltr; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 260; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: confFall var(--t, 2.4s) var(--ease) forwards; }
@keyframes confFall { to { transform: translate3d(var(--x, 0), 105vh, 0) rotate(var(--r, 540deg)); opacity: .9; } }

/* ---------------------------------------------------------------- 28. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .kb, .hero .kb { animation: none !important; transform: none !important; }
  .confetti { display: none; }
  /* motion v3 — gentler, not dead: keep what carries meaning */
  .spinner, .btn.is-busy::before { animation-duration: .8s !important; animation-iteration-count: infinite !important; }   /* "working…" must look alive */
  .code-in .cell.is-cur:empty::after { animation-duration: 1s !important; animation-iteration-count: infinite !important; }
  .layer-scrim, .dlg, .pop, .toast, .search-ov:not(.is-instant), .cookie { animation: rmFadeIn 160ms ease both !important; }      /* fade, never slide */
  .layer.is-leaving .layer-scrim, .dlg.is-leaving, .pop.is-leaving, .toast.is-leaving, .search-ov.is-leaving, .cookie.is-leaving { animation: rmFadeOut 120ms ease both !important; }
  .btn, .chip, .seg button, .tab, .nav a, .tabbar a, .tabbar button, .hdr-btn, .mini-btn, .input, .select, .textarea, .check input, .list-row, .menu a, .menu button, .tile-hover, .dlg-x, .soc {
    transition-duration: 140ms !important;       /* colour/opacity feedback stays */
  }
  .tile:hover, .tile:focus-visible, .tile:hover > .cv, .poster:hover, .play-btn:hover { transform: none !important; }   /* no hover travel */
}
@keyframes rmFadeIn { from { opacity: 0; } }
@keyframes rmFadeOut { to { opacity: 0; } }

/* =====================================================================
   29. HOME (shell-owned signature page)
   ===================================================================== */
/* -- hero carousel -- */
.hero { position: relative; height: max(640px, 90svh); max-height: 980px; overflow: hidden; background: #050506; isolation: isolate; }
.hero-stage { position: absolute; inset: 0; touch-action: pan-y; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity var(--d-cine) var(--ease), visibility var(--d-cine); }
.hero-slide.is-on { opacity: 1; visibility: visible; z-index: 1; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media .cv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 38% 42%; }
.hero-media .cv-fb { position: absolute; inset: 0; }
.hero-slide.is-on .kb { animation: kb 20s linear both; }
@keyframes kb { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.17) translate3d(2.2%, -1.6%, 0); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 12, .93) 30%, rgba(10, 10, 12, .62) 50%, rgba(10, 10, 12, .1) 70%, rgba(10, 10, 12, 0) 80%),
    linear-gradient(to bottom, rgba(10, 10, 12, .65) 0%, rgba(10, 10, 12, 0) 22%);
}
.hero-copy { position: absolute; inset-inline: 0; bottom: 92px; z-index: 2; display: grid; justify-items: start; gap: 12px; }
.hero-copy > * { max-width: 640px; }
.hero-k { margin-bottom: 2px; text-shadow: 0 1px 12px rgba(0, 0, 0, .85); }
.hero-title { font: 800 clamp(30px, 8.4vw, 76px)/1.16 var(--font-display); letter-spacing: -.012em; max-width: 15ch; text-wrap: balance; text-shadow: 0 4px 30px rgba(0, 0, 0, .55); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { color: var(--text); font-size: 14px; }
.hero-meta .i { color: var(--text-2); }
.hero-rate { color: var(--text); font-weight: 600; }
.hero-rate .i { color: var(--text-2); }
.hero-pitch { font-size: clamp(14.5px, 1.3vw, 18px); line-height: 1.8; color: rgba(245, 241, 234, .86); max-width: 52ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-tags .tag { background: rgba(10, 10, 12, .45); border-color: var(--line-3); color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.hero-actions .btn--lg { min-width: 150px; }
.hero-price { display: none; align-items: center; gap: 10px; margin-inline-start: 10px; padding-inline-start: 18px; border-inline-start: 1px solid var(--line-3); }
.hero-price small { font-size: 12.5px; color: var(--text-2); }
.hero-slide.is-on .hero-copy > * { animation: heroRise .9s var(--ease-out) both; }
.hero-slide.is-on .hero-copy > :nth-child(1) { animation-delay: .15s; }
.hero-slide.is-on .hero-copy > :nth-child(2) { animation-delay: .22s; }
.hero-slide.is-on .hero-copy > :nth-child(3) { animation-delay: .32s; }
.hero-slide.is-on .hero-copy > :nth-child(4) { animation-delay: .4s; }
.hero-slide.is-on .hero-copy > :nth-child(5) { animation-delay: .46s; }
.hero-slide.is-on .hero-copy > :nth-child(6) { animation-delay: .52s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
/* perf (phones): the same rise without the animated blur (a per-frame repaint of 6 text layers) + lighter glass */
@media (max-width: 767px) {
  @keyframes heroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .hdr { -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); }
  .search-ov { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.page--still .hero-slide.is-on .hero-copy > * { animation: none; }   /* motion v3: live re-render ≠ new arrival */
.hero-ctrl { position: absolute; inset-inline: 0; bottom: 30px; z-index: 3; display: flex; align-items: center; gap: 12px; }
.hero-pager { display: flex; gap: 6px; }
.hp { position: relative; display: block; width: 30px; height: 30px; }
.hp-art, .hp-t { display: none; }
.hp-bar { position: absolute; inset-inline: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: rgba(245, 241, 234, .25); overflow: hidden; }
/* motion v3: the pager fills on transform (compositor), not width */
.hp-bar i { position: absolute; inset: 0; background: var(--text); border-radius: 3px; transform: scaleX(0); transform-origin: right; }   /* right = inline-start (RTL) */
.hp.is-on .hp-bar i { transform: none; }
.hero.is-ticking .hp.is-on .hp-bar i { transform: scaleX(0); animation: hpFill 8s linear forwards; }
.hero.is-paused .hp.is-on .hp-bar i { transform: none; animation: none; }
@keyframes hpFill { to { transform: none; } }
.hero-pause { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-3); color: var(--text); background: rgba(10, 10, 12, .4); margin-inline-start: auto; transition: border-color var(--d-1) var(--ease), background-color var(--d-1) var(--ease), transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hero-pause:hover { border-color: var(--text); } }
.hero-pause:active { transform: scale(.92); transition-duration: var(--d-1), var(--d-1), var(--d-press, 100ms); }   /* motion v3 */
.hero-pause .i { width: var(--ic-sm); height: var(--ic-sm); }
@media (min-width: 640px) {
  .hero-copy { bottom: 110px; }
  .hero-price { display: inline-flex; }
}
@media (min-width: 1024px) {
  .hero { height: max(680px, 94vh); }
  .hero-media::after {
    background:
      linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 12, .78) 16%, rgba(10, 10, 12, .1) 45%, rgba(10, 10, 12, 0) 60%),
      linear-gradient(to left, rgba(10, 10, 12, .95) 0%, rgba(10, 10, 12, .82) 24%, rgba(10, 10, 12, .45) 44%, rgba(10, 10, 12, 0) 66%),
      linear-gradient(to bottom, rgba(10, 10, 12, .55) 0%, rgba(10, 10, 12, 0) 20%);
  }
  .hero-copy { bottom: 236px; gap: 14px; }
  .hero-ctrl { bottom: 112px; justify-content: flex-end; }
  .hero-pager { gap: 10px; order: 2; }
  .hero-pause { order: 1; margin-inline-start: 0; margin-inline-end: 6px; }
  .hp { width: 132px; height: auto; display: grid; gap: 6px; text-align: start; opacity: .55; transition: opacity var(--d-2); }
  .hp:hover, .hp.is-on { opacity: 1; }
  .hp-art { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow var(--d-2); }
  .hp-art .cv { position: absolute; inset: 0; }
  .hp.is-on .hp-art { box-shadow: 0 0 0 2px var(--text); }
  .hp-t { display: block; font: 600 12px/1.35 var(--font-ui); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: right; }
  .hp.is-on .hp-t { color: var(--text); }
  .hp-bar { position: relative; top: auto; margin: 0; height: 2px; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .hp { width: 104px; }
  .hp-t { display: none; }
}

/* -- v3 home rhythm: hero → top pair → blocks (panels) ↔ bands (rails) ↔ plans/invites -- */
.hero-k { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); font: 600 13px/1.4 var(--font-ui); color: var(--ember-hi); text-shadow: 0 1px 12px rgba(0, 0, 0, .85); margin-bottom: 2px; }
.home-body { position: relative; z-index: 3; }
.home-body > * + * { margin-top: var(--s-9); }
.home-body > .home-top + * { margin-top: var(--s-8); }
.home-blocks { display: grid; gap: var(--s-7); }
.home-cont .rail { margin-top: 0; }
.home-top > .blk + .blk { margin-top: 0; }

/* admin promo banner (only when homeBanner.enabled) */
.promo-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: var(--r-lg); background: radial-gradient(90% 140% at 100% 0%, rgba(255, 90, 31, .16), transparent 60%), var(--surface); border: 1px solid var(--ember-line); }
.promo-b { display: grid; gap: 6px; justify-items: start; }
.promo-b h2 { font-size: clamp(19px, 2.2vw, 24px); }
.promo-b p { color: var(--text-2); }

/* top pair: brand case (live welcome panel) + «حالة الاشتراك» */
.home-top { display: grid; gap: 14px; margin-top: 4px; }
.home-top .subc { order: -1; }
@media (min-width: 900px) {
  .home-top { grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr); gap: 18px; margin-top: -84px; align-items: stretch; }
  .home-top .subc { order: 0; }
}
.case.blk {
  display: grid; align-content: center; padding: 26px 22px 22px;
  background: radial-gradient(90% 120% at 100% 0%, rgba(255, 90, 31, .17), transparent 55%), linear-gradient(180deg, rgba(26, 26, 32, .97), rgba(20, 20, 24, .97));
  box-shadow: var(--sh-3);
}
.case-t { font: 800 clamp(27px, 4vw, 50px)/1.3 var(--font-display); text-wrap: balance; letter-spacing: -.005em; }
.case-t em { font-style: normal; color: var(--ember); }
.case-t .wc, .case-d .wc { font-weight: inherit; }
.case-d { margin-top: 12px; color: var(--text-2); font-size: var(--fs-lead); line-height: 1.8; max-width: 56ch; }
.case-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.case--member .case-t { font-size: clamp(26px, 3.4vw, 44px); }
.case-actions .btn { flex: 1 1 150px; }
.case-save { display: flex; align-items: center; gap: var(--ic-gap); margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14px; line-height: 1.6; }
.case-save > span { text-wrap: balance; }
.case-save .nw { white-space: nowrap; }
.case-save > .i { color: var(--key); flex: 0 0 auto; }
.case-save b { color: var(--key); font: 700 18px/1 var(--font-ui); letter-spacing: -.01em; }
@media (min-width: 640px) { .case-actions .btn { flex: 0 0 auto; } }
@media (min-width: 900px) { .case.blk { padding: 36px 40px 28px; } }

.subc.blk { display: grid; gap: 16px; align-content: start; padding: 20px 18px 18px; box-shadow: var(--sh-3); }
.subc-head { display: flex; align-items: center; gap: 10px; }
.subc-head h2 { flex: 1; font-size: 17px; }
.subc-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.subc-keys b { display: block; font: 700 clamp(42px, 5vw, 56px)/1 var(--font-ui); letter-spacing: -.03em; color: var(--key); font-variant-numeric: tabular-nums; }
.subc-keys span { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); margin-top: 8px; color: var(--text-2); font-size: 13.5px; }
.subc-keys span .i { color: var(--key); }
.subc.is-off .subc-keys b { color: var(--text-2); }
.subc-tier { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); height: 34px; padding: 0 12px; border-radius: 10px; background: color-mix(in srgb, var(--sc) 12%, transparent); color: var(--sc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 32%, transparent); font: 600 13.5px/1 var(--font-ui); white-space: nowrap; }
.subc.tier-none .subc-tier, .subc.tier-off .subc-tier { color: var(--text-2); }
.subc-bat-l { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; font-size: 13px; color: var(--text-2); }
.subc-bat-l b { color: var(--text); font: 700 15px/1 var(--font-ui); }
.subc .meter { height: 8px; }
.subc-cells { display: flex; flex-wrap: wrap; border-block: 1px solid var(--line); }   /* hairline rows, no cards inside the card */
.subc-cells > div { flex: 1 1 130px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 2px; }
.subc-cells > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 14px; }
.subc-cells dt { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); color: var(--text-3); font-size: 12.5px; }
.subc-cells dd { font: 700 14px/1.2 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--text); }
.subc-cells dd.is-warn { color: var(--warn); } .subc-cells dd.is-danger { color: var(--danger); } .subc-cells dd.is-off { color: var(--text-3); }
@media (min-width: 900px) { .subc.blk { padding: 24px 24px 22px; } }
/* guests / never-subscribed: what a plan gives (live plan copy) instead of zeros */
.subc-plans { border-top: 1px solid var(--line); }
.subc-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t p" "k p"; align-items: center; gap: 6px 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.subc-plan-t { grid-area: t; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.subc-plan .tier-mark { font: 700 15.5px/1.3 var(--font-display); }
.subc-plan-k { grid-area: k; display: inline-flex; align-items: center; gap: 6px; }
.subc-plan-k small, .subc-plan-p small { color: var(--text-3); font-size: 12px; font-weight: 400; }
.subc-plan-p { grid-area: p; display: grid; justify-items: end; gap: 2px; font-size: 12.5px; color: var(--text-2); text-align: end; }
.subc-plan-p > span { white-space: nowrap; }
.subc-plan-p b { font: 700 22px/1 var(--font-ui); color: var(--text); letter-spacing: -.02em; margin-inline-end: 3px; }
.subc-plan-f { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); height: 22px; padding: 0 8px; border-radius: 6px; background: var(--ember-soft); color: var(--ember-hi); font: 600 11.5px/1 var(--font-ui); white-space: nowrap; }
.subc-plan.is-gold .subc-plan-p b { color: var(--text); }

/* «كيف يعمل الموقع» — 3 real steps, separated by hairlines (no nested cards, no giant numerals) */
.how-steps { display: grid; }
.how-step { padding: 16px 0; }
.how-step + .how-step { border-top: 1px solid var(--line); }
.how-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.how-ic { display: inline-grid; place-items: center; color: var(--text-2); }   /* plain neutral step glyph: no tile, no per-step colour */
.how-ic .i { width: var(--ic-sec); height: var(--ic-sec); }
.how-n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 8px; font: 700 13px/1 var(--font-ui); color: var(--text-2); background: var(--surface-3); }
.how-step h3 { font-size: 17.5px; }
.how-step p { color: var(--text-2); font-size: 14.5px; line-height: 1.8; margin-top: 4px; max-width: 38ch; }
@media (min-width: 760px) {
  .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how-step { padding: 4px 24px 4px 0; padding-inline: 24px; }
  .how-step:first-child { padding-inline-start: 0; }
  .how-step + .how-step { border-top: 0; border-inline-start: 1px solid var(--line); }
}

/* «وصل حديثاً» — 1 lead + 3 (newest added, in stock) */
.newa-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .newa-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; } }
.newa-lead { display: grid; gap: 14px; align-content: start; }
.newa-art { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); isolation: isolate; }
.newa-art .cv, .newa-thumb .cv { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .newa-art:hover .cv, .newa-thumb:hover .cv { transform: scale(1.04); } }
.newa-badge { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 8px; background: rgba(10, 10, 12, .84); color: var(--ok); font: 600 12.5px/1 var(--font-ui); box-shadow: inset 0 0 0 1px rgba(70, 211, 150, .42); }
.newa-badge--sm { top: 6px; inset-inline-start: 6px; height: 22px; padding: 0 7px; font-size: 11px; border-radius: 6px; }
.newa-body { display: grid; gap: 10px; }
.newa-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag--plat .i { color: var(--text-3); }
.newa-body h3 { font: 800 clamp(20px, 2.2vw, 26px)/1.35 var(--font-display); }
.newa-body h3 a:hover, .newa-mb h4 a:hover { color: var(--ember-hi); }
.newa-pitch { color: var(--text-2); font-size: 14px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.newa-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.newa-price { display: inline-flex; align-items: baseline; gap: 8px; }
.newa-price small { color: var(--text-3); font-size: 12.5px; }
.newa-list { display: grid; align-content: start; }
.newa-mini { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; padding-block: 12px; }
.newa-mini:first-child { padding-top: 0; }
.newa-mini + .newa-mini { border-top: 1px solid var(--line); }
.newa-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.newa-mb { display: grid; gap: 7px; min-width: 0; }
.newa-mb h4 { font: 700 15px/1.4 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.newa-empty { color: var(--plus); padding: 18px 0; }
@media (min-width: 640px) { .newa-mini { grid-template-columns: 150px minmax(0, 1fr); } }

/* «الأعلى طلباً بالسعودية» — a refined ranked chart (rank · art · title · price · play) */
.topd-list { display: grid; column-gap: 32px; }
@media (min-width: 900px) { .topd-list { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(5, auto); } }
.topd-row { display: grid; grid-template-columns: 28px 92px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); border-radius: 0; transition: background var(--d-1); }
.topd-row:hover { background: rgba(245, 241, 234, .03); }
.topd-row:active { background: rgba(245, 241, 234, .06); transition-duration: 0ms; }   /* motion v3 */
.topd-n { font: 700 17px/1 var(--font-ui); color: var(--text-3); text-align: center; }
.topd-n.is-top { color: var(--ember-hi); }
.topd-art { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.topd-art .cv { position: absolute; inset: 0; }
.topd-row.is-out .topd-art .cv { filter: grayscale(.55) brightness(.75); }
.topd-main { min-width: 0; }
.topd-main b { display: block; font: 700 14.5px/1.4 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topd-row:hover .topd-main b { color: var(--ember-hi); }
.topd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.topd-end { display: flex; align-items: center; gap: 12px; }
.topd-end .mini-btn { width: 36px; height: 36px; }
@media (max-width: 899.98px) {
  .topd-list li:nth-child(n+7) { display: none; }
  .topd-list li:nth-child(6) .topd-row { border-bottom: 0; }
}
@media (min-width: 900px) { .topd-list li:nth-child(5n) .topd-row { border-bottom: 0; } .topd-row { grid-template-columns: 30px 112px minmax(0, 1fr) auto; } }
.topd-meta .keys { display: none; }
@media (max-width: 420px) { .topd-row { grid-template-columns: 22px 76px minmax(0, 1fr) auto; gap: 10px; } .topd-end .keys { display: none; } .topd-meta .keys { display: inline-flex; } }

/* bands = the browsing zone (rails), visibly separate from the panels */
.band { padding-block: var(--s-8); background: var(--bg-2); border-block: 1px solid var(--line); }
.band > .rail + .rail { margin-top: var(--s-8); }

/* plans teaser */
.plans-tz .blk-head { margin-bottom: var(--s-5); }
.plans-tz-grid { display: grid; gap: 14px; }
.plan-tz { position: relative; display: grid; gap: 16px; align-content: start; padding: 26px 22px 22px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-2); }
.plan-tz.is-gold { border-color: var(--ember-line); background: radial-gradient(110% 80% at 100% 0%, rgba(255, 90, 31, .2), transparent 58%), var(--surface); box-shadow: 0 34px 80px -34px rgba(255, 90, 31, .45); }
.plan-flag { position: absolute; top: -1px; inset-inline-end: 22px; display: inline-flex; align-items: center; gap: var(--ic-gap-sm); padding: 7px 12px 8px; border-radius: 0 0 10px 10px; background: var(--ember); color: var(--on-ember); font: 700 12px/1 var(--font-ui); }
.plan-tz-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plan-tz-head .tier-mark { font: 800 22px/1.3 var(--font-display); }
.plan-tz-head .tier-mark .i { width: var(--ic-sec); height: var(--ic-sec); }
.plan-tz-price { display: flex; align-items: flex-end; gap: 8px; }
.plan-tz-price b { font: 700 clamp(44px, 5vw, 60px)/1 var(--font-ui); letter-spacing: -.035em; }
.plan-tz-price span { font-size: 15px; color: var(--text-2); line-height: 1.25; padding-bottom: 5px; }
.plan-tz-price small { font-size: 12px; color: var(--text-3); }
.plan-tz-big { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.plan-tz-f li { display: flex; align-items: flex-start; gap: var(--ic-gap); padding: 5px 0; font-size: 14.5px; color: var(--text-2); }
.plan-tz-f .i { color: var(--ok); margin-top: calc((1.65em - var(--ic-sm)) / 2); }
.plan-tz .btn { margin-top: 4px; }
@media (min-width: 760px) { .plans-tz-grid { grid-template-columns: 1fr 1fr; gap: 18px; } .plan-tz { padding: 32px 30px 28px; } }
@media (max-width: 759.98px) { .plan-tz.is-gold { order: -1; } }   /* phones: the recommended plan first */

/* invites (live: PS Plus in --plus · العضوية in --key) */
.invites { display: grid; gap: 14px; }
.invite { --sc: var(--ember); position: relative; display: block; min-height: 250px; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid color-mix(in srgb, var(--sc) 30%, var(--line)); isolation: isolate; transition: border-color var(--d-2); }
.invite:hover { border-color: color-mix(in srgb, var(--sc) 60%, transparent); }
.invite-art { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3px; opacity: .45; transition: transform 1.4s var(--ease-out), opacity var(--d-3); }
.invite-art > div { position: relative; overflow: hidden; }
.invite-art .cv { position: absolute; inset: 0; }
.invite::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(10, 10, 12, .97) 0%, rgba(10, 10, 12, .84) 50%, rgba(10, 10, 12, .4) 100%), radial-gradient(70% 90% at 100% 100%, color-mix(in srgb, var(--sc) 22%, transparent), transparent 70%); }
@media (hover: hover) and (pointer: fine) { .invite:hover .invite-art { transform: scale(1.06); opacity: .58; } }
.invite-b { position: relative; display: grid; justify-items: start; align-content: end; gap: 10px; min-height: 250px; padding: 26px; max-width: 440px; }
.invite-badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 8px; background: color-mix(in srgb, var(--sc) 15%, rgba(10, 10, 12, .6)); color: var(--sc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 40%, transparent); font: 600 12.5px/1 var(--font-ui); }
.invite-b h3 { font: 800 clamp(21px, 2.4vw, 28px)/1.35 var(--font-display); }
.invite-b p { color: var(--text-2); line-height: 1.8; }
.invite-b .btn { margin-top: 6px; }
@media (min-width: 760px) { .invites { grid-template-columns: 1fr 1fr; gap: 18px; } .invites--solo { grid-template-columns: 1fr; } }
.invites--solo .invite-b { max-width: 560px; }

/* FAQ (live 11 · 5 shown · expands in place) */
.faq-list .acc:first-child { border-top: 1px solid var(--line); }
.faq [data-extra] { display: none; }
.faq.is-all [data-extra] { display: block; }
.faq.is-all .blk-foot { display: none; }
.faq-i summary { justify-content: flex-start; gap: 12px; }
.faq-q { flex: 1; min-width: 0; }
.faq-ic { flex: 0 0 auto; display: inline-grid; place-items: center; color: var(--text-3); }   /* plain neutral glyph: no tile */
.acc summary .faq-ic .i, .acc[open] summary .faq-ic .i { transform: none; color: inherit; }
.faq-i .acc-body .btn { margin-top: 12px; }
@media (min-width: 640px) { .faq-i .acc-body { padding-inline-start: 32px; } }

/* ---------------------------------------------------------------- v3 BLOCKS (section panels) · page head band
   A block = one clearly separated section, its own room. --sc = the section's colour, carried by:
   a lit top edge that follows the corner radius, a section-tinted head wash fading into the panel,
   a tinted hairline, and the head icon tile. Main action inside = ember. Same parts on every page. */
.blk {
  --sc: var(--ember);
  position: relative; border-radius: var(--r-lg); padding: 22px 16px 22px;
  background:
    radial-gradient(80% 170px at 100% 0%, color-mix(in srgb, var(--sc) 10%, transparent), transparent 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--sc) 8%, var(--surface)) 0, var(--surface) 160px);
  border: 1px solid color-mix(in srgb, var(--sc) 24%, var(--line));
  box-shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 18px 40px -28px rgba(0, 0, 0, .8);
}
.blk::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; border-top: 2px solid color-mix(in srgb, var(--sc) 78%, transparent); }
@media (min-width: 640px) { .blk { padding: 28px 28px 28px; } }
.blk + .blk { margin-top: var(--s-6); }
.home-blocks > .blk + .blk { margin-top: 0; }
.blk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: var(--s-5); }
.blk-head h2 { margin: 0; }
.blk-head .link { margin-inline-start: auto; font-size: 14px; }
.blk-ttl { flex: 1 1 200px; min-width: 0; }
.blk-ttl p { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.blk-ic { --sc: inherit; flex: 0 0 auto; display: inline-grid; place-items: center; color: var(--text-2); }   /* block head glyph: plain, neutral, 24px — no tile, no glow */
.blk-ic .i { width: var(--ic-sec); height: var(--ic-sec); }
.blk-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-6); }
/* Page title band — ONE structure for every section page (no eyebrow/kicker above the title):
   <header class="page-head page-head--sec" style="--sc:var(--sec-x)">
     <div class="wrap ph-in">
       <span class="blk-ic ph-ic">${icon}</span>
       <div class="ph-copy"><h1>…</h1><p>lead…</p></div>
       <div class="ph-actions">…optional buttons / count…</div>
     </div></header>
   The band is full-bleed (works whether .wrap is on the header or inside it), tinted by --sc, runs up under the
   translucent header, and ends on a --sc-tinted hairline so the page body below reads as a separate room. */
.page-head--sec { --sc: var(--ember); position: relative; isolation: isolate; padding-block: var(--s-8) var(--s-7); margin-bottom: var(--s-6); }
.page-head--sec::before {
  content: ""; position: absolute; z-index: -1; top: calc(var(--hdr-h) * -1); bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; pointer-events: none;
  background:
    radial-gradient(55% 130% at 88% 0%, color-mix(in srgb, var(--sc) 20%, transparent), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--sc) 7%, var(--bg)) 0%, color-mix(in srgb, var(--sc) 4%, var(--bg-2)) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--sc) 26%, var(--line));
}
.page-head--sec .kicker { display: none; }    /* no eyebrow above page titles (owner: AI tell) */
.page-head--sec h1 { max-width: 24ch; text-wrap: balance; }
.page-head--sec .blk-ic { --sc: inherit; }
.ph-in { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 18px; }
.ph-ic { color: var(--sc); margin-top: calc((var(--fs-h1) * 1.3 - var(--ic-sec)) / 2); }   /* page identity: the ONE place a head glyph takes the section tint */
.ph-ic .i { width: var(--ic-sec); height: var(--ic-sec); }
.ph-copy { flex: 1 1 340px; min-width: 0; }
.ph-copy p { margin-top: 8px; }
.ph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; align-self: flex-end; }
@media (max-width: 639.98px) {
  .page-head--sec { padding-block: var(--s-7) var(--s-6); margin-bottom: var(--s-5); }
  .ph-in { gap: 12px 14px; }
  .ph-copy { flex-basis: calc(100% - 40px); }
  .ph-actions { width: 100%; }
  .ph-actions .btn { flex: 1 1 auto; }
}
.t-key { color: var(--key); } .t-plus { color: var(--plus); }

/* ---------------------------------------------------------------- v3 CHROME EXTRAS: «المزيد» sheet · wallet grid */
.more-sheet .list-group { padding: 18px 4px 8px; }
.more-sheet .list-row { min-height: 58px; padding-block: 10px; }
.more-guest { padding: 18px; border-radius: var(--r-lg); background: radial-gradient(90% 120% at 100% 0%, rgba(255, 90, 31, .16), transparent 60%), var(--surface-2); border: 1px solid var(--ember-line); margin-bottom: 14px; }
.more-guest h3 { font-size: 17px; }
.more-guest p { color: var(--text-2); font-size: 13.5px; line-height: 1.8; margin-top: 4px; }
.more-guest .row { margin-top: 14px; flex-wrap: wrap; --gap: 8px; }
.more-me { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 12px; }
.more-me .list-main b { font-size: 16px; }
.more-wal { display: grid; gap: 10px; margin-bottom: 14px; }
.wal--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); }
.wal--grid .wal-c { background: var(--surface-2); padding: 12px 14px; gap: 8px; }
.wal--grid .wal-c::before { display: none; }
.wal--grid .wal-l { font-size: 11.5px; }
.wal--grid .wal-v { font-size: 16px; }


/* ---------------------------------------------------------------- v3 TAG ROLES (duration · platform · language · mood)
   One hue per meaning, used everywhere a tag or meta item carries it (cards, hero, game page, quick view, library). */
.tag--time, .meta > span:has(> .i[data-i="clock"]), .tag:has(> .i[data-i="clock"]) { color: var(--tag-time); }
.tag--time .i, .meta > span:has(> .i[data-i="clock"]) .i, .tag:has(> .i[data-i="clock"]) .i { color: var(--tag-time); }
.tag:has(> .i[data-i="clock"]), .tag--time { background: var(--tag-time-bg); border-color: transparent; }
.tag--plat, .tag--plat .i { color: var(--tag-plat); }
.tag--plat { background: var(--tag-plat-bg); border-color: transparent; }
.hero-tags .tag:not(.tag--plat):not(.tag--time) { color: var(--tag-mood); background: var(--tag-mood-bg); border-color: transparent; }
.hero-meta > span:has(> .i[data-i="clock"]) { color: var(--tag-time); }
.m-plat, .m-plat .i { color: var(--tag-plat); }
.m-time, .m-time .i { color: var(--tag-time); }
.m-lang, .m-lang .i { color: var(--tag-lang); }

/* ---------------------------------------------------------------- «حالة الاشتراك» · model 3 (timeline) — owner pick 2026-10-13 */
.sc3 { display: grid; gap: 18px; align-content: start; padding: 20px; }
.sc3-head { display: flex; align-items: center; gap: 10px; }
.sc3-head h2 { flex: 1; margin: 0; font: 700 17px/1.3 var(--font-ui); }
.sc3-tier { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; font: 600 12.5px/1 var(--font-ui); color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, transparent); white-space: nowrap; }
.sc3-tier .i { width: 16px; height: 16px; }
.sc3-keys { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: color-mix(in srgb, var(--key) 7%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--key) 22%, transparent); }
.sc3-keys > .i { width: 28px; height: 28px; color: var(--key); flex: 0 0 auto; }
.sc3-keys b { display: block; font: 700 clamp(30px, 3.4vw, 38px)/1 var(--font-ui); letter-spacing: -.02em; color: var(--key); }
.sc3-keys small { display: block; margin-top: 5px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.sc3-keys small em { font-style: normal; color: var(--text); font-weight: 600; }
.is-off .sc3-keys { background: var(--surface-2); border-color: var(--line); }
.is-off .sc3-keys > .i, .is-off .sc3-keys b { color: var(--text-2); }
.sc3-tl { display: grid; gap: 10px; }
.sc3-tl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sc3-tl-top b { font: 700 22px/1 var(--font-ui); color: var(--tag-time); }
.sc3-tl-top b.is-warn { color: var(--warn); } .sc3-tl-top b.is-bad { color: var(--danger); }
.sc3-tl-top span { font-size: 12.5px; color: var(--text-3); }
.sc3-track { position: relative; height: 6px; border-radius: 99px; background: var(--surface-3); }
.sc3-track i { position: absolute; top: 0; bottom: 0; right: 0; border-radius: inherit; background: var(--tag-time); }
.sc3-track em { position: absolute; top: 50%; width: 14px; height: 14px; margin-right: -7px; transform: translateY(-50%); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 3px var(--tag-time); }
.sc3-tl.is-off .sc3-track i { background: color-mix(in srgb, var(--danger) 45%, var(--surface-3)); }
.sc3-dates { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.sc3-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sc3-saved { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--text-2); }
.sc3-saved .i { color: var(--ok); }
.sc3-saved b { color: var(--ok); }

/* ---------------------------------------------------------------- «كيف يعمل الموقع» · model 1 «المسار» (owner pick 2026-10-13) */
.how-st--1 { --c: var(--key); } .how-st--2 { --c: var(--tag-plat); } .how-st--3 { --c: var(--ember-hi); }
.how-path { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 4px 0 0; padding: 0; list-style: none; }
.how-path::before { content: ""; position: absolute; top: 23px; right: 24px; left: 24px; height: 2px; background: linear-gradient(to left, var(--key), var(--tag-plat), var(--ember-hi)); opacity: .45; }
.how-st { position: relative; display: grid; gap: 10px; justify-items: start; }
.how-dot { position: relative; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--c), 0 0 0 7px var(--surface); color: var(--c); }
.how-dot .i { width: 22px; height: 22px; }
.how-n { font: 700 12px/1 var(--font-ui); color: var(--c); }
.how-copy h3 { margin: 0; font: 700 17px/1.4 var(--font-display); color: var(--text); }
.how-copy p { margin: 4px 0 0; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.how-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.how-foot p { margin: 0; font-size: 13.5px; color: var(--text-3); }
@media (max-width: 760px) {
  .how-path { grid-template-columns: 1fr; gap: 20px; }
  .how-path::before { top: 24px; bottom: 24px; right: 23px; left: auto; width: 2px; height: auto; background: linear-gradient(to bottom, var(--key), var(--tag-plat), var(--ember-hi)); }
  .how-st { grid-template-columns: 48px 1fr; column-gap: 14px; row-gap: 4px; }
  .how-dot { grid-row: span 2; }
  .how-copy { grid-column: 2; }
}
.how-st .how-n { display: inline-block; width: auto; height: auto; min-width: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; white-space: nowrap; line-height: 1.2; }

/* ---------------------------------------------------------------- PS Plus identity (shared) + home PS Plus card · model 1 */
:root { --pp: #FFC21A; --pp-hi: #FFD24D; --pp-ink: #1A1300; --pp-t1: #FFD45A; --pp-t2: #F2A93B; --pp-t3: #D98A2B; }
.pp-t1 { --c: var(--pp-t1); } .pp-t2 { --c: var(--pp-t2); } .pp-t3 { --c: var(--pp-t3); }
.btn-pp { background: var(--pp); color: var(--pp-ink); font-weight: 700; }
.btn-pp:hover:not(:disabled) { background: var(--pp-hi); }
.btn-pp .i { color: var(--pp-ink); }
.pp-inv { position: relative; overflow: hidden; display: grid !important; grid-template-columns: minmax(0, 1fr) 190px; align-items: center; gap: 18px; min-height: 250px; padding: 26px; border-radius: var(--r-lg); background: #08080A; border: 1px solid rgba(255, 194, 26, .25); }
.pp-inv-b { display: grid; gap: 12px; justify-items: start; position: relative; z-index: 1; }
.pp-inv-b h3 { margin: 0; font: 800 26px/1.25 var(--font-display); color: var(--text); }
.pp-inv-b p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.pp-inv-new { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; font: 700 12px/1 var(--font-ui); color: var(--pp); background: rgba(255, 194, 26, .12); }
.pp-inv-tiers { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-inv-tiers > span { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 8px; font: 700 13px/1 var(--font-display); color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.pp-inv-mark { position: relative; display: grid; place-items: center; width: 170px; height: 170px; justify-self: center; }
.pp-inv-mark b { font: 900 200px/1 var(--font-ui); color: var(--pp); text-shadow: 0 0 60px rgba(255, 194, 26, .25); }
.pp-inv-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 40px rgba(255, 194, 26, .2)); }
.pp-inv-mark img + b { display: none; }
@media (max-width: 560px) { .pp-inv { grid-template-columns: minmax(0, 1fr) 96px; padding: 20px; } .pp-inv-mark { width: 96px; height: 96px; } .pp-inv-mark b { font-size: 120px; } }
.invites .invite.pp-inv { grid-template-columns: minmax(0, 1fr) clamp(96px, 30%, 190px) !important; grid-template-rows: auto !important; }
@media (max-width: 560px) { .invites .invite.pp-inv { grid-template-columns: minmax(0, 1fr) 96px !important; } }
.invites .invite.pp-inv > .pp-inv-mark { order: 2; }
.invites .invite.pp-inv > .pp-inv-b { order: 1; }
.pp-inv-mark { width: 100%; max-width: 170px; height: auto; aspect-ratio: 1; }
.pp-inv-mark b { font-size: clamp(110px, 14vw, 200px); }

/* owner tweaks 2026-10-13: flag on «الأعلى طلباً بالسعودية», orange fire, orange plans line */
.blk-ic--fire { color: var(--ember); }
.h-flag { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sa-flag { width: 30px; height: 20px; flex: 0 0 auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.plans-tz .blk-ttl p.plans-tz-sub { color: var(--ember); font-size: 14px; }

/* owner files 2026-10-13: round Saudi flag png + official PS Plus logo png */
.sa-flag { width: 26px; height: 26px; border-radius: 50%; box-shadow: none; }
.pp-inv-mark img { filter: drop-shadow(0 10px 28px rgba(255, 194, 26, .22)); }

/* owner 2026-10-13: PS Plus card background = game covers under PlayStation blue + gold glow (no black) */
.invites .invite.pp-inv { background: linear-gradient(135deg, #0D2459 0%, #081A45 55%, #0A1638 100%); border-color: rgba(255, 194, 26, .38); }
.pp-inv .pp-inv-art { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); opacity: .5; filter: saturate(.85); }
.invite.pp-inv::after { background:
  radial-gradient(42% 75% at 16% 50%, rgba(255, 194, 26, .30), transparent 70%),
  linear-gradient(to left, rgba(8, 24, 64, .97) 0%, rgba(8, 24, 64, .9) 42%, rgba(9, 28, 74, .55) 72%, rgba(9, 28, 74, .35) 100%); }
.pp-inv-b p { color: #B9C7E2; }
.pp-inv-new { background: rgba(255, 194, 26, .16); }
.pp-inv-tiers > span { background: color-mix(in srgb, var(--c) 16%, rgba(6, 16, 44, .6)); }
@media (hover: hover) and (pointer: fine) { .invite.pp-inv:hover .pp-inv-art { opacity: .62; } .invite.pp-inv:hover { border-color: rgba(255, 194, 26, .6); } }
/* owner 2026-10-13 (2): no blue — site black + game covers, gold only around the logo */
.invites .invite.pp-inv { background: var(--surface); border-color: rgba(255, 194, 26, .32); }
.invite.pp-inv::after { background:
  radial-gradient(40% 70% at 16% 50%, rgba(255, 194, 26, .22), transparent 70%),
  linear-gradient(to left, rgba(10, 10, 12, .97) 0%, rgba(10, 10, 12, .86) 45%, rgba(10, 10, 12, .5) 75%, rgba(10, 10, 12, .35) 100%); }
.pp-inv .pp-inv-art { opacity: .5; filter: none; }
.pp-inv-b p { color: var(--text-2); }
.pp-inv-tiers > span { background: color-mix(in srgb, var(--c) 14%, rgba(10, 10, 12, .6)); }

/* ---------------------------------------------------------------- plans duo · model 3 «فرق الترقية» (home + packages) */
.pd { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 18px; align-items: stretch; }
.pd-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-2); }
.pd-card.is-gold { border-color: color-mix(in srgb, var(--ember) 45%, var(--line-2)); background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--ember) 12%, transparent), transparent 60%), var(--surface); }
.pd-card.is-mine:not(.is-gold) { border-color: color-mix(in srgb, var(--ok) 40%, var(--line-2)); }
.pd-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-name { font: 800 24px/1.2 var(--font-display); gap: 8px; }
.pd-name .i { width: 24px; height: 24px; }
.pd-persona { font-size: 13px; color: var(--text-3); }
.pd-top .pd-flag, .pd-top .pd-cur { margin-inline-start: auto; }
.pd-flag { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 8px; background: var(--ember); color: #1A0A02; font: 700 13px/1 var(--font-display); }
.pd-flag .i { color: inherit; }
.pd-cur { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font: 700 12.5px/1 var(--font-display); }
.pd-cur::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pd-cur--off { background: rgba(245, 241, 234, .06); color: var(--text-3); }
.pd-tag { margin: -6px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.pd-price { display: flex; align-items: baseline; gap: 8px; }
.pd-price b { font: 700 44px/1 var(--font-ui); letter-spacing: -.03em; color: var(--text); }
.pd-card.is-gold .pd-price b { font-size: 56px; }
.pd-price span { font-size: 14px; color: var(--text-3); line-height: 1.3; }
.pd-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pd-chip { --c: var(--text-2); display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; font: 600 13.5px/1 var(--font-ui); color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); white-space: nowrap; }
.pd-chip .i { width: 16px; height: 16px; }
.pd-chip--key { --c: var(--key); } .pd-chip--time { --c: var(--tag-time); } .pd-chip--plat { --c: var(--tag-plat); }
.pd-diff { display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: rgba(10, 10, 12, .55); border: 1px dashed color-mix(in srgb, var(--ember) 40%, var(--line-2)); }
.pd-diff h4 { margin: 0; display: flex; align-items: center; gap: 8px; font: 700 15px/1.4 var(--font-display); color: var(--text); }
.pd-diff h4 .i { color: var(--ember); width: 20px; height: 20px; flex: 0 0 auto; }
.pd-diff h4 b { color: var(--ember-hi); }
.pd-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pd-tile { --c: var(--text); display: grid; gap: 4px; justify-items: center; text-align: center; padding: 12px 6px; border-radius: 10px; background: color-mix(in srgb, var(--c) 10%, transparent); }
.pd-tile b { font: 700 20px/1.1 var(--font-ui); color: var(--c); }
.pd-tile span { font-size: 12px; color: var(--text-2); line-height: 1.4; }
.pd-tile--key { --c: var(--key); } .pd-tile--time { --c: var(--tag-time); } .pd-tile--plat { --c: var(--tag-plat); } .pd-tile--elite { --c: var(--gold); }
.pd-f { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd-f li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.pd-f li > .i { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: var(--text-3); }
.pd-f li b { color: var(--text); font-weight: 600; }
.pd-f--ok > .i { color: var(--ok) !important; } .pd-f--pp > .i { color: var(--pp) !important; } .pd-f--gold > .i { color: var(--gold) !important; }
.pd-f--key > .i { color: var(--key) !important; } .pd-f--ember > .i { color: var(--ember) !important; }
.pd-cta { margin-top: auto; }
@media (max-width: 860px) { .pd { grid-template-columns: 1fr; } .pd-card.is-gold { order: -1; } }
@media (max-width: 480px) { .pd-tiles { grid-template-columns: 1fr 1fr; } .pd-card { padding: 20px; } .pd-card.is-gold .pd-price b { font-size: 48px; } }
.band:empty { display: none; }

/* Steam login code from email (App.steamCode) — shared by the purchase sheet + library */
.sc { display: grid; gap: 12px; }
.sc-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sc-wait { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line-2); }
.sc-wait .spinner { flex: 0 0 auto; }
.sc-wait p { margin-top: 4px; }
.sc-code { display: grid; justify-items: center; gap: 10px; padding: 18px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line-2); text-align: center; }
.sc-code b { font: 700 clamp(34px, 8vw, 46px)/1 var(--font-ui); letter-spacing: .24em; padding-inline-start: .24em; color: var(--key); }
.sc-launchers { display: grid; gap: 8px; margin-top: 8px; }

/* ==== css/catalog.css ==== */
/* =====================================================================
   SCREEN «الشاشة» v3 — G1 CATALOG · css/catalog.css
   Vault head + platform shelf (vx-) · vault grid (cx-) · hover peek (cxp-) · quick view (qv-) ·
   title page (gd-) · rent flow (rx-) · Steam tab (st-) · gold upsell (up-)
   Tokens + shared components live in base.css — page-specific CSS only. No raw hex.
   ===================================================================== */

/* ---------------------------------------------------------------- keys = value colour inside catalog surfaces */
.cx-price .keys, .cx-price .keys .i, .rx-cost .keys:not(.keys--strike), .rx-cost .keys:not(.keys--strike) .i, .rx-total .keys, .rx-total .keys .i,
.rx-bal .keys, .rx-bal .keys .i, .rx-short-n .keys, .rx-short-n .keys .i { color: var(--key); }
.cx-price .keys .u { color: color-mix(in srgb, var(--key) 62%, var(--text-3)); }
.cx-stars { display: inline-flex; gap: 1px; color: var(--key); }
.cx-stars .i { width: 11px; height: 11px; }   /* pips = star:fill (catalog.js); the one sub-scale size exception */

/* ---------------------------------------------------------------- VAULT HEAD · platform shelf */
/* the shared band (.page-head--sec: .ph-in / .ph-ic / .ph-copy) + the platform shelf inside it; the sticky bar follows directly */
.vx-head { padding-block: var(--s-7) var(--s-5); margin-bottom: 0; }
@media (min-width: 1024px) { .vx-head { padding-block: var(--s-8) var(--s-6); } }
.vx-head-in { display: grid; margin-top: var(--s-5); }
.vx-head .vx-title h1 { font-size: var(--fs-h1); line-height: 1.25; max-width: none; }
.vx .cx-bar { border-top: 0; }
.vx-head .vx-sub { margin-top: 6px; max-width: 72ch; font: 500 clamp(14.5px, 1.3vw, 17px)/1.75 var(--font-ui); color: var(--text-2); }
.vx-head .vx-sub b { color: var(--text); font-weight: 700; }

.vx-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .vx-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.vx-plat {
  --pc: var(--text-2);
  position: relative; isolation: isolate; display: block; min-height: 78px; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2); transition: border-color var(--d-2), transform var(--d-2) var(--ease), box-shadow var(--d-2);
}
@media (min-width: 1024px) { .vx-plat { min-height: 96px; } }
.vx-plat--ps5 { --pc: var(--text); }
.vx-plat--steam { --pc: var(--sec-steam, var(--info)); }
.vx-plat-art { position: absolute; z-index: -1; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); opacity: .26; filter: saturate(.7); transition: opacity var(--d-3); }
.vx-plat-art > span { position: relative; overflow: hidden; }
.vx-plat-art .cv, .vx-plat-art .cv-fb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vx-plat::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(to left, rgba(10, 10, 12, .92) 0%, rgba(10, 10, 12, .62) 55%, rgba(10, 10, 12, .35)); }
.vx-plat-in { display: flex; align-items: center; gap: 12px; height: 100%; min-height: inherit; padding: 12px 14px; }
.vx-plat-ic { flex: 0 0 auto; display: grid; place-items: center; color: var(--text-2); }   /* plain section glyph: no tile */
.vx-plat-ic .i { width: var(--ic-sec); height: var(--ic-sec); }
.vx-plat-t { display: grid; gap: 2px; min-width: 0; justify-items: start; }
.vx-plat-t b { font: 700 16px/1.25 var(--font-ui); color: var(--text); white-space: nowrap; }
.vx-plat-t small { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.vx-plat-t em { font-style: normal; font: 600 10.5px/1 var(--font-ui); color: var(--on-ember); background: var(--ember); padding: 3px 6px; border-radius: 5px; margin-bottom: 2px; }
.vx-plat-on { position: absolute; top: 8px; inset-inline-end: 8px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--ember); color: var(--on-ember); }
/* motion v3: hover gated to real pointers (no stuck hover on touch) + press */
@media (hover: hover) and (pointer: fine) { .vx-plat:hover { border-color: var(--line-3); } }
@media (hover: hover) and (pointer: fine) { .vx-plat:hover .vx-plat-art { opacity: .4; } }
.vx-plat:active { transform: scale(.985); transition-duration: var(--d-2), var(--d-press, 100ms), var(--d-2); }
.vx-plat.is-on { background: var(--ember-glass); border-color: var(--ember-line); box-shadow: inset 0 0 0 1px var(--ember-line); }
.vx-plat.is-on .vx-plat-art { opacity: .22; filter: saturate(.35); }
.vx-plat.is-on::after { background: linear-gradient(to left, color-mix(in srgb, var(--ember-glass) 96%, transparent) 0%, color-mix(in srgb, var(--ember-glass) 80%, transparent) 60%, color-mix(in srgb, var(--ember-glass) 55%, transparent)); }
.vx-plat.is-on .vx-plat-t small { color: var(--ember-ink); }
.vx-plat.is-on .vx-plat-ic { color: var(--ember); }   /* active = ember glyph (Fill via App.iconFill), no ring */
@media (max-width: 639px) {
  .vx-head { padding-block: var(--s-5) var(--s-4); }
  .vx-head-in { margin-top: var(--s-4); }
  .vx-plat { min-height: 62px; }
  .vx-plat-in { padding: 9px 12px; }
  .cx-cats { padding: 3px; gap: 2px; }
  .cx-cats button { padding: 0 6px; font-size: 12.5px; gap: 4px; min-height: 36px; }
}
@media (max-width: 400px) {
  .vx-plat-in { padding: 10px; gap: 9px; }
  .vx-plat-t b { font-size: 14.5px; }
}

/* ---------------------------------------------------------------- VAULT · sticky bar (category tabs · search · reset) */
.cx-bar { position: sticky; top: var(--hdr-h); z-index: 30; background: var(--bg); border-block: 1px solid var(--line); padding-block: 10px; }
.cx-bar-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; }
.cx-cats { grid-column: 1 / -1; display: flex; width: 100%; }
.cx-cats button { flex: 1 1 auto; justify-content: center; min-height: 38px; padding: 0 10px; font-size: 13px; gap: 5px; }
.cx-search { position: relative; min-width: 0; }
.cx-search > .i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.cx-search-in {
  width: 100%; height: 44px; padding: 0 42px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--text); font: 400 15px/1 var(--font-ui); transition: border-color var(--d-1), box-shadow var(--d-1), background var(--d-1);
}
.cx-search-in::placeholder { color: var(--text-3); }
.cx-search-in::-webkit-search-cancel-button { display: none; }
.cx-search-in:focus { outline: none; border-color: var(--ember); background: var(--surface-3); box-shadow: 0 0 0 4px var(--ember-soft); }
.cx-search-x { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--text-3); }
.cx-search-x:hover { color: var(--text); background: rgba(245, 241, 234, .08); }
.cx-reset { --bh: 44px; gap: 6px; padding: 0 16px; border-radius: var(--r-pill); font-size: 13px; white-space: nowrap; }
.cx-reset[hidden] { display: none; }
@media (max-width: 420px) { .cx-reset span { display: none; } .cx-reset { width: 44px; padding: 0; justify-content: center; } }
@media (min-width: 900px) {
  .cx-bar-in { grid-template-columns: auto minmax(220px, 380px) auto; justify-content: start; }
  .cx-cats { grid-column: auto; width: auto; }
  .cx-cats button { flex: 0 0 auto; padding: 0 16px; font-size: 13.5px; }
}
@media (min-width: 1024px) { .cx-bar { padding-block: 12px; } }

.cx-moods { margin-top: 14px; }
.cx-moods .chip { min-height: 38px; }   /* mood icons neutral; only the pressed chip (.chip.is-on) turns ember */

/* ---------------------------------------------------------------- VAULT · results + cards */
.cx-results { padding-block: var(--s-6) var(--s-9); }
.cx-res-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: var(--s-4); min-height: 36px; flex-wrap: wrap; }
.cx-res-head h2 { font-size: var(--fs-h2); }
.cx-count { font-size: 13px; color: var(--text-3); }

.cx-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .cx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .cx-grid { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 22px 18px; } }

.cx-card {
  position: relative; display: grid; min-width: 0; border-radius: var(--r-md); background: var(--surface); overflow: hidden;
  border: 1px solid var(--line); transition: border-color var(--d-2);
}
.cx-card:hover { border-color: var(--line-2); }

.cx-art { position: relative; min-width: 0; }
.cx-art .tile { width: 100%; border-radius: 0; }
@media (hover: hover) and (pointer: fine) { .cx-art .tile:hover, .cx-art .tile:focus-visible { transform: none; box-shadow: none; } }
.cx-art .tile > .tile-title, .cx-art .tile-hover, .cx-art .tile-top .cat, .cx-art .tile-top .lock-hint, .cx-art .tile-top .stock { display: none; }
.cx-art .tile::after { background: linear-gradient(to top, rgba(8, 8, 10, .45) 0%, rgba(8, 8, 10, 0) 40%); }
.cx-bundle { position: absolute; z-index: 4; top: 8px; inset-inline-start: 8px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 7px;
  background: rgba(10, 10, 12, .78); color: var(--key); box-shadow: inset 0 0 0 1px var(--key-line), 0 4px 12px rgba(0, 0, 0, .4); font: 700 11.5px/1 var(--font-ui); pointer-events: none; }
.cx-body { display: grid; gap: 9px; padding: 12px 14px 14px; min-width: 0; align-content: start; }
.cx-t { font: 700 15px/1.45 var(--font-display); color: var(--text); overflow: hidden; unicode-bidi: plaintext; text-align: right;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: calc(2 * 1.45em); }
.cx-t:hover { color: var(--ember-hi); }
.cx-chips { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.cx-body .cx-chips { flex-wrap: nowrap; overflow: hidden; }
.cx-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 7px; font: 500 11.5px/1 var(--font-ui); color: var(--text-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; flex: 0 0 auto; }
.cx-chip--cat { gap: 5px; }
.cx-chip--elite { color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent); font-weight: 600; }
.cx-chip--selected { color: var(--silver); }
.cx-chip--ps5, .cx-chip--dev { color: var(--tag-plat); background: var(--tag-plat-bg); box-shadow: none; }
.cx-chip--ps5 { font-weight: 600; }
.cx-chip--ps5 .i, .cx-chip--dev .i { color: var(--tag-plat); }
.cx-chip:has(> .i[data-i="clock"]) { color: var(--tag-time); background: var(--tag-time-bg); }
.cx-chip:has(> .i[data-i="clock"]) .i { color: var(--tag-time); }
.cx-chip--lang-voice { color: var(--tag-lang); background: var(--tag-lang-bg); box-shadow: none; }
.cx-chip--lang-subs { color: var(--tag-lang); background: color-mix(in srgb, var(--tag-lang) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tag-lang) 28%, transparent); }
.cx-chip--lang-none { color: var(--text-3); }   /* «لا تدعم العربية» = information, not an error */
.cx-chip .l-short { display: none; }
.cx-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 2px; }
.cx-price { display: inline-flex; }
.cx-wait { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--warn); white-space: nowrap; }
.cx-act { margin-inline-start: auto; flex: 0 0 auto; gap: 6px; }
.cx-act--queued { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.cx-act--queued:hover:not(:disabled) { border-color: var(--warn); }
.cx-act--owned { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 34%, transparent); }
.cx-act--out:disabled { color: var(--text-3); background: var(--surface-2); border-color: var(--line-2); opacity: 1; }

/* phone: one game per row — art beside the info, action full width (live: one column) */
@media (max-width: 639px) {
  .cx-card { grid-template-columns: 40% minmax(0, 1fr); }
  .cx-art { display: flex; }
  .cx-art .tile { aspect-ratio: auto; height: 100%; min-height: 128px; }
  .cx-art .tile > .cv { object-fit: cover; }
  .cx-body { gap: 7px; padding: 10px 12px 12px; }
  .cx-t { font-size: 14px; min-height: 0; }
  .cx-body .cx-chips { flex-wrap: wrap; overflow: visible; }
  .cx-body .cx-chip { height: 22px; padding: 0 6px; font-size: 11px; }
  .cx-body .cx-chip--cat > span:last-child { display: none; }
  .cx-body .cx-chip .l-long { display: none; }
  .cx-body .cx-chip .l-short { display: inline; }
  .cx-foot { gap: 6px 8px; }
  .cx-act { width: 100%; margin-inline-start: 0; --bh: 40px; }
  .cx-bundle { top: 6px; inset-inline-start: 6px; height: 22px; font-size: 11px; }
}

/* skeleton */
.cx-skel { min-height: 120px; }
.cx-skel-art { aspect-ratio: 16 / 9; border-radius: 0; }
@media (max-width: 639px) { .cx-skel { grid-template-columns: 40% 1fr; } .cx-skel-art { aspect-ratio: auto; height: 100%; border-radius: 0; } }

/* pager (live: «السابق» · numbers · «التالي» + meta line) */
.cx-pages { display: grid; justify-items: center; gap: 12px; margin-top: var(--s-8); }
.cx-pages:empty { display: none; }
.cx-pager { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.cx-pg-nums { display: flex; align-items: center; gap: 6px; }
.cx-pg { min-width: 44px; height: 44px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center; font: 600 15px/1 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--text-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); transition: color var(--d-1) var(--ease), box-shadow var(--d-1) var(--ease), background-color var(--d-1) var(--ease), transform 200ms var(--ease-out); }
/* motion v3: explicit transition list (was `all`), hover gated, press */
@media (hover: hover) and (pointer: fine) { .cx-pg:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); } }
.cx-pg:active { transform: scale(.94); transition-duration: var(--d-1), var(--d-1), var(--d-1), var(--d-press, 100ms); }
.cx-pg.is-on { background: var(--ember); color: var(--on-ember); box-shadow: none; }
.cx-pg-gap { color: var(--text-3); padding: 0 2px; }
.cx-pg-step { --bh: 44px; }
.cx-pg-meta { font-size: 13px; color: var(--text-3); text-align: center; }
@media (max-width: 420px) { .cx-pg-step span { display: none; } .cx-pg-step { width: 44px; padding: 0; } .cx-pg { min-width: 40px; height: 40px; } }
.cx-empty { width: 100%; }

/* ---------------------------------------------------------------- HOVER-EXPAND PEEK (desktop) */
.cx-peek {
  position: fixed; z-index: 70; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2); animation: peekIn var(--d-3) var(--ease-out) both;
}
.cx-peek.is-leaving { animation: peekOut 150ms var(--ease-out) both; } /* motion v3: exit eases out (was ease-in) */
@keyframes peekIn { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: none; } }
@keyframes peekOut { to { opacity: 0; transform: scale(.9); } }
.cx-peek.is-instant { animation: fadeIn 120ms var(--ease-out) both; } /* motion v3: warm peek — next tile while sweeping a row */
.cxp-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.cxp-media .cv { position: absolute; inset: 0; animation: peekZoom 6s var(--ease-out) both; }
@keyframes peekZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.cxp-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface-2) 0%, rgba(26, 26, 32, .35) 38%, rgba(26, 26, 32, 0) 62%); }
.cxp-title { position: absolute; z-index: 2; inset-inline: 16px; bottom: 10px; font: 800 19px/1.3 var(--font-display); text-shadow: 0 2px 14px rgba(0, 0, 0, .7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cxp-body { display: grid; gap: 10px; padding: 6px 16px 16px; }
.cxp-actions { display: flex; align-items: center; gap: 8px; }
.cxp-actions .cx-act { margin-inline-start: 0; }
.cxp-meta { font-size: 13px; }
.cxp-pitch { font-size: 13.5px; line-height: 1.75; color: var(--text-2); }

/* ---------------------------------------------------------------- QUICK VIEW (sheet) */
.layer--cx-qv .dlg { max-width: 560px; }
.layer--cx-qv .dlg-head { position: absolute; z-index: 4; top: 0; inset-inline: 0; padding: 14px 14px 0; justify-content: flex-end; pointer-events: none; }
.layer--cx-qv .dlg-x { pointer-events: auto; background: rgba(10, 10, 12, .6); margin: 0; }
.layer--cx-qv .dlg-body { padding: 0; }
.qv-hero { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.qv-hero > .cv, .qv-hero > .cv-fb { position: absolute; inset: 0; }
.qv-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 2%, rgba(20, 20, 24, .45) 45%, rgba(20, 20, 24, 0) 75%); }
.qv-hero .cx-bundle { top: 14px; inset-inline-start: 14px; }
.qv-hero-copy { position: absolute; z-index: 2; inset-inline: 22px; bottom: 6px; }
.qv-title { font: 800 clamp(22px, 4vw, 30px)/1.25 var(--font-display); text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.qv-body { display: grid; gap: 14px; padding: 12px 22px 24px; }
.qv-pitch { color: var(--text-2); line-height: 1.85; }
.qv-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.qv-actions .btn { flex: 1 1 180px; }
.qv-actions .cx-act { margin: 0; }
@media (max-width: 640px) { .qv-body { padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px)); } .qv-hero-copy { inset-inline: 18px; } }

/* ---------------------------------------------------------------- TITLE PAGE (#/game/:id) */
.gd-hero { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(var(--hdr-h) + clamp(150px, 46vw, 300px)); }
.gd-media { position: absolute; z-index: -1; inset: 0 0 auto; height: min(100%, 100vh); max-height: 980px; overflow: hidden; background: var(--bg); }
.gd-media .cv, .gd-media .cv-fb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.gd-kb { animation: gdKb 26s linear both; transform-origin: 40% 40%; }
@keyframes gdKb { from { transform: scale(1.03); } to { transform: scale(1.14) translate3d(1.5%, -1%, 0); } }
.gd-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 12, .96) 34%, rgba(10, 10, 12, .55) 62%, rgba(10, 10, 12, .1) 86%),
    linear-gradient(to bottom, rgba(10, 10, 12, .7) 0%, rgba(10, 10, 12, 0) 24%);
}
.gd-in { display: grid; gap: var(--s-7); align-items: end; }
.gd-copy { display: grid; justify-items: start; gap: 12px; min-width: 0; }
.gd-back { position: absolute; top: calc(var(--hdr-h) + 14px); inset-inline-start: var(--gutter); display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px 0 10px; border-radius: var(--r-pill); background: rgba(10, 10, 12, .5); border: 1px solid var(--line-2); color: var(--text); font-size: 13.5px; }
.gd-back:hover { background: rgba(10, 10, 12, .75); border-color: var(--line-3); }
.gd-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gd-badges .cx-chip { height: 28px; padding: 0 10px; font-size: 12.5px; background: rgba(10, 10, 12, .6); }

.gd-badges .cx-bundle { position: static; height: 28px; font-size: 12.5px; }
.gd-title {
  font: 800 clamp(34px, 7.4vw, 84px)/1.08 var(--font-display); letter-spacing: -.02em; max-width: 16ch; text-wrap: balance;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .55); overflow-wrap: anywhere;
}
.gd-chips .cx-chip { height: 28px; padding: 0 10px; font-size: 12.5px; }
.gd-chips .cx-chip:not([class*="lang"]):not(.cx-chip--ps5):not(.cx-chip--dev):not(:has(> .i[data-i="clock"])) { background: rgba(10, 10, 12, .55); }
.gd-pitch { max-width: 56ch; font-size: clamp(15px, 1.35vw, 18.5px); line-height: 1.85; color: rgba(245, 241, 234, .88); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.gd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.gd-play { min-width: 220px; }
.gd-play-keys { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(20, 8, 3, .22); font-weight: 700; }
.gd-play.cx-act--queued { border-width: 1px; border-style: solid; }
.gd-share { --bh: 56px; }
.gd-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13.5px; min-height: 28px; }
.gd-status b { color: var(--text); }
.gd-poster { display: none; }
@media (max-width: 640px) {
  .gd-actions .gd-play { flex: 1 1 auto; min-width: 0; }
  .gd-back span { display: none; }
  .gd-back { padding: 0 10px; }
}
@media (min-width: 1024px) {
  .gd-hero { padding-top: calc(var(--hdr-h) + 18vh); min-height: min(92vh, 900px); display: flex; flex-direction: column; justify-content: flex-end; }
  .gd-in { grid-template-columns: minmax(0, 1fr) 300px; }
  .gd-poster { display: block; position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 34px 80px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-2); animation: gdIn 520ms 80ms var(--ease-out) both; } /* motion v3: dead rotate removed; quick entrance */
  .gd-poster .cv, .gd-poster .cv-fb { position: absolute; inset: 0; }
  .gd-media::after {
    background:
      linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 12, .9) 22%, rgba(10, 10, 12, .2) 55%, rgba(10, 10, 12, 0) 75%),
      linear-gradient(to left, rgba(10, 10, 12, .92) 0%, rgba(10, 10, 12, .55) 38%, rgba(10, 10, 12, 0) 70%),
      linear-gradient(to bottom, rgba(10, 10, 12, .6) 0%, rgba(10, 10, 12, 0) 20%);
  }
}
@media (min-width: 1400px) { .gd-in { grid-template-columns: minmax(0, 1fr) 340px; } }
/* motion v3: working-page cadence (was 900ms hero blur-rise staggered to 360ms) */
.gd-copy > * { animation: gdIn 420ms var(--ease-out) both; }
.gd-copy > :nth-child(2) { animation-delay: 40ms; } .gd-copy > :nth-child(3) { animation-delay: 80ms; }
.gd-copy > :nth-child(4) { animation-delay: 120ms; } .gd-copy > :nth-child(5) { animation-delay: 160ms; }
.gd-copy > :nth-child(6) { animation-delay: 200ms; } .gd-copy > :nth-child(7) { animation-delay: 240ms; }
@keyframes gdIn { from { opacity: 0; transform: translateY(10px); } }
.page--still .gd-copy > *, .page--still .gd-poster { animation: none; }

/* spec strip «الفئة · الأجهزة · مدة الإيجار · اللغة · التكلفة» */
.gd-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s-7); padding-block: 2px; border-block: 1px solid var(--line); }
.gd-spec { display: grid; gap: 4px; padding: 14px 4px; min-width: 0; }
.gd-spec span { font-size: 12px; color: var(--text-3); }
.gd-spec b { font: 600 15.5px/1.3 var(--font-ui); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-spec--lang-voice b { color: var(--ok); } .gd-spec--lang-subs b { color: var(--info); } .gd-spec--lang-none b { color: var(--text-2); }
.gd-spec--cat-elite b { color: var(--gold); } .gd-spec--cat-selected b { color: var(--silver); }

.gd-spec + .gd-spec { border-top: 1px solid var(--line); }
.gd-spec:nth-child(2) { border-top: 0; border-inline-start: 1px solid var(--line); padding-inline-start: 14px; }
.gd-spec:nth-child(4) { border-inline-start: 1px solid var(--line); padding-inline-start: 14px; }
@media (min-width: 760px) {
  .gd-specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gd-spec { padding: 18px 20px; border-top: 0 !important; }
  .gd-spec:first-child { padding-inline-start: 0; }
  .gd-spec + .gd-spec { border-inline-start: 1px solid var(--line); }

}

/* tabs + panels */
.gd-tabs-wrap { padding-block: var(--s-8) var(--s-4); }
.gd-tabs { margin-bottom: var(--s-6); }
.gd-panel { animation: fadeIn var(--d-3) var(--ease) both; }
.gd-ov { display: grid; gap: var(--s-6); }
.gd-ov-main { display: grid; gap: var(--s-5); align-content: start; }
.gd-facts { display: grid; border-block: 1px solid var(--line); }
.gd-fact { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 0; align-items: baseline; }
.gd-fact + .gd-fact { border-top: 1px solid var(--line); }
.gd-fact span { font-size: 13px; color: var(--text-3); }
.gd-fact b { font-weight: 600; color: var(--text); line-height: 1.7; }
.gd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-tags .i { color: var(--text-3); }
.gd-ov-side { align-self: start; display: grid; gap: 16px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.gd-side-chips { flex-wrap: wrap; }
.gd-side-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.gd-side-act { display: grid; gap: 8px; justify-items: center; }
.gd-side-act .cx-act { margin: 0; }
.gd-kv { gap: 14px 18px; }
.gd-kv dd { font-weight: 600; }
.gd-lang-voice { color: var(--ok); } .gd-lang-subs { color: var(--info); } .gd-lang-none { color: var(--text-2); }
.gd-bundle-list { display: grid; }
.gd-bundle-list li { display: flex; align-items: center; gap: 12px; padding: 11px 2px; font-weight: 500; }
.gd-bundle-list li + li { border-top: 1px solid var(--line); }
.gd-bundle-list .i { color: var(--text-3); flex: 0 0 auto; }
@media (min-width: 900px) { .gd-ov { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: var(--s-8); } }

.gd-rent { display: grid; gap: var(--s-4); }
.gd-rent .blk + .blk { margin-top: 0; }
.gd-rent-card { display: grid; gap: 8px; align-content: start; }
.gd-rent-card .blk-head { margin-bottom: 6px; }
.gd-big { font: 700 26px/1.2 var(--font-ui); }
.gd-steps { display: grid; gap: 10px; }
.gd-steps li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.8; color: var(--text-2); }
.gd-steps li > .i { flex: 0 0 auto; margin-top: calc((1.8em - var(--ic-sm)) / 2); color: var(--text-3); }   /* steps = neutral */
@media (min-width: 900px) { .gd-rent { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gd-faq { max-width: 860px; }
.gd-faq-more { margin-top: var(--s-5); }

.gd-similar { padding-block: var(--s-6) var(--s-9); }
.gd-missing { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding-top: calc(var(--hdr-h) + 40px); padding-bottom: 60px; }
.gd-missing-art { width: 180px; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); margin-bottom: 8px; }
.gd-missing-art .cv-fb { width: 100%; height: 100%; }
.gd-missing .cv-fb-t { font-size: 64px; }

/* ---------------------------------------------------------------- RENT FLOW (side panel / bottom sheet) */
.layer--rx .dlg--side { max-width: 500px; }
.rx .dlg-body > * + * { margin-top: 16px; }
.rx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 2px; }
.rx-steps li { display: grid; gap: 7px; font-size: 11.5px; color: var(--text-4); }
.rx-steps i { display: block; height: 3px; border-radius: 3px; background: var(--surface-4); transition: background var(--d-3); }
.rx-steps .is-done { color: var(--text-3); } .rx-steps .is-done i { background: var(--text-2); }
.rx-steps .is-on { color: var(--text); font-weight: 600; } .rx-steps .is-on i { background: var(--ember); }
.rx-steps .is-skip { color: var(--text-4); text-decoration: line-through; } .rx-steps .is-skip i { background: var(--surface-3); }

/* ① warning (owner-locked copy) */
.rx-alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--danger-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 35%, transparent);
  color: var(--danger); font: 700 16px/1.5 var(--font-display); }
.rx-alert .i { width: var(--ic-btn); height: var(--ic-btn); flex: 0 0 auto; }
.rx-warn { display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.rx-warn p { font-size: 14px; line-height: 1.9; color: var(--text-2); }
.rx-warn b { color: var(--text); font-weight: 700; }
.rx-warn .rx-conseq { margin-top: -8px; color: var(--text); font-weight: 500; }
.rx-ban { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--r-md); text-align: center; background: var(--danger-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 38%, transparent); }
.rx-ban h3 { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--danger); font: 700 15.5px/1.5 var(--font-display); }
.rx-ban h3 .i { width: var(--ic-sec); height: var(--ic-sec); }
.rx-ban p { font-size: 13.5px; line-height: 1.95; color: var(--text); }
.rx-ban b { font-weight: 700; }
.rx-ban .rx-red { color: var(--danger); }
.rx-thanks { text-align: center; color: var(--ok); font-size: 14.5px; font-weight: 600; }
.rx-agree { padding: 12px 14px; border-radius: var(--r-md); border: 1px dashed var(--line-3); color: var(--text); }

/* ② summary */
.rx-banner { position: relative; aspect-ratio: 16 / 7; min-height: 150px; border-radius: var(--r-md); overflow: hidden; }
.rx-banner { background: var(--surface-2); }
.rx-banner > .cv, .rx-banner > .cv-fb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rx-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 10, .95) 8%, rgba(8, 8, 10, .35) 62%, rgba(8, 8, 10, .5)); }
.rx-banner-in { position: absolute; z-index: 2; inset: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; }
.rx-bal { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(10, 10, 12, .74); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12.5px; }
.rx-bal-l { color: var(--text-2); }
.rx-bal i { color: var(--text-4); font-style: normal; }
.rx-bal .credit-amt .u { display: none; }
.rx-banner h3 { font: 800 20px/1.3 var(--font-display); text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.rx-banner p { font-size: 12.5px; color: var(--text-2); }
.rx-incl-box { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--key-soft); box-shadow: inset 0 0 0 1px var(--key-line); color: var(--text); }
.rx-incl-box > .i { color: var(--key); margin-top: 3px; flex: 0 0 auto; }
.rx-incl-box b { color: var(--key); }
.rx-incl { margin-top: 6px; display: grid; gap: 4px; font-size: 13px; }
.rx-incl li { display: flex; align-items: center; gap: 6px; }
.rx-incl .i { color: var(--text-3); }   /* neutral: the box already carries the key accent */
.rx-block p { color: var(--text); }

.rx-bill { display: grid; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); padding: 4px 16px; }
.rx-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 14px; color: var(--text-2); }
.rx-line + .rx-line { border-top: 1px solid var(--line); }
.rx-line > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.rx-cost { display: inline-flex; align-items: center; gap: 8px; }
.rx-cost .keys--strike { color: var(--text-3); }
.rx-days { display: grid; justify-items: end; gap: 2px; text-align: end; }
.rx-days b { color: var(--text); font-weight: 600; }
.rx-days em { font-style: normal; font-size: 12px; color: var(--ok); }
.rx-line--gold > span:last-child, .rx-line--gold .i { color: var(--key); font-weight: 600; }
.rx-line--credit > span:last-child, .rx-line--credit .i { color: var(--credit); font-weight: 600; }
.rx-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 12px; border-top: 1px solid var(--line-2); }
.rx-total > span { font: 600 15px/1 var(--font-ui); color: var(--text); }
.rx-total .keys--xl { font-size: clamp(30px, 6vw, 40px); }
.rx-credit { padding: 10px 14px; border-radius: var(--r-md); background: var(--ok-soft); color: var(--text); font-size: 14px; }
.rx-credit input:checked { background: var(--ok); border-color: var(--ok); }
.rx-key-open { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border-radius: var(--r-md); border: 1.5px dashed var(--key-line); color: var(--key); font-weight: 500; transition: background var(--d-1), border-color var(--d-1); }
.rx-key-open:hover { background: var(--key-soft); border-color: var(--key); }
.rx-key-box { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--key-line); background: var(--key-soft); }
.rx-key-box > p:first-child b { color: var(--key); }
.rx-key-box .btn--subtle { justify-self: start; }
.rx-key-row { gap: 8px; }
.rx-key-row .input { flex: 1; min-width: 0; text-transform: uppercase; }
.rx-key-on { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--ok-soft); color: var(--ok); font-size: 13.5px; }
.rx-key-on span { flex: 1; }
.rx-key-on b { color: var(--text); }
.rx-key-on .btn { color: var(--text-2); }
.rx-btn-keys { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 4px; padding: 4px 9px; border-radius: var(--r-pill); background: rgba(20, 8, 3, .22); font-weight: 700; }

/* keys short (the paywall moment): exact missing keys + «اشحن وكمّل» */
.rx-short-box { display: grid; gap: 10px; padding: 18px; border-radius: var(--r-md); background: linear-gradient(160deg, var(--key-soft), transparent 70%), var(--bg-2); box-shadow: inset 0 0 0 1px var(--key-line); text-align: center; }
.rx-short-n { display: flex; align-items: baseline; justify-content: center; gap: 10px; font-weight: 600; color: var(--text); }
.rx-short-meter > i { background: var(--key); }
.rx-short-legend { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-3); }
.rx-short-legend b { color: var(--text); }
.rx-short-msg { font-size: 13.5px; line-height: 1.9; color: var(--text-2); }
.rx-short-msg b { color: var(--text); }

.rx-phone { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 30px 10px; }
.rx-phone-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: var(--ok); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }   /* neutral illustration disc, ok glyph */

/* ④ success */
.rx-done > * + * { margin-top: 14px; }
/* motion v3: success rows arrive just after the title card (rare moment) */
.rx-done > :nth-child(n+2) { animation: gdIn 360ms var(--ease-out) both; }
.rx-done > :nth-child(2) { animation-delay: 450ms; } .rx-done > :nth-child(3) { animation-delay: 510ms; }
.rx-done > :nth-child(4) { animation-delay: 570ms; } .rx-done > :nth-child(5) { animation-delay: 630ms; }
.rx-done > :nth-child(6) { animation-delay: 690ms; }
.rx-reveal { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.rx-reveal > .cv, .rx-reveal > .cv-fb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: rxReveal 1.6s var(--ease-out) both; }
@keyframes rxReveal { from { transform: scale(1.18); filter: brightness(.2) blur(6px); } to { transform: scale(1); filter: none; } }
.rx-reveal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 10, .95) 6%, rgba(8, 8, 10, .25) 70%); }
.rx-reveal-in { position: absolute; z-index: 2; inset-inline: 18px; bottom: 14px; display: grid; justify-items: start; gap: 4px; animation: heroRise .9s .35s var(--ease-out) both; }
.rx-reveal-in h2 { font: 800 clamp(20px, 3.4vw, 26px)/1.3 var(--font-display); }
.rx-check { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--bg); box-shadow: 0 0 0 6px var(--ok-soft); margin-bottom: 6px; }
.rx-check .i { width: var(--ic-xl); height: var(--ic-xl); }
.rx-paid { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 700 16px/1.5 var(--font-display); color: var(--ok); }
.rx-creds { display: grid; gap: 8px; }
.rx-order { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); background: var(--key-soft); box-shadow: inset 0 0 0 1px var(--key-line); font-size: 13.5px; color: var(--ok); }
.rx-order b { flex: 1; color: var(--key); font-size: 16px; letter-spacing: .04em; text-align: start; }
.rx-until { display: flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- GOLD UPSELL (silver × elite) */
.layer--up .dlg-head { position: absolute; z-index: 4; top: 0; inset-inline: 0; padding: 12px 12px 0; justify-content: flex-end; pointer-events: none; }
.layer--up .dlg-x { pointer-events: auto; background: rgba(10, 10, 12, .6); margin: 0; }
.layer--up .dlg-body { padding: 0; }
.up-art { position: relative; aspect-ratio: 16 / 7; overflow: hidden; }
.up-art > .cv, .up-art > .cv-fb { position: absolute; inset: 0; }
.up-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 4%, rgba(20, 20, 24, .3) 70%); }
.up-art-in { position: absolute; z-index: 2; inset-inline: 20px; bottom: 6px; display: grid; justify-items: start; gap: 6px; }
.up-art-in b { font: 800 18px/1.3 var(--font-display); }
.up-body { display: grid; gap: 10px; padding: 14px 20px 6px; }
.up-plan { margin-top: 6px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--ember-line); }
.up-plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.up-price b { font: 700 22px/1 var(--font-ui); color: var(--text); }
.up-price small { margin-inline-start: 6px; font-size: 12.5px; color: var(--text-3); }
.up-plan ul { display: grid; gap: 6px; }
.up-plan li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.up-plan li .i { color: var(--ok); margin-top: 3px; flex: 0 0 auto; }

/* ---------------------------------------------------------------- STEAM (vault tab) */
.st-list { padding-block: var(--s-6) var(--s-9); }
.st-grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); } }
@media (min-width: 1200px) { .st-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color var(--d-2), box-shadow var(--d-3); }
@media (hover: hover) and (pointer: fine) { .st-card:hover { border-color: color-mix(in srgb, var(--sec-steam, var(--info)) 35%, transparent); box-shadow: var(--sh-2); } } /* motion v3: hover gated */
.st-card.is-owned { border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.st-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.st-media .cv, .st-media .cv-fb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.st-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 0%, rgba(20, 20, 24, 0) 55%); }
@media (hover: hover) and (pointer: fine) { .st-card:hover .st-media .cv { transform: scale(1.05); } } /* motion v3: no stuck zoom on touch */
.st-cat { position: absolute; z-index: 2; top: 10px; inset-inline-end: 10px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(10, 10, 12, .78); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); font: 700 12px/1 var(--font-ui); }
.st-body { display: grid; gap: 10px; padding: 0 16px 16px; align-content: start; }
.st-strip { display: flex; gap: 5px; margin-top: -22px; position: relative; z-index: 2; }
.st-strip > span { position: relative; width: 38px; height: 38px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 2px var(--surface); background: var(--surface-2); flex: 0 0 auto; }
.st-strip .cv, .st-strip .cv-fb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-strip .st-more { display: grid; place-items: center; background: var(--key-soft); color: var(--key); font: 700 13px/1 var(--font-ui); box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 1px var(--key-line); }
.st-title { font: 800 19px/1.35 var(--font-display); }
.st-count { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ok); font-weight: 500; }
.st-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }

/* steam sheets */
.st-sheet .dlg-body > * + * { margin-top: 16px; }
.st-sheet-hero { position: relative; aspect-ratio: 21 / 8; border-radius: var(--r-md); overflow: hidden; }
.st-sheet-hero > .cv, .st-sheet-hero > .cv-fb { position: absolute; inset: 0; }
.st-sheet-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 10, .6), rgba(8, 8, 10, 0) 60%); }
@media (max-width: 640px) { .st-sheet-hero { aspect-ratio: 2 / 1; } }
.st-lines { display: grid; gap: 4px; }
.st-lines p { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ok); }
.st-feats { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r-md); background: var(--ok-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 26%, transparent); }
.st-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); line-height: 1.7; }
.st-feats .i { color: var(--ok); margin-top: calc((1.7em - var(--ic-sm)) / 2); flex: 0 0 auto; }
.st-h4 { font: 600 14px/1.4 var(--font-ui); color: var(--text); margin-top: 4px; }
.st-games { display: grid; max-height: 260px; overflow-y: auto; padding-inline-end: 4px; border-block: 1px solid var(--line); }
.st-games li { display: flex; align-items: center; gap: 12px; padding: 8px 2px; font-size: 14px; font-weight: 500; }
.st-games li + li { border-top: 1px solid var(--line); }
.st-games bdi { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-g-art { position: relative; width: 92px; aspect-ratio: 460 / 215; border-radius: 6px; overflow: hidden; flex: 0 0 auto; }
.st-g-art .cv, .st-g-art .cv-fb { position: absolute; inset: 0; }
.st-terms { display: grid; gap: 8px; }
.st-terms li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.7; color: var(--text-2); }
.st-terms .i { margin-top: calc((1.7em - var(--ic-sm)) / 2); flex: 0 0 auto; }

.st-terms .is-key .i { color: var(--key); }
.st-terms .is-warn .i { color: var(--warn); }
.st-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px 0; border-top: 1px solid var(--line); font-weight: 600; }
.st-needsub { display: grid; gap: 12px; padding-top: 10px; }
.st-needsub-s { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; }
.st-needsub-s .i { color: var(--warn); }
.st-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 4px; }
.st-plan { display: grid; justify-items: start; gap: 6px; padding: 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-2); transition: border-color var(--d-1); }
.st-plan:hover { border-color: var(--line-3); }
.st-plan b { font: 700 24px/1.1 var(--font-ui); }
.st-plan--gold { border-color: var(--ember-line); background: var(--ember-glass); }
.st-creds .dlg-body > * + * { margin-top: 14px; }
.st-done { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 6px 0 4px; }
.st-done .t-h2 { color: var(--ok); }
.st-done .rx-check { animation: dlgIn .6s var(--ease-out) both; }
.st-run { display: grid; counter-reset: r; }
.st-run li { position: relative; display: grid; gap: 2px; padding: 12px 0; padding-inline-start: 40px; }
.st-run li + li { border-top: 1px solid var(--line); }
.st-run li::before { counter-increment: r; content: counter(r); position: absolute; inset-inline-start: 0; top: 13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); font: 700 12px/1 var(--font-ui); }
.st-run b { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.st-run span { font-size: 13px; color: var(--text-3); line-height: 1.7; }
.st-run bdi { color: var(--text); font-weight: 600; }
.st-run .pill { height: 22px; font-size: 11px; }
.st-code { display: grid; justify-items: center; gap: 10px; padding: 18px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line-2); text-align: center; }
.st-code b { font: 700 clamp(34px, 8vw, 46px)/1 var(--font-ui); letter-spacing: .28em; padding-inline-start: .28em; color: var(--key); }
.st-code-meter { width: 70%; }
.st-code-meter > i { transition: width 1s linear; background: var(--key); }
.st-guard.is-low .st-code b, .st-guard.is-low [data-st-left] { color: var(--danger); }
.st-guard.is-low .st-code-meter > i { background: var(--danger); }

/* keep footer actions clear of the prototype 🧪 button (bottom-left) */
.layer--rx .dlg-foot, .layer--st-sheet .dlg-foot, .layer--st-creds .dlg-foot, .layer--up .dlg-foot, .layer--cx-qv .qv-actions { padding-inline-end: calc(var(--dev-gap) + 8px); }
@media (min-width: 641px) { .layer--st-sheet .dlg-foot, .layer--st-creds .dlg-foot, .layer--up .dlg-foot { padding-inline-end: 24px; } .layer--cx-qv .qv-actions { padding-inline-end: 0; } }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gd-kb, .cxp-media .cv, .rx-reveal > .cv { animation: none !important; transform: none !important; }
  .cx-peek { animation: none !important; }
  .gd-copy > *, .gd-poster, .rx-done > * { animation-delay: 0ms !important; } /* motion v3: no invisible wait before staggered rows */
}

/* Steam vault shelves: single-game accounts + bundles */
.st-shelf + .st-shelf { margin-top: 34px; }
.st-shelf-h { display: flex; align-items: center; gap: 8px; font: 800 20px/1.3 var(--font-display, inherit); margin: 0 0 4px; }

.st-shelf-h .i { color: var(--info); }
.st-shelf-s { color: var(--text-3); font-size: 14px; margin: 0 0 14px; }

/* ==== css/wallet.css ==== */
/* =====================================================================
   SCREEN «الشاشة» v3 — G2 WALLET · css/wallet.css
   packages (plan marquee) · topup (fuel station) · psplus (channel line-up) ·
   redeem (gift-code screen) · orders (receipts) · history (statement)
   + store sheet, PS Plus summary, redeem modal, order sheet.
   Page-specific only; tokens + .blk from base.css. Colour roles:
   --key = keys/prices/savings · --plus = PS Plus · --ok/--credit = credit/active ·
   ember = the action. Recommended options carry a --key ribbon.
   ===================================================================== */

/* ---------------------------------------------------------------- shared */
.page--packages, .page--topup, .page--psplus, .page--redeem, .page--orders, .page--history,
.store-sheet, .plus-sum, .rd-modal, .ord-sheet { --ribbon-ink: #1B1405; }
.sgn { display: inline-block; direction: ltr; unicode-bidi: bidi-override; font-variant-numeric: tabular-nums; }
.t-ok { color: var(--ok); }
.wl-collage { position: absolute; inset: -12% -6%; z-index: -2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; transform: rotate(-5deg) scale(1.08); opacity: .3; pointer-events: none; }
.wl-collage > div { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
@media (min-width: 760px) { .wl-collage { grid-template-columns: repeat(6, 1fr); } }
.wl-stars { display: inline-flex; gap: 1px; vertical-align: -2px; margin-inline-end: 4px; }
.wl-stars .i { width: 12px; height: 12px; vertical-align: 0; }   /* level pips (star:fill): the one documented sub-scale exception */
.wl-stars--classic { color: var(--text-2); }
.wl-stars--selected { color: var(--silver); }
.wl-stars--elite { color: var(--gold); }

/* section page head: the shared full-bleed .page-head--sec band (base.css) — only the inner layout lives here */
.wl-ph-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.wl-ph-main { display: flex; align-items: flex-start; gap: 14px; min-width: 0; flex: 1 1 420px; }
.wl-ph-copy { min-width: 0; }
.wl-ph-copy p { margin-top: 6px; }
.wl-ph h1 { font-size: var(--fs-h1); max-width: none; }
.wl-ph-side { display: flex; gap: 10px; }
/* optional cover strip behind the band (packages, PS Plus): quiet, fades into the page */
.wl-ph-art { position: absolute; z-index: -2; inset: calc(var(--hdr-h) * -1) 0 -40px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, transparent, #000 55%); mask-image: linear-gradient(to top, transparent, #000 55%); }
.wl-ph-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(10, 10, 12, .92) 30%, rgba(10, 10, 12, .72)); }
.wl-ph-art { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-content: start; gap: 8px; padding: 8px; }
.wl-ph-art > div { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-2); opacity: .6; }
@media (max-width: 639.98px) {
  .wl-ph-art { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wl-ph-side { width: 100%; }
  .wl-ph-side .btn { flex: 1; }
}

/* activity empty states (orders / history) — subscribe first without a plan, vault with one */
.wl-empty-go { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.wl-empty-go .btn { margin-top: 0; }

.wl-body { display: grid; gap: 0; padding-bottom: var(--s-8); }
.wl-chips { margin: 4px 0 6px; }
.wl-cnt { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(245, 241, 234, .1); font: 600 11px/1 var(--font-ui); }
.chip.is-on .wl-cnt { background: rgba(255, 90, 31, .2); }
.wl-list { margin-bottom: 4px; }
.wl-body .list-group { display: flex; align-items: center; gap: var(--ic-gap-sm); }

/* jump cards (link to a sibling money page): neutral card, plain neutral glyph, the forward chevron in --text-3 */
.wl-jump { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text); transition: border-color var(--d-1), background var(--d-1); }
.wl-jump:hover { border-color: var(--line-3); background: var(--surface-2); }
.wl-jump > .i { color: var(--text-3); flex: 0 0 auto; transition: color var(--d-1); }
.wl-jump:hover > .i { color: var(--text); }
.wl-jump .list-main b { white-space: normal; }

/* the «recommended» ribbon (same everywhere: the act-now colour, dark ink, no glow) */
.pk-ribbon, .tp-ribbon, .pl-ribbon {
  position: absolute; z-index: 2; top: -1px; inset-inline-end: 22px; display: inline-flex; align-items: center; gap: var(--ic-gap-sm);
  padding: 8px 13px 9px; border-radius: 0 0 11px 11px; background: var(--ember); color: var(--on-ember); font: 700 12.5px/1 var(--font-ui);
}

/* ================================================================ PACKAGES — plan marquee */
/* the locked savings line, as one sentence under the lead (count-up on the number only) */
.wl-ph .pk-save { display: flex; align-items: center; gap: var(--ic-gap); margin-top: var(--s-5); padding: 12px 0 0; max-width: 62ch;
  border-top: 1px solid color-mix(in srgb, var(--key) 22%, var(--line)); font: 500 clamp(15px, 1.6vw, 17px)/1.7 var(--font-ui); color: var(--text); }
.pk-save-ic { flex: 0 0 auto; display: inline-grid; place-items: center; color: var(--key); }   /* savings = --key, plain glyph */
.pk-save-t { min-width: 0; text-wrap: balance; }
.pk-save-n { white-space: nowrap; color: var(--key); font-weight: 700; }
.pk-save-n b { font-size: 1.22em; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

.pk-body { display: grid; gap: var(--s-6); padding-bottom: var(--s-9); }
.pk-mine { display: grid; gap: 14px; }
.pk-mine.blk + .pk-bar { margin-top: 0; }
.pk-mine-a { display: flex; align-items: center; gap: 14px; }
.pk-mine-a .t-xs { display: block; margin-bottom: 3px; }
.pk-mine-row { --gap: 8px; }
.pk-mine-b { display: grid; gap: 8px; align-content: center; }
.pk-mine-b b { color: var(--text); font-weight: 600; }
@media (min-width: 760px) { .pk-mine { grid-template-columns: auto minmax(0, 1fr); gap: 32px; } .pk-mine-a { min-width: 250px; } }

.pk-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.pk-bar h2 { font-size: var(--fs-h2); }
.pk-views[data-view-now="cards"] .pk-table-wrap { display: none; }
.pk-views[data-view-now="compare"] .pk-grid, .pk-views[data-view-now="compare"] .pd { display: none; }

.pk-grid { display: grid; gap: 22px; padding-top: 4px; }
@media (max-width: 759.98px) { .pk-card--gold { order: -1; } }
.pk-card {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px 22px 22px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line-2);
}
/* desktop: both cards share one row grid (subgrid) → same top line, features start at the same y, buttons bottom-aligned */
@media (min-width: 760px) {
  .pk-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); column-gap: 22px; row-gap: 0; align-items: stretch; padding-top: 16px; }
  .pk-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 16px; align-content: start; padding: 36px 32px 28px; }
  .pk-f { align-self: start; }
  .pk-go { align-self: end; }
}
.pk-card--gold {
  border: 1.5px solid var(--ember-line);
  background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--ember) 9%, transparent), transparent 60%), var(--surface);
}
.pk-card.is-mine:not(.pk-card--gold) { border-color: color-mix(in srgb, var(--ok) 35%, var(--line-2)); }
.pk-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 36px; padding-inline-end: 120px; }
.pk-card--silver .pk-top { padding-inline-end: 0; }
.pk-name .tier-mark { font: 800 26px/1.3 var(--font-display); gap: var(--ic-gap); }
.pk-name .tier-mark .i { width: var(--ic-sec); height: var(--ic-sec); }
.pk-persona { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font: 600 12.5px/1 var(--font-ui);
  color: var(--text-2); background: rgba(245, 241, 234, .05); box-shadow: inset 0 0 0 1px var(--line-2); }
.pk-tag { color: var(--text); opacity: .82; font-size: 15px; line-height: 1.7; }
.pk-card--gold .pk-tag { opacity: 1; }
.pk-price { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pk-price b { font: 700 clamp(50px, 5.4vw, 68px)/1 var(--font-ui); letter-spacing: -.03em; color: var(--key); }
.pk-go { display: grid; gap: 10px; }
.pk-up { display: flex; align-items: flex-start; gap: var(--ic-gap); font-size: 13.5px; line-height: 1.7; color: var(--text-2); }
.pk-up .i { color: var(--text-3); margin-top: calc((1.7em - var(--ic-sm)) / 2); flex: 0 0 auto; }
.pk-price > span { font-size: 15px; color: var(--text-2); padding-bottom: 8px; }
.pk-deal { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); height: 26px; padding: 0 10px; margin-bottom: 8px; border-radius: var(--r-pill); background: var(--ember-soft); color: var(--ember-hi); font: 600 12px/1 var(--font-ui); box-shadow: inset 0 0 0 1px var(--ember-line); }
.pk-f { display: grid; gap: 2px; flex: 1; align-content: start; }
.pk-f li { display: flex; align-items: flex-start; gap: var(--ic-gap); padding: 6px 0; font-size: 14.5px; color: var(--text-2); line-height: 1.65; }
.pk-f li > .i { flex: 0 0 auto; margin-top: calc((1.65em - var(--ic-sm)) / 2); color: var(--text-3); }   /* one neutral glyph colour for the whole list */
.pk-f--key .pk-num { color: var(--key); }
.pk-f--key b { color: var(--text); font-weight: 700; }
.pk-f--gold, .pk-f--plus { color: var(--text); }
.pk-cat { white-space: nowrap; }
.pk-strike { position: relative; display: inline-block; white-space: nowrap; color: var(--text-3); text-decoration: none; }
.pk-strike::after { content: ""; position: absolute; inset-inline: -2px; top: 52%; height: 1.5px; border-radius: 2px; background: var(--text-3); }
.pk-strike .wl-stars { opacity: .55; }

/* comparison table */
.pk-table-wrap { border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.pk-table { table-layout: fixed; }
.pk-table th, .pk-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: center; vertical-align: middle; }
.pk-table tbody th { text-align: start; font-weight: 500; color: var(--text-2); width: 40%; }
.pk-table thead th { background: var(--bg-2); padding: 14px 8px; vertical-align: bottom; }
.pk-table thead th:first-child { text-align: start; padding-inline-start: 14px; font: 600 13px/1.3 var(--font-ui); color: var(--ok); }
.pk-table thead .tier-mark { font: 700 16px/1.3 var(--font-display); }
.pk-th-flag { display: block; width: max-content; margin: 6px auto 0; padding: 4px 8px; border-radius: 6px; background: var(--ember); color: var(--on-ember); font: 700 10.5px/1 var(--font-ui); }
.pk-table tfoot th, .pk-table tfoot td { border-bottom: 0; padding: 14px 8px; }
.pk-table td b { font-weight: 600; }
.pk-c--gold { background: color-mix(in srgb, var(--ember) 5%, transparent); }
.pk-table thead .pk-c--gold { background: color-mix(in srgb, var(--ember) 10%, var(--bg-2)); }
.pk-yes, .pk-no { display: inline-grid; place-items: center; width: 26px; height: 26px; }
.pk-yes { color: var(--ok); }        /* included = --ok glyph, no disc */
.pk-no { color: var(--text-4); }
@media (max-width: 420px) { .pk-table th, .pk-table td { padding: 11px 6px; font-size: 13px; } .pk-table tbody th { width: 36%; } .pk-table tfoot .btn { padding-inline: 6px; } }

.pk-foot { align-items: center; }
.pk-lib { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); color: var(--key); font-weight: 600; }
.pk-foot .pk-lib .i { margin-top: 0; color: inherit; }
.pk-lib:hover { text-decoration: underline; text-underline-offset: 3px; }
.pk-how .blk-head { flex-wrap: wrap; }
/* flat steps: divided rows (phone) / hairline-separated columns (desktop), no inner cards, no numerals */
.pk-steps { display: grid; }
.pk-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.pk-steps li + li { border-top: 1px solid var(--line); }
.pk-step-ic { flex: 0 0 auto; display: inline-grid; place-items: center; color: var(--text-2); }   /* plain neutral step glyph */
.pk-step-ic .i { width: var(--ic-sec); height: var(--ic-sec); }
.pk-steps h3 { font-size: 16px; margin-bottom: 4px; }
.pk-steps p { color: var(--text-2); font-size: 14px; line-height: 1.8; }
@media (min-width: 760px) {
  .pk-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pk-steps li { flex-direction: column; padding: 4px 24px; }
  .pk-steps li:first-child { padding-inline-start: 0; }
  .pk-steps li + li { border-top: 0; border-inline-start: 1px solid var(--line); }
}

/* ================================================================ STORE SHEET (simulated checkout) */
.ss-prod { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line-2); }
.ss-ic { flex: 0 0 auto; display: inline-grid; place-items: center; color: var(--key); }
.ss-ic .i { width: var(--ic-sec); height: var(--ic-sec); }
.ss-prod--gold .ss-ic { color: var(--gold); }
.ss-prod--silver .ss-ic { color: var(--silver); }
.ss-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ss-main b { font: 700 17px/1.4 var(--font-display); }
.ss-main span { font-size: 13px; color: var(--text-3); }
.ss-price { display: flex; align-items: baseline; gap: 4px; }
.ss-price b { font: 700 28px/1 var(--font-ui); letter-spacing: -.02em; color: var(--key); }
.ss-price span { font-size: 13px; color: var(--text-2); }
.ss-kv { margin-top: 16px; }
.ss-notes { --stack: 10px; margin-top: 16px; }
.ss-err { margin-top: 12px; }
.ss-mock { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-3); font-size: 12.5px; line-height: 1.75; color: var(--text-3); }
.ss-mock > .i { margin-top: calc((1.75em - var(--ic-sm)) / 2); flex: 0 0 auto; }
.ss-done { display: grid; justify-items: center; text-align: center; gap: 14px; padding-top: 4px; }
.ss-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ok); animation: ssPop .5s var(--ease-out) both; }
.ss-check .i { width: var(--ic-xl); height: var(--ic-xl); }
.ss-code { width: 100%; display: grid; justify-items: center; gap: 10px; padding: 18px 14px; border-radius: var(--r-lg); background: var(--bg-2); border: 1.5px dashed var(--key-line); }
.ss-code-l { font-size: 12.5px; color: var(--text-3); }
.ss-code b { font: 600 clamp(19px, 5.4vw, 27px)/1.2 var(--font-ui); letter-spacing: .08em; color: var(--key); word-break: break-all; }
.ss-done .note { text-align: start; width: 100%; }
@keyframes ssPop { from { transform: scale(.6); opacity: 0; } }

/* ================================================================ TOPUP — fuel station */
.tp-body { display: grid; gap: var(--s-6); padding-bottom: var(--s-9); }
.tp-energy { display: grid; gap: 14px; }
.tp-e-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.tp-e-bal { display: grid; gap: 10px; }
.tp-e-l { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); font-size: 13px; color: var(--text-2); }
.tp-e-l .i { color: var(--text-3); }
.tp-e-side { display: grid; justify-items: end; gap: 8px; }
.tp-lvl { --tc: var(--danger); display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--r-pill); font: 700 13px/1 var(--font-ui); color: var(--tc); background: color-mix(in srgb, var(--tc) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 34%, transparent); }
.tp-energy--warn .tp-lvl { --tc: var(--warn); }
.tp-energy--ok .tp-lvl { --tc: var(--ok); }
.tp-e-meta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
/* one continuous, calm meter (colour follows level via .meter--danger/--warn/--ok/--off) */
.tp-meter { height: 10px; border-radius: 6px; }
.tp-e-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 12px; color: var(--text-3); }
.tp-body--noplan .tp-energy { padding-block: 18px; }
.tp-body--noplan .tp-energy .tp-e-foot { display: none; }

/* no plan: subscribe first */
.tp-plan-blk { display: grid; gap: var(--s-5); }
.tp-plan-blk .blk-head { margin-bottom: var(--s-3); }
.tp-plan-blk h2 { font-size: var(--fs-h3); line-height: 1.5; }
.tp-plan-s { color: var(--text-2); font-size: 14.5px; line-height: 1.85; max-width: 60ch; }
.tp-plan-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: var(--s-5); }
.tp-plans { display: grid; align-content: center; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); }
.tp-plan { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; padding: 14px 16px; }
.tp-plan + .tp-plan { border-top: 1px solid var(--line); }
.tp-plan .tier-mark { font: 700 15px/1.3 var(--font-display); }
.tp-plan-v { font-size: 13.5px; color: var(--text-2); }
.tp-plan-v b { color: var(--key); font-weight: 700; }
.tp-plan-p { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.tp-plan-p b { color: var(--text); font-size: 16px; font-weight: 700; }
@media (max-width: 480px) { .tp-plan { grid-template-columns: 1fr auto; } .tp-plan-v { grid-column: 1 / -1; grid-row: 2; } }
@media (min-width: 900px) { .tp-plan-blk { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: var(--s-7); } }

.tp-grid { display: grid; gap: 22px; }
@media (max-width: 899.98px) { .tp-card.is-featured { order: -1; margin-top: 8px; } }
@media (min-width: 900px) { .tp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; padding-top: 18px; } }
.tp-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 26px 22px 22px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-2); transition: border-color var(--d-2); }
.tp-card:hover { border-color: var(--line-3); }
.tp-card.is-featured { border: 1.5px solid var(--ember-line); background: radial-gradient(100% 70% at 100% 0%, color-mix(in srgb, var(--ember) 9%, transparent), transparent 60%), var(--surface-2); }
@media (min-width: 900px) { .tp-card { grid-template-rows: 28px auto auto auto 1fr auto; } .tp-card .btn { align-self: end; } }
.tp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.tp-tag { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); height: 28px; padding: 0 11px; border-radius: var(--r-pill); font: 600 12.5px/1 var(--font-ui); color: var(--text-2); background: rgba(245, 241, 234, .05); box-shadow: inset 0 0 0 1px var(--line-2); }
.tp-tag .i { color: var(--text-3); }
.tp-keys { display: flex; align-items: center; gap: var(--ic-gap); margin-top: 4px; }
.tp-keys > .i { width: var(--ic-sec); height: var(--ic-sec); color: var(--key); }
.tp-keys b { font: 700 clamp(50px, 6vw, 66px)/1 var(--font-ui); letter-spacing: -.035em; color: var(--key); }
.tp-keys span { font-size: 16px; color: var(--text-2); align-self: flex-end; padding-bottom: 6px; }
.tp-price { font-size: 15px; color: var(--text-2); }
.tp-price b { color: var(--text); font-size: 22px; font-weight: 700; }
.tp-name { font-size: 17px; color: var(--text); }
.tp-after { font-size: 12.5px; color: var(--text-3); padding-top: 10px; border-top: 1px solid var(--line); }
.tp-after b { color: var(--text); font-weight: 600; }
.tp-card .btn { margin-top: 6px; }
.tp-tip { display: flex; align-items: flex-start; gap: var(--ic-gap); padding: 0 2px; color: var(--text-2); font-size: 14.5px; line-height: 1.75; }
.tp-tip .i { margin-top: calc((1.75em - var(--ic-sm)) / 2); flex: 0 0 auto; color: var(--text-3); }
.tp-fine { display: flex; align-items: flex-start; gap: var(--ic-gap); padding: 0 2px; font-size: 12.5px; line-height: 1.8; color: var(--text-3); }
.tp-fine .i { margin-top: calc((1.8em - var(--ic-sm)) / 2); flex: 0 0 auto; }
.tp-fine .link { font-size: inherit; }
.tp-links { display: grid; gap: 12px; }
@media (min-width: 760px) { .tp-links { grid-template-columns: 1fr 1fr; gap: 14px; } }

/* ================================================================ REDEEM — gift-code screen */
.rd-page { position: relative; isolation: isolate; overflow: hidden; padding: var(--s-4) 0 var(--s-9); }
.rd-head { padding-bottom: var(--s-4); }
.rd-page::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 45% at 50% 22%, color-mix(in srgb, var(--sec-redeem) 16%, transparent), transparent 70%), radial-gradient(60% 55% at 50% 35%, rgba(10, 10, 12, .45), rgba(10, 10, 12, .92) 80%), linear-gradient(to top, var(--bg) 4%, rgba(10, 10, 12, .3) 40%); }
.rd-page .wl-collage { opacity: .4; }
.rd-wrap { display: grid; justify-items: center; gap: var(--s-5); }
.rd-tv { width: 100%; max-width: 780px; border-radius: var(--r-xl); background: rgba(16, 16, 20, .95); border: 1px solid color-mix(in srgb, var(--sec-redeem) 30%, var(--line-2)); box-shadow: var(--sh-3), 0 0 0 6px rgba(183, 155, 255, .04); overflow: hidden; }
.rd-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; }
.rd-more { width: 100%; max-width: 780px; display: grid; gap: 12px; }
@media (min-width: 640px) { .rd-more { grid-template-columns: 1fr 1fr; gap: 14px; } }

.rd { position: relative; padding: 34px 18px 28px; }
@media (min-width: 640px) { .rd { padding: 44px 40px 36px; } }
.rd-screen { display: grid; justify-items: center; text-align: center; gap: 12px; }
.rd-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.rd-ic .i { width: var(--ic-xl); height: var(--ic-xl); }
.rd-title { font: 800 clamp(26px, 4vw, 40px)/1.3 var(--font-display); margin-top: 4px; }
.rd-sub { color: var(--text-2); max-width: 44ch; }
.rd-code { width: 100%; margin-top: 14px; display: grid; justify-items: center; }
.rd-hint { max-width: 46ch; }
.rd-msg { width: 100%; max-width: 560px; text-align: start; }
.rd-msg:empty { display: none; }
.rd-msg .note > div { display: grid; gap: 8px; justify-items: start; }
.rd-msg .note b { font-weight: 600; color: inherit; }
.rd-go-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; width: 100%; }
.rd-go { min-width: min(100%, 240px); }
.rd-go.is-ready:not(:disabled) { box-shadow: 0 12px 34px var(--ember-glow); }
@media (max-width: 480px) { .rd-go { flex: 1 1 auto; } }
.rd-last { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px dashed var(--key-line); background: var(--bg-2); color: var(--text-2); font-size: 13px; text-align: start; transition: border-color var(--d-1), color var(--d-1); }
.rd-last:hover { border-color: var(--key); color: var(--text); }
.rd-last b { color: var(--key); font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.rd-last > span { display: flex; flex-wrap: wrap; gap: 2px 6px; }
.rd-last .i { color: var(--text-3); flex: 0 0 auto; transition: color var(--d-1); }
.rd-last:hover .i { color: var(--text); }
.rd-kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; font-size: 13px; color: var(--text-3); }
.rd-kinds li { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); }
.rd-kinds b { color: var(--text-2); font-weight: 600; margin-inline-end: 4px; }

/* the big segmented code (individual cells on wide screens) */
.rd .code-in { --ci-w: 46px; --ci-h: 60px; --ci-fs: 25px; --ci-gap: 8px; }
.rd .code-in .sep { width: 10px; }
.rd .code-in .pre { font-size: 20px; letter-spacing: .04em; color: var(--text-2); }
@media (max-width: 760px) {
  .rd .code-in { --ci-gap: 6px; }
  .rd .code-in .cells { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .rd .code-in .pre { flex-basis: 100%; text-align: center; padding: 0; font-size: 14px; letter-spacing: .2em; }
  .rd .code-in .grp { gap: 0; padding: 0 6px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid var(--line-2); transition: border-color var(--d-1), box-shadow var(--d-1); }
  .rd .code-in .cell { width: clamp(16px, 4.9vw, 24px); height: 54px; border: 0; background: transparent; border-radius: 0; font-size: clamp(17px, 5vw, 22px); box-shadow: none; }
  .rd .code-in .cell.is-filled { background: transparent; }
  .rd .code-in .cell.is-cur { box-shadow: none; }
  .rd .code-in .grp:has(.is-cur) { border-color: var(--ember); box-shadow: 0 0 0 4px var(--ember-soft); }
  .rd .code-in .grp:has(.is-filled) { border-color: var(--line-3); }
  .rd .code-in.is-err .grp { border-color: var(--danger); }
  .rd .code-in.is-ok .grp { border-color: var(--ok); }
  .rd .code-in .sep { width: 8px; }
}
.rd--compact .code-in .cells { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
.rd--compact .code-in .pre { flex-basis: 100%; text-align: center; padding: 0; font-size: 14px; letter-spacing: .2em; }
.rd--compact .code-in .grp { gap: 0; padding: 0 6px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid var(--line-2); }
.rd--compact .code-in .cell { width: clamp(16px, 4.9vw, 24px); height: 54px; border: 0; background: transparent; border-radius: 0; font-size: clamp(17px, 5vw, 22px); box-shadow: none; }
.rd--compact .code-in .cell.is-filled { background: transparent; }
.rd--compact .code-in .cell.is-cur { box-shadow: none; }
.rd--compact .code-in .grp:has(.is-cur) { border-color: var(--ember); box-shadow: 0 0 0 4px var(--ember-soft); }
.rd--compact .code-in.is-err .grp { border-color: var(--danger); }
.rd--compact .code-in.is-ok .grp { border-color: var(--ok); }

/* decode result («تم فك التشفير بنجاح») */
.rd-reveal { position: relative; display: grid; justify-items: center; text-align: center; gap: 14px; padding-top: 10px; }
.rd-sweep { position: absolute; top: -34px; inset-inline: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--key) 30%, var(--ember-hi) 50%, var(--key) 70%, transparent); transform-origin: center; animation: rdSweep 1.1s var(--ease-out) both; }
.rd-reveal::before { content: ""; position: absolute; top: -40px; left: 50%; width: min(520px, 90%); height: 220px; transform: translateX(-50%); background: radial-gradient(50% 60% at 50% 0%, rgba(244, 192, 78, .2), transparent 70%); pointer-events: none; animation: rdFade 1.2s var(--ease-out) .15s both; }
.rd-reveal > *:not(.rd-sweep) { animation: rdIn .6s var(--ease-out) both; }
.rd-reveal > :nth-child(2) { animation-delay: .25s; }
.rd-reveal > :nth-child(3) { animation-delay: .35s; }
.rd-reveal > :nth-child(4) { animation-delay: .6s; }
.rd-reveal > :nth-child(5) { animation-delay: .7s; }
.rd-reveal > :nth-child(6) { animation-delay: 1.1s; }
.rd-reveal > :nth-child(7) { animation-delay: 1.2s; }
.rd-reveal > :nth-child(8) { animation-delay: 1.3s; }
.rd-k { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); height: 34px; padding: 0 16px; border-radius: var(--r-pill); background: var(--ok-soft); color: var(--ok); font: 700 14px/1 var(--font-ui); outline: none; }
.rd-big { display: flex; align-items: baseline; justify-content: center; gap: 12px; font: 800 clamp(64px, 12vw, 116px)/1 var(--font-ui); letter-spacing: -.04em; margin: 4px 0 2px; color: var(--key); }
.rd-big b { font-weight: 800; font-variant-numeric: tabular-nums; }
.rd-plus { color: var(--key); margin-inline-end: 2px; }
.rd-u { font: 600 20px/1 var(--font-ui); letter-spacing: 0; color: var(--text-2); }
.rd-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rd-chip { --tc: var(--ok); display: grid; gap: 4px; min-width: 120px; padding: 10px 16px; border-radius: var(--r-md); background: color-mix(in srgb, var(--tc) 9%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent); }
.rd-chip small { font-size: 11.5px; color: var(--text-3); }
.rd-chip b { display: inline-flex; align-items: center; justify-content: center; gap: var(--ic-gap-sm); font: 700 17px/1.2 var(--font-ui); color: var(--tc); }
.rd-chip--key { --tc: var(--key); }
.rd-chip--gold { --tc: var(--gold); }
.rd-chip--silver { --tc: var(--silver); }
.rd-log { display: grid; gap: 7px; margin: 4px 0; font-size: 13.5px; color: var(--text-2); min-width: min(100%, 300px); padding: 12px 16px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); text-align: start; }
.rd-log li { display: flex; align-items: center; gap: var(--ic-gap); animation: rdIn .45s var(--ease-out) both; animation-delay: calc(.8s + var(--i, 0) * .14s); }
.rd-log li > span { flex: 1; }
.rd-log .i { color: var(--ok); flex: 0 0 auto; }
.rd-log em { font: 600 11px/1 var(--font-ui); font-style: normal; color: var(--ok); padding: 4px 7px; border-radius: 6px; background: var(--ok-soft); }
.rd-log li.is-last { color: var(--text); font-weight: 600; }
.rd-bal { font-size: 15px; color: var(--text-2); }
.rd-bal b { color: var(--key); font-size: 18px; font-weight: 700; }
.rd-order { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13.5px; }
.rd-order b { font-weight: 700; letter-spacing: .03em; font-size: 15px; color: var(--key); }
.rd-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
@keyframes rdIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes rdFade { from { opacity: 0; } }
@keyframes rdSweep { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: .35; } }

/* redeem as modal */
.rd-modal .dlg-body { padding: 0; }
.rd-modal .rd { padding: 18px 18px 24px; }
.rd-modal .rd-title { font-size: 24px; }
.rd-modal .rd-kinds { display: none; }
.rd-modal .rd-sweep { top: -12px; }
.layer--rd-modal .dlg-head { position: absolute; z-index: 3; top: 0; inset-inline: 0; justify-content: flex-end; padding: 14px 14px 0; pointer-events: none; }
.layer--rd-modal .dlg-x { pointer-events: auto; }

/* ================================================================ PS PLUS — channel line-up */
.pl-body { display: grid; gap: var(--s-5); padding-bottom: var(--s-9); }

.pl-pend { display: grid; gap: 10px; }
.pl-pend-row { --sc: var(--warn); display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid rgba(255, 181, 71, .3); transition: border-color var(--d-1); }
.pl-pend-row:hover { border-color: var(--warn); }
.pl-pend-row .list-main b { white-space: normal; }
@media (max-width: 480px) { .pl-pend-row .pill { display: none; } }

.pl-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; padding: 16px 18px; border-radius: var(--r-lg); background: linear-gradient(180deg, color-mix(in srgb, var(--plus) 6%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--plus) 20%, var(--line)); }
.pl-ctl { display: grid; gap: 6px; }
.pl-ctl-l { font-size: 12px; color: var(--text-3); }
.pl-seg button { min-height: 44px; padding-inline: 18px; }
.pl-seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--plus) 16%, var(--surface-2)); color: var(--plus); box-shadow: inset 0 0 0 1px var(--plus-line); }
.pl-dev { font: 700 15px/1 var(--font-ui); letter-spacing: .02em; }
.pl-best { display: inline-grid; place-items: center; height: 19px; padding: 0 7px; border-radius: var(--r-pill); background: var(--ok-soft); color: var(--ok); font: 700 10.5px/1 var(--font-ui); }
.pl-me { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-inline-start: auto; }
.pl-me-in { display: grid; gap: 6px; }
.pl-me-b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 640px) { .pl-me { margin-inline-start: 0; width: 100%; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); } }
.pl-devnote { display: flex; align-items: flex-start; gap: var(--ic-gap); font-size: 13.5px; line-height: 1.75; color: var(--text-2); }
.pl-devnote .i { margin-top: calc((1.75em - var(--ic-sm)) / 2); flex: 0 0 auto; color: var(--warn); }
.pl-agree { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 6px 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg-2);
  scroll-margin: calc(var(--hdr-h) + 24px) 0 120px; transition: border-color var(--d-2), background var(--d-2), box-shadow var(--d-2); }
.pl-agree.is-on { border-color: rgba(70, 211, 150, .35); background: var(--ok-soft); }
.pl-agree.is-err { border-color: var(--ember); background: var(--ember-soft); box-shadow: 0 0 0 4px var(--ember-soft); animation: plNudge .42s var(--ease-out) 1; }
.pl-agree.is-err .check input { border-color: var(--ember); }
.pl-agree .check { flex: 1 1 260px; align-items: center; padding-top: 0; color: var(--text); }
.pl-hint { flex-basis: 100%; padding-bottom: 8px; color: var(--ember-ink); }
.pl-hint[hidden] { display: none !important; }
@keyframes plNudge { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

.pl-grid { display: grid; gap: 16px; }
@media (max-width: 759.98px) { .pl-grid { gap: 22px; padding-top: 6px; } .pl-card.is-popular { order: -1; } }
@media (min-width: 760px) { .pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 18px; align-items: stretch; } }
/* calm cards: price = --key, saving = --ok, PS Plus identity on the icon tile only, everything else --text-2 */
.pl-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 22px 22px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-2); }
.pl-card.is-popular { border: 1.5px solid var(--ember-line); background: radial-gradient(100% 70% at 100% 0%, color-mix(in srgb, var(--ember) 8%, transparent), transparent 60%), var(--surface-2); }
.pl-card.is-na { opacity: .6; }
.pl-lead--none { padding-top: 0 !important; min-height: 0; }
/* desktop: the three tiers share rows → names, prices, features and buttons line up */
@media (min-width: 760px) {
  .pl-grid { grid-template-rows: repeat(6, auto); row-gap: 0; }
  .pl-card { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
  .pl-f { align-self: start; }
  .pl-buy { align-self: end; }
}
.pl-name { display: flex; align-items: center; gap: 10px; padding-inline-end: 110px; min-height: 46px; }
.pl-card:not(.is-popular) .pl-name { padding-inline-end: 0; }
.pl-logo { flex: 0 0 auto; display: inline-grid; place-items: center; color: var(--plus); }   /* PS Plus identity: plain glyph, no tile */
.pl-logo .i { width: var(--ic-sec); height: var(--ic-sec); }
.pl-name h3 { font: 800 23px/1.3 var(--font-display); }
.pl-en { display: block; font: 600 12.5px/1.2 var(--font-ui); color: var(--text-3); letter-spacing: .03em; }
.pl-price { margin-top: 6px; }
.pl-price .keys--xl { font-size: clamp(40px, 4.4vw, 52px); color: var(--key); }
.pl-price .keys--xl .u { color: var(--text-2); }
.pl-dash { font: 700 44px/1 var(--font-ui); color: var(--text-3); }
.pl-off { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 26px; font-size: 13px; color: var(--text-3); }
.pl-off .keys--strike { color: var(--text-3); text-decoration-color: var(--text-3); }
.pl-off .keys--strike .i { color: var(--text-4) !important; }
.pl-save { font: 700 13.5px/1 var(--font-ui); color: var(--ok); }
.pl-mb { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); color: var(--text-2); font-size: 12.5px; }
.pl-mb .i { color: var(--text-3); }
.pl-lead { font-size: 13.5px; color: var(--text); font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line); }
.pl-card:not(:has(.pl-lead)) .pl-f { padding-top: 12px; border-top: 1px solid var(--line); }
.pl-f li { display: flex; align-items: flex-start; gap: var(--ic-gap); padding: 4px 0; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.pl-f .i { color: var(--ok); margin-top: calc((1.6em - var(--ic-sm)) / 2); flex: 0 0 auto; }   /* included = --ok */
.pl-buy { margin-top: auto; padding-top: 10px; display: grid; gap: 8px; }
.pl-short { font-size: 12.5px; color: var(--warn); text-align: center; }

.pl-terms { margin-top: var(--s-5); scroll-margin-top: calc(var(--hdr-h) + 16px); }
/* terms: three columns divided by hairlines (no inner cards) */
.pl-terms-grid { display: grid; }
.pl-tb { display: grid; gap: 12px; align-content: start; padding: 18px 0; }
.pl-tb + .pl-tb { border-top: 1px solid var(--line); }
.pl-tb:first-child { padding-top: 0; }
@media (min-width: 900px) {
  .pl-terms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-tb { padding: 0 24px; }
  .pl-tb:first-child { padding-inline-start: 0; }
  .pl-tb:last-child { padding-inline-end: 0; }
  .pl-tb + .pl-tb { border-top: 0; border-inline-start: 1px solid var(--line); }
}
.pl-tb h3 { display: flex; align-items: center; gap: var(--ic-gap); font-size: 15.5px; }
.pl-tb h3 .i { color: var(--text-2); flex: 0 0 auto; }
.pl-tl { display: grid; gap: 10px; }
.pl-tl li { position: relative; padding-inline-start: 16px; font-size: 14px; line-height: 1.85; color: var(--text-2); }
.pl-tl li::before { content: ""; position: absolute; inset-inline-start: 0; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-4); }   /* neutral bullets: one accent per section */
.pl-tl b { color: var(--text); font-weight: 600; }
.pl-use { font-size: 14px; line-height: 1.9; color: var(--text-2); }
.pl-use b { color: var(--plus); font-weight: 600; margin-inline-end: 4px; }

/* need-sub modal */
.pl-ns { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 6px 0 4px; }
.pl-ns-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); margin-bottom: 6px; }
.pl-ns h3 { font-size: 20px; }
.pl-ns p { color: var(--text-2); }
.pl-ns-go { color: var(--key) !important; font-weight: 700; }

/* PS Plus summary + golden key */
.ps-head { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: linear-gradient(120deg, color-mix(in srgb, var(--plus) 10%, transparent), transparent 70%), var(--bg-2); border: 1px solid color-mix(in srgb, var(--plus) 25%, var(--line)); }
.ps-head > div { display: grid; gap: 2px; }
.ps-head b { font: 700 17px/1.4 var(--font-display); }
.ps-head span { font-size: 13px; color: var(--text-3); }
.ps-ic { flex: 0 0 auto; display: inline-grid; place-items: center; color: var(--plus); }
.ps-ic .i { width: var(--ic-sec); height: var(--ic-sec); }
.ps-kv { margin: 16px 2px; }
.ps-kv dt { color: var(--plus); }
.ps-kv dd { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.ps-price .keys--lg { color: var(--key); }
.ps-bal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin: 14px 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13.5px; }
.ps-bal span { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); }
.ps-bal b { color: var(--text); }
.ps-err { margin-top: 10px; }
.gk { margin-top: 4px; }
.gk-btn { display: flex; align-items: center; justify-content: center; gap: var(--ic-gap); width: 100%; min-height: 50px; border-radius: 12px; border: 1.5px dashed var(--key-line); color: var(--key); font: 600 14px/1.2 var(--font-ui); transition: background var(--d-1); }
.gk-btn:hover { background: var(--key-soft); }
.gk-panel { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-md); background: radial-gradient(80% 90% at 100% 0%, color-mix(in srgb, var(--key) 12%, transparent), transparent 70%), var(--bg-2); border: 1px solid var(--key-line); }
.gk-head { display: flex; align-items: center; gap: 10px; }
.gk-head > div { display: grid; gap: 2px; }
.gk-head b { font: 700 17px/1.4 var(--font-display); color: var(--key); }
.gk-head span { font-size: 13px; color: var(--ok); }
.gk-emb { flex: 0 0 auto; display: inline-grid; place-items: center; color: var(--key); }   /* plain key glyph (20px), no disc */
.gk-in { text-transform: uppercase; letter-spacing: .08em; color: var(--key); }
.gk-in::placeholder { text-transform: none; letter-spacing: 0; }
.gk-row { display: flex; gap: 8px; justify-content: flex-end; }
.gk-chip { display: flex; align-items: center; gap: var(--ic-gap); min-height: 48px; padding: 4px 6px 4px 14px; border-radius: 12px; background: var(--ok-soft); border: 1px solid rgba(70, 211, 150, .3); color: var(--ok); font-size: 13.5px; }
.gk-chip > span { flex: 1; }
.gk-chip b { font-weight: 700; }
.gk-rm { color: var(--text-3) !important; }

/* PS Plus success stepper */
.ps-ok { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 10px 0 4px; }
.ps-ok > [data-steps] { width: 100%; margin-bottom: 4px; }
.ps-ok-t { font: 800 clamp(21px, 3vw, 26px)/1.4 var(--font-display); }
.ps-ok-s { font-weight: 700; color: var(--key); }
.ps-ok-s.is-done { color: var(--ok); }
.ps-ok .t-mute { max-width: 46ch; line-height: 1.85; font-size: 14.5px; }
.ps-steps { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 380px; margin: 0 auto; }
.ps-steps li { position: relative; display: grid; justify-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.ps-steps li + li::before { content: ""; position: absolute; top: 19px; inset-inline-end: calc(50% + 24px); width: calc(100% - 48px); height: 2px; border-radius: 2px; background: var(--line-2); transition: background-color var(--d-3) var(--ease); }   /* motion v3 */
.ps-steps li.is-done + li::before, .ps-steps li.is-done + li.is-cur::before { background: var(--ok); }
.ps-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); border: 1.5px solid var(--line-2); transition: background-color var(--d-3) var(--ease), border-color var(--d-3) var(--ease), color var(--d-3) var(--ease); }   /* motion v3: no transition-all */
.ps-steps li.is-done { color: var(--text); }
.ps-steps li.is-done .ps-dot { background: var(--ok); border-color: var(--ok); color: #04150D; }
.ps-steps li.is-done .ps-dot .i { animation: flashIn 240ms var(--ease-out) both; }   /* motion v3: delivery ✓ pops in place (flashIn from base.css; no-op without it) */
.ps-steps li.is-cur { color: var(--text); font-weight: 600; }
.ps-steps li.is-cur .ps-dot { background: var(--plus-soft); border-color: var(--plus); color: var(--plus); }
.ps-steps--sm { max-width: 320px; margin: 0 auto 10px; }
.ps-steps--sm .ps-dot { width: 32px; height: 32px; }
.ps-steps--sm li + li::before { top: 15px; inset-inline-end: calc(50% + 20px); width: calc(100% - 40px); }

/* ================================================================ ORDERS — receipts */
.ord-pend { margin-bottom: var(--s-4); align-items: center; }
.ord { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 12px 14px 16px; min-height: 84px; cursor: pointer; transition: background var(--d-1); }
.ord + .ord { border-top: 1px solid var(--line); }
.ord:hover { background: var(--surface-2); }
.ord:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ember); border-radius: var(--r-md); }
.ord-art { position: relative; width: 76px; height: 48px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.ord-art .i { width: var(--ic-btn); height: var(--ic-btn); }   /* fallback glyph: neutral slot, neutral glyph; the type pill carries the colour */
.ord-art--img > .cv, .ord-art--img > .cv-fb { position: absolute; inset: 0; }
.ord-main { display: grid; gap: 4px; min-width: 0; }
.ord-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ord-type { --tc: var(--text-2); display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill); font: 600 11.5px/1 var(--font-ui); color: var(--tc); background: color-mix(in srgb, var(--tc) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 35%, transparent); white-space: nowrap; }
.ord-type--plus { --tc: var(--plus); }
.ord-type--rental { --tc: var(--ember-hi); }
.ord-type--steam { --tc: var(--ok); }
.ord-type--topup, .ord-type--subscription { --tc: var(--key); }
.ord-no { color: var(--key); font: 600 12.5px/1 var(--font-ui); letter-spacing: .04em; }
.ord-title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord-sub { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--text-3); }
.ord-detail { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ord-end { display: grid; justify-items: end; gap: 6px; }
.ord-keys { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.ord-keys.is-in { color: var(--ok); }
.ord-copy { --bh: 44px; color: var(--text-3); }
.ord-copy:hover { color: var(--text) !important; }
@media (max-width: 560px) {
  .ord { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 12px; padding: 12px 6px 12px 12px; }
  .ord-art { width: 60px; height: 40px; align-self: start; margin-top: 2px; }
  .ord-end { grid-column: 2; grid-row: 2; justify-items: start; display: flex; align-items: center; gap: 10px; }
  .ord-copy { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}
@media (max-width: 480px) { .ord-keys { display: none; } }
.ord-sheet-art { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ord-sheet-art .ord-art { width: 120px; height: 68px; }
.ord-sheet .kv dd { overflow-wrap: anywhere; }
.ord-sheet .t-key { color: var(--key); font-weight: 600; }
.ord-eta { text-align: center; margin-bottom: 14px; }

/* ================================================================ HISTORY — statement */
.hx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: var(--s-5); }
.hx-stats > :first-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .hx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hx-stats > :first-child { grid-column: auto; } }
@media (min-width: 1100px) { .hx-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } }
.hx-stat { --tc: var(--text); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; padding: 16px; border-radius: var(--r-md);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 9%, transparent), transparent 60%), var(--surface); border: 1px solid color-mix(in srgb, var(--tc) 22%, var(--line)); min-width: 0; }
.hx-stat--key { --tc: var(--key); }
.hx-stat--credit, .hx-stat--ok { --tc: var(--ok); }
.hx-stat--spent { --tc: var(--text-2); }
.hx-stat--games { --tc: var(--sec-games); }
.hx-stat-ic { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); background: var(--surface-3); }
.hx-stat-ic .i { width: var(--ic-btn); height: var(--ic-btn); }
.hx-stat--key .hx-stat-ic { color: var(--key); }
.hx-stat--credit .hx-stat-ic { color: var(--credit); }
.hx-stat-l { font-size: 12.5px; color: var(--text-3); }
.hx-stat-v { font: 700 24px/1.15 var(--font-ui); color: var(--tc); letter-spacing: -.01em; white-space: nowrap; }
.hx-stat-v small { font-size: 12.5px; font-weight: 400; color: var(--text-2); margin-inline-start: 4px; letter-spacing: 0; }
.hx-stats > :first-child .hx-stat-v { font-size: 30px; }
@media (min-width: 760px) { .hx-stats > :first-child .hx-stat-v { font-size: 24px; } }

.hx-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; min-height: 76px; }
.hx-row + .hx-row { border-top: 1px solid var(--line); }
.hx-art { width: 64px; height: 40px; }
.hx-ic, .hx-type { --tc: var(--text-2); }
.hx-ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); background: var(--surface-3); }   /* neutral slot + glyph */
.hx-ic .i { width: var(--ic-btn); height: var(--ic-btn); }
.hx-type--key { --tc: var(--key); }
.hx-type--ok { --tc: var(--ok); }
.hx-type--plus { --tc: var(--plus); }
.hx-type--games { --tc: var(--ember-hi); }
.hx-type--info { --tc: var(--info); }
.hx-main { display: grid; gap: 3px; min-width: 0; }
.hx-main > b { font-weight: 600; font-size: 14.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.hx-type { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 700 12px/1 var(--font-ui); color: var(--tc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 45%, transparent); }
.hx-rest { color: var(--text); }
.hx-desc { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-code { font-weight: 600; letter-spacing: .04em; color: var(--text-2); }
.hx-at { font-size: 12px; color: var(--text-3); }
.hx-no { color: var(--key); font-weight: 600; }
.hx-end { display: grid; justify-items: end; gap: 6px; }
.hx-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.dchip { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px; border-radius: 7px; font: 600 12.5px/1 var(--font-ui); white-space: nowrap; background: var(--surface-3); color: var(--text); }
.dchip.is-in { background: var(--ok-soft); color: var(--ok); }
.dchip.is-out { background: var(--surface-3); color: var(--text); }
.dchip--credit.is-out { color: var(--credit); background: transparent; box-shadow: inset 0 0 0 1px rgba(70, 211, 150, .3); }
.dchip--key { background: var(--key-soft); color: var(--key); }
.hx-bal { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.hx-bal b { color: var(--text); font-weight: 600; }
@media (max-width: 560px) {
  .hx-row { grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; padding: 12px 14px; }
  .hx-row > :first-child { align-self: start; }
  .hx-end { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
  .hx-chips { justify-content: flex-start; }
  .hx-art { width: 52px; height: 34px; }
  .hx-row .hx-ic { width: 38px; height: 38px; }
}

/* non-members: member price note under the price */
.pl-formem { display: flex; align-items: center; gap: var(--ic-gap-sm, 6px); margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.pl-formem .i { color: var(--text-3); flex: 0 0 auto; }

/* ---------------------------------------------------------------- «شراء المفاتيح» · model 3 «المقارنة» (owner pick 2026-10-13)
   Text roles: name warm white · labels cool slate · keys gold · SAR white · «تكفيك» violet · highlights by meaning. */
.tp3-bal { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.tp3-bal .i { color: var(--key); }
.tp3-bal b { color: var(--key); font: 700 16px/1 var(--font-ui); }
.tp3-list { overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); }
.tp3-row { display: grid; grid-template-columns: 52px minmax(0, 1.4fr) 1fr 1.2fr auto; align-items: center; gap: 18px; padding: 18px 20px; }
.tp3-row + .tp3-row { border-top: 1px solid var(--line); }
.tp3-row.is-feat { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ember) 7%, transparent)); box-shadow: inset -3px 0 0 var(--ember); }
.tp3-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); }
.tp3-ic .i { width: 26px; height: 26px; color: var(--key); }
.tp3-name h3 { margin: 0 0 6px; font: 700 17px/1.3 var(--font-display); color: var(--text); }
.tp3-hl { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; font: 600 12px/1 var(--font-ui); white-space: nowrap; }
.tp3-hl .i { width: 14px; height: 14px; }
.tp3-hl--fast { color: var(--tag-plat); background: var(--tag-plat-bg); }
.tp3-hl--pop { color: var(--ember-hi); background: var(--ember-soft); }
.tp3-hl--best { color: var(--ok); background: var(--ok-soft); }
.tp3-col small { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 5px; }
.tp3-col--keys b { font: 700 22px/1 var(--font-ui); color: var(--key); }
.tp3-games { font: 600 14px/1.4 var(--font-ui); color: var(--tag-time); }
.tp3-after { font-size: 14px; color: var(--text-2); }
.tp3-after b { color: var(--key); font-weight: 700; }
.tp3-buy { display: grid; justify-items: end; gap: 6px; }
.tp3-sar b { font: 700 20px/1 var(--font-ui); color: var(--text); }
.tp3-sar small { margin-inline-start: 4px; font-size: 12.5px; color: var(--text-3); }
.tp-tip b { color: var(--ok); font-weight: 600; }
@media (max-width: 760px) {
  .tp3-row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "ic name buy" "ic keys buy" "ic games buy"; row-gap: 8px; padding: 16px; gap: 6px 14px; }
  .tp3-ic { grid-area: ic; width: 44px; height: 44px; align-self: start; }
  .tp3-name { grid-area: name; } .tp3-col--keys { grid-area: keys; } .tp3-col--games { grid-area: games; } .tp3-buy { grid-area: buy; align-self: center; }
  .tp3-col small { display: none; }
  .tp3-col--keys b::after { content: " مفتاح"; font-size: 13px; font-weight: 500; color: var(--text-2); }
}

/* ---------------------------------------------------------------- «اشتراكات البلس» · model 4 (owner pick 2026-10-13)
   PlayStation Plus identity: black + Plus yellow; tiers = three golds. Text roles stay: titles warm white, sub slate. */
:root { --pp: #FFC21A; --pp-hi: #FFD24D; --pp-ink: #1A1300; --pp-t1: #FFD45A; --pp-t2: #F2A93B; --pp-t3: #D98A2B; }
.pp-t1 { --c: var(--pp-t1); } .pp-t2 { --c: var(--pp-t2); } .pp-t3 { --c: var(--pp-t3); }
.pp-mark { position: relative; width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 8px; background: var(--pp); color: var(--pp-ink); flex: 0 0 auto; overflow: hidden; }
.pp-mark b { font: 900 21px/1 var(--font-ui); }
.pp-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0B0B0D; }
.pp-mark img + b { display: none; }
.pp-mark--lg { width: 52px; height: 52px; border-radius: 14px; }
.pp-mark--lg b { font-size: 34px; }
.pp-head { position: relative; overflow: hidden; padding-block: calc(var(--hdr-h) + 28px) 28px; margin-top: calc(var(--hdr-h) * -1); background: radial-gradient(70% 140% at 100% 0%, rgba(255, 194, 26, .14), transparent 60%), #08080A; border-bottom: 1px solid rgba(255, 194, 26, .2); }
.pp-head-in { display: flex; align-items: center; gap: 16px; }
.pp-head h1 { margin: 0; font: 800 clamp(26px, 3vw, 38px)/1.25 var(--font-display); color: var(--text); }
.pp-head p { margin: 6px 0 0; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.pp-body { padding-top: 24px; }
.pp-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; margin-bottom: 28px; }
.pp-steps { display: grid; gap: 16px; }
.pp-step { padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); }
.pp-step h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 16px/1.3 var(--font-ui); color: var(--text); }
.pp-step h2 em { font-style: normal; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--pp); color: var(--pp-ink); font: 800 13px/1 var(--font-ui); }
.pp-step .pl-devnote { margin: 12px 0 0; }
.pp-seg button[aria-pressed="true"] { background: var(--pp); color: var(--pp-ink); box-shadow: none; }
.pp-seg button[aria-pressed="true"] .pl-best { color: var(--pp-ink); opacity: .75; }
.pp-tiers { display: grid; gap: 10px; }
.pp-tier { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); text-align: start; color: inherit; transition: border-color var(--d-1), background-color var(--d-1); }
.pp-tier:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.pp-tier.is-on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); background: color-mix(in srgb, var(--c) 7%, var(--surface-2)); }
.pp-tier.is-na { opacity: .55; }
.pp-r { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-3); }
.pp-tier.is-on .pp-r { border-color: var(--c); box-shadow: inset 0 0 0 3px var(--surface-2), inset 0 0 0 10px var(--c); }
.pp-tier-main { display: grid; gap: 4px; min-width: 0; }
.pp-tier-main b { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 700 16px/1.3 var(--font-display); color: var(--c); }
.pp-pop { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font: 700 11.5px/1 var(--font-ui); color: var(--pp-ink); background: var(--pp); }
.pp-sf { font-size: 13px; color: var(--text-2); }
.pp-p { display: grid; justify-items: end; gap: 4px; }
.pp-p b { font: 700 20px/1 var(--font-ui); color: var(--text); }
.pp-off { display: inline-flex; gap: 6px; font-size: 12px; color: var(--text-4); }
.pp-off .pl-save, .pp-sum-off .pl-save { color: var(--ok); font-weight: 700; }
.pp-detail { margin-top: 14px; }
.pp-det { padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--c) 5%, transparent); border: 1px dashed color-mix(in srgb, var(--c) 35%, transparent); }
.pp-det h3 { margin: 0 0 8px; font: 700 14.5px/1.3 var(--font-display); color: var(--c); }
.pp-det .pl-f .i { color: var(--c); }
.pp-sum { position: sticky; top: calc(var(--hdr-h) + 16px); display: grid; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: #0B0B0D; border: 1px solid rgba(255, 194, 26, .3); }
.pp-sum-h { display: flex; align-items: center; gap: 10px; }
.pp-sum-h h2 { margin: 0; font: 700 17px/1.3 var(--font-display); color: var(--text); }
.pp-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.pp-kv dt { color: var(--text-3); } .pp-kv dd { margin: 0; color: var(--text); font-weight: 600; text-align: end; }
.pp-kv dd.pp-tc { color: var(--c); }
.pp-sum-p { display: flex; align-items: baseline; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.pp-sum-p b { font: 700 40px/1 var(--font-ui); letter-spacing: -.02em; color: var(--text); }
.pp-sum-p span { color: var(--text-2); font-size: 14px; }
.pp-sum-off { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-4); }
.pp-up { margin: 0; }
.pp-agree { margin: 0; }
.btn-pp { background: var(--pp); color: var(--pp-ink); font-weight: 700; box-shadow: 0 10px 24px -14px rgba(255, 194, 26, .7); }
.btn-pp:hover:not(:disabled) { background: var(--pp-hi); }
.btn-pp .i { color: var(--pp-ink); }
@media (max-width: 960px) { .pp-layout { grid-template-columns: 1fr; } .pp-sum { position: static; } }
.pp-head-in > div { flex: 1; min-width: 0; }

/* owner tweaks 2026-10-13: tip = gold value callout, fine print = warning callout */
.tp-tip { padding: 14px 16px; border-radius: 12px; background: rgba(244, 192, 78, .08); border: 1px solid rgba(244, 192, 78, .28); color: var(--text-2); }
.tp-tip .i { color: var(--key); }
.tp-tip b.tp-tip-k { color: var(--key); font-weight: 700; }
.tp-tip b.tp-tip-ok { color: var(--ok); font-weight: 600; }
.tp-tip b.tp-tip-pp { color: var(--pp); font-weight: 700; }
.tp-fine { padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); border: 1px solid rgba(255, 181, 71, .28); color: #E9CFA6; font-size: 13.5px; }
.tp-fine .i { color: var(--warn); }
.tp-fine b { color: var(--warn); font-weight: 700; }
.tp-fine .link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* official PS Plus logo present: no yellow tile behind it */
.pp-mark:has(img) { background: none; overflow: visible; border-radius: 0; }
.pp-mark img { background: none; }
.page-head.pp-head h1 { max-width: none; }
.pp-mark--lg { width: 60px; height: 60px; }

/* ==== css/identity.css ==== */
/* =====================================================================
   SCREEN «الشاشة» — G3 IDENTITY · css/identity.css  (v3: live content)
   auth (login · register · forgot · verify) · onboarding (one form + vault)
   · account (membership blocks) · «مين يلعب؟» + notifications (unlinked).
   Page-specific only; tokens + shared components come from base.css.
   ===================================================================== */

/* ---------------------------------------------------------------- 0. focused chrome on identity screens */
body[data-route="login"] .hdr .nav, body[data-route="login"] .hdr .hdr-end,
body[data-route="register"] .hdr .nav, body[data-route="register"] .hdr .hdr-end,
body[data-route="forgot"] .hdr .nav, body[data-route="forgot"] .hdr .hdr-end,
body[data-route="verify"] .hdr .nav, body[data-route="verify"] .hdr .hdr-end,
body[data-route="onboarding"] .hdr .nav, body[data-route="onboarding"] .hdr .hdr-end,
body[data-route="me"] .hdr .nav, body[data-route="me"] .hdr .hdr-end,
body[data-route="login"] .hdr-micro, body[data-route="register"] .hdr-micro, body[data-route="forgot"] .hdr-micro,
body[data-route="verify"] .hdr-micro, body[data-route="onboarding"] .hdr-micro, body[data-route="me"] .hdr-micro { display: none; }
body[data-route="me"] .hdr:not(.is-solid), body[data-route="onboarding"] .hdr:not(.is-solid) { background: transparent; }

/* ---------------------------------------------------------------- 1. drifting cover collage */
.idn-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.idn-bg-grid {
  position: absolute; inset: -18% -12%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  transform: rotate(-8deg) scale(1.08); filter: blur(2px) saturate(1.05) brightness(.62);
  animation: idnDrift 90s linear infinite alternate; will-change: transform;
}
/* perf: on phones the 30-cover collage stays a static, blurred backdrop (the endless drift re-rasterises a
   728×1712 blurred layer every frame and drains the battery); same for reduced-motion users. */
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .idn-bg-grid { animation: none; will-change: auto; }
}
.idn-bg-grid > div { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.idn-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 45%, color-mix(in srgb, var(--bg) 35%, transparent) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 70%, var(--bg) 100%),
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 70%, transparent) 0%, color-mix(in srgb, var(--bg) 25%, transparent) 30%, color-mix(in srgb, var(--bg) 55%, transparent) 70%, var(--bg) 100%);
}
@media (min-width: 640px) { .idn-bg-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; } }
@media (min-width: 1024px) {
  /* desktop: the collage reads as real game art (it was so dark it vanished) — still a dark scene */
  .idn-bg-grid { grid-template-columns: repeat(6, 1fr); inset: -22% -8%; filter: blur(1.5px) saturate(1.1) brightness(.78); }
  .idn-auth .idn-bg::after {
    background:
      radial-gradient(48% 62% at 72% 50%, color-mix(in srgb, var(--bg) 30%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 75%, color-mix(in srgb, var(--bg) 92%, transparent) 100%),
      linear-gradient(to left, color-mix(in srgb, var(--bg) 25%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 50%, color-mix(in srgb, var(--bg) 82%, transparent) 100%),
      linear-gradient(to bottom, color-mix(in srgb, var(--bg) 60%, transparent) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
  }
}
@keyframes idnDrift { from { transform: rotate(-8deg) scale(1.08) translate3d(0, 0, 0); } to { transform: rotate(-8deg) scale(1.08) translate3d(-4%, -9%, 0); } }

/* ---------------------------------------------------------------- 2. auth frame */
.idn-auth { position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hdr-h) + 12px) var(--gutter) 28px; overflow: hidden; }
.idn-auth-in { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin-inline: auto; display: grid; gap: 22px; align-items: center; justify-items: center; }
.idn-card { order: 1; }
.idn-pitch { order: 2; width: 100%; max-width: 440px; }
/* pitch title = the shared page-title band (icon tile + h1 + lead); desktop only — phones lead with the card */
.idn-pitch-head { display: none; padding: 0; margin: 0; }
.idn-pitch-head::before { display: none; }   /* the drifting collage is this page's backdrop — no full-bleed band */
@media (min-width: 1024px) {
  .idn-auth-in { grid-template-columns: minmax(0, 1fr) 440px; justify-items: stretch; gap: 72px; }
  .idn-auth--narrow .idn-auth-in { grid-template-columns: minmax(0, 1fr) 460px; }
  .idn-card, .idn-pitch { order: 0; }
  .idn-pitch { max-width: 600px; }
  .idn-pitch-head { display: flex; align-items: flex-start; gap: 16px; }
  .idn-pitch-head .ph-copy { min-width: 0; }
  .idn-pitch-ic { font-size: clamp(38px, 4vw, 56px); margin-top: calc((1.18em - var(--ic-sec)) / 2); }   /* centred on the title's first line (.t-display lh 1.18) */
  .idn-pitch-h { margin: 0 0 14px; font-size: clamp(38px, 4vw, 56px); text-wrap: balance; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
  .idn-pitch-lead { max-width: 46ch; color: var(--text-2); }
}
/* «حسابك مجاني» + the three perks: plain neutral glyphs (one accent per group — the saved pill keeps the key gold) */
.idn-free { display: flex; align-items: center; gap: var(--ic-gap); margin: 0 0 12px; color: var(--text-2); font-size: 14px; }
.idn-free b { color: var(--ok); font-weight: 700; }
@media (min-width: 1024px) { .idn-free { margin-top: 26px; font-size: 15px; } }
.idn-perks { display: grid; gap: 8px; margin: 0 0 14px; }
.idn-perk { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--line); }
.idn-perk-ic { display: grid; place-items: center; flex: 0 0 auto; color: var(--text-2); }   /* plain glyph, no tile */
.idn-perk-ic .i { width: var(--ic-btn); height: var(--ic-btn); }
.idn-perk > span:last-child { display: grid; gap: 1px; min-width: 0; }
.idn-perk b { font-weight: 600; font-size: 14.5px; color: var(--text); }
.idn-perk small { font-size: 12.5px; color: var(--text-3); }
@media (min-width: 1024px) { .idn-perks { gap: 10px; margin-bottom: 22px; } .idn-perk { padding: 12px 14px; } .idn-perk b { font-size: 15.5px; } }
.idn-saved { display: inline-flex; align-items: center; gap: var(--ic-gap); padding: 9px 14px; border-radius: var(--r-pill); background: var(--key-soft); border: 1px solid var(--key-line); color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.idn-saved .i { color: var(--key); flex: 0 0 auto; }
.idn-saved b { color: var(--key); font-weight: 700; }
@media (max-width: 1023px) { .idn-saved { display: flex; border-radius: var(--r-md); } }

.idn-card {
  position: relative; width: 100%; max-width: 440px; padding: 26px 26px 24px; border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line-2); box-shadow: var(--sh-3);
  animation: idnCardIn var(--d-3) var(--ease-out) both;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .idn-card { background: color-mix(in srgb, var(--surface) 84%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); } }
@media (min-width: 1024px) { .idn-card { justify-self: end; } .idn-auth--narrow .idn-card { max-width: 460px; } }
@media (max-width: 640px) { .idn-card { padding: 22px 18px 20px; border-radius: var(--r-lg); } .idn-brand img { display: none; } }
@keyframes idnCardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.idn-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.idn-brand img { width: 52px; height: 52px; flex: 0 0 auto; }
.idn-brand > div { flex: 1 1 200px; min-width: 0; }
.idn-brand b { display: block; font: 800 20px/1.3 var(--font-display); }
.idn-brand > div span { display: block; color: var(--text-2); font-size: 13px; line-height: 1.6; margin-top: 2px; }
.idn-newchip { flex: 0 0 auto; }
.idn-tabs { margin-bottom: 20px; }
.idn-tabs button { min-height: 44px; }
.idn-form { display: grid; gap: 16px; }
.idn-form .field + .field { margin-top: 0; }
.idn-msg { margin: 0; }
.idn-msg.is-in { animation: idnMsg var(--d-3) var(--ease-out); }
.idn-msg.note--info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 35%, transparent); color: color-mix(in srgb, var(--info) 45%, var(--text)); }
.idn-msg.note--info .i { color: var(--info); }
@keyframes idnMsg { from { opacity: 0; transform: translateY(-6px); } }
.idn-forgot { display: flex; justify-content: flex-end; margin-top: -6px; }
.idn-forgot .link { min-height: 36px; }
.idn-or { display: flex; align-items: center; gap: 14px; color: var(--text-3); font-size: 13px; }
.idn-or::before, .idn-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.idn-google .idn-g { width: var(--ic-btn); height: var(--ic-btn); }   /* Google mark keeps its brand colours */
.idn-switch { text-align: center; color: var(--text-3); font-size: 14px; }
.idn-switch .link { font-weight: 600; }
.idn-legal { text-align: center; color: var(--text-3); font-size: 12.5px; line-height: 1.8; }
.idn-back-browse { position: relative; z-index: 1; display: flex; justify-content: center; margin-top: 18px; }
.idn-back-browse .btn { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.idn-h { font: 800 clamp(20px, 2.4vw, 24px)/1.45 var(--font-display); }
.idn-sub { line-height: 1.85; }
.idn-step-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -6px -8px 10px; }
.idn-reg--email .idn-h { margin-bottom: 18px; }
.idn-reg--choose .idn-h { font-size: 19px; text-align: center; margin: 2px 0 4px; }
.field.is-err .input { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.field-hint [data-len], .field-hint [data-match] { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); transition: color var(--d-1); }
.field-hint .i { color: var(--text-4); transition: color var(--d-1); }   /* pending = dim glyph, met = ok (no opacity wash) */
.field-hint .is-ok { color: var(--ok); }
.field-hint .is-ok .i { color: var(--ok); }

.idn-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 16px 0 2px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; text-align: center; }
.idn-flow li { position: relative; display: grid; justify-items: center; gap: 6px; }
.idn-flow li + li::before { content: ""; position: absolute; top: 12px; inset-inline-start: calc(-50% + 16px); width: calc(100% - 32px); height: 1px; background: var(--line-3); }
.idn-flow li > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font: 600 11.5px/1 var(--font-ui); }
.idn-flow li:last-child > span { background: none; color: var(--ember); }   /* «العب» = a plain ember play glyph in the dot slot (an 18px glyph crowds a 24px filled disc) */
.idn-flow li:last-child { color: var(--text); font-weight: 600; }
.idn-sub + .idn-form { margin-top: 18px; }

.idn-icon-hero { width: 72px; height: 72px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }   /* neutral illustration disc */
.idn-done { display: grid; }

/* verify */
.idn-verify { display: grid; gap: 14px; }
.idn-mail { position: relative; width: 104px; height: 104px; margin: 4px auto 6px; display: grid; place-items: center; }
.idn-mail-ic { position: relative; z-index: 1; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: color var(--d-3); }   /* neutral illustration disc: no gradient, no glow; glyph --ic-2x (.i-2x) */
.idn-mail i { position: absolute; inset: 10px; border-radius: 50%; border: 1px solid var(--ember-line); opacity: 0; animation: idnSend 2.6s var(--ease-out) 3 both; }
.idn-mail i:nth-of-type(2) { animation-delay: .8s; }
.idn-mail i:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes idnSend { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.idn-verify.is-verified .idn-mail-ic { color: var(--ok); animation: idnPop .5s var(--ease-out); }   /* state on the glyph; disc stays neutral */
.idn-verify.is-verified .idn-mail i { display: none; }
@keyframes idnPop { 0% { transform: scale(.7); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.idn-sent { color: var(--text-2); line-height: 1.8; }
.idn-sent b { display: block; margin-top: 2px; color: var(--text); font-weight: 600; overflow-wrap: anywhere; direction: ltr; }
.idn-wait { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-3); font-size: 13px; }
.idn-wait .spinner { width: 16px; height: 16px; }
.idn-verify-actions { display: grid; gap: 10px; margin-top: 4px; }
.idn-verify-actions .btn--subtle { justify-self: center; }
.idn-devhint { justify-self: center; }

/* ---------------------------------------------------------------- 3. onboarding — one form + player card + vault */
.idn-ob { position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh; padding: calc(var(--hdr-h) + 8px) 0 var(--s-9); }
.idn-ob-bg { position: fixed; inset: 0; z-index: -1; }
.idn-bg--ob .idn-bg-grid { filter: blur(10px) saturate(.9) brightness(.34); animation: none; }
.idn-bg--ob::after { background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 40%, transparent), var(--bg) 70%); }
.idn-ob-head { display: grid; gap: 16px; align-items: end; padding-bottom: var(--s-6); }
.idn-ob-head.page-head--sec { margin-bottom: 0; padding-top: var(--s-5); }
.idn-ob-head.page-head--sec::before { opacity: .75; }
.idn-ob-title h1 { margin: 0 0 6px; font-size: var(--fs-h1); text-wrap: balance; }
.idn-ob-title .t-lead { max-width: 52ch; }
.idn-ob-xp { display: grid; gap: 8px; width: 100%; max-width: 380px; font-size: 13px; color: var(--text-2); }
.idn-ob-xp b { font: 700 15px/1 var(--font-ui); color: var(--ember-hi); }
.idn-ob-xp.is-done b { color: var(--ok); }
.idn-ob-xp.is-done .meter > i { background: var(--ok); }
.idn-ob-head { position: relative; }
.idn-ob-out { position: absolute; top: calc(var(--hdr-h) * -1 + 10px); inset-inline-end: var(--gutter); z-index: 61; }
@media (min-width: 1024px) { .idn-ob-out { top: calc(var(--hdr-h) * -1 + 14px); } }
@media (min-width: 1024px) {
  .idn-ob-head { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 40px; padding-top: var(--s-5); }
  .idn-ob-xp { grid-column: 2; grid-row: 1; justify-self: stretch; }
}
.idn-ob-grid { display: grid; gap: var(--s-5); align-items: start; }
.idn-ob-main { display: grid; gap: var(--s-5); min-width: 0; }
.idn-ob-main > .blk + .blk { margin-top: 0; }
.idn-ob-side { display: grid; gap: var(--s-4); min-width: 0; }
@media (min-width: 1024px) {
  .idn-ob-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
  .idn-ob-side { position: sticky; top: calc(var(--hdr-h) + 16px); }
}
.idn-obk--name { --sc: var(--ember); }
.idn-obk--dev { --sc: var(--info); }
.idn-obk--av { --sc: var(--sec-redeem); }
.idn-obk--genres { --sc: var(--ok); }
.idn-obk .blk-head h2 { font-size: var(--fs-h3); }
.idn-obk .blk-head .opt-tag, .idn-obk .blk-head .idn-gcount { margin-inline-start: auto; }
.idn-obk-hint { margin: calc(var(--s-5) * -1 + 6px) 0 14px; }
.idn-reqmark { color: var(--ember-hi); font-weight: 700; }
.idn-obk.is-err { border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.idn-obk.is-err .input { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.input--xl { min-height: 60px; font: 600 clamp(18px, 2.2vw, 22px)/1.3 var(--font-display); padding: 0 18px; border-radius: var(--r-md); }
.is-shake { animation: shake .4s; }

.idn-devs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.idn-dev {
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 22px 12px 18px; border-radius: var(--r-lg); min-height: 44px;
  background: var(--surface-2); border: 1.5px solid var(--line-2); text-align: center; transition: border-color var(--d-2) var(--ease), background var(--d-2) var(--ease), box-shadow var(--d-2), transform 200ms var(--ease-out); /* motion v3: + transform */
}
.idn-dev:hover { border-color: var(--line-3); background: var(--surface-3); }
.idn-dev:active { transform: scale(.98); transition-duration: var(--d-2), var(--d-2), var(--d-2), var(--d-press, 100ms); }   /* motion v3: press */
.idn-dev-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); margin-bottom: 6px; transition: background var(--d-2), color var(--d-2); }
.idn-dev b { font: 800 22px/1.2 var(--font-ui); }
.idn-dev > span:not([class]) { font-size: 12.5px; color: var(--text-3); }
.idn-dev-check { position: absolute; top: 12px; inset-inline-end: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ember); color: var(--on-ember); transform: scale(.6); opacity: 0; transition: transform var(--d-2) var(--ease-out), opacity var(--d-1) var(--ease-out); }   /* motion v3: never from scale(0) */
.idn-dev.is-on { border-color: var(--ember); background: linear-gradient(160deg, var(--ember-glass-hi), var(--ember-glass) 60%); }
.idn-dev.is-on .idn-dev-ic { color: var(--ember); }   /* active = ember Fill glyph (App.iconFill) on the neutral disc */
.idn-dev.is-on > span:not([class]) { color: var(--ember-ink); }
.idn-dev.is-on .idn-dev-check { transform: scale(1); opacity: 1; }   /* motion v3 */
.idn-devs.is-err .idn-dev { border-color: color-mix(in srgb, var(--danger) 60%, transparent); }
.idn-devs--sm .idn-dev { padding: 18px 10px 14px; }
.idn-devs--sm .idn-dev-ic { width: 60px; height: 60px; }
.idn-pc { margin-top: 14px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); width: 100%; }
.idn-pc input { margin-top: 2px; }
.idn-pc > span { display: grid; gap: 2px; line-height: 1.5; }
.idn-pc b { font-weight: 600; display: inline-flex; align-items: center; gap: var(--ic-gap-sm); flex-wrap: wrap; }
.idn-pc small { color: var(--text-3); font-size: 12.5px; }
.opt-tag { display: inline-block; font-size: 11px; font-weight: 500; color: var(--text-2); padding: 2px 8px; border-radius: 6px; background: var(--surface-3); vertical-align: middle; line-height: 1.5; }

.idn-avgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.idn-avgrid--ob { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .idn-avgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .idn-avgrid--ob { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.idn-av { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 0; box-shadow: 0 0 0 2px transparent; transition: transform var(--d-2) var(--ease), box-shadow var(--d-2), opacity var(--d-2); }
.idn-av img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .idn-av:hover { transform: scale(1.05); } }   /* motion v3: touch-safe hover */
.idn-av:active { transform: scale(.96); transition-duration: var(--d-press, 100ms), var(--d-2), var(--d-2); }   /* motion v3: press */
.idn-av.is-on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ember); }
.idn-av.is-busy { opacity: .5; }
.idn-avgrid:has(.idn-av.is-on) .idn-av:not(.is-on) { opacity: .72; }
.idn-avgrid:has(.idn-av.is-on) .idn-av:not(.is-on):hover { opacity: 1; }
.idn-more { margin-top: 12px; }
.idn-avm .dlg-body { padding-top: 22px; }

.idn-genres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .idn-genres { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.idn-gp { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); text-align: start; transition: box-shadow var(--d-2); }
@media (min-width: 640px) { .idn-gp { aspect-ratio: 16 / 10; border-radius: var(--r-md); } }
.idn-gp .cv { position: absolute; inset: 0; filter: saturate(.75) brightness(.6); transition: filter var(--d-3), transform 1.2s var(--ease-out); }
.idn-gp-fb { position: absolute; inset: 0; background: radial-gradient(90% 90% at 80% 0%, var(--ember-soft), transparent 60%), linear-gradient(160deg, var(--surface-3), var(--bg-2)); }
.idn-gp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 10%, transparent) 75%); }
.idn-gp b { position: absolute; z-index: 1; inset-inline: 8px; bottom: 7px; font: 700 13px/1.35 var(--font-display); text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
@media (min-width: 640px) { .idn-gp b { inset-inline: 12px; bottom: 10px; font-size: clamp(14.5px, 1.4vw, 17px); } }
.idn-gp-check { position: absolute; z-index: 2; top: 7px; inset-inline-end: 7px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1.5px solid var(--line-3); color: transparent; transition: background var(--d-2), border-color var(--d-2), color var(--d-2); }
@media (hover: hover) and (pointer: fine) { .idn-gp:hover .cv { filter: saturate(.95) brightness(.75); transform: scale(1.05); } }   /* motion v3: + pointer: fine */
.idn-gp.is-on { box-shadow: inset 0 0 0 2px var(--ok), 0 10px 26px -12px color-mix(in srgb, var(--ok) 50%, transparent); }
.idn-gp.is-on .cv { filter: saturate(1.05) brightness(.8); }
.idn-gp.is-on .idn-gp-check { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.idn-gcount { font-size: 13px; }
.idn-gcount:not(:empty) { color: var(--ok); }

/* player card preview */
.idn-pcard { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-2); }
.idn-pcard-art { position: relative; height: 120px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; overflow: hidden; }
.idn-pcard-art > div { position: relative; overflow: hidden; filter: brightness(.55) saturate(1.05); }
.idn-pcard-art .cv, .idn-pcard-art .cv-fb { position: absolute; inset: 0; width: 100%; height: 100%; }
.idn-pcard-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 4%, color-mix(in srgb, var(--surface) 10%, transparent) 70%); }
.idn-pcard-in { position: relative; display: grid; justify-items: center; gap: 8px; padding: 0 18px 20px; margin-top: -58px; text-align: center; }
.idn-pcard-av { width: 104px; height: 104px; font-size: 40px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--ember), var(--sh-2); }
.idn-pcard-av.is-pop { animation: idnPop .45s var(--ease-out); }
.idn-pcard-name { font: 800 22px/1.35 var(--font-display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idn-pcard-name.is-empty { color: var(--text-3); }
.idn-pcard-av .i { width: var(--ic-2x); height: var(--ic-2x); }   /* avatar placeholder */
.idn-pcard-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13.5px; color: var(--text-2); }
.idn-pcard-meta > span { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); }
.idn-pcard-meta > span:empty { display: none; }
.idn-pcard-genres { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.idn-pcard-genres:empty { display: none; }
.idn-pcard-genres span { padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; color: var(--ok); background: var(--ok-soft); }
@media (max-width: 1023px) { .idn-pcard { max-width: 520px; width: 100%; justify-self: center; } }

.idn-ob-submit { display: grid; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.idn-invite .label { display: flex; align-items: center; gap: var(--ic-gap-sm); }
.idn-invite .label .i { color: var(--text-3); }
.idn-ob-err { margin: 0; justify-content: center; }
.idn-ob-fail { margin: 0; }
.idn-ob-go { --bh: 58px; font-size: 16.5px; }
@media (max-width: 1023px) { .idn-ob-side { max-width: 520px; width: 100%; justify-self: center; } .idn-ob-submit { padding-inline-end: calc(18px + var(--dev-gap) * 0); } }

/* the vault opens */
/* flex column + margin:auto = centred when it fits, scrolls from the top when it doesn't (phones) */
.idn-vault { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; padding: calc(var(--hdr-h) + 8px) var(--gutter) 28px; background: var(--bg); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; text-align: center; }
.idn-vault-lib { position: fixed; pointer-events: none; inset: 0; opacity: 0; transform: scale(1.08); animation: idnLib 1.6s var(--ease-out) .9s forwards; }
.idn-bg--vault .idn-bg-grid { filter: blur(1px) saturate(1.1) brightness(.62); }
.idn-bg--vault::after { background: radial-gradient(55% 55% at 50% 50%, color-mix(in srgb, var(--bg) 70%, transparent) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 60%, var(--bg) 100%); }
@keyframes idnLib { to { opacity: 1; transform: none; } }
.idn-vault-door { position: fixed; pointer-events: none; top: 0; bottom: 0; width: 50.5%; z-index: 1; background: linear-gradient(180deg, var(--surface-2), var(--bg-2)); }
.idn-vault-door--l { left: 0; animation: idnDoorL 1.05s var(--ease-in) .5s forwards; }
.idn-vault-door--r { right: 0; animation: idnDoorR 1.05s var(--ease-in) .5s forwards; }
.idn-vault-door::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ember); box-shadow: 0 0 28px 4px var(--ember-glow); opacity: 0; animation: idnSeam .5s var(--ease-out) forwards; }
.idn-vault-door--l::after { right: 0; }
.idn-vault-door--r::after { left: 0; }
@keyframes idnDoorL { to { transform: translateX(-102%); } }
@keyframes idnDoorR { to { transform: translateX(102%); } }
@keyframes idnSeam { to { opacity: 1; } }
.idn-vault-in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; width: 100%; max-width: 640px; margin-block: auto; opacity: 0; transform: translateY(18px); animation: idnVaultIn .8s var(--ease-out) 1.15s forwards; }
@keyframes idnVaultIn { to { opacity: 1; transform: none; } }
.idn-vault-in .t-display { font-size: clamp(28px, 4.4vw, 48px); text-wrap: balance; margin: 0; }
.idn-vault-in .t-lead { margin: 0; max-width: 46ch; text-wrap: balance; }
.idn-vault-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.idn-vault-act .btn { min-width: 200px; }
@media (max-width: 480px) { .idn-vault-act { display: grid; width: 100%; } }
.idn-vault-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(460px, 100%); }
.idn-vplan { position: relative; display: grid; justify-items: start; gap: 4px; padding: 14px 16px; border-radius: var(--r-md); text-align: start;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line-2); transition: border-color var(--d-1); }
.idn-vplan:hover { border-color: var(--line-3); }
.idn-vplan b { font: 700 22px/1.2 var(--font-ui); color: var(--key); }
.idn-vplan b small { font-size: 13px; font-weight: 500; color: var(--text-2); }
.idn-vplan > span:last-child { font-size: 12.5px; color: var(--text-3); }
.idn-vplan--rec { border-color: var(--ember-line); background: color-mix(in srgb, var(--ember-glass) 92%, transparent); }
.idn-vplan--rec .pill { position: absolute; top: -11px; inset-inline-end: 12px; height: 22px; font-size: 11px; }
.idn-vault-av { width: 104px; height: 104px; font-size: 40px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--ok), 0 24px 60px -10px color-mix(in srgb, var(--ok) 45%, transparent); }
.idn-vault-xp { display: grid; gap: 8px; width: min(320px, 100%); font-size: 13px; color: var(--text-2); }
.idn-vault-xp b { color: var(--ok); font: 700 15px/1 var(--font-ui); }
.idn-vault-xp .meter > i { width: 80%; animation: idnFill .9s var(--ease-out) 1.5s forwards; }
@keyframes idnFill { to { width: 100%; } }
.idn-vault.is-still .idn-vault-door { display: none; }
.idn-vault.is-still .idn-vault-lib, .idn-vault.is-still .idn-vault-in { opacity: 1; transform: none; animation: none; }
.idn-vault.is-still .idn-vault-xp .meter > i { width: 100%; animation: none; }

/* ---------------------------------------------------------------- 4. «مين يلعب؟» */
.who { position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--hdr-h) + 20px) var(--gutter) 40px; overflow: hidden; }
.idn-bg--who .idn-bg-grid { filter: blur(6px) saturate(.9) brightness(.4); }
.idn-bg--who::after { background: radial-gradient(60% 55% at 50% 48%, rgba(10, 10, 12, .55), rgba(10, 10, 12, .9) 70%, var(--bg) 100%); }
.who-in { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: clamp(26px, 5vh, 44px); width: 100%; }
.who-in .t-display { font-size: clamp(34px, 5.4vw, 64px); animation: idnCardIn .7s var(--ease-out) both; }
.who-row { display: flex; justify-content: center; gap: clamp(18px, 4vw, 48px); flex-wrap: wrap; }
.who-p { display: grid; justify-items: center; gap: 10px; width: clamp(128px, 30vw, 190px); padding: 6px; border-radius: var(--r-lg); color: var(--text-2); transition: color var(--d-2); animation: idnCardIn .7s var(--ease-out) both; }
.who-row > div:nth-child(2) .who-p { animation-delay: .08s; }
.who-av {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--ember), #8A2A08); box-shadow: 0 0 0 3px transparent, var(--sh-2);
  transition: transform var(--d-3) var(--ease), box-shadow var(--d-2);
}
.who-av img { width: 100%; height: 100%; object-fit: cover; }
.who-ini { font: 800 clamp(48px, 10vw, 76px)/1 var(--font-display); color: var(--on-ember); }
.who-p b { font: 700 clamp(16px, 2vw, 20px)/1.35 var(--font-display); color: inherit; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-tier { font-size: 13px; min-height: 18px; }
.who-p:hover, .who-p:focus-visible { color: var(--text); }
.who-p:focus-visible .who-av { transform: scale(1.04); box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--text), var(--sh-3); }   /* motion v3: focus ungated */
@media (hover: hover) and (pointer: fine) { .who-p:hover .who-av { transform: scale(1.04); box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--text), var(--sh-3); } }   /* motion v3: hover gated */
.who-p:focus-visible { outline: none; box-shadow: none; }
.who-p--add .who-av { background: rgba(245, 241, 234, .05); border: 2px dashed var(--line-3); color: var(--text-3); box-shadow: none; }
.who-p--add .who-av .i { width: var(--ic-2x); height: var(--ic-2x); }   /* avatar placeholder */
.who-p--add { color: var(--text-3); }
.who-p--add:hover .who-av { color: var(--text); border-color: var(--text-2); box-shadow: none; }
.who.is-picking .who-p:not(.is-picked), .who.is-picking .t-display, .who.is-picking .who-actions, .who.is-picking .who-down { opacity: 0; transition: opacity .35s var(--ease); }
.who-p.is-picked .who-av { transform: scale(1.18); box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--ember), 0 30px 80px var(--ember-glow); transition: transform .6s var(--ease-out), box-shadow .3s; }
.who-actions .btn { min-width: 170px; }
.who-down { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-3); font-size: 13px; min-height: 44px; transition: color var(--d-1); }
.who-down:hover { color: var(--text); }
.who-down .i { width: var(--ic-btn); height: var(--ic-btn); }
.who-note-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }

.who-ch { position: relative; padding-bottom: var(--s-10); }
.who-sec { margin-top: var(--s-9); }
.who-sec--top { margin-top: 0; }
.who-level { display: grid; gap: 22px; align-items: center; margin-bottom: 14px; }
@media (min-width: 900px) { .who-level { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
.who-level-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.who-level-id > div { min-width: 0; }
.who-level-id h2 { margin: 2px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-level-id .kicker { color: var(--text-3); }
.who-xp { display: grid; gap: 10px; }
.who-lv { font: 800 20px/1.3 var(--font-display); }
.who-lv span { color: var(--ember-hi); }
.who-rail { margin-top: var(--s-9); }
.who-col { position: relative; flex: 0 0 auto; width: var(--poster-w); }
.who-col .poster-cap span { display: block; }
.who-live { position: absolute; z-index: 3; top: 8px; inset-inline-start: 8px; height: 24px; font-size: 11.5px; }
.who-awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .who-awards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.who-aw { display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.who-aw-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; background: var(--surface-3); color: var(--text-4); }
.who-aw-ic .i { width: var(--ic-sec); height: var(--ic-sec); }
.who-aw b { font: 700 15px/1.4 var(--font-display); color: var(--text-3); }
.who-aw span { font-size: 12.5px; color: var(--text-4); line-height: 1.6; }
.who-aw em { font-style: normal; font-size: 11.5px; color: var(--text-4); margin-top: 6px; }
.who-aw.is-on { background: linear-gradient(160deg, rgba(255, 90, 31, .1), transparent 60%), var(--surface); border-color: rgba(255, 90, 31, .28); }
.who-aw.is-on .who-aw-ic { color: var(--ember); }   /* unlocked = ember Fill glyph on the neutral disc, no glow */
.who-aw.is-on b { color: var(--text); }
.who-aw.is-on span { color: var(--text-2); }
.who-aw.is-on em { color: var(--ember-hi); }
.who-q-meter { margin-bottom: 14px; }
.who-ep { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; border: 1.5px solid var(--line-3); color: var(--text-2); font: 700 14px/1 var(--font-ui); }
.who-quests .is-done .who-ep { border-color: var(--line-2); color: var(--ok); }   /* state on the glyph only */
.who-quests .is-done .list-main b { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--text-4); }
.who-lb { display: grid; gap: 6px; }
.who-lb-row { display: grid; grid-template-columns: 44px 30px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); min-height: 56px; }
.who-lb-n { font: 700 22px/1 var(--font-ui); color: var(--text-3); text-align: center; }
.who-lb-row:nth-child(-n+3) .who-lb-n { color: var(--text); }
.who-lb-row:first-child .who-lb-n { color: var(--ember-hi); }
.who-lb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.who-lb-name .pill { height: 22px; font-size: 11px; vertical-align: middle; }
.who-lb-s { color: var(--text-2); font-weight: 600; white-space: nowrap; }
.who-lb-s small { font-weight: 400; color: var(--text-3); font-size: 11.5px; }
.who-lb-row.is-me { border-color: var(--ember-line); background: linear-gradient(90deg, rgba(255, 90, 31, .04), rgba(255, 90, 31, .12)), var(--surface); }
.who-lb-gap { text-align: center; color: var(--text-4); letter-spacing: .3em; line-height: 1; }
@media (max-width: 640px) { .who-lb-row { grid-template-columns: 30px 30px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; } .who-lb-tier { display: none; } .who-lb-n { font-size: 18px; } }
.who-end { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: var(--s-9); }

/* ---------------------------------------------------------------- 5. account — identity band + tier pass + colour-cued blocks */
.pf { --tc: var(--text-3); }
.pf--gold { --tc: var(--gold); }
.pf--silver { --tc: var(--silver); }
.pf-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--hdr-h) + clamp(24px, 5vw, 56px)) 0 clamp(26px, 4vw, 40px); }
.pf-hero-bg { position: absolute; inset: 0; z-index: -1; }
.pf-hero-bg .cv, .pf-hero-bg .cv-fb { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .38; filter: blur(14px) saturate(1.1); transform: scale(1.12); }
.pf-hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 2%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, color-mix(in srgb, var(--bg) 85%, transparent)),
    radial-gradient(60% 80% at 85% 20%, color-mix(in srgb, var(--tc) 14%, transparent), transparent 70%); }
.pf-hero-in { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1024px) { .pf-hero-in { grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; } }

.pf-id { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); min-width: 0; }
.pf-av { position: relative; flex: 0 0 auto; border-radius: 50%; }
.pf-av .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--tc), var(--sh-2); transition: box-shadow var(--d-2); }
.pf-av:hover .avatar, .pf-av:focus-visible .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ember), var(--sh-2); }
.pf-av-edit { position: absolute; inset-inline: 50% auto; bottom: -6px; transform: translateX(50%); display: inline-flex; align-items: center; gap: var(--ic-gap-sm); padding: 0 10px; height: 28px; border-radius: var(--r-pill); background: var(--surface-4); color: var(--text); border: 1px solid var(--line-3); font: 600 11.5px/1 var(--font-ui); white-space: nowrap; box-shadow: var(--sh-1); }
.pf-av:focus-visible { outline: none; }
.pf-id-txt { min-width: 0; }
.pf-id-txt h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 46px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-id-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.idn-tier { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); height: 28px; padding: 0 11px; border-radius: var(--r-pill); font: 700 13px/1 var(--font-ui); }
.idn-tier--gold { color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 38%, transparent); }
.idn-tier--silver { color: var(--silver); background: color-mix(in srgb, var(--silver) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--silver) 34%, transparent); }
.idn-tier--none { color: var(--text-2); background: var(--surface-3); }
.pf-uid { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--info) 35%, var(--line)); background: color-mix(in srgb, var(--bg) 40%, transparent); color: var(--info); font: 600 13px/1 var(--font-ui); letter-spacing: .04em; transition: border-color var(--d-1), color var(--d-1); }
.pf-uid:hover { color: var(--text); border-color: var(--info); }
.pf-mini { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 18px; }
.pf-mini > div { display: flex; align-items: baseline; gap: 6px; }
.pf-mini dd { order: -1; }
.pf-mini dt { color: var(--text-3); font-size: 13px; }
.pf-mini dd { color: var(--text); font: 700 19px/1 var(--font-ui); }   /* one value colour */
@media (max-width: 640px) {
  .pf-id { align-items: flex-start; }
  .pf-id .avatar--xl { width: 84px; height: 84px; font-size: 32px; }
  .pf-av-edit span { display: none; }
  .pf-av-edit { width: 30px; padding: 0; justify-content: center; bottom: -2px; inset-inline: auto -2px; transform: none; }
  .pf-mini { gap: 6px 18px; }
  .pf-mini dd { font-size: 17px; }
}

/* the subscription pass (tier-coloured) */
.pf-pass { position: relative; display: grid; gap: 14px; padding: 22px 20px 20px; border-radius: var(--r-xl);
  background: linear-gradient(155deg, color-mix(in srgb, var(--tc) 15%, var(--surface)) 0%, var(--surface) 55%);
  border: 1px solid color-mix(in srgb, var(--tc) 32%, var(--line)); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--tc) 40%, transparent), var(--sh-2); }
@media (min-width: 640px) { .pf-pass { padding: 26px 26px 24px; } }
.pf-pass-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pf-pass-h h2 { margin: 0; font: 600 14px/1.3 var(--font-ui); color: var(--text-2); }
.pf-pass-tier { display: flex; align-items: center; gap: var(--ic-gap); flex-wrap: wrap; margin: 0; color: var(--tc); }
.pf-pass-tier b { font: 800 clamp(21px, 2.4vw, 26px)/1.3 var(--font-display); color: var(--text); }
.pf--none .pf-pass-tier .i { color: var(--text-3); }
.pf-pass-save { margin-inline-start: auto; padding: 4px 10px; border-radius: var(--r-pill); background: var(--key-soft); color: var(--key); font: 700 12.5px/1.2 var(--font-ui); }
.pf-kv { font-size: 13.5px; }
.pf-kv dd { color: var(--text); }
.pf-pass-foot { margin-top: -6px; color: var(--text-3); }
.pf-pass-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.pf-pass-act .btn { flex: 1 1 160px; }

.pf-body { padding-bottom: var(--s-10); }
/* balances = one divided band (not four big-number tiles); icons neutral, role colour on the money values only */
.pf-stats { margin-bottom: var(--s-6); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.pf-st { border: 0; border-radius: 0; background: none; padding: 16px 20px; }
.pf-st .stat-v { font-size: 22px; }
.pf-st--key .stat-v { color: var(--key); }
.pf-st--credit .stat-v { color: var(--credit); }
.pf-stats > .pf-st:nth-child(even) { border-inline-start: 1px solid var(--line); }
.pf-stats > .pf-st:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (min-width: 760px) {
  .pf-stats > .pf-st + .pf-st { border-inline-start: 1px solid var(--line); }
  .pf-stats > .pf-st:nth-child(n+3) { border-top: 0; }
}
@media (max-width: 640px) { .pf-st { padding: 14px 14px; } .pf-st .stat-v { font-size: 20px; } }
.pf-grid { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .pf-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; } .pf-side { position: sticky; top: calc(var(--hdr-h) + 20px); } }
.pf-main { display: grid; gap: var(--s-5); min-width: 0; }
.pf-main > .blk + .blk { margin-top: 0; }
.pf-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.pf-blk .blk-head { flex-wrap: wrap; }
.pf-blk .blk-head h2 { font-size: var(--fs-h3); }
.pf-blk .blk-head .pill { margin-inline-start: auto; }
.pf-blk .blk-head .pill + .link { margin-inline-start: 4px; }
.pf-head-btn { margin-inline-start: auto; }
.pf-blk--rent { --sc: var(--sec-library); }
.pf-blk--dev { --sc: var(--info); }
.pf-blk--genres { --sc: var(--sec-redeem); }
.pf-blk--act { --sc: var(--ember); }
/* flat lists inside a block: divided rows, no card-in-card */
.pf-blk .list { background: none; border: 0; border-radius: 0; border-top: 1px solid var(--line); }
.pf-blk .list .list-row { padding-inline: 4px; }
.pf-blk a.list-row:hover, .pf-blk button.list-row:hover { background: color-mix(in srgb, var(--sc) 5%, transparent); }

.pf-thumb { position: relative; width: 92px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; flex: 0 0 auto; background: var(--surface-3); }
.pf-thumb .cv, .pf-thumb .cv-fb { position: absolute; inset: 0; }
.pf-rent .list-main > span { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pf-rent .list-main b.num { display: inline; font-size: 12.5px; color: var(--text-2); }
.pf-rent .meter { display: block; margin-top: 8px; max-width: 260px; }
.pf-live { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); color: var(--ok); }
.pf-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.pf-empty { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0 2px; border-top: 1px solid var(--line); }
.pf-empty-act { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-empty p { display: grid; gap: 2px; margin: 0; }
.pf-empty p b { font-weight: 600; }
.pf-empty p span { color: var(--text-3); font-size: 13.5px; }

.pf-list .list-main > span { margin: 0 0 3px; font-size: 12px; }
.pf-list .list-main b { font-size: 15px; display: flex; align-items: center; gap: var(--ic-gap-sm); flex-wrap: wrap; white-space: normal; }
.pf-list .list-row .btn { flex: 0 0 auto; }
.pf-list .pill { flex: 0 0 auto; }
.pf-ic--warn { color: var(--warn); }   /* state tints the glyph, never the tile */
.pf-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap !important; display: block !important; text-align: right; }
.pf-phone { font-weight: 500; font-size: 13.5px; }
.ltr-iso { unicode-bidi: isolate; }
.pf-note { display: flex; align-items: flex-start; gap: var(--ic-gap-sm); margin-top: 12px; }
.pf-note .i { margin-top: calc((1.65em - var(--ic-sm)) / 2); }   /* centred on the first line when it wraps */

.pf-genres { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-gc { --c: var(--key); display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 34%, transparent); }
.pf-gc--plus { --c: var(--plus); } .pf-gc--ok { --c: var(--ok); } .pf-gc--ember { --c: var(--ember-hi); }
.pf-gc--redeem { --c: var(--sec-redeem); } .pf-gc--info { --c: var(--info); }
.pf-genres--pick .chip { cursor: pointer; min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.pf-saved { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 14px 2px 0; border-top: 1px solid var(--line); }
.pf-saved span { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); color: var(--text-2); font-size: 14px; }
.pf-saved .i { color: var(--text-3); }
.pf-saved b { color: var(--key); font: 700 18px/1 var(--font-ui); }
.pf-saved b small { font-size: 13px; font-weight: 500; color: var(--text-2); }

.pf-act .list-ic { transition: background var(--d-1); }
.pf-act--key .list-ic { color: var(--key); }   /* neutral tiles; the one tone kept = keys, on the glyph only */
.pf-act .list-main span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-out { margin-top: 14px; }
@media (max-width: 640px) { .pf-list .list-row { padding-inline: 12px; gap: 12px; } .pf-list .list-row .btn--sm { padding: 0 10px; } .pf-blk .list-row { padding-inline: 12px; } }

.idn-pw .field + .field { margin-top: var(--s-4); }
.idn-pw-err { margin-top: 12px; }

/* ---------------------------------------------------------------- 6. notifications */
.idn-nt-head { padding-bottom: var(--s-4); }

.idn-nt-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.idn-nt { padding-bottom: var(--s-10); }
.idn-nt-chips { margin-bottom: 6px; }
.idn-nt-n { font-size: 11.5px; opacity: .7; margin-inline-start: 2px; }
.idn-nt-list .list-row { align-items: flex-start; }
.idn-nt-list .list-row.is-unread { background: linear-gradient(90deg, transparent, rgba(255, 90, 31, .05)); }
.idn-nt-list .list-row.is-unread b { color: var(--text); }
.idn-nt-list .list-row:not(.is-unread) b { color: var(--text-2); font-weight: 500; }
.idn-nt-list .list-row > i { margin-top: 8px; }
.idn-nt-list .list-main > span:not(.t-xs) { white-space: normal; line-height: 1.7; }
.idn-nt-body > .empty { margin-top: var(--s-5); }

/* ---------------------------------------------------------------- 7. reduced motion */
@media (prefers-reduced-motion: reduce) {
  .idn-bg-grid { animation: none !important; }
  .idn-mail i { display: none; }
  .who-p.is-picked .who-av { transform: none; }
  .idn-av:hover, .idn-av:active, .idn-dev:active, .who-p:hover .who-av { transform: none !important; }   /* motion v3: no hover/press travel */
}

.idn-pc .opt-tag { justify-self: start; } /* «اختياري» tag no longer stretches across the row */

/* ==== css/library.css ==== */
/* =====================================================================
   SCREEN v3 — G4 LIBRARY + CONTENT · css/library.css
   «مكتبتي» · guide · rules · warranty/refund · terms · privacy · help · about · contact · 404
   Page-specific only; tokens (--sec-*, --key, --ok …) + .blk live in base.css.
   ===================================================================== */

/* ---------------------------------------------------------------- shared bits */
.spinner--sm { width: 16px; height: 16px; border-width: 2px; }
.spinner--lg { width: 44px; height: 44px; border-width: 3px; }
.btn .spinner--sm { border-color: var(--line-3); border-top-color: var(--text); }
mark { background: var(--ember-soft); color: var(--ember-hi); border-radius: 4px; padding: 0 2px; }
.note--info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 30%, transparent); color: color-mix(in srgb, var(--info) 45%, var(--text)); }
.note--info .i { color: var(--info); }
/* the live pages' bold runs: plain strong · red warnings · green promises · key-gold value */
.hl { color: var(--text); font-weight: 600; }
.hl--danger { color: color-mix(in srgb, var(--danger) 62%, var(--text)); }
.hl--ok { color: color-mix(in srgb, var(--ok) 70%, var(--text)); }
.hl--key { color: var(--key); }

/* =====================================================================
   1. «مكتبتي» — rentals
   ===================================================================== */
/* page title band (all G4 pages): plain glyph at the start of the h1, lead under the title */
.cx-ph { display: flex; align-items: flex-start; gap: 14px; }   /* glyph = base .ph-ic (plain 24px, section tint, centred on the h1's first line) */
.cx-ph-t { min-width: 0; flex: 1; }
.cx-ph-t h1 { max-width: 22ch; }
.cx-ph-t > p { margin-top: 8px; }
.cx-ph--center { justify-content: center; align-items: center; }
.cx-ph--center .ph-ic { margin-top: 0; }
@media (max-width: 640px) { .cx-ph { gap: 12px; } }

.lib-head { padding-bottom: var(--s-6); }
.lib-head.page-head--backdrop { padding-top: calc(var(--hdr-h) + var(--s-9)); }
.lib-head.page-head--backdrop .ph-bg .cv { opacity: .3; filter: blur(2px) saturate(1.1); transform: scale(1.04); }
.lib-head h1 { max-width: none; }
.lib-head .lib-sub { color: var(--text-2); font-weight: 500; }
.lib-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-5); }
.lib-chip {
  display: inline-flex; align-items: center; gap: var(--ic-gap-sm); min-height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  background: rgba(10, 10, 12, .62); border: 1px solid var(--line-2); color: var(--text-2); font-size: 13.5px;
}
.lib-chip b { color: var(--text); font-weight: 600; }
.lib-chip > .i { color: var(--text-3); }
a.lib-chip:hover { border-color: var(--line-3); color: var(--text); }
.lib-chip--key { border-color: var(--key-line); }
.lib-chip--key .keys, .lib-chip--key .keys .i { color: var(--key); }
.lib-chip--credit { border-color: color-mix(in srgb, var(--credit) 40%, transparent); }
.lib-chip--off { border-color: var(--warn-soft); color: var(--warn); }
.lib-chip--off > .i { color: var(--warn); }

.lib-tabs-wrap { position: sticky; top: var(--hdr-h); z-index: 20; background: var(--bg); }
.lib-tabs .tab[aria-selected="true"] .i { color: var(--ember); }   /* active = ember + Fill (library.js paint) */
.lib-pane { padding-top: var(--s-6); padding-bottom: var(--s-8); min-height: 40vh; }
.lib-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.lib-empty-a { justify-content: center; --gap: 10px; margin-top: 10px; }
.lib-empty-a .btn { margin-top: 0; }
.lib-empty--plan .empty { --sec-library: var(--ember); }
.lib-empty .empty p { max-width: 52ch; }
.lib-empty .empty { --sc: var(--sec-library); background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--sec-library) 10%, transparent), transparent 70%); border-color: color-mix(in srgb, var(--sec-library) 26%, var(--line)); }
.lib-rail { padding-bottom: var(--s-9); margin-top: calc(var(--s-6) * -1); }
.lib-foot { display: flex; align-items: center; gap: var(--ic-gap); margin-top: var(--s-6); font-size: 13.5px; color: var(--text-3); }
.lib-foot .i { color: var(--text-3); flex: 0 0 auto; }
.lib-foot a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.lib-foot a:hover { color: var(--text); }

/* ---- the rental card: backdrop hero (time) + panel (one block per job) ---- */
.lib-card {
  --tone: var(--ok);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--tone) 22%, var(--line)); box-shadow: var(--sh-1);
}
.lib-panel > *, .lib-drop-b > *, .lib-creds > * { min-width: 0; }
.lib-card.tone-warn { --tone: var(--warn); }
.lib-card.tone-danger { --tone: var(--danger); }
.lib-hero { position: relative; isolation: isolate; min-height: 290px; display: flex; }
.lib-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.lib-bg > .cv, .lib-bg > .cv-fb { position: absolute; inset: 0; width: 100%; height: 100%; }
.lib-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14, 14, 17, .98) 0%, rgba(14, 14, 17, .8) 36%, rgba(14, 14, 17, .2) 72%, rgba(14, 14, 17, .45) 100%);
}
.lib-hero-in { position: relative; display: flex; flex-direction: column; gap: var(--s-3); width: 100%; padding: var(--s-4) var(--s-5) var(--s-5); }
.lib-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.lib-top .pill { height: 26px; background: rgba(10, 10, 12, .74); }
.lib-top .lib-live { color: var(--ok); }
.lib-dev { background: rgba(10, 10, 12, .74); color: var(--tag-plat); border-color: color-mix(in srgb, var(--tag-plat) 35%, transparent); }
.lib-fold {
  width: 44px; height: 44px; margin: -6px -8px -6px 0; display: grid; place-items: center; border-radius: 50%;
  color: var(--text-2); background: rgba(10, 10, 12, .5); transition: background var(--d-1), color var(--d-1);
}
.lib-fold:hover { background: rgba(10, 10, 12, .8); color: var(--text); }
.lib-fold .i { width: var(--ic-btn); height: var(--ic-btn); }
.lib-title { margin-top: auto; }
.lib-title a { display: inline-block; }
.lib-title h3 { font: 800 clamp(22px, 3vw, 34px)/1.25 var(--font-display); text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.lib-valid { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; font-size: 13.5px; }
.lib-until { display: inline-flex; align-items: center; gap: var(--ic-gap-sm); color: var(--ok); font-weight: 500; }
.lib-time { display: grid; gap: 8px; }
.lib-cd { position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.lib-cd > span { font-size: 13px; color: var(--text-3); }
.lib-cd b { font: 700 clamp(22px, 2.8vw, 30px)/1.25 var(--font-display); color: var(--text); }
.lib-card.tone-warn .lib-cd b, .lib-card.tone-danger .lib-cd b { color: var(--tone); }
.lib-time-row { display: flex; justify-content: space-between; gap: 6px 12px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.lib-bump {
  align-self: center; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--ok-soft); color: var(--ok); font: 600 13px/1 var(--font-ui); animation: libBump 2.6s var(--ease-out) both;
}
@keyframes libBump { 0% { opacity: 0; transform: translateY(8px); } 12%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }

.lib-panel { display: grid; gap: 12px; padding: var(--s-5); align-content: start; }
/* each job is its own block */
.lib-blk { border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.lib-blk-ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.lib-blk-ic .i { width: var(--ic-btn); height: var(--ic-btn); }   /* neutral fixed slot; a state may tint the glyph only */
.lib-blk-main { flex: 1 1 200px; min-width: 0; }
.lib-blk-main h4 { font-size: 15px; color: var(--text); }
.lib-blk-main p { font-size: 13px; color: var(--text-3); margin-top: 2px; line-height: 1.65; }

/* sign-in code */
.lib-blk--code { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px; }
.lib-blk--code .lib-blk-ic { color: var(--ember); }
.lib-blk--code .btn { flex: 0 0 auto; }

/* credentials dropdown */
.lib-drop { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 14px; text-align: start; border-radius: inherit; transition: background var(--d-1); }
.lib-drop:hover { background: var(--surface); }
.lib-drop-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lib-drop-t b { font: 600 15px/1.35 var(--font-ui); color: var(--text); }
.lib-drop-t small { font-size: 12.5px; color: var(--text-3); }
.lib-drop-ch { color: var(--text-3); transition: transform var(--d-2) var(--ease); }
.is-open .lib-drop-ch { transform: rotate(180deg); }
.lib-blk--creds.is-open { border-color: color-mix(in srgb, var(--sec-library) 30%, var(--line)); }
.lib-drop-b { display: grid; gap: 10px; padding: 0 14px 14px; }
.lib-prewarn { font-size: 13px; padding: 10px 12px; }
.lib-prewarn a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lib-creds { display: grid; gap: 8px; }
.lib-creds .cred { min-height: 52px; padding-block: 6px; background: var(--surface); }
.lib-creds .cred-l { min-width: 76px; }
.lib-copy { flex: 0 0 auto; }
.lib-mask { letter-spacing: .14em; color: var(--text-3); }

/* decision window */
.lib-decide { padding: 14px; display: grid; gap: 10px; border-color: color-mix(in srgb, var(--warn) 32%, var(--line)); background: linear-gradient(170deg, var(--warn-soft), transparent 70%), var(--bg-2); }
.lib-decide-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lib-decide-h h4 { font-size: 15.5px; color: var(--text); flex: 1; }
.lib-decide-h .lib-blk-ic { color: var(--warn); }
.lib-decide-p { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.lib-decide.is-locked { border-color: var(--line-2); background: var(--bg-2); }
.lib-decide.is-locked .lib-blk-ic { color: var(--text-2); }
.lib-x-row { display: grid; gap: 10px; }
.lib-x { min-height: 52px; }
.lib-x-k { font-weight: 700; }
.btn--light .lib-x-k { color: var(--key); }
.lib-paid { display: grid; gap: 6px; }
.lib-cap { font-size: 12.5px; color: var(--text-3); text-align: center; }
@media (min-width: 560px) { .lib-x-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; } }

.lib-later { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-2); border: 1px dashed var(--line-2); font-size: 13px; color: var(--text-3); line-height: 1.6; }
.lib-later .i { color: var(--text-3); flex: 0 0 auto; }
.lib-later b { color: var(--text-2); font-weight: 600; }
.lib-err { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 13px; color: var(--danger); padding: 10px 12px; border-radius: var(--r-sm); background: var(--danger-soft); }
.lib-err > span { flex: 1 1 180px; }

/* queue alert: a heads-up (warn), the bounty in credit green */
.lib-queue { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 34%, transparent); }
.lib-queue .lib-blk-ic { color: var(--warn); }
.lib-queue h4 { color: var(--text); }
.lib-queue p { color: var(--text-2); }

.lib-end { display: grid; justify-items: start; gap: 6px; padding-top: 4px; }
.lib-end .btn { flex: 0 0 auto; }
.lib-return b { font-weight: 700; }
.lib-end-cap { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

.lib-card.is-collapsed .lib-panel, .lib-card.is-collapsed .lib-time { display: none; }
.lib-card.is-collapsed .lib-hero { min-height: 0; }
.lib-card.is-collapsed .lib-title { margin-top: var(--s-2); }

@media (max-width: 899px) {
  .lib-hero { min-height: 300px; }
}
@media (min-width: 900px) {
  .lib-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lib-hero { min-height: 100%; }
  .lib-bg::after { background: linear-gradient(to top, rgba(14, 14, 17, .96) 0%, rgba(14, 14, 17, .55) 45%, rgba(14, 14, 17, .1) 80%, rgba(14, 14, 17, .35) 100%), linear-gradient(to left, rgba(14, 14, 17, 0) 70%, rgba(20, 20, 24, .9) 100%); }
  .lib-hero-in { padding: var(--s-5) var(--s-6) var(--s-6); min-height: 440px; }
  .lib-panel { padding: var(--s-6); }
  .lib-card.is-collapsed { grid-template-columns: 1fr; }
  .lib-card.is-collapsed .lib-hero-in { min-height: 0; padding-block: var(--s-4); }
}

/* steam */
.lib-steam-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.lib-steam { display: grid; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.lib-mosaic { display: grid; gap: 2px; aspect-ratio: 16 / 7; background: var(--bg); overflow: hidden; }
.lib-mosaic.n2, .lib-mosaic.n3, .lib-mosaic.n4 { grid-template-columns: 1fr 1fr; }
.lib-mosaic.n3 > span:first-child { grid-row: span 2; }
.lib-mosaic > span { position: relative; overflow: hidden; min-height: 0; }
.lib-mosaic .cv, .lib-mosaic .cv-fb { position: absolute; inset: 0; width: 100%; height: 100%; }
.lib-steam-b { display: grid; gap: 10px; padding: var(--s-5); justify-items: start; }
.lib-steam-b h3 { font-size: 19px; }
.lib-steam-m { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--text-3); }

/* ---- modals: sign-in code · end · steam ---- */
.lib-dlg--danger .dlg-head h2 { color: var(--danger); }
.lib-codegame { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-4); }
.lib-codegame > .cv, .lib-codegame > .cv-fb { width: 64px; height: 40px; border-radius: 8px; flex: 0 0 auto; }
.lib-codegame b { display: block; font-size: 15px; }
.lib-codegame small { display: block; font-size: 12.5px; color: var(--text-3); }
.lib-codep { line-height: 1.85; color: var(--text-2); }
.lib-codep b { color: var(--text); }
.lib-codep + .lib-codep { margin-top: 8px; }
.lib-warnlist { display: grid; gap: 8px; }
.lib-warnlist li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--danger-soft); color: #FFC4CC; font-size: 14px; line-height: 1.7; }
.lib-warnlist li .i { color: var(--danger); margin-top: calc((1.7em - var(--ic-sm)) / 2); flex: 0 0 auto; }
.lib-warnlist li b { color: var(--text); }
.lib-warnlist li.is-ok { background: var(--ok-soft); color: #BDF2D9; }
.lib-warnlist li.is-ok .i { color: var(--ok); }
.lib-codebox { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-4) 0 var(--s-2); text-align: center; }
.lib-code { display: flex; gap: 14px; font: 700 clamp(38px, 10vw, 52px)/1 var(--font-ui); letter-spacing: .14em; font-variant-numeric: tabular-nums; color: var(--text); user-select: all; }
.lib-code--8 { font-size: clamp(32px, 8.4vw, 44px); letter-spacing: .1em; }
.lib-code--alnum { font-size: clamp(34px, 9vw, 46px); letter-spacing: .2em; }
.is-low .lib-code { color: var(--danger); }
.lib-code-bar { width: min(260px, 100%); }
.lib-codesec { font-size: 13px; color: var(--text-3); }
.lib-codesec b { color: var(--text); }
.is-low .lib-codesec b { color: var(--danger); }
.lib-codebox--wait { padding-block: var(--s-6); }
.lib-waitt { font-weight: 600; color: var(--text); }
.lib-waitcd { font: 700 34px/1 var(--font-ui); color: var(--ember-hi); }
.lib-endq { font-weight: 600; margin-bottom: var(--s-3); color: var(--danger); }
.lib-enddlg .note + .note { margin-top: 10px; }
.lib-enderr:not(:empty) { margin-top: var(--s-3); }

.lib-cele-dlg .dlg-head { position: absolute; z-index: 3; top: 0; inset-inline: 0; justify-content: flex-end; padding: 14px 14px 0; pointer-events: none; }
.lib-cele-dlg .dlg-x { pointer-events: auto; background: rgba(10, 10, 12, .6); margin: 0; }
.lib-cele-dlg .dlg-body { padding: 0; }
.lib-cele { position: relative; isolation: isolate; overflow: hidden; }
.lib-cele-bg { position: absolute; inset: 0; z-index: -1; }
.lib-cele-bg .cv, .lib-cele-bg .cv-fb { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .42; filter: blur(3px) saturate(1.2); transform: scale(1.08); }
.lib-cele-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 20%, rgba(70, 211, 150, .2), transparent 70%), linear-gradient(to top, var(--surface) 30%, rgba(20, 20, 24, .55)); }
.lib-cele-in { display: grid; justify-items: center; text-align: center; gap: 12px; padding: var(--s-8) var(--s-6) var(--s-5); }
.lib-cele-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--key); box-shadow: inset 0 0 0 1px var(--line-2); animation: celeIn .7s var(--ease-out) both; }
.lib-cele-ic .i { width: var(--ic-xl); height: var(--ic-xl); }
.lib-cele h2 { font: 800 clamp(24px, 4vw, 30px)/1.3 var(--font-display); color: var(--key); }
.lib-cele-amt { direction: ltr; display: flex; align-items: baseline; gap: 6px; color: var(--credit); font: 800 clamp(48px, 12vw, 68px)/1 var(--font-ui); letter-spacing: -.02em; animation: celeIn .9s .15s var(--ease-out) both; }
.lib-cele-amt small { font: 600 18px/1 var(--font-ui); letter-spacing: 0; }
.lib-cele-p { color: var(--text-2); line-height: 1.85; max-width: 46ch; }
.lib-cele-p b { color: var(--text); }
.lib-cele-p b.t-credit { color: var(--credit); }
.lib-cele .note { text-align: start; margin-top: 6px; }
@keyframes celeIn { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }

.lib-sh { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text); margin: var(--s-5) 0 10px; }
.lib-sh:first-child { margin-top: 0; }
.lib-sh .i { color: var(--text-3); }
.lib-sp { font-size: 13.5px; color: var(--text-2); margin-bottom: 10px; }
.lib-steam-creds { margin-bottom: var(--s-3); }
.lib-skel { display: grid; gap: 10px; }
.lib-skel .skel--line { height: 48px; border-radius: 12px; }
.lib-guard { display: grid; gap: 10px; }
.lib-guard-intro { display: grid; gap: 10px; justify-items: start; }
.lib-guard-intro .note b { color: var(--text); }
.lib-guard-a { margin-top: 4px; }
.lib-codebox--guard { padding: var(--s-4); border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.lib-codebox--guard .lib-code { color: var(--key); }
.lib-run { display: grid; gap: 8px; counter-reset: rs; }
.lib-run li { counter-increment: rs; position: relative; display: grid; gap: 2px; padding: 12px 14px 12px 14px; padding-inline-start: 52px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.lib-run li::before { content: counter(rs); position: absolute; inset-inline-start: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--key-soft); color: var(--key); font: 700 13px/1 var(--font-ui); }
.lib-run li > b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text); font-size: 14.5px; }
.lib-run .pill { height: 22px; font-size: 11.5px; padding: 0 8px; }
.lib-run bdi { color: var(--text); font-weight: 600; }
.lib-terms { display: grid; gap: 6px; }
.lib-terms li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.7; color: var(--text-2); }
.lib-terms li .i { margin-top: calc((1.7em - var(--ic-sm)) / 2); flex: 0 0 auto; color: var(--text-3); }
.lib-terms li.is-danger { color: #FFC4CC; }
.lib-terms li.is-danger .i { color: var(--danger); }
.lib-sg { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.lib-sg li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 6px; border-radius: 10px; background: var(--bg-2); min-width: 0; }
.lib-sg li bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-sg-cv { position: relative; width: 64px; aspect-ratio: 460 / 215; flex: 0 0 auto; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.lib-sg-cv .cv, .lib-sg-cv .cv-fb { position: absolute; inset: 0; width: 100%; height: 100%; }
.lib-sg-cv .cv-fb-t { font-size: 8px; }

/* =====================================================================
   2. CONTENT — shared frame (head band per section colour, prose, support, related docs)
   ===================================================================== */
.cx-head { padding-bottom: var(--s-7); }
.cx-head h1 { max-width: 20ch; }
.cx-stamp { display: inline-flex !important; align-items: center; gap: 8px; margin-top: var(--s-4) !important; font-size: 13px !important; color: var(--text-3) !important; }
.cx-col { padding-bottom: var(--s-10); }
.cx-col > .blk + .blk, .cx-col > .blk + section { margin-top: var(--s-5); }
.cx-prose { color: var(--text-2); font-size: 15.5px; line-height: 1.95; display: grid; gap: var(--s-4); }
.cx-prose > p { max-width: 70ch; }
.cx-list { display: grid; gap: 10px; }
.cx-list li { position: relative; padding-inline-start: 22px; max-width: 70ch; }
.cx-list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .8em; width: 7px; height: 7px; border-radius: 50%; background: var(--sc, var(--ember)); }
.cx-list--num { counter-reset: n; }
.cx-list--num li { counter-increment: n; padding-inline-start: 40px; min-height: 28px; }
.cx-list--num li::before { content: counter(n); width: 28px; height: 28px; top: .15em; inset-inline-start: 0; display: grid; place-items: center; color: var(--sc, var(--ember)); background: color-mix(in srgb, var(--sc, var(--ember)) 14%, transparent); font: 700 13px/1 var(--font-ui); }
.cx-prose .note { max-width: 70ch; }
.cx-foot { color: var(--text-4); font-size: 12.5px; margin-top: var(--s-5); }
.cx-foot a { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }

.cx-support { display: flex; gap: 16px; align-items: flex-start; margin-top: var(--s-7); }
.cx-support-ic { flex: 0 0 auto; display: inline-grid; color: var(--text-2); margin-top: calc((15.5px * 1.8 - var(--ic-sec)) / 2); }
.cx-support-ic .i { width: var(--ic-sec); height: var(--ic-sec); }
.cx-support-b { flex: 1; min-width: 0; }
.cx-support-b p { color: var(--text); line-height: 1.8; font-size: 15.5px; }
.cx-support-a { --gap: 8px; margin-top: 14px; }
@media (max-width: 520px) { .cx-support { flex-direction: column; } .cx-support-a .btn { flex: 1 1 100%; } }

.cx-more { margin-top: var(--s-9); container-type: inline-size; }
.cx-more-h { font-size: 19px; margin-bottom: var(--s-4); }
/* always 4 related pages: 1 column → 2×2 → one row of 4 (never a 3+1 orphan) */
.cx-docs { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 520px) { .cx-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 940px) { .cx-docs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cx-doc {
  display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; border-radius: var(--r-md);
  background: linear-gradient(160deg, color-mix(in srgb, var(--sc) 8%, var(--surface)), var(--surface) 70%);
  border: 1px solid color-mix(in srgb, var(--sc) 18%, var(--line)); transition: border-color var(--d-1), background var(--d-1);
}
.cx-doc:hover { border-color: color-mix(in srgb, var(--sc) 50%, var(--line)); }
.cx-doc > span:nth-child(2) { flex: 1; min-width: 0; }
.cx-doc b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); }
.cx-doc small { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.cx-doc > .i:last-child { color: var(--text-3); flex: 0 0 auto; }
.cx-doc:hover > .i:last-child { color: var(--text-2); }
.cx-doc--lg { min-height: 84px; }

/* ---- 2.1 GUIDE — chapter index (sticky rail on desktop) + chapters with their own layouts ---- */
.gd { display: grid; gap: var(--s-6); padding-bottom: var(--s-10); }
.gd-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gd-chap {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: var(--r-sm); text-align: start;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--sc) 18%, var(--line)); color: var(--text-2); font-size: 13.5px; line-height: 1.4;
  transition: border-color var(--d-1), background var(--d-1), color var(--d-1);
}
.gd-chap:hover, .gd-chap.is-on { color: var(--text); border-color: color-mix(in srgb, var(--sc) 55%, var(--line)); background: color-mix(in srgb, var(--sc) 9%, var(--surface)); }
.gd-chap-n { font: 700 12px/1 var(--font-ui); color: var(--sc); flex: 0 0 auto; }
.gd-chap-ic { display: none; }
.gd-chap-t { min-width: 0; }
.gd-body { min-width: 0; display: grid; gap: var(--s-5); }
.gd-body > .blk + .blk, .gd-body > .gd-trio, .gd-body > .gd-trio + .blk { margin-top: 0; }
.gd-sec { scroll-margin-top: calc(var(--hdr-h) + 64px); }
.gd-sec .blk-head h2 { font-size: var(--fs-h2); outline: none; }

/* 01 — three services as columns split by hairlines */
.gd-cols { display: grid; gap: 0; }
.gd-cols li { display: flex; gap: 12px; align-items: flex-start; padding-block: 14px; border-top: 1px solid var(--line); }
.gd-cols li:first-child { border-top: 0; padding-top: 4px; }
.gd-cols-ic { flex: 0 0 auto; display: inline-grid; color: var(--text-2); margin-top: calc((15.5px * 1.95 - var(--ic-sm)) / 2); }
@media (min-width: 760px) {
  .gd-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gd-cols li { flex-direction: column; gap: 10px; padding: 4px 20px; border-top: 0; border-inline-start: 1px solid var(--line); }
  .gd-cols-ic { margin-top: 0; }
  .gd-cols li:first-child { border-inline-start: 0; padding-inline-start: 0; }
}

/* 02 — «كيف تبدأ؟» a real sequence → step timeline */
.gd-steps { display: grid; gap: 0; position: relative; }
.gd-steps li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding-bottom: 18px; }
.gd-steps li:last-child { padding-bottom: 0; }
.gd-steps li::before { content: ""; position: absolute; inset-inline-start: 15px; top: 34px; bottom: 2px; width: 2px; background: color-mix(in srgb, var(--sc) 30%, var(--line)); }
.gd-steps li:last-child::before { display: none; }
.gd-step-n { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--font-ui); color: var(--sc); background: color-mix(in srgb, var(--sc) 14%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 40%, transparent); }
.gd-steps p { padding-top: 3px; }
@media (min-width: 900px) {
  .gd-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .gd-steps li { flex-direction: column; gap: 12px; padding-bottom: 0; }
  .gd-steps li::before { top: 15px; bottom: auto; inset-inline-start: 44px; inset-inline-end: -10px; width: auto; height: 2px; }
  .gd-steps p { padding-top: 0; font-size: 14.5px; line-height: 1.8; }
}

/* 03 — two tiers side by side, split by a hairline (no inner cards) */
.gd-tiers { display: grid; gap: 0; }
.gd-tier { display: grid; gap: 6px; padding-block: 14px; border-top: 1px solid var(--line); }
.gd-tier:first-child { border-top: 0; padding-top: 0; }
.gd-tier > b { display: flex; align-items: center; gap: var(--ic-gap); color: var(--text); font-size: 16.5px; }
.gd-tier p { font-size: 14.5px; line-height: 1.8; }
.gd-tier-ic { flex: 0 0 auto; display: inline-grid; }
.gd-tier--silver .gd-tier-ic { color: var(--silver); }
.gd-tier--gold .gd-tier-ic { color: var(--gold); }
@media (min-width: 700px) {
  .gd-tiers { grid-template-columns: 1fr 1fr; }
  .gd-tier { padding: 0 24px; border-top: 0; border-inline-start: 1px solid var(--line); }
  .gd-tier:first-child { border-inline-start: 0; padding-inline-start: 0; }
}

/* 05 — the long chapter: sub-topics as divided sections, runtime as a ruled table */
.gd-subs { display: grid; }
.gd-sub { --st: var(--sc); display: grid; gap: 12px; padding-block: var(--s-5); border-top: 1px solid var(--line); }
.gd-sub:first-child { border-top: 0; padding-top: var(--s-2); }
.gd-sub:last-child { padding-bottom: 0; }
.gd-sub--ok { --st: var(--ok); } .gd-sub--ember { --st: var(--ember-hi); } .gd-sub--danger { --st: var(--danger); } .gd-sub--credit { --st: var(--credit); }
.gd-sub h3 { display: flex; align-items: center; gap: var(--ic-gap); font-size: 16.5px; color: var(--text); }
.gd-sub-ic { flex: 0 0 auto; display: inline-grid; color: var(--text-2); }
.gd-sub--danger .gd-sub-ic { color: var(--danger); }
.gd-sub .cx-list li::before { background: var(--st); }
.gd-runtime { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.gd-rt { display: grid; gap: 6px; align-content: start; padding: 14px 14px 14px 0; line-height: 1.4; }
.gd-rt:nth-child(even) { border-inline-start: 1px solid var(--line); padding-inline-start: 14px; }
.gd-rt:nth-child(n+3) { border-top: 1px solid var(--line); }
.gd-rt dt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.gd-rt-ic { color: var(--text-3); display: inline-grid; }
.gd-rt dd { font-size: 13px; color: var(--text-3); }
.gd-rt dd b { font: 700 28px/1 var(--font-ui); color: var(--text); }
@media (min-width: 700px) {
  .gd-runtime { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gd-rt, .gd-rt:nth-child(even) { padding: 14px 16px; border-top: 0; border-inline-start: 1px solid var(--line); }
  .gd-rt:nth-child(n+3) { border-top: 0; }
  .gd-rt:first-child { border-inline-start: 0; padding-inline-start: 0; }
}

/* 04 · 09 · 10 — split: title column beside the text on wide screens */
@media (min-width: 1100px) {
  .gd-sec--split { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
  .gd-sec--split .blk-head { flex-direction: column; align-items: flex-start; margin-bottom: 0; }
  .gd-sec--split .blk-head h2 { font-size: 20px; }
}
/* 06 · 07 · 08 — short chapters side by side */
.gd-trio { display: grid; gap: var(--s-5); }
.gd-trio .blk + .blk { margin-top: 0; }
@media (min-width: 900px) { .gd-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gd-sec--short .blk-head h2 { font-size: 19px; } .gd-sec--short .cx-prose { font-size: 14.5px; line-height: 1.85; } }

@media (min-width: 640px) { .gd-index { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
@media (min-width: 1100px) {
  .gd { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
  .gd-index { grid-template-columns: 1fr; gap: 4px; position: sticky; top: calc(var(--hdr-h) + var(--s-5)); }
  .gd-chap { min-height: 46px; background: transparent; border-color: transparent; }
  .gd-chap-ic { display: grid; }   /* neutral: follows the row's text colour */
  .gd-chap.is-on { box-shadow: inset -3px 0 0 var(--sc); }
  .gd-body { max-width: 900px; }
}

/* ---- 2.2 RULES — firm, not alarming: neutral four-rule board, charter rows, legal details.
   Red only for the real ban statements (account-data rule, «حظر» clauses, Console Ban). ---- */
.cx-head--rules .wrap, .cx-col--rules { max-width: calc(1040px + var(--gutter) * 2); }
.rl-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: var(--s-6); }
@media (min-width: 900px) { .rl-board { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.rl-rule {
  display: grid; gap: 12px; align-content: start; min-height: 116px; padding: 16px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line-2);
}
.rl-rule--ban { background: linear-gradient(170deg, color-mix(in srgb, var(--danger) 13%, var(--surface)), var(--surface) 75%); border-color: color-mix(in srgb, var(--danger) 34%, transparent); }
.rl-rule b { font: 700 clamp(15px, 1.6vw, 18px)/1.45 var(--font-display); color: var(--text); }
.rl-rule-ic { display: inline-grid; justify-self: start; color: var(--text-2); }
.rl-rule-ic .i { width: var(--ic-sec); height: var(--ic-sec); }
.rl-rule--ban .rl-rule-ic { color: var(--danger); }
.rl-blk { margin-top: var(--s-6); }
.rl-charter { display: grid; }
.rl-item { display: flex; gap: 12px; align-items: flex-start; padding-block: 16px; border-top: 1px solid var(--line); }
.rl-item:first-child { border-top: 0; padding-top: 0; }
.rl-item-ic { flex: 0 0 auto; display: inline-grid; color: var(--text-2); margin-top: calc((24px - var(--ic-sm)) / 2); }
.rl-item.is-ban .rl-item-ic { color: var(--danger); }
.rl-item-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 4px; }
.rl-item h3 { font-size: 16px; color: var(--text); }
.rl-item .pill { height: 24px; font-size: 12px; padding: 0 9px; }
.rl-item p { font-size: 14px; line-height: 1.8; color: var(--text-2); }
@media (min-width: 900px) {
  .rl-charter { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .rl-item:nth-child(2) { border-top: 0; padding-top: 0; }
}
.rl-legal { border-top: 1px solid var(--line); }
.rl-legal summary { list-style: none; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 0 0; cursor: pointer; }
.rl-legal summary::-webkit-details-marker { display: none; }
.rl-legal summary:hover .rl-legal-t b { color: var(--sc); }
.rl-legal summary > .i { color: var(--text-3); flex: 0 0 auto; transition: transform var(--d-2) var(--ease), color var(--d-1); }
.rl-legal summary:hover > .i { color: var(--text-2); }
.rl-legal[open] summary > .i { transform: rotate(45deg); color: var(--ember); }
.rl-legal-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rl-legal-t b { color: var(--text); font-size: 16px; transition: color var(--d-1); }
.rl-legal-t small { font-size: 13px; color: var(--text-3); }
.rl-legal-b { display: grid; gap: 12px; padding-top: 18px; }
.rl-legal-b .note b { color: var(--text); }
.rl-lead { color: var(--text); font-weight: 500; line-height: 1.8; }
.rl-cons-h { display: flex; align-items: center; gap: 8px; font-size: 16.5px; color: var(--text); margin-top: 6px; }
.rl-cons-h .i { color: var(--danger); }
.rl-cons { display: grid; }
.rl-cons li { display: flex; gap: 12px; align-items: flex-start; padding-block: 12px; border-top: 1px solid var(--line); }
.rl-cons li:first-child { border-top: 0; padding-top: 4px; }
.rl-cons li p { font-size: 14px; line-height: 1.75; color: var(--text-2); }
.rl-cons li b { color: var(--text); }
.rl-cons-n { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font: 700 13px/1 var(--font-ui); }
/* the Console Ban stays the one red box */
.rl-cons li.is-ban { margin-top: 6px; padding: 14px; border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); border-radius: var(--r-md); background: var(--danger-soft); }
.rl-cons li.is-ban .rl-cons-n { background: var(--danger); color: var(--bg); }
.rl-cons li.is-ban b, .rl-cons li.is-ban p { color: #FFC4CC; }
.rl-closing { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; margin-top: var(--s-2); }

/* ---- 2.3 WARRANTY — three parallel guarantees (icons, no numerals) ---- */
.wr-grid { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .wr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); align-items: stretch; } }
.wr-card { display: grid; gap: 4px; align-content: start; scroll-margin-top: calc(var(--hdr-h) + 24px); }
.wr-grid .blk + .blk { margin-top: 0; }
.wr-card .blk-head { margin-bottom: var(--s-3); flex-wrap: nowrap; }
.wr-card h2 { font-size: clamp(19px, 1.8vw, 23px); outline: none; }
.wr-card p { color: var(--text-2); line-height: 1.95; font-size: 15px; }
.wr-card.is-focus { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--sc) 30%, transparent), 0 0 0 2px var(--sc); }

/* ---- 2.4 TERMS — a legal document: clause index + hanging clause numbers ---- */
.tm { display: grid; gap: var(--s-6); padding-bottom: var(--s-10); --sc: var(--sec-rules); }
.tm-toc { display: none; }
.tm-toc-m { border: 1px solid color-mix(in srgb, var(--sc) 24%, var(--line)); border-radius: var(--r-md); background: var(--surface); }
.tm-toc-m summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; cursor: pointer; font-weight: 600; font-size: 14.5px; }
.tm-toc-m summary::-webkit-details-marker { display: none; }
.tm-toc-m summary > span { flex: 1; }
.tm-toc-m summary > .i:first-child { color: var(--text-3); }
.tm-toc-m summary .i:last-child { transition: transform var(--d-2) var(--ease); color: var(--text-3); }
.tm-toc-m[open] summary .i:last-child { transform: rotate(180deg); }
.tm-toc-m ol { padding: 0 8px 10px; }
.tm-toc ol, .tm-toc-m ol { display: grid; gap: 2px; }
.tm-toc button, .tm-toc-m button {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 40px; padding: 9px 12px; border-radius: 10px;
  text-align: start; color: var(--text-3); font-size: 14px; line-height: 1.5; transition: background var(--d-1), color var(--d-1);
}
.tm-toc button:hover, .tm-toc-m button:hover { background: var(--surface-2); color: var(--text); }
.tm-toc button.is-on { color: var(--text); background: color-mix(in srgb, var(--sc) 10%, var(--surface)); box-shadow: inset -3px 0 0 var(--sc); }
.tm-toc-n { font: 600 12px/1.9 var(--font-ui); color: var(--text-4); flex: 0 0 auto; }
.tm-toc button.is-on .tm-toc-n { color: var(--sc); }
.tm-toc-h { font: 600 13px/1 var(--font-ui); color: var(--sc); padding: 0 12px 12px; }
@media (min-width: 1024px) {
  .tm { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-9); align-items: start; }
  .tm-toc { display: block; position: sticky; top: calc(var(--hdr-h) + var(--s-6)); max-height: calc(100vh - var(--hdr-h) - 48px); overflow: auto; padding-top: 4px; }
  .tm-toc-m { display: none; }
}
.tm-doc { min-width: 0; max-width: 820px; }
.tm-clause { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; scroll-margin-top: calc(var(--hdr-h) + 24px); padding-block: var(--s-6); border-top: 1px solid var(--line); }
.tm-clause:first-child { border-top: 0; padding-top: 0; }
.tm-n { font: 700 15px/1 var(--font-ui); color: var(--sc); padding: 8px 0; text-align: center; border-radius: 10px; background: color-mix(in srgb, var(--sc) 12%, transparent); height: max-content; }
.tm-clause h2 { font-size: clamp(18px, 1.8vw, 22px); margin-bottom: 10px; outline: none; }
.tm-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (min-width: 640px) { .tm-clause { grid-template-columns: 56px minmax(0, 1fr); gap: 20px; } }

/* ---- 2.5 PRIVACY — data ledger + policy panels ---- */
.pv { --sc: var(--sec-redeem); }
.pv-intro { color: var(--text-2); margin-bottom: var(--s-4); }
/* the ledger is ruled rows inside the block, not a box in a box */
.pv-dl { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pv-dl > div { display: grid; gap: 4px; padding: 14px 0; }
.pv-dl > div + div { border-top: 1px solid var(--line); }
.pv-dl dt { font-weight: 600; color: var(--text); font-size: 14.5px; }
.pv-dl dd { color: var(--text-2); font-size: 14.5px; line-height: 1.85; }
@media (min-width: 760px) { .pv-dl > div { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: baseline; } }
.pv-grid { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.pv-grid .blk + .blk { margin-top: 0; }
@media (min-width: 900px) { .pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pv-blk--wide { grid-column: 1 / -1; } }
.pv-blk .blk-head h2 { font-size: clamp(17px, 1.6vw, 20px); }
.pv-blk .cx-prose { font-size: 15px; }

/* =====================================================================
   3. HELP CENTER — search hero · Q&A column + contact rail · policy docs
   ===================================================================== */
.help-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(var(--hdr-h) * -1); padding: calc(var(--hdr-h) + var(--s-9)) 0 var(--s-8); border-bottom: 1px solid var(--line); }
.help-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.help-hero-bg .collage { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; transform: rotate(-5deg) scale(1.15); opacity: .2; filter: saturate(.9); }
.help-hero-bg .collage > div { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.help-hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 30%, color-mix(in srgb, var(--sc) 12%, rgba(10, 10, 12, .55)), var(--bg) 85%), linear-gradient(to top, var(--bg), rgba(10, 10, 12, .4) 60%); }
.help-hero-in { display: grid; justify-items: center; text-align: center; gap: var(--s-3); }
.help-hero-in h1 { font-size: var(--fs-display); line-height: 1.15; }
.help-lead { color: var(--text-2); font-size: var(--fs-lead); line-height: 1.8; max-width: 56ch; }
.help-lead a { color: var(--sc); text-decoration: underline; text-underline-offset: 3px; }
.help-search { position: relative; width: 100%; max-width: 640px; margin-top: var(--s-4); }
.help-search .input { min-height: 60px; padding-inline: 52px 52px; border-radius: var(--r-pill); font-size: 16px; background: rgba(26, 26, 32, .92); box-shadow: var(--sh-2); }
.help-search .input:focus { border-color: color-mix(in srgb, var(--sc) 60%, transparent); }
.help-search .input::-webkit-search-cancel-button { display: none; }
.help-search-ic { position: absolute; top: 50%; inset-inline-start: 18px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; display: grid; }
.help-search-ic .i { width: var(--ic-sec); height: var(--ic-sec); }
.help-clear { position: absolute; top: 50%; inset-inline-end: 8px; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.help-clear:hover { color: var(--text); background: var(--surface-3); }
.help-clear .i { width: var(--ic-btn); height: var(--ic-btn); }
.help-clear[hidden] { display: none; }
.help-main { display: grid; gap: var(--s-7); padding-top: var(--s-7); padding-bottom: var(--s-7); }
@media (min-width: 1024px) { .help-main { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-9); align-items: start; } .help-side { position: sticky; top: calc(var(--hdr-h) + var(--s-5)); } }
.help-faq-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.help-faq-h h2 { font-size: var(--fs-h2); }
.help-count { font-size: 13px; }
.help-acc summary { font-size: 16px; }
.help-cta { margin-top: 12px; }
.help-empty { margin-top: var(--s-5); }
.help-empty .btn { margin-top: 0; }
.help-side { display: grid; gap: var(--s-4); }
.help-ask p { color: var(--text-2); line-height: 1.8; margin-bottom: var(--s-4); }
.help-ask .btn + .btn { margin-top: 8px; }
.help-docs { padding-bottom: var(--s-10); container-type: inline-size; }

/* contact (shared socials) */
.ct-socs { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-soc { display: inline-flex; align-items: center; gap: var(--ic-gap); min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); font-size: 14px; transition: color var(--d-1) var(--ease), border-color var(--d-1) var(--ease), background-color var(--d-1) var(--ease); }   /* motion v3: no transition:all */
.ct-soc:hover { color: var(--text); border-color: var(--line-3); background: var(--surface-3); }
.ct-socs--lg { justify-content: center; }
.ct-socs--lg .ct-soc { min-height: 52px; padding: 0 20px; font-size: 15px; }

/* ---- CONTACT — WhatsApp first (wide band), then mail + socials ---- */
.ct { display: grid; gap: var(--s-4); padding-bottom: var(--s-10); }
.ct-wa { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-4) var(--s-6); }
.ct-wa-ic { display: inline-grid; color: var(--ok); flex: 0 0 auto; align-self: flex-start; margin-top: calc((clamp(22px, 2.4vw, 30px) * 1.35 - var(--ic-sec)) / 2); }   /* centred on the h2 line */
.ct-wa-ic .i { width: var(--ic-sec); height: var(--ic-sec); }
.ct-wa-b { flex: 1 1 240px; }
.ct-wa-b h2 { font-size: clamp(22px, 2.4vw, 30px); }
.ct-wa-b p { color: var(--text-2); font-size: var(--fs-lead); margin-top: 4px; }
@media (max-width: 560px) { .ct-wa .btn { width: 100%; } }
.ct-pair { display: grid; gap: var(--s-4); }
.ct-pair .blk + .blk { margin-top: 0; }
@media (min-width: 760px) { .ct-pair { grid-template-columns: 1fr 1fr; } }
.ct-card p { color: var(--text-2); line-height: 1.75; margin-bottom: var(--s-4); }
.ct-mail { font-weight: 600; color: var(--text) !important; font-size: 17px; text-align: start; }
.ct-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: var(--s-5); border-radius: var(--r-lg); background: var(--bg-2); border: 1px dashed var(--line-2); margin-top: var(--s-3); }
.ct-foot p { flex: 1 1 240px; color: var(--text-2); }
.ct-foot-ic { display: inline-grid; color: var(--text-3); flex: 0 0 auto; }

/* =====================================================================
   4. ABOUT — cinematic collage hero, three services, start steps
   ===================================================================== */
.ab-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(var(--hdr-h) * -1); padding: calc(var(--hdr-h) + var(--s-10)) 0 var(--s-9); }
.ab-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ab-hero-bg .collage { position: absolute; inset: -60px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; transform: rotate(-7deg) scale(1.2); opacity: .4; }
.ab-hero-bg .collage > div { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.ab-hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 70% at 50% 45%, rgba(10, 10, 12, .6), var(--bg) 90%), linear-gradient(to top, var(--bg) 2%, rgba(10, 10, 12, .2) 60%); }
.ab-hero-in { display: grid; justify-items: center; text-align: center; gap: var(--s-3); }
.ab-hero-in h1 { font-size: var(--fs-display); line-height: 1.15; }
.ab-hero-in .t-lead { max-width: 60ch; }
.ab-logo { width: 72px; height: 72px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.ab-caps { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ab-cap { display: flex; gap: 14px; align-items: flex-start; padding: var(--s-5); border-radius: var(--r-lg); background: linear-gradient(160deg, color-mix(in srgb, var(--sc) 10%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--sc) 22%, var(--line)); }
.ab-cap p { color: var(--text); line-height: 1.8; font-size: 15.5px; }
.ab-cap .blk-ic { margin-top: calc((15.5px * 1.8 - var(--ic-sec)) / 2); }
/* a real sequence: ruled steps inside the block (no nested cards) */
.ab-steps { display: grid; gap: 0; }
.ab-steps li { display: flex; gap: 12px; align-items: flex-start; padding-block: 14px; border-top: 1px solid var(--line); }
.ab-steps li:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 760px) {
  .ab-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ab-steps li { padding: 0 18px; border-top: 0; border-inline-start: 1px solid var(--line); }
  .ab-steps li:first-child { border-inline-start: 0; padding-inline-start: 0; }
}
.ab-step-n { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--ember); color: var(--on-ember); font: 700 14px/1 var(--font-ui); }
.ab-steps b { display: block; color: var(--text); font-size: 15px; }
.ab-steps p { color: var(--text-2); font-size: 13.5px; line-height: 1.7; margin-top: 2px; }
.ab-follow { display: grid; justify-items: center; gap: var(--s-5); text-align: center; padding-bottom: var(--s-10); }
.ab-cta { justify-content: center; }
.ab-hero-a { justify-content: center; --gap: 10px; margin-top: var(--s-4); }
@media (max-width: 520px) { .ab-hero-a .btn { flex: 1 1 100%; } }

/* =====================================================================
   5. 404
   ===================================================================== */
.nf { display: grid; gap: var(--s-7); align-items: center; padding-block: var(--s-9) var(--s-8); }
.nf-poster { position: relative; width: min(260px, 64vw); aspect-ratio: 1; justify-self: center; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); transform: rotate(-3deg); }
.nf-poster .cv-fb { position: absolute; inset: 0; width: 100%; height: 100%; }
.nf-poster .cv-fb-t { font-size: clamp(56px, 14vw, 88px); letter-spacing: .04em; }
.nf-play { position: absolute; inset-inline-end: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-4); color: var(--text-3); }
.nf-play .i { width: var(--ic-sec); height: var(--ic-sec); }
.nf-copy { display: grid; gap: var(--s-3); justify-items: center; text-align: center; }
.nf-code { font: 700 14px/1 var(--font-ui); color: var(--sec-games); padding: 7px 12px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--sec-games) 14%, transparent); }
.nf-copy h1 { max-width: 18ch; }
.nf-path { font-size: 13px; color: var(--text-3); word-break: break-all; }
.nf-cta { justify-content: center; margin-top: var(--s-3); }
.nf-rail { padding-bottom: var(--s-9); }
@media (min-width: 900px) {
  .nf { grid-template-columns: auto minmax(0, 1fr); gap: var(--s-9); padding-block: var(--s-10) var(--s-9); }
  .nf-copy { justify-items: start; text-align: start; }
  .nf-cta { justify-content: flex-start; }
  .nf-poster { width: 300px; }
}

/* ---------------------------------------------------------------- small phones */
@media (max-width: 400px) {
  .lib-hero-in { padding: var(--s-3) var(--s-4) var(--s-4); }
  .lib-panel { padding: var(--s-4); }
  .lib-end .btn, .lib-blk--code .btn { width: 100%; }
  .help-search .input { min-height: 54px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .lib-bump, .lib-cele-ic, .lib-cele-amt { animation: none !important; }
}
