/* robux.here partner cabinet.
   Same palette and type as the activation page. Desktop: sidebar. Phone: floating glass tab bar,
   big touch targets, sticky checkout bar, bento tiles. Motion only explains state: page transitions, press, copy. */
*,*::before,*::after{box-sizing:border-box}
:root{
  --bg:#f2f3f5;--surface:#fff;--field:#eef0f3;--soft:#f3f4f6;--line:#e1e4e8;
  --ink:#17181c;--ink-2:#3d4149;--muted:#6c717b;
  --gold:#ffb81c;--gold-soft:#fff4d6;--gold-ink:#1d1606;--green:#00a65a;--green-soft:#e2f6ec;--red:#e0352b;--red-soft:#fde8e6;
  --amber:#b7791f;--amber-soft:#fdf3dc;--blue:#2563eb;--blue-soft:#e6eeff;
  --glass:rgba(255,255,255,.72);--glass-line:rgba(255,255,255,.9);--glass-shadow:0 10px 40px -10px rgba(16,18,24,.28),0 1px 0 rgba(255,255,255,.8) inset;
  --r:20px;--lift:0 1px 2px rgba(16,18,24,.05),0 8px 24px -12px rgba(16,18,24,.12);
  --font:"Onest",system-ui,-apple-system,"Segoe UI",sans-serif;
  --ease:cubic-bezier(.22,1,.36,1);--spring:cubic-bezier(.34,1.56,.64,1);
  --tab-h:64px;--safe-b:env(safe-area-inset-bottom,0px);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root{
  --bg:#0f1014;--surface:#1a1b20;--field:#24262c;--soft:#22242a;--line:#2a2d33;
  --ink:#f4f5f7;--ink-2:#c9ccd2;--muted:#8b909a;
  --gold-soft:#2c2412;--green:#28c76f;--green-soft:#15291f;--red:#ff5a4f;--red-soft:#33191a;--amber:#f5b94a;--amber-soft:#2e2412;
  --blue:#7ea6ff;--blue-soft:#1a2238;
  --glass:rgba(32,34,40,.62);--glass-line:rgba(255,255,255,.08);--glass-shadow:0 14px 40px -12px rgba(0,0,0,.7),0 1px 0 rgba(255,255,255,.06) inset;
  --lift:none;color-scheme:dark;
}}
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.22s;animation-timing-function:var(--ease)}
.tabbar{view-transition-name:tabbar}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}::view-transition-group(*){animation:none!important}}

html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{margin:0;min-height:100dvh;background:var(--bg);color:var(--ink);font:500 .95rem/1.5 var(--font);-webkit-font-smoothing:antialiased}
a{color:var(--blue);text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
[hidden]{display:none!important}
svg{width:20px;height:20px;flex:none}
h1{font-size:1.75rem;line-height:1.15;letter-spacing:-.025em;margin:0}
h2{font-size:1.05rem;margin:0}
code{font:600 .9em ui-monospace,SFMono-Regular,Menlo,monospace}
pre{background:var(--soft);border-radius:12px;padding:12px 14px;overflow-x:auto;font:500 .82rem/1.55 ui-monospace,Menlo,monospace;margin:8px 0 14px}
.muted{color:var(--muted)}
.small{font-size:.82rem}
.label,.eyebrow{display:block;font-size:.75rem;font-weight:700;color:var(--muted);letter-spacing:.02em}

.rbx{width:1em;height:1em;flex:none;display:inline-block;vertical-align:-.12em}
.rbx.gold{color:var(--gold)}
.amount{display:inline-flex;align-items:center;gap:.3em;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}

/* brand: pin-coin mark + robux.here wordmark */
.brand{display:flex;align-items:center;gap:9px;color:var(--ink);text-decoration:none!important}
.logo{width:30px;height:30px;flex:none;filter:drop-shadow(0 4px 10px rgba(255,160,0,.35))}
.wm{font-weight:800;font-size:1.2rem;letter-spacing:-.035em;line-height:1}
.wm b{font-weight:800;background:linear-gradient(135deg,#ffd24d,#ff9500);-webkit-background-clip:text;background-clip:text;color:transparent}
.brand small{font-size:.68rem;font-weight:700;color:var(--muted);background:var(--soft);padding:2px 8px;border-radius:99px;letter-spacing:0}

/* ---------- layout ---------- */
.app{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100dvh}
.side{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;gap:24px;padding:22px 14px;background:var(--surface);border-right:1px solid var(--line)}
.nav{display:flex;flex-direction:column;gap:2px}
.nav a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;color:var(--ink-2);font-weight:700;transition:background .15s}
.nav a svg{color:var(--muted)}
.nav a:hover{background:var(--soft)}
.nav a.on{background:var(--ink);color:var(--surface)}
.nav a.on svg{color:var(--surface)}
.who{margin-top:auto;display:flex;flex-direction:column;gap:8px}
.bal{display:flex;flex-direction:column;padding:12px 14px;border-radius:14px;background:var(--soft);color:var(--ink)}
.bal span{font-size:.75rem;color:var(--muted);font-weight:700}
.bal b{font-size:1.25rem;font-variant-numeric:tabular-nums}
.bal{position:relative}
.bal-plus{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:var(--surface)}
.bal-plus svg{width:15px;height:15px}
.out{display:flex;align-items:center;gap:8px;background:none;border:0;padding:6px 4px;color:var(--muted);font-weight:600;cursor:pointer}
.out svg{width:18px;height:18px}
.main{padding:32px clamp(16px,4vw,44px) 56px;max-width:1120px;width:100%;min-width:0}
.tabbar{display:none}

.page-head{margin-bottom:22px}
.page-head .eyebrow{margin-bottom:4px}
.row-between{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.section-head{display:flex;justify-content:space-between;align-items:baseline;margin:30px 0 12px}
.section-head a{font-weight:700}
.back{display:inline-flex;align-items:center;gap:4px;margin-bottom:14px;font-weight:700}
.back svg{transform:scaleX(-1);width:18px;height:18px}
.meta{margin:8px 0 0;font-size:.88rem}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;align-items:start}
.grid.buy{grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:20px;box-shadow:var(--lift);min-width:0}
.card h2{margin-bottom:14px}
.card.empty{text-align:center;color:var(--muted);padding:32px 20px}
.card.empty p{margin:0 0 14px}
.row{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.note{margin-top:24px;color:var(--muted);font-size:.85rem}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 18px;border:0;border-radius:14px;
  background:var(--ink);color:var(--surface);font-weight:800;cursor:pointer;transition:transform .12s var(--ease),filter .15s,background .2s}
.btn svg{width:18px;height:18px}
.btn:hover{filter:brightness(1.15)}
.btn:active{transform:scale(.97)}
.btn:disabled{opacity:.4;cursor:not-allowed;filter:none;transform:none}
.btn.ghost{background:var(--soft);color:var(--ink)}
.btn.danger{color:var(--red)}
.btn.done{background:var(--green);color:#fff}
.link{background:none;border:0;padding:0;color:var(--muted);cursor:pointer;font-weight:600;text-align:left}
.link.danger{color:var(--red)}
.copy{display:inline-flex;align-items:center;gap:6px;border:0;background:var(--soft);border-radius:10px;padding:6px 10px;font-size:.78rem;font-weight:700;cursor:pointer;color:var(--ink-2);transition:transform .12s var(--ease),background .2s}
.copy svg{width:15px;height:15px}
.copy:active{transform:scale(.95)}
.copy.done{background:var(--green-soft);color:var(--green)}

/* ---------- forms ---------- */
.fld{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.fld>span{font-weight:700;font-size:.85rem}
.fld input,.fld select,.fld textarea{width:100%;min-height:48px;padding:10px 14px;border-radius:14px;border:1.5px solid transparent;background:var(--field);outline:none;font-size:1rem}
.fld input:focus,.fld select:focus{border-color:var(--ink-2);background:var(--surface)}
.fld em,.hero-input em{color:var(--red);font-style:normal;font-size:.82rem;font-weight:600}
.seg{display:flex;background:var(--soft);border-radius:14px;padding:4px;margin-bottom:18px;width:max-content;max-width:100%}
.seg button{border:0;background:none;padding:9px 16px;border-radius:10px;font-weight:700;cursor:pointer;color:var(--muted);transition:background .2s,color .2s}
.seg button.on{background:var(--surface);color:var(--ink);box-shadow:var(--lift)}
.hero-input{display:flex;flex-direction:column;gap:6px}
.input-wrap{display:flex;align-items:center;gap:10px;padding:6px 16px;border-radius:18px;background:var(--field);border:1.5px solid transparent;transition:border-color .15s,background .15s}
.input-wrap:focus-within{border-color:var(--ink-2);background:var(--surface)}
.input-wrap .rbx{width:30px;height:30px}
.input-wrap .cur{font-size:1.8rem;font-weight:800;color:var(--muted)}
.input-wrap input{flex:1;min-width:0;border:0;background:none;outline:none;font-size:2.2rem;font-weight:800;letter-spacing:-.02em;padding:4px 0;font-variant-numeric:tabular-nums}
#amount-help{display:block;margin:8px 0 12px;font-size:.8rem}
.presets{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.presets button{border:1.5px solid var(--line);background:var(--surface);border-radius:99px;padding:7px 14px;font-weight:700;font-size:.86rem;cursor:pointer;font-variant-numeric:tabular-nums;transition:transform .12s var(--ease),border-color .15s,background .15s}
.presets button:active{transform:scale(.94)}
.presets button:disabled{opacity:.4;cursor:not-allowed}
.presets button.on{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.stepper{display:grid;grid-template-columns:52px 1fr 52px;gap:6px;background:var(--field);border-radius:16px;padding:4px}
.stepper button{border:0;border-radius:12px;background:var(--surface);font-size:1.4rem;font-weight:700;cursor:pointer;min-height:46px;transition:transform .12s var(--ease)}
.stepper button:active{transform:scale(.92)}
.stepper input{border:0;background:none;text-align:center;font-size:1.2rem;font-weight:800;outline:none;min-width:0;font-variant-numeric:tabular-nums}

/* ---------- messages ---------- */
.msgs{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.msg{padding:12px 16px;border-radius:14px;background:var(--blue-soft);font-weight:600;animation:drop .35s var(--ease)}
.msg.success{background:var(--green-soft)}
.msg.error{background:var(--red-soft);color:var(--red)}
.msg.warning{background:var(--amber-soft)}
@keyframes drop{from{opacity:0;transform:translateY(-6px)}}

/* ---------- home: bento ---------- */
.bento{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:18px;box-shadow:var(--lift);color:var(--ink);min-width:0;transition:transform .15s var(--ease)}
a.tile:active{transform:scale(.98)}
.tile.balance{grid-column:span 2;grid-row:span 2;display:flex;flex-direction:column;gap:4px;
  background:radial-gradient(120% 90% at 100% 0%,var(--gold-soft),transparent 60%),var(--surface)}
.tile .big,.card.sum .big{font-size:2.6rem;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums;line-height:1.1;margin:4px 0}
.tile .big small{font-size:.5em;color:var(--muted)}
.tile.balance .row{margin-top:auto;padding-top:14px}
.stat{display:flex;flex-direction:column;justify-content:space-between;gap:10px;min-height:104px}
.stat b{font-size:1.7rem;font-weight:800;font-variant-numeric:tabular-nums;line-height:1}
.stat span{color:var(--muted);font-size:.82rem;font-weight:600}
.stat.ok b{color:var(--green)}
.stat.gold .rbx{color:var(--gold)}
.stat.warn{background:var(--amber-soft);border-color:transparent}
.stat.warn b{color:var(--amber)}
.tile.wide{grid-column:1/-1;min-height:0;flex-direction:row;align-items:center;justify-content:flex-start}

/* ---------- lists ---------- */
.list{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;box-shadow:var(--lift)}
.list.tight{border:0;box-shadow:none;border-radius:0;background:none}
.item{display:grid;grid-template-columns:40px minmax(0,1fr) auto 18px;gap:14px;align-items:center;padding:14px 16px;border-top:1px solid var(--line);color:var(--ink);transition:background .15s}
.item:first-child{border-top:0}
a.item:hover,a.item:active{background:var(--soft)}
.coin{width:40px;height:40px;border-radius:12px;background:var(--gold-soft);display:grid;place-items:center;color:var(--gold)}
.coin .rbx{width:22px;height:22px}
.what{display:flex;flex-direction:column;min-width:0}
.what b{font-weight:800;font-variant-numeric:tabular-nums}
.what b i{font-style:normal;color:var(--muted);font-weight:700}
.what small{color:var(--muted);font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chev{width:16px;height:16px;color:var(--muted)}
.list.tight .item{grid-template-columns:minmax(0,1fr) auto;padding:12px 0}
.list.tight .item .muted{grid-column:1;font-size:.82rem;margin-top:-10px}
.list.tight .item form{grid-row:1/3;grid-column:2}
.chips{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.chip{font-style:normal;font-size:.74rem;font-weight:700;padding:4px 10px;border-radius:99px;background:var(--soft);color:var(--ink-2);white-space:nowrap}
.chip.ok{background:var(--green-soft);color:var(--green)}
.chip.off{color:var(--muted)}
.chip.warn{background:var(--amber-soft);color:var(--amber)}
.chip.run{background:var(--blue-soft);color:var(--blue)}
.dim{opacity:.5}
.pages{display:flex;gap:16px;justify-content:center;align-items:center;margin-top:16px;font-weight:700}
.ops .item{grid-template-columns:10px minmax(0,1fr) auto}
.dot{width:10px;height:10px;border-radius:50%;background:var(--muted);opacity:.5}
.dot.plus{background:var(--green);opacity:1}
.ops .sum{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.ops .sum.plus{color:var(--green)}

/* ---------- keys table ---------- */
.tbl{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;box-shadow:var(--lift);margin:0 0 14px}
.tr{display:grid;grid-template-columns:34px minmax(260px,1.6fr) 140px 1fr 120px;gap:12px;align-items:center;padding:11px 16px;border-top:1px solid var(--line)}
.tr.th{border-top:0;font-size:.72rem;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;background:var(--soft)}
.tr input[type=checkbox]{width:20px;height:20px;accent-color:var(--ink)}
.key{display:flex;align-items:center;gap:10px;min-width:0}
.key code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.92rem}
.danger-zone{margin-top:8px}
.danger-zone .row{margin-top:8px}

/* ---------- checkout summary ---------- */
.card.sum{position:sticky;top:20px}
.card.sum dl{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;margin:16px 0 0}
.card.sum dt{color:var(--muted);font-weight:600}
.card.sum dd{margin:0;text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
.card.sum dd.bad{color:var(--red)}
.cta{margin-top:18px}
.cta.solo{margin-top:4px;margin-bottom:12px}
.cta-sum{display:none}
.cta .btn{width:100%;min-height:52px;font-size:1rem}
.token{border-color:var(--green);background:var(--green-soft);margin-bottom:16px}
.token .key{margin-top:10px;flex-wrap:wrap}
.token code{white-space:normal;word-break:break-all}
.doc p{margin:0 0 6px}

/* ---------- sign-in ---------- */
.auth{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:24px}
.auth .brand .logo{width:40px;height:40px}
.auth .brand .wm{font-size:1.6rem}
.auth .card{width:min(100%,400px)}
.auth h1{font-size:1.4rem;margin-bottom:14px}
.auth .btn{width:100%;margin-top:4px}

/* ---------- phones ---------- */
@media (max-width:820px){
  .app{display:block}
  .side{position:sticky;top:0;z-index:20;height:auto;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;
    padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px;border:0;
    background:color-mix(in srgb,var(--bg) 78%,transparent);-webkit-backdrop-filter:saturate(1.6) blur(18px);backdrop-filter:saturate(1.6) blur(18px)}
  .side .nav{display:none}
  .side .brand small{display:none}
  .logo{width:28px;height:28px}
  .wm{font-size:1.1rem}
  .who{margin:0;flex-direction:row;align-items:center;gap:6px}
  .bal{flex-direction:row;align-items:baseline;gap:6px;padding:7px 12px;border-radius:99px;background:var(--surface);border:1px solid var(--line)}
  .bal b{font-size:.95rem}
  .bal{padding-right:38px}
  .bal-plus{right:4px;width:26px;height:26px}
  .out{width:40px;height:40px;justify-content:center;border-radius:50%;padding:0}
  .out span{display:none}
  .main{padding:8px 16px calc(var(--tab-h) + var(--safe-b) + 40px)}
  h1{font-size:1.9rem}
  .page-head{margin-bottom:18px}
  .desk{display:none}

  .tabbar{display:grid;grid-template-columns:repeat(5,1fr);align-items:center;position:fixed;z-index:30;
    left:12px;right:12px;bottom:calc(10px + var(--safe-b));height:var(--tab-h);padding:0 6px;border-radius:24px;
    background:var(--glass);border:1px solid var(--glass-line);box-shadow:var(--glass-shadow);
    -webkit-backdrop-filter:saturate(1.8) blur(22px);backdrop-filter:saturate(1.8) blur(22px)}
  .tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:52px;border-radius:18px;
    color:var(--muted);font-size:.66rem;font-weight:700;transition:color .2s,background .25s var(--ease),transform .12s var(--ease)}
  .tabbar a svg{width:23px;height:23px}
  .tabbar a:active{transform:scale(.92)}
  .tabbar a.on{color:var(--ink);background:color-mix(in srgb,var(--ink) 8%,transparent)}
  .tabbar .fab{width:54px;height:54px;justify-self:center;border-radius:18px;background:var(--ink);color:var(--surface);
    box-shadow:0 8px 20px -6px rgba(16,18,24,.45);transform:translateY(-14px)}
  .tabbar .fab svg{width:26px;height:26px}
  .tabbar .fab:active{transform:translateY(-14px) scale(.92)}
  .tabbar .fab.on{background:linear-gradient(135deg,#ffd24d,#ff9500);color:var(--gold-ink)}

  .bento{grid-template-columns:1fr 1fr;gap:10px}
  .tile{padding:16px}
  .tile.balance{grid-column:1/-1;grid-row:auto}
  .tile .big{font-size:2.4rem}
  .stat{min-height:92px}

  .grid,.grid.buy{grid-template-columns:minmax(0,1fr)}
  .card{padding:16px;border-radius:22px}
  .seg{width:100%}
  .seg button{flex:1}
  .presets{flex-wrap:nowrap;overflow-x:auto;margin:0 -16px 20px;padding:2px 16px;scrollbar-width:none;scroll-snap-type:x proximity}
  .presets::-webkit-scrollbar{display:none}
  .presets button{flex:none;scroll-snap-align:start;padding:9px 16px}

  /* checkout bar floats above the tab bar */
  .card.sum{position:static}
  .card.sum .big,.card.sum>.label{display:none}
  .card.sum dl{margin-top:0}
  .cta{position:fixed;z-index:25;left:12px;right:12px;bottom:calc(var(--tab-h) + var(--safe-b) + 18px);margin:0;
    display:flex;align-items:center;gap:12px;padding:8px 8px 8px 18px;border-radius:22px;
    background:var(--glass);border:1px solid var(--glass-line);box-shadow:var(--glass-shadow);
    -webkit-backdrop-filter:saturate(1.8) blur(22px);backdrop-filter:saturate(1.8) blur(22px);animation:rise .35s var(--spring)}
  .cta-sum{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.2}
  .cta-sum span{font-size:.74rem;color:var(--muted);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cta-sum b{font-size:1.25rem;font-variant-numeric:tabular-nums}
  .cta .btn{width:auto;min-width:132px}
  .page-topup .main{padding-bottom:calc(var(--tab-h) + var(--safe-b) + 110px)}
  .page-buy .main{padding-bottom:calc(var(--tab-h) + var(--safe-b) + 110px)}
  @keyframes rise{from{opacity:0;transform:translateY(16px)}}

  .item{grid-template-columns:40px minmax(0,1fr) 16px;gap:12px;padding:14px}
  .item .chips{grid-column:2;grid-row:2;justify-content:flex-start;margin-top:-4px}
  .item .chev{grid-column:3;grid-row:1/3}
  .ops .item{grid-template-columns:10px minmax(0,1fr) auto}

  .toolbar .btn{flex:1}
  .tr.th{display:none}
  .keys{background:none;border:0;box-shadow:none;display:flex;flex-direction:column;gap:10px;overflow:visible}
  .keys .tr{grid-template-columns:28px minmax(0,1fr) auto;gap:8px 10px;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--lift)}
  .keys .tr>:first-child{grid-row:1/3;align-self:center}
  .keys .key{grid-column:2/-1}
  .keys .key code{font-size:1rem;flex:1}
  .keys .key .copy{padding:9px 12px}
  .keys .key .copy span{display:none}
  .keys .tr>:nth-child(3){grid-column:2}
  .keys .who-cell,.keys .when{grid-row:2;font-size:.8rem;text-align:right}
  .keys .who-cell:empty,.keys .when:empty{display:none}
  .danger-zone .row .btn{flex:1}
}

/* Tier choice on the buy page: Priority vs Regular */
.tiers{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));grid-auto-flow:column;gap:10px;margin:0 0 18px}
.tier{position:relative;display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:1.5px solid var(--line);border-radius:16px;background:var(--surface);cursor:pointer;transition:border-color .15s,background .15s}
.tier input{position:absolute;opacity:0;pointer-events:none}
.tier b{font-size:.95rem}
.tier .price{font-size:1.15rem;font-weight:800}
.tier .price small{font-size:.72rem;font-weight:700;color:var(--muted)}
.tier .hint{font-size:.75rem;color:var(--muted);line-height:1.35}
.tier:has(input:checked){border-color:var(--ink);background:var(--soft)}
.tier:has(input:focus-visible){outline:2px solid var(--gold);outline-offset:2px}
.tier.eco .price,.tier.mid .price{color:var(--green)}
.tile .prices{display:flex;gap:14px;flex-wrap:wrap}
@media (max-width:520px){.tiers{grid-auto-flow:row;grid-template-columns:1fr}}
.tier-tag{display:inline-block;vertical-align:middle;font-style:normal;font-size:.68rem;font-weight:800;line-height:1;padding:4px 7px;border-radius:99px;background:var(--soft);color:var(--ink-2)}
.tier-tag.eco,.tier-tag.mid{background:var(--green-soft);color:var(--green)}
h1 .tier-tag{font-size:.8rem;padding:5px 9px}

/* ---------- buyer cabinet ---------- */
.stack{display:flex;flex-direction:column;gap:12px}
.btn.wide{width:100%;justify-content:center}
.btn.sm{padding:8px 14px;font-size:.86rem;min-height:0}
.center{text-align:center}
.or{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--muted);font-size:.8rem;font-weight:700}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.oauth svg{width:20px;height:20px}
.tg-widget{display:flex;justify-content:center;min-height:40px}
.auth .card{width:min(420px,100%)}
.who-name{display:block;font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.grid.two{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.method{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.method b{min-width:84px}
.method span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.method form{margin:0}
form.inline{display:flex;gap:8px;flex-wrap:wrap}
form.inline input{flex:1;min-width:180px;padding:11px 14px;border:1.5px solid var(--line);border-radius:12px;background:var(--field);color:var(--ink);font:inherit}
form.inline em,.stack em{color:var(--red);font-style:normal;font-size:.8rem;width:100%}
.steps{list-style:none;margin:0 0 18px;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.steps li{display:flex;flex-direction:column;gap:2px;padding:14px;border-radius:16px;background:var(--surface);border:1px solid var(--line);color:var(--muted)}
.steps li i{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:transparent;margin-bottom:6px}
.steps li i svg{width:16px;height:16px}
.steps li b{color:var(--ink-2);font-size:.9rem}
.steps li span{font-size:.78rem}
.steps li.done i{background:var(--green);color:#fff}
.steps li.now{border-color:var(--ink)}
.steps li.now i{background:var(--ink);color:var(--surface)}
.steps li.warn i{background:var(--amber);color:#fff}
.order-cta{display:flex;flex-direction:column;gap:12px;max-width:520px}
.order-cta p{margin:0}
.tabbar form{display:contents}
.tabbar form button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:52px;border:0;background:none;color:var(--muted);font:700 .66rem/1 var(--font)}
.tabbar form button svg{width:23px;height:23px}
@media (max-width:760px){.steps{grid-template-columns:1fr 1fr}}

/* Themed backdrop: a warm glow at the top and two large, barely visible Robux facets at the edges. Purely decorative. */
:root{--bg-glow-a:rgba(255,190,60,.22);--bg-glow-b:rgba(255,140,0,.10);--bg-glow-c:rgba(255,214,120,.14);
  --bg-mark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23c9921c' stroke-opacity='.20' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M200 20L356 110L356 290L200 380L44 290L44 110Z'/%3E%3Cpath d='M200 68L314 134L314 266L200 332L86 266L86 134Z' stroke-opacity='0.120'/%3E%3Crect x='150' y='150' width='100' height='100' rx='18' transform='rotate(14 200 200)'/%3E%3C/g%3E%3C/svg%3E")}
@media (prefers-color-scheme:dark){:root{--bg-glow-a:rgba(255,184,28,.10);--bg-glow-b:rgba(255,120,0,.05);--bg-glow-c:rgba(140,110,255,.05);
  --bg-mark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23ffc54d' stroke-opacity='.075' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M200 20L356 110L356 290L200 380L44 290L44 110Z'/%3E%3Cpath d='M200 68L314 134L314 266L200 332L86 266L86 134Z' stroke-opacity='0.045'/%3E%3Crect x='150' y='150' width='100' height='100' rx='18' transform='rotate(14 200 200)'/%3E%3C/g%3E%3C/svg%3E")}}
body::before{content:"";position:fixed;inset:-10vh -10vw;z-index:-1;pointer-events:none;
  background:
    var(--bg-mark) no-repeat calc(100% + 120px) -140px/560px 560px,
    var(--bg-mark) no-repeat -180px 62vh/440px 440px,
    radial-gradient(48vmax 30vmax at 78% 0%,var(--bg-glow-a),transparent 72%),
    radial-gradient(40vmax 28vmax at 8% 12%,var(--bg-glow-b),transparent 70%),
    radial-gradient(44vmax 32vmax at 50% 105%,var(--bg-glow-c),transparent 70%);
  animation:bg-float 40s ease-in-out infinite alternate}
body{isolation:isolate}
@keyframes bg-float{to{transform:translate3d(-14px,10px,0) rotate(.6deg)}}
@media (prefers-reduced-motion:reduce){body::before{animation:none}}
@media (max-width:700px){body::before{background-size:360px 360px,300px 300px,auto,auto,auto;background-position:calc(100% + 140px) -120px,-160px 70vh,0 0,0 0,0 0}}
@media print{body::before{display:none}}

.tile.invite{grid-column:1/-1;display:flex;flex-direction:column;gap:10px}
.tile.invite p{margin:0;color:var(--ink-2)}
.gift-link{display:flex;gap:8px;align-items:center}
.gift-link input{flex:1;min-width:0;min-height:42px;padding:8px 12px;border-radius:12px;border:1.5px solid var(--line);background:var(--field);font:inherit;font-size:.88rem;color:var(--ink)}
.order-cta .gift-link{margin:10px 0}
.acc-row{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px;margin-bottom:8px}
.acc-card{flex:none;display:flex;flex-direction:column;align-items:center;gap:4px;width:118px;padding:14px 10px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);color:var(--ink);text-decoration:none;transition:transform .15s var(--ease),border-color .15s}
.acc-card:hover{transform:translateY(-2px);border-color:var(--gold)}
.acc-card img,.acc-card i{width:48px;height:48px;border-radius:50%;object-fit:cover;background:var(--gold-soft);display:grid;place-items:center;font-style:normal;font-weight:800;color:var(--gold-ink)}
.acc-card b{font-size:.85rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acc-card span{font-size:.75rem;color:var(--muted)}
.check{display:flex;align-items:center;gap:10px;font-weight:600;cursor:pointer}
.check input{width:18px;height:18px;accent-color:var(--gold)}
.method.sub{padding-left:14px;font-size:.9rem}
.tier-tag.gift{background:var(--gold-soft);color:#b46d00}
.row2{display:flex;gap:10px;flex-wrap:wrap}.row2 .btn{flex:1}
.btn.pk{display:inline-flex;align-items:center;justify-content:center;gap:10px;margin-top:10px}
.btn.pk svg{width:20px;height:20px}
.small.bad{color:var(--red);font-weight:700}.small.bad:empty{display:none}
.gift-card{text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.gift-card .amount{font-size:2.6rem;margin:0;display:flex;align-items:center;gap:10px}
.gift-card .amount .rbx{width:40px;height:40px}
.gift-burst{font-size:3rem;line-height:1;animation:gift-pop .8s var(--ease) both}
.gift-quote{margin:0;font-size:1.05rem;font-weight:700;color:var(--ink-2)}
@keyframes gift-pop{from{transform:scale(.4) rotate(-12deg);opacity:0}}

/* ---------- buyer profile ---------- */
.me{text-decoration:none}
.me-ava{display:none}
.prof{display:flex;flex-direction:column;gap:14px;max-width:720px}
.prof .card{padding:18px}
.prof h2{font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 4px;font-weight:800}
.prof-hero{display:flex;align-items:center;gap:14px;background:radial-gradient(120% 140% at 100% 0%,var(--gold-soft),transparent 60%),var(--surface)}
.ph-ava{width:56px;height:56px;flex:none;border-radius:18px;display:grid;place-items:center;font-size:1.5rem;font-weight:800;color:var(--gold-ink);background:linear-gradient(135deg,#ffe27a,#ffb81c 60%,#ff9500);box-shadow:0 6px 18px rgba(255,170,0,.25)}
.ph-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ph-name{display:flex;align-items:center;gap:6px;margin:0}
.ph-name input{flex:1;min-width:0;border:1.5px solid transparent;background:transparent;border-radius:10px;padding:4px 8px;margin-left:-8px;font:inherit;font-size:1.2rem;font-weight:800;color:var(--ink);outline:none;transition:background .2s,border-color .2s}
.ph-name input::placeholder{color:var(--muted);font-weight:700}
.ph-name input:hover{background:var(--soft)}
.ph-name input:focus{background:var(--field);border-color:var(--ink-2)}
.ph-save{width:32px;height:32px;flex:none;border:0;border-radius:10px;background:var(--ink);color:var(--surface);display:grid;place-items:center;cursor:pointer;opacity:0;transform:scale(.8);pointer-events:none;transition:opacity .2s,transform .25s cubic-bezier(.34,1.56,.64,1)}
.ph-save svg{width:16px;height:16px}
.ph-name:focus-within .ph-save{opacity:1;transform:none;pointer-events:auto}
.ph-sub{color:var(--muted);font-size:.86rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ph-bonus{flex:none;display:flex;flex-direction:column;align-items:center;padding:8px 12px;border-radius:14px;background:var(--surface);border:1px solid var(--line);color:var(--ink);text-decoration:none;line-height:1.1}
.ph-bonus .rbx{width:18px;height:18px;color:var(--gold)}
.ph-bonus b{font-size:1.1rem;font-variant-numeric:tabular-nums}
.ph-bonus span{font-size:.68rem;color:var(--muted);font-weight:700}
.rows{display:flex;flex-direction:column}
.row-i{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line);min-height:60px}
.rows h2+.row-i,.rows form>.row-i:first-of-type{border-top:0}
.row-i.sub{padding-left:0;min-height:0}
.ic.dev{width:30px;height:30px;border-radius:9px;margin:0 3px}
.ic.dev svg{width:16px;height:16px}
.row-i .txt{flex:1;min-width:0;display:flex;flex-direction:column}
.row-i .txt b{font-size:.95rem}
.row-i .txt span{font-size:.8rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row-i form{margin:0}
.ic{width:36px;height:36px;flex:none;border-radius:11px;display:grid;place-items:center;background:var(--soft);color:var(--ink-2);font-style:normal;font-weight:800;overflow:hidden}
.ic svg{width:19px;height:19px}
.ic.mail{background:var(--gold-soft);color:#c98500}
.ic.tg{background:#e3f1fd;color:#2aa3e0}
.ic.pk{background:var(--green-soft);color:var(--green)}
@media (prefers-color-scheme:dark){.ic.tg{background:#13283a}}
.ic.ava img{width:100%;height:100%;object-fit:cover}
.act{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 13px;border-radius:10px;border:0;background:var(--ink);color:var(--surface);font:inherit;font-size:.82rem;font-weight:700;cursor:pointer;text-decoration:none;white-space:nowrap;transition:transform .15s,opacity .2s}
.act:active{transform:scale(.95)}
.act.ghost{background:var(--soft);color:var(--ink-2)}
.merge-offer{border:1px solid color-mix(in srgb,var(--brand,#FFB81C) 45%,transparent)}
.merge-offer h2{margin-bottom:8px}
.merge-offer p{color:var(--ink-2);font-size:.9rem;line-height:1.5}
.merge-acts{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.act.icon{width:34px;padding:0;background:transparent;color:var(--muted)}
.act.icon svg{width:16px;height:16px}
.act:disabled{opacity:.5}
.ok-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px var(--green-soft)}
.row-form{padding:0 0 12px 48px}
.row-form .inline{display:flex;gap:8px;margin:0}
.row-form input{flex:1;min-width:0;min-height:40px;padding:8px 12px;border-radius:10px;border:1.5px solid transparent;background:var(--field);font:inherit;color:var(--ink);outline:none}
.row-form input:focus{border-color:var(--ink-2);background:var(--surface)}
.row-form .hint{margin:6px 0 0;font-size:.8rem;color:var(--muted)}
.row-form em{color:var(--red);font-style:normal;font-weight:700}
.foot-note,.empty-note{margin:10px 0 0;font-size:.8rem;color:var(--muted)}
.empty-note{margin:4px 0 0}
.sw-row{cursor:pointer}
.sw-row.off{cursor:default}
.sw-row.off .txt b{color:var(--muted)}
.sw{appearance:none;-webkit-appearance:none;flex:none;width:46px;height:28px;border-radius:99px;background:var(--line);position:relative;cursor:pointer;margin:0;transition:background .25s}
.sw::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.25);transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
.sw:checked{background:var(--green)}
.sw:checked::after{transform:translateX(18px)}
.sw:disabled{opacity:.45;cursor:default}
.sw:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.prof-out{margin:4px 0 0}
.prof-out button{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;border-radius:var(--r);border:1px solid var(--line);background:var(--surface);color:var(--red);font:inherit;font-weight:700;cursor:pointer}
.prof-out svg{width:18px;height:18px}
@media (max-width:820px){
  .account .me{padding:0;width:40px;height:40px;border-radius:50%;justify-content:center;align-items:center;border:0;background:none}
  .account .me span,.account .me b{display:none}
  .account .me-ava{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;font-style:normal;font-weight:800;color:var(--gold-ink);background:linear-gradient(135deg,#ffe27a,#ffb81c 60%,#ff9500)}
  .account .who .out{display:none}
  .prof .card{padding:16px}
  .prof-hero{gap:12px}
  .ph-ava{width:48px;height:48px;border-radius:15px;font-size:1.3rem}
}

/* ---------- order page ---------- */
.ord{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start;max-width:1040px}
.ord-main{padding:24px;display:flex;flex-direction:column;gap:26px;background:radial-gradient(90% 120% at 100% 0%,var(--gold-soft),transparent 55%),var(--surface)}
.om-head{display:flex;align-items:center;gap:16px}
.om-coin{width:58px;height:58px;flex:none;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#ffe27a,#ffb81c 60%,#ff9500);box-shadow:0 8px 22px rgba(255,170,0,.28)}
.om-coin .rbx{width:30px;height:30px;color:var(--gold-ink)}
.om-title{flex:1;min-width:0}
.om-kicker{font-size:.82rem;font-weight:700;color:var(--muted)}
.om-title h1{margin:0;font-size:2.4rem;line-height:1.05;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.om-title h1 small{font-size:1.1rem;color:var(--muted);font-weight:800}
.om-status{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:99px;font-size:.82rem;font-weight:800;background:var(--soft);color:var(--ink-2);white-space:nowrap}
.om-status i{width:8px;height:8px;border-radius:50%;background:currentColor}
.om-status.pay,.om-status.receive{background:var(--gold-soft);color:#c98500}
.om-status.buying{background:var(--gold-soft);color:#c98500}
.om-status.buying i,.om-status.pay i{animation:pulse 1.6s ease-in-out infinite}
.om-status.done{background:var(--green-soft);color:var(--green)}
.om-status.review{background:var(--amber-soft,#fff3d6);color:var(--amber,#d18b00)}
@keyframes pulse{50%{opacity:.35;transform:scale(.7)}}
.track{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:relative}
.track li{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding-right:10px;color:var(--muted)}
.track li::before{content:"";position:absolute;top:13px;left:30px;right:4px;height:3px;border-radius:3px;background:var(--line)}
.track li:last-child::before{display:none}
.track li.done::before{background:var(--green)}
.track li.now::before{background:linear-gradient(90deg,var(--gold),var(--line))}
.track i{position:relative;z-index:1;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:transparent;margin-bottom:8px;box-shadow:0 0 0 4px var(--surface)}
.track i svg{width:15px;height:15px}
.track li.done i{background:var(--green);color:#fff}
.track li.now i{background:var(--gold);color:var(--gold-ink)}
.track li.now i::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid var(--gold);opacity:.5;animation:ring 1.8s ease-out infinite}
.track li.now i svg{opacity:0}
.track li.warn i{background:var(--amber,#f5a623);color:#fff}
.track b{color:var(--ink);font-size:.92rem}
.track li:not(.done):not(.now):not(.warn) b{color:var(--muted)}
.track span{font-size:.78rem}
@keyframes ring{from{transform:scale(.8);opacity:.7}to{transform:scale(1.35);opacity:0}}
.om-cta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:18px;border-radius:18px;background:var(--soft)}
.om-cta .om-text{flex:1;min-width:220px;display:flex;flex-direction:column;gap:2px}
.om-cta .om-text b{font-size:1.02rem}
.om-cta .om-text span{font-size:.86rem;color:var(--muted)}
.om-cta form{margin:0}
.om-cta .btn{min-height:48px;padding:0 22px}
.om-cta .gift-link{flex-basis:100%;margin:0}
.om-cta .link{flex-basis:100%}
.ord-side{display:flex;flex-direction:column;gap:12px;position:sticky;top:20px}
.receipt{padding:20px}
.receipt h2{font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 8px;font-weight:800}
.receipt dl{margin:0}
.receipt dl div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:9px 0;border-bottom:1px dashed var(--line)}
.receipt dt{color:var(--muted);font-size:.86rem}
.receipt dd{margin:0;font-weight:700;text-align:right;font-size:.9rem;min-width:0;overflow-wrap:anywhere}
.receipt .plus{color:var(--green);font-size:.8rem}
.r-sum{display:flex;justify-content:space-between;align-items:baseline;padding-top:14px}
.r-sum span{font-weight:700;color:var(--ink-2)}
.r-sum b{font-size:1.5rem;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.side-acts{display:flex;flex-direction:column;gap:8px}
.side-acts:empty{display:none}
@media (max-width:980px){
  .ord{grid-template-columns:1fr}
  .ord-side{position:static}
}
@media (max-width:620px){
  .ord-main{padding:18px;gap:20px}
  .om-coin{width:48px;height:48px;border-radius:15px}
  .om-title h1{font-size:2rem}
  .om-head{flex-wrap:wrap}
  .om-status{order:3}
  .track{grid-template-columns:1fr;gap:0}
  .track li{flex-direction:row;flex-wrap:wrap;align-items:center;column-gap:12px;padding:0 0 18px 0}
  .track li i{margin:0}
  .track li::before{top:30px;bottom:2px;left:13px;right:auto;width:3px;height:auto}
  .track b{flex:1}
  .track span{flex-basis:100%;padding-left:40px;margin-top:-4px}
  .om-cta{padding:16px}
  .om-cta .btn{width:100%}
}
@media (prefers-reduced-motion:reduce){.track li.now i::after,.om-status i{animation:none}}
@media (max-width:620px){.om-cta .copy span{display:none}.om-cta .copy{padding:10px 12px}}

/* ---------- buyer sidebar user card ---------- */
.account .who{flex-direction:row;align-items:center;gap:4px;padding:6px;border-radius:16px;background:var(--soft)}
.account .who form{margin:0}
.account .me{flex:1;min-width:0;display:flex;flex-direction:row;align-items:center;gap:10px;padding:4px;background:none;border-radius:12px;color:var(--ink)}
.account .me:hover{background:color-mix(in srgb,var(--ink) 6%,transparent)}
.account .me-ava{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:11px;font-style:normal;font-weight:800;color:var(--gold-ink);background:linear-gradient(135deg,#ffe27a,#ffb81c 60%,#ff9500)}
.account .me-txt{min-width:0;display:flex;flex-direction:column;line-height:1.2}
.account .me-txt b{font-size:.84rem;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account .me-txt small{font-size:.72rem;color:var(--muted);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account .who .out{width:36px;height:36px;flex:none;justify-content:center;border-radius:10px;padding:0}
.account .who .out span{display:none}
.account .who .out:hover{background:color-mix(in srgb,var(--red) 12%,transparent);color:var(--red)}
@media (max-width:820px){
  .account .who{padding:0;background:none}
  .account .me{flex:none;padding:0}
  .account .me-txt{display:none}
  .account .me-ava{width:38px;height:38px;border-radius:50%}
}
.account .me-txt small{white-space:normal;overflow-wrap:anywhere;line-height:1.25;margin-top:1px}
.account .app{grid-template-columns:272px minmax(0,1fr)}
.account .who{gap:2px;padding:5px}
.account .me{gap:9px}
.account .me-txt small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}

/* ---------- language switch ---------- */
.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:10px}
.side-foot .who{margin-top:0}
.lang{display:inline-flex;align-self:flex-start;gap:2px;padding:3px;border-radius:99px;background:var(--soft);border:1px solid var(--line)}
.lang a{min-width:34px;padding:4px 9px;border-radius:99px;text-align:center;font-size:.75rem;font-weight:800;letter-spacing:.04em;color:var(--muted);transition:background .2s,color .2s}
.lang a:hover{color:var(--ink)}
.lang a.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
@media (max-width:820px){
  .side-foot{margin:0;flex-direction:row;align-items:center;gap:8px}
  .side-foot .lang{align-self:center}
}

/* ---------- levels ---------- */
.lv-rookie{--lv1:#cbd5e1;--lv2:#64748b;--lv-ink:#0f172a}
.lv-bronze{--lv1:#ffcf9e;--lv2:#b8692e;--lv-ink:#2a1405}
.lv-silver{--lv1:#f1f4f8;--lv2:#8e99a8;--lv-ink:#1b2230}
.lv-gold{--lv1:#ffe48c;--lv2:#ef8f00;--lv-ink:#2a1a02}
.lv-diamond{--lv1:#a5f3fc;--lv2:#8b5cf6;--lv-ink:#130b2e}
.lv-emb{position:relative;display:grid;place-items:center;width:46px;height:52px;flex:none;
  clip-path:polygon(50% 0,94% 24%,94% 76%,50% 100%,6% 76%,6% 24%);background:linear-gradient(160deg,var(--lv1),var(--lv2))}
.lv-emb::before{content:"";position:absolute;inset:4px;clip-path:inherit;background:linear-gradient(160deg,rgba(255,255,255,.55),rgba(255,255,255,0) 55%);opacity:.7}
.lv-emb::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 35%,rgba(255,255,255,.55) 50%,transparent 65%) -150% 0/250% 100% no-repeat;animation:emb-shine 5s ease-in-out infinite}
.lv-emb span{position:relative;z-index:1;font-weight:800;font-size:1.1rem;color:var(--lv-ink)}
.lv-emb.big{width:84px;height:96px}
.lv-emb.big span{font-size:2rem}
@keyframes emb-shine{0%,70%{background-position:-150% 0}100%{background-position:150% 0}}
.lv-bar{position:relative;height:10px;border-radius:99px;background:var(--field);overflow:hidden}
.lv-bar i{position:relative;display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--lv1),var(--lv2));overflow:hidden;
  transform-origin:left;animation:bar-grow 1s var(--ease) both}
.lv-bar i::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.6) 50%,transparent 70%) -60% 0/60% 100% no-repeat;
  animation:seg-shine 2.6s cubic-bezier(.45,0,.25,1) infinite;mix-blend-mode:soft-light}
@keyframes bar-grow{from{transform:scaleX(0)}}
@keyframes seg-shine{0%{background-position:-60% 0}70%,100%{background-position:170% 0}}

/* avatar ring and level number in the sidebar */
.account .me-ava{position:relative;overflow:visible;background:linear-gradient(135deg,var(--lv1,#ffe27a),var(--lv2,#ff9500));color:var(--lv-ink,var(--gold-ink))}
.account .me-ava em{position:absolute;right:-5px;bottom:-5px;min-width:17px;height:17px;padding:0 4px;border-radius:99px;display:grid;place-items:center;
  font:800 .62rem/1 var(--font);font-style:normal;color:var(--lv-ink);background:linear-gradient(160deg,var(--lv1),var(--lv2));border:2px solid var(--surface)}

/* home tile */
.tile.level{grid-column:1/-1;display:flex;align-items:center;gap:16px;text-decoration:none}
.tile.level .tl-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px}
.tile.level .label{color:var(--ink);font-weight:700}
.tile.level .tl-perk{display:flex;flex-direction:column;align-items:flex-end;line-height:1.1}
.tile.level .tl-perk b{font-size:1.5rem;font-weight:800;letter-spacing:-.02em}
.tile.level .tl-perk span{font-size:.78rem;color:var(--muted)}

/* rewards page */
.lv-hero{display:grid;grid-template-columns:auto 1fr auto;gap:22px;align-items:center;position:relative;overflow:hidden;
  background:radial-gradient(120% 140% at 0% 0%,color-mix(in srgb,var(--lv1) 26%,transparent),transparent 55%),var(--surface)}
.lvh-main{display:flex;flex-direction:column;gap:8px;min-width:0}
.lvh-kicker{font-size:.8rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.lv-hero h2{font-size:1.8rem;letter-spacing:-.03em}
.lvh-next{margin:2px 0 0;color:var(--ink-2)}
.lvh-stats{display:flex;flex-direction:column;gap:10px;margin:0;padding-left:22px;border-left:1px solid var(--line)}
.lvh-stats div{display:flex;flex-direction:column}
.lvh-stats dt{font-size:.76rem;color:var(--muted)}
.lvh-stats dd{margin:0;font-weight:800;font-size:1.1rem}
.lv-path{margin-top:16px}
.lv-path ol{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:10px;position:relative}
.lv-path li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:14px 8px;border-radius:16px;background:var(--soft);border:1px solid transparent;opacity:.55;filter:saturate(.4)}
.lv-path li.done{opacity:1;filter:none}
.lv-path li.now{opacity:1;filter:none;border-color:var(--lv2);background:color-mix(in srgb,var(--lv1) 14%,var(--surface));box-shadow:0 8px 24px -14px var(--lv2)}
.lv-path li b{margin-top:6px}
.lv-path li span{font-size:.8rem;color:var(--muted)}
.lv-path li em{font-style:normal;font-size:.8rem;font-weight:700;color:var(--ink-2)}
.badges-card{margin-top:16px}
.bc-head{display:flex;justify-content:space-between;align-items:baseline}
.badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-top:14px}
.badge{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px;border-radius:16px;background:var(--soft);animation:rise .4s var(--ease) both;animation-delay:calc(var(--i) * 25ms)}
.badge b{font-size:.92rem;line-height:1.25}
.badge span{font-size:.78rem;color:var(--muted);line-height:1.35}
.badge-ic{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;margin-bottom:4px;color:var(--gold-ink);
  background:linear-gradient(140deg,#ffe48c,#ffb81c 60%,#ff9500);box-shadow:0 6px 16px -8px #ff9500}
.badge-ic svg{width:22px;height:22px}
.badge.locked .badge-ic{background:var(--field);color:var(--muted);box-shadow:none}
.badge.locked b{color:var(--muted)}
@keyframes rise{from{opacity:0;transform:translateY(10px)}}
@media (max-width:820px){
  .lv-hero{grid-template-columns:auto 1fr;gap:16px}
  .lv-hero .lv-emb.big{width:64px;height:74px}
  .lv-hero .lv-emb.big span{font-size:1.5rem}
  .lvh-stats{grid-column:1/-1;flex-direction:row;justify-content:space-between;padding:14px 0 0;border-left:0;border-top:1px solid var(--line)}
  .lv-path ol{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:42%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-inline:-18px;padding:0 18px}
  .lv-path li{scroll-snap-align:start}
  .badges{grid-template-columns:repeat(2,1fr)}
  .tile.level{gap:12px}
}

/* ---------- leaderboard ---------- */
.top-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.countdown{display:flex;flex-direction:column;align-items:flex-end;padding:8px 14px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.countdown small{font-size:.72rem;color:var(--muted)}
.countdown b{font-variant-numeric:tabular-nums;font-size:1.05rem}
.top-lead{margin:-6px 0 18px;color:var(--ink-2);max-width:60ch}
.podium{display:grid;grid-template-columns:repeat(3,1fr);align-items:end;gap:12px;margin-bottom:18px}
.pod{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;min-width:0;animation:rise .5s var(--ease) both}
.pod.p1{animation-delay:.1s}.pod.p3{animation-delay:.18s}
.pod-ava{position:relative;display:grid;place-items:center;width:58px;height:58px;border-radius:50%;font-weight:800;font-size:1.3rem;
  color:var(--lv-ink);background:linear-gradient(140deg,var(--lv1),var(--lv2));box-shadow:0 0 0 3px var(--surface),0 0 0 5px color-mix(in srgb,var(--lv2) 55%,transparent)}
.pod.p1 .pod-ava{width:74px;height:74px;font-size:1.6rem}
.pod-ava.is-me{box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--blue)}
.pod-ava.empty{background:var(--field);color:var(--muted);box-shadow:none;border:2px dashed var(--line)}
.pod-ava .crown{position:absolute;top:-20px;width:26px;height:26px;color:#ffb81c;filter:drop-shadow(0 2px 4px rgba(255,149,0,.5));transform:rotate(-12deg)}
.pod-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:6px}
.pod-name em,.tl-name em{font-style:normal;font-size:.72rem;padding:1px 6px;border-radius:99px;background:var(--blue-soft);color:var(--blue);vertical-align:2px}
.pod-rbx{font-size:.85rem;color:var(--muted);font-variant-numeric:tabular-nums}
.pod-step{width:100%;margin-top:8px;border-radius:16px 16px 6px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  background:linear-gradient(180deg,var(--surface),color-mix(in srgb,var(--surface) 60%,transparent));border:1px solid var(--line);box-shadow:var(--lift)}
.pod-step span{font-size:1.6rem;font-weight:800;color:var(--muted)}
.pod.p1 .pod-step{height:120px;background:linear-gradient(180deg,color-mix(in srgb,#ffb81c 20%,var(--surface)),var(--surface));border-color:color-mix(in srgb,#ffb81c 45%,var(--line))}
.pod.p1 .pod-step span{color:#e08a00;font-size:2rem}
.pod.p2 .pod-step{height:92px}
.pod.p3 .pod-step{height:72px}
.pod-prize{display:inline-flex;align-items:center;gap:3px;font-style:normal;font-weight:800;font-size:.8rem;padding:3px 9px;border-radius:99px;background:var(--gold-soft);color:var(--amber)}
.pod-prize .rbx{width:14px;height:14px}
.top-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.top-list{padding:8px}
.top-list ol{list-style:none;margin:0;padding:0}
.top-list li{display:grid;grid-template-columns:34px 38px 1fr auto;align-items:center;gap:10px;padding:9px 10px;border-radius:14px;animation:rise .4s var(--ease) both}
.top-list li+li{margin-top:2px}
.top-list li.is-me{background:var(--blue-soft)}
.tl-place{font-weight:800;color:var(--muted);text-align:center;font-variant-numeric:tabular-nums}
.tl-ava{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;font-style:normal;font-weight:800;color:var(--lv-ink);background:linear-gradient(140deg,var(--lv1),var(--lv2))}
.tl-name{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.tl-name b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tl-name small{font-size:.75rem;color:var(--muted)}
.tl-rbx{font-weight:800;font-variant-numeric:tabular-nums}
.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:34px 16px;color:var(--muted)}
.empty-state svg{width:40px;height:40px;color:#ffb81c}
.empty-state b{color:var(--ink);font-size:1.05rem}
.top-side{display:flex;flex-direction:column;gap:16px;position:sticky;top:20px}
.my-place{display:flex;flex-direction:column;gap:6px}
.my-place small{color:var(--muted);font-weight:700}
.mp-num{font-size:2.6rem;font-weight:800;letter-spacing:-.04em;line-height:1}
.my-place p{margin:4px 0 6px;color:var(--ink-2)}
.my-place .btn{margin-top:6px}
.top-form{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.top-form .field{display:flex;flex-direction:column;gap:5px}
.top-form .field span{font-size:.82rem;color:var(--muted);font-weight:600}
.top-form input[type=text]{padding:11px 13px;border-radius:12px;border:1px solid var(--line);background:var(--field)}
.top-form .row-i{padding:4px 0}
.winners ol{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.winners li{display:grid;grid-template-columns:26px 1fr auto;align-items:center;gap:8px}
.winners li span:last-child{color:var(--muted);font-size:.85rem}
.w-place{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:.78rem;font-weight:800;background:var(--field)}
.w-place.p1{background:#ffd76a;color:#2a1a02}.w-place.p2{background:#dfe4ea;color:#1b2230}.w-place.p3{background:#f0b27a;color:#2a1405}
@media (max-width:980px){.top-grid{grid-template-columns:minmax(0,1fr)}.top-side{position:static}}
@media (max-width:820px){
  .top-head{align-items:flex-start;flex-direction:column}
  .countdown{align-items:flex-start}
  .podium{gap:8px}
  .pod-ava{width:48px;height:48px;font-size:1.1rem}
  .pod.p1 .pod-ava{width:60px;height:60px}
  .pod.p1 .pod-step{height:100px}.pod.p2 .pod-step{height:78px}.pod.p3 .pod-step{height:62px}
  .pod-name{font-size:.85rem}
}

/* ---------- toasts and level-up ---------- */
.toasts{position:fixed;z-index:60;right:20px;bottom:20px;display:flex;flex-direction:column;gap:8px;pointer-events:none}
.toast{pointer-events:auto;display:flex;align-items:center;gap:12px;padding:10px 16px 10px 10px;border-radius:18px;color:var(--ink);
  background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(1.6);backdrop-filter:blur(18px) saturate(1.6);border:1px solid var(--glass-line);box-shadow:var(--glass-shadow);
  animation:toast-in .5s var(--spring) both;animation-delay:calc(.3s + var(--i) * .15s)}
.toast .badge-ic{margin:0;width:38px;height:38px}
.toast span{display:flex;flex-direction:column;line-height:1.2}
.toast small{font-size:.72rem;color:var(--muted)}
.toast.bye{animation:toast-out .35s var(--ease) forwards}
@keyframes toast-in{from{opacity:0;transform:translateY(16px) scale(.9)}}
@keyframes toast-out{to{opacity:0;transform:translateX(30px)}}
@media (max-width:820px){.toasts{left:12px;right:12px;bottom:calc(var(--tab-h) + var(--safe-b) + 18px)}}
.lvup{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px;background:rgba(8,9,12,.45);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);animation:fade .3s var(--ease)}
.lvup.bye{animation:lvup-out .25s var(--ease) forwards}
.lvup-card{position:relative;width:min(360px,100%);display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:30px 24px 20px;border-radius:28px;
  background:var(--surface);box-shadow:0 30px 80px -20px rgba(0,0,0,.5);animation:pop-in .55s var(--spring)}
.lvup-card .confetti{position:absolute;inset:-60px -40px auto;height:340px;width:calc(100% + 80px);pointer-events:none}
.lvup-card small{margin-top:10px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:.75rem}
.lvup-card h2{font-size:1.7rem;letter-spacing:-.03em}
.lvup-card p{margin:2px 0 14px;color:var(--ink-2)}
.lvup-card .link{margin-top:8px}
@keyframes fade{from{opacity:0}}
@keyframes lvup-out{to{opacity:0}}
@keyframes pop-in{from{opacity:0;transform:scale(.8) translateY(20px)}}
body:has(.lvup:not(.bye)) .toasts{visibility:hidden}
.auth-lang{position:fixed;top:calc(14px + env(safe-area-inset-top,0px));right:16px;z-index:5}
.side-foot .who{margin-top:0}
.top-list li{min-width:0}.tl-rbx{white-space:nowrap}
/* webhook card on the API page */
.row-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:14px}
.row-actions form{margin:0}
.item span.ok{color:var(--green);font-weight:700}
.item span.danger{color:var(--red);font-weight:700}
.card .key code{overflow-wrap:anywhere}
.doc-link{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-top:18px}
.doc-link h2{margin:0 0 6px}
.doc-link p{margin:4px 0 0}
.doc-link code{overflow-wrap:anywhere}
/* stacked blocks on a page keep the same 16px rhythm as inside a grid */
.grid + .grid,.card + .grid,.grid + .card:not(.doc-link),.card.token + .grid{margin-top:16px}
.card > h2 + p.muted{margin-top:0}
/* marketplace integrations on the API page */
.integ{margin-top:16px}
.integ-row{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;background:var(--soft)}
.integ-ic{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--gold-soft);color:var(--gold)}
.integ-ic svg{width:20px;height:20px}
.integ-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.integ-txt b{font-size:.95rem}
.integ-txt span{font-size:.82rem;line-height:1.35}
.integ-row form{margin:0}
.integ-how{margin-top:10px}
.integ-how summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;list-style:none;font-size:.85rem;font-weight:700;color:var(--muted);padding:4px 2px}
.integ-how summary::-webkit-details-marker{display:none}
.integ-how summary::after{content:"";width:7px;height:7px;border:2px solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px);transition:transform .2s}
.integ-how[open] summary::after{transform:rotate(-135deg) translateY(-1px)}
.integ-how ol{counter-reset:s;list-style:none;margin:8px 0 10px;padding:0;display:grid;gap:10px}
.integ-how li{counter-increment:s;position:relative;display:block;padding:2px 0 0 36px;min-height:24px;font-size:.88rem;line-height:1.45;color:var(--ink-2)}
.integ-how li::before{content:counter(s);position:absolute;left:0;top:0;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--ink);font-size:.75rem;font-weight:800}
.integ-how code{font-size:.85em;background:var(--soft);padding:1px 6px;border-radius:6px}
.integ-how p{margin:0}
@media (max-width:520px){.integ-row{flex-wrap:wrap}.integ-row form{width:100%}.integ-row .act{width:100%;min-height:40px}}

/* Speed up a key that waits for a seller */
.btn.small{padding:4px 10px;font-size:.8rem;min-height:0;margin-left:8px;vertical-align:middle}
