/* Kvak VPN Mini App — "night pond" theme. Mobile-first (360–430px). --base follows Telegram bg_color when it is dark. */
:root {
  --base: #071a17;
  --base2: #0b2420;
  --card: rgba(255, 255, 255, .055);
  --card2: rgba(255, 255, 255, .09);
  --line: rgba(170, 255, 210, .10);
  --text: #eafff4;
  --muted: #8fb5a6;
  --dim: #5d8576;
  --mint: #5ef0a8;
  --lime: #c6f25e;
  --grad: linear-gradient(135deg, #6af2b0 0%, #c6f25e 100%);
  --on-acc: #05231a;
  --warn: #ffcf6b;
  --bad: #ff8080;
  --r: 20px;
  --r-sm: 14px;
  --tabbar-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  font-synthesis: none;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; color: var(--text); background: var(--base);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased; }
body { padding-bottom: calc(var(--tabbar-h) + 28px + var(--safe-b));
  background:
    radial-gradient(90% 45% at 85% -5%, rgba(198, 242, 94, .13), transparent 60%),
    radial-gradient(110% 55% at 0% 0%, rgba(94, 240, 168, .16), transparent 62%),
    linear-gradient(180deg, var(--base2) 0%, var(--base) 55%);
  background-attachment: fixed; }
body.has-sticky { padding-bottom: calc(var(--tabbar-h) + 104px + var(--safe-b)); }
button { font: inherit; color: inherit; }
a { color: var(--mint); text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px 10px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7, 26, 23, .85), rgba(7, 26, 23, .0)); }
.brand { display: flex; align-items: center; gap: 8px; font-size: 18px; letter-spacing: -.2px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo { width: 34px; height: 34px; display: grid; place-items: center; font-size: 20px; border-radius: 12px;
  background: rgba(94, 240, 168, .12); border: 1px solid var(--line); }
.logo-img { width: 38px; height: 38px; padding: 0; object-fit: cover; border-radius: 50%; }
.trial .trial-logo { position: absolute; right: 10px; top: 10px; width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; box-shadow: 0 0 24px rgba(94, 240, 168, .35); }
.trial h4 { padding-right: 72px; }
.bal-pill { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 12px 7px 10px;
  font-weight: 650; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.bal-pill:empty { display: none; }
.bal-pill .plus { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: var(--on-acc); font-size: 14px; line-height: 1; font-weight: 800; }

main { padding: 2px 14px 12px; max-width: 520px; margin: 0 auto; }
.screen { animation: in-fade .28s cubic-bezier(.2, .8, .2, 1); }
.screen.from-right { animation-name: in-right; }
.screen.from-left { animation-name: in-left; }
@keyframes in-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes in-right { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes in-left { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }

h2.title { font-size: 24px; letter-spacing: -.4px; margin: 6px 4px 4px; }
.sub-title { color: var(--muted); font-size: 14px; margin: 0 4px 14px; }
h3.sec { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650;
  margin: 22px 6px 10px; }

/* ---------- cards ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; margin: 12px 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card.glow { background: linear-gradient(160deg, rgba(94, 240, 168, .14), rgba(255, 255, 255, .04) 55%);
  box-shadow: 0 10px 40px -18px rgba(94, 240, 168, .45); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; }

/* ---------- buttons ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0;
  border-radius: 16px; padding: 15px 16px; margin-top: 12px; font-size: 16px; font-weight: 700; cursor: pointer;
  background: var(--grad); color: var(--on-acc); transition: transform .12s, opacity .12s, filter .12s;
  box-shadow: 0 10px 28px -12px rgba(150, 242, 120, .7); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; }
.btn.ghost { background: var(--card2); color: var(--text); box-shadow: none; border: 1px solid var(--line); font-weight: 600; }
.btn.sm { padding: 11px 12px; font-size: 14px; margin-top: 0; border-radius: 13px; }
.btn.cta { font-size: 18px; padding: 18px; margin-top: 14px; border-radius: 20px; }

/* ---------- status card + ring ---------- */
.status-head { display: flex; justify-content: space-between; align-items: center; }
.badge { font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; }
.badge.ok { background: rgba(94, 240, 168, .16); color: var(--mint); }
.badge.trial { background: rgba(198, 242, 94, .16); color: var(--lime); }
.badge.off { background: rgba(255, 255, 255, .08); color: var(--muted); }
.badge.bad { background: rgba(255, 128, 128, .14); color: var(--bad); }
.plan-name { font-weight: 700; font-size: 16px; }
.ring-wrap { position: relative; width: 196px; height: 196px; margin: 14px auto 6px; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { stroke: rgba(255, 255, 255, .07); }
.ring-fg { stroke: url(#ringGrad); transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 0 8px rgba(94, 240, 168, .45)); }
.ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-num { font-size: 52px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.ring-lbl { color: var(--muted); font-size: 14px; margin-top: 4px; }
.until { text-align: center; color: var(--muted); font-size: 14px; }
.until b { color: var(--text); font-weight: 600; }
.usage { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.bar { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--grad); }
.bar.warn i { background: linear-gradient(90deg, #ffcf6b, #ff8080); }
.pill-inf { font-size: 12px; font-weight: 700; color: var(--lime); }

/* trial card */
.trial { overflow: hidden; background: linear-gradient(135deg, rgba(198, 242, 94, .2), rgba(94, 240, 168, .1));
  border-color: rgba(198, 242, 94, .3); }
.trial .big-emoji { position: absolute; right: -10px; top: -18px; font-size: 64px; opacity: .14; transform: rotate(14deg);
  pointer-events: none; }
.trial h4 { margin: 0; font-size: 19px; padding-right: 36px; position: relative; }
.trial .muted { position: relative; }

/* quick actions + stats */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.qa { border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 14px 6px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.qa:active { transform: scale(.96); }
.qa .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(94, 240, 168, .12); color: var(--mint); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.stat { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 12px; }
.stat .v { font-size: 18px; font-weight: 750; margin-top: 2px; white-space: nowrap; }
.stat .k { font-size: 12px; color: var(--muted); }

/* ---------- tariffs ---------- */
.early { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, rgba(198, 242, 94, .18), rgba(94, 240, 168, .06));
  border-color: rgba(198, 242, 94, .28); }
.early .fire { font-size: 26px; }
.plan-h { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 6px 8px; }
.plan-h b { font-size: 17px; }
.plan-h span { color: var(--muted); font-size: 13px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); border-radius: 18px; padding: 14px; margin: 8px 0;
  transition: border-color .15s, background .15s, transform .12s; }
.opt:active { transform: scale(.985); }
.opt.on { border-color: var(--mint); background: rgba(94, 240, 168, .09); }
.radio { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--dim); display: grid; place-items: center; }
.opt.on .radio { border-color: var(--mint); }
.opt.on .radio:after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); }
.opt .mid { flex: 1; min-width: 0; }
.opt .t { font-weight: 700; font-size: 16px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.opt .d { color: var(--muted); font-size: 13px; margin-top: 2px; }
.opt .p { text-align: right; white-space: nowrap; }
.opt .p b { font-size: 17px; display: block; }
.opt .p s { color: var(--dim); font-size: 13px; }
.tag { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 3px 7px; border-radius: 7px; text-transform: uppercase; }
.tag.best { background: var(--grad); color: var(--on-acc); }
.tag.disc { background: rgba(255, 207, 107, .16); color: var(--warn); }

.sticky { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + 18px + var(--safe-b)); z-index: 6;
  padding: 0 14px; max-width: 520px; margin: 0 auto; animation: in-fade .25s; }
.sticky .inner { border-radius: 22px; padding: 10px; background: rgba(9, 32, 28, .88); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .6); }
.sticky .btn { margin-top: 0; }
.sticky .note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 7px; }

/* ---------- connect ---------- */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app { border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 14px; cursor: pointer;
  text-align: left; display: flex; flex-direction: column; gap: 10px; }
.app:active { transform: scale(.97); }
.app .ai { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.app .ai.h { background: linear-gradient(135deg, #6af2b0, #2bb38a); color: #032018; }
.app .ai.i { background: linear-gradient(135deg, #c6f25e, #7fcf3a); color: #1a2a03; }
.app b { font-size: 16px; }
.app small { color: var(--muted); font-size: 12px; }
.app .rec { font-size: 10px; font-weight: 800; color: var(--lime); letter-spacing: .05em; text-transform: uppercase; }
.list { padding: 4px 0; }
.li { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border: 0; background: none;
  text-align: left; cursor: pointer; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li .ic { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: rgba(94, 240, 168, .1); color: var(--mint); }
.li .mid { flex: 1; min-width: 0; }
.li .mid b { font-weight: 600; display: block; }
.li .mid small { color: var(--muted); font-size: 12.5px; }
.li .chev { color: var(--dim); }
.li.soon { cursor: default; opacity: .65; }
.soon-tag { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, .08);
  color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.plat { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pl { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 12px 2px 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; }
.pl .ic { color: var(--mint); }
.pl.cur { border-color: rgba(94, 240, 168, .55); background: rgba(94, 240, 168, .08); }
.linkbox { display: flex; gap: 8px; align-items: center; }
.linkbox code { flex: 1; min-width: 0; font-family: inherit; font-size: 13px; line-height: 1.4;
  color: var(--muted); background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { flex: none; width: 46px; height: 46px; border-radius: 13px; border: 0; background: var(--grad); color: var(--on-acc);
  display: grid; place-items: center; cursor: pointer; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 18px 46px; counter-increment: s; }
.steps li:before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; background: rgba(94, 240, 168, .14); color: var(--mint); }
.steps li:not(:last-child):after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 2px;
  background: var(--line); }
.steps b { display: block; margin-bottom: 2px; }
.steps .small { color: var(--muted); }
.steps .btn { margin-top: 10px; }
.qr { background: #fff; border-radius: 22px; padding: 16px; width: 252px; margin: 6px auto 0; box-shadow: 0 18px 50px -18px rgba(94, 240, 168, .5); }
.qr svg { display: block; width: 100%; height: auto; }

/* ---------- profile ---------- */
.me { display: flex; align-items: center; gap: 14px; }
.ava { width: 62px; height: 62px; flex: none; border-radius: 22px; display: grid; place-items: center; font-size: 26px;
  font-weight: 800; background: var(--grad); color: var(--on-acc); }
.me .n { font-size: 20px; font-weight: 750; letter-spacing: -.3px; }
.me .u { color: var(--muted); font-size: 13.5px; }
.me .id { display: inline-flex; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--dim); cursor: pointer; }
.bal-card .big { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.field { display: flex; gap: 8px; }
.inp { flex: 1; min-width: 0; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25);
  color: var(--text); font-size: 16px; outline: none; }
.inp:focus { border-color: rgba(94, 240, 168, .55); }
.inp.code { text-transform: uppercase; letter-spacing: .08em; }
.inp.code::placeholder { text-transform: none; letter-spacing: 0; color: var(--dim); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 16px; background: rgba(255, 255, 255, .14); transition: .2s; }
.switch span:before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; border-radius: 50%;
  background: #fff; transition: .22s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.switch input:checked + span { background: var(--mint); }
.switch input:checked + span:before { transform: translateX(20px); }
.ref-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.ref-stats div { text-align: center; background: rgba(0, 0, 0, .18); border-radius: 13px; padding: 10px 4px; }
.ref-stats b { display: block; font-size: 18px; }
.ref-stats span { font-size: 11.5px; color: var(--muted); }
.footer { text-align: center; color: var(--dim); font-size: 12px; margin: 22px 0 6px; }

/* top-up */
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 0; font-size: 15px;
  font-weight: 650; cursor: pointer; }
.chip.on { border-color: var(--mint); color: var(--mint); background: rgba(94, 240, 168, .08); }
.method { display: flex; align-items: center; gap: 12px; }

/* history */
.hist { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hist:last-child { border-bottom: 0; }
.hist .ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--card2); }
.hist .mid { flex: 1; min-width: 0; }
.hist .mid b { font-weight: 600; display: block; }
.hist .mid small { color: var(--muted); font-size: 12.5px; display: block; }
.hist .amt { font-weight: 750; white-space: nowrap; }
.plus-amt { color: var(--mint); }

/* faq */
details.qa-item { border-bottom: 1px solid var(--line); padding: 2px 0; }
details.qa-item:last-child { border-bottom: 0; }
details.qa-item summary { list-style: none; cursor: pointer; padding: 14px 28px 14px 2px; font-weight: 600; position: relative; }
details.qa-item summary::-webkit-details-marker { display: none; }
details.qa-item summary:after { content: "+"; position: absolute; right: 4px; top: 11px; font-size: 22px; color: var(--mint);
  transition: transform .2s; }
details.qa-item[open] summary:after { transform: rotate(45deg); }
details.qa-item p { margin: 0 2px 14px; color: var(--muted); font-size: 14px; }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; z-index: 10; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); height: var(--tabbar-h);
  max-width: 496px; margin: 0 auto; display: flex; padding: 6px; border-radius: 24px;
  background: rgba(10, 34, 30, .82); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); }
.tab-pill { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / var(--n, 4)); border-radius: 18px; background: rgba(94, 240, 168, .14);
  border: 1px solid rgba(94, 240, 168, .25); transition: transform .32s cubic-bezier(.3, 1.2, .4, 1), width .2s; }
.tabbar button { position: relative; z-index: 1; flex: 1; border: 0; background: none; cursor: pointer; color: var(--dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 650;
  transition: color .2s; }
.tabbar button.on { color: var(--mint); }
.tabbar button i { display: grid; place-items: center; height: 24px; }
.tabbar button.on i { transform: translateY(-1px); }

svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- misc ---------- */
.loading { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(94, 240, 168, .15); border-top-color: var(--mint);
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { border-radius: var(--r); background: linear-gradient(90deg, var(--card) 0%, var(--card2) 50%, var(--card) 100%);
  background-size: 200% 100%; animation: sh 1.2s infinite; height: 120px; margin: 12px 0; }
@keyframes sh { to { background-position: -200% 0; } }
.toast { position: fixed; z-index: 20; left: 50%; bottom: calc(var(--tabbar-h) + 30px + var(--safe-b)); transform: translate(-50%, 10px);
  background: rgba(234, 255, 244, .96); color: #062019; font-weight: 600; padding: 11px 16px; border-radius: 14px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: 86vw; text-align: center;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); }
.empty .e { font-size: 40px; margin-bottom: 6px; }

/* ---- devices / reissue / quota (v2.1) ---- */
.dev-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dev-row:last-child { border-bottom: 0; }
.dev-row .ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--card2); }
.dev-row .mid { flex: 1; min-width: 0; }
.dev-row .mid b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-row .mid small { color: var(--muted); font-size: 12.5px; display: block; }
.dev-row.over { opacity: .6; }
.btn.xs { width: auto; padding: 8px 12px; font-size: 13px; margin-top: 0; border-radius: 11px; }
.btn.danger { background: rgba(255, 128, 128, .14); color: var(--bad); box-shadow: none; border: 1px solid rgba(255, 128, 128, .3); }
.slots { display: flex; gap: 6px; margin-top: 10px; }
.slots i { flex: 1; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.slots i.on { background: var(--grad); }
.quota-over { border-color: rgba(255, 128, 128, .35); background: linear-gradient(160deg, rgba(255, 128, 128, .12), rgba(255, 255, 255, .03) 60%); }
.dev-mini { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); cursor: pointer; }

/* ---- connection wizard: bottom sheet (v2.4) ---- */
.plat { grid-template-columns: repeat(4, 1fr); }
.wiz-open { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; margin: 0 0 10px;
  background: linear-gradient(135deg, rgba(94, 240, 168, .16), rgba(198, 242, 94, .07)); border-color: rgba(94, 240, 168, .3); }
.wiz-open:active { transform: scale(.985); }
.wiz-open .ic { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: var(--on-acc); }
.wiz-open .mid { flex: 1; min-width: 0; }
.wiz-open .mid b { display: block; font-size: 16px; }
.wiz-open .mid small { color: var(--muted); font-size: 12.5px; }
.wiz-open .chev { color: var(--mint); }
body.sheet-open { overflow: hidden; }
.sheet-bg { position: fixed; inset: 0; z-index: 30; background: rgba(2, 10, 8, .62); opacity: 0; pointer-events: none;
  transition: opacity .28s; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet-bg.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 31; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; max-height: 92vh;
  display: flex; flex-direction: column; border-radius: 26px 26px 0 0; border: 1px solid var(--line); border-bottom: 0;
  background:
    radial-gradient(120% 40% at 50% 0%, rgba(94, 240, 168, .12), transparent 65%),
    linear-gradient(180deg, var(--base2), var(--base));
  box-shadow: 0 -20px 60px -10px rgba(0, 0, 0, .7); transform: translateY(105%);
  transition: transform .36s cubic-bezier(.2, .9, .25, 1); visibility: hidden; }
.sheet.open { transform: none; visibility: visible; }
.sh-grab { padding: 9px 0 4px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sh-grab i { width: 42px; height: 5px; border-radius: 3px; background: rgba(234, 255, 244, .22); }
.sh-head { padding: 2px 18px 0; touch-action: none; }
.sh-top { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.sh-back { border: 0; background: none; padding: 6px 4px; color: var(--mint); font-size: 15px; font-weight: 650; cursor: pointer; }
.sh-kick { font-size: 13px; color: var(--muted); font-weight: 650; letter-spacing: .02em; }
.sh-prog { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.sh-x { border: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--card2); color: var(--muted); cursor: pointer; font-size: 14px; }
.sh-dots { display: flex; gap: 6px; margin: 6px 0 2px; }
.sh-dots i { flex: 1; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .09); transition: background .25s; }
.sh-dots i.done { background: rgba(94, 240, 168, .45); }
.sh-dots i.on { background: var(--grad); }
.sh-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 8px; -webkit-overflow-scrolling: touch; }
.sh-foot { padding: 8px 18px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); background: rgba(7, 26, 23, .6); }
.sh-foot .btn { margin-top: 0; }
.btn.big { font-size: 17px; padding: 17px; border-radius: 18px; }
.sh-h { font-size: 22px; letter-spacing: -.3px; margin: 10px 2px 4px; }
.sh-sub { color: var(--muted); font-size: 14px; margin: 0 2px 12px; }
.opt.wp { padding: 12px 14px; margin: 7px 0; }
.opt.wp .pic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: rgba(94, 240, 168, .1); color: var(--mint); }
.opt.wp .d:empty { display: none; }
.appc { border: 1.5px solid var(--line); background: var(--card); border-radius: 20px; padding: 14px; margin: 10px 0; cursor: pointer;
  transition: border-color .15s, background .15s; outline: none; }
.appc.on { border-color: var(--mint); background: rgba(94, 240, 168, .08); }
.appc.on .radio { border-color: var(--mint); }
.appc.on .radio:after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); }
.appc-h { display: flex; align-items: center; gap: 12px; }
.appc .ai { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.appc .ai.h { background: linear-gradient(135deg, #6af2b0, #2bb38a); color: #032018; }
.appc .ai.i { background: linear-gradient(135deg, #c6f25e, #7fcf3a); color: #1a2a03; }
.appc .mid { flex: 1; min-width: 0; }
.appc .mid b { font-size: 17px; margin-right: 6px; }
.appc .mid small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.appc .dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.appc .dl .btn:only-child, .appc .dl .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
.btn.out { margin: 0; padding: 10px 10px; font-size: 13.5px; font-weight: 650; border-radius: 13px; box-shadow: none;
  background: transparent; color: var(--mint); border: 1.5px solid rgba(94, 240, 168, .45); }
.btn.out svg.i { opacity: .85; }
.wway-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wway-h b { font-size: 16px; }
.wway .btn { margin-top: 12px; }
ol.mini { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
ol.mini li { margin: 3px 0; padding-left: 2px; }
ol.mini li::marker { color: var(--mint); font-weight: 700; }
.wbig { text-align: center; padding: 22px 18px; }
.wbig .small { color: var(--muted); font-size: 14px; }
.wbig-ic { width: 76px; height: 76px; border-radius: 24px; margin: 0 auto 14px; display: grid; place-items: center;
  background: rgba(94, 240, 168, .12); color: var(--mint); }
.wbig-e { font-size: 58px; margin-bottom: 8px; filter: drop-shadow(0 8px 20px rgba(94, 240, 168, .35)); }

/* ---- v2.5: Wednesday promo, extra devices sheet, admin tab ---- */
.wed { display: flex; gap: 12px; align-items: center; cursor: pointer; border-color: rgba(198, 242, 94, .45);
  background: linear-gradient(120deg, rgba(198, 242, 94, .26), rgba(94, 240, 168, .1) 70%); }
.wed b { font-size: 16.5px; }
.wed .small { color: var(--text); opacity: .85; margin-top: 2px; }
.wed-frog { font-size: 36px; line-height: 1; transform: rotate(-8deg); filter: drop-shadow(0 6px 14px rgba(198, 242, 94, .35)); }
.wed-tease { margin-top: 12px; padding: 9px 12px; border-radius: 12px; font-size: 13px; color: var(--muted);
  background: rgba(255, 255, 255, .04); border: 1px dashed var(--line); text-align: center; }
.wed-tease.on { color: var(--lime); border-color: rgba(198, 242, 94, .45); background: rgba(198, 242, 94, .08); }
.ref-h { font-size: 17px; }
.wiz-open.warn { border-color: rgba(255, 207, 107, .5); background: linear-gradient(135deg, rgba(255, 207, 107, .16), rgba(255, 255, 255, .03)); }
.slots i.extra { background: linear-gradient(90deg, #c6f25e, #ffe27a); }
.slots i.on.extra { opacity: 1; }
.stepper-card { padding: 18px 16px 14px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-btn { width: 56px; height: 56px; border-radius: 18px; border: 1px solid var(--line); background: var(--card2); color: var(--mint);
  font-size: 30px; font-weight: 500; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.st-btn:active { transform: scale(.94); }
.st-btn:disabled { opacity: .3; }
.st-val { text-align: center; }
.st-val b { display: block; font-size: 44px; font-weight: 800; line-height: 1.05; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-val span { font-size: 13px; color: var(--muted); }
.st-now { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }
.kv { padding: 4px 16px; }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv span small { display: block; font-size: 11.5px; color: var(--dim); }
.kv b { white-space: nowrap; }
.sh-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.card.adv { margin-top: 12px; border-style: dashed; }
.stats.adm { grid-template-columns: 1fr 1fr; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg .chip { font-size: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lbl { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.lbl .inp { width: 100%; padding: 11px 10px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; }
.promo-res { margin-top: 14px; padding: 14px; border-radius: 16px; border: 1px solid rgba(94, 240, 168, .35); background: rgba(94, 240, 168, .07); text-align: center; }
.pcode { font-size: 24px; font-weight: 800; color: var(--mint); margin: 6px 0 2px; word-break: break-all; }
.hist .amt.dim { color: var(--dim); }.card > .inp { width: 100%; display: block; }
