:root {
  --bg: #060d1a;
  --bg2: #0a1628;
  --panel: rgba(12, 28, 52, 0.82);
  --panel-border: rgba(56, 189, 248, 0.35);
  --text: #e8f4ff;
  --muted: #7da8c8;
  --gold: #f5a623;
  --gold2: #ffcc66;
  --cyan: #38bdf8;
  --cyan-dim: #0ea5e9;
  --danger: #f87171;
  --ok: #4ade80;
  --hud-glow: rgba(56, 189, 248, 0.15);
  --gold-glow: rgba(245, 166, 35, 0.2);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px) 0 0 / 48px 48px;
  opacity: 0.5;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--hud-glow), transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 80%, var(--gold-glow), transparent 50%);
  z-index: 0;
}

.hud-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.08) inset,
    0 0 24px var(--hud-glow),
    0 20px 50px rgba(0, 0, 0, 0.45);
  position: relative;
}

.hud-panel::before,
.hud-panel::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--cyan);
  opacity: 0.7;
}

.hud-panel::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.hud-panel::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

/* Landing */
.landing {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.landing-card {
  max-width: 420px;
  width: 100%;
  padding: 36px 28px 32px;
  text-align: center;
}

.logo-ring {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--gold-glow), 0 0 60px var(--hud-glow);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px var(--gold-glow); }
  50% { box-shadow: 0 0 40px var(--gold-glow), 0 0 50px var(--hud-glow); }
}

.logo-core {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--gold2);
  letter-spacing: 0.08em;
}

.landing h1 {
  margin: 0 0 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
}

.tagline { color: var(--muted); margin: 0 0 28px; font-size: 16px; }

.hint { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
  color: #0a1628;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
  box-shadow: 0 4px 24px var(--gold-glow);
}

.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: scale(0.98); }

.hidden { display: none !important; }

/* Cabinet — компактный ЛК как avoqo */
.cabinet-page { position: relative; z-index: 1; }
body.menu-open { overflow: hidden; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 440px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(6, 13, 26, 0.92);
  backdrop-filter: blur(10px);
}

.brand { text-decoration: none; color: inherit; }

.logo-mini {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--gold2);
  border: 1px solid var(--gold);
  padding: 6px 10px;
  border-radius: 3px;
}

.menu-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Оконное меню (fullscreen overlay) */
.menu-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 32px;
}

.menu-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}

.menu-modal:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.menu-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 38, 0.88);
  backdrop-filter: blur(6px);
}

.menu-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 210;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.menu-modal-body {
  position: relative;
  z-index: 205;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: menuPop 0.28s ease-out;
}

@keyframes menuPop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.menu-tabs {
  display: flex;
  gap: 16px;
  align-items: center;
}

.menu-tab {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-tab:disabled { opacity: 0.35; cursor: default; }

.tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  border-radius: 12px;
}

.tab-icon-active {
  background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
  color: #0a1628;
  box-shadow: 0 0 28px var(--gold-glow), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.menu-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.96);
  color: #0f172a;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(245, 166, 35, 0.25),
    0 8px 32px rgba(245, 166, 35, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s, box-shadow 0.12s;
}

.menu-item:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.35),
    0 10px 36px rgba(56, 189, 248, 0.2);
}

.menu-item-icon { font-size: 18px; opacity: 0.85; }

.menu-item-danger { color: #991b1b; }

/* ЛК ячейки */
.lk-wrap {
  max-width: 440px;
  margin: 0 auto;
  padding: 8px 14px 48px;
  position: relative;
  z-index: 1;
}

.view { display: none; flex-direction: column; gap: 12px; }
.view.active { display: flex; }

.cell {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(12, 28, 52, 0.75);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cell:hover {
  border-color: rgba(245, 166, 35, 0.45);
  box-shadow: 0 0 20px var(--gold-glow);
}

.cell-tariff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cell-inner { flex: 1; min-width: 0; }

.cell-title {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.cell-value {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold2);
}

.cell-sub {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

.cell-chevron {
  font-size: 22px;
  color: var(--muted);
  flex-shrink: 0;
}

.cell-block {
  cursor: default;
}

.cell-block:hover {
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cell-heading {
  margin: 0 0 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cell-desc {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}

.cell-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cell-half {
  padding: 14px 12px;
  min-height: 72px;
}

.cell-half .cell-title { font-size: 12px; }

.cell-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.key-box.compact {
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.key-value {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  word-break: break-all;
  color: var(--gold2);
  line-height: 1.45;
}

.key-actions {
  display: flex;
  gap: 8px;
}

.btn-sao {
  flex: 1;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #0a1628;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.btn-sao-outline {
  padding: 12px 16px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: transparent;
  color: var(--cyan);
  font-weight: 700;
  cursor: pointer;
}

.btn-full { width: 100%; display: block; text-align: center; text-decoration: none; }

.import-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.import-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

.import-btn:hover { border-color: var(--gold); }

.import-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e40af, var(--cyan-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
}

.qr-wrap {
  margin-top: 10px;
  text-align: center;
}

.qr-wrap img {
  background: #fff;
  padding: 6px;
  border-radius: 8px;
}

.back-link {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 4px;
}

.view-title {
  margin: 0 0 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
}

.tariff-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 400px) {
  .tariff-columns { grid-template-columns: 1fr; }
  .cell-split { grid-template-columns: 1fr; }
}

.tariff-stack { display: flex; flex-direction: column; gap: 8px; }

.stack-title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stack-standard { color: var(--cyan); }
.stack-plus { color: var(--gold2); }

.tariff-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.tariff-cell.selected {
  border-color: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow);
}

.cell-period { font-weight: 700; font-size: 14px; }
.cell-price {
  font-family: "Orbitron", sans-serif;
  font-size: 17px;
  color: var(--gold2);
}
.cell-meta { font-size: 12px; color: var(--muted); }
.cell-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  color: var(--ok);
  font-weight: 700;
}

.pay-hint {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 0;
}

.btn-sao:disabled { opacity: 0.45; cursor: not-allowed; }

.input-sao {
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 16px;
}

.email-form { display: flex; flex-direction: column; gap: 8px; }
.code-row { display: flex; gap: 8px; margin-top: 8px; }
.code-row .input-sao { flex: 1; margin: 0; }

.auth-status { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.auth-status.ok { color: var(--ok); }

.otp-onscreen {
  margin: 12px 0;
  padding: 14px;
  border: 2px solid var(--gold);
  border-radius: 10px;
  background: rgba(245, 166, 35, 0.12);
  text-align: center;
}

.otp-onscreen-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.otp-onscreen-code {
  font-family: "Orbitron", sans-serif;
  font-size: 32px;
  letter-spacing: 0.2em;
  color: var(--gold2);
}

.btn-tg-link { color: #0a1628 !important; }

.app-link {
  display: block;
  padding: 12px 0;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  background: linear-gradient(135deg, var(--cyan-dim), #0369a1);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 300;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

  background: rgba(6, 13, 26, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-mini {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--gold2);
  border: 1px solid var(--gold);
  padding: 4px 8px;
  border-radius: 2px;
}

.brand-text {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--cyan-dim), #1e3a5f);
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  color: #fff;
}

.hidden { display: none !important; }

/* Tariff bar (top) */
.tariff-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.tariff-bar::before,
.tariff-bar::after { display: none; }

.tariff-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.tariff-bar-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
  font-weight: 700;
}

.tariff-bar-info { flex: 1; min-width: 140px; }

.tariff-empty {
  color: var(--gold2);
  font-weight: 700;
  font-size: 16px;
}

.tariff-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.tariff-selected strong {
  font-family: "Orbitron", sans-serif;
  color: #fff;
  font-size: 15px;
}

.tariff-selected #tariffPrice {
  color: var(--gold2);
  font-weight: 700;
}

.tariff-period { color: var(--muted); font-size: 14px; }

.tariff-bar-btn {
  padding: 8px 14px;
  border: 1px solid var(--panel-border);
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border-radius: 2px;
}

.tariff-bar-btn:hover { background: rgba(56, 189, 248, 0.2); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.2s, opacity 0.2s;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
  opacity: 1;
  transition: opacity 0.25s;
}

.drawer-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(280px, 88vw);
  height: 100vh;
  z-index: 50;
  padding: 56px 0 20px;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
  border-top: 0;
  border-bottom: 0;
  border-right: 0;
  display: flex;
  flex-direction: column;
}

.side-drawer.open {
  transform: translateX(0);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding: 8px 10px;
}

.side-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.side-link:hover {
  color: var(--text);
  background: rgba(56, 189, 248, 0.08);
}

.side-link.active {
  color: var(--gold2);
  border-left-color: var(--gold);
  background: rgba(245, 166, 35, 0.1);
}

.side-logout {
  margin: 12px 10px 0;
  padding: 12px 14px;
  color: var(--danger);
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.side-logout:hover {
  background: rgba(248, 113, 113, 0.08);
  border-left-color: var(--danger);
}

.layout-single {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.content { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.panel { display: none; flex-direction: column; gap: 16px; }
.panel.active { display: flex; }

/* Tariff picker */
.tariff-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .tariff-columns { grid-template-columns: 1fr; }
}

.tariff-stack { display: flex; flex-direction: column; gap: 10px; }

.stack-title {
  margin: 0 0 4px;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.stack-standard { color: var(--cyan); }
.stack-plus { color: var(--gold2); }

.tariff-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 14px 12px;
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tariff-cell:hover {
  border-color: var(--cyan);
}

.tariff-cell.selected {
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}

.tariff-cell-plus.selected {
  border-color: var(--gold);
}

.cell-period { font-weight: 700; font-size: 16px; }
.cell-price {
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
  color: var(--gold2);
}
.cell-meta { font-size: 13px; color: var(--muted); }
.cell-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ok);
  background: rgba(74, 222, 128, 0.15);
  padding: 2px 6px;
  border-radius: 2px;
}

.pay-hint {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.btn-sm { padding: 10px 16px; font-size: 13px; width: auto; }

/* Auth */
.auth-block { margin-bottom: 8px; }
.auth-block-title {
  margin: 0 0 6px;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 0.06em;
}
.auth-desc { margin: 0 0 12px; color: var(--muted); font-size: 14px; }

.btn-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--panel-border);
  border-radius: 2px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.btn-auth-tg {
  background: linear-gradient(135deg, #229ed9 0%, #1784b5 100%);
  color: #fff;
  border-color: #229ed9;
}

.btn-auth-tg:hover {
  box-shadow: 0 0 20px rgba(34, 158, 217, 0.35);
}

.auth-icon {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
}

.auth-status {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.auth-status.ok { color: var(--ok); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(56, 189, 248, 0.2);
}

.email-form,
.code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.input-hud {
  flex: 1;
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-size: 16px;
  border-radius: 2px;
}

.input-hud:focus {
  outline: none;
  border-color: var(--cyan);
}

.placeholder-panel h1 {
  margin: 0 0 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
}

.placeholder-panel p { margin: 0; color: var(--muted); }

.status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 15px;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

.status-exp { margin-left: auto; color: var(--cyan); font-weight: 600; }

.main-card { padding: 22px 20px 20px; }

.card-head h1 {
  margin: 0 0 6px;
  font-family: "Orbitron", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.card-head p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

.key-box {
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 2px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.key-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 8px;
  font-weight: 700;
}

.key-value {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 12px;
  word-break: break-all;
  color: var(--gold2);
  line-height: 1.5;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions-row .btn-primary { width: auto; flex: 1; min-width: 180px; }

.btn-ghost {
  padding: 14px 18px;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--cyan);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border-radius: 2px;
}

.btn-ghost:hover { background: rgba(56, 189, 248, 0.1); }

.qr-wrap {
  margin-top: 14px;
  text-align: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.qr-wrap img {
  border-radius: 4px;
  background: #fff;
  padding: 8px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(56, 189, 248, 0.2);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 520px) {
  .app-grid { grid-template-columns: 1fr; }
}

.app-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  cursor: pointer;
  border-radius: 2px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.app-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow);
}

.app-icon {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: linear-gradient(135deg, #1e40af, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
}

.warn-demo {
  margin: 16px 0 0;
  padding: 10px 12px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.35);
  color: var(--gold2);
  font-size: 14px;
  border-radius: 2px;
}

.btn-tg {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--panel-border);
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  border-radius: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.btn-tg:hover { color: var(--cyan); border-color: var(--cyan); }

.stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  overflow: hidden;
}

@media (max-width: 600px) {
  .stats-card { grid-template-columns: 1fr; }
}

.stat {
  padding: 16px 18px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.stat + .stat { border-left: 1px solid rgba(56, 189, 248, 0.15); }

@media (max-width: 600px) {
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(56, 189, 248, 0.15); }
}

.stat-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-value {
  font-family: "Orbitron", sans-serif;
  font-size: 15px;
  color: var(--gold2);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: linear-gradient(135deg, var(--cyan-dim), #0369a1);
  color: #fff;
  padding: 10px 18px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
  box-shadow: 0 8px 30px var(--hud-glow);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
