/* ALL VPN partner cabinet — ЛК style: black, blue→violet gradients, glass cards (allvpn-account2.css). */
:root {
  color-scheme: dark;
  --bg: #000; --card: #0b1018; --card2: #121a26; --line: #ffffff17;
  --text: #fff; --muted: #ffffff8c; --red: #2f80ff; --red2: #6d5cff; --sky: #8fc2ff; --green: #3ddc84;
  --r: 20px;
  font: 16px/1.45 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.slab { font-weight: 800; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.wrap { width: min(100% - 28px, 1080px); margin-inline: auto; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(0,0,0,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand img { width: 44px; height: auto; }
.brand i { font-style: normal; color: var(--sky); font-weight: 600; }
.me { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-width: 0; }
.me span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 38vw; }
.me-ava { width: 30px; height: 30px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #2f80ff, #6d5cff); color: var(--text); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

main { padding: 16px 0 40px; }
.state { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.state h2 { font-size: 24px; margin-bottom: 8px; }
.state p { color: var(--muted); max-width: 340px; margin-inline: auto; }
.state .btn { margin-top: 22px; width: auto; padding: 0 28px; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: #2f80ff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.layout { display: grid; gap: 14px; }
.col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.desk-only { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(140deg, #2f80ff 0%, #4a63ff 45%, #6d5cff 100%); border-radius: var(--r); padding: 20px 20px 18px; color: #fff; box-shadow: 0 24px 60px -30px #1f6dffcc, inset 0 1px #ffffff40; }
.hero::after { content: ''; position: absolute; right: -60px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, #ffffff2e, transparent 65%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hero-label { font-size: 15px; opacity: .9; }
.chip { background: rgba(0,0,0,.25); border-radius: 99px; padding: 4px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.hero-sum { font-size: 54px; line-height: 1.05; margin: 6px 0 16px; word-break: break-word; }
.hero-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.22); }
.hero-foot div { min-width: 0; }
.hero-foot > div > span { display: block; font-size: 12px; opacity: .8; }
.hero-foot b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn { display: flex; width: 100%; align-items: center; justify-content: center; min-height: 52px; border-radius: 14px; border: 0; font-weight: 700; font-size: 17px; text-decoration: none; transition: transform .08s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-white { background: #fff; color: #1a2a6c; }
.btn-red { background: linear-gradient(90deg, #2f80ff, #6d5cff); color: #fff; box-shadow: 0 10px 30px -12px #2f80ffaa; }

/* cards */
.card { background: linear-gradient(155deg, #121923, #060a0f 65%); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; box-shadow: inset 0 1px #ffffff10, 0 18px 55px -35px #000; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card h2 { font-size: 18px; font-weight: 700; }

.linkbox { display: block; width: 100%; text-align: left; background: #02050a; border: 1px dashed #2f80ff88; border-radius: 14px; padding: 14px; font-size: 15px; word-break: break-all; line-height: 1.35; }
.lb-pre { color: var(--muted); }
.lb-code { color: var(--sky); font-weight: 700; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; border: 0; background: #2f80ff14; box-shadow: inset 0 0 0 1px #2f80ff33; font-size: 13px; font-weight: 600; }
.act:hover { background: #2f80ff22; }
.act i svg, i[data-ic] svg { width: 22px; height: 22px; display: block; }
.act i { color: var(--sky); }

.seg { display: flex; background: #02050a; box-shadow: inset 0 0 0 1px #ffffff12; border-radius: 12px; padding: 4px; gap: 2px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 4px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.seg button.on { background: linear-gradient(90deg, #2f80ff33, #6d5cff26); color: var(--text); box-shadow: inset 0 0 0 1px #2f80ff66; }

.funnel { margin-top: 16px; display: grid; gap: 12px; }
.fn-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.fn-top b { font-size: 20px; }
.fn-top .pct { color: var(--muted); font-size: 13px; margin-left: 6px; font-family: inherit; font-weight: 600; }
.fn-bar { height: 10px; border-radius: 99px; background: #02050a; margin-top: 6px; overflow: hidden; }
.fn-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2f80ff, #8fc2ff); transition: width .4s; }
.fn-bar i.l2 { background: linear-gradient(90deg, #4a63ff, #a99cff); } .fn-bar i.l3 { background: linear-gradient(90deg, #22b866, #3ddc84); }
.earn-row { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.earn-row div { display: grid; }
.earn-row b { font-size: 28px; }
.earn-row .right { text-align: right; }

.chart { display: flex; align-items: flex-end; gap: 5px; height: 150px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border: 0; background: none; padding: 0; min-width: 0; }
.bar i { width: 100%; border-radius: 6px 6px 2px 2px; background: #2f80ff26; min-height: 3px; transition: background .15s; }
.bar.has i { background: linear-gradient(180deg, #8fc2ff, #2f80ff 70%, #1f4fa8); }
.bar.sel i { background: #fff; }
.bar b { font-size: 10px; color: var(--muted); font-weight: 500; margin-top: 6px; }

.list { margin-top: 8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #2f80ff1a; color: var(--sky); font-weight: 700; }
.ico.plus { background: rgba(52,196,106,.14); color: var(--green); }
.ico svg { width: 20px; height: 20px; }
.item-main { flex: 1; min-width: 0; }
.item-main div:first-child { font-weight: 600; font-size: 15px; }
.item-main div:last-child { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-r { text-align: right; white-space: nowrap; }
.item-r .sum { font-weight: 700; }
.item-r .sum.plus { color: var(--green); }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--card2); color: var(--muted); margin-top: 2px; }
.pill.ok { color: var(--green); } .pill.no { color: #ff6b6f; } .pill.wait { color: #f5b942; }
.cancel { display: block; margin: 4px 0 0 auto; background: none; border: 0; padding: 0; color: var(--muted); font-size: 12px; text-decoration: underline; }
.empty { padding: 22px 8px 10px; text-align: center; color: var(--muted); font-size: 14px; }

.how h2 { margin-bottom: 14px; }
.step { display: flex; gap: 12px; padding: 8px 0; }
.step b.n { width: 28px; height: 28px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #2f80ff, #6d5cff); color: #fff; display: grid; place-items: center; font-size: 14px; }
.step p { font-size: 15px; }
.step p span { display: block; color: var(--muted); font-size: 13px; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 4px 0 8px; }

/* sheets */
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-in { width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: linear-gradient(170deg, #121923, #070b11); border: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
.grab { width: 40px; height: 5px; border-radius: 99px; background: #3a3a40; margin: 4px auto 2px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h3 { font-size: 20px; }
.x { border: 0; background: var(--card2); width: 32px; height: 32px; border-radius: 50%; color: var(--muted); }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.method { border: 1.5px solid var(--line); background: #02050a; border-radius: 14px; padding: 12px 6px; display: grid; justify-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.method.on { border-color: #5da0ff; background: #2f80ff1f; }
.method svg { width: 26px; height: 26px; }
.fl { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.fl input, .amount, .prefix { width: 100%; min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: #02050a; padding: 0 14px; font-size: 16px; color: var(--text); }
.fl input:focus, .amount:focus-within, .prefix:focus-within { outline: none; border-color: #4a4a52; }
.amount, .prefix { display: flex; align-items: center; gap: 6px; }
.prefix { gap: 0; }
.amount input, .prefix input { border: 0; padding: 0; min-height: 46px; background: none; flex: 1; min-width: 0; }
.amount input:focus, .prefix input:focus { outline: none; }
.amount .rub { color: var(--muted); }
.all { border: 0; background: var(--card2); border-radius: 9px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.prefix span { color: var(--muted); white-space: nowrap; font-size: 14px; }
.err { color: #ff6b6f; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #fff; color: #111; font-weight: 600; padding: 10px 18px; border-radius: 99px; z-index: 30; font-size: 15px; }
.toast[hidden] { display: none; }

@media (min-width: 900px) {
  main { padding-top: 24px; }
  .layout { grid-template-columns: 400px 1fr; gap: 18px; align-items: start; }
  .col { gap: 18px; }
  .col:first-child { position: sticky; top: 82px; }
  .desk-only { display: block; }
  .mob-only { display: none; }
  .sheet { align-items: center; }
  .sheet-in { border-radius: 22px; }
  .grab { display: none; }
  .hero-sum { font-size: 60px; }
}
@media (max-width: 380px) {
  .hero-sum { font-size: 44px; }
  .seg button { font-size: 13px; }
}
.chart { position: relative; }
.bar:hover i, .bar.sel i { background: #fff !important; box-shadow: 0 0 14px #8fc2ff; }
.tip { position: absolute; z-index: 2; pointer-events: none; background: #fff; color: #111; border-radius: 12px; padding: 7px 11px; white-space: nowrap; display: grid; gap: 1px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.tip b { font-size: 17px; }
.tip span { font-size: 12px; color: #555; }

.hero-sum { white-space: nowrap; overflow: hidden; }
