/* ============================================================
   FastBarishVPN — design system
   Dark, electric blue + cyan, glow, white typography
   ============================================================ */

:root {
  --bg-0: #04070F;
  --bg-1: #070D1A;
  --bg-2: #0A1424;
  --bg-3: #101C33;
  --line: rgba(64, 140, 255, 0.16);
  --line-bright: rgba(0, 212, 255, 0.35);
  --blue: #2E7CFF;
  --blue-deep: #0B3FBF;
  --cyan: #00D4FF;
  --text: #F2F6FF;
  --muted: #96A7C6;
  --dim: #5F7092;
  --ok: #2EE6A8;
  --warn: #FFB84D;
  --bad: #FF5C7A;
  --r: 16px;
  --r-sm: 10px;
  --glow: 0 0 26px rgba(46, 124, 255, 0.38);
  --glow-cyan: 0 0 26px rgba(0, 212, 255, 0.30);
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-1);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-image:
    radial-gradient(1100px 520px at 78% -12%, rgba(46, 124, 255, 0.16), transparent 62%),
    radial-gradient(800px 420px at 8% 4%, rgba(0, 212, 255, 0.07), transparent 58%);
  background-repeat: no-repeat;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 13, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 26px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; filter: drop-shadow(0 0 10px rgba(46,124,255,.55)); }
.brand .brand-name span { color: var(--cyan); }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: .92rem; font-weight: 500;
  padding: 8px 13px; border-radius: 9px; text-decoration: none;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--text); background: rgba(46, 124, 255, 0.10); text-decoration: none; }
.nav-cta { margin-left: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 12px 22px;
  font-weight: 600; font-size: .95rem; font-family: var(--font);
  cursor: pointer; border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .18s ease, background .18s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, #0090FF 55%, var(--cyan) 130%);
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(0, 190, 255, 0.5); }

.btn-ghost {
  color: var(--text); background: rgba(46, 124, 255, 0.07);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--line-bright); background: rgba(46, 124, 255, 0.13); }

.btn-danger {
  color: #ffd9e1; background: rgba(255, 92, 122, 0.10);
  border-color: rgba(255, 92, 122, 0.32);
}
.btn-danger:hover { background: rgba(255, 92, 122, 0.18); }

.btn-lg { padding: 15px 30px; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cyan);
  padding: 5px 14px; border-radius: 999px;
  background: rgba(0, 212, 255, 0.08); border: 1px solid rgba(0, 212, 255, 0.25);
  margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.12rem; }
.section-head p { color: var(--muted); margin-top: 12px; }

.grad-text {
  background: linear-gradient(92deg, #6FB2FF 0%, var(--cyan) 60%, #7CF7FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- hero ---------- */
.hero { padding: 88px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.02em; }
.hero .sub { color: var(--muted); font-size: 1.08rem; margin: 18px 0 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; color: var(--dim); font-size: .84rem; }

.hero-logo-wrap { position: relative; display: grid; place-items: center; }
.hero-logo-wrap::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,124,255,.34) 0%, rgba(0,212,255,.10) 45%, transparent 70%);
  animation: pulse 4.5s ease-in-out infinite;
}
.hero-logo-wrap img {
  width: 250px; height: auto; position: relative; z-index: 1;
  filter: drop-shadow(0 0 34px rgba(46, 124, 255, 0.65));
  border-radius: 28px;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .85 } 50% { transform: scale(1.07); opacity: 1 } }

.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.badge {
  font-size: .8rem; color: var(--muted); font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(16, 28, 51, .6);
}

/* ---------- animated background FX (ported from the old site) ---------- */
.hero .container { position: relative; z-index: 1; }
.hero-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* faint blue grid, like bg-grid-pattern on the old site */
.fx-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46, 124, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 124, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 40%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 85% at 50% 40%, #000 35%, transparent 78%);
}

/* two big blurred glow orbs, slowly drifting */
.fx-orb { position: absolute; border-radius: 50%; will-change: transform; }
.fx-orb.orb-blue {
  width: 600px; height: 600px; left: calc(50% - 300px); top: 5%;
  background: rgba(46, 124, 255, 0.16); filter: blur(140px);
  animation: fx-drift 11s ease-in-out infinite;
}
.fx-orb.orb-cyan {
  width: 400px; height: 400px; right: 5%; bottom: 4%;
  background: rgba(0, 212, 255, 0.09); filter: blur(110px);
  animation: fx-drift 8s ease-in-out infinite reverse;
}
@keyframes fx-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .75; }
  50% { transform: translate(34px, -26px) scale(1.08); opacity: 1; }
}

/* six floating glyphs: shield / zap / lock / globe */
.fx-ico {
  position: absolute; opacity: .2;
  animation: fx-float 4s ease-in-out infinite; will-change: transform;
}
.fx-ico.i1 { left: 10%; top: 20%; width: 28px; height: 28px; color: var(--blue); }
.fx-ico.i2 { left: 80%; top: 15%; width: 24px; height: 24px; color: var(--cyan); animation-delay: .5s; }
.fx-ico.i3 { left: 15%; top: 70%; width: 32px; height: 32px; color: var(--blue); animation-delay: 1s; }
.fx-ico.i4 { left: 85%; top: 65%; width: 26px; height: 26px; color: var(--cyan); animation-delay: .3s; }
.fx-ico.i5 { left: 50%; top: 80%; width: 22px; height: 22px; color: var(--blue); animation-delay: .7s; }
.fx-ico.i6 { left: 70%; top: 40%; width: 20px; height: 20px; color: var(--cyan); animation-delay: 1.2s; }
@keyframes fx-float {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-10px) rotate(10deg); }
  50%  { transform: translateY(-20px) rotate(0deg); }
  75%  { transform: translateY(-10px) rotate(-10deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* thin scanning line sweeping down the hero */
.fx-scan {
  position: absolute; left: 0; right: 0; top: -4px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .30), transparent);
  animation: fx-scan 6s linear infinite;
}
@keyframes fx-scan { 0% { top: -4px } 100% { top: 100% } }

/* faint static grid behind content sections (old site: opacity-[0.03]/[0.05]) */
.fx-grid-section { position: relative; isolation: isolate; }
.fx-grid-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(46, 124, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 124, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 72%);
}

@media (prefers-reduced-motion: reduce) {
  .fx-ico, .fx-orb, .fx-scan { animation: none !important; }
}

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 18px; text-align: center;
}
.stat b { display: block; font-size: 1.5rem; color: var(--cyan); text-shadow: 0 0 18px rgba(0, 212, 255, .45); }
.stat span { color: var(--dim); font-size: .84rem; }

/* ---------- feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 22px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature:hover { border-color: var(--line-bright); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 40, 100, .35); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.25rem; margin-bottom: 15px;
  background: linear-gradient(135deg, rgba(46,124,255,.18), rgba(0,212,255,.12));
  border: 1px solid var(--line);
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ---------- tariffs ---------- */
.period-toggle {
  display: inline-flex; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px; gap: 4px; margin: 0 auto 38px; width: max-content;
}
.period-toggle button {
  border: 0; background: transparent; color: var(--muted); font-family: var(--font);
  font-weight: 600; font-size: .88rem; padding: 8px 18px; border-radius: 9px; cursor: pointer;
  transition: background .18s, color .18s;
}
.period-toggle button.active {
  background: linear-gradient(135deg, var(--blue), #0090FF);
  color: #fff; box-shadow: 0 0 18px rgba(46,124,255,.45);
}

.tariffs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tariff {
  position: relative; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 28px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tariff:hover { border-color: var(--line-bright); transform: translateY(-3px); }
.tariff.premium {
  border-color: rgba(255, 184, 77, 0.35);
  background:
    linear-gradient(180deg, rgba(46,124,255,.07), rgba(0,0,0,0) 40%),
    var(--bg-2);
}
.tariff.premium:hover { box-shadow: 0 18px 44px rgba(46, 124, 255, 0.22); }
.tariff .tier-chip {
  position: absolute; top: 22px; right: 22px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.tariff .tier-chip.std { color: var(--cyan); border: 1px solid rgba(0,212,255,.4); background: rgba(0,212,255,.08); }
.tariff .tier-chip.pro { color: #FFD08A; border: 1px solid rgba(255,184,77,.45); background: rgba(255,184,77,.09); }
.tariff h3 { font-size: 1.3rem; margin-bottom: 6px; }
.tariff .t-desc { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.tariff .price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; }
.tariff .price small { font-size: 1rem; color: var(--dim); font-weight: 500; }
.tariff .per-note { color: var(--dim); font-size: .82rem; margin: 2px 0 18px; }
.tariff ul { list-style: none; margin: 0 0 22px; display: grid; gap: 10px; }
.tariff li { display: flex; gap: 10px; color: var(--muted); font-size: .92rem; align-items: flex-start; }
.tariff li::before {
  content: "✓"; color: var(--ok); font-weight: 700; flex: 0 0 auto;
  text-shadow: 0 0 12px rgba(46, 230, 168, .5);
}
.tariff li span b { color: var(--text); font-weight: 600; }
.tariff .btn { width: 100%; }
.price-line { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.price-cell {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-sm);
  text-align: center; padding: 10px 6px; cursor: pointer; transition: border-color .15s;
}
.price-cell.sel, .price-cell:hover { border-color: var(--line-bright); }
.price-cell b { display: block; font-size: 1.06rem; color: var(--cyan); }
.price-cell span { font-size: .74rem; color: var(--dim); }

.trial-note {
  text-align: center; color: var(--dim); font-size: .86rem; margin-top: 22px;
}
.trial-note b { color: var(--cyan); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; position: relative; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1rem; color: #fff; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: var(--glow);
}
.step p { color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
details {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 20px; transition: border-color .2s;
}
details[open] { border-color: var(--line-bright); }
summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; font-size: .93rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 22px; padding: 44px 40px; text-align: center;
  background:
    radial-gradient(600px 240px at 50% -40%, rgba(0, 212, 255, .16), transparent 70%),
    linear-gradient(180deg, #0B1730, var(--bg-2));
  border: 1px solid var(--line-bright);
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 24px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line); margin-top: 70px; padding: 40px 0 30px;
  background: var(--bg-0);
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; margin-bottom: 26px; }
.foot-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 12px; }
.foot-grid a { display: block; color: var(--muted); font-size: .9rem; padding: 3px 0; }
.foot-grid p { color: var(--muted); font-size: .9rem; }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 20px; color: var(--dim); font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   CABINET
   ============================================================ */
.app { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }

.side {
  border-right: 1px solid var(--line); background: var(--bg-0);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side .brand { padding: 0 10px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.side-link {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: .93rem; font-weight: 500;
  padding: 10px 12px; border-radius: 10px; position: relative;
  transition: background .16s, color .16s;
}
.side-link:hover { color: var(--text); background: rgba(46,124,255,.08); text-decoration: none; }
.side-link.active {
  color: var(--text); background: linear-gradient(90deg, rgba(46,124,255,.18), rgba(46,124,255,.04));
}
.side-link.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: 4px; background: linear-gradient(180deg, var(--blue), var(--cyan));
  box-shadow: var(--glow);
}
.side-link .em { width: 20px; text-align: center; }
.side-sec { margin: 14px 12px 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.side-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

.main { padding: 26px 34px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.topbar h1 { font-size: 1.45rem; }
.topbar .spacer { margin-left: auto; }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px 5px 6px; font-size: .88rem;
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-weight: 700; font-size: .8rem;
}

.cards { display: grid; gap: 16px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 24px;
}
.card h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.card h3 .hint { font-size: .78rem; color: var(--dim); font-weight: 500; margin-left: auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }

.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px;
}
.status-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.status-chip.ok { color: var(--ok); background: rgba(46,230,168,.09); border: 1px solid rgba(46,230,168,.35); }
.status-chip.ok::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status-chip.warn { color: var(--warn); background: rgba(255,184,77,.09); border: 1px solid rgba(255,184,77,.35); }
.status-chip.warn::before { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.status-chip.bad { color: var(--bad); background: rgba(255,92,122,.09); border: 1px solid rgba(255,92,122,.35); }
.status-chip.bad::before { background: var(--bad); box-shadow: 0 0 10px var(--bad); }

.sub-hero { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.sub-title { font-size: 1.35rem; font-weight: 700; margin: 10px 0 2px; }
.sub-until { color: var(--dim); font-size: .88rem; }
.sub-progress { margin: 18px 0 6px; }
.progress {
  height: 8px; border-radius: 999px; background: var(--bg-3); overflow: hidden;
  border: 1px solid var(--line);
}
.progress > div {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 14px rgba(0, 190, 255, .5);
}
.progress-note { color: var(--dim); font-size: .8rem; margin-top: 7px; }

.kv { display: grid; gap: 10px; margin: 0; }
.kv-row { display: flex; justify-content: space-between; gap: 14px; font-size: .93rem; padding: 8px 0; border-bottom: 1px dashed rgba(64,140,255,.12); }
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--dim); }
.kv-row .v { font-weight: 600; }
.kv-row .v.hl { color: var(--cyan); }
.kv-row .v.ok { color: var(--ok); }

.big-money { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--cyan); text-shadow: 0 0 22px rgba(0,212,255,.35); }
.money-note { color: var(--dim); font-size: .82rem; margin-top: 4px; }

.connect-box {
  display: flex; gap: 18px; align-items: stretch; flex-wrap: wrap;
}
.qr-box {
  flex: 0 0 148px; height: 148px; border-radius: 14px;
  border: 1px dashed var(--line-bright);
  display: grid; place-items: center; color: var(--dim); font-size: .78rem; text-align: center;
  background: rgba(0, 212, 255, 0.04);
}
.link-field {
  flex: 1; min-width: 240px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .8rem; color: var(--cyan); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.device-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 16px; margin-bottom: 10px;
}
.device-row .d-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(46,124,255,.14); border: 1px solid var(--line); }
.device-row .d-name { font-weight: 600; font-size: .93rem; }
.device-row .d-meta { color: var(--dim); font-size: .8rem; }
.device-row .d-act { margin-left: auto; }

.notice {
  border-radius: var(--r-sm); padding: 12px 16px; font-size: .88rem;
  border: 1px solid rgba(255, 184, 77, .3); background: rgba(255, 184, 77, .07); color: #FFD9A3;
}
.notice.blue { border-color: var(--line-bright); background: rgba(0, 212, 255, .06); color: #B9EEFF; }
.notice b { font-weight: 700; }

.ref-card { text-align: center; padding: 28px; }
.ref-link {
  display: inline-block; margin: 14px auto;
  background: var(--bg-3); border: 1px solid var(--line-bright); border-radius: 10px;
  padding: 10px 18px; font-family: ui-monospace, Consolas, monospace; font-size: .84rem; color: var(--cyan);
}
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.ref-stats .stat { padding: 12px 8px; }
.ref-stats .stat b { font-size: 1.1rem; }

/* ---------- auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 0; }
.auth-card {
  width: min(430px, 92vw);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px;
  padding: 34px 32px;
  box-shadow: 0 24px 70px rgba(0, 12, 40, .6);
  position: relative;
}
.auth-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 22px; pointer-events: none;
  background: linear-gradient(160deg, rgba(0,212,255,.28), transparent 34%, transparent 66%, rgba(46,124,255,.28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.auth-logo { display: grid; place-items: center; margin-bottom: 20px; }
.auth-logo img { width: 74px; height: 74px; border-radius: 18px; filter: drop-shadow(0 0 18px rgba(46,124,255,.6)); }
.auth-card h2 { text-align: center; font-size: 1.35rem; }
.auth-card .auth-sub { text-align: center; color: var(--muted); font-size: .9rem; margin: 8px 0 22px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field select {
  width: 100%; background: var(--bg-3); color: var(--text);
  border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 14px; font-size: .95rem; font-family: var(--font);
  transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 124, 255, .18);
}
.auth-alt { text-align: center; color: var(--dim); font-size: .84rem; margin-top: 18px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: .78rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.tg-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 12px; padding: 12px 20px; font-weight: 600; font-size: .95rem;
  color: #fff; background: linear-gradient(135deg, #2AABEE, #229ED9);
  border: 0; cursor: pointer; transition: transform .15s, box-shadow .18s;
}
.tg-btn:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(42, 171, 238, .45); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .sub { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-logo-wrap { order: -1; }
  .hero-logo-wrap img { width: 190px; }
  .stats, .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .tariffs { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats, .features, .steps { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .brand { display: none; }
  .side-link { padding: 8px 10px; }
  .main { padding: 20px 16px 50px; }
  .ref-stats { grid-template-columns: 1fr 1fr; }
}
