/* Public site styles (landing, cabinet, pay pages).
   Admin panel keeps using design-system.css. */
:root {
  --bg:        #06070b;
  --bg-2:      #0b0d14;
  --panel:     rgba(255,255,255,0.035);
  --panel-2:   rgba(255,255,255,0.06);
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.16);

  --text:      #f2f4f8;
  --muted:     #a0a8ba;
  --dim:       #6b7386;

  --accent:    #5ee4ff;
  --accent-2:  #8b7bff;
  --ok:        #3ddc97;
  --warn:      #ffb648;
  --err:       #ff5d7a;

  --grad:      linear-gradient(100deg, #7debff 0%, #8f9bff 55%, #b68cff 100%);

  --font:      'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; }
ul { list-style: none; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(94,228,255,0.3); }

/* ── Layout ── */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; }
.section { padding: 96px 0; position: relative; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
@media (max-width: 859px) { .hide-mobile { display: none !important; } }
@media (min-width: 860px) { .hide-desktop { display: none !important; } }

/* ── Typography ── */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.h-hero { font-size: clamp(2.5rem, 7vw, 4.75rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.h-section { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.h-card { font-size: 1.125rem; letter-spacing: -0.015em; line-height: 1.3; font-weight: 600; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.175rem); max-width: 56ch; text-wrap: pretty; }
.center .lead { margin-left: auto; margin-right: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 500; color: var(--muted);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
}
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 0.875rem; }
.xs { font-size: 0.78rem; }
.mono { font-family: var(--font-mono); font-size: 0.85em; }
.nums { font-variant-numeric: tabular-nums; }
.section-head { margin-bottom: 56px; }
.section-head .lead { margin-top: 16px; }

/* ── Icons ── */
.ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 24px; height: 24px; }

/* ── Background decor ── */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora::before, .aurora::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px);
  animation: drift 18s var(--ease) infinite alternate;
}
.aurora::before { width: 620px; height: 620px; left: -160px; top: -220px; background: rgba(94,228,255,0.16); }
.aurora::after  { width: 680px; height: 680px; right: -220px; top: -120px; background: rgba(139,123,255,0.2); animation-duration: 24s; animation-direction: alternate-reverse; }
.aurora-fixed { position: fixed; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(40px,50px,0) scale(1.12); } }
.grid-fade {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}
.above { position: relative; z-index: 1; }

/* ── Navbar ── */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 100; padding: 0 12px; }
.nav-inner {
  max-width: 1160px; margin: 0 auto; height: 56px; padding: 0 10px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(10,12,18,0.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled .nav-inner { background: rgba(10,12,18,0.86); border-color: var(--line-2); box-shadow: 0 12px 40px rgba(0,0,0,0.45); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; }
.logo-mark { width: 28px; height: 28px; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
@media (min-width: 860px) { .nav-links { display: flex; } }
.burger { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.burger:hover { background: var(--panel-2); color: var(--text); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; padding: 96px 24px 32px;
  background: rgba(6,7,11,0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu a.mm-link { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 20px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.2s, border-color 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.55; cursor: wait; }
.btn-primary { background: var(--grad); color: #06070b; box-shadow: 0 8px 28px rgba(126,160,255,0.28), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn-primary:hover { box-shadow: 0 12px 38px rgba(126,160,255,0.45), inset 0 1px 0 rgba(255,255,255,0.5); transform: translateY(-1px); }
.btn-light { background: #f2f4f8; color: #06070b; }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { background: var(--panel); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); border-color: rgba(255,255,255,0.28); }
.btn-text { height: auto; padding: 4px 2px; color: var(--muted); font-weight: 500; }
.btn-text:hover { color: var(--text); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background 0.2s, color 0.2s; }
.icon-btn:hover { background: var(--panel-2); color: var(--text); }

/* ── Cards ── */
.card {
  position: relative; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.card-pad { padding: 28px; }
.card-hover:hover { border-color: var(--line-2); transform: translateY(-3px); }
.glass { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.divider { height: 1px; border: none; background: var(--line); margin: 20px 0; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
}
.badge-ok   { color: var(--ok);   background: rgba(61,220,151,0.1);  border-color: rgba(61,220,151,0.25); }
.badge-warn { color: var(--warn); background: rgba(255,182,72,0.1);  border-color: rgba(255,182,72,0.25); }
.badge-err  { color: var(--err);  background: rgba(255,93,122,0.1);  border-color: rgba(255,93,122,0.25); }
.badge-info { color: var(--accent); background: rgba(94,228,255,0.1); border-color: rgba(94,228,255,0.25); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.dot-live { color: var(--ok); box-shadow: 0 0 0 0 rgba(61,220,151,0.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }

.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); font-size: 0.9rem; border: 1px solid var(--line); background: var(--panel); }
.alert-err  { color: #ffc2cd; background: rgba(255,93,122,0.08); border-color: rgba(255,93,122,0.28); }
.alert-warn { color: #ffe0b0; background: rgba(255,182,72,0.08); border-color: rgba(255,182,72,0.28); }
.alert-ok   { color: #c3f5df; background: rgba(61,220,151,0.08); border-color: rgba(61,220,151,0.28); }
.alert .ic { margin-top: 2px; }

/* ── Forms ── */
.field { display: block; }
.field + .field { margin-top: 14px; }
.field-label { display: block; font-size: 0.8125rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.input {
  width: 100%; height: 48px; padding: 0 16px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-2);
  color: var(--text); font: inherit; font-size: 1rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder { color: var(--dim); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(94,228,255,0.14); background: rgba(255,255,255,0.06); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.seg button { height: 38px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s; padding: 0 14px; white-space: nowrap; }
.seg button.on { background: #f2f4f8; color: #06070b; }
.code-box {
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.5; color: var(--muted);
  padding: 12px 14px; border-radius: var(--r-sm); background: rgba(0,0,0,0.35); border: 1px solid var(--line);
  word-break: break-all; max-height: 92px; overflow: auto; user-select: all;
}

/* ── Spinner / skeleton ── */
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.18); border-top-color: currentColor; animation: spin 0.7s linear infinite; display: inline-block; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { border-radius: var(--r-lg); background: linear-gradient(100deg, rgba(255,255,255,0.03) 30%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Modal / toast ── */
.overlay {
  position: fixed; inset: 0; z-index: 200; padding: 16px;
  display: grid; place-items: center; overflow-y: auto;
  background: rgba(3,4,7,0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.modal {
  width: 100%; max-width: 420px; padding: 28px; border-radius: var(--r-lg);
  background: #0e1119; border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.08);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.modal-head h3 { font-size: 1.4rem; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  background: #151925; border: 1px solid var(--line-2); box-shadow: 0 16px 50px rgba(0,0,0,0.6);
}
.toast-success { color: var(--ok); }
.toast-error { color: var(--err); }
.qr-box { background: #fff; border-radius: var(--r-md); padding: 14px; width: 100%; max-width: 280px; margin: 0 auto; aspect-ratio: 1; display: grid; place-items: center; color: #06070b; }
.qr-box svg { width: 100%; height: 100%; }

.chip-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-btn { flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); background: var(--panel); border: 1px solid var(--line); transition: background 0.2s, color 0.2s; }
.chip-btn:hover { color: var(--text); }
.chip-btn.on { background: #f2f4f8; color: #06070b; border-color: transparent; }
.app-row { display: flex; align-items: center; gap: 8px; padding: 12px 0; }
.app-row + .app-row { border-top: 1px solid var(--line); }
.app-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* ── Hero ── */
.hero { position: relative; padding: 148px 0 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero .lead { margin: 24px 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--dim); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .ic { color: var(--ok); }

.shield-card { max-width: 380px; margin: 0 auto; padding: 24px; border-radius: var(--r-xl); }
.shield-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(125,235,255,0.55), transparent 35%, transparent 65%, rgba(182,140,255,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.power-wrap { display: grid; place-items: center; padding: 34px 0 30px; }
.power {
  position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); color: var(--dim);
  transition: color 0.4s, background 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.power .ic { width: 44px; height: 44px; stroke-width: 2; }
.power.on { color: #06070b; background: var(--grad); border-color: transparent; box-shadow: 0 0 0 10px rgba(125,235,255,0.08), 0 0 0 24px rgba(139,123,255,0.06), 0 20px 60px rgba(126,160,255,0.45); }
.power.on::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(125,235,255,0.5); animation: ring 2.4s ease-out infinite; }
@keyframes ring { to { transform: scale(1.55); opacity: 0; } }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 0.9rem; border-top: 1px solid var(--line); }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 600; text-align: right; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 72px; border-radius: var(--r-lg); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg-2); padding: 22px 20px; }
.stat b { display: block; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { display: block; margin-top: 4px; font-size: 0.85rem; line-height: 1.35; color: var(--muted); }

/* ── Features (bento) ── */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .bento { grid-template-columns: repeat(6, 1fr); } .bento > * { grid-column: span 2; } .bento > .wide { grid-column: span 3; } }
.feature { padding: 28px; overflow: hidden; }
.feature p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
.feature-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; color: var(--accent); background: rgba(94,228,255,0.1); border: 1px solid rgba(94,228,255,0.2); }
.feature-ic.v { color: #b3a6ff; background: rgba(139,123,255,0.12); border-color: rgba(139,123,255,0.25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 0.8125rem; color: var(--muted); border: 1px solid var(--line); background: var(--panel); }

/* ── Pricing ── */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px 24px 24px; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; margin-bottom: 18px; }
.plan-name { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan-price { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.plan-price small { font-size: 1.25rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan-sub { color: var(--muted); font-size: 0.9rem; margin-top: 8px; min-height: 1.5em; }
.plan-list { margin: 22px 0 24px; flex: 1; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.925rem; color: var(--muted); padding: 5px 0; }
.plan-list .ic { color: var(--ok); margin-top: 3px; }
.plan.featured { border-color: rgba(143,155,255,0.55); background: linear-gradient(180deg, rgba(139,123,255,0.16), rgba(94,228,255,0.04)); box-shadow: 0 24px 70px rgba(110,110,255,0.2), inset 0 1px 0 rgba(255,255,255,0.12); }
.plan.featured .plan-name { color: var(--text); }
.plan-alt { text-align: center; margin-top: 12px; font-size: 0.8125rem; color: var(--dim); }
.plan-alt:hover { color: var(--text); }
.pay-note { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 0.85rem; color: var(--dim); }
.pay-note span { display: inline-flex; align-items: center; gap: 6px; }

.order-panel { margin-top: 28px; padding: 24px; border-color: rgba(94,228,255,0.3); }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ── Steps ── */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 28px; counter-increment: step; }
.step::before { content: '0' counter(step); display: block; font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); margin-bottom: 36px; }
.step p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }

/* ── FAQ ── */
.faq { border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: var(--panel); }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; text-align: left; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.faq-q:hover { background: var(--panel); }
.faq-q .ic { color: var(--muted); transition: transform 0.3s var(--ease); }
.faq-q[aria-expanded="true"] .ic { transform: rotate(45deg); color: var(--accent); }
.faq-a { padding: 0 24px 22px; color: var(--muted); font-size: 0.95rem; max-width: 64ch; }

/* ── CTA / footer ── */
.cta { padding: 64px 28px; text-align: center; overflow: hidden; border-radius: var(--r-xl); }
.cta .lead { margin: 16px auto 32px; }
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; margin-top: 40px; color: var(--dim); font-size: 0.875rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer a:hover { color: var(--text); }

/* ── Cabinet ── */
.page { position: relative; z-index: 1; padding: 112px 0 64px; min-height: 100vh; min-height: 100dvh; }
.auth-wrap { max-width: 420px; margin: 0 auto; padding-top: 24px; }
.summary { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 28px 0; }
@media (min-width: 720px) { .summary { grid-template-columns: repeat(3, 1fr); } }
.summary .card { padding: 20px; }
.summary b { display: block; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.summary span { display: block; margin-top: 2px; font-size: 0.85rem; line-height: 1.35; color: var(--muted); }
.summary .span-2 { grid-column: span 2; }
@media (min-width: 720px) { .summary .span-2 { grid-column: span 1; } }
.subs { display: grid; gap: 16px; }
@media (min-width: 900px) { .subs { grid-template-columns: repeat(2, 1fr); } }
.sub { padding: 24px; }
.sub.is-active { border-color: rgba(61,220,151,0.28); }
.sub.is-off { opacity: 0.62; }
.sub-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.sub-title { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.015em; }
.sub-body { display: flex; align-items: center; gap: 20px; }
.ring { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); width: 84px; height: 84px; }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: rgba(255,255,255,0.08); }
.ring .fill { stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring-label b { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; }
.ring-label span { font-size: 0.68rem; color: var(--dim); margin-top: 3px; }
.sub-dates { display: grid; gap: 10px; }
.sub-dates dt { font-size: 0.75rem; color: var(--dim); }
.sub-dates dd { font-size: 0.925rem; font-weight: 500; }
.sub-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 20px; }
.sub-actions .btn-square { padding: 0; width: 48px; }
.guide-list { counter-reset: g; margin-top: 20px; }
.guide-list li { counter-increment: g; display: flex; gap: 14px; padding: 12px 0; color: var(--muted); font-size: 0.95rem; }
.guide-list li + li { border-top: 1px solid var(--line); }
.guide-list li::before { content: counter(g); flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 600; color: var(--accent); background: rgba(94,228,255,0.1); border: 1px solid rgba(94,228,255,0.22); }
.guide-list a { color: var(--accent); }
.guide-list a:hover { text-decoration: underline; }
.empty { text-align: center; padding: 64px 20px; }
.empty-ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 20px; color: var(--dim); background: var(--panel); border: 1px solid var(--line); }

/* ── Pay pages ── */
.pay-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px; position: relative; overflow: hidden; }
.pay-card { width: 100%; max-width: 420px; padding: 36px 28px; text-align: center; }
.pay-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px; animation: pop 0.6s var(--ease) both; }
.pay-icon .ic { width: 38px; height: 38px; stroke-width: 2.5; }
.pay-icon.ok  { color: var(--ok);  background: rgba(61,220,151,0.1); border: 1px solid rgba(61,220,151,0.35); box-shadow: 0 0 60px rgba(61,220,151,0.18); }
.pay-icon.err { color: var(--err); background: rgba(255,93,122,0.1); border: 1px solid rgba(255,93,122,0.35); box-shadow: 0 0 60px rgba(255,93,122,0.16); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
.progress { text-align: left; margin: 24px 0; }
.progress li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 0.925rem; color: var(--dim); }
.progress li .dot { color: rgba(255,255,255,0.14); }
.progress li.done { color: var(--muted); }
.progress li.done .dot { color: var(--ok); }
.progress li.active { color: var(--text); }
.progress li.active .dot { color: var(--accent); animation: blink 1s ease infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js-reveal .reveal { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding: 116px 0 48px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stats { margin-top: 48px; }
  .card-pad, .feature, .step { padding: 22px; }
  .cta { padding: 44px 20px; }
  .modal { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
