/* ─── Force dark ─────────────────────────────────────── */
:root { color-scheme: dark; }
html { background: #060608 !important; }

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
input, button, select, textarea { font-family: inherit; outline: none; border: none; background: none; }

/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --bg:   #060608;
  --bg1:  #0c0c11;
  --bg2:  #111118;
  --bg3:  #16161e;
  --bg4:  #1c1c26;

  --b1: rgba(255,255,255,.06);
  --b2: rgba(255,255,255,.11);
  --b3: rgba(255,255,255,.18);

  --tx1: #f2f2f8;
  --tx2: #a0a0b8;
  --tx3: #d7d7d7;
  --tx4: #2c2c40;

  --ac:   #CDFF00;
  --ac-d: rgba(205,255,0,.12);
  --ac-b: rgba(205,255,0,.28);
  --ac-g: rgba(205,255,0,.06);

  --ok:   #3de89e;
  --ok-d: rgba(61,232,158,.10);
  --ok-b: rgba(61,232,158,.24);

  --er:   #f05656;
  --er-d: rgba(240,86,86,.10);
  --er-b: rgba(240,86,86,.24);

  --wn:   #f0a030;
  --wn-d: rgba(240,160,48,.10);
  --wn-b: rgba(240,160,48,.24);

  --nb:     66px;
  --r:      10px;
  --r2:     14px;
  --r3:     18px;
  --ease:   cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --bounce: cubic-bezier(.68,-.55,.27,1.55);
}

/* ─── Base ───────────────────────────────────────────── */
html, body { height: 100%; background: var(--bg); overflow: hidden; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--tx1); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── App shell ──────────────────────────────────────── */
#app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
#screens { flex: 1; overflow: hidden; position: relative; }

/* ─── Screen transitions ─────────────────────────────── */
.screen {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column;
  padding-bottom: 100px;
  opacity: 0; transform: translateY(12px) scale(.99);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  will-change: opacity, transform;
}
.screen.active {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: all;
}
.screen.slide-out {
  opacity: 0; transform: translateY(-8px) scale(1.01);
}

/* ─── Navbar ─────────────────────────────────────────── */
#navbar {
  height: auto;
  background: rgba(10,10,15,.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; flex-shrink: 0;
  padding: 6px 6px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  position: relative; z-index: 10;
  gap: 4px;
}

.nb {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  cursor: pointer; color: var(--tx3);
  font-size: 10px; font-weight: 500; letter-spacing: .02em;
  transition: all .25s var(--ease); padding: 10px 0;
  position: relative; border-radius: 12px;
  min-height: 48px;
}
.nb i {
  font-size: 20px;
  transition: transform .25s var(--spring), color .22s var(--ease);
}
.nb span { font-family: 'DM Sans', sans-serif; transition: opacity .22s; }
.nb.active {
  color: var(--ac);
  background: var(--ac-d);
}
.nb.active i { transform: scale(1.1); }
.nb.active::after { display: none; }
@keyframes nbIn {
  from { width: 0; opacity: 0; }
  to   { width: 20px; opacity: 1; }
}
.nb:active { transform: scale(.88); }

/* ─── Header ─────────────────────────────────────────── */
.hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 14px; flex-shrink: 0;
}
.hd-brand { display: flex; align-items: center; gap: 9px; }
.hd-logo-wrap {
  width: 42px; height: 42px;
  background: radial-gradient(circle at 40% 35%, rgba(205,255,0,.08), rgba(10,10,10,.9));
  border: 1px solid rgba(205,255,0,.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(205,255,0,.06), inset 0 0 8px rgba(205,255,0,.03);
  overflow: hidden;
}
.hd-logo-text { display: flex; align-items: baseline; gap: 0; }
.hd-name-arc {
  font-family: 'Syne', sans-serif;
  font-size: 17px; font-weight: 800;
  letter-spacing: .02em; color: var(--tx1);
}
.hd-name-vpn {
  font-family: 'Syne', sans-serif;
  font-size: 17px; font-weight: 800;
  letter-spacing: .02em; color: var(--ac);
}
.hd-name {
  font-family: 'Syne', sans-serif;
  font-size: 17px; font-weight: 800;
  letter-spacing: .02em; color: var(--tx1);
}
.hd-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px; color: var(--tx3);
  letter-spacing: .14em; text-transform: uppercase;
}

/* ─── Body ───────────────────────────────────────────── */
.body { padding: 4px 16px 0; display: flex; flex-direction: column; gap: 10px; }

/* ─── Section label ──────────────────────────────────── */
.slabel {
  font-family: 'DM Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--tx3); padding: 0 2px;
}

/* ─── Card ───────────────────────────────────────────── */
.card {
  background: var(--bg1); border: 1px solid var(--b1);
  border-radius: var(--r2); overflow: hidden;
  transition: border-color .2s var(--ease);
}
.card-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
}
.card-row + .card-row { border-top: 1px solid var(--b1); }
.card-row-l { display: flex; align-items: center; gap: 12px; }

/* ─── Ibox ───────────────────────────────────────────── */
.ibox {
  width: 36px; height: 36px;
  background: var(--bg2); border: 1px solid var(--b1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s var(--ease);
}
.ibox i { font-size: 17px; color: var(--tx2); }
.ibox.ac { background: var(--ac-d); border-color: var(--ac-b); }
.ibox.ac i { color: var(--ac); }

/* ─── User top ───────────────────────────────────────── */
.user-top {
  background: var(--bg1); border: 1px solid var(--b1);
  border-radius: var(--r2) var(--r2) 0 0; border-bottom: none;
  padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.user-top-name {
  font-family: 'Syne', sans-serif;
  font-size: 17px; font-weight: 600; color: var(--tx1);
}
.user-top-label { font-size: 12px; color: var(--tx3); margin-top: 2px; }

/* ─── Stats grid ─────────────────────────────────────── */
.sgrid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--b1);
  border: 1px solid var(--b1); border-top: none;
}
.scell { background: var(--bg1); padding: 14px 16px; }
.sk {
  font-family: 'DM Mono', monospace;
  font-size: 9px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--tx3);
  margin-bottom: 7px; display: flex; align-items: center; gap: 5px;
}
.sk i { font-size: 11px; }
.sv { font-family: 'DM Mono', monospace; font-size: 18px; color: var(--tx1); letter-spacing: -.02em; }
.sv.ac { color: var(--ac); }

/* ─── Progress ───────────────────────────────────────── */
.prog-wrap {
  background: var(--bg1); border: 1px solid var(--b1);
  border-top: none; padding: 12px 16px;
}
.prog-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.prog-key { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--tx3); }
.prog-pct { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--ac); }
.prog-track { height: 3px; background: var(--bg4); border-radius: 2px; overflow: hidden; }
.prog-fill {
  height: 100%; background: var(--ac); border-radius: 2px;
  transition: width 1.4s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.prog-fill::after {
  content: ''; position: absolute; right: 0; top: -1px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ac); box-shadow: 0 0 6px var(--ac);
}
.prog-fill.danger { background: var(--er); }
.prog-fill.danger::after { background: var(--er); box-shadow: 0 0 6px var(--er); }
.prog-fill.warn   { background: var(--wn); }
.prog-fill.warn::after   { background: var(--wn); box-shadow: 0 0 6px var(--wn); }

/* ─── URL block ──────────────────────────────────────── */
.url-wrap {
  background: var(--bg1); border: 1px solid var(--b1);
  border-top: none; border-radius: 0 0 var(--r2) var(--r2);
  padding: 14px 16px;
}
.url-row { display: flex; gap: 7px; margin-top: 8px; }
.url-field {
  flex: 1; background: var(--bg); border: 1px solid var(--b1);
  border-radius: 7px; padding: 9px 12px;
  font-family: 'DM Mono', monospace; font-size: 11px; color: var(--tx2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 8px; cursor: pointer; font-weight: 500;
  transition: all .18s var(--ease); white-space: nowrap; font-size: 13px;
}
.btn:active { transform: scale(.96); }

.btn-primary {
  width: 100%; padding: 15px;
  background: var(--ac); color: #060608;
  border-radius: var(--r); font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: .05em;
  box-shadow: 0 0 28px rgba(184,245,58,.2), 0 2px 12px rgba(184,245,58,.12);
  transition: box-shadow .2s, transform .15s var(--spring), opacity .15s;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left .5s var(--ease);
}
.btn-primary:active::after { left: 150%; }
.btn-primary:active { transform: scale(.97); opacity: .92; }
.btn-primary:disabled { opacity: .3; cursor: not-allowed; box-shadow: none; }

.btn-secondary {
  width: 100%; padding: 13px;
  background: var(--bg2); border: 1px solid var(--b2);
  color: var(--tx2); border-radius: var(--r);
  font-size: 13px; font-weight: 500;
  transition: background .18s, border-color .18s, color .18s, transform .15s var(--spring);
}
.btn-secondary:active { background: var(--bg3); color: var(--tx1); transform: scale(.99); }

.btn-ghost {
  padding: 8px 13px;
  background: var(--bg2); border: 1px solid var(--b1);
  color: var(--tx2); border-radius: 7px;
  font-family: 'DM Mono', monospace; font-size: 11px;
  transition: all .18s var(--ease);
}
.btn-ghost i { font-size: 13px; }
.btn-ghost:active { border-color: var(--b2); color: var(--tx1); transform: scale(.96); }
.btn-ghost.ok { color: var(--ok); background: var(--ok-d); border-color: var(--ok-b); }

.btn-icon {
  width: 36px; height: 36px;
  background: var(--bg2); border: 1px solid var(--b1);
  border-radius: 8px; color: var(--tx2); font-size: 17px;
  transition: all .18s var(--ease);
}
.btn-icon:active { background: var(--bg3); color: var(--tx1); transform: scale(.92); }

.btn-danger { background: var(--er-d); border: 1px solid var(--er-b); color: var(--er); }

/* ─── App row (connect) ──────────────────────────────── */
.app-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg1); border: 1px solid var(--b1);
  border-radius: var(--r2); padding: 14px 16px;
  text-decoration: none; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s, transform .15s var(--spring);
}
.app-row:active { background: var(--bg2); border-color: var(--b2); transform: scale(.99); }
.app-row.primary {
  border-color: var(--ac-b);
  background: linear-gradient(135deg, var(--bg1) 0%, rgba(184,245,58,.05) 100%);
}
.app-row-l { display: flex; align-items: center; gap: 12px; }
.app-row-name { font-size: 14px; font-weight: 500; color: var(--tx1); }
.app-row-desc { font-size: 12px; color: var(--tx2); margin-top: 1px; }
.app-row-arrow i { font-size: 16px; color: var(--tx3); transition: transform .2s var(--ease); }
.app-row:active .app-row-arrow i { color: var(--ac); transform: translateX(3px); }
.app-row.primary .app-row-arrow i { color: var(--ac); }

/* ─── Plans ──────────────────────────────────────────── */
.plan {
  background: var(--bg1); border: 1px solid var(--b1);
  border-radius: var(--r2); padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; position: relative; overflow: hidden;
  transition: background .2s var(--ease), border-color .2s, transform .15s var(--spring);
}
.plan::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(184,245,58,.08) 0%, transparent 65%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.plan.sel { border-color: var(--ac-b); }
.plan.sel::before { opacity: 1; }
.plan:active { transform: scale(.99); }
.plan-badge { display: none; }
.plan-l { flex: 1; }
.plan-name { font-size: 14px; font-weight: 600; color: var(--tx1); }
.plan-desc { font-size: 12px; color: var(--tx2); margin-top: 2px; }
.plan-r { text-align: right; margin-right: 10px; }
.plan-price {
  font-family: 'DM Mono', monospace;
  font-size: 18px; color: var(--ac); letter-spacing: -.02em;
}
.plan-price-old {
  font-family: 'DM Mono', monospace;
  font-size: 12px; color: var(--tx3); text-decoration: line-through;
}
.plan-per { font-size: 11px; color: var(--tx2); margin-top: 1px; }

/* ─── Promo ──────────────────────────────────────────── */
.promo-block {
  background: var(--bg1); border: 1px solid var(--b1);
  border-radius: var(--r2); padding: 14px 16px;
}
.promo-row { display: flex; gap: 7px; margin-top: 10px; }
.promo-inp {
  flex: 1; background: var(--bg); border: 1px solid var(--b1);
  border-radius: 8px; padding: 10px 12px;
  font-family: 'DM Mono', monospace; font-size: 13px; color: var(--tx1);
  text-transform: uppercase; letter-spacing: .08em;
  transition: border-color .2s, box-shadow .2s;
}
.promo-inp::placeholder { color: var(--tx3); text-transform: none; letter-spacing: 0; font-size: 12px; }
.promo-inp:focus { border-color: var(--b2); box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
.promo-inp.ok { border-color: var(--ok-b); color: var(--ok); box-shadow: 0 0 0 3px var(--ok-d); }
.promo-inp.er { border-color: var(--er-b); color: var(--er); box-shadow: 0 0 0 3px var(--er-d); }
.promo-msg {
  display: flex; align-items: center; gap: 5px;
  font-family: 'DM Mono', monospace; font-size: 11px;
  margin-top: 8px; letter-spacing: .04em;
  animation: fadeUp .2s var(--ease) both;
}
.promo-msg i { font-size: 13px; }
.promo-msg.ok { color: var(--ok); }
.promo-msg.er { color: var(--er); }
.promo-msg.hidden { display: none; }

/* ─── Profile ────────────────────────────────────────── */
.prof-hero {
  background: var(--bg1); border: 1px solid var(--b1);
  border-radius: var(--r2); padding: 20px 16px;
  display: flex; align-items: center; gap: 16px;
  position: relative; overflow: hidden;
}
.prof-hero::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, var(--ac-d), transparent 70%);
  pointer-events: none;
}
.prof-av {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ac-d); border: 1.5px solid var(--ac-b);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700;
  color: var(--ac); flex-shrink: 0; overflow: hidden;
}
.prof-name { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 600; color: var(--tx1); }
.prof-handle { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--tx3); margin-top: 3px; }

.ref-box {
  background: var(--bg); border: 1px solid var(--b1);
  border-radius: 8px; padding: 10px 12px;
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--tx2); word-break: break-all; line-height: 1.6;
}

/* ─── Pills ──────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px;
}
.pill i { font-size: 11px; }
.p-ok { background: var(--ok-d); color: var(--ok); border: 1px solid var(--ok-b); }
.p-er { background: var(--er-d); color: var(--er); border: 1px solid var(--er-b); }
.p-wn { background: var(--wn-d); color: var(--wn); border: 1px solid var(--wn-b); }
.p-ac { background: var(--ac-d); color: var(--ac); border: 1px solid var(--ac-b); }

/* ─── Admin ──────────────────────────────────────────── */
.atabs { display: flex; gap: 6px; }
.atab {
  flex: 1; padding: 9px 6px;
  background: var(--bg1); border: 1px solid var(--b1);
  border-radius: 8px; cursor: pointer;
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: .1em; color: var(--tx3); text-transform: uppercase;
  transition: all .18s var(--ease); text-align: center;
}
.atab.active { background: var(--ac-d); border-color: var(--ac-b); color: var(--ac); }
.astat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.astat {
  background: var(--bg1); border: 1px solid var(--b1);
  border-radius: var(--r); padding: 14px;
}
.astat-k { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--tx3); margin-bottom: 6px; }
.astat-v { font-family: 'DM Mono', monospace; font-size: 22px; color: var(--tx1); }
.astat-v.ac { color: var(--ac); }
.u-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; }
.u-row + .u-row { border-top: 1px solid var(--b1); }
.u-name { font-size: 13px; font-weight: 500; color: var(--tx1); font-family: 'DM Mono', monospace; }
.u-meta { font-size: 11px; color: var(--tx3); margin-top: 2px; }
.u-acts { display: flex; gap: 5px; align-items: center; }
.u-btn {
  background: none; border: 1px solid var(--b1); border-radius: 5px;
  padding: 3px 9px; font-family: 'DM Mono', monospace;
  font-size: 9px; color: var(--tx3); cursor: pointer;
  letter-spacing: .06em; text-transform: uppercase;
  transition: all .15s var(--ease);
}
.u-btn:active { border-color: var(--b2); color: var(--tx1); }
.u-btn.del:active { border-color: var(--er-b); color: var(--er); }
.promo-row-item { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; }
.promo-row-item + .promo-row-item { border-top: 1px solid var(--b1); }
.promo-code { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--ac); }
.promo-meta { font-size: 11px; color: var(--tx3); margin-top: 2px; }

/* ─── Forms ──────────────────────────────────────────── */
.f-group { margin-bottom: 12px; }
.f-label {
  display: block; font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--tx3); margin-bottom: 6px;
}
.f-input {
  width: 100%; background: var(--bg); border: 1px solid var(--b1);
  border-radius: 8px; padding: 11px 13px;
  font-family: 'DM Mono', monospace; font-size: 13px; color: var(--tx1);
  transition: border-color .2s, box-shadow .2s;
}
.f-input::placeholder { color: var(--tx3); }
.f-input:focus { border-color: var(--b2); box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
.f-select {
  width: 100%; background: var(--bg); border: 1px solid var(--b1);
  border-radius: 8px; padding: 11px 13px;
  font-family: 'DM Mono', monospace; font-size: 13px; color: var(--tx1);
  appearance: none;
}

/* ─── Loading ────────────────────────────────────────── */
.loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 64px 20px; gap: 12px;
}
.spin {
  width: 24px; height: 24px;
  border: 2px solid var(--b2); border-top-color: var(--ac);
  border-radius: 50%;
  animation: spin .75s linear infinite;
  box-shadow: 0 0 8px rgba(184,245,58,.15);
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-txt {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--tx3); letter-spacing: .1em;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* ─── Empty state ────────────────────────────────────── */
.empty {
  display: flex; flex-direction: column;
  align-items: center; padding: 48px 20px;
  text-align: center; gap: 10px;
}
.empty i { font-size: 44px; color: var(--tx4); }
.empty-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 600; color: var(--tx2); }
.empty-desc { font-size: 13px; color: var(--tx3); line-height: 1.6; max-width: 240px; }

/* ─── Modal / Sheet ──────────────────────────────────── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.overlay.open { opacity: 1; pointer-events: all; }
.sheet {
  background: var(--bg1); border: 1px solid var(--b1);
  border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(env(safe-area-inset-bottom) + 32px);
  width: 100%;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.32,1,.64,1);
  max-height: 90vh; overflow-y: auto;
}
.overlay.open .sheet { transform: translateY(0); }
.sheet-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--b2); margin: 0 auto 20px;
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.sheet-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--tx1);
}
.sheet-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--b1);
  color: var(--tx2); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.sheet-close:active { background: var(--bg3); color: var(--tx1); transform: scale(.92); }

/* ─── Pay preview ────────────────────────────────────── */
.pay-preview {
  background: var(--bg2); border: 1px solid var(--b1);
  border-radius: var(--r); padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.pay-preview-name { font-size: 14px; font-weight: 500; color: var(--tx1); }
.pay-preview-price { font-family: 'DM Mono', monospace; font-size: 18px; color: var(--ac); }

/* ─── Toast ──────────────────────────────────────────── */
#toast {
  position: fixed; top: 20px; left: 20px; right: 20px;
  transform: translateY(-100px);
  background: var(--bg2); border: 1px solid var(--b2);
  border-radius: 14px; padding: 12px 16px;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--tx1);
  z-index: 999;
  transition: transform .3s var(--bounce);
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px var(--b1);
  text-align: left; line-height: 1.5;
  word-break: break-word;
}
#toast i { font-size: 18px; color: var(--ok); flex-shrink: 0; margin-top: 1px; }
#toast.show { transform: translateY(0); }
#toast.error { border-color: var(--er-b); background: rgba(240,86,86,.08); }
#toast.error i { color: var(--er); }

/* ─── Spacing ────────────────────────────────────────── */
.gap-sm { height: 4px; }
.gap    { height: 8px; }
.gap-lg { height: 14px; }

/* ─── Entry animations ───────────────────────────────── */
.screen.active .body > * {
  animation: fadeUp .35s var(--ease) both;
}
.screen.active .body > *:nth-child(1) { animation-delay: .03s; }
.screen.active .body > *:nth-child(2) { animation-delay: .07s; }
.screen.active .body > *:nth-child(3) { animation-delay: .11s; }
.screen.active .body > *:nth-child(4) { animation-delay: .15s; }
.screen.active .body > *:nth-child(5) { animation-delay: .19s; }
.screen.active .body > *:nth-child(6) { animation-delay: .23s; }
.screen.active .body > *:nth-child(7) { animation-delay: .27s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Shimmer loading ────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

/* ─── Ripple on tap ──────────────────────────────────── */
.ripple { position: relative; overflow: hidden; }
.ripple::after {
  content: '';
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.08);
  width: 0; height: 0; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  transition: width .4s var(--ease), height .4s var(--ease), opacity .4s;
  opacity: 0;
}
.ripple:active::after { width: 200px; height: 200px; opacity: 1; }

/* ─── Download cards (connect) ────────────────────── */
.dl-card {
  background: var(--bg1);
  border: 1px solid var(--b1);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.dl-card:active { background: var(--bg2); border-color: var(--b2); }
.dl-icon {
  width: 34px; height: 34px;
  background: var(--bg3);
  border: 1px solid var(--b2);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dl-icon i { font-size: 17px; color: var(--tx1); }
.dl-name { font-size: 13px; font-weight: 600; color: var(--tx1); }
.dl-desc { font-size: 11px; color: var(--tx3); margin-top: 1px; }

/* ─── Trial activation animation ────────────────────── */
.trial-anim {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; font-weight: 600;
}
.trial-anim.success {
  animation: trialPop .4s cubic-bezier(.34,1.56,.64,1);
}
.trial-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(61,232,158,.2);
  border-top-color: var(--ok);
  animation: trialSpin .6s linear infinite;
}
@keyframes trialSpin {
  to { transform: rotate(360deg); }
}
@keyframes trialPop {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

/* Payment icon animations */
@keyframes payPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.08) rotate(2deg); }
  50% { transform: scale(1) rotate(0deg); }
  75% { transform: scale(1.05) rotate(-2deg); }
}
.pay-icon-sbp { animation: payPulse 3s ease-in-out infinite; display:flex;align-items:center;justify-content:center; }
.pay-icon-sbp img { border-radius: 6px; }
