/* SHAME VPN cabinet. Same tokens as shamevpn.ru. No inline styles anywhere (strict CSP). */
:root {
  --black: #000; --white: #fff;
  --g-0a: #0a0a0a; --g-11: #111; --g-16: #161617; --g-1d: #1d1d1f; --g-2c: #2c2c2e;
  --g-48: #48484a; --g-6e: #6e6e73; --g-a1: #a1a1a6; --g-e5: #e5e5e5; --g-f5: #f5f5f7;
  --green: #30d158; --orange: #ff9f0a; --red: #ff453a;
  --font: "Inter", -apple-system, "SF Pro Text", system-ui, sans-serif;
  --font-d: "Inter Tight", "Inter", -apple-system, "SF Pro Display", system-ui, sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r-xl: 28px; --r-lg: 20px; --r-md: 14px;
  --max: 1080px; --gutter: 20px; --header-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; background: var(--black); color: var(--white);
  font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  display: flex; flex-direction: column; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
::selection { background: rgba(255, 255, 255, .22); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 8px; }

/* ambient: dot grid + glow, like the brand art */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.ambient::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .13) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 85% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 50% at 85% 0%, #000 10%, transparent 70%);
}
.ambient::after {
  content: ""; position: absolute; width: 900px; height: 900px; right: -340px; top: -460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .07), transparent 62%);
}

/* ----------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.top__in { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--font-d); letter-spacing: -.01em; }
.brand svg { width: 20px; height: 20px; fill: currentColor; transition: transform .8s var(--ease); }
.brand:hover svg { transform: rotate(72deg); }
.brand span { color: var(--g-a1); font-weight: 600; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 980px; font-size: 14px; color: var(--g-a1);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); background: var(--g-1d); }
.top__end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .top__end { margin-left: 8px; }
.linkbtn { background: none; border: 0; padding: 8px 12px; border-radius: 980px; color: var(--g-a1); font-size: 14px; cursor: pointer; }
.linkbtn:hover { color: var(--white); background: var(--g-1d); }
@media (max-width: 760px) {
  .top__in { gap: 12px; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); margin: 0; padding: 10px var(--gutter);
    overflow-x: auto; scrollbar-width: none; background: rgba(0, 0, 0, .85);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, .06);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .nav + .top__end { margin-left: auto; }
  .has-nav main { padding-top: 104px; }
}

/* ------------------------------------------------------------------ layout */
main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 96px; }
.page-head { margin: 8px 0 36px; }
.eyebrow { font: 500 12px/1 var(--font-m); letter-spacing: .12em; text-transform: uppercase; color: var(--g-6e); }
.eyebrow b { color: var(--g-a1); font-weight: 500; }
.title { margin: 14px 0 0; font: 700 clamp(34px, 5.4vw, 56px)/1.02 var(--font-d); letter-spacing: -.035em; }
.title .muted { color: var(--g-6e); }
.lead { margin: 14px 0 0; max-width: 620px; font-size: 17px; line-height: 1.55; color: var(--g-a1); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.span-12, .span-7, .span-5, .span-6, .span-4 { grid-column: span 12; }
@media (min-width: 900px) {
  .span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-4 { grid-column: span 4; }
}

/* ------------------------------------------------------------------- cards */
.card {
  position: relative; background: linear-gradient(180deg, var(--g-11), var(--g-0a));
  border: 1px solid var(--g-1d); border-radius: var(--r-xl); padding: 28px;
  transition: border-color .3s var(--ease);
}
@media (min-width: 768px) { .card { padding: 34px; } }
.card:hover { border-color: var(--g-2c); }
.card__title { margin: 14px 0 8px; font: 600 24px/1.15 var(--font-d); letter-spacing: -.02em; }
.card__text { margin: 0; color: var(--g-a1); font-size: 15px; line-height: 1.6; }
.card__foot { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* hero status */
.hero { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
@media (min-width: 768px) { .hero { padding: 44px; } }
.hero__state { margin: 16px 0 8px; font: 700 clamp(40px, 6vw, 64px)/1 var(--font-d); letter-spacing: -.04em; }
.hero__sub { margin: 0; color: var(--g-a1); font-size: 17px; }
.hero__sub b { color: var(--white); font-weight: 500; }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--g-1d); stroke-width: 8; }
.ring__bar { fill: none; stroke: var(--white); stroke-width: 8; stroke-linecap: round; animation: ring-in 1.4s var(--ease) both; }
.ring--warn .ring__bar { stroke: var(--orange); }
@keyframes ring-in { from { stroke-dashoffset: 330; } }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__num { font: 700 34px/1 var(--font-d); letter-spacing: -.03em; }
.ring__unit { margin-top: 4px; font: 500 11px/1 var(--font-m); letter-spacing: .1em; text-transform: uppercase; color: var(--g-6e); }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 980px; background: var(--g-1d); font-size: 13px; color: var(--g-e5); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--g-6e); }
.chip--ok::before { background: var(--green); box-shadow: 0 0 0 4px rgba(48, 209, 88, .18); }
.chip--warn::before { background: var(--orange); }
.chip--off::before { background: var(--red); }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px;
  border-radius: 980px; border: 1px solid transparent; background: var(--white); color: var(--black);
  font: 600 15px/1 var(--font); letter-spacing: -.01em; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, border-color .2s, opacity .2s;
}
.btn:hover { background: var(--g-e5); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--g-2c); }
.btn--ghost:hover { background: var(--g-1d); border-color: var(--g-48); }
.btn--block { width: 100%; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------- forms */
.auth { flex: 1; display: grid; place-items: center; padding: 56px var(--gutter) 96px; }
.auth__card { width: 100%; max-width: 440px; }
.auth__mark { width: 52px; height: 52px; fill: var(--white); margin-bottom: 28px; animation: mark-in 1.2s var(--ease) both; }
@keyframes mark-in { from { transform: rotate(-72deg) scale(.6); opacity: 0; } }
.auth__title { margin: 0; font: 700 40px/1.05 var(--font-d); letter-spacing: -.035em; }
.auth__lead { margin: 12px 0 32px; color: var(--g-a1); font-size: 16px; line-height: 1.55; }
.auth__lead b { color: var(--white); font-weight: 500; }
.auth__alt { margin-top: 24px; text-align: center; color: var(--g-6e); font-size: 14px; }
.auth__alt a, .auth__alt button { color: var(--white); }
.auth__alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.stack { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--g-a1); }
.field__label a { color: var(--g-a1); }
.field__label a:hover { color: var(--white); }
.input-wrap { position: relative; }
.input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-md);
  background: var(--g-0a); border: 1px solid var(--g-2c); color: var(--white); font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--g-48); }
.input:hover { border-color: var(--g-48); }
.input:focus { outline: none; border-color: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); background: var(--black); }
.input--pass { padding-right: 52px; }
.input--code { height: 72px; text-align: center; font: 600 32px/1 var(--font-m); letter-spacing: .5em; padding-left: .5em; }
.reveal {
  position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; color: var(--g-6e); cursor: pointer; display: grid; place-items: center;
}
.reveal:hover { color: var(--white); background: var(--g-1d); }
.reveal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.reveal .eye-off { display: none; }
.reveal[aria-pressed="true"] .eye-on { display: none; }
.reveal[aria-pressed="true"] .eye-off { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--g-a1); line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--white); }
.check a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 2px; }
.meter i { height: 4px; border-radius: 4px; background: var(--g-1d); transition: background .3s; }
.meter[data-level="1"] i:nth-child(-n+1) { background: var(--red); }
.meter[data-level="2"] i:nth-child(-n+2) { background: var(--orange); }
.meter[data-level="3"] i:nth-child(-n+3) { background: var(--g-e5); }
.meter[data-level="4"] i { background: var(--green); }
.hint { font-size: 12px; color: var(--g-6e); min-height: 16px; }

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.alert--error { background: rgba(255, 69, 58, .1); border: 1px solid rgba(255, 69, 58, .28); color: #ff8a80; }
.alert--ok { background: rgba(48, 209, 88, .08); border: 1px solid rgba(48, 209, 88, .24); color: #7ee2a0; }
.alert--info { background: var(--g-11); border: 1px solid var(--g-1d); color: var(--g-e5); }
.toast { animation: toast-in .6s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* -------------------------------------------------------------- dashboard */
.linkbox {
  display: flex; align-items: center; gap: 8px; margin-top: 20px; padding: 6px 6px 6px 16px;
  border-radius: var(--r-md); background: var(--black); border: 1px solid var(--g-1d);
}
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px/1 var(--font-m); color: var(--g-e5); }
.qr { margin-top: 24px; display: flex; gap: 20px; align-items: center; }
.qr__img { width: 116px; height: 116px; padding: 12px; border-radius: 18px; background: var(--g-0a); border: 1px solid var(--g-1d); flex: none; }
.qr__img img { width: 100%; height: 100%; }
.qr p { margin: 0; font-size: 14px; color: var(--g-a1); line-height: 1.55; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--g-a1); line-height: 1.5; }
.steps li::before {
  counter-increment: s; content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--g-1d); color: var(--white); font: 600 12px/1 var(--font-m);
}
.steps b { color: var(--white); font-weight: 500; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.store { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--g-2c); font-size: 13px; color: var(--g-e5); transition: background .2s, border-color .2s; }
.store:hover { background: var(--g-1d); border-color: var(--g-48); }

.list { list-style: none; margin: 18px 0 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--g-1d); font-size: 15px; }
.list li:first-child { border-top: 0; }
.list__main { min-width: 0; }
.list__title { color: var(--white); }
.list li:has(.list__link) { position: relative; }
.list__link { display: block; text-decoration: none; transition: opacity .2s var(--ease); }
.list__link::after { content: ""; position: absolute; inset: 0; }
.list li:has(.list__link):hover .list__link { opacity: .72; }
.list__link:focus-visible { outline: none; }
.list__link:focus-visible::after { outline: 2px solid var(--white); outline-offset: 2px; border-radius: 12px; }
.card--list > .list { margin-top: 0; }
.card--list > .list li:first-child { padding-top: 4px; }
.card--list > .list li:last-child { padding-bottom: 4px; }
.list__meta { margin-top: 3px; font-size: 13px; color: var(--g-6e); }
.list__end { text-align: right; flex: none; }
.amount { font: 600 15px/1 var(--font-d); }
.status { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--g-6e); }
.status--ok { color: var(--green); } .status--warn { color: var(--orange); } .status--off { color: var(--g-6e); }
.empty { padding: 28px 0 6px; color: var(--g-6e); font-size: 15px; }

/* ----------------------------------------------------------------- tariffs */
.tariffs { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tariffs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tariffs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; } }
.tariff { display: flex; flex-direction: column; padding: 28px 24px 24px; }
.tariff--best { border-color: var(--g-48); background: linear-gradient(180deg, #1a1a1c, var(--g-0a)); }
.tariff__badge { position: absolute; top: -11px; left: 24px; padding: 5px 10px; border-radius: 980px; background: var(--white); color: var(--black); font: 600 11px/1 var(--font-m); letter-spacing: .06em; text-transform: uppercase; }
.tariff__name { font: 600 18px/1.2 var(--font-d); letter-spacing: -.01em; }
.tariff__price { margin: 22px 0 4px; font: 700 44px/1 var(--font-d); letter-spacing: -.04em; }
.tariff__per { font-size: 14px; color: var(--g-6e); }
.tariff__feats { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--g-a1); }
.tariff__feats li { display: flex; gap: 10px; }
.tariff__feats li::before { content: "✓"; color: var(--white); font-weight: 600; }
.tariff form { margin-top: auto; }
.note { margin-top: 28px; display: flex; gap: 10px; align-items: center; color: var(--g-6e); font-size: 13px; }
.note svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }

/* ------------------------------------------------------------------- order */
.state { text-align: center; max-width: 520px; margin: 40px auto 0; }
.state__icon { width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--g-2c); }
.state__icon svg { width: 40px; height: 40px; fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.state__icon--wait { border-color: transparent; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .55)); animation: spin 1.1s linear infinite; position: relative; }
.state__icon--wait::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--black); }
.state__icon--ok { background: var(--white); border-color: var(--white); animation: pop .7s var(--ease) both; }
.state__icon--ok svg { stroke: var(--black); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.state .title { font-size: clamp(32px, 5vw, 44px); }
.state .card__foot { justify-content: center; }

/* ---------------------------------------------------------------- sessions */
.session { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.badge { padding: 4px 9px; border-radius: 980px; background: var(--g-1d); font: 500 11px/1 var(--font-m); letter-spacing: .06em; text-transform: uppercase; color: var(--g-a1); }
.badge--ok { background: rgba(48, 209, 88, .12); color: var(--green); }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--g-1d); font-size: 15px; }
.kv:first-of-type { border-top: 0; }
.kv span { color: var(--g-a1); }
.assure { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--g-1d); display: grid; gap: 12px; }
.assure li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--g-6e); }
.assure svg { width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: var(--g-a1); stroke-width: 1.6; stroke-linejoin: round; flex: none; }

/* ------------------------------------------------------------------ prose */
.prose { max-width: 720px; color: var(--g-a1); font-size: 16px; line-height: 1.7; }
.prose h2 { margin: 40px 0 12px; color: var(--white); font: 600 22px/1.25 var(--font-d); letter-spacing: -.015em; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--g-1d); }
.foot__in { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; color: var(--g-6e); }
.foot__links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a:hover { color: var(--white); }

/* --------------------------------------------------------------- reveal-in */
.rise { animation: rise .9s var(--ease) both; }
.rise-2 { animation-delay: .08s; } .rise-3 { animation-delay: .16s; } .rise-4 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
