/* title-light.css */
/* Light moves across the ink, leaving letter shapes and line breaks intact. */
:root {
  --film-ink: #f1e9d7;
  --film-edge: #ddba7a;
  --film-light: #fff9e6;
  --film-halo: rgb(236 182 89 / 20%);
}
:root[data-theme="light"] {
  --film-ink: #222c31;
  --film-edge: #705325;
  --film-light: #846029;
  --film-halo: rgb(159 109 30 / 13%);
}
.main :is(.sale-description, .chapter-hero .lead, .sec-title p) {
  text-shadow: 0 1px 12px var(--film-halo);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .main :is(h1,h2).film-title, .main :is(h1,h2).film-title .sale-wordmark {
    color: var(--film-ink);
    background-color: var(--film-ink);
    background-image: linear-gradient(108deg,
      var(--film-ink) 31%, var(--film-edge) 44%, var(--film-light) 50%,
      var(--film-edge) 56%, var(--film-ink) 69%);
    background-size: 265% 100%;
    background-position: 50% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px var(--film-halo);
  }
  .main :is(h1,h2).film-title .sale-wordmark {
    --film-ink: #d7af68;
    --film-edge: #eed299;
    --film-light: #fff8db;
  }
  :root[data-theme="light"] .film-title .sale-wordmark {
    --film-ink: #805c24;
    --film-edge: #946c2a;
    --film-light: #79571d;
  }
  @media (prefers-reduced-motion: no-preference) {
    .main .film-lit, .main .film-lit .sale-wordmark {
      animation: title-light-pass 2.6s cubic-bezier(.28,.05,.26,1) both;
    }
    [dir="rtl"] .main .film-lit, [dir="rtl"] .main .film-lit .sale-wordmark {
      animation-direction: reverse;
    }
  }
}
@keyframes title-light-pass {
  from { background-position: 100% 50%; }
  to { background-position: 0% 50%; }
}
@media (forced-colors: active), print {
  .main :is(h1,h2).film-title, .main :is(h1,h2).film-title .sale-wordmark {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
    animation: none;
  }
}
/* Paint Latin glyphs directly, including the wordmark on RTL pages. */
:lang(en) .main :is(h1,h2,h3) {
  min-inline-size: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
@media screen and (forced-colors: none) {
  html:lang(en) .main :is(h1,h2).film-title,
  .main :is(h1,h2).film-title .sale-wordmark {
    background: none;
    color: var(--film-ink);
    -webkit-text-fill-color: currentColor;
    animation: none;
  }
  .main :is(h1,h2).film-title .sale-wordmark { line-height: 1.16; }
}
@media screen and (forced-colors: none) and (prefers-reduced-motion: no-preference) {
  html:lang(en) .main :is(h1,h2).film-lit,
  .main :is(h1,h2).film-lit .sale-wordmark {
    animation: latin-title-glow 2.6s ease-out both;
  }
}
@keyframes latin-title-glow {
  0%, 100% { text-shadow: 0 0 2px var(--film-halo); }
  45% { text-shadow: 0 0 12px var(--film-edge), 0 0 22px var(--film-halo); }
}


/* Keep the display hierarchy while stepping down the English type scale. */
html:lang(en) .sale-intro h1 { font-size: clamp(2rem, 4vw, 4.1rem); }
.sale-intro h1 .sale-wordmark { font-size: clamp(3.8rem, 7.4vw, 7.2rem); }
html:lang(en) .chapter-hero h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
html:lang(en) .sec-title h2 { font-size: clamp(1.55rem, 2.7vw, 2.25rem); }
@media (max-width: 760px) {
  html:lang(en) .sale-intro h1 { font-size: clamp(1.6rem, 5.1vw, 2.5rem); }
  .sale-intro h1 .sale-wordmark { font-size: clamp(2.7rem, 9vw, 4.3rem); }
  html:lang(en) .chapter-hero h1 { font-size: clamp(1.45rem, 4.5vw, 2.25rem); }
}
@media (max-width: 440px) {
  html:lang(en) .sale-intro h1 { font-size: clamp(1.25rem, 5.8vw, 1.58rem); }
}

/* auth.css */
/* Sign-in / sign-up pages (.auth3) and the signed-in user menu in the site header. Uses the site theme tokens. */
.auth3{--a3-card:var(--bg-2);--a3-soft:rgba(127,130,150,.1);--a3-navy:#0f1320;margin-block:clamp(16px,3vw,40px)}
:root[data-theme=light] .auth3{--a3-soft:#f3f3f5}
.a3{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);border-radius:32px;overflow:hidden;background:var(--a3-card);
  box-shadow:0 1px 2px rgba(20,22,30,.05),0 24px 60px -24px rgba(20,22,30,.35);min-height:min(760px,calc(100dvh - 160px))}

/* brand side */
.a3-side{position:relative;overflow:hidden;background:radial-gradient(120% 90% at 85% 0%,rgba(240,185,11,.22),transparent 55%),
  radial-gradient(80% 70% at 0% 100%,rgba(91,141,239,.18),transparent 60%),var(--a3-navy);color:#e9eaf0;padding:40px;display:flex;flex-direction:column;gap:28px}
.a3-side::after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:36px 36px;mask-image:radial-gradient(70% 60% at 50% 40%,#000,transparent);pointer-events:none}
.a3-side>*{position:relative;z-index:1}
.a3-brand{display:inline-flex;align-items:center;gap:12px;color:#fff!important}
.a3-brand b{font:800 26px/1 Estedad,Vazirmatn,sans-serif;letter-spacing:.02em}
.a3-copy h2{color:#fff;font-size:clamp(1.6rem,2.6vw,2.2rem);margin:0 0 8px}
.a3-copy p{color:#b9bdcc;margin:0;font-size:1.02rem}
.a3-live{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:24px;padding:20px 22px;backdrop-filter:blur(6px)}
.a3-live-h{display:flex;align-items:center;gap:10px;font-weight:700;color:#f6d76b;font-size:.95rem}
.a3-pulse{width:9px;height:9px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 0 rgba(74,222,128,.6);animation:a3p 1.8s infinite}
@keyframes a3p{70%{box-shadow:0 0 0 10px rgba(74,222,128,0)}100%{box-shadow:0 0 0 0 rgba(74,222,128,0)}}
.a3-price{display:flex;align-items:baseline;gap:10px;margin:8px 0 14px}
.a3-price b{font:800 2rem/1.2 Estedad,Vazirmatn,sans-serif;color:#fff}
.a3-price small{color:#b9bdcc}
.a3-bar{height:8px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden}
.a3-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#f0b90b,#fcd535);border-radius:inherit;transition:width .8s}
.a3-cd{display:block;margin-top:10px;color:#b9bdcc}
.a3-feat{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.a3-feat li{display:flex;gap:14px;align-items:flex-start}
.a3-fi{flex:none;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(240,185,11,.14);color:#f0b90b}
.a3-feat b{color:#fff;display:block;font-size:1rem}
.a3-feat p{margin:2px 0 0;color:#a9aec0;font-size:.92rem;line-height:1.7}
.a3-coin{margin-top:auto;align-self:center;width:160px;filter:drop-shadow(0 20px 40px rgba(240,185,11,.25));animation:a3f 6s ease-in-out infinite}
@keyframes a3f{50%{transform:translateY(-10px)}}

/* form side */
.a3-main{padding:40px clamp(24px,4vw,64px);display:flex;flex-direction:column;width:auto!important;max-width:none!important;background:none!important;border:0!important}
.a3-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:26px}
.a3-back{display:inline-flex;align-items:center;gap:6px;color:var(--muted)!important;font-size:.95rem}
.a3-back .ic{width:18px;height:18px}
.a3-secure{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;color:#16a34a;background:rgba(22,163,74,.1);padding:5px 12px;border-radius:999px}
.a3-secure .ic{width:16px;height:16px}
.a3-tabs{display:grid;grid-template-columns:1fr 1fr;background:var(--a3-soft);border-radius:999px;padding:5px;margin-bottom:28px}
.a3-tabs a{text-align:center;padding:12px;border-radius:999px;color:var(--muted)!important;font-weight:600}
.a3-tabs a.on{background:var(--a3-card);color:var(--heading)!important;box-shadow:0 2px 10px rgba(20,22,30,.1)}
.a3-main h1{font-size:clamp(1.8rem,3vw,2.4rem);margin:0 0 4px}
.a3-sub{color:var(--muted);margin:0 0 22px}
.a3-steps{list-style:none;display:flex;gap:10px;margin:0 0 28px;padding:0}
.a3-steps li{flex:1;display:flex;align-items:center;gap:10px;padding-bottom:10px;border-bottom:3px solid var(--line);color:var(--muted);font-size:.9rem;transition:.3s;height:auto;background:none!important}
.a3-steps li i{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--a3-soft);font-style:normal;font-weight:700;font-size:.85rem}
.a3-steps li.on{border-color:var(--brand);color:var(--heading)}
.a3-steps li.on i{background:var(--brand);color:#181a20}
.a3-f{display:block;margin-bottom:18px}
.a3-l{display:block;font-weight:600;margin-bottom:8px;color:var(--heading);font-size:.95rem}
.a3-l em{font-style:normal;color:var(--muted);font-weight:400}
.a3-in{display:flex;align-items:center;gap:12px;background:var(--a3-soft);border:2px solid transparent;border-radius:18px;padding:0 16px;height:60px;transition:border-color .15s,background .15s}
.a3-in:focus-within{border-color:var(--brand);background:var(--a3-card)}
.a3-in .ic{color:var(--muted);flex:none}
.a3-in input{flex:1;min-width:0;border:0!important;outline:0;background:none!important;font:500 1.05rem var(--ff);color:var(--text);padding:0!important;box-shadow:none!important;height:100%}
.a3-in input::placeholder{color:var(--muted);opacity:.6}
.a3-st{font-style:normal;font-size:.82rem;font-weight:700;white-space:nowrap}
.a3-st.ok{color:#16a34a}.a3-st.bad{color:var(--danger)}
.a3-st.ok::before{content:"✓ "}.a3-st.bad::before{content:"✕ "}
.a3-hint{color:var(--muted);font-size:.9rem;margin:-6px 0 18px}
.a3-typo{margin:-8px 0 18px;padding:12px 14px;border-radius:16px;background:rgba(240,185,11,.1);border:1px solid rgba(240,185,11,.35);font-size:.92rem}
.a3-typo p{margin:0 0 10px;color:var(--text);line-height:1.8}
.a3-typo b{color:var(--heading);overflow-wrap:anywhere}
.a3-typo div{display:flex;flex-wrap:wrap;gap:8px}
.auth3 .otp-help{font-size:.86rem;line-height:1.8;margin:4px 0 14px}
.a3-check{display:flex;gap:10px;align-items:flex-start;font-size:.92rem;margin-bottom:22px;color:var(--text)}
.a3-check input{width:20px;height:20px;accent-color:var(--brand);flex:none;margin-top:3px}
.a3-go{display:flex!important;align-items:center;justify-content:center;gap:10px;height:60px;border-radius:999px!important;font-size:1.05rem!important}
.a3-totp{margin-top:12px;height:50px;border-radius:999px!important;font-weight:600}
.a3-go .ic{width:20px;height:20px}
.auth3 #step2 h2{font-size:1.4rem;margin-bottom:6px}
.auth3 .otp-boxes{gap:10px;margin:18px 0}
.auth3 .otp-boxes .ob{background:var(--a3-soft);border:2px solid transparent;border-radius:16px;height:64px;font-size:1.6rem}
.auth3 .otp-boxes .ob:focus{border-color:var(--brand);background:var(--a3-card)}
.auth3 #step2 .btn.block{height:60px;border-radius:999px}
.a3-foot{margin-top:24px;text-align:center;color:var(--muted);font-size:.95rem}
.a3-foot p{margin:4px 0}
.a3-trust{list-style:none;margin:auto 0 0;padding:22px 0 0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;border-top:1px solid var(--line);color:var(--muted);font-size:.85rem}
.a3-trust li{display:inline-flex;align-items:center;gap:6px}
.a3-trust .ic{width:16px;height:16px;color:#16a34a}
.auth3 .msg{border-radius:14px}

@media (max-width:980px){
  .a3{grid-template-columns:1fr;border-radius:26px}
  .a3-side{padding:26px;gap:18px}
  .a3-feat,.a3-coin{display:none}
  .a3-copy p{font-size:.95rem}
  .a3-main{padding:26px 20px 24px}
}
@media (max-width:520px){
  .auth3.wrap{width:calc(100% - 24px)}
  .a3-live{padding:16px}.a3-price b{font-size:1.6rem}
  .a3-in{height:56px}
  .auth3 .otp-boxes{gap:6px}.auth3 .otp-boxes .ob{height:54px;font-size:1.3rem;border-radius:12px}
}
@media (prefers-reduced-motion:reduce){.a3-coin,.a3-pulse{animation:none}}

/* ---------- "no invite code? get your own" link + dialog (#gi) ---------- */
.a3-lrow{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.a3-lrow .a3-l{margin:0}
.gi-link{position:relative;display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(240,185,11,.35);cursor:pointer;font:inherit;font-size:.84rem;
  padding:6px 12px 6px 10px;border-radius:999px;color:var(--heading);overflow:hidden;isolation:isolate;
  background:linear-gradient(135deg,rgba(240,185,11,.16),rgba(252,213,53,.06));transition:transform .2s,box-shadow .2s,border-color .2s}
[dir=rtl] .gi-link{padding:6px 10px 6px 12px}
.gi-link::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.35) 50%,transparent 70%);
  transform:translateX(-120%);animation:giSweep 4.5s ease-in-out 1.2s infinite}
.gi-link:hover{transform:translateY(-1px);border-color:var(--brand);box-shadow:0 8px 22px -10px rgba(240,185,11,.7)}
.gi-link:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.gi-link b{color:var(--brand-ink,#b98a00);font-weight:700}
:root:not([data-theme=light]) .gi-link b{color:var(--brand)}
.gi-link .ic{width:14px;height:14px;color:var(--brand)}
.gi-q{color:var(--muted)}
.gi-spark{width:8px;height:8px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 0 rgba(240,185,11,.6);animation:giPing 2s infinite}
@keyframes giSweep{0%,60%{transform:translateX(-120%)}100%{transform:translateX(120%)}}
@keyframes giPing{70%{box-shadow:0 0 0 8px rgba(240,185,11,0)}100%{box-shadow:0 0 0 0 rgba(240,185,11,0)}}

.gi{--gi-bg:var(--bg-2);width:min(500px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line);border-radius:30px;
  background:var(--gi-bg);color:var(--text);overflow:auto;overscroll-behavior:contain;box-shadow:0 40px 120px -30px rgba(0,0,0,.6)}
.gi::backdrop{background:rgba(8,10,16,.62);backdrop-filter:blur(8px) saturate(1.2)}
.gi[open]{animation:giIn .42s cubic-bezier(.2,.9,.25,1.15)}
.gi[open]::backdrop{animation:giFade .3s ease}
.gi.closing{animation:giOut .22s ease forwards}.gi.closing::backdrop{opacity:0;transition:opacity .22s}
@keyframes giIn{from{opacity:0;transform:translateY(24px) scale(.96)}}
@keyframes giOut{to{opacity:0;transform:translateY(16px) scale(.97)}}
@keyframes giFade{from{opacity:0}}
.gi-glow{position:absolute;inset:0 0 auto;height:220px;pointer-events:none;overflow:hidden;border-radius:30px 30px 0 0}
.gi-glow i{position:absolute;border-radius:50%;filter:blur(40px);opacity:.55}
.gi-glow i:nth-child(1){width:220px;height:220px;background:#f0b90b;top:-130px;inset-inline-start:-40px;opacity:.35;animation:giDrift 9s ease-in-out infinite}
.gi-glow i:nth-child(2){width:180px;height:180px;background:#5b8def;top:-110px;inset-inline-end:-30px;opacity:.25;animation:giDrift 11s ease-in-out infinite reverse}
.gi-glow i:nth-child(3){width:120px;height:120px;background:#fcd535;top:-60px;left:42%;opacity:.2}
@keyframes giDrift{50%{transform:translate(30px,14px)}}
.gi-x{position:absolute;top:16px;inset-inline-end:16px;z-index:2;width:38px;height:38px;border-radius:50%;border:0;display:grid;place-items:center;cursor:pointer;
  background:var(--a3-soft,rgba(127,130,150,.12));color:var(--muted);transition:background .15s,color .15s,transform .2s}
.gi-x:hover{color:var(--heading);transform:rotate(90deg)}
.gi-x .ic{width:18px;height:18px}
.gi-pane{position:relative;padding:34px clamp(20px,5vw,36px) 28px;text-align:center}
.gi[data-state=form] .gi-pane:not([data-pane=form]),.gi[data-state=code] .gi-pane:not([data-pane=code]),.gi[data-state=review] .gi-pane:not([data-pane=review]){display:none}
.gi-pane:not([data-pane=form]){animation:giPane .45s cubic-bezier(.2,.9,.25,1.1)}
@keyframes giPane{from{opacity:0;transform:translateY(12px)}}
.gi-emblem{width:84px;height:84px;margin:4px auto 14px;border-radius:26px;display:grid;place-items:center;
  background:linear-gradient(160deg,rgba(240,185,11,.2),rgba(240,185,11,.04));border:1px solid rgba(240,185,11,.3);
  box-shadow:0 18px 40px -18px rgba(240,185,11,.65),inset 0 1px 0 rgba(255,255,255,.15);animation:giFloat 5s ease-in-out infinite}
.gi-emblem svg{width:54px;height:54px;transform:rotate(-8deg)}
@keyframes giFloat{50%{transform:translateY(-6px)}}
.gi-badge{display:inline-flex;align-items:center;gap:8px;font-size:.78rem;font-weight:700;letter-spacing:.02em;color:var(--brand-ink,#b98a00);
  background:rgba(240,185,11,.12);border:1px solid rgba(240,185,11,.25);padding:5px 12px;border-radius:999px;margin-bottom:12px}
:root:not([data-theme=light]) .gi-badge{color:var(--brand)}
.gi-badge i{width:6px;height:6px;border-radius:50%;background:currentColor}
.gi h2{font-size:clamp(1.35rem,4vw,1.65rem);margin:0 0 8px;color:var(--heading)}
.gi-lead{color:var(--muted);margin:0 auto 22px;max-width:38ch;line-height:1.85;font-size:.96rem}
#gi-form{text-align:start}
.gi-l{display:block;font-weight:600;font-size:.92rem;color:var(--heading);margin-bottom:8px}
.gi-l em{font-style:normal;color:var(--muted);font-weight:400}
.gi-in{margin-bottom:18px}
.gi-src{border:0;margin:0 0 18px;padding:0;min-width:0}
.gi-chips{display:flex;flex-wrap:wrap;gap:8px}
.gi-chips label{position:relative;cursor:pointer}
.gi-chips input{position:absolute;opacity:0;pointer-events:none}
.gi-chips span{display:inline-block;padding:8px 14px;border-radius:999px;font-size:.88rem;background:var(--a3-soft,rgba(127,130,150,.12));border:1.5px solid transparent;
  color:var(--text);transition:background .15s,border-color .15s,transform .15s}
.gi-chips label:hover span{transform:translateY(-1px)}
.gi-chips input:checked+span{border-color:var(--brand);background:rgba(240,185,11,.14);color:var(--heading);font-weight:600}
.gi-chips input:focus-visible+span{outline:2px solid var(--brand);outline-offset:2px}
.gi-err{margin:-4px 0 14px;padding:10px 14px;border-radius:14px;background:rgba(239,68,68,.1);color:var(--danger);font-size:.9rem}
.gi-go{position:relative;overflow:hidden;width:100%}
.gi-go .ic{transition:transform .5s}
.gi-go:hover .ic{transform:rotate(90deg)}
.gi-go[aria-busy=true]{pointer-events:none;opacity:.85}
.gi-go[aria-busy=true] .ic{animation:giSpin 1s linear infinite}
@keyframes giSpin{to{transform:rotate(360deg)}}
.gi-perks{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;margin:16px 0 0;padding:0;color:var(--muted);font-size:.84rem}
.gi-perks li{display:inline-flex;align-items:center;gap:5px}
.gi-perks .ic{width:15px;height:15px;color:#16a34a}
.gi-fine{margin:12px 0 0;text-align:center;font-size:.78rem;color:var(--muted);opacity:.8}

.gi-ok{width:64px;height:64px;margin:0 auto 12px}
.gi-ok svg{width:100%;height:100%;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.gi-ok circle{stroke:#16a34a;stroke-dasharray:151;animation:giDraw1 .6s ease both;fill:rgba(22,163,74,.1)}
.gi-ok path{stroke:#16a34a;stroke-dasharray:40;animation:giDraw2 .4s .45s ease both}
.gi-wait circle,.gi-wait path{stroke:var(--brand)}.gi-wait circle{fill:rgba(240,185,11,.1)}
@keyframes giDraw1{from{stroke-dashoffset:151}}
@keyframes giDraw2{from{stroke-dashoffset:40}}
.gi-ticket{position:relative;overflow:hidden;margin:16px 0 12px;border-radius:22px;padding:18px 20px 16px;text-align:start;color:#e9eaf0;
  background:radial-gradient(120% 120% at 100% 0%,rgba(240,185,11,.28),transparent 55%),radial-gradient(90% 90% at 0% 100%,rgba(91,141,239,.22),transparent 60%),#0f1320;
  border:1px solid rgba(240,185,11,.35);box-shadow:0 24px 50px -24px rgba(240,185,11,.55)}
.gi-ticket::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:22px 22px;pointer-events:none}
.gi-ticket>*{position:relative}
.gi-t-top,.gi-t-bot{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.78rem;color:#b9bdcc}
.gi-t-brand{display:inline-flex;align-items:center;gap:8px;font:800 1rem/1 Estedad,Vazirmatn,sans-serif;color:#fff}
.gi-t-tag{font:600 .66rem/1 ui-monospace,Consolas,monospace;letter-spacing:.16em;color:#f6d76b}
.gi-code{display:block;text-align:center;margin:18px 0 14px;font:700 clamp(1.7rem,7vw,2.3rem)/1.1 ui-monospace,"SFMono-Regular",Consolas,monospace;letter-spacing:.24em;
  color:#fcd535;text-shadow:0 0 24px rgba(252,213,53,.35);padding-inline-start:.24em}
.gi-code span{display:inline-block;transition:color .2s}
.gi-code span.r{color:#6b7184}
.gi-t-cut{height:0;border-top:2px dashed rgba(255,255,255,.18);margin:0 -20px 12px;position:relative}
.gi-t-cut::before,.gi-t-cut::after{content:"";position:absolute;top:-12px;width:22px;height:22px;border-radius:50%;background:var(--gi-bg)}
.gi-t-cut::before{left:-11px}.gi-t-cut::after{right:-11px}
.gi-t-mail{opacity:.75;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gi-shine{position:absolute;inset:0;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.16) 50%,transparent 65%);transform:translateX(-110%);pointer-events:none}
.gi[data-state=code] .gi-shine{animation:giShine 1.4s .9s ease}
@keyframes giShine{to{transform:translateX(110%)}}
.gi-again{font-size:.86rem;color:var(--muted);margin:0 0 12px}
.gi-acts{display:flex;gap:10px;margin-top:6px}
.gi-use{flex:1;white-space:nowrap}
.gi-copy{flex:none;display:inline-flex;align-items:center;gap:8px;height:60px;padding:0 20px;border-radius:999px;border:1.5px solid var(--line);background:transparent;
  color:var(--heading);font:600 .98rem var(--ff);cursor:pointer;transition:border-color .15s,background .15s}
.gi-copy:hover{border-color:var(--brand);background:rgba(240,185,11,.08)}
.gi-copy .ic{width:18px;height:18px}
.gi-copy.done{border-color:#16a34a;color:#16a34a}
.gi-refbox{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--a3-soft,rgba(127,130,150,.12));border-radius:16px;padding:14px 18px;margin:0 0 18px}
.gi-refbox small{color:var(--muted)}
.gi-refbox b{font:700 1.1rem ui-monospace,Consolas,monospace;letter-spacing:.08em;color:var(--heading)}
.a3-in.gi-flash{animation:giFlash 1.4s ease}
@keyframes giFlash{0%,100%{box-shadow:none}25%{box-shadow:0 0 0 4px rgba(240,185,11,.35);border-color:var(--brand)}}
@media (max-width:520px){
  .gi{border-radius:26px 26px 0 0;width:100%;max-width:none;margin:auto 0 0;max-height:92dvh}
  .gi[open]{animation:giUp .4s cubic-bezier(.2,.9,.25,1)}
  @keyframes giUp{from{transform:translateY(100%)}}
  .gi-acts{flex-direction:column}.gi-copy{justify-content:center;height:52px}
  .gi-q{display:none}
}
@media (prefers-reduced-motion:reduce){.gi-link::before,.gi-spark,.gi-emblem,.gi-glow i,.gi[open],.gi-pane,.gi-shine{animation:none!important}}

/* ---------- signed-in user menu in the site header ---------- */
.umenu{position:relative}
.umenu-b{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:4px 10px 4px 4px;color:var(--text);cursor:pointer;font:inherit}
[dir=rtl] .umenu-b{padding:4px 4px 4px 10px}
.umenu-b .c{width:14px;height:14px}
.uava{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(240,185,11,.18);color:var(--brand-ink,#b98a00);flex:none}
:root:not([data-theme=light]) .uava{color:var(--brand)}
.uava .ic{width:17px;height:17px}
.uem{font-size:.88rem;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.umenu-p{position:absolute;top:calc(100% + 8px);inset-inline-end:0;min-width:240px;background:var(--bg-2);border:1px solid var(--line);border-radius:18px;padding:8px;
  box-shadow:0 20px 50px -20px rgba(0,0,0,.45);z-index:60;display:flex;flex-direction:column}
.umenu-h{padding:10px 12px 12px;border-bottom:1px solid var(--line);margin-bottom:6px}
.umenu-h small{display:block;color:var(--muted)}.umenu-h b{font-size:.9rem;overflow-wrap:anywhere;color:var(--heading)}
.umenu-p a,.umenu-out{display:block;padding:9px 12px;border-radius:12px;color:var(--text)!important;font:inherit;font-size:.95rem;text-align:start;background:none;border:0;cursor:pointer}
.umenu-p a:hover,.umenu-out:hover{background:var(--surface-2)}
.umenu-out{color:var(--danger)!important;border-top:1px solid var(--line);border-radius:0 0 12px 12px;margin-top:6px}
.sheet-me{display:flex;align-items:center;gap:10px;margin:0 0 4px}

/* pwa.css */
/* PWA install dialog, banner and offline pill. Works with the site tokens (--bg-2/--text) and the dashboard tokens (--card/--text). */
.pwa-dlg{border:0;padding:0;border-radius:28px;width:min(440px,calc(100vw - 32px));background:var(--card,var(--bg-2,#fff));color:var(--text,#1e2029);
  box-shadow:0 30px 80px rgba(0,0,0,.35)}
.pwa-dlg::backdrop{background:rgba(10,12,18,.55)}
.pwa-dlg-in{padding:26px}
.pwa-dlg-h{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.pwa-dlg-h img{border-radius:12px}
.pwa-dlg-h b{font-size:1.15rem}
.pwa-steps{list-style:none;margin:0 0 22px;padding:0;display:grid;gap:12px}
.pwa-steps li{display:flex;gap:12px;align-items:flex-start;line-height:1.7}
.pwa-steps i{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#f0b90b;color:#181a20;font-weight:700;font-size:.9rem;font-style:normal}
.pwa-btn{display:inline-flex;align-items:center;justify-content:center;background:#f0b90b;color:#181a20;border:0;border-radius:999px;padding:12px 22px;font-family:inherit;font-weight:700;font-size:1rem;cursor:pointer;white-space:nowrap}
.pwa-dlg .pwa-btn{width:100%}
.pwa-banner{position:fixed;inset-inline:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:70;display:flex;align-items:center;gap:12px;
  background:var(--card,var(--bg-2,#fff));color:var(--text,#1e2029);border-radius:22px;padding:12px 14px;box-shadow:0 18px 50px rgba(0,0,0,.28);
  max-width:520px;margin-inline:auto;animation:pwaUp .35s ease}
.pwa-banner img{border-radius:12px;flex:none}
.pwa-banner div{flex:1;min-width:0;display:flex;flex-direction:column}
.pwa-banner b{font-size:.98rem}.pwa-banner small{opacity:.7;font-size:.8rem;line-height:1.5}
.pwa-x{background:none;border:0;color:inherit;opacity:.6;font-size:1.5rem;line-height:1;cursor:pointer;padding:4px 6px}
@keyframes pwaUp{from{transform:translateY(30px);opacity:0}}
.pwa-off{position:fixed;top:calc(10px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);z-index:80;background:#d93636;color:#fff;
  padding:6px 16px;border-radius:999px;font-size:.85rem;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.25)}
/* the dashboard has its own bottom bar on phones: lift the banner above it */
@media (max-width:640px){.has-tabbar .pwa-banner{bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
@media (prefers-reduced-motion:reduce){.pwa-banner{animation:none}}

/* chat.css */
/* Live chat widget. Works with the site tokens (--bg-2/--text) and the dashboard tokens (--card/--text). */
.dchat-btn{position:fixed;z-index:65;bottom:calc(22px + env(safe-area-inset-bottom,0px));inset-inline-end:22px;width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;
  background:#f0b90b;color:#181a20;display:grid;place-items:center;box-shadow:0 14px 34px -10px rgba(240,185,11,.7),0 4px 12px rgba(0,0,0,.2);transition:transform .2s}
.dchat-btn:hover{transform:scale(1.06)}
.dchat-btn svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.dchat-btn.on{transform:rotate(-8deg) scale(.96)}
.dchat-badge{position:absolute;top:-2px;inset-inline-end:-2px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#d93636;color:#fff;
  font:700 12px/22px system-ui,sans-serif;font-style:normal;box-shadow:0 0 0 3px var(--card,var(--bg-2,#fff))}
.dchat{position:fixed;z-index:66;bottom:calc(96px + env(safe-area-inset-bottom,0px));inset-inline-end:22px;width:min(380px,calc(100vw - 32px));height:min(560px,calc(100dvh - 140px));
  display:flex;flex-direction:column;background:var(--card,var(--bg-2,#fff));color:var(--text,#1e2029);border:1px solid var(--line,rgba(0,0,0,.08));border-radius:24px;
  box-shadow:0 30px 70px -20px rgba(0,0,0,.45);overflow:hidden;animation:dchatUp .25s ease}
@keyframes dchatUp{from{opacity:0;transform:translateY(16px)}}
.dchat-h{display:flex;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(135deg,#0f1320,#1c2130);color:#fff}
.dchat-av img{display:block;width:40px;height:40px;border-radius:12px}
.dchat-h div{flex:1;min-width:0;display:flex;flex-direction:column}
.dchat-h b{font-size:1rem}
.dchat-st{font-size:.78rem;color:#b9bdcc;display:flex;align-items:center;gap:6px}
.dchat-st::before{content:"";width:8px;height:8px;border-radius:50%;background:#9aa0b4;flex:none}
.dchat-st.on::before{background:#4ade80;box-shadow:0 0 0 3px rgba(74,222,128,.2)}
.dchat-x{background:none;border:0;color:#fff;opacity:.75;cursor:pointer;width:36px;height:36px;border-radius:50%;display:grid;place-items:center}
.dchat-x:hover{opacity:1;background:rgba(255,255,255,.08)}
.dchat-x svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.dchat-list{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.dchat-m{max-width:82%;padding:10px 14px;border-radius:18px;line-height:1.7;font-size:.93rem;word-wrap:break-word;white-space:pre-wrap}
.dchat-m p{margin:0}
.dchat-m small{display:block;margin-top:4px;font-size:.7rem;opacity:.65}
.dchat-m.them{align-self:flex-start;background:var(--soft,rgba(127,130,150,.12));border-start-start-radius:6px}
.dchat-m.me{align-self:flex-end;background:#f0b90b;color:#181a20;border-start-end-radius:6px}
.dchat-sys{align-self:center;font-size:.78rem;color:var(--muted,#7d808c);text-align:center;margin:4px 0}
.dchat-qb{font:700 1.05rem/1 system-ui,sans-serif;border:1.5px solid rgba(255,255,255,.35)!important;width:30px;height:30px}
.dchat-faq,.dchat-acts{align-self:stretch;display:flex;gap:6px}
.dchat-faq{flex-direction:column}
.dchat-acts{flex-wrap:wrap}
.dchat-faq-h{margin:2px 0;font-size:.8rem;color:var(--muted,#7d808c)}
.dchat-chip{border:1px solid rgba(240,185,11,.6);background:transparent;color:inherit;border-radius:14px;padding:8px 12px;font:inherit;font-size:.86rem;line-height:1.5;
  text-align:start;cursor:pointer;transition:background .15s}
.dchat-chip:hover{background:rgba(240,185,11,.14)}
.dchat-chip.primary{background:#f0b90b;border-color:#f0b90b;color:#181a20;font-weight:700}
.dchat-chip:disabled{opacity:.5;cursor:default}
.dchat-acts .dchat-chip{flex:1 1 auto;text-align:center}
.dchat-safe{margin:0;padding:8px 16px;font-size:.74rem;color:var(--muted,#7d808c);border-top:1px solid var(--line,rgba(0,0,0,.08))}
.dchat-guest{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px 12px 0}
.dchat-guest input,.dchat-f textarea{width:100%;border:1px solid var(--line,rgba(0,0,0,.1));background:var(--soft,rgba(127,130,150,.08));color:inherit;border-radius:14px;
  padding:10px 12px;font:inherit;font-size:.88rem;outline:0}
.dchat-guest input:focus,.dchat-f textarea:focus{border-color:#f0b90b}
.dchat-err{margin:6px 12px 0;color:#d93636;font-size:.8rem}
.dchat-f{display:flex;gap:8px;align-items:flex-end;padding:10px 12px 12px}
.dchat-f textarea{resize:none;min-height:44px;max-height:120px;line-height:1.5}
.dchat-send{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:#f0b90b;color:#181a20;cursor:pointer;display:grid;place-items:center}
.dchat-send:disabled{opacity:.5}
.dchat-send svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
[dir=rtl] .dchat-send svg{transform:scaleX(-1)}
@media (max-width:640px){
  /* above the phone tab bars (public site and dashboard) */
  .dchat-btn{bottom:calc(84px + env(safe-area-inset-bottom,0px));inset-inline-end:14px;width:54px;height:54px}
  .dchat{inset:0;width:auto;height:auto;border-radius:0;bottom:0;border:0}
  .dchat-guest{grid-template-columns:1fr}
}
/* greeting bubble beside the launcher (position set by chat.js from the launcher's place) */
.dchat-tease{position:fixed;z-index:64;max-width:min(280px,calc(100vw - 32px));display:flex;align-items:flex-start;gap:8px;
  background:#fff;color:#1e2026;border:1px solid rgba(0,0,0,.08);border-radius:16px 16px 4px 16px;padding:12px 12px 12px 14px;
  box-shadow:0 14px 34px -12px rgba(0,0,0,.35);font-size:.92rem;line-height:1.7;cursor:pointer;animation:dchat-in .25s ease-out}
[dir=rtl] .dchat-tease{border-radius:16px 16px 16px 4px}
.dchat-tease span{flex:1;min-width:0}
.dchat-tease-x{flex:none;width:24px;height:24px;border:0;border-radius:50%;background:rgba(0,0,0,.06);color:inherit;cursor:pointer;display:grid;place-items:center;padding:0}
.dchat-tease-x svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
@keyframes dchat-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.dchat{animation:none}.dchat-btn{transition:none}.dchat-tease{animation:none}}

/* mobile.css */
/* Mobile layer for the public site (last file of the site-b bundle, so it wins over the older layers).
   Goals: less chrome above the content, one type scale, 44px touch targets, the task (form, buy box) first. */

/* language + theme row at the top of the menu (the menu is used on tablets too) */
.drawer-tools{display:flex;align-items:center;gap:10px;margin-block:12px 4px}
.dt-lang{flex:1;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:4px;border-radius:999px;background:var(--surface);border:1px solid var(--line)}
.dt-lang a{display:grid;place-items:center;min-height:36px;border-radius:999px;font-size:.88rem;font-weight:700;color:var(--muted)!important;text-decoration:none}
.dt-lang a[aria-current]{background:var(--brand);color:#181a20!important}
.dt-theme{flex:none;width:44px;height:44px}

@media (max-width:760px){
  :root{--hdr:56px;--gutter:16px;--m-gap:14px}
  body{font-size:15.5px;line-height:1.85}
  input,textarea,select:not([size]){font-size:16px}

  /* ---------- chrome: banner, top bar, header ---------- */
  .banner{padding:0;font-size:.8rem;line-height:1.55;font-weight:600}
  .banner .wrap{display:flex;align-items:center;gap:8px;min-height:44px;padding-block:5px}
  .banner .tag,.banner .pulse{display:none}
  .banner .bt{flex:1;min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
  .banner .bx{flex:none;display:grid;place-items:center;width:40px;height:40px;margin-inline-end:-8px;border-radius:50%}
  .hdr .brand{min-height:40px}
  .netbar{display:none}                       /* its language + theme controls live in the menu on phones */
  .hdr-in{height:var(--hdr);gap:8px}
  .hdr .brand img{width:30px;height:30px}
  .hdr .brand b{font-size:1.12rem;letter-spacing:.04em}
  .hdr-act{gap:6px}
  .hdr-act .btn-ico,.hdr-act .cmdk-b{width:40px;height:40px;min-width:40px;padding:0;justify-content:center}
  .cmdk-b span,.cmdk-b kbd{display:none}
  .umenu-b{height:40px}

  /* ---------- bottom tab bar ---------- */
  .tabbar{padding:4px 6px calc(4px + var(--sab));gap:2px}
  .tabbar a,.tabbar button{min-height:52px;justify-content:center;gap:2px;font-size:.72rem;font-weight:600;line-height:1.25;border-radius:12px}
  .tabbar .ic{width:22px;height:22px}
  .tabbar a[aria-current]{box-shadow:none}
  .main{padding-bottom:calc(72px + var(--sab))}
  .ftr{padding-bottom:calc(72px + var(--sab))}

  /* ---------- chat launcher: smaller, above the tab bar, off the content edge ---------- */
  .dchat-btn{width:48px;height:48px;bottom:calc(74px + var(--sab));inset-inline-end:12px;box-shadow:0 10px 24px -10px rgba(240,185,11,.7),0 3px 10px rgba(0,0,0,.18)}
  .dchat-btn svg{width:23px;height:23px}
  /* never cover the field someone is typing into (the keyboard is open then anyway) */
  body:has(main :is(input,textarea,select):focus) .dchat-btn{opacity:0;pointer-events:none;transform:scale(.6)}
  .dchat-btn{transition:opacity .2s,transform .2s}

  /* ---------- type scale ---------- */
  h1{font-size:clamp(1.7rem,7.2vw,2.25rem);line-height:1.32}
  h2{font-size:clamp(1.28rem,5.4vw,1.55rem);line-height:1.5}
  h3{font-size:1.05rem;line-height:1.6}
  .lead{font-size:1rem;line-height:1.95}
  main small,.ftr small{font-size:max(.8em,12.5px)}

  /* ---------- rhythm: sections, cards, grids ---------- */
  .sec{padding-block:26px}
  .sec-head{flex-wrap:wrap;gap:6px 12px}
  .card{padding:18px;border-radius:18px}
  .grid,.g2,.g3{gap:var(--m-gap)}
  .chip{padding:7px 14px}

  /* ---------- buttons: one comfortable height, rows that share the width ---------- */
  .btn{min-height:46px;padding:0 20px;font-size:.95rem}
  .btn.sm{min-height:40px;padding:0 16px}
  .row:has(> .btn){display:flex;flex-wrap:wrap;gap:10px}
  .row:has(> .btn) > .btn{flex:1 1 auto}

  /* menu (drawer): see menu.css */

  /* ---------- footer ---------- */
  .ftr-cta{padding-block:26px;gap:14px}
  .ftr-cta .row{width:100%}
  .foot-group summary{min-height:48px}
  .foot-group nav a{display:block;padding-block:9px}
  .ftr-bottom{gap:10px}
  .ftr-ctl{display:flex;flex-wrap:wrap;gap:6px}
  .ftr-ctl a{display:inline-grid;place-items:center;min-height:40px;padding:0 12px}
  .to-top{height:40px}

  /* ---------- sign-in / sign-up: the form comes first ---------- */
  .auth3{padding-block:10px 20px}
  .auth3.wrap{width:calc(100% - 20px)}
  .a3{display:flex;flex-direction:column;border-radius:22px}
  .a3-main{order:-1;padding:16px 16px 22px}
  .a3-top{display:none}                       /* "back to home" duplicates the logo and the Home tab */
  .a3-tabs a{min-height:44px;display:grid;place-items:center}
  .a3-main h1{font-size:1.45rem;margin:16px 0 2px}
  .a3-steps{margin-block:12px 16px}
  .a3-sub{font-size:.92rem}
  .a3-side{padding:16px;gap:12px;border-radius:0}
  .a3-brand,.a3-copy{display:none}
  .a3-live{padding:14px 16px}
  .gi-link{min-height:36px}

  /* ---------- FAQ category tabs, whitepaper contents ---------- */
  .tabs .tab,button.tab{min-height:42px}
  .toc ol{display:flex;flex-wrap:wrap;gap:6px;padding:0;list-style:none}
  .toc ol li{margin:0}
  .toc ol a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:.9rem;text-decoration:none}

  /* ---------- home page ---------- */
  .sale-cover{padding-block:14px 6px}
  .countdown{gap:8px;margin-block:16px}
  .secgrid .feature-art{height:96px;margin-bottom:10px}
  .secgrid .sec-card{padding:16px}
  .j-head{margin-bottom:24px}
}

/* very narrow phones (iPhone SE 1st gen, small Androids) */
@media (max-width:360px){
  :root{--gutter:12px}
  body{font-size:15px}
  h1{font-size:1.6rem}
  .btn{padding:0 16px}
  .tabbar a,.tabbar button{font-size:.68rem}
  .hdr .brand b{font-size:1rem}
}

/* landscape phones: keep the bars thin so content keeps the height */
@media (max-height:480px) and (orientation:landscape){
  .tabbar a,.tabbar button{min-height:42px;flex-direction:row;gap:6px}
  .dchat-btn{bottom:calc(56px + var(--sab))}
}

/* menu.css */
/* Header + menu for phones and tablets (the menu shows below 1040px, when the desktop nav is hidden).
   Phones: a bottom sheet you can swipe down. Tablets: a panel from the side. Last file of the site-b bundle. */

/* ---------- header: animated menu icon, compact sign-up pill ---------- */
.burger .bars{position:relative;display:block;width:18px;height:12px}
.burger .bars i{position:absolute;inset-inline-start:0;height:2px;border-radius:2px;background:currentColor;transition:transform .3s cubic-bezier(.2,.8,.2,1),width .3s,opacity .2s}
.burger .bars i:nth-child(1){top:0;width:18px}
.burger .bars i:nth-child(2){top:5px;width:12px}
.burger .bars i:nth-child(3){top:10px;width:15px}
.burger:hover .bars i{width:18px}
.burger[aria-expanded=true] .bars i:nth-child(1){transform:translateY(5px) rotate(45deg);width:18px}
.burger[aria-expanded=true] .bars i:nth-child(2){opacity:0}
.burger[aria-expanded=true] .bars i:nth-child(3){transform:translateY(-5px) rotate(-45deg);width:18px}
.hdr-cta{display:none}

@media (max-width:1040px){
  .hdr{background:color-mix(in srgb,var(--bg) 82%,transparent);border-block-end:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
  .hdr .burger{width:42px;height:42px;border-radius:14px;color:var(--heading);background:var(--surface);border:1px solid var(--line)}
  .hdr .cmdk-b{width:42px;height:42px;min-width:42px;border-radius:14px}
}
@media (max-width:760px){
  .hdr-in{gap:6px}
  .hdr .brand{gap:8px;margin-inline-end:auto}
  .hdr .brand img{width:32px;height:32px;box-shadow:0 0 0 2px var(--bg-2),0 0 0 3px color-mix(in srgb,var(--brand) 40%,transparent)}
  .hdr .brand b{font-size:1.08rem;letter-spacing:.1em}
  .hdr-act{gap:6px}
  .hdr .cmdk-b{border:1px solid var(--line);background:var(--surface)}
  .hdr-cta{display:inline-flex;min-height:38px!important;height:38px;padding:0 14px!important;font-size:.84rem!important;border-radius:12px!important;box-shadow:0 8px 20px -10px var(--glow)}
  .umenu-b .c{display:none}
  .umenu-b{padding:3px!important;border-radius:14px}
  .umenu-b .uava{width:34px;height:34px;border-radius:11px}
}

/* ---------- menu: shared ---------- */
.drawer .scrim{background:rgba(6,8,12,.55);backdrop-filter:blur(6px) saturate(1.2);-webkit-backdrop-filter:blur(6px) saturate(1.2);animation:fade .3s ease}
.sheet.mm{display:flex;flex-direction:column;padding:0;overflow:hidden;background:var(--bg-2);color:var(--text);border:0;
  box-shadow:0 -30px 80px -30px rgba(0,0,0,.6)}
.mm-grab{display:none}
.mm-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(12px + var(--sat)) 18px 12px;border-block-end:1px solid var(--line)}
.mm-brand{gap:10px}
.mm-brand img{width:34px;height:34px}
.mm-brand b{font-size:1.1rem}
.sheet.mm .close{width:40px;height:40px;margin:0;border-radius:12px}
.mm-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:16px 18px calc(22px + var(--sab));-webkit-overflow-scrolling:touch;scrollbar-width:none}
.mm-body::-webkit-scrollbar{display:none}
.mm-body>*{animation:mm-in .45s cubic-bezier(.2,.8,.2,1) both}
.mm-label{margin:20px 2px 10px;font-size:.8rem;font-weight:700;color:var(--muted)}
@keyframes mm-in{from{opacity:0;transform:translateY(10px)}}

/* account card / guest promo */
.mm-acct{display:flex;align-items:center;gap:12px;padding:12px;border-radius:20px;text-decoration:none;color:var(--text)!important;
  background:rgba(240,185,11,.1);border:1px solid rgba(240,185,11,.35);
  background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 16%,var(--surface)),var(--surface));border:1px solid color-mix(in srgb,var(--brand) 30%,var(--line))}
.mm-ava{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;flex:none;color:#181a20;background:linear-gradient(135deg,#ffd84d,var(--brand))}
.mm-acct-t{flex:1;min-width:0;display:flex;flex-direction:column}
.mm-acct-t small{font-size:.76rem;color:var(--muted)}
.mm-acct-t b{color:var(--heading);font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mm-acct-go{display:inline-flex;align-items:center;gap:2px;padding:8px 12px;border-radius:12px;font-size:.84rem;font-weight:700;color:#181a20;background:var(--brand)}
.mm-acct-go .ic{width:16px;height:16px}
[dir=ltr] .mm-acct-go .ic{transform:scaleX(-1)}
.mm-promo{padding:16px;border-radius:22px;color:#e9eaf0;position:relative;overflow:hidden;isolation:isolate;
  background:radial-gradient(120% 120% at 100% 0%,rgba(240,185,11,.28),transparent 55%),linear-gradient(150deg,#1b1f2b,#0d0f14);border:1px solid rgba(240,185,11,.22)}
.mm-price{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.mm-price small{display:block;font-size:.78rem;color:#aeb3c4}
.mm-price b{font-size:1.45rem;color:#fff;letter-spacing:-.01em;font-family:var(--ff-display)}
.mm-price em{font-style:normal;font-size:.8rem;color:var(--brand);font-weight:700}
.mm-live{width:10px;height:10px;border-radius:50%;background:#3ddc84;box-shadow:0 0 0 4px rgba(61,220,132,.18);flex:none;animation:pulse 2s infinite}
.mm-auth{display:grid;grid-template-columns:1.25fr 1fr;gap:8px}
.mm-auth .btn{min-height:46px;margin:0}
.mm-promo .btn.ghost{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.18);color:#fff!important}

/* page tiles */
.mm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sheet.mm .mm-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:86px;padding:12px 6px;margin:0;border-radius:18px;
  text-align:center;text-decoration:none;color:var(--heading)!important;background:var(--surface);border:1px solid var(--line);box-shadow:none;
  font-size:.84rem;font-weight:700;line-height:1.35;transition:transform .2s,border-color .2s,background .2s;animation:mm-in .45s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i) * 25ms + 60ms)}
.sheet.mm .mm-tile:active{transform:scale(.96)}
.sheet.mm .mm-tile:hover{border-color:color-mix(in srgb,var(--brand) 55%,var(--line))}
.mm-ic{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;color:var(--brand);
  background:rgba(240,185,11,.13);border:1px solid rgba(240,185,11,.22);
  background:color-mix(in srgb,var(--brand) 13%,transparent);border:1px solid color-mix(in srgb,var(--brand) 22%,transparent)}
:root[data-theme=light] .mm-ic{color:var(--brand-ink)}
.mm-ic .ic{width:21px;height:21px}
.sheet.mm .mm-tile[aria-current]{background:color-mix(in srgb,var(--brand) 12%,var(--surface));border-color:color-mix(in srgb,var(--brand) 60%,transparent);box-shadow:none}
.sheet.mm .mm-tile[aria-current] .mm-ic{color:#181a20;background:linear-gradient(135deg,#ffd84d,var(--brand));border-color:transparent}
.mm-tl{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis}
/* the app download is the last tile: a full-width featured row */
.sheet.mm .mm-tile:last-child{grid-column:1/-1;flex-direction:row;justify-content:flex-start;gap:12px;min-height:60px;padding:10px 12px;text-align:start;
  background:linear-gradient(120deg,color-mix(in srgb,var(--brand) 14%,var(--surface)),var(--surface) 70%);border-color:color-mix(in srgb,var(--brand) 35%,var(--line))}
.sheet.mm .mm-tile:last-child::after{content:"";margin-inline-start:auto;width:8px;height:8px;border:solid var(--muted);border-width:0 2px 2px 0;transform:rotate(135deg);flex:none}
[dir=ltr] .sheet.mm .mm-tile:last-child::after{transform:rotate(-45deg)}

/* network tools: a swipeable row */
.mm-tools{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,46%);gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;
  margin-inline:-18px;padding:2px 18px 4px;scroll-padding-inline:18px;scrollbar-width:none}
.mm-tools::-webkit-scrollbar{display:none}
.mm-tools a{scroll-snap-align:start;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:58px;padding:10px 12px;border-radius:16px;
  text-decoration:none;background:var(--surface);border:1px solid var(--line);color:var(--heading)!important}
.mm-tools a span{display:flex;flex-direction:column;min-width:0}
.mm-tools b{font-size:.9rem}
.mm-tools small{font-size:.74rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm-tools .ic{width:16px;height:16px;color:var(--muted);flex:none}
[dir=rtl] .mm-tools .ic{transform:scaleX(-1)}

/* language + theme, help, sign-out */
.mm-prefs{margin:0}
.mm-prefs .dt-lang a{min-height:40px}
.mm-foot{display:grid;gap:8px;margin-top:20px}
.mm-help,.mm-out{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:16px;font:inherit;font-weight:700;font-size:.92rem;cursor:pointer;text-decoration:none}
.mm-help{color:#181a20!important;background:linear-gradient(135deg,#ffd84d,var(--brand));border:0;box-shadow:0 12px 26px -14px var(--glow)}
.mm-out{color:var(--danger);background:none;border:1px solid color-mix(in srgb,var(--danger) 35%,transparent)}
.mm-help .ic,.mm-out .ic{width:20px;height:20px}

/* ---------- phones: bottom sheet ---------- */
@media (max-width:760px){
  .sheet.mm{inset:auto 0 0 0;width:100%;max-height:90vh;max-height:min(92dvh,100%);height:auto;border-radius:28px 28px 0 0;
    animation:mm-up .42s cubic-bezier(.2,.9,.25,1);touch-action:pan-y}
  .sheet.mm.dragging{transition:none}
  .mm-grab{display:grid;place-items:center;height:22px;cursor:grab;flex:none}
  .mm-grab i{width:42px;height:5px;border-radius:5px;background:var(--line)}
  .mm-head{padding-top:2px}
  @keyframes mm-up{from{transform:translateY(100%)}}
}
@media (max-width:340px){.mm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- tablets: side panel ---------- */
@media (min-width:761px) and (max-width:1040px){
  .sheet.mm{inset-block:12px;inset-inline-end:12px;width:min(420px,calc(100vw - 24px));border-radius:26px;border:1px solid var(--line)}
  .mm-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (prefers-reduced-motion:reduce){.sheet.mm,.mm-body>*,.sheet.mm .mm-tile,.mm-live{animation:none!important}}
