/* Aurora VPN — Личный кабинет (aurora-id-panel v2, collapsible desktop) */

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== CSS Variables (как в admin.theme.css) ===== */
:root {
  --admin-block-bg: rgba(0, 0, 0, 0.25);
  --admin-block-border: rgba(255, 255, 255, 0.06);
  --admin-block-radius: 12px;
  --admin-block-bg-strong: rgba(0, 0, 0, 0.35);
  --admin-input-bg: rgba(0, 0, 0, 0.35);
  --aurora-accent: rgba(139, 92, 246, 0.52);
  --aurora-accent-dim: rgba(139, 92, 246, 0.12);
  --aurora-bg1: #050810;
  --aurora-bg2: #0a101c;
  --aurora-success: #35c27c;
  --aurora-danger: #ff5d6c;
  --aurora-warning: #ffb02e;
  --text: #e8eaef;
  --muted: #6b7280;
  --text-subtle: #4b5563;
  --border: var(--admin-block-border);
  --shadow: 0 10px 30px rgba(0,0,0,.35), 0 3px 10px rgba(0,0,0,.2);
}

/* ===== Фон: шум + орбы (как в admin) ===== */
html {
  background-color: #0a0b0f;
}
html:has(body.account-page) {
  color-scheme: dark;
  background-color: #050810;
}
html, body { height: 100%; }
body {
  font-family: "Manrope", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  background: #0a0b0f;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}
body.account-page {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

/* ПК: фиксированный фон — тёмный, нейтральный, без фиолетового перебора */
@media (min-width: 769px) {
  html:has(body.account-page:not(.account-sidebar-layout)) {
    background-color: #060708;
  }

  body.account-page:not(.account-sidebar-layout) {
    background: #060708;
  }

  body.account-page:not(.account-sidebar-layout)::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 70% 45% at 18% 10%, rgba(59, 130, 246, 0.045), transparent 58%),
      radial-gradient(ellipse 60% 40% at 82% 88%, rgba(51, 65, 85, 0.06), transparent 56%),
      linear-gradient(180deg, #060708 0%, #0a0b0f 46%, #050608 100%);
  }

  body.account-page:not(.account-sidebar-layout)::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 90% 70% at 50% 48%, transparent 38%, rgba(0, 0, 0, 0.3) 100%);
  }

  body.account-page .admin-bg-noise {
    opacity: 0.026;
    animation: account-noise-pulse 10s ease-in-out infinite;
  }

  body.account-page .admin-bg-orb {
    filter: blur(88px);
    opacity: 0.4;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
  }

  body.account-page .admin-bg-orb--1 {
    background: rgba(59, 130, 246, 0.14);
    animation: account-orb-glow-1 22s ease-in-out infinite;
  }

  body.account-page .admin-bg-orb--2 {
    background: rgba(51, 65, 85, 0.12);
    animation: account-orb-glow-2 26s ease-in-out infinite;
    animation-delay: -7s;
  }

  body.account-page .admin-bg-orb--3 {
    background: rgba(30, 41, 59, 0.1);
    animation: account-orb-glow-3 20s ease-in-out infinite;
    animation-delay: -11s;
  }
}

.admin-bg-noise {
  position: fixed;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.admin-bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: admin-orb-float 18s ease-in-out infinite;
}
.admin-bg-orb--1 {
  width: min(70vmax, 420px);
  height: min(70vmax, 420px);
  background: rgba(99, 102, 241, 0.4);
  top: -20%;
  left: -10%;
  animation-delay: 0s;
}
.admin-bg-orb--2 {
  width: min(50vmax, 320px);
  height: min(50vmax, 320px);
  background: rgba(139, 92, 246, 0.35);
  bottom: -15%;
  right: -5%;
  animation-delay: -6s;
}
.admin-bg-orb--3 {
  width: min(40vmax, 240px);
  height: min(40vmax, 240px);
  background: rgba(236, 72, 153, 0.25);
  top: 50%;
  left: 50%;
  animation-delay: -12s;
  animation-duration: 22s;
  animation-name: admin-orb-float-center;
}
@keyframes admin-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, -4%) scale(1.05); }
  66% { transform: translate(-2%, 3%) scale(0.98); }
}
@keyframes admin-orb-float-center {
  0%, 100% { transform: translate(-50%, -50%) translate(0, 0) scale(1); }
  33% { transform: translate(-50%, -50%) translate(3%, -4%) scale(1.05); }
  66% { transform: translate(-50%, -50%) translate(-2%, 3%) scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  .admin-bg-orb { animation: none; }
  body.account-page .admin-bg-noise { animation: none; }
}

/* ===== Живой фон ЛК: только opacity/scale, без сдвига слоёв ===== */
@keyframes account-noise-pulse {
  0%, 100% { opacity: 0.022; }
  50% { opacity: 0.034; }
}

@keyframes account-orb-glow-1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.38; }
  50% { transform: translate(0, 0) scale(1.08); opacity: 0.52; }
}

@keyframes account-orb-glow-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.36; }
  50% { transform: translate(0, 0) scale(1.06); opacity: 0.5; }
}

@keyframes account-orb-glow-3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.32; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.46; }
}

/* ===== App & Topbar (как в admin) ===== */
.account-app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
}

/* Мягкий ambient-слой: aurora, shimmer, звёзды — без translate слоёв */
.account-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: transparent;
}

.account-ambient__aurora {
  position: absolute;
  left: 50%;
  width: 130%;
  height: 52%;
  border-radius: 45%;
  filter: blur(72px);
  mix-blend-mode: screen;
  transform: translateX(-50%);
  transform-origin: center center;
  will-change: opacity, transform;
}

.account-ambient__aurora--1 {
  top: -12%;
  background:
    linear-gradient(100deg,
      transparent 8%,
      rgba(59, 130, 246, 0.22) 32%,
      rgba(125, 211, 252, 0.14) 52%,
      transparent 78%);
  animation: account-aurora-glow-1 13s ease-in-out infinite;
}

.account-ambient__aurora--2 {
  top: 28%;
  background:
    linear-gradient(115deg,
      transparent 10%,
      rgba(99, 102, 241, 0.16) 38%,
      rgba(139, 92, 246, 0.1) 58%,
      transparent 82%);
  animation: account-aurora-glow-2 17s ease-in-out infinite;
  animation-delay: -5s;
}

.account-ambient__aurora--3 {
  top: 58%;
  height: 48%;
  background:
    linear-gradient(95deg,
      transparent 12%,
      rgba(51, 65, 85, 0.2) 40%,
      rgba(59, 130, 246, 0.12) 62%,
      transparent 86%);
  animation: account-aurora-glow-3 21s ease-in-out infinite;
  animation-delay: -9s;
}

.account-ambient__shimmer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 50%, rgba(147, 197, 253, 0.05), transparent 70%);
  animation: account-shimmer-glow 9s ease-in-out infinite;
  mix-blend-mode: screen;
}

.account-ambient__stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  opacity: 0.55;
  box-shadow:
    8vw 11vh 0 0.5px rgba(226, 232, 240, 0.34),
    17vw 24vh 0 0.5px rgba(191, 219, 254, 0.26),
    26vw 8vh 0 0.5px rgba(203, 213, 225, 0.22),
    34vw 38vh 0 0.5px rgba(226, 232, 240, 0.2),
    42vw 16vh 0 0.5px rgba(147, 197, 253, 0.24),
    51vw 52vh 0 0.5px rgba(226, 232, 240, 0.18),
    58vw 28vh 0 0.5px rgba(191, 219, 254, 0.22),
    66vw 62vh 0 0.5px rgba(203, 213, 225, 0.16),
    73vw 14vh 0 0.5px rgba(226, 232, 240, 0.28),
    81vw 44vh 0 0.5px rgba(147, 197, 253, 0.2),
    88vw 72vh 0 0.5px rgba(191, 219, 254, 0.18),
    12vw 58vh 0 0.5px rgba(226, 232, 240, 0.2),
    22vw 78vh 0 0.5px rgba(203, 213, 225, 0.16),
    47vw 68vh 0 0.5px rgba(147, 197, 253, 0.14),
    92vw 32vh 0 0.5px rgba(226, 232, 240, 0.22),
    6vw 36vh 0 0.5px rgba(191, 219, 254, 0.18),
    38vw 82vh 0 0.5px rgba(226, 232, 240, 0.14),
    62vw 86vh 0 0.5px rgba(203, 213, 225, 0.12),
    78vw 8vh 0 0.5px rgba(147, 197, 253, 0.2),
    95vw 58vh 0 0.5px rgba(226, 232, 240, 0.16);
  animation: account-ambient-twinkle 4.5s ease-in-out infinite;
}

.account-ambient__stars--slow {
  opacity: 0.35;
  box-shadow:
    4vw 19vh 0 0.5px rgba(191, 219, 254, 0.2),
    19vw 42vh 0 0.5px rgba(226, 232, 240, 0.16),
    31vw 61vh 0 0.5px rgba(147, 197, 253, 0.18),
    44vw 9vh 0 0.5px rgba(203, 213, 225, 0.14),
    55vw 74vh 0 0.5px rgba(226, 232, 240, 0.12),
    69vw 47vh 0 0.5px rgba(191, 219, 254, 0.16),
    84vw 19vh 0 0.5px rgba(147, 197, 253, 0.14),
    14vw 89vh 0 0.5px rgba(226, 232, 240, 0.1),
    28vw 31vh 0 0.5px rgba(203, 213, 225, 0.12),
    71vw 81vh 0 0.5px rgba(191, 219, 254, 0.1);
  animation: account-ambient-twinkle 8s ease-in-out infinite reverse;
  animation-delay: -3s;
}

.account-ambient__mote {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.42;
  will-change: opacity, transform;
  animation: account-mote-breathe 12s ease-in-out infinite;
}

.account-ambient__mote--1 {
  width: min(28vmax, 220px);
  height: min(28vmax, 220px);
  top: 8%;
  left: 6%;
  background: rgba(59, 130, 246, 0.2);
  animation-duration: 11s;
}

.account-ambient__mote--2 {
  width: min(22vmax, 180px);
  height: min(22vmax, 180px);
  top: 58%;
  left: 72%;
  background: rgba(51, 65, 85, 0.24);
  animation-duration: 14s;
  animation-delay: -4s;
}

.account-ambient__mote--3 {
  width: min(18vmax, 140px);
  height: min(18vmax, 140px);
  top: 22%;
  left: 78%;
  background: rgba(96, 165, 250, 0.16);
  animation-duration: 10s;
  animation-delay: -7s;
}

.account-ambient__mote--4 {
  width: min(24vmax, 190px);
  height: min(24vmax, 190px);
  top: 72%;
  left: 18%;
  background: rgba(71, 85, 105, 0.22);
  animation-duration: 13s;
  animation-delay: -2s;
}

.account-ambient__mote--5 {
  width: min(16vmax, 120px);
  height: min(16vmax, 120px);
  top: 42%;
  left: 44%;
  background: rgba(125, 211, 252, 0.14);
  animation-duration: 9s;
  animation-delay: -5s;
}

@keyframes account-aurora-glow-1 {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.3; }
  50% { transform: translateX(-50%) scale(1.06); opacity: 0.55; }
}

@keyframes account-aurora-glow-2 {
  0%, 100% { transform: translateX(-50%) scale(1.02); opacity: 0.22; }
  50% { transform: translateX(-50%) scale(1.08); opacity: 0.42; }
}

@keyframes account-aurora-glow-3 {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.26; }
  50% { transform: translateX(-50%) scale(1.05); opacity: 0.48; }
}

@keyframes account-shimmer-glow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.72; }
}

@keyframes account-ambient-twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.82; }
}

@keyframes account-mote-breathe {
  0%, 100% { opacity: 0.34; transform: scale(1); }
  50% { opacity: 0.58; transform: scale(1.08); }
}

@media (max-width: 768px) {
  body.account-page:not(.account-sidebar-layout) .admin-bg-noise {
    animation: account-noise-pulse 8s ease-in-out infinite;
  }

  body.account-page:not(.account-sidebar-layout) .admin-bg-orb--1 {
    animation: account-orb-glow-1 20s ease-in-out infinite;
  }

  body.account-page:not(.account-sidebar-layout) .admin-bg-orb--2 {
    animation: account-orb-glow-2 24s ease-in-out infinite;
    animation-delay: -6s;
  }

  body.account-page:not(.account-sidebar-layout) .admin-bg-orb--3 {
    animation: account-orb-glow-3 18s ease-in-out infinite;
    animation-delay: -10s;
  }

  body.account-page:not(.account-sidebar-layout) .account-ambient__aurora {
    filter: blur(88px);
  }

  body.account-page:not(.account-sidebar-layout) .account-ambient__stars {
    animation-duration: 5.5s;
  }

  body.account-page:not(.account-sidebar-layout) .account-ambient__mote {
    filter: blur(64px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-ambient__stars,
  .account-ambient__mote,
  .account-ambient__aurora,
  .account-ambient__shimmer {
    animation: none;
  }
}
.account-desk { position: relative; z-index: 1; flex: 1; max-width: 1100px; margin: 0 auto; width: 100%; padding: 12px 20px 24px; }

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  margin: 0 auto 12px;
  max-width: 1100px;
  width: 100%;
  background: var(--admin-block-bg);
  border: 1px solid var(--admin-block-border);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.topbar .topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.topbar .topbar-brand-icon {
  flex-shrink: 0;
}
.topbar .topbar-brand-text {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.topbar .topbar-brand:hover .topbar-brand-text {
  color: #fff;
}
.topbar .account-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.topbar .tab-link {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--admin-block-border);
  background: var(--admin-block-bg);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, border-color .2s, transform .12s;
}
.topbar .tab-link:hover {
  background: var(--admin-block-bg-strong);
  border-color: var(--admin-block-border);
  color: #fff;
  transform: translateY(-1px);
}
.topbar .tab-link--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar .tab-link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.topbar .tab-link-icon--telegram {
  color: currentColor;
}
.topbar .tab-link--primary {
  background: var(--aurora-accent);
  border-color: var(--aurora-accent);
  color: #fff;
}
.topbar .tab-link--primary:hover {
  background: rgba(139, 92, 246, 0.7);
  border-color: rgba(139, 92, 246, 0.8);
}
.topbar .user {
  display: flex;
  gap: 8px;
  align-items: center;
}
.topbar .user-name {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.topbar .user .ghost {
  padding: 6px 12px;
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
}

/* Buttons (как в admin) */
button.primary, .primary {
  background: var(--aurora-accent);
  border: 1px solid var(--aurora-accent);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s, box-shadow .2s, background .2s;
}
button.primary:hover, .primary:hover {
  background: rgba(139, 92, 246, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}
button.ghost, a.ghost {
  background: var(--admin-block-bg);
  border: 1px solid var(--admin-block-border);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 500;
  transition: background .2s, border-color .2s;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
}
button.ghost:hover, a.ghost:hover {
  background: var(--admin-block-bg-strong);
  border-color: var(--admin-block-border);
  color: #fff;
}

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ===== Footer (как в admin) ===== */
.admin-footer {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-family: ui-monospace, "JetBrains Mono", Consolas, monospace;
  padding: 8px 0 16px;
  text-align: center;
  flex-shrink: 0;
}
.admin-footer-mono { opacity: 0.8; }

/* ===== Panel & Cards (как в admin) ===== */
.panel {
  background: var(--admin-block-bg);
  border: 1px solid var(--admin-block-border);
  border-radius: var(--admin-block-radius);
  padding: 16px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

body:not(.account-sidebar-layout) .dashboard > .dashboard-header,
body:not(.account-sidebar-layout) .dashboard > .stats-grid,
body:not(.account-sidebar-layout) .dashboard > .summary-stats-section,
body:not(.account-sidebar-layout) .dashboard > .main-content {
  max-width: 1100px;
  margin: 0 auto 18px;
}

/* Dashboard header (приветствие) */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  margin-bottom: 18px;
}
.dashboard-greeting {
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
}
.user-info { display: flex; align-items: center; gap: 16px; }
.user-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #8b5cf6, #60a5fa);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 6px 18px rgba(96,165,250,.35);
}
.avatar-text { text-transform: uppercase; }
.user-details h2 { margin: 0; }
.status-indicator { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aurora-success);
  box-shadow: 0 0 0 0 rgba(53, 194, 124, .55);
  animation: asc-pulse 1.8s infinite;
}
@keyframes asc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 194, 124, .55); }
  70% { box-shadow: 0 0 0 10px rgba(53, 194, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 194, 124, 0); }
}
.status-text { font-size: 12px; color: var(--muted); }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stat-card {
  background: var(--admin-block-bg);
  border: 1px solid var(--admin-block-border);
  border-radius: var(--admin-block-radius);
  padding: 14px 16px;
  backdrop-filter: blur(8px);
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px -10px var(--aurora-accent-dim);
  border-color: var(--admin-block-border);
}
.stat-title {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.stat-email {
  max-width: 100%;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}
.stat-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}
.stat-subtitle--muted {
  color: var(--muted);
}
.stat-card--premium-active {
  border-color: rgba(53, 194, 124, 0.28);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(53, 194, 124, 0.08), transparent 55%),
    var(--admin-block-bg);
}
.stat-card--premium-inactive {
  border-color: rgba(255, 176, 46, 0.22);
}
.stat-title i {
  margin-right: 4px;
  opacity: 0.85;
}

/* ===== Ваша статистика (блоки как в year-summary) ===== */
.summary-stats-section {
  margin-bottom: 18px;
  padding: 20px 18px;
}
.summary-stats-section__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-block-border);
}
.summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.summary-stat-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--admin-block-border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.summary-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px -10px var(--aurora-accent-dim);
  border-color: rgba(139, 92, 246, 0.25);
}
.summary-stat-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(96, 165, 250, 0.25));
}
.summary-stat-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.summary-stat-value {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  margin: 8px 0 4px;
  background: linear-gradient(135deg, #60a5fa, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
}
.summary-stat-label {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 6px;
  font-weight: 500;
}
.summary-stat-desc {
  font-size: 12px;
  color: var(--text-subtle);
  margin: 0;
  font-weight: 400;
}
@media (max-width: 900px) {
  .summary-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .summary-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .summary-stat-value {
    font-size: 36px;
  }
  .summary-stat-icon {
    font-size: 40px;
  }
}

/* Main content */
.main-content {
  padding: 18px;
  margin-bottom: 18px;
}

/* Подарок Telegram: появление + лёгкое свечение */
.panel--gift-telegram {
  animation: gift-telegram-in 0.55s ease-out, gift-telegram-glow 3s ease-in-out 0.6s infinite;
}
@keyframes gift-telegram-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes gift-telegram-glow {
  0%, 100% {
    box-shadow: var(--shadow);
    border-color: var(--admin-block-border);
  }
  50% {
    box-shadow: var(--shadow), 0 0 24px -4px rgba(0, 136, 204, 0.35);
    border-color: rgba(0, 136, 204, 0.25);
  }
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--admin-block-border);
}
.content-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

/* Helper note */
.helper-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--admin-block-border);
  color: var(--muted);
  font-size: 13px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon { font-size: 64px; margin-bottom: 20px; }
.empty-state h4 { font-size: 24px; margin-bottom: 12px; color: var(--text); }
.empty-state p { color: var(--muted); margin-bottom: 30px; font-size: 16px; }

/* Licenses list */
.licenses-list { display: flex; flex-direction: column; gap: 12px; }
.licenses-more { display: flex; flex-direction: column; gap: 12px; }

.license-card {
  background: var(--admin-block-bg);
  border: 1px solid var(--admin-block-border);
  border-radius: var(--admin-block-radius);
  padding: 14px;
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
.license-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px -10px var(--aurora-accent-dim);
  border-color: var(--admin-block-border);
}
.license-card--auto .key-label {
  color: var(--aurora-accent);
  font-weight: 600;
}
.license-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.license-key {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.key-label { color: var(--muted); font-size: 14px; }
.key-value {
  background: var(--admin-input-bg);
  border: 1px solid var(--admin-block-border);
  border-radius: 10px;
  padding: 6px 10px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  color: var(--text);
  flex: 1;
  word-break: break-all;
}
.copy-btn {
  background: var(--admin-block-bg);
  border: 1px solid var(--admin-block-border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background .2s, border-color .2s;
}
.copy-btn:hover {
  background: var(--admin-block-bg-strong);
  border-color: var(--aurora-accent);
  color: #fff;
}
.license-status { margin-left: auto; }
.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-unused {
  background: rgba(156, 163, 175, 0.1);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}
.status-active {
  background: rgba(53, 194, 124, 0.14);
  color: var(--aurora-success);
  border: 1px solid rgba(53, 194, 124, 0.45);
}
.status-expired {
  background: rgba(255, 93, 108, 0.14);
  color: var(--aurora-danger);
  border: 1px solid rgba(255, 93, 108, 0.45);
}
.license-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.detail-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.detail-label { color: var(--muted); font-size: 14px; }
.detail-value { color: var(--text); font-weight: 500; font-size: 14px; }

.licenses-more-actions { margin-top: 1rem; }
.more-btn {
  background: var(--admin-block-bg);
  border: 1px solid var(--admin-block-border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, border-color .2s;
}
.more-btn:hover {
  background: var(--admin-block-bg-strong);
  border-color: var(--aurora-accent);
  color: #fff;
}

/* Referral section */
.referral-section { margin-top: 0; padding-top: 0; border-top: none; }
.referral-section .content-header__title {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-block-border);
}
.referral-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.referral-link-block { margin-bottom: 16px; }
.referral-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.referral-link-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.referral-link-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  background: var(--admin-input-bg);
  border: 1px solid var(--admin-block-border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.referral-link-input:focus {
  border-color: var(--aurora-accent);
  box-shadow: 0 0 0 3px var(--aurora-accent-dim);
}
.referral-stats { margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.referrals-list-wrap { margin-top: 16px; }
.referrals-list-title { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.referrals-list { list-style: none; padding: 0; margin: 0; }
.referrals-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--admin-block-bg);
  border: 1px solid var(--admin-block-border);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}
.referrals-list-item .ref-email {
  flex: 1;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
}
.referrals-list-item .ref-date { color: var(--muted); }
.referrals-list-item .ref-bonus { color: var(--aurora-success); font-weight: 600; }

/* Review bonus form */
.review-bonus-form label { display: block; margin-bottom: 6px; color: var(--muted); }
.review-bonus-form input[type="url"] {
  width: 100%;
  padding: 10px 14px;
  background: var(--admin-input-bg);
  border: 1px solid var(--admin-block-border);
  border-radius: 10px;
  color: var(--text);
  margin-bottom: 10px;
  outline: none;
}
.review-bonus-form input:focus {
  border-color: var(--aurora-accent);
  box-shadow: 0 0 0 3px var(--aurora-accent-dim);
}
.review-bonus-note { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); }

/* Messages */
.error-message {
  background: rgba(255, 93, 108, 0.14);
  border: 1px solid rgba(255, 93, 108, 0.45);
  color: var(--aurora-danger);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}
.success-message {
  background: rgba(53, 194, 124, 0.14);
  border: 1px solid rgba(53, 194, 124, 0.45);
  color: var(--aurora-success);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Toast-уведомления (копирование, активация и т.д.) */
.notification {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  z-index: 10050;
  max-width: min(340px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  background: rgba(12, 16, 28, 0.94);
  border: 1px solid var(--admin-block-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  word-wrap: break-word;
}

.notification--visible {
  transform: translateX(0);
  opacity: 1;
}

.notification-success {
  border-color: rgba(53, 194, 124, 0.42);
  color: #c8f0dc;
  box-shadow: var(--shadow), 0 0 28px rgba(53, 194, 124, 0.14), inset 0 0 0 1px rgba(53, 194, 124, 0.08);
}

.notification-error {
  border-color: rgba(255, 93, 108, 0.42);
  color: #ffd4d8;
  box-shadow: var(--shadow), 0 0 28px rgba(255, 93, 108, 0.12), inset 0 0 0 1px rgba(255, 93, 108, 0.08);
}

.notification-warning {
  border-color: rgba(255, 176, 46, 0.42);
  color: #ffe8c2;
  box-shadow: var(--shadow), 0 0 28px rgba(255, 176, 46, 0.12), inset 0 0 0 1px rgba(255, 176, 46, 0.08);
}

.notification-info {
  border-color: rgba(124, 92, 255, 0.38);
  color: #e8e0ff;
  box-shadow: var(--shadow), 0 0 28px rgba(124, 92, 255, 0.16), inset 0 0 0 1px rgba(124, 92, 255, 0.08);
}

@media (max-width: 768px) {
  .notification {
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    left: max(14px, env(safe-area-inset-left));
    max-width: none;
  }
}

/* ===== Login page (общий контейнер) ===== */
.login-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}
.login-container .login-card,
.login-card {
  width: 100%;
  min-width: 320px;
  max-width: 360px;
  background: var(--admin-block-bg);
  border: 1px solid var(--admin-block-border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  box-sizing: border-box;
}
.login-card h1 { margin: 0 0 16px; font-size: 20px; color: #fff; }
.login-card label { display: block; margin: 8px 0 4px; color: var(--muted); }
.login-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--admin-block-border);
  background: var(--admin-input-bg);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.login-card input:focus {
  border-color: var(--aurora-accent);
  box-shadow: 0 0 0 3px var(--aurora-accent-dim);
}
.login-header { text-align: center; margin-bottom: 20px; }
.login-subtitle { color: var(--muted); font-size: 14px; margin-top: 6px; }
.login-form { margin-bottom: 20px; }
.form-group { margin-bottom: 14px; }
.form-group label { color: var(--text); font-weight: 500; }

/* Показать / скрыть пароль */
.password-input-wrap {
  position: relative;
  width: 100%;
}
.password-input-wrap input {
  padding-right: 44px;
  box-sizing: border-box;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.15s ease, background 0.15s ease;
}
.password-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.password-toggle:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.55);
  outline-offset: 1px;
}
.password-toggle__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.password-toggle__icon--hide {
  display: none;
}
.password-toggle--visible .password-toggle__icon--show {
  display: none;
}
.password-toggle--visible .password-toggle__icon--hide {
  display: block;
}

.login-btn {
  width: 100%;
  padding: 11px 18px;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 55%, #818cf8 100%);
  border: 1px solid rgba(139, 92, 246, 0.55);
  color: #fff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .22s ease, opacity .15s ease;
  box-shadow: 0 2px 12px rgba(124, 92, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 52%);
  pointer-events: none;
  border-radius: inherit;
}
.login-btn:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 55%, #6366f1 100%);
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.38), 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.login-btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 3px 12px rgba(124, 92, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.login-btn:disabled,
.login-btn[aria-busy="true"] {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}
.login-footer {
  text-align: center;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.login-footer__row {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.5;
}
.login-footer__row:last-child {
  margin-bottom: 0;
}
.login-footer__link {
  display: inline-block;
  color: #ddd6fe;
  font-weight: 700;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
.login-footer__link:hover {
  color: #fff;
  text-decoration: underline;
  text-shadow: 0 0 18px rgba(167, 139, 250, 0.45);
}
.login-footer__link--plain,
.login-footer__link--plain:hover {
  text-decoration: none;
}
.login-footer a.login-footer__link:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}
/* legacy selectors for older markup */
.login-footer a:not(.login-footer__link) {
  color: #ddd6fe;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.login-footer a:not(.login-footer__link):hover {
  color: #fff;
}

/* Кнопка «Как войти в Aurora Connect» (button.svg) */
.aurora-connect-recover-btn {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 12px auto 4px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.aurora-connect-recover-btn img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 42px;
  object-fit: contain;
  border-radius: 10px;
  filter: invert(1) brightness(1.08);
  opacity: 0.92;
}
.aurora-connect-recover-btn:hover {
  transform: translateY(-1px);
}
.aurora-connect-recover-btn:hover img {
  opacity: 1;
}
.aurora-connect-recover-btn:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.55);
  outline-offset: 3px;
}

@media (min-width: 769px) {
  #auroraIdRecoverBtn,
  .aurora-connect-recover-btn {
    display: none !important;
  }
}

.submit-btn, .verify-btn {
  width: 100%;
  padding: 11px 18px;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 55%, #818cf8 100%);
  border: 1px solid rgba(139, 92, 246, 0.55);
  color: #fff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .22s ease, opacity .15s ease;
  box-shadow: 0 2px 12px rgba(124, 92, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.submit-btn::before, .verify-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 52%);
  pointer-events: none;
  border-radius: inherit;
}
.submit-btn:hover, .verify-btn:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 55%, #6366f1 100%);
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.38), 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.submit-btn:active, .verify-btn:active {
  transform: translateY(0) scale(0.99);
}
.submit-btn:disabled, .verify-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}
.logout-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.logout-link:hover { color: var(--text); }

/* Modal overlay (forgot password etc.) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal {
  background: var(--admin-block-bg);
  border: 1px solid var(--admin-block-border);
  border-radius: 16px;
  padding: 24px;
  max-width: 460px;
  width: 100%;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.modal-header { text-align: center; margin-bottom: 20px; }
.modal-header h2 { font-size: 20px; color: var(--text); margin-bottom: 8px; }
.modal-header p { color: var(--muted); }
.modal-footer { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--admin-block-border); }
.verification-form .form-group, .email-form .form-group { margin-bottom: 14px; }

/* Поля ввода в модалке (восстановление пароля) */
.modal .form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}
.modal input {
  width: 100%;
  padding: 10px 14px;
  background: var(--admin-input-bg);
  border: 1px solid var(--admin-block-border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.modal input::placeholder {
  color: var(--text-subtle);
}
.modal input:focus {
  border-color: var(--aurora-accent);
  box-shadow: 0 0 0 3px var(--aurora-accent-dim);
}
.modal .submit-btn,
.modal .verify-btn {
  width: 100%;
  margin-top: 4px;
}

/* Совпадает с логотипом topbar в aurora_support_chat/admin */
.aurora-brand__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.55), transparent 22%),
    radial-gradient(circle at 68% 78%, rgba(96, 165, 250, 0.65), transparent 46%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.82), rgba(96, 165, 250, 0.76));
  box-shadow:
    0 7px 18px rgba(96, 165, 250, 0.26),
    0 0 24px rgba(139, 92, 246, 0.18),
    inset 0 1px 8px rgba(255, 255, 255, 0.28),
    inset 0 -8px 16px rgba(6, 12, 28, 0.18);
  filter: blur(0.12px) saturate(1.1);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  pointer-events: none;
  margin-right: 0;
  animation: account-logo-ocean-melt 5.8s ease-in-out infinite;
  will-change: transform, border-radius, box-shadow, filter;
  display: inline-block;
}
@media (max-width: 768px) {
  .aurora-brand__logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
}
.aurora-brand__logo::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.24), transparent 18%),
    linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.18) 45%, transparent 62%);
  filter: blur(3px);
  opacity: 0.75;
  animation: account-logo-caustic 4.8s ease-in-out infinite;
}
.aurora-brand__logo::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 58%);
  filter: blur(0.28px);
  opacity: 0.42;
  animation: account-logo-rim 5.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes account-logo-ocean-melt {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1) skew(0deg, 0deg);
    border-radius: 10px 12px 10px 12px;
    box-shadow:
      0 7px 18px rgba(96, 165, 250, 0.26),
      0 0 24px rgba(139, 92, 246, 0.18),
      inset 0 1px 8px rgba(255, 255, 255, 0.28),
      inset 0 -8px 16px rgba(6, 12, 28, 0.18);
    filter: blur(0.12px) saturate(1.1);
  }
  25% {
    transform: translate3d(1px, -1px, 0) scale(1.03) skew(-1.4deg, 0.6deg);
    border-radius: 13px 9px 12px 9px;
    filter: blur(0.2px) saturate(1.2);
  }
  50% {
    transform: translate3d(-1px, 1px, 0) scale(1.05) skew(1deg, -1deg);
    border-radius: 9px 14px 10px 13px;
    box-shadow:
      0 9px 22px rgba(96, 165, 250, 0.34),
      0 0 34px rgba(139, 92, 246, 0.24),
      inset 0 2px 10px rgba(255, 255, 255, 0.34),
      inset 0 -7px 14px rgba(6, 12, 28, 0.14);
    filter: blur(0.24px) saturate(1.23);
  }
  75% {
    transform: translate3d(1px, 1px, 0) scale(1.02) skew(0.8deg, 1.2deg);
    border-radius: 12px 10px 14px 9px;
    filter: blur(0.16px) saturate(1.16);
  }
}
@keyframes account-logo-caustic {
  0%,
  100% {
    transform: translate(-14%, -8%) rotate(-4deg) scale(1);
    opacity: 0.45;
  }
  33% {
    transform: translate(10%, 4%) rotate(9deg) scale(1.08);
    opacity: 0.86;
  }
  66% {
    transform: translate(-2%, 12%) rotate(-7deg) scale(0.96);
    opacity: 0.62;
  }
}
@keyframes account-logo-rim {
  0%,
  100% {
    border-radius: 8px 9px 8px 10px;
    transform: scale(1);
  }
  50% {
    border-radius: 10px 8px 11px 8px;
    transform: scale(0.985);
  }
}
.brand-name {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modal (review bonus overlay) */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.review-modal-overlay[aria-hidden="true"] { display: none; }
.review-modal {
  background: var(--admin-block-bg);
  border: 1px solid var(--admin-block-border);
  border-radius: 16px;
  padding: 24px;
  max-width: 460px;
  width: 100%;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.review-modal-inner { text-align: center; }
.review-modal-title { font-size: 20px; margin-bottom: 12px; color: var(--text); }
.review-modal-title--success { color: var(--aurora-success); }
.review-modal-title--error { color: var(--aurora-danger); }
.review-modal-message { color: var(--muted); margin-bottom: 20px; }
.review-modal-close {
  padding: 10px 20px;
  background: var(--aurora-accent);
  border: none;
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}
.review-modal--qr {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Оверлей выбора тарифа (варианты покупок как на index.html) */
.buy-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.buy-overlay[aria-hidden="true"] { display: none; }
.buy-overlay__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}
.buy-overlay__box {
  position: relative;
  background: var(--admin-block-bg);
  border: 1px solid var(--admin-block-border);
  border-radius: 16px;
  padding: 24px;
  max-width: clamp(765px, calc(765px * (100vw / 2048px)), 880px);
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow),
    0 0 80px rgba(99, 102, 241, 0.12),
    0 0 120px rgba(139, 92, 246, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.buy-overlay__box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 100% at 100% 50%, rgba(96, 165, 250, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse 80% 100% at 0% 100%, rgba(236, 72, 153, 0.06) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}
.buy-overlay__lights {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.buy-overlay__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: buy-overlay-orb-float 20s ease-in-out infinite;
}
.buy-overlay__orb--1 {
  width: 180px;
  height: 180px;
  background: rgba(99, 102, 241, 0.45);
  top: -40px;
  left: -30px;
  animation-delay: 0s;
}
.buy-overlay__orb--2 {
  width: 160px;
  height: 160px;
  background: rgba(139, 92, 246, 0.4);
  top: -20px;
  right: -20px;
  animation-delay: -5s;
  animation-duration: 18s;
}
.buy-overlay__orb--3 {
  width: 140px;
  height: 140px;
  background: rgba(96, 165, 250, 0.35);
  bottom: -30px;
  right: 10%;
  animation-delay: -10s;
  animation-duration: 22s;
}
.buy-overlay__orb--4 {
  width: 120px;
  height: 120px;
  background: rgba(236, 72, 153, 0.25);
  bottom: -20px;
  left: -20px;
  animation-delay: -7s;
  animation-duration: 16s;
}
@keyframes buy-overlay-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  33% { transform: translate(4%, -3%) scale(1.08); opacity: 0.6; }
  66% { transform: translate(-3%, 2%) scale(0.95); opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .buy-overlay__orb { animation: none; }
}
@media (min-width: 1680px) {
  body.account-sidebar-layout .buy-overlay__box {
    padding: clamp(24px, calc(24px * (100vw / 2048px)), 30px);
  }

  body.account-sidebar-layout .buy-overlay__title {
    font-size: clamp(22px, calc(22px * (100vw / 2048px)), 26px);
  }
}

.buy-overlay__box-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.buy-overlay__box {
  display: flex;
  flex-direction: column;
}
.buy-overlay__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  border-radius: 0 16px 0 12px;
  transition: color .2s, background .2s;
  z-index: 2;
}
.buy-overlay__close:hover {
  color: var(--text);
  background: var(--admin-block-bg-strong);
}
.buy-overlay__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-right: 40px;
}
.buy-overlay__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.buy-tariff {
  position: relative;
  background: var(--admin-block-bg-strong);
  border: 1px solid var(--admin-block-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.buy-tariff:hover {
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.buy-tariff--recommended { border-color: rgba(139, 92, 246, 0.4); }
.buy-tariff--recommended:hover { border-color: rgba(139, 92, 246, 0.5); }
.buy-tariff--best .buy-tariff__per-month--highlight { color: var(--aurora-success); font-weight: 700; }
.buy-tariff__badge-slot {
  min-height: 26px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.buy-tariff__badge-slot:empty { min-height: 0; margin-bottom: 0; }
.buy-tariff__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--aurora-accent);
  color: #fff;
}
.buy-tariff__badge--savings {
  background: linear-gradient(135deg, var(--aurora-success), #2dd4a0);
  color: #0a0b14;
}
.buy-tariff__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.buy-tariff__price-block { margin-bottom: 4px; }
.buy-tariff__price {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.buy-tariff__per-month {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.buy-tariff__features {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  flex: 1;
}
.buy-tariff__feature {
  font-size: 13px;
  color: var(--text);
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}
.buy-tariff__feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aurora-accent);
  opacity: 0.9;
}
.buy-tariff--recommended .buy-tariff__feature::before,
.buy-tariff--best .buy-tariff__feature::before {
  background: var(--aurora-accent);
  opacity: 1;
}
.buy-tariff__cta { margin-top: auto; }
.buy-tariff__btn {
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  background: var(--aurora-accent);
  color: #fff;
}
.buy-tariff__btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .buy-overlay__grid {
    grid-template-columns: 1fr;
  }
}

/* Scrollbar (как в admin) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--admin-block-border) var(--admin-block-bg);
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: var(--admin-block-bg-strong);
  border-radius: 999px;
  border: 2px solid var(--admin-block-bg);
}
*::-webkit-scrollbar-thumb:hover { background: var(--aurora-accent-dim); }
*::-webkit-scrollbar-track { background: var(--admin-block-bg); }

/* ===== Mobile: premium dark background (старый ЛК без sidebar) ===== */
@media (max-width: 768px) {
  html:has(body.account-page:not(.account-sidebar-layout)) {
    background-color: #020203;
  }

  body.account-page:not(.account-sidebar-layout) {
    --admin-block-bg: rgba(0, 0, 0, 0.5);
    --admin-block-bg-strong: rgba(0, 0, 0, 0.68);
    --admin-block-border: rgba(255, 255, 255, 0.045);
    --admin-input-bg: rgba(0, 0, 0, 0.58);
    --shadow: 0 16px 42px rgba(0, 0, 0, 0.58), 0 2px 10px rgba(0, 0, 0, 0.38);
    background:
      radial-gradient(ellipse 90% 55% at 50% -8%, rgba(139, 92, 246, 0.07), transparent 58%),
      radial-gradient(ellipse 110% 70% at 50% 108%, rgba(0, 0, 0, 0.92), transparent 52%),
      linear-gradient(180deg, #020203 0%, #050508 42%, #010102 100%);
  }

  body.account-page:not(.account-sidebar-layout)::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(ellipse 85% 65% at 50% 45%, transparent 36%, rgba(0, 0, 0, 0.48) 100%);
  }

  body.account-page:not(.account-sidebar-layout) .admin-bg-noise {
    opacity: 0.018;
  }

  body.account-page:not(.account-sidebar-layout) .admin-bg-orb {
    filter: blur(96px);
    opacity: 0.42;
  }
  body.account-page:not(.account-sidebar-layout) .admin-bg-orb--1 {
    background: rgba(99, 102, 241, 0.22);
  }
  body.account-page:not(.account-sidebar-layout) .admin-bg-orb--2 {
    background: rgba(139, 92, 246, 0.16);
  }
  body.account-page:not(.account-sidebar-layout) .admin-bg-orb--3 {
    background: rgba(236, 72, 153, 0.1);
  }

  body.account-page:not(.account-sidebar-layout) .panel,
  body.account-page:not(.account-sidebar-layout) .stat-card,
  body.account-page:not(.account-sidebar-layout) .summary-stat-card,
  body.account-page:not(.account-sidebar-layout) .topbar,
  body.account-page:not(.account-sidebar-layout) .login-card {
    background: rgba(0, 0, 0, 0.54);
    border-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    box-shadow:
      0 14px 36px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  body.account-page:not(.account-sidebar-layout) .aurora-id-panel {
    border-color: rgba(255, 255, 255, 0.07);
    background:
      radial-gradient(ellipse 90% 70% at 100% -10%, rgba(255, 255, 255, 0.03), transparent 55%),
      radial-gradient(ellipse 70% 60% at 0% 110%, rgba(139, 92, 246, 0.08), transparent 50%),
      rgba(0, 0, 0, 0.58);
  }

  body.account-page:not(.account-sidebar-layout) .aurora-id-panel__credential {
    background: rgba(0, 0, 0, 0.62);
    border-color: rgba(255, 255, 255, 0.06);
  }

  body.account-sidebar-layout.account-page .account-app,
  body.account-page:not(.account-sidebar-layout) .account-app {
    padding-top: env(safe-area-inset-top, 0px);
  }

  /* Cabinet sidebar: фон — cab-bg.css; шапка — cabinet.css */
  html:has(body.account-sidebar-layout.account-page) {
    background-color: #050810;
  }

  body.account-sidebar-layout.account-page {
    background: transparent;
  }

  body.account-sidebar-layout.account-page::before,
  body.account-sidebar-layout.account-page::after {
    content: none;
    display: none;
  }

  body.account-sidebar-layout.account-page .admin-bg-noise {
    display: none !important;
  }

  body.account-sidebar-layout.account-page .admin-bg-orb,
  body.account-sidebar-layout.account-page .account-ambient {
    display: none !important;
  }

  body.account-sidebar-layout.account-page .account-app--sidebar {
    padding-top: 0;
  }

  /* Cabinet layout: skip expensive glass blur on mobile (fixes global tap delay) */
  body.account-sidebar-layout.account-page .panel,
  body.account-sidebar-layout.account-page .stat-card,
  body.account-sidebar-layout.account-page .summary-stat-card,
  body.account-sidebar-layout.account-page .topbar,
  body.account-sidebar-layout.account-page .login-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 480px) {
  html:has(body.account-page:not(.account-sidebar-layout)) {
    background-color: #010102;
  }

  body.account-page:not(.account-sidebar-layout) {
    background:
      radial-gradient(ellipse 95% 50% at 50% -5%, rgba(139, 92, 246, 0.05), transparent 55%),
      radial-gradient(ellipse 120% 75% at 50% 112%, rgba(0, 0, 0, 0.96), transparent 48%),
      linear-gradient(180deg, #010102 0%, #030305 50%, #000000 100%);
  }

  body.account-page:not(.account-sidebar-layout)::after {
    background:
      radial-gradient(ellipse 88% 68% at 50% 48%, transparent 32%, rgba(0, 0, 0, 0.58) 100%);
  }

  body.account-page:not(.account-sidebar-layout) .admin-bg-orb {
    opacity: 0.3;
  }

  body.account-page:not(.account-sidebar-layout) .panel,
  body.account-page:not(.account-sidebar-layout) .stat-card,
  body.account-page:not(.account-sidebar-layout) .summary-stat-card,
  body.account-page:not(.account-sidebar-layout) .topbar,
  body.account-page:not(.account-sidebar-layout) .login-card {
    background: rgba(0, 0, 0, 0.62);
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .account-desk { padding: 8px 10px 20px; }
  .topbar {
    flex-wrap: wrap;
    gap: 6px;
    width: calc(100% - max(10px, env(safe-area-inset-left)) - max(10px, env(safe-area-inset-right)));
    margin-left: max(10px, env(safe-area-inset-left));
    margin-right: max(10px, env(safe-area-inset-right));
    margin-bottom: 10px;
    padding: 8px 12px;
    min-width: 0;
  }
  .topbar .topbar-brand {
    min-height: 40px;
    min-width: 40px;
    align-items: center;
  }
  /* Вкладки: скрыты на мобильных */
  .topbar .account-tabs { display: none; }
  .topbar .topbar-brand-text { font-size: 15px; }

  /* Приветствие: остаётся строкой */
  .dashboard-header {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 14px 16px;
    margin-bottom: 10px;
  }
  .user-info { flex: 1; min-width: 0; }
  .user-avatar { width: 40px; height: 40px; font-size: 15px; border-radius: 10px; }
  .dashboard-greeting { font-size: 15px; }
  .status-text { font-size: 11px; }

  /* Сетка статистики: 2×2 вместо 4×1 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
  }
  .stat-card { padding: 12px 14px; }
  .stat-value { font-size: 17px; }
  .stat-title { font-size: 11px; letter-spacing: 0; }
  .stat-email {
    font-size: 13px;
    word-break: break-all;
    white-space: normal;
    line-height: 1.4;
  }

  /* Шапка секции: строка с переносом */
  .content-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .content-header h3 { font-size: 15px; flex: 1 1 auto; min-width: 0; }
  #openBuyOverlayBtn { padding: 8px 12px; font-size: 13px; }

  /* Секция покупок */
  .main-content { padding: 14px; margin-bottom: 12px; }
  /* Блок «Бонус за отзыв» скрыт на мобильных */
  .main-content--review-bonus { display: none; }
  .panel { border-radius: 10px; }

  /* Карточка лицензии */
  .license-card { padding: 12px; }
  .license-header { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
  .license-status { margin-left: auto; }

  /* Ключ: строка с переносом — ключ и кнопка рядом */
  .license-key {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 1 1 100%;
  }
  .key-label { flex-shrink: 0; }
  .key-value {
    flex: 1 1 80px;
    min-width: 0;
    font-size: 11px;
    padding: 5px 8px;
    max-width: calc(100% - 52px);
  }
  .copy-btn {
    flex-shrink: 0;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .license-details { grid-template-columns: 1fr; gap: 6px; }
  .detail-label { font-size: 13px; }
  .detail-value { font-size: 13px; }

  /* Реферальная ссылка: кнопка под инпутом */
  .referral-link-row { flex-direction: column; gap: 8px; }
  .referral-link-input { min-width: 0; width: 100%; }
  .referral-link-row .ghost {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
  }

  /* Форма отзыва: кнопка во всю ширину */
  #reviewBonusSubmit { width: 100%; display: block; }

  /* Подзаголовки секций */
  .referral-section .content-header__title { font-size: 16px; }
  .summary-stats-section__title { font-size: 16px; }

  /* Пустое состояние */
  .empty-state { padding: 40px 16px; }
  .empty-icon { font-size: 52px; }
  .empty-state h4 { font-size: 20px; }
  .empty-state p { font-size: 14px; margin-bottom: 22px; }

  /* Оверлей тарифов */
  .buy-overlay { padding: 10px; }
  .buy-overlay__box {
    padding: 16px;
    border-radius: 14px;
    max-height: calc(100dvh - 20px);
  }
  .buy-overlay__title { font-size: 18px; margin-bottom: 14px; }
}

@media (max-width: 480px) {
  .account-desk { padding: 6px 8px 16px; }

  /* Topbar */
  .topbar {
    width: calc(100% - max(8px, env(safe-area-inset-left)) - max(8px, env(safe-area-inset-right)));
    margin-left: max(8px, env(safe-area-inset-left));
    margin-right: max(8px, env(safe-area-inset-right));
    padding: 8px 10px;
    gap: 4px;
    margin-bottom: 8px;
  }
  .topbar .topbar-brand-text { font-size: 13px; }
  .topbar .tab-link {
    padding: 9px 10px;
    min-height: 40px;
    font-size: 12px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
  }
  .topbar .user-name { display: none; }
  .topbar .user .ghost {
    min-height: 40px;
    min-width: 40px;
    align-items: center;
    justify-content: center;
    display: inline-flex;
  }

  /* Приветствие */
  .dashboard-header { padding: 12px; gap: 10px; margin-bottom: 8px; }
  .user-avatar { width: 36px; height: 36px; font-size: 13px; border-radius: 8px; }
  .dashboard-greeting { font-size: 14px; }
  .status-dot { width: 7px; height: 7px; }
  .status-text { font-size: 10px; }

  /* Статистика */
  .stats-grid { gap: 6px; margin-bottom: 8px; }
  .stat-card { padding: 10px 12px; }
  .stat-value { font-size: 15px; }
  .stat-title { font-size: 10px; }
  .stat-email { font-size: 11px; }

  /* Контент */
  .main-content { padding: 12px; margin-bottom: 10px; }
  .content-header { gap: 6px; margin-bottom: 12px; }
  .content-header h3 { font-size: 14px; }
  #openBuyOverlayBtn { padding: 7px 10px; font-size: 12px; }

  /* Лицензии */
  .license-card { padding: 10px; }
  .key-value { font-size: 10px; padding: 4px 6px; }
  .copy-btn { padding: 5px 8px; font-size: 12px; }
  .status-badge { font-size: 10px; padding: 4px 7px; }

  /* Детали: стек метка + значение */
  .detail-row { flex-direction: column; align-items: flex-start; gap: 1px; }
  .detail-label { font-size: 11px; }
  .detail-value { font-size: 13px; font-weight: 600; }

  /* «Ещё» во всю ширину */
  .more-btn { width: 100%; text-align: center; }

  /* Рефералы */
  .referral-desc { font-size: 13px; line-height: 1.5; }
  .referral-stats { font-size: 13px; }
  .referrals-list-item { padding: 8px 10px; font-size: 12px; gap: 8px; }

  /* Статистика (summary) */
  .summary-stats-section { padding: 12px; }
  .summary-stats-section__title { font-size: 15px; margin-bottom: 12px; padding-bottom: 10px; }
  .summary-stat-card { padding: 14px 10px; }
  .summary-stat-icon { font-size: 36px; margin-bottom: 8px; }
  .summary-stat-title { font-size: 13px; margin-bottom: 6px; }
  .summary-stat-value { font-size: 30px; letter-spacing: -1px; margin: 6px 0 3px; }
  .summary-stat-label { font-size: 12px; }
  .summary-stat-desc { font-size: 11px; }

  /* Оверлей тарифов */
  .buy-overlay { padding: 6px; }
  .buy-overlay__box { padding: 12px; border-radius: 12px; }
  .buy-overlay__title { font-size: 16px; margin-bottom: 12px; padding-right: 32px; }
  .buy-tariff { padding: 14px; }
  .buy-tariff__name { font-size: 15px; }
  .buy-tariff__price { font-size: 20px; }
  .buy-tariff__per-month { font-size: 12px; }
  .buy-tariff__feature { font-size: 12px; }
  .buy-tariff__btn { padding: 9px 14px; font-size: 13px; }

  /* Модалки */
  .modal { padding: 18px; border-radius: 14px; }
  .modal-header h2 { font-size: 17px; }
  .review-modal { padding: 18px; border-radius: 14px; }
  .review-modal-title { font-size: 17px; }
}

/* ===== Блок «Отзыв в Яндексе» ===== */
.yandex-review-block {
  margin-top: 0;
}
.yandex-review-block--hidden {
  display: none !important;
}
.yandex-review-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}
.yandex-review-desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 4px;
}
.yandex-review-gradient {
  height: 5px;
  margin: 12px 0 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, #f314be, #ff4658, #ffd500);
}
.yandex-review-steps {
  margin: 0 0 1.25rem 1.35rem;
  padding: 0;
  color: #b0b5c0;
  line-height: 1.65;
}
.yandex-review-steps li {
  margin-bottom: 0.65rem;
}
.yandex-review-steps li:last-child {
  margin-bottom: 0;
}
.yandex-review-steps p {
  margin: 0;
}
.yandex-review-steps strong {
  color: #e8eaef;
  font-weight: 600;
}
.yandex-review-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 4px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c4c9d4;
  font-size: 14px;
}
.yandex-review-icon--lock {
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.06);
}
.yandex-review-icon--reviews {
  color: #8b92f0;
}
.yandex-review-icon--star {
  width: auto;
  height: auto;
  padding: 2px 4px;
  background: transparent;
  border: none;
}
.yandex-review-icon--star svg {
  display: block;
  vertical-align: middle;
}
.yandex-review-actions {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
.yandex-review-actions .ghost {
  padding: 10px 18px;
  font-size: 14px;
}

/* ===== Aurora ID panel (личный кабинет, iOS-приложение) ===== */
.aurora-id-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 90% 70% at 100% -10%, rgba(255, 255, 255, 0.06), transparent 55%),
    radial-gradient(ellipse 70% 60% at 0% 110%, rgba(139, 92, 246, 0.12), transparent 50%),
    var(--admin-block-bg);
}
.aurora-id-panel::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  border-radius: inherit inherit 0 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(139, 92, 246, 0.65), rgba(59, 130, 246, 0.5));
  opacity: 0.85;
}
.aurora-id-panel__inner {
  position: relative;
  z-index: 1;
}
.aurora-id-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.aurora-id-panel__chevron {
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  transition: transform 0.2s ease, background 0.15s ease, border-color 0.15s ease;
}
.aurora-id-panel__header:hover .aurora-id-panel__chevron,
.aurora-id-panel__header:focus-visible .aurora-id-panel__chevron {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}
.aurora-id-panel__header:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.55);
  outline-offset: 3px;
  border-radius: 10px;
}
.aurora-id-panel__body {
  display: block;
}
@media (min-width: 769px) {
  .aurora-id-panel__chevron {
    display: inline-flex;
  }
  .aurora-id-panel.is-collapsed .aurora-id-panel__header {
    margin-bottom: 0;
  }
  .aurora-id-panel.is-collapsed .aurora-id-panel__body {
    display: none;
  }
  .aurora-id-panel.is-collapsed .aurora-id-panel__chevron {
    transform: rotate(-90deg);
  }
}
@media (max-width: 768px) {
  .aurora-id-panel__header {
    cursor: default;
    pointer-events: none;
  }
  .aurora-id-panel.is-collapsed .aurora-id-panel__body {
    display: block;
  }
}
.aurora-id-panel__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.aurora-id-panel__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f4f5;
  font-size: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.aurora-id-panel__eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.aurora-id-panel__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.aurora-id-panel__lead {
  margin: 0 0 18px;
  max-width: 58ch;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}
.aurora-id-panel__credential {
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.aurora-id-panel__credential-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}
.aurora-id-panel__credential-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}
.aurora-id-panel__value {
  flex: 1;
  min-width: min(100%, 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fafafa;
  text-align: center;
  word-break: break-all;
}
.aurora-id-panel__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.aurora-id-panel__copy .fa-solid,
.aurora-id-panel__copy .fa-brands {
  font-size: 14px;
  line-height: 1;
}
.aurora-id-panel__copy:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}
.aurora-id-panel__status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 16px;
}
.aurora-id-panel__status-note {
  font-size: 13px;
  color: var(--muted);
}
.aurora-id-panel__guide {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.aurora-id-panel__guide-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}
.aurora-id-panel__steps {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.65;
}
.aurora-id-panel__steps li + li {
  margin-top: 6px;
}
@media (max-width: 640px) {
  .aurora-id-panel__brand {
    align-items: flex-start;
  }
  .aurora-id-panel__value {
    font-size: 15px;
    letter-spacing: 0.05em;
  }
  .aurora-id-panel__copy {
    width: 100%;
  }
}

/* iOS Safari: автозум при фокусе на поле, если font-size < 16px */
@media screen and (max-width: 768px) {
  body.account-page input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="image"]),
  body.account-page textarea,
  body.account-page select {
    font-size: 16px !important;
  }
}

/* ===== Auth pages v2 — enhanced form components ===== */

/* Input field with left icon */
.form-field {
  position: relative;
  display: block;
}
.form-field__icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.18s ease;
}
.form-field__icon svg {
  width: 17px;
  height: 17px;
  display: block;
  flex-shrink: 0;
}
.form-field:focus-within .form-field__icon {
  color: rgba(167, 139, 250, 0.8);
}
.form-field > input,
.form-field .password-input-wrap input {
  padding-left: 40px !important;
}
/* preserve toggle button space for password fields */
.form-field .password-input-wrap input {
  padding-right: 44px !important;
}
.form-field .password-input-wrap {
  width: 100%;
  display: block;
}

/* Form group header: label left, action link right */
.form-group__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}
.form-group__header label {
  margin: 0;
}
.form-group__action {
  font-size: 13px;
  color: rgba(196, 181, 253, 0.68);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
  flex-shrink: 0;
}
.form-group__action:hover {
  color: #c4b5fd;
}
.form-group__action:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Button loading state */
.login-btn--loading,
.submit-btn--loading,
.verify-btn--loading {
  opacity: 0.72;
  pointer-events: none;
  cursor: not-allowed;
}
.login-btn--loading::after,
.submit-btn--loading::after,
.verify-btn--loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  animation: auth-btn-spin 0.65s linear infinite;
  vertical-align: -3px;
  margin-left: 9px;
}
@keyframes auth-btn-spin {
  to { transform: rotate(360deg); }
}

/* Password strength indicator */
.pw-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  min-height: 18px;
}
.pw-strength__bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}
.pw-strength__fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.28s ease;
}
.pw-strength__fill--1 { background: var(--aurora-danger); width: 25%; }
.pw-strength__fill--2 { background: var(--aurora-warning); width: 55%; }
.pw-strength__fill--3 { background: #60a5fa; width: 78%; }
.pw-strength__fill--4 { background: var(--aurora-success); width: 100%; }
.pw-strength__label {
  font-size: 12px;
  font-weight: 600;
  min-width: 56px;
  text-align: right;
  color: var(--muted);
  line-height: 1;
  transition: color 0.2s ease;
}
.pw-strength__label--1 { color: var(--aurora-danger); }
.pw-strength__label--2 { color: var(--aurora-warning); }
.pw-strength__label--3 { color: #60a5fa; }
.pw-strength__label--4 { color: var(--aurora-success); }

/* Input placeholder refinement */
.login-card input::placeholder {
  color: rgba(107, 114, 128, 0.45);
  font-size: 14px;
}
.login-card input {
  transition: border-color .2s ease, box-shadow .2s ease;
}
.login-card input:focus {
  border-color: rgba(139, 92, 246, 0.62);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13);
}

/* Login card max-width refinement */
.login-container .login-card,
.login-card {
  max-width: 384px;
}

/* Better login footer separator */
.login-footer {
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* Auth form: tighter form group gap */
.login-form .form-group {
  margin-bottom: 16px;
}

/* Modal: better close button */
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.modal-close-btn:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.55);
  outline-offset: 2px;
}
.modal {
  position: relative;
}

/* Login hint text */
.login-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .login-btn--loading::after,
  .submit-btn--loading::after,
  .verify-btn--loading::after {
    animation: none;
    opacity: 0.7;
  }
  .pw-strength__fill {
    transition: none;
  }
}

/* ===== OTP / 6-digit code input (add_email, verify) ===== */

.otp-label {
  display: block;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 14px;
  text-align: center;
}

.otp-input-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 0 6px;
}

.otp-digit {
  width: 46px;
  height: 54px;
  text-align: center;
  font-size: 22px !important;
  font-weight: 700;
  font-family: "Manrope", Inter, system-ui, sans-serif;
  line-height: 1;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(8, 12, 22, 0.65);
  color: #f4f6fc;
  caret-color: #8b5cf6;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
  padding: 0;
}

.otp-digit::selection {
  background: rgba(139, 92, 246, 0.3);
}

.otp-digit:focus {
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
  background: rgba(12, 16, 28, 0.72);
}

.otp-digit.is-filled {
  border-color: rgba(139, 92, 246, 0.42);
  background: rgba(12, 16, 28, 0.72);
}

.otp-digit.is-error {
  border-color: rgba(255, 93, 108, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(255, 93, 108, 0.12) !important;
  animation: otp-shake 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Separator gap between digit 3 and 4 */
.otp-input-group .otp-digit:nth-child(3) {
  margin-right: 8px;
}

@keyframes otp-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-4px); }
  40%       { transform: translateX(4px); }
  60%       { transform: translateX(-3px); }
  80%       { transform: translateX(3px); }
}

.otp-hint {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.otp-resend {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.otp-resend a,
.otp-resend button {
  color: rgba(196, 181, 253, 0.82);
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  transition: color 0.15s ease;
}

.otp-resend a:hover,
.otp-resend button:hover {
  color: #c4b5fd;
}

/* Email displayed in code step */
.otp-email-hint {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.otp-email-hint strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-top: 3px;
  font-size: 14px;
  word-break: break-all;
}

@media (max-width: 420px) {
  .otp-input-group {
    gap: 6px;
  }
  .otp-digit {
    width: 40px;
    height: 48px;
    border-radius: 10px;
  }
  .otp-input-group .otp-digit:nth-child(3) {
    margin-right: 6px;
  }
}
