:root{
  --bg:#070a05; --bg2:#0c1208;
  --card:rgba(20,28,14,.74); --card-solid:#121a0c; --card-2:rgba(32,44,22,.6);
  --line:rgba(170,230,110,.13); --line-2:rgba(170,230,110,.22);
  --fg:#f3faea; --muted:#9aab88; --subtle:#63725a;
  --g:#96e52a; --g2:#b4f24c; --g3:#6cbf14; --gfg:#0a1402;
  --glow:rgba(150,229,42,.35); --gsoft:rgba(150,229,42,.13);
  --danger:#f25c5c; --warn:#f5b74a;
  --r:22px; --r-sm:14px;
  --safe-b:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--fg);font-family:Manrope,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:1.4;min-height:100%}
body{overscroll-behavior:none}
button,input{font:inherit;color:inherit}
a{color:var(--g2);text-decoration:none}
.hidden{display:none!important}

/* фон */
.bg{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.bg-glow{position:absolute;width:520px;height:520px;left:50%;top:-220px;transform:translateX(-50%);background:radial-gradient(circle,rgba(150,229,42,.22),transparent 65%);filter:blur(10px)}
.bg-ring{position:absolute;border:1px solid rgba(180,242,76,.07);border-radius:50%}
.r1{width:900px;height:900px;left:-420px;top:-160px}
.r2{width:700px;height:700px;right:-460px;top:260px}

#app{position:relative;z-index:1;max-width:520px;margin:0 auto;padding:18px 16px calc(110px + var(--safe-b))}
.boot{min-height:70vh;display:grid;place-items:center}
.spinner{width:44px;height:44px;border-radius:50%;border:3px solid var(--gsoft);border-top-color:var(--g);animation:spin .9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes up{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.page>*{animation:up .28s ease both}

/* шапка */
.top{display:flex;align-items:center;gap:12px;margin:4px 0 18px}
.logo{width:48px;height:48px;border-radius:14px;background:linear-gradient(145deg,var(--g2),var(--g3));display:grid;place-items:center;box-shadow:0 6px 22px var(--glow);flex:none}
.logo svg{width:28px;height:28px;fill:var(--gfg)}
.logo-img{width:48px;height:48px;border-radius:50%;flex:none;box-shadow:0 0 0 2px rgba(150,229,42,.35),0 6px 22px var(--glow);background:#000}
.logo-img.xl{width:92px;height:92px;margin:0 auto 16px;display:block}
.top .who{flex:1;min-width:0}
.top .brand{font-weight:800;font-size:15px}
.top .user{color:var(--muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.icon-btn{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--card);border:1px solid var(--line);cursor:pointer}
.icon-btn svg{width:20px;height:20px;stroke:var(--fg);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
h1{font-size:30px;font-weight:800;margin:6px 0 16px;letter-spacing:-.02em}

/* карточки */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px;margin-bottom:14px;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);position:relative;overflow:hidden}
.card.glow{border-color:var(--line-2);box-shadow:0 0 0 1px rgba(180,242,76,.06),0 18px 50px -20px var(--glow)}
.card.dots::after{content:"";position:absolute;right:-10px;top:40px;width:55%;height:60%;background-image:radial-gradient(rgba(180,242,76,.22) 1.2px,transparent 1.3px);background-size:16px 16px;mask-image:linear-gradient(90deg,transparent,#000 60%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 60%);pointer-events:none;opacity:.7}
.label{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;font-size:13px;font-weight:600;background:var(--card-2);border:1px solid var(--line);color:var(--muted)}
.chip.ok{color:var(--g2);border-color:rgba(180,242,76,.35);background:var(--gsoft)}
.chip.bad{color:#ff9a9a;border-color:rgba(242,92,92,.3);background:rgba(242,92,92,.08)}
.badge-ico{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(160deg,rgba(150,229,42,.22),rgba(150,229,42,.05));border:1px solid var(--line-2);margin:18px 0 16px;box-shadow:inset 0 0 20px rgba(150,229,42,.1)}
.badge-ico svg{width:30px;height:30px;stroke:var(--g2);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.big{font-size:28px;font-weight:800;line-height:1.15;letter-spacing:-.02em;margin:0 0 6px}
.muted{color:var(--muted)}
.small{font-size:13px}
.ico-sm{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:var(--gsoft);border:1px solid var(--line-2);flex:none}
.ico-sm svg{width:22px;height:22px;stroke:var(--g2);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.value{font-size:30px;font-weight:800;letter-spacing:-.02em}
.bar{height:8px;border-radius:99px;background:rgba(255,255,255,.06);overflow:hidden;margin:12px 0 10px}
.bar>i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--g3),var(--g2));box-shadow:0 0 12px var(--glow)}
.kv{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.kv:last-child{border-bottom:0}
.kv span:first-child{color:var(--muted)}
.kv span:last-child{font-weight:700;text-align:right;word-break:break-all}
.link-box{display:flex;align-items:center;gap:8px;background:rgba(0,0,0,.35);border:1px solid var(--line);border-radius:var(--r-sm);padding:6px 6px 6px 14px;margin-top:10px}
.link-box code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,Menlo,monospace;font-size:13px;color:var(--muted)}

/* кнопки */
.btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;border:0;cursor:pointer;border-radius:18px;padding:17px 18px;font-weight:700;font-size:16px;background:linear-gradient(135deg,var(--g2),var(--g));color:var(--gfg);box-shadow:0 10px 30px -8px var(--glow);transition:transform .12s,filter .15s}
.btn:active{transform:scale(.98)}
.btn:disabled{filter:grayscale(.6) brightness(.7);cursor:default}
.btn.ghost{background:var(--card-2);color:var(--fg);border:1px solid var(--line);box-shadow:none}
.btn.danger{background:rgba(242,92,92,.12);color:#ff9a9a;border:1px solid rgba(242,92,92,.3);box-shadow:none}
.btn.sm{padding:10px 16px;font-size:14px;border-radius:14px;width:auto}
.btn svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.btns{display:grid;gap:10px;margin-top:16px}
.copy{width:42px;height:42px;border-radius:12px;border:1px solid var(--line);background:var(--card-2);display:grid;place-items:center;cursor:pointer;flex:none}
.copy svg{width:18px;height:18px;stroke:var(--fg);fill:none;stroke-width:2}

/* сегменты, шаги, варианты */
.seg{display:flex;padding:5px;background:var(--card);border:1px solid var(--line);border-radius:18px;margin-bottom:14px}
.seg button{flex:1;border:0;background:none;padding:12px 6px;border-radius:14px;font-weight:700;color:var(--muted);cursor:pointer}
.seg button.on{background:var(--gsoft);color:var(--g2);box-shadow:inset 0 0 0 1px rgba(180,242,76,.25)}
.steps{display:flex;align-items:flex-start;justify-content:space-between;margin:6px 6px 18px;position:relative}
.steps::before{content:"";position:absolute;left:24px;right:24px;top:21px;height:1px;background:var(--line-2)}
.step{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px;color:var(--muted);font-weight:600;z-index:1}
.step b{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--bg2);border:1px solid var(--line-2);font-size:15px}
.step.on{color:var(--fg)}
.step.on b{background:linear-gradient(135deg,var(--g2),var(--g));color:var(--gfg);border:0;box-shadow:0 0 18px var(--glow)}
.opt{display:flex;align-items:center;gap:12px;padding:16px;border-radius:18px;border:1px solid var(--line);background:rgba(0,0,0,.18);margin-bottom:10px;cursor:pointer;transition:border-color .15s,background .15s}
.opt.on{border-color:var(--g);background:rgba(150,229,42,.08);box-shadow:0 0 0 1px var(--g) inset,0 8px 30px -14px var(--glow)}
.opt .t{flex:1;min-width:0}
.opt .t b{display:block;font-size:16px}
.opt .t small{color:var(--muted);font-size:13px}
.opt .p{text-align:right;flex:none}
.opt .p b{font-size:19px;font-weight:800;white-space:nowrap}
.opt .p s{color:var(--subtle);font-size:13px;margin-right:6px}
.opt .p .off{display:inline-block;margin-top:4px;font-size:12px;font-weight:700;color:var(--g2);background:var(--gsoft);padding:2px 8px;border-radius:99px}
.radio{width:24px;height:24px;border-radius:50%;border:1.5px solid var(--line-2);flex:none;display:grid;place-items:center}
.opt.on .radio{background:var(--g);border-color:var(--g)}
.opt.on .radio::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--gfg)}
.grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.gw{padding:14px;border-radius:16px;border:1px solid var(--line);background:rgba(0,0,0,.2);cursor:pointer;min-height:84px}
.gw.on{border-color:var(--g);box-shadow:0 0 0 1px var(--g) inset}
.gw svg{width:22px;height:22px;stroke:var(--g2);fill:none;stroke-width:1.8;margin-bottom:8px}
.gw b{display:block}
.gw small{color:var(--muted);font-size:12px}
.info{display:flex;gap:12px;padding:14px 16px;border-radius:18px;border:1px solid var(--line-2);background:rgba(150,229,42,.06);margin-bottom:14px}
.info svg{width:22px;height:22px;stroke:var(--g2);fill:none;stroke-width:1.9;flex:none;margin-top:1px}
.total{display:flex;align-items:flex-end;justify-content:space-between;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.total b{font-size:32px;font-weight:800;letter-spacing:-.02em}

/* формы */
.field{margin-bottom:12px}
.field label{display:block;font-size:13px;color:var(--muted);margin:0 0 6px 4px}
.input{width:100%;padding:15px 16px;border-radius:16px;border:1px solid var(--line);background:rgba(0,0,0,.3);outline:none;font-size:16px}
.input:focus{border-color:var(--g);box-shadow:0 0 0 3px var(--gsoft)}
.err{color:#ff9a9a;font-size:13px;margin:8px 4px 0;min-height:1em}
.center{text-align:center}
.sep{display:flex;align-items:center;gap:10px;color:var(--subtle);font-size:13px;margin:16px 0}
.sep::before,.sep::after{content:"";flex:1;height:1px;background:var(--line)}

/* оплата */
.wait{display:flex;flex-direction:column;align-items:center;text-align:center;padding:30px 4px 10px}
.wait .ring{width:120px;height:120px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,rgba(150,229,42,.14),transparent 70%);border:1px solid var(--line-2);margin-bottom:24px}
.wait .ring .spinner{width:52px;height:52px}
.wait .amount{font-size:54px;font-weight:800;letter-spacing:-.03em;margin:22px 0 26px}
.qr{background:#fff;border-radius:18px;padding:14px;margin:0 auto 14px;width:max-content}
.qr img{display:block;width:220px;height:220px;image-rendering:pixelated}
.done-ico{width:96px;height:96px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--g2),var(--g));box-shadow:0 0 40px var(--glow);margin-bottom:20px}
.done-ico svg{width:48px;height:48px;stroke:var(--gfg);fill:none;stroke-width:3}

/* реф. шаги */
.how{list-style:none;padding:0;margin:14px 0 0;counter-reset:s}
.how li{position:relative;padding:8px 0 8px 46px;color:var(--muted);counter-increment:s}
.how li::before{content:counter(s);position:absolute;left:0;top:4px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--gsoft);color:var(--g2);font-weight:700;font-size:13px;border:1px solid var(--line-2)}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line);text-align:center}
.stats b{display:block;font-size:22px}
.stats small{color:var(--muted)}

/* устройства */
.dev{display:flex;gap:12px;align-items:flex-start}
.dev .ico-sm{margin-top:2px}
.dev .t{flex:1;min-width:0}
.dev .t b{display:block;font-size:17px}
.del{width:44px;height:44px;border-radius:13px;border:1px solid rgba(242,92,92,.3);background:rgba(242,92,92,.1);display:grid;place-items:center;cursor:pointer;flex:none}
.del svg{width:20px;height:20px;stroke:#ff8f8f;fill:none;stroke-width:2}
.empty{text-align:center;padding:26px 10px}
.empty .badge-ico{margin:0 auto 16px}

/* аккаунт */
.avatar{width:84px;height:84px;border-radius:50%;margin:4px auto 12px;display:grid;place-items:center;font-size:32px;font-weight:800;background:linear-gradient(145deg,var(--g2),var(--g3));color:var(--gfg);box-shadow:0 0 0 4px rgba(150,229,42,.15),0 0 30px var(--glow)}

/* нижняя навигация */
.nav{position:fixed;z-index:5;left:50%;transform:translateX(-50%);bottom:calc(10px + var(--safe-b));width:calc(100% - 20px);max-width:520px;display:flex;justify-content:space-around;padding:8px;border-radius:26px;background:rgba(13,19,9,.88);border:1px solid var(--line);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 10px 40px rgba(0,0,0,.5)}
.nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 2px;border-radius:18px;color:var(--muted);font-size:11.5px;font-weight:600;cursor:pointer}
.nav a svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav a.on{color:var(--g2);background:linear-gradient(180deg,rgba(150,229,42,.2),rgba(150,229,42,.06));box-shadow:inset 0 0 0 1px rgba(180,242,76,.25),0 0 22px -6px var(--glow)}

/* шторка */
.sheet-back{position:fixed;inset:0;z-index:20;background:rgba(0,0,0,.6);backdrop-filter:blur(3px);animation:fade .2s}
.sheet{position:fixed;z-index:21;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:560px;max-height:88vh;overflow:auto;background:#0d140a;border:1px solid var(--line);border-bottom:0;border-radius:28px 28px 0 0;padding:10px 18px calc(22px + var(--safe-b));animation:sheet .26s ease}
.sheet .grip{width:44px;height:5px;border-radius:9px;background:var(--line-2);margin:0 auto 12px}
.sheet h2{font-size:24px;margin:4px 0 14px;display:flex;justify-content:space-between;align-items:center}
@keyframes fade{from{opacity:0}}
@keyframes sheet{from{transform:translate(-50%,40px);opacity:0}}
.toast{position:fixed;z-index:40;left:50%;top:18px;transform:translate(-50%,-80px);background:#141f0d;border:1px solid var(--line-2);padding:12px 18px;border-radius:14px;font-weight:600;transition:transform .25s;max-width:90vw;text-align:center}
.toast.show{transform:translate(-50%,0)}

.noanim .page>*{animation:none}
.dur{padding:12px;min-width:0;overflow:hidden;border-radius:16px;border:1px solid var(--line);background:rgba(0,0,0,.2);cursor:pointer;transition:border-color .15s,background .15s}
.dur.on{border-color:var(--g);background:rgba(150,229,42,.08);box-shadow:0 0 0 1px var(--g) inset}
.dur b{font-size:14px;white-space:nowrap}
.dur .row{gap:6px;flex-wrap:nowrap}
.dur .off{flex:none;font-size:11px;font-weight:700;color:var(--g2);background:var(--gsoft);padding:2px 7px;border-radius:99px}
.dur-price{font-size:21px;font-weight:800;margin:8px 0 2px;white-space:nowrap}
.dur small{color:var(--muted);font-size:12px}
.dur small s{color:var(--subtle)}
.grid2+.btns{margin-top:16px}
