:root {
  color-scheme: light;
  --vpn-ink: #16233a;
  --vpn-muted: #52637b;
  --vpn-page: #eef2f9;
  --vpn-card: #fff;
  --vpn-border: #dde6f2;
  --vpn-soft: #f5f8ff;
  --vpn-blue: #2563eb;
  --vpn-blue-hover: #1d4ed8;
}

.cabinet-vpn { display: flex; min-height: 100vh; flex-direction: column; background: var(--vpn-page); color: var(--vpn-ink); font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; }
.cabinet-vpn button, .cabinet-vpn input, .cabinet-vpn select { font-family: inherit; }
.cabinet-vpn :focus-visible { outline: 2px solid var(--vpn-blue); outline-offset: 3px; }
.cabinet-vpn h1 { font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.16; letter-spacing: -.025em; }
.cabinet-vpn h2 { font-size: clamp(1.14rem, 2vw, 1.4rem); line-height: 1.25; letter-spacing: -.018em; }
.cabinet-vpn a:not([class]) { color: var(--vpn-blue-hover); text-decoration: underline; text-underline-offset: 3px; }
.cabinet-site-header, .cabinet-site-footer { background: var(--vpn-card); border: solid var(--vpn-border); border-width: 0 0 1px; }
.cabinet-site-footer { border-width: 1px 0 0; margin-top: auto; }
.cabinet-site-inner { box-sizing: border-box; display: flex; width: min(1120px, calc(100% - 36px)); min-height: 64px; margin-inline: auto; align-items: center; justify-content: space-between; gap: 12px 20px; }
.cabinet-site-brand { display: inline-flex; align-items: center; }
.cabinet-site-brand img { display: block; width: 155px; height: auto; }
.cabinet-site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; }
.cabinet-site-nav a { color: var(--vpn-muted); font-size: .88rem; font-weight: 650; }
.cabinet-site-nav a:hover, .cabinet-vpn .logout:hover { color: var(--vpn-blue-hover); }
.cabinet-site-footer .cabinet-site-inner { min-height: 60px; justify-content: flex-start; padding-block: 10px; }
.cabinet-vpn > .wrap { box-sizing: border-box; width: min(1120px, calc(100% - 36px)); padding: 26px 0 42px; }
.cabinet-vpn .card { border-color: var(--vpn-border); border-radius: 20px; background: var(--vpn-card); box-shadow: 0 5px 18px #16233a08; backdrop-filter: none; padding: clamp(16px, 3vw, 29px); }
.cabinet-vpn .auth { box-sizing: border-box; max-width: 440px; margin: clamp(14px, 5vw, 64px) auto; padding: clamp(20px, 5vw, 34px); border-top: 3px solid var(--vpn-blue); }
.cabinet-vpn .auth > .logo, .cabinet-vpn .topbar > .logo { display: none; }
.cabinet-vpn .auth h1:first-of-type { margin-top: 0 !important; }
.cabinet-vpn .auth p { font-size: .92rem; }
.cabinet-vpn .auth .input { margin-top: 5px; }
.cabinet-vpn .muted, .cabinet-vpn .statlabel { color: var(--vpn-muted); }
.cabinet-vpn .input { border-color: var(--vpn-border); border-radius: 10px; color: var(--vpn-ink); }
.cabinet-vpn .input:focus { outline: 2px solid var(--vpn-blue); outline-offset: 1px; }
.cabinet-vpn .topbar { justify-content: flex-end; gap: 7px 18px; margin-bottom: 14px; }
.cabinet-vpn .logout { display: inline-flex; align-items: center; min-height: 36px; font-size: .88rem; font-weight: 650; }
.cabinet-vpn .btn { min-height: 44px; padding: 11px 15px; border-radius: 11px; font-weight: 650; line-height: 1.45; }
.cabinet-vpn .btn:hover { transform: none; filter: none; }
.cabinet-vpn .primary, .cabinet-vpn .telegram { background: var(--vpn-blue); color: #fff; }
.cabinet-vpn .primary:hover, .cabinet-vpn .telegram:hover { background: var(--vpn-blue-hover); }
.cabinet-vpn .secondary { background: var(--vpn-soft); color: var(--vpn-blue-hover); box-shadow: inset 0 0 0 1px var(--vpn-border); }
.cabinet-vpn .secondary:hover { background: #e9f0ff; }
.cabinet-vpn .stat, .cabinet-vpn .suburl, .cabinet-vpn .connection-link { background: var(--vpn-soft); border-color: var(--vpn-border); border-radius: 13px; }
.cabinet-vpn .statvalue { color: var(--vpn-ink); font-weight: 750; }
.cabinet-vpn .trafficfill, .cabinet-vpn .popularbadge { background: var(--vpn-blue); }
.cabinet-vpn .plancard.popular { border-color: var(--vpn-blue); }
.cabinet-vpn .copy-icon { border-radius: 10px; color: var(--vpn-blue-hover); }
.cabinet-vpn .account-title { margin: 0 0 13px; }
.cabinet-vpn .summary .stat { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .cabinet-site-brand img { width: 122px; }
  .cabinet-site-nav { gap: 6px 10px; }
  .cabinet-site-nav a { font-size: .8rem; }
  .cabinet-vpn > .wrap { padding-top: 16px; }
  .cabinet-vpn .topbar { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .cabinet-vpn *, .cabinet-vpn *::before, .cabinet-vpn *::after { scroll-behavior: auto; }
}
