/* 0VPN / a quieter, compact interface. Shared by the public site and admin. */
:root {
  --ink: #202733;
  --muted: #606b78;
  --line: #e0e4e9;
  --paper: #fff;
  --canvas: #f7f8fa;
  --navy: #285fc2;
  --navy-hover: #204e9f;
  --blue-soft: #edf3ff;
  --teal: #c83149;
  --teal-soft: #fff0f2;
  --danger: #b82e45;
  --input-border: #d6dce4;
  --surface-hover: #f3f6fb;
  --shadow: 0 18px 60px #152a4714;
  --progress-track: #e9edf2;
  --heading-weight: 620;
}
html[data-theme="dark"] {
  --ink: #e8edf4;
  --muted: #a2adbd;
  --line: #2d3542;
  --paper: #181e28;
  --canvas: #11161e;
  --navy: #8bb6ff;
  --navy-hover: #abcaff;
  --blue-soft: #21324d;
  --teal: #ff8594;
  --teal-soft: #34232d;
  --danger: #ff8594;
  --input-border: #384252;
  --surface-hover: #202938;
  --shadow: 0 18px 60px #0005;
  --progress-track: #303949;
}
body { background: var(--canvas); font-size: 15px; line-height: 1.55; }
button, a, input, textarea, select { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
::selection { background: var(--blue-soft); color: var(--ink); }
h1, h2, h3 { font-weight: var(--heading-weight); line-height: 1.15; text-wrap: balance; }
h1 { letter-spacing: -.055em; }
h2 { letter-spacing: -.04em; }
strong { font-weight: 620; }
.shell { width: min(1160px, calc(100% - 64px)); }
.topbar {
  height: auto;
  min-height: 76px; padding: 12px max(32px, calc((100vw - 1160px) / 2));
  background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line);
  box-shadow: none; position: sticky; top: 0; z-index: 20;
}
.brand { color: var(--ink); font-size: 23px; font-weight: 750; letter-spacing: -.06em; gap: 10px; }
.brand img { width: 38px; height: 38px; border: 0; box-shadow: none; border-radius: 10px; }
.theme-toggle, .language-toggle {
  border-color: transparent; background: transparent; color: var(--muted);
  border-radius: 9px; width: 40px; height: 40px; flex-basis: 40px;
}
.theme-toggle:hover, .language-toggle:hover { color: var(--ink); background: var(--surface-hover); border-color: var(--line); transform: none; }
.language-toggle { font-weight: 550; font-size: 12px; }
.top-actions { margin-left: 8px; }
.topbar .button.ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.topbar .button.ghost:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--navy); }
.topbar .button.primary { background: var(--navy); }
.topbar .button.primary:hover:not(:disabled) { background: var(--navy-hover); }
.button { font-size: 14px; font-weight: 560; border-radius: 9px; min-height: 44px; padding: 10px 18px; transition: background-color .15s, border-color .15s; }
.button.primary { background: var(--navy); color: #fff; }
html[data-theme="dark"] .button.primary { color: #111b2c; }
.button.primary:hover:not(:disabled) { transform: none; }
.button.ghost { background: transparent; border-color: var(--line); }
.button.ghost:hover:not(:disabled) { border-color: var(--navy); }
.button.large { min-height: 50px; font-size: 15px; padding-inline: 24px; }
.hero { min-height: 590px; grid-template-columns: 1.2fr 1fr; gap: 86px; padding-block: 88px 76px; }
.hero h1 { font-size: clamp(40px, 4.7vw, 66px); max-width: 640px; margin-bottom: 24px; }
.hero .eyebrow::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; margin: 0 10px 2px 0; }
.eyebrow { font-size: 11px; letter-spacing: .12em; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.lead { font-size: 17px; line-height: 1.75; max-width: 540px; }
.hero-actions { margin: 30px 0 24px; }
.checklist { display: grid; gap: 7px; font-size: 13px; }
.checklist li::before { color: var(--navy); font-weight: 500; }
.hero-panel { padding: 30px; border-radius: 18px; box-shadow: none; grid-template-columns: 28px minmax(0, 1fr); gap: 22px 14px; background: var(--paper); }
.hero-panel::before { height: 0; }
.connection-heading { grid-column: 1 / -1; display: flex; align-items: center; gap: 13px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.connection-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); }
.connection-icon svg { width: 22px; height: 22px; }
.connection-heading small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; margin-bottom: 3px; }
.connection-heading strong { font-size: 17px; }
.step-number { background: transparent; border: 1px solid var(--line); color: var(--muted); width: 28px; height: 28px; border-radius: 50%; font-size: 11px; font-weight: 500; }
.hero-panel strong { font-weight: 580; }
.hero-panel p { font-size: 13px; line-height: 1.65; }
.connection-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 17px; font-size: 11px; color: var(--muted); }
.connection-foot span:last-child { color: var(--navy); }
.section { padding-block: 64px; }
#plans { border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.section-head { margin-bottom: 30px; align-items: end; }
.section-head h2 { font-size: 34px; margin-bottom: 0; }
.section-head > p { font-size: 14px; max-width: 355px; margin: 0; }
.plans-grid { gap: 16px; }
.plan-card { padding: 24px; border-radius: 14px; min-width: 0; }
.plan-card.highlight { border-color: var(--navy); box-shadow: none; background: var(--blue-soft); }
.plan-card h3 { font-size: 18px; margin-bottom: 19px; }
.badge { border-radius: 4px; background: transparent; color: var(--muted); padding: 0; font-size: 10px; font-weight: 550; letter-spacing: .04em; min-height: 18px; margin-bottom: 18px; }
.highlight .badge { color: var(--navy); }
.price { flex-wrap: wrap; gap: 4px 8px; margin-bottom: 22px; }
.price strong { font-size: 36px; font-weight: 620; line-height: 1.1; }
.price span { font-size: 12px; }
.plan-meta { line-height: 1.9; font-size: 13px; }
.fineprint { line-height: 1.65; font-size: 12px; }
.section.soft { background: var(--paper); border-block: 1px solid var(--line); }
.compact > h2 { max-width: 600px; font-size: 34px; }
.features { gap: 36px; }
.features article { border: 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.features article:nth-child(2) { border-color: var(--line); }
.features strong { font-size: 16px; }
.features p { font-size: 14px; line-height: 1.75; }
.footer { min-height: 100px; font-size: 12px; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.dashboard, .admin-shell { padding-block: 44px 72px; }
.account-head { align-items: center; margin-bottom: 34px; }
.account-head h1 { font-size: clamp(28px, 3.5vw, 40px); overflow-wrap: anywhere; }
.account-head .eyebrow { margin-bottom: 9px; }
.account-head .muted { font-size: 13px; margin-bottom: 0; }
.balance-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); min-width: 260px; padding: 18px 24px; box-shadow: none; }
.balance-card > span { font-size: 12px; }
.balance-card span, .balance-card small { color: var(--muted); }
.balance-card strong, .balance-card strong span { color: var(--ink); font-size: 30px; font-variant-numeric: tabular-nums; }
.balance-card small { font-size: 11px; }
.tabs { width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 4px; background: var(--paper); gap: 3px; margin-bottom: 36px; }
.tab { padding: 9px 18px; border: 0; font-size: 13px; font-weight: 550; border-radius: 7px; }
.tab.active { background: var(--blue-soft); color: var(--navy); }
.panel-head h2 { font-size: 24px; margin-bottom: 6px; }
.panel-head p { font-size: 13px; margin: 0; }
.config-card { padding: 24px; border-radius: 14px; }
.config-top h3 { font-size: 18px; margin-bottom: 4px; }
.config-top .muted { font-size: 11px; font-family: "Golos Text", sans-serif; letter-spacing: .03em; }
.status { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; font-size: 10px; font-weight: 550; }
.status::before { content: ""; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.config-stats { grid-template-columns: 1.2fr 1.2fr .6fr; gap: 20px; margin: 22px 0; }
.config-stat { background: transparent; border-radius: 0; padding: 0; min-width: 0; }
.config-stat + .config-stat { border-left: 1px solid var(--line); padding-left: 20px; }
.config-stat span { font-size: 11px; margin-bottom: 7px; }
.config-stat strong { font-size: 15px; font-weight: 550; }
.progress { height: 4px; margin-top: 12px; }
.progress::-webkit-progress-value { background: var(--navy); }
.progress::-moz-progress-bar { background: var(--navy); }
.config-actions { padding-top: 18px; border-top: 1px solid var(--line); }
.config-actions .button { min-height: 38px; padding: 8px 13px; font-size: 12px; }
.table-wrap, .settings-card, .ticket-row, .empty { border-radius: 12px; }
th { font-size: 10px; font-weight: 550; padding-block: 13px; background: var(--surface-hover); }
td { font-size: 13px; padding-block: 16px; }
.empty { border-style: solid; border-color: var(--line); padding-block: 48px; background: var(--paper); }
.empty h3 { color: var(--ink); font-size: 19px; }
.empty p { margin-bottom: 0; font-size: 14px; }
.modal { max-height: calc(100dvh - 32px); padding: 38px 30px 28px; border-radius: 16px; }
.modal-close { right: 9px; top: 8px; }
.modal-close:hover { background: var(--surface-hover); }
.modal::backdrop { background: #101b2b99; backdrop-filter: blur(4px); }
.auth-switch { margin-top: 15px; margin-bottom: 28px; }
.form-stack h2 { font-size: 25px; }
label { font-weight: 550; font-size: 13px; }
input, select, textarea { min-height: 44px; padding: 11px 12px; border-radius: 8px; font-size: 14px; }
.check input { min-height: 17px; flex: 0 0 17px; }
.option { font-size: 13px; border-radius: 8px; align-items: center; }
.option strong { white-space: nowrap; }
.ticket-message { box-shadow: none; font-size: 14px; }
.ticket-row h3 { font-size: 16px; }
.admin-shell { width: min(1160px, calc(100% - 64px)); }
.admin-heading h1 { font-size: clamp(27px, 3.5vw, 38px); }
.admin-heading .eyebrow { margin-bottom: 8px; }
.metric-grid { gap: 12px; }
.metric-grid article { border: 1px solid var(--line); border-radius: 12px; box-shadow: none; padding: 18px; }
.metric-grid article:nth-child(even) { border-top-color: var(--line); }
.metric-grid span { font-size: 11px; }
.metric-grid strong { font-size: 26px; font-weight: 550; font-variant-numeric: tabular-nums; }
.admin-card { box-shadow: none; border-radius: 12px; }
.admin-card-head h2 { font-size: 21px; }
.admin-card-head p { font-size: 13px; line-height: 1.65; }
.cleanup-card .button.danger { background: transparent; color: var(--danger); border-color: var(--line); }
.cleanup-card .button.danger:hover:not(:disabled) { background: var(--teal-soft); border-color: var(--danger); }
.button.danger { background: #b82e45; color: #fff; }
.admin-config { border-radius: 10px; }
.admin-config .config-actions { padding-top: 0; border: 0; align-items: center; }
.detail-balance { align-items: center; }
.detail-balance strong { display: flex; gap: 5px; align-items: baseline; }
.detail-balance strong span { color: var(--ink); font-size: inherit; }
.login-box { border-top: 1px solid var(--line); box-shadow: none; border-radius: 14px; }
.login-box h1 { font-size: 28px; }
@media (max-width: 1000px) {
  .hero { gap: 40px; }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-block: 52px; gap: 36px; }
  .hero-copy { max-width: 600px; }
  .hero-panel { max-width: none; }
  .section-head { flex-direction: column; align-items: start; gap: 16px; }
  .section-head > p { max-width: 100%; }
  .account-head { align-items: stretch; flex-direction: column; }
  .balance-card { min-width: 0; }
  .features { gap: 24px; }
}
@media (max-width: 640px) {
  .shell, .admin-shell { width: calc(100% - 32px); }
  .topbar { padding: 10px 16px; min-height: 65px; gap: 8px; }
  .topbar .brand { font-size: 20px; gap: 7px; }
  .topbar .brand img { width: 32px; height: 32px; }
  .topbar .button { padding: 8px 11px; font-size: 12px; min-height: 38px; }
  .theme-toggle, .language-toggle { width: 34px; height: 38px; flex-basis: 34px; }
  .topbar-controls, .top-actions { gap: 4px; }
  .top-actions { margin-left: 2px; }
  #guestActions [data-auth="register"] { display: none; }
  .hero h1 { font-size: clamp(38px, 10vw, 52px); }
  .lead { font-size: 15px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { flex: 1; padding-inline: 12px; font-size: 13px; }
  .hero-panel { padding: 23px; }
  .section { padding-block: 42px; }
  .section-head h2, .compact > h2 { font-size: 28px; }
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 22px; }
  .dashboard, .admin-shell { padding-block: 30px 48px; }
  .tabs { width: 100%; margin-bottom: 26px; display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .tab { padding: 9px 12px; font-size: 12px; flex-shrink: 0; }
  .config-card { padding: 18px; }
  .config-top h3 { font-size: 16px; }
  .config-stats { grid-template-columns: minmax(0, 1fr) auto; gap: 17px; }
  .config-stat:first-child { grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .config-stat:nth-child(2) { padding-left: 0; border-left: 0; }
  .config-stat strong { font-size: 14px; }
  .config-actions .button { flex: 1; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid article { padding: 15px; }
  .metric-grid strong { font-size: 23px; }
  .admin-card { padding: 18px; }
  .modal { padding: 38px 20px 24px; }
  input, select, textarea { font-size: 16px; }
  .footer { padding-block: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
