/* ═══════════════════════════════════════════════════
   AURORA THEME — Design System
   theme_aurora_base.css
   ═══════════════════════════════════════════════════ */

/* ── Root variables ── */
.aurora-body {
  --c-bg:           #060c18;
  --c-bg-1:         #0a1325;
  --c-bg-2:         #0f1c35;
  --c-surface:      rgba(255,255,255,.09);
  --c-surface-2:    rgba(255,255,255,.15);
  --c-border:       rgba(120,160,255,.12);
  --c-border-2:     rgba(120,160,255,.22);
  --c-text:         #e2eaff;
  --c-text-2:       #8ba0cc;
  --c-text-3:       #5a72a0;
  --g-a:            #1a3fff;
  --g-b:            #7c3aed;
  --g-c:            #06b6d4;
  --g-d:            #10b981;
  --accent:         #4f86ff;
  --accent-2:       #a78bfa;
  --accent-glow:    rgba(79,134,255,.25);
  --success:        #10b981;
  --success-bg:     rgba(16,185,129,.12);
  --warning:        #f59e0b;
  --warning-bg:     rgba(245,158,11,.12);
  --danger:         #ef4444;
  --danger-bg:      rgba(239,68,68,.12);
  --r-sm:    8px;
  --r-md:    12px;
  --r-lg:    16px;
  --r-xl:    20px;
  --r-2xl:   24px;
  --shadow-card: 0 4px 24px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.6);
  --shadow-glow: 0 0 40px rgba(79,134,255,.15);
}

/* ── Body override ── */
.aurora-body {
  background: var(--c-bg) !important;
  color: var(--c-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
}

/* ══════════════════════════════════════════════
   AMBIENT BACKGROUND
   ══════════════════════════════════════════════ */
.aurora-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.aurora-blob {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: .18;
}
.aurora-blob-1 { width: 600px; height: 600px; background: var(--g-a); top: -200px; left: -100px; }
.aurora-blob-2 { width: 500px; height: 500px; background: var(--g-b); top: 100px; right: -150px; }
.aurora-blob-3 { width: 400px; height: 400px; background: var(--g-c); bottom: 0; left: 30%; }
.aurora-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120,160,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ══════════════════════════════════════════════
   APP LAYOUT — sidebar + main
   ══════════════════════════════════════════════ */
.aurora-app {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* ── Sidebar ── */
.aurora-sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--c-border);
  background: rgba(6,12,24,.88);
  backdrop-filter: blur(20px);
  padding: 24px 16px;
  gap: 0;
  z-index: 20;
  overflow-y: auto;
}
.aurora-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 32px; padding: 0 8px;
  text-decoration: none;
}
.aurora-brand-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--g-a), var(--g-b));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; overflow: hidden;
}
.aurora-brand-icon:has(img) { background: transparent; }
.aurora-brand-icon img {
  width: 44px; height: 44px; border-radius: 12px; object-fit: contain;
}
.aurora-brand-name { font-size: 15px; font-weight: 700; color: var(--c-text); letter-spacing: -.3px; }
.aurora-brand-sub  { font-size: 11px; color: var(--c-text-3); margin-top: 1px; }

.aurora-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.aurora-nav-section { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--c-text-3); padding: 8px 10px 4px; margin-top: 8px; }
.aurora-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  text-decoration: none; color: var(--c-text-2);
  font-size: 13.5px; font-weight: 500;
  transition: background .15s, color .15s;
  position: relative;
}
.aurora-nav-link:hover { background: var(--c-surface-2); color: var(--c-text); }
.aurora-nav-link.is-active {
  background: rgba(79,134,255,.15);
  color: #8bb8ff;
}
.aurora-nav-link.is-active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; background: var(--accent); border-radius: 0 3px 3px 0;
}
.aurora-nav-icon { width: 18px; opacity: .7; flex-shrink: 0; }
.aurora-nav-badge {
  margin-left: auto; font-size: 10px; font-weight: 700; background: var(--accent);
  color: #fff; border-radius: 999px; padding: 1px 6px; min-width: 18px; text-align: center;
}

.aurora-sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 8px; }
.aurora-user-card {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: var(--c-surface); border-radius: var(--r-md); border: 1px solid var(--c-border);
}
.aurora-user-ava {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.aurora-user-name { font-size: 13px; font-weight: 600; color: var(--c-text); }
.aurora-user-bal  { font-size: 11px; color: var(--c-text-2); }
.aurora-logout-btn {
  width: 100%; padding: 8px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid var(--c-border);
  color: var(--c-text-3); font-size: 12px; cursor: pointer;
  transition: .15s; font-family: inherit;
}
.aurora-logout-btn:hover { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }

/* ── Main area ── */
.aurora-main { display: flex; flex-direction: column; min-height: 100vh; }
.aurora-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--c-border);
  background: rgba(6,12,24,.78);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
  gap: 12px;
}
.aurora-topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.aurora-topbar-title h1 { font-size: 18px; font-weight: 700; letter-spacing: -.4px; margin: 0; }
.aurora-topbar-title p  { font-size: 13px; color: var(--c-text-2); margin: 2px 0 0; }
.aurora-topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.aurora-topbar-bal {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--c-surface-2); border: 1px solid var(--c-border-2);
  font-size: 13px; font-weight: 600; color: var(--c-text);
  white-space: nowrap;
}
.aurora-topbar-bal span { color: var(--accent); }
.aurora-content { padding: 28px 32px; flex: 1; }

/* ── Burger button ── */
.aurora-burger {
  display: none; width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--c-surface); border: 1px solid var(--c-border);
  color: var(--c-text-2); font-size: 18px; cursor: pointer;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.aurora-burger:hover { background: var(--c-surface-2); color: var(--c-text); }

/* ── Overlay ── */
.aurora-overlay {
  position: fixed; inset: 0; z-index: 15;
  background: rgba(0,0,0,.5); backdrop-filter: blur(2px);
}
.aurora-overlay[hidden] { display: none; }

/* ══════════════════════════════════════════════
   MOBILE BOTTOM TABBAR
   ══════════════════════════════════════════════ */
.aurora-mobile-tabbar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  border-top: 1px solid var(--c-border);
  background: rgba(6,12,24,.92);
  backdrop-filter: blur(16px);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.aurora-mobile-tabbar a,
.aurora-mobile-tabbar button {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 6px 4px 4px; color: var(--c-text-3); font-size: 10px; font-weight: 600;
  text-decoration: none; background: none; border: none; cursor: pointer;
  font-family: inherit; transition: color .15s;
  text-align: center; overflow: hidden;
}
.aurora-mobile-tabbar a span,
.aurora-mobile-tabbar button span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; display: block; line-height: 1.2;
}
.aurora-mobile-tabbar a:hover,
.aurora-mobile-tabbar button:hover,
.aurora-mobile-tabbar a.is-active,
.aurora-mobile-tabbar button.is-active { color: var(--accent); }
.aurora-mobile-tabbar-inner {
  display: flex; align-items: stretch; width: 100%; height: 100%;
}
.aurora-mobile-tabbar svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ══════════════════════════════════════════════
   COMPONENTS
   ══════════════════════════════════════════════ */

/* Card */
.au-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(4px);
  transition: border-color .2s, box-shadow .2s;
}
.au-card:hover { border-color: var(--c-border-2); }
.au-card--glow { box-shadow: var(--shadow-card), var(--shadow-glow); border-color: rgba(79,134,255,.25); }

/* Button */
.au-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: .18s; border: none; text-decoration: none;
  background: linear-gradient(135deg, #3575ff, #5b4aff);
  color: #fff;
  box-shadow: 0 4px 14px rgba(53,117,255,.35);
}
.au-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(53,117,255,.5); filter: brightness(1.1); }
.au-btn:active { transform: translateY(0); }
.au-btn-ghost {
  background: var(--c-surface-2); color: var(--c-text-2);
  box-shadow: none; border: 1px solid var(--c-border);
}
.au-btn-ghost:hover { background: var(--c-surface); color: var(--c-text); box-shadow: none; transform: none; filter: none; }
.au-btn-success { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 4px 14px rgba(16,185,129,.3); }
.au-btn-success:hover { box-shadow: 0 6px 20px rgba(16,185,129,.45); }
.au-btn-sm { padding: 6px 14px; font-size: 12px; }

/* Badge / pill */
.au-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
}
.au-pill-blue   { background: rgba(79,134,255,.15); color: #7aadff; border: 1px solid rgba(79,134,255,.3); }
.au-pill-green  { background: var(--success-bg); color: #6ee7b7; border: 1px solid rgba(16,185,129,.3); }
.au-pill-red    { background: var(--danger-bg);  color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.au-pill-yellow { background: var(--warning-bg); color: #fcd34d; border: 1px solid rgba(245,158,11,.3); }
.au-pill-purple { background: rgba(124,58,237,.15); color: #c4b5fd; border: 1px solid rgba(124,58,237,.3); }

/* KPI metric card */
.au-metric {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border-radius: var(--r-xl);
  background: var(--c-surface); border: 1px solid var(--c-border);
  position: relative; overflow: hidden;
  transition: .2s;
}
.au-metric::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(79,134,255,.04));
  pointer-events: none;
}
.au-metric:hover { border-color: var(--c-border-2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.au-metric-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--c-text-3); }
.au-metric-value { font-size: 28px; font-weight: 800; letter-spacing: -1px; color: var(--c-text); line-height: 1.1; }
.au-metric-sub   { font-size: 12px; color: var(--c-text-2); display: flex; align-items: center; gap: 4px; }
.au-metric-icon  { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 28px; opacity: .65; }
.au-metric-trend { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; }
.au-metric-trend-up   { background: var(--success-bg); color: #6ee7b7; }
.au-metric-trend-down { background: var(--danger-bg);  color: #fca5a5; }

/* Notice */
.au-notice {
  padding: 12px 16px; border-radius: var(--r-md);
  font-size: 13.5px; display: flex; align-items: flex-start; gap: 10px;
  border-left: 3px solid;
}
.au-notice-success { background: var(--success-bg); border-color: var(--success); color: #a7f3d0; }
.au-notice-error   { background: var(--danger-bg);  border-color: var(--danger);  color: #fecaca; }
.au-notice-info    { background: rgba(79,134,255,.08); border-color: var(--accent); color: #bfdbfe; }

/* Form */
.au-form-grid { display: flex; flex-direction: column; gap: 14px; }
.au-field { display: flex; flex-direction: column; gap: 5px; }
.au-field label { font-size: 12px; font-weight: 600; color: var(--c-text-2); letter-spacing: .3px; }
.au-field input, .au-field select, .au-field textarea {
  width: 100%; padding: 10px 14px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.05); border: 1px solid var(--c-border-2);
  color: var(--c-text); font-size: 14px; font-family: inherit;
  transition: .18s; outline: none;
}
.au-field input:focus, .au-field select:focus {
  border-color: var(--accent); background: rgba(79,134,255,.07);
  box-shadow: 0 0 0 3px rgba(79,134,255,.15);
}
.au-field select option { background: #0f1c35; color: var(--c-text); }

/* Table */
.au-table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--c-border); }
.au-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.au-table th {
  padding: 10px 14px; text-align: left;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--c-text-3); background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--c-border);
}
.au-table td { padding: 12px 14px; border-bottom: 1px solid rgba(120,160,255,.06); color: var(--c-text-2); }
.au-table tr:last-child td { border-bottom: 0; }
.au-table tr:hover td { background: rgba(255,255,255,.025); color: var(--c-text); }

/* Grid helpers */
.au-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.au-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.au-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.au-stack-8  { margin-top: 8px; }
.au-stack-16 { margin-top: 16px; }
.au-stack-24 { margin-top: 24px; }

/* Muted text utility */
.au-muted { color: var(--c-text-2); }

/* Divider */
.au-divider { height: 1px; background: var(--c-border); margin: 20px 0; }

/* Chip row */
.au-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.au-chip {
  padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  color: var(--c-text-2); cursor: pointer; transition: .15s; text-decoration: none;
}
.au-chip:hover { border-color: var(--accent); color: var(--accent); }
.au-chip.active, .au-chip.is-active { background: rgba(79,134,255,.15); border-color: var(--accent); color: #8bb8ff; }

/* Section header */
.au-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.au-section-head h2 { font-size: 16px; font-weight: 700; margin: 0; }
.au-section-head a, .au-section-head button { font-size: 12.5px; color: var(--accent); text-decoration: none; cursor: pointer; background: none; border: none; font-family: inherit; }

/* Subscription key card */
.au-key-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: .2s;
}
.au-key-card:hover { border-color: var(--c-border-2); box-shadow: 0 6px 22px rgba(0,0,0,.3); }
.au-key-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.au-key-name { font-size: 14px; font-weight: 700; color: var(--c-text); }
.au-key-meta { font-size: 12px; color: var(--c-text-3); margin-top: 2px; }
.au-key-progress { height: 4px; background: var(--c-border); border-radius: 999px; overflow: hidden; }
.au-key-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.au-key-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.au-key-actions .au-btn { padding: 5px 12px; font-size: 11px; }

/* ══════════════════════════════════════════════
   AUTH PAGES
   ══════════════════════════════════════════════ */
.aurora-auth-scene {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; position: relative; z-index: 1;
}
.aurora-auth-box {
  width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 24px;
}
.aurora-auth-logo {
  display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
}
.aurora-auth-logo-icon {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--g-a), var(--g-b));
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.aurora-auth-logo-icon img { width: 44px; height: 44px; border-radius: 14px; object-fit: contain; }
.aurora-auth-logo-name { font-size: 20px; font-weight: 800; color: var(--c-text); letter-spacing: -.5px; }
.aurora-auth-card {
  background: rgba(10,19,37,.8); backdrop-filter: blur(20px);
  border: 1px solid var(--c-border-2); border-radius: 24px; padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.aurora-auth-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 6px; }
.aurora-auth-card p  { font-size: 13.5px; color: var(--c-text-2); margin: 0 0 20px; }
.aurora-auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.aurora-auth-divider::before, .aurora-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }
.aurora-auth-divider span { font-size: 11px; color: var(--c-text-3); white-space: nowrap; }
.au-tg-btn {
  width: 100%; padding: 11px; border-radius: var(--r-md); font-size: 14px; font-weight: 600;
  background: #229ED9; color: #fff; border: none; cursor: pointer; display: flex;
  align-items: center; justify-content: center; gap: 8px; font-family: inherit;
  transition: .18s;
}
.au-tg-btn:hover { filter: brightness(1.1); }

/* ══════════════════════════════════════════════
   PAYMENT PROVIDER CARD
   ══════════════════════════════════════════════ */
.au-provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.au-provider-card {
  padding: 14px 12px; border-radius: var(--r-lg); border: 2px solid var(--c-border);
  background: var(--c-surface); cursor: pointer; transition: .18s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
}
.au-provider-card:hover { border-color: var(--accent); background: rgba(79,134,255,.07); }
.au-provider-card.selected, .au-provider-card[data-selected="1"] { border-color: var(--accent); background: rgba(79,134,255,.12); }
.au-provider-icon { font-size: 24px; }
.au-provider-name { font-size: 12px; font-weight: 700; color: var(--c-text-2); }

/* ══════════════════════════════════════════════
   AMOUNT QUICK BUTTONS
   ══════════════════════════════════════════════ */
.au-amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.au-amount-btn {
  padding: 10px 6px; border-radius: var(--r-md); border: 1px solid var(--c-border);
  background: var(--c-surface); color: var(--c-text-2); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: .15s; font-family: inherit; text-align: center;
}
.au-amount-btn:hover, .au-amount-btn.is-active {
  border-color: var(--accent); background: rgba(79,134,255,.12); color: var(--c-text);
}

/* ══════════════════════════════════════════════
   PROFILE PROP ROW
   ══════════════════════════════════════════════ */
.au-prop-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: var(--r-md);
  border: 1px solid var(--c-border); background: rgba(255,255,255,.025);
  transition: .15s;
}
.au-prop-row:hover { background: var(--c-surface-2); }
.au-prop-label { font-size: 12px; color: var(--c-text-3); }
.au-prop-value { font-size: 13.5px; font-weight: 600; color: var(--c-text); text-align: right; word-break: break-word; }

/* ══════════════════════════════════════════════
   GRADIENT HERO CARD
   ══════════════════════════════════════════════ */
.au-hero-banner {
  border-radius: var(--r-2xl); padding: 28px 28px 24px;
  background: linear-gradient(135deg, rgba(53,117,255,.18) 0%, rgba(124,58,237,.14) 50%, rgba(6,182,212,.1) 100%);
  border: 1px solid rgba(79,134,255,.22);
  box-shadow: 0 0 60px rgba(53,117,255,.1);
  position: relative; overflow: hidden;
}
.au-hero-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(124,58,237,.15) 0%, transparent 60%);
}
.au-hero-banner > * { position: relative; z-index: 1; }
.au-hero-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #a78bfa; margin-bottom: 10px; }
.au-hero-title { font-size: 26px; font-weight: 800; letter-spacing: -.6px; line-height: 1.2; margin-bottom: 8px; }
.au-hero-subtitle { font-size: 14px; color: var(--c-text-2); line-height: 1.6; margin: 0; }
.au-hero-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   TARIFF CARD
   ══════════════════════════════════════════════ */
.au-tariff-card {
  border-radius: var(--r-xl); padding: 22px; background: var(--c-surface);
  border: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 12px;
  transition: .2s; position: relative; overflow: hidden;
}
.au-tariff-card:hover { border-color: rgba(79,134,255,.4); box-shadow: 0 8px 32px rgba(0,0,0,.3); transform: translateY(-2px); }
.au-tariff-card.featured {
  border-color: rgba(79,134,255,.4);
  background: linear-gradient(160deg, rgba(53,117,255,.1), rgba(124,58,237,.07));
}
.au-tariff-badge { position: absolute; top: 14px; right: 14px; }
.au-tariff-group { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--c-text-3); }
.au-tariff-name  { font-size: 17px; font-weight: 700; color: var(--c-text); }
.au-tariff-price { display: flex; align-items: baseline; gap: 4px; }
.au-tariff-price-val { font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.au-tariff-price-unit { font-size: 14px; color: var(--c-text-2); }
.au-tariff-props { display: flex; flex-direction: column; gap: 4px; }
.au-tariff-prop  { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.au-tariff-prop span { color: var(--c-text-3); }
.au-tariff-prop b    { color: var(--c-text); font-weight: 600; }
.au-tariff-footer { margin-top: auto; }

/* ══════════════════════════════════════════════
   CENTER PAGES (Error, Maintenance)
   ══════════════════════════════════════════════ */
.au-center-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px; text-align: center; padding: 32px;
  position: relative; z-index: 1;
}
.au-center-page .au-big-icon { font-size: 72px; line-height: 1; }
.au-center-page h1 { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin: 0; }
.au-center-page p  { font-size: 15px; color: var(--c-text-2); max-width: 440px; line-height: 1.6; margin: 0; }

/* ══════════════════════════════════════════════
   LOCALE SWITCHER (reuse wc-neo styles)
   ══════════════════════════════════════════════ */
.aurora-locale-wrap { position: relative; }
.aurora-locale-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  color: var(--c-text-2); font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: .15s;
}
.aurora-locale-btn:hover { background: var(--c-surface-2); color: var(--c-text); }
.wc-neo-locale-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: rgba(10,19,37,.95); backdrop-filter: blur(16px);
  border: 1px solid var(--c-border-2); border-radius: var(--r-md);
  padding: 6px; min-width: 140px; z-index: 100;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.wc-neo-locale-item {
  display: block; width: 100%; padding: 8px 12px; border-radius: var(--r-sm);
  background: none; border: none; color: var(--c-text-2); font-size: 13px; font-weight: 500;
  cursor: pointer; text-align: left; font-family: inherit; transition: .15s;
}
.wc-neo-locale-item:hover { background: var(--c-surface-2); color: var(--c-text); }
.wc-neo-locale-item.is-active { color: var(--accent); }

/* ══════════════════════════════════════════════
   GUEST AUTH layout — hide sidebar when on auth pages
   ══════════════════════════════════════════════ */
.aurora-app.aurora-guest-auth {
  grid-template-columns: 1fr;
}
.aurora-app.aurora-guest-auth .aurora-sidebar {
  display: none;
}
.aurora-app.aurora-guest-auth .aurora-main {
  min-height: 0;
}
.aurora-app.aurora-guest-auth .aurora-topbar {
  display: none;
}
.aurora-app.aurora-guest-auth .aurora-content {
  padding: 0;
}

/* ══════════════════════════════════════════════
   m2-* COMPAT OVERRIDES so non-overridden templates
   look correct inside Aurora layout
   ══════════════════════════════════════════════ */
.aurora-body .m2-card {
  background: var(--c-surface) !important;
  border-color: var(--c-border) !important;
  border-radius: var(--r-xl) !important;
}
.aurora-body .m2-btn {
  background: linear-gradient(135deg, #3575ff, #5b4aff) !important;
  border: none !important;
  border-radius: var(--r-md) !important;
  box-shadow: 0 4px 14px rgba(53,117,255,.35) !important;
}
.aurora-body .m2-btn-ghost {
  background: var(--c-surface-2) !important;
  border: 1px solid var(--c-border) !important;
  box-shadow: none !important;
  color: var(--c-text-2) !important;
}
.aurora-body .m2-muted { color: var(--c-text-2) !important; }
.aurora-body .m2-notice.m2-success { background: var(--success-bg) !important; color: #a7f3d0 !important; border-color: var(--success) !important; }
.aurora-body .m2-notice.m2-error  { background: var(--danger-bg)  !important; color: #fecaca    !important; border-color: var(--danger)  !important; }

/* Modal boxes — opaque dark background */
.aurora-body .m2-keys-modal-box,
.aurora-body .m2-connect-modal-box,
.aurora-body .m2-hwid-modal-box {
  background: rgba(8, 15, 32, 0.97) !important;
  border: 1px solid var(--c-border-2) !important;
  box-shadow: 0 24px 64px rgba(0,0,0,.7) !important;
}

/* ══════════════════════════════════════════════
   TOAST / NOTIFICATION CONTAINER
   (global style that works with default JS system)
   ══════════════════════════════════════════════ */
.wc-toast-container {
  position: fixed; bottom: 80px; right: 16px; z-index: 9000;
  display: flex; flex-direction: column; gap: 8px; max-width: 360px;
}
.wc-toast {
  padding: 12px 16px; border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 500;
  background: rgba(10,19,37,.95); border: 1px solid var(--c-border-2);
  backdrop-filter: blur(16px); box-shadow: 0 8px 24px rgba(0,0,0,.4);
  display: flex; align-items: flex-start; gap: 10px;
  opacity: 0; transform: translateY(8px); transition: .2s;
  color: var(--c-text);
}
.wc-toast.is-visible { opacity: 1; transform: none; }
.wc-toast.is-hiding  { opacity: 0; transform: translateY(-4px); }
.wc-toast-success { border-left: 3px solid var(--success); }
.wc-toast-error   { border-left: 3px solid var(--danger); }
.wc-toast-info    { border-left: 3px solid var(--accent); }
.wc-toast-close { background: none; border: none; color: var(--c-text-3); cursor: pointer; font-size: 16px; margin-left: auto; padding: 0 0 0 8px; }

/* ══════════════════════════════════════════════
   PAGE LOADER
   ══════════════════════════════════════════════ */
.wc-page-loader { position: fixed; inset: 0; z-index: 9999; background: var(--c-bg); display: flex; align-items: center; justify-content: center; transition: opacity .3s; }
.wc-page-loader.wc-loaded { opacity: 0; pointer-events: none; }
.wc-page-loader-spinner { width: 36px; height: 36px; border: 3px solid rgba(79,134,255,.12); border-top-color: var(--accent); border-radius: 50%; animation: aurora-spin .7s linear infinite; }
@keyframes aurora-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .aurora-app { grid-template-columns: 1fr; }
  .aurora-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 20;
    transform: translateX(-100%); transition: transform .25s;
  }
  .aurora-sidebar.is-open { transform: translateX(0); }
  .aurora-burger { display: inline-flex; }
  .aurora-content { padding: 20px 16px; }
  .aurora-topbar  { padding: 12px 16px; }
  .aurora-mobile-tabbar { display: flex; }
  .aurora-content { padding-bottom: 72px; }
  .au-grid-2, .au-grid-3, .au-grid-4 { grid-template-columns: 1fr; }
  .au-amount-grid { grid-template-columns: repeat(2, 1fr); }
  .au-hero-title { font-size: 22px; }
}

/* Scrollbar */
.aurora-body ::-webkit-scrollbar { width: 6px; height: 6px; }
.aurora-body ::-webkit-scrollbar-track { background: transparent; }
.aurora-body ::-webkit-scrollbar-thumb { background: rgba(120,160,255,.25); border-radius: 3px; }

/* ══════════════════════════════════════════════
   SUPPORT WIDGET — offset above mobile tabbar
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .aurora-body .wc-support-fab {
    bottom: calc(70px + env(safe-area-inset-bottom));
  }
  .aurora-body .wc-support-widget {
    bottom: calc(140px + env(safe-area-inset-bottom));
    height: min(520px, calc(100svh - 200px));
  }
}
@media (max-width: 400px) {
  .aurora-body .wc-support-fab {
    right: 12px;
    bottom: calc(66px + env(safe-area-inset-bottom));
  }
  .aurora-body .wc-support-widget {
    right: 0;
    left: 0;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    height: min(82svh, calc(100svh - 80px));
    border-radius: 20px 20px 0 0;
  }
}

/* ═══════════════════════════════════════════════
   FEATURED TARIFF HIGHLIGHT
   ═══════════════════════════════════════════════ */
.au-tariff-featured {
  border: 1px solid var(--accent, #74c0ff) !important;
  box-shadow: 0 0 0 1px var(--accent, #74c0ff), 0 6px 20px rgba(116, 192, 255, 0.15);
  position: relative;
}

.au-tariff-featured-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent, #74c0ff);
  color: #0a0f1a;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}

/* Aurora hero strip (slim, replaces full au-hero-banner) */
.au-hero-strip {
  padding: 12px 0 4px;
}

.au-hero-strip .au-hero-title {
  font-size: 20px;
  margin-bottom: 0;
}

/* Aurora subscription focus block */
.au-subscription-focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.au-subscription-focus-text h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.au-subscription-focus-text p {
  margin: 0;
  font-size: 13px;
}

.au-subscription-focus-empty {
  text-align: center;
  padding: 8px 0;
}

.au-subscription-focus-empty h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.au-subscription-focus-empty p {
  margin: 0 0 14px;
  font-size: 13px;
}

/* Aurora profile layout (extracted from inline styles) */
.au-profile-layout { display: grid; gap: 16px; }
.au-props-stack { display: grid; gap: 8px; }
.au-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.au-chip-link {
  display: inline-flex; align-items: center; padding: 6px 14px;
  border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--c-border); color: var(--c-text-2);
  text-decoration: none; transition: background .18s, color .18s, border-color .18s;
}
.au-chip-link:hover { background: var(--c-surface-2); color: var(--c-text); }
.au-chip-link.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.au-profile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* Aurora payments layout (extracted from inline styles) */
.au-pay-layout { display: grid; gap: 16px; }
.au-pay-top {
  display: grid;
  grid-template-columns: minmax(320px, 1.4fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: start;
}
.au-pay-right { display: grid; gap: 0; }
.au-pay-title { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.2; }
.au-pay-subtitle { margin: 6px 0 0; font-size: 14px; }
.au-pay-submit { min-height: 44px; font-weight: 700; width: 100%; }
.au-pay-quick-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.au-pay-summary-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px;
}
.au-pay-summary-item {
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--c-border); background: var(--c-surface-2);
}
.au-pay-summary-item span { display: block; font-size: 12px; }
.au-pay-summary-item strong { display: block; margin-top: 4px; font-size: 18px; line-height: 1.2; }
.au-pay-steps { margin: 0 0 12px; padding-left: 18px; }
.au-pay-steps li { font-size: 13px; color: var(--c-text-2); margin-bottom: 4px; }
.au-pay-history-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.au-pay-search { min-width: 220px; }
.au-pay-status {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 3px 10px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--c-border); background: var(--c-surface-2);
}
.au-pay-status--success { color: #a7f3d0; border-color: rgba(46,204,113,.5); background: rgba(46,204,113,.18); }
.au-pay-status--pending { color: #fde68a; border-color: rgba(241,196,15,.5); background: rgba(241,196,15,.18); }
.au-pay-status--failed  { color: #fecaca; border-color: rgba(231,76,60,.5);  background: rgba(231,76,60,.18); }
@media (max-width: 1100px) {
  .au-pay-top { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .au-pay-title { font-size: 22px; }
  .au-pay-summary-grid { grid-template-columns: 1fr; }
  .au-pay-search { min-width: 100%; width: 100%; }
}

/* Aurora tab bar */
.au-tab-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.au-tab-btn {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-text-2);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.au-tab-btn:hover { background: var(--c-surface-2); color: var(--c-text); }
.au-tab-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.au-tab-panel { display: block; }
.au-tab-panel:not(.is-active) { display: none; }

/* Aurora profile push notification slim banner */
.au-profile-push-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent, #4f86ff) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #4f86ff) 30%, transparent);
  color: var(--c-text);
  font-size: 13px;
  margin-bottom: 14px;
}

/* ── Aurora layout fixes ──────────────────────────────────────────────── */

/* au-grid-4 on mobile: keep 2-col instead of full collapse to 1-col */
@media (max-width: 640px) {
  .au-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* au-props-stack rows: use grid for label/value alignment */
.au-props-stack > * {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

/* Miniapp / narrow mobile: tighter tab buttons */
@media (max-width: 400px) {
  .au-tab-btn {
    font-size: 12px;
    padding: 5px 10px;
  }
  .au-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

