:root {
  --bg: #0b111b;
  --card: #161c28;
  --card-inset: #121820;
  --border: #2a3448;
  --border-soft: rgba(42, 52, 72, 0.85);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #4d8bff;
  --accent-soft: rgba(77, 139, 255, 0.15);
  --ok: #3dd68c;
  --warn: #f59e0b;
  --vip: #a855f7;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.35);
  --glass: rgba(22, 28, 40, 0.82);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 15% 20%, rgba(77, 139, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 55% 40% at 85% 75%, rgba(61, 214, 140, 0.05), transparent 50%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(22, 28, 40, 0.9), transparent);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

#app {
  min-height: 100vh;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.site-surface {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { flex: 0 1 auto; }

.site-footer {
  margin-top: auto;
  padding: 12px 20px 20px;
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.4;
}
.site-footer-meta { margin: 0; }
.site-footer-meta a {
  color: inherit;
  text-decoration: none;
}
.site-footer-meta a:hover { color: var(--accent); opacity: 1; }
.site-footer-sep { margin: 0 0.35em; opacity: 0.5; }

.pay-logos { display: inline-flex; align-items: center; gap: 6px; }
.pay-label { font-size: 0.66rem; letter-spacing: 0.02em; text-transform: lowercase; opacity: 0.85; }
.pay-logo { vertical-align: middle; display: inline-block; }
.pay-text { opacity: 0.9; }

.payline {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.pay-dot { opacity: 0.5; }

.legal-page {
  max-width: 720px;
  margin: 24px auto 40px;
  padding: 28px 24px;
}
.legal-back { margin: 0 0 16px; font-size: 0.9rem; }
.legal-page h1 { margin: 0 0 20px; font-size: 1.5rem; }
.legal-page h2 { margin: 20px 0 8px; font-size: 1rem; color: var(--muted); }
.legal-body { line-height: 1.6; color: var(--text); }
.legal-body p { margin: 0 0 12px; }
.legal-body ul { margin: 0 0 12px; padding-left: 1.25rem; }
.legal-body li { margin: 0 0 6px; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
}
.legal-table th,
.legal-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.legal-table th { width: 32%; font-weight: 500; color: var(--muted); }

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1100px;
  width: calc(100% - 40px);
  margin: 16px auto 0;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-auth-link {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.topbar-auth-link:hover { color: var(--text); }

.site-menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  flex-shrink: 0;
}
.site-menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}
.site-menu-btn:hover { border-color: var(--accent); }

.site-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.site-menu-backdrop.hidden { display: none; }

.site-menu-drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  width: min(300px, 88vw);
  padding: 16px 14px 24px;
  background: rgba(11, 17, 27, 0.98);
  border-right: 1px solid var(--border-soft);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
  overflow-y: auto;
  animation: slideInLeft 0.22s ease;
}
.site-menu-drawer.hidden { display: none; }

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}

body.site-menu-open { overflow: hidden; }

.site-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.site-menu-brand {
  font-weight: 700;
  font-size: 1.05rem;
}
.site-menu-brand span { color: var(--accent); }
.site-menu-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.site-menu-close:hover { background: var(--accent-soft); color: var(--text); }

.site-menu-section { margin-bottom: 18px; }
.site-menu-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0 8px;
}

.site-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  margin-bottom: 4px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}
.site-menu-item:hover {
  background: var(--accent-soft);
  color: var(--text);
  text-decoration: none;
}
.site-menu-item--active {
  background: rgba(77, 139, 255, 0.22);
  color: #f1f5f9;
  font-weight: 600;
}
.site-menu-item--danger { color: #f87171; }
.site-menu-item--danger:hover { background: rgba(248, 113, 113, 0.12); }

.site-menu-item.nav-link--unread {
  position: relative;
  padding-right: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-name span,
.hero h1 span { color: var(--accent); }
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0a0e14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px;
}
.brand-logo svg { display: block; }
.hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #0a0e14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px;
  box-shadow: 0 0 40px rgba(77, 139, 255, 0.2);
}
.hero-logo svg { display: block; }

.cabinet-vpn-card { margin-top: 20px; }
.vpn-sub-box { margin: 12px 0; }
.vpn-url-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}
.vpn-url-input {
  flex: 1;
  min-width: 200px;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}
.vpn-apps-title { margin: 0 0 10px; font-size: 0.95rem; }
.vpn-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.vpn-app-card {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.vpn-steps { margin: 0; padding-left: 1.2rem; }

.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a, .nav-links button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
}
.nav-links a.active {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
  padding-bottom: 2px;
}
.nav-links button:hover,
.nav-links a:hover { color: var(--text); }

.profile-menu { position: relative; }
.nav-links { position: relative; }
.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  border: 1px solid var(--border-soft);
  background: rgba(11, 17, 27, 0.96);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  z-index: 50;
}
.profile-dropdown a,
.profile-dropdown button {
  width: 100%;
  display: block;
  text-align: left;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.profile-dropdown a:hover,
.profile-dropdown button:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.container { max-width: 1100px; margin: 0 auto; padding: 24px 20px; }

.card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

h1, h2 { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 0.9rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  font: inherit;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 11px 14px;
  background: linear-gradient(180deg, #151d2e 0%, #111823 100%);
  color: var(--text);
  width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

input[type="datetime-local"],
input[type="date"],
input[type="number"],
input[type="search"] {
  color-scheme: dark;
}

button {
  font: inherit;
  border-radius: var(--radius-sm);
}

label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field { margin-bottom: 16px; }

.form-stack {
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.form-panel-wide {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.form-card > h2,
.form-card > h3 {
  text-align: center;
}

.form-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.form-actions .btn { min-width: 148px; }

.narrow h2 { text-align: center; }

.password-hint {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(77, 139, 255, 0.08);
  border: 1px solid rgba(77, 139, 255, 0.22);
}
.password-hint-text {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.password-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
}
.password-checklist li { padding: 2px 0; }
.password-checklist li.ok { color: #5dd39e; }
.password-checklist li.ok::before { content: '✓ '; }
.password-checklist li.bad { color: #f0a0a0; }
.password-checklist li.bad::before { content: '○ '; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  width: auto;
}
.btn-primary {
  background: linear-gradient(180deg, #5b96ff, #4d8bff);
  border: 1px solid #6ba0ff;
  color: #fff;
  box-shadow: 0 4px 16px rgba(77, 139, 255, 0.25);
}
.btn-ghost {
  background: #1a2438;
  border: 1px solid #2d3a5c;
  color: var(--text);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.alert-error { background: #2a1518; border: 1px solid #7f2d3d; }
.alert-ok { background: #142a22; border: 1px solid #1a6b4a; }

.tariff-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.tariff-none { background: #38444d; }
.tariff-basic { background: #1e3a5f; color: #93c5fd; }
.tariff-premium { background: #14532d; color: #86efac; }
.tariff-vip { background: #4c1d95; color: #e9d5ff; }

.code-box {
  font-size: 2rem;
  letter-spacing: 0.35em;
  text-align: center;
  padding: 16px;
  background: var(--bg);
  border-radius: 8px;
  margin: 12px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}
th { color: var(--muted); font-weight: 500; }

.table-wrap { overflow-x: auto; }

.tariff-select { min-width: 120px; }

.hidden { display: none !important; }

.hero {
  text-align: center;
  padding: 48px 20px 32px;
  position: relative;
  z-index: 2;
}
.hero h1 { font-size: 2rem; margin-bottom: 8px; }
.hero-lead {
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 10px;
  font-weight: 500;
}

.features-section {
  max-width: 960px;
  margin: 0 auto 28px;
  padding: 0 4px;
}
.section-title {
  text-align: center;
  font-size: 1.35rem;
  margin: 0 0 16px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.feature-card { padding: 18px 16px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.discover-card {
  padding: 18px 16px;
  border-color: rgba(77, 139, 255, 0.28);
  background: rgba(77, 139, 255, 0.06);
}
.discover-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.reg-legal-check { margin: 12px 0 16px; align-items: flex-start; line-height: 1.45; }
.reg-legal-check a { white-space: nowrap; }

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: rgba(11, 17, 27, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.45;
}
.pay-legal { margin-top: 10px; }

.pricing {
  max-width: 960px;
  margin: 24px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.price-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}
.price-card-click { cursor: pointer; }
.price-card-click:focus { outline: 2px solid rgba(77, 139, 255, 0.35); outline-offset: 2px; }
.price-card-click .btn { cursor: pointer; }
.price-card h3 { margin-bottom: 8px; }
.price-tag { font-size: 1.5rem; font-weight: 700; color: var(--accent); margin: 8px 0; }
.btn-pay { margin-top: 14px; }
.pricing-cabinet { margin-top: 12px; }
#homePaymentAlert, #paymentAlert { max-width: 720px; margin: 0 auto 12px; }
.hero-actions { margin-top: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.cabinet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.cabinet-nav-link {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(22, 28, 40, 0.6);
  color: var(--text);
  font-size: 0.88rem;
  text-decoration: none;
}
.cabinet-nav-link:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.cabinet-nav-link--active {
  border-color: rgba(77, 139, 255, 0.5);
  background: rgba(77, 139, 255, 0.15);
  color: #f1f5f9;
}

.download-section {
  max-width: 960px;
  margin: 8px auto 12px;
  padding: 0 20px;
}

.download-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.download-platforms-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.download-card-linux {
  border: 1px solid var(--border);
  background: var(--card);
}
.download-card-main {
  position: relative;
  border: 1px solid rgba(77, 139, 255, 0.35);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(77, 139, 255, 0.12), rgba(22, 28, 40, 0.95) 45%);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.download-card-glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(77, 139, 255, 0.25), transparent 70%);
  pointer-events: none;
}
.download-card-body {
  position: relative;
  padding: 28px 26px 24px;
  text-align: left;
}
.download-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(77, 139, 255, 0.25);
}
.download-badge-beta {
  color: #f5a623;
  background: rgba(245, 166, 35, 0.12);
  border-color: rgba(245, 166, 35, 0.35);
  margin-right: 8px;
}
.beta-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f5a623;
  background: rgba(245, 166, 35, 0.14);
  border: 1px solid rgba(245, 166, 35, 0.35);
  vertical-align: middle;
}
.beta-inline {
  color: #f5a623;
  font-weight: 600;
}
.cabinet-download-linux {
  border-color: rgba(245, 166, 35, 0.25);
}
.download-card-body h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}
.download-steps {
  margin: 14px 0 10px;
  padding-left: 22px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
}
.download-steps strong {
  color: var(--accent);
}
.download-features {
  margin: 14px 0 12px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.download-meta {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.9;
}
.btn-download-lg {
  padding: 12px 22px;
  font-size: 1rem;
}
.pricing-authed-hint {
  margin: 0 0 14px;
  text-align: center;
}
  margin: 14px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}
.download-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}
.download-card-compact {
  margin-top: 0;
}
.download-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(77, 139, 255, 0.2);
}
.download-card-text h3 { margin: 0 0 4px; }
@media (max-width: 640px) {
  .download-card { grid-template-columns: 1fr; text-align: left; }
  .download-card .btn-download { width: 100%; text-align: center; }
}

.hero-full {
  min-height: calc(100vh - 68px - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 24px;
}
.narrow { max-width: 420px; margin: 40px auto; }
.full { width: 100%; }
.foot { margin-top: 16px; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-pay-current { margin-top: 12px; }
.cabinet-pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.cabinet-pay-actions .btn { flex: 1 1 220px; }
.cabinet-upgrade-card {
  margin-top: 16px;
  border-color: rgba(77, 139, 255, 0.35);
  background: linear-gradient(135deg, rgba(77, 139, 255, 0.08), transparent 55%);
}
.span-2 { grid-column: 1 / -1; }
.small { font-size: 0.8rem; }
.sub-extend { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

.field-full { grid-column: 1 / -1; width: 100%; }
.vless-block { margin-top: 8px; }
.input-vless {
  width: 100%;
  min-height: 140px;
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  color: var(--text);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.input-vless:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77, 139, 255, 0.25), 0 0 20px rgba(77, 139, 255, 0.15);
}
.input-vless::placeholder { color: var(--muted); opacity: 0.7; }

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.btn, .nav-links a, .nav-links button, .brand {
  transition: color 0.2s, background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 20px rgba(77, 139, 255, 0.55), 0 4px 14px rgba(77, 139, 255, 0.35);
  transform: translateY(-1px);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--accent);
  background: #243352;
  box-shadow: 0 0 16px rgba(77, 139, 255, 0.2);
  transform: translateY(-1px);
}
.btn:active:not(:disabled) { transform: translateY(0); }

.card-hover {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}
.card-hover:hover {
  border-color: rgba(77, 139, 255, 0.45);
  box-shadow: 0 0 28px rgba(77, 139, 255, 0.12);
}

.price-card.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(77, 139, 255, 0.18);
}

.glow-box {
  transition: box-shadow 0.3s;
}
.glow-box:hover {
  box-shadow: 0 0 24px rgba(77, 139, 255, 0.2);
}

.link-glow {
  transition: color 0.2s, text-shadow 0.25s;
}
.link-glow:hover {
  text-shadow: 0 0 12px rgba(77, 139, 255, 0.6);
}

.table-row-hover {
  transition: background 0.2s;
}
.table-row-hover:hover {
  background: rgba(77, 139, 255, 0.06);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77, 139, 255, 0.22), 0 0 18px rgba(77, 139, 255, 0.12);
}

#app.app-loading {
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 0.2s;
}
#app.app-loading::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  box-shadow: 0 0 20px rgba(77, 139, 255, 0.4);
}
@keyframes spin { to { transform: rotate(360deg); } }

.topbar .brand:hover .brand-logo {
  filter: drop-shadow(0 0 8px rgba(77, 139, 255, 0.7));
  transition: filter 0.25s;
}

/* ——— Анимации ——— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(220%); }
}
@keyframes codeSlotPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); color: var(--accent); }
}
@keyframes codeDigitPop {
  0% { opacity: 0; transform: translateY(12px) scale(0.6); }
  70% { transform: translateY(-2px) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(0, 186, 124, 0); }
  50% { box-shadow: 0 0 18px rgba(0, 186, 124, 0.35); }
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(77, 139, 255, 0); }
  50% { box-shadow: 0 0 22px rgba(77, 139, 255, 0.45); }
}
@keyframes spinBtn {
  to { transform: rotate(360deg); }
}
@keyframes downloadIconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

[data-anim], .anim-section {
  opacity: 0;
}
[data-anim].anim-play, .anim-section.anim-play {
  animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.page-enter .page-title { animation: fadeInUp 0.5s ease forwards; }
.page-enter .page-subtitle { animation: fadeInUp 0.55s 0.05s ease forwards; opacity: 0; animation-fill-mode: forwards; }

.hero-logo.anim-float.anim-play { animation: fadeInUp 0.7s ease forwards, floatSoft 4s ease-in-out 0.8s infinite; }
.anim-hero-title.anim-play { animation: fadeInUp 0.6s ease forwards; }
.anim-hero-line.anim-play { animation: fadeInUp 0.55s ease forwards; }

.container { transition: opacity 0.25s ease; }

.nav-download {
  position: relative;
  font-weight: 600;
  color: var(--accent) !important;
}
.nav-download::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-download:hover::after { transform: scaleX(1); }

.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 960px) { .cabinet-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cabinet-grid { grid-template-columns: 1fr; } }

.cabinet-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}
.cabinet-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(77, 139, 255, 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.cabinet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(77, 139, 255, 0.14);
}
.cabinet-card:hover::before { opacity: 1; }

.cabinet-link-card .code-box { position: relative; overflow: hidden; }
.code-box-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  min-height: 72px;
  border: 1px solid rgba(77, 139, 255, 0.2);
}
.code-box-waiting::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(77, 139, 255, 0.12) 50%, transparent 70%);
  animation: shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}
.code-slot {
  font-size: 1.6rem;
  animation: codeSlotPulse 1.6s ease-in-out infinite;
}
.code-slot:nth-child(2) { animation-delay: 0.15s; }
.code-slot:nth-child(3) { animation-delay: 0.3s; }
.code-slot:nth-child(5) { animation-delay: 0.45s; }
.code-slot:nth-child(6) { animation-delay: 0.6s; }
.code-slot:nth-child(7) { animation-delay: 0.75s; }
.code-sep {
  margin: 0 0.2em;
  opacity: 0.5;
  font-size: 1.4rem;
}
.code-box-revealed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.08em;
  min-height: 72px;
  border-color: rgba(77, 139, 255, 0.55);
  box-shadow: 0 0 28px rgba(77, 139, 255, 0.2);
  animation: fadeIn 0.3s ease;
}
.code-digit {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: codeDigitPop 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--d, 0) * 0.07s);
  color: var(--accent);
  text-shadow: 0 0 16px rgba(77, 139, 255, 0.5);
}
.code-expires { transition: opacity 0.4s, transform 0.4s; opacity: 0.7; }
.code-expires.expires-visible { opacity: 1; transform: translateY(0); animation: fadeInUp 0.4s ease; }

.tariff-badge-anim { animation: badgeGlow 3s ease-in-out infinite; }
.expiry-glow { transition: color 0.3s; }
.cabinet-card:hover .expiry-glow { color: var(--accent); }

.cabinet-download-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.cabinet-download-card .download-card-icon {
  animation: downloadIconBounce 2.5s ease-in-out infinite;
}
@media (max-width: 640px) {
  .cabinet-download-card { grid-template-columns: 1fr; }
  .cabinet-download-card .btn-download { width: 100%; }
}

.btn-pulse:not(:disabled) { animation: btnPulse 2.5s ease-in-out infinite; }
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinBtn 0.7s linear infinite;
}

.download-card-main {
  transition: transform 0.35s, box-shadow 0.35s;
}
.download-card-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(77, 139, 255, 0.18);
}
.download-card-glow {
  animation: floatSoft 6s ease-in-out infinite;
}

.card-hover, .price-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
}
.alert {
  animation: fadeInUp 0.4s ease;
}

.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
  transform: translateY(-1px);
}

.profile-dropdown {
  animation: fadeInUp 0.25s ease;
}
.profile-dropdown.hidden { animation: none; }

.topbar {
  animation: fadeIn 0.4s ease;
}
.site-footer {
  animation: fadeIn 0.6s 0.2s ease backwards;
}

/* ——— Декоративные «окна» приложения на фоне ——— */
.app-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ah-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.ah-glow--1 {
  width: 420px;
  height: 420px;
  left: -8%;
  top: 8%;
  background: rgba(77, 139, 255, 0.14);
  animation: floatSoft 14s ease-in-out infinite;
}
.ah-glow--2 {
  width: 360px;
  height: 360px;
  right: -5%;
  bottom: 10%;
  background: rgba(61, 214, 140, 0.08);
  animation: floatSoft 18s ease-in-out 2s infinite reverse;
}
.ah-glow--3 {
  width: 280px;
  height: 280px;
  left: 42%;
  top: 55%;
  background: rgba(77, 139, 255, 0.06);
  animation: floatSoft 12s ease-in-out 1s infinite;
}

.ah-win {
  position: absolute;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(77, 139, 255, 0.12);
  background: rgba(22, 28, 40, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.3;
}

.ah-win--sidebar {
  left: 2%;
  top: 14%;
  width: 210px;
  padding: 16px 14px 14px;
  transform: rotate(-2.5deg);
  animation: ahFloatLeft 16s ease-in-out infinite;
}
.ah-win--main {
  right: -2%;
  top: 10%;
  width: min(540px, 52vw);
  padding: 14px 16px 12px;
  transform: rotate(1.2deg);
  animation: ahFloatRight 18s ease-in-out 1s infinite;
}
.ah-win--dpi {
  left: 18%;
  bottom: 8%;
  width: 260px;
  padding: 14px;
  transform: rotate(-1deg);
  opacity: 0.75;
  animation: ahFloatDpi 20s ease-in-out 0.5s infinite;
}

@keyframes ahFloatLeft {
  0%, 100% { transform: rotate(-2.5deg) translateY(0); }
  50% { transform: rotate(-2.5deg) translateY(-10px); }
}
@keyframes ahFloatRight {
  0%, 100% { transform: rotate(1.2deg) translateY(0); }
  50% { transform: rotate(1.2deg) translateY(8px); }
}
@keyframes ahFloatDpi {
  0%, 100% { transform: rotate(-1deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-6px); }
}

.ah-win-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}

.ah-mod {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(18, 24, 32, 0.65);
  border: 1px solid rgba(42, 52, 72, 0.7);
}
.ah-mod-name { font-weight: 600; color: #e2e8f0; font-size: 11px; }

.ah-sw {
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #3a4456;
  position: relative;
}
.ah-sw::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #94a3b8;
  transition: transform 0.2s;
}
.ah-sw--on {
  background: #4d8bff;
}
.ah-sw--on::after {
  transform: translateX(16px);
  background: #fff;
}

.ah-side-btn {
  height: 32px;
  margin: 10px 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(77, 139, 255, 0.25);
  background: rgba(26, 36, 56, 0.5);
}
.ah-side-nav {
  display: flex;
  justify-content: space-around;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(42, 52, 72, 0.5);
}
.ah-side-nav span {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(26, 36, 56, 0.6);
  border: 1px solid rgba(42, 52, 72, 0.5);
}

.ah-win-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(42, 52, 72, 0.5);
}
.ah-win-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4d8bff, #0a0e14 70%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ah-win-brand {
  font-weight: 700;
  color: #f1f5f9;
  font-size: 12px;
  margin-right: auto;
}
.ah-pill {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  border: 1px solid transparent;
}
.ah-pill--ok {
  color: #3dd68c;
  background: rgba(61, 214, 140, 0.12);
  border-color: rgba(61, 214, 140, 0.25);
}
.ah-pill--off {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.2);
}
.ah-pill--tg {
  color: #4d8bff;
  background: rgba(77, 139, 255, 0.12);
  border-color: rgba(77, 139, 255, 0.25);
}

.ah-win-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ah-win-h {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}
.ah-ver {
  font-size: 10px;
  color: #64748b;
}
.ah-badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
}
.ah-badge--ok {
  color: #3dd68c;
  background: rgba(61, 214, 140, 0.15);
  border: 1px solid rgba(61, 214, 140, 0.3);
}

.ah-tabs {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(42, 52, 72, 0.5);
}
.ah-tab {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}
.ah-tab--on {
  color: #4d8bff;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 #4d8bff;
  padding-bottom: 6px;
}

.ah-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.ah-chip {
  height: 24px;
  min-width: 72px;
  border-radius: 10px;
  background: rgba(26, 36, 56, 0.7);
  border: 1px solid rgba(42, 52, 72, 0.6);
}
.ah-chip--accent {
  min-width: 48px;
  background: rgba(77, 139, 255, 0.2);
  border-color: rgba(77, 139, 255, 0.35);
  color: #4d8bff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  height: 24px;
}
.ah-chip--sm {
  min-width: 56px;
  height: 20px;
  font-size: 8px;
}

.ah-table-head {
  display: grid;
  grid-template-columns: 72px 1fr 72px 52px;
  gap: 8px;
  font-size: 9px;
  color: #64748b;
  margin-bottom: 6px;
  padding: 0 4px;
}
.ah-rows { display: flex; flex-direction: column; gap: 6px; }
.ah-row {
  display: grid;
  grid-template-columns: 72px 1fr 72px 52px;
  gap: 8px;
  align-items: center;
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(18, 24, 32, 0.55);
  border: 1px solid rgba(42, 52, 72, 0.45);
}
.ah-flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  display: inline-block;
}
.ah-flag--fi { background: linear-gradient(180deg, #fff 38%, #003580 38%); }
.ah-flag--nl { background: linear-gradient(180deg, #ae1c28 33%, #fff 33% 66%, #21468b 66%); }
.ah-flag--de { background: linear-gradient(180deg, #000 33%, #dd0000 33% 66%, #ffce00 66%); }
.ah-flag--se { background: linear-gradient(90deg, #006aa7 38%, #fecc00 38% 42%, #006aa7 42%); }

.ah-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(100, 116, 139, 0.35);
  display: block;
}
.ah-line--xs { width: 60%; }
.ah-line--sm { width: 45%; }
.ah-line--md { width: 65%; }
.ah-line--lg { width: 80%; }

.ah-tag {
  font-size: 8px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  text-align: center;
  color: #4d8bff;
  background: rgba(77, 139, 255, 0.15);
  border: 1px solid rgba(77, 139, 255, 0.25);
}
.ah-tag--h2 { color: #93c5fd; }

.ah-ping {
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  text-align: right;
}
.ah-ping--good { color: #3dd68c; }

.ah-dpi-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ah-dpi-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(18, 24, 32, 0.5);
  border: 1px solid rgba(42, 52, 72, 0.45);
  font-weight: 600;
  color: #94a3b8;
}
.ah-dpi-item--on {
  border-color: rgba(77, 139, 255, 0.4);
  background: rgba(77, 139, 255, 0.08);
  color: #e2e8f0;
}
.ah-dpi-st {
  font-size: 8px;
  font-weight: 500;
  color: #64748b;
}
.ah-dpi-item--on .ah-dpi-st { color: #3dd68c; }

.anim-auth-card { position: relative; z-index: 2; }

@media (max-width: 1100px) {
  .ah-win--main { width: min(480px, 58vw); right: -6%; opacity: 0.85; }
  .ah-win--dpi { left: 8%; width: 220px; }
}

@media (max-width: 860px) {
  .app-scene { opacity: 0.55; }
  .ah-win--main { display: none; }
  .ah-win--sidebar { left: -4%; width: 180px; }
  .ah-win--dpi { bottom: 12%; left: auto; right: -2%; width: 200px; }
}

@media (max-width: 560px) {
  .app-scene { opacity: 0.35; }
  .ah-win--sidebar,
  .ah-win--dpi { transform: scale(0.85); }
  .topbar { width: calc(100% - 24px); margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ah-win--sidebar,
  .ah-win--main,
  .ah-win--dpi,
  .ah-glow,
  .ah-coin { animation: none !important; }
}

/* ——— Летающие монеты (только главная) ——— */
.app-scene { perspective: 900px; transform-style: preserve-3d; }
.ah-coins {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.ah-coin {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #ffe9a8 0%, #f0c14b 38%, #b8860b 72%, #7a5a12 100%);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 -5px 10px rgba(0, 0, 0, 0.22),
    inset 0 3px 6px rgba(255, 255, 255, 0.35);
}
.ah-coin::after {
  content: "₽";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: rgba(90, 55, 8, 0.75);
}
.ah-coin--tl { left: 4%; top: 10%; transform: translateZ(140px) scale(1.2) rotate(-8deg); animation: coinFloatTl 11s ease-in-out infinite; }
.ah-coin--tr { right: 3%; top: 16%; transform: translateZ(50px) scale(0.82) rotate(12deg); animation: coinFloatTr 13s ease-in-out 0.6s infinite; }
.ah-coin--bl { left: 8%; bottom: 12%; transform: translateZ(90px) scale(1.05) rotate(6deg); animation: coinFloatBl 12s ease-in-out 1.2s infinite; }
.ah-coin--br { right: 6%; bottom: 10%; transform: translateZ(30px) scale(0.72) rotate(-14deg); animation: coinFloatBr 14s ease-in-out 0.3s infinite; }
@keyframes coinFloatTl {
  0%, 100% { transform: translateZ(140px) scale(1.2) rotate(-8deg) translateY(0); }
  50% { transform: translateZ(140px) scale(1.2) rotate(-5deg) translateY(-14px); }
}
@keyframes coinFloatTr {
  0%, 100% { transform: translateZ(50px) scale(0.82) rotate(12deg) translateY(0); }
  50% { transform: translateZ(50px) scale(0.82) rotate(8deg) translateY(10px); }
}
@keyframes coinFloatBl {
  0%, 100% { transform: translateZ(90px) scale(1.05) rotate(6deg) translateY(0); }
  50% { transform: translateZ(90px) scale(1.05) rotate(3deg) translateY(-8px); }
}
@keyframes coinFloatBr {
  0%, 100% { transform: translateZ(30px) scale(0.72) rotate(-14deg) translateY(0); }
  50% { transform: translateZ(30px) scale(0.72) rotate(-10deg) translateY(12px); }
}

/* ——— Профиль и уведомления ——— */
.profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(77, 139, 255, 0.35);
  background: linear-gradient(135deg, rgba(26, 36, 56, 0.95), rgba(15, 22, 34, 0.95));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 8px 24px rgba(0,0,0,0.25);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.profile-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(77,139,255,0.2), 0 10px 28px rgba(77,139,255,0.15);
}
.profile-btn[aria-expanded="true"] .profile-chevron { transform: rotate(180deg); }
.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  background: linear-gradient(145deg, #4d8bff, #3b6fdb);
}
.profile-label { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); }
.profile-chevron { opacity: 0.7; transition: transform 0.2s; flex-shrink: 0; }
.notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(26, 36, 56, 0.8);
  color: var(--text);
  cursor: pointer;
}
.notif-btn:hover { border-color: var(--accent); color: var(--accent); }
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.notif-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(340px, 92vw);
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--border-soft);
  background: rgba(11, 17, 27, 0.98);
  border-radius: var(--radius-sm);
  padding: 10px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  z-index: 60;
}
.notif-item { padding: 10px; border-radius: 10px; margin-bottom: 8px; background: rgba(255,255,255,0.03); }
.notif-item--mandatory { border: 1px solid rgba(251, 191, 36, 0.35); }
.mandatory-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 8, 16, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mandatory-card { max-width: 420px; width: 100%; padding: 24px; text-align: center; }

/* ——— VLESS кабинет ——— */
.vpn-sub-box--locked .vpn-url-fake {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #121a28;
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
}
.vpn-fake-chunk {
  display: block;
  height: 10px;
  flex: 1;
  border-radius: 6px;
  background: linear-gradient(90deg, #334155, #475569, #334155);
}
.vpn-fake-chunk.short { flex: 0.45; }
.vpn-qr-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  width: 100%;
}
.vpn-qr-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.vpn-qr-caption {
  margin: 0;
  max-width: 220px;
}
.vpn-qr-frame {
  position: relative;
  width: 200px;
  height: 200px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  box-shadow: 0 12px 32px rgba(77, 139, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vpn-qr-img {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 8px;
  image-rendering: pixelated;
}
.vpn-qr-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.08) 50%, transparent 50%),
    linear-gradient(rgba(15, 23, 42, 0.08) 50%, transparent 50%);
  background-size: 14px 14px;
  background-color: #f1f5f9;
}
.vpn-qr-wrap--locked .vpn-qr-frame .vpn-qr-img,
.vpn-qr-wrap--locked .vpn-qr-frame .vpn-qr-placeholder {
  filter: blur(10px);
  opacity: 0.35;
}
.vpn-qr-lock {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.25);
}
.vpn-platform-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.vpn-platform-label {
  margin: 0 0 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.vpn-platform-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.vpn-platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(22, 33, 52, 0.92), rgba(11, 17, 27, 0.96));
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  color: var(--text);
  text-align: center;
}
.vpn-platform-card:hover {
  border-color: rgba(77, 139, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(77, 139, 255, 0.12);
}
.vpn-platform-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(77, 139, 255, 0.35), 0 14px 36px rgba(77, 139, 255, 0.2);
  background: linear-gradient(165deg, rgba(32, 48, 78, 0.95), rgba(14, 22, 38, 0.98));
}
.vpn-platform-card--beta.active {
  border-color: rgba(245, 166, 35, 0.65);
  box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.35), 0 14px 36px rgba(245, 166, 35, 0.15);
}
.vpn-platform-name .beta-tag {
  margin-left: 4px;
  font-size: 0.58rem;
  padding: 1px 6px;
  vertical-align: middle;
}
.vpn-app-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vpn-app-card--linux {
  border-color: rgba(245, 166, 35, 0.25);
}
.vpn-app-foot {
  margin: 10px 0 0;
  line-height: 1.45;
}
.vpn-app-foot code {
  font-size: 0.85em;
}
.vpn-platform-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(77, 139, 255, 0.1);
  color: #7eb0ff;
}
.vpn-platform-card.active .vpn-platform-icon {
  background: rgba(77, 139, 255, 0.22);
  color: #a8c8ff;
}
.vpn-platform-name {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}
.vpn-platform-hint {
  font-size: 0.72rem;
  color: var(--muted);
}
.vpn-platform-panel {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
}
@media (max-width: 900px) {
  .vpn-platform-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vpn-platform-picker { grid-template-columns: 1fr; }
  .vpn-platform-card {
    flex-direction: row;
    justify-content: flex-start;
    padding: 14px 16px;
    text-align: left;
  }
  .vpn-platform-icon { width: 48px; height: 48px; flex-shrink: 0; }
}
.vpn-app-link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.vpn-app-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.vpn-app-card--featured { border-color: rgba(77, 139, 255, 0.35); }
.nav-links a { position: relative; }
.nav-link-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.site-menu-item.nav-link--unread:not(.site-menu-item--active) {
  color: var(--text);
}
.support-row--new { background: rgba(77, 139, 255, 0.08); }
.support-row--closed { opacity: 0.72; }
.support-row-link { cursor: pointer; }
.support-back { margin: 0 0 12px; }
.support-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.support-chat-head h3 { margin: 0 0 4px; }
.support-chat-card--closed { border-color: rgba(148, 163, 184, 0.25); }
.support-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
}
.support-status--open { color: #86efac; background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.3); }
.support-status--answered { color: #93c5fd; background: rgba(77, 139, 255, 0.12); border-color: rgba(77, 139, 255, 0.3); }
.support-status--closed { color: #cbd5e1; background: rgba(148, 163, 184, 0.12); border-color: rgba(148, 163, 184, 0.25); }
.support-messages--flash {
  animation: supportFlash 1.1s ease;
}
@keyframes supportFlash {
  0%, 100% { box-shadow: none; }
  35% { box-shadow: inset 0 0 0 2px rgba(77, 139, 255, 0.45); }
}
.notif-item--support { border: 1px solid rgba(77, 139, 255, 0.28); }
.support-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(77, 139, 255, 0.18);
  border: 1px solid rgba(77, 139, 255, 0.35);
}
.support-chat-card { margin-top: 8px; }
.support-messages { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow: auto; padding-right: 4px; }
.support-messages--tall { max-height: 480px; }
.support-msg {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.support-msg--admin { border-color: rgba(77, 139, 255, 0.35); background: rgba(77, 139, 255, 0.08); }
.support-form-actions { flex-wrap: wrap; gap: 8px; }
.btn-outline-danger {
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
}
.btn-outline-danger:hover {
  border-color: #ef4444;
  color: #fff;
  background: rgba(239, 68, 68, 0.22);
}
.check-line { display: flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 0.95rem; }
