/* ==========================================================================
   NORDIC MU — SEASON 6 EPISODE 3 • AAA DARK-FANTASY PORTAL DESIGN SYSTEM
   Forged Steel × Boreal Runic Frost × Hammered Antique Gold
   ========================================================================== */

:root {
  --bg-void: #04070d;
  --bg-deep: #070c16;
  --bg-surface: #0b1220;
  --bg-elevated: #10192b;
  --bg-glass: rgba(10, 16, 29, 0.78);
  --bg-glass-strong: rgba(8, 13, 24, 0.92);

  --gold-100: #fff2cc;
  --gold-200: #f6d98c;
  --gold-300: #e5b75a;
  --gold-400: #c89438;
  --gold-500: #9b6c20;
  --gold-600: #694512;

  --frost-100: #e0f5ff;
  --frost-200: #9ee0ff;
  --frost-300: #4cc4f8;
  --frost-400: #1b9ad8;
  --frost-500: #0c5d91;

  --crimson-300: #f87171;
  --crimson-400: #dc2626;
  --crimson-500: #991b1b;

  --emerald-300: #34d399;
  --emerald-400: #10b981;

  --amethyst-300: #c084fc;
  --amethyst-400: #9333ea;

  --text-primary: #f1f5fb;
  --text-secondary: #b6c3d8;
  --text-muted: #7687a3;

  --border-subtle: rgba(148, 179, 219, 0.13);
  --border-frost: rgba(76, 196, 248, 0.28);
  --border-gold: rgba(229, 183, 90, 0.36);
  --border-gold-strong: rgba(246, 217, 140, 0.65);

  --font-display: 'Cinzel', Georgia, serif;
  --font-deco: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-panel: 0 22px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-gold: 0 10px 36px rgba(200, 148, 56, 0.26);
  --shadow-frost: 0 10px 36px rgba(76, 196, 248, 0.22);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

body {
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(27, 154, 216, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(200, 148, 56, 0.07), transparent 55%),
    var(--bg-void);
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(76, 196, 248, 0.1);
  border: 1px solid rgba(76, 196, 248, 0.2);
  color: var(--frost-200);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #04070d; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #334866, #1b2a42);
  border-radius: 99px;
  border: 2px solid #04070d;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-400); }

/* Ambient Frost & Forge Canvas */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
}

/* ==========================================================================
   PRELOADER — NORDIC RUNIC GATE
   ========================================================================== */
.preloader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 45%, #0c172b 0%, #04070d 72%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.preloader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-crest-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
}
.preloader-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--gold-300);
  border-right-color: var(--frost-300);
  animation: spinSlow 1.4s linear infinite;
}
.preloader-crest {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-gold-strong);
  box-shadow: 0 0 32px rgba(76, 196, 248, 0.35);
}
.preloader-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 5px;
  background: linear-gradient(180deg, #fff4d2 0%, #e5b75a 55%, #a87424 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.preloader-sub {
  font-size: 12.5px;
  color: var(--frost-200);
  letter-spacing: 0.8px;
}
.preloader-track {
  width: 240px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}
.preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--frost-300), var(--gold-300));
  box-shadow: 0 0 12px var(--frost-300);
  transition: width 0.14s linear;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ==========================================================================
   TOP TELEMETRY TICKER + FLOATING HEADER
   ========================================================================== */
.top-realm-bar {
  position: relative;
  z-index: 60;
  background: rgba(4, 7, 13, 0.94);
  border-bottom: 1px solid rgba(229, 183, 90, 0.16);
  font-size: 12px;
  color: var(--text-secondary);
}
.top-realm-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.realm-pill-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.realm-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.6px;
}
.realm-status-chip.offline {
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-300);
  box-shadow: 0 0 10px var(--emerald-300);
  animation: pulseGlow 1.8s infinite;
}
.realm-status-chip.offline .pulse-dot { background: var(--crimson-300); box-shadow: 0 0 8px var(--crimson-300); }
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
.realm-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}
.realm-meta-item strong { color: var(--text-primary); font-family: var(--font-mono); font-size: 11.5px; }
.realm-meta-item.gold strong { color: var(--gold-200); }
.realm-meta-item.frost strong { color: var(--frost-200); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 55;
  background: rgba(6, 10, 19, 0.84);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(229, 183, 90, 0.22);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.brand-crest-frame {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-500), var(--frost-300));
  box-shadow: 0 0 22px rgba(76, 196, 248, 0.26);
  transition: transform 0.25s var(--ease-out);
}
.brand-lockup:hover .brand-crest-frame { transform: scale(1.05); }
.brand-crest-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.brand-text-col { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2.6px;
  background: linear-gradient(180deg, #fff6d6 0%, #eab95f 55%, #b57b24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-subtitle {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--frost-300);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--gold-100); background: rgba(255, 255, 255, 0.04); }
.nav-link.active {
  color: var(--gold-200);
  background: linear-gradient(180deg, rgba(229, 183, 90, 0.14), rgba(229, 183, 90, 0.03));
}
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
  box-shadow: 0 0 12px var(--gold-300);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
  background: rgba(15, 23, 42, 0.7);
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gold-200);
}

/* ==========================================================================
   FORGED AAA BUTTONS
   ========================================================================== */
.btn-forged-gold,
.btn-forged-frost,
.btn-forged-ghost,
.btn-forged-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 12.5px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s, filter 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-forged-gold {
  background: linear-gradient(180deg, #f5d37c 0%, #d49b39 52%, #9a6719 100%);
  color: #0b0906;
  border: 1px solid #ffe7a8;
  box-shadow: 0 6px 24px rgba(212, 155, 57, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-forged-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 34px rgba(229, 183, 90, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-forged-frost {
  background: linear-gradient(180deg, rgba(28, 63, 99, 0.85) 0%, rgba(12, 31, 56, 0.92) 100%);
  color: var(--frost-100);
  border: 1px solid rgba(76, 196, 248, 0.48);
  box-shadow: 0 6px 22px rgba(27, 154, 216, 0.2), inset 0 1px 0 rgba(158, 224, 255, 0.25);
}
.btn-forged-frost:hover {
  transform: translateY(-2px);
  border-color: var(--frost-200);
  box-shadow: 0 10px 30px rgba(76, 196, 248, 0.35);
}
.btn-forged-ghost {
  background: rgba(15, 23, 42, 0.65);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-forged-ghost:hover {
  border-color: var(--border-gold);
  color: var(--gold-200);
  background: rgba(229, 183, 90, 0.08);
}
.btn-forged-danger {
  background: linear-gradient(180deg, rgba(153, 27, 27, 0.85), rgba(88, 16, 16, 0.92));
  color: #fee2e2;
  border: 1px solid rgba(248, 113, 113, 0.45);
}
.btn-forged-danger:hover {
  transform: translateY(-1px);
  border-color: #fca5a5;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.32);
}
.btn-lg { padding: 15px 28px; font-size: 13.5px; }
.btn-sm { padding: 8px 14px; font-size: 11.5px; }
.btn-full { width: 100%; }

/* ==========================================================================
   PAGE VIEWS & LAYOUT CONTAINERS
   ========================================================================== */
main { position: relative; z-index: 2; }
.page-view { display: none; animation: pageFadeIn 0.32s ease; }
.page-view.active { display: block; }
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 76px 0;
  position: relative;
}
.section-tight { padding: 48px 0; }

/* Ornamental Section Header */
.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}
.section-head.left { text-align: left; margin-left: 0; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--frost-300);
  padding: 5px 14px;
  border-radius: 99px;
  background: rgba(76, 196, 248, 0.08);
  border: 1px solid rgba(76, 196, 248, 0.25);
  margin-bottom: 14px;
}
.section-eyebrow.gold {
  color: var(--gold-200);
  background: rgba(229, 183, 90, 0.1);
  border-color: rgba(229, 183, 90, 0.3);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #ffffff 0%, #e4e9f5 55%, #b9c5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.section-title .gold-accent {
  background: linear-gradient(180deg, #fff5d6 0%, #eab95f 60%, #b57b24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 15px;
}
.runic-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto;
  max-width: 1360px;
  padding: 0 24px;
}
.runic-divider::before,
.runic-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 183, 90, 0.32), transparent);
}
.runic-diamond {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border: 1px solid var(--gold-300);
  background: rgba(229, 183, 90, 0.22);
  box-shadow: 0 0 12px rgba(229, 183, 90, 0.4);
}

/* ==========================================================================
   FORGED OBSIDIAN PANEL PRIMITIVE
   ========================================================================== */
.forged-card {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.94) 0%, rgba(7, 12, 22, 0.97) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-panel);
}
.forged-card.gold-edge {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-panel), 0 0 40px rgba(200, 148, 56, 0.08);
}
.forged-card.frost-edge {
  border-color: var(--border-frost);
  box-shadow: var(--shadow-panel), 0 0 40px rgba(76, 196, 248, 0.08);
}
.forged-card.gold-edge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
}
.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(148, 179, 219, 0.12);
}
.card-header-bar h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--gold-100);
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.badge-gold { background: rgba(229, 183, 90, 0.14); color: var(--gold-200); border: 1px solid rgba(229, 183, 90, 0.35); }
.badge-frost { background: rgba(76, 196, 248, 0.12); color: var(--frost-200); border: 1px solid rgba(76, 196, 248, 0.35); }
.badge-emerald { background: rgba(16, 185, 129, 0.14); color: var(--emerald-300); border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-crimson { background: rgba(220, 38, 38, 0.16); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.35); }
.badge-amethyst { background: rgba(147, 51, 234, 0.18); color: #e9d5ff; border: 1px solid rgba(192, 132, 252, 0.38); }

/* ==========================================================================
   HOME HERO — FULL-BLEED CINEMATIC MIDGARD STAGE
   ========================================================================== */
.hero-stage {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(229, 183, 90, 0.22);
}
.hero-bg-art {
  position: absolute;
  inset: 0;
  background-image: url('/assets/banner.png');
  background-size: cover;
  background-position: 72% 20%;
  transform: scale(1.02);
  filter: saturate(1.12) contrast(1.06);
  z-index: 0;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 7, 13, 0.96) 0%, rgba(4, 7, 13, 0.84) 38%, rgba(4, 7, 13, 0.36) 66%, rgba(4, 7, 13, 0.62) 100%),
    linear-gradient(180deg, rgba(4, 7, 13, 0.5) 0%, transparent 25%, transparent 70%, #04070d 100%);
}
.hero-content-grid {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 68px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 410px);
  gap: 44px;
  align-items: end;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 99px;
  background: rgba(8, 14, 27, 0.82);
  border: 1px solid rgba(229, 183, 90, 0.42);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold-200);
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
  color: #ffffff;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.75);
}
.hero-h1 .line-gold {
  display: block;
  background: linear-gradient(180deg, #fff8de 0%, #f0c367 48%, #b97d22 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: 16px;
  color: #d1dcf0;
  max-width: 600px;
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.hero-lead strong { color: var(--frost-100); }
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
}
.hero-metric-box {
  background: rgba(7, 12, 23, 0.78);
  border: 1px solid rgba(148, 179, 219, 0.16);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  backdrop-filter: blur(10px);
}
.hero-metric-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--gold-200);
  line-height: 1.1;
}
.hero-metric-val.frost { color: var(--frost-200); }
.hero-metric-lbl {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Right Floating Valhalla Command Card */
.hero-command-card {
  background: linear-gradient(180deg, rgba(9, 15, 29, 0.86) 0%, rgba(5, 9, 18, 0.94) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 240, 200, 0.16);
}
.hcc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(229, 183, 90, 0.18);
}
.hcc-head img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
}
.hcc-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--gold-100);
  letter-spacing: 0.8px;
}
.hcc-sub { font-size: 11.5px; color: var(--frost-300); font-weight: 600; }

.hcc-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 14px;
}
.hcc-spec {
  background: rgba(15, 25, 44, 0.72);
  border: 1px solid rgba(148, 179, 219, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
}
.hcc-spec span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 700;
}
.hcc-spec strong {
  display: block;
  font-size: 12.5px;
  color: var(--text-primary);
  margin-top: 2px;
}
.hcc-spec strong.gold { color: var(--gold-200); }
.hcc-spec strong.frost { color: var(--frost-200); }

.hcc-siege-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(153, 27, 27, 0.24), rgba(200, 148, 56, 0.16));
  border: 1px solid rgba(229, 183, 90, 0.34);
  margin-bottom: 12px;
}
.hcc-siege-banner small {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fca5a5;
  font-weight: 800;
}
.hcc-siege-banner strong {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--gold-100);
}
.hcc-next-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(76, 196, 248, 0.08);
  border: 1px solid rgba(76, 196, 248, 0.28);
}
.hcc-next-event small {
  display: block;
  font-size: 10.5px;
  color: var(--frost-300);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-weight: 700;
}
.hcc-next-event strong {
  font-size: 14px;
  color: #fff;
}
.hcc-timer-mono {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--gold-200);
  text-shadow: 0 0 18px rgba(229, 183, 90, 0.45);
}

/* ==========================================================================
   AAA 7-CLASS THEATRICAL SHOWCASE (HOME + /CLASSES)
   ========================================================================== */
.class-showcase-stage {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-gold);
  background:
    radial-gradient(circle at 72% 48%, var(--cls-aura, rgba(220, 38, 38, 0.2)), transparent 54%),
    radial-gradient(circle at 22% 85%, rgba(76, 196, 248, 0.08), transparent 50%),
    linear-gradient(135deg, #070b15 0%, #05080f 55%, #090e1a 100%);
  overflow: hidden;
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 240, 195, 0.12);
  transition: background 0.45s ease;
}
.class-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid rgba(229, 183, 90, 0.18);
  background: rgba(5, 8, 15, 0.85);
}
.class-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 8px 13px;
  border-right: 1px solid rgba(148, 179, 219, 0.08);
  position: relative;
  transition: background 0.25s, transform 0.2s;
  color: var(--text-muted);
}
.class-rail-btn:last-child { border-right: none; }
.class-rail-btn:hover { background: rgba(255, 255, 255, 0.04); color: var(--text-primary); }
.class-rail-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(148, 179, 219, 0.25);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.class-rail-btn.active {
  background: linear-gradient(180deg, rgba(229, 183, 90, 0.14), rgba(229, 183, 90, 0.02));
  color: var(--gold-100);
}
.class-rail-btn.active .class-rail-avatar {
  border-color: var(--gold-200);
  box-shadow: 0 0 20px rgba(229, 183, 90, 0.45);
  transform: scale(1.08);
}
.class-rail-btn.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
}
.class-rail-name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-align: center;
  line-height: 1.2;
}
.class-rail-tag {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--frost-300);
  opacity: 0.85;
}

.class-stage-body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: center;
  padding: 36px 40px 38px;
  min-height: 540px;
}
.class-info-pane { position: relative; z-index: 2; }
.class-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 99px;
  background: rgba(229, 183, 90, 0.12);
  border: 1px solid rgba(229, 183, 90, 0.36);
  color: var(--gold-200);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.class-title-main {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 900;
  letter-spacing: 1.4px;
  line-height: 1.08;
  background: linear-gradient(180deg, #ffffff 0%, #f5d98c 65%, #c58c2e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.class-evo-chain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--frost-200);
  margin-bottom: 18px;
}
.class-evo-chain .arrow { color: var(--gold-300); }
.class-lore-text {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 580px;
}
.class-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.class-skill-pill {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(15, 25, 44, 0.85);
  border: 1px solid rgba(76, 196, 248, 0.25);
  color: var(--frost-100);
}
.class-bars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin-bottom: 24px;
}
.cbar-item {}
.cbar-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.cbar-top strong { color: var(--gold-200); font-family: var(--font-mono); }
.cbar-track {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.cbar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--frost-400), var(--gold-300));
  box-shadow: 0 0 14px rgba(229, 183, 90, 0.45);
  transition: width 0.5s var(--ease-out);
}
.class-meta-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 179, 219, 0.14);
}
.class-meta-box span {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
}
.class-meta-box strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-primary);
  margin-top: 3px;
}

.class-art-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 490px;
}
.class-art-halo {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cls-aura, rgba(220, 38, 38, 0.28)) 0%, transparent 68%);
  filter: blur(22px);
  pointer-events: none;
}
.class-art-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 410px;
  height: 510px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  /* Seamless radial/edge fade so the #05080f art melts into the dark stage */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 7%, #000 84%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 7%, #000 84%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.8));
  transition: opacity 0.3s ease, transform 0.45s var(--ease-out);
}
.class-art-img.swapping { opacity: 0.15; transform: scale(0.97); }

/* ==========================================================================
   PILLARS / FEATURE CARDS + GRIDS
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.pillar-card {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.82), rgba(7, 12, 22, 0.94));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: transform 0.28s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65), 0 0 28px rgba(229, 183, 90, 0.12);
}
.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(229, 183, 90, 0.18), rgba(76, 196, 248, 0.12));
  border: 1px solid rgba(229, 183, 90, 0.34);
  margin-bottom: 16px;
}
.pillar-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--frost-300);
  margin-bottom: 6px;
}
.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--gold-100);
  margin-bottom: 9px;
}
.pillar-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* ==========================================================================
   TABLES — AAA CLEAN DATA GRIDS
   ========================================================================== */
.data-table-wrap { width: 100%; overflow-x: auto; }
.aaa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.aaa-table thead th {
  text-align: left;
  padding: 11px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(229, 183, 90, 0.22);
  white-space: nowrap;
}
.aaa-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(148, 179, 219, 0.08);
  color: var(--text-secondary);
  vertical-align: middle;
}
.aaa-table tbody tr:hover td {
  background: rgba(76, 196, 248, 0.05);
  color: var(--text-primary);
}
.rank-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}
.rank-1 { background: linear-gradient(135deg, #f8da85, #b77b1d); color: #120d05; box-shadow: 0 0 14px rgba(229, 183, 90, 0.45); }
.rank-2 { background: linear-gradient(135deg, #e2e8f0, #64748b); color: #0b1120; }
.rank-3 { background: linear-gradient(135deg, #f59e0b, #7c2d12); color: #fff7ed; }

.char-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.char-mini-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-gold);
  flex-shrink: 0;
}
.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #475569;
  margin-right: 5px;
}
.online-dot.on { background: var(--emerald-300); box-shadow: 0 0 9px var(--emerald-300); }

/* Live Events List */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  border-radius: var(--radius-md);
  background: rgba(12, 20, 35, 0.72);
  border: 1px solid rgba(148, 179, 219, 0.11);
  transition: border-color 0.2s, background 0.2s;
}
.event-row:hover {
  border-color: rgba(76, 196, 248, 0.34);
  background: rgba(16, 27, 46, 0.86);
}
.event-row.featured {
  background: linear-gradient(90deg, rgba(153, 27, 27, 0.18), rgba(200, 148, 56, 0.12));
  border-color: rgba(229, 183, 90, 0.35);
}
.event-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}
.event-schedule {
  font-size: 12px;
  color: var(--text-muted);
}
.event-countdown {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--frost-200);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(4, 7, 13, 0.65);
  border: 1px solid rgba(76, 196, 248, 0.22);
  white-space: nowrap;
}
.event-row.featured .event-countdown {
  color: var(--gold-200);
  border-color: rgba(229, 183, 90, 0.36);
}

/* ==========================================================================
   SUBPAGE HERO BANNER
   ========================================================================== */
.subpage-hero {
  position: relative;
  padding: 64px 24px 48px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(229, 183, 90, 0.18);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(76, 196, 248, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(200, 148, 56, 0.08), transparent 70%),
    linear-gradient(180deg, #070d19 0%, #04070d 100%);
}
.subpage-crumb {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--frost-300);
  margin-bottom: 12px;
}
.subpage-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: 1.2px;
  background: linear-gradient(180deg, #ffffff 0%, #f5d98c 65%, #c58c2e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.subpage-desc {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ==========================================================================
   VIP COMPARISON TIER CARDS (4-TIER MATRIX)
   ========================================================================== */
.vip-tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.vip-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(13, 21, 37, 0.9), rgba(7, 11, 21, 0.96));
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.vip-card:hover { transform: translateY(-4px); }
.vip-card.bronze { border-color: rgba(217, 119, 6, 0.45); }
.vip-card.prata { border-color: rgba(148, 163, 184, 0.5); }
.vip-card.ouro {
  border-color: var(--gold-300);
  background: linear-gradient(180deg, rgba(46, 33, 12, 0.46), rgba(8, 12, 22, 0.96));
  box-shadow: 0 22px 54px rgba(200, 148, 56, 0.18), inset 0 1px 0 rgba(255, 240, 195, 0.25);
}
.vip-crown-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.vip-card.free .vip-crown-tag { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; }
.vip-card.bronze .vip-crown-tag { background: rgba(217, 119, 6, 0.2); color: #fbbf24; }
.vip-card.prata .vip-crown-tag { background: rgba(148, 163, 184, 0.24); color: #e2e8f0; }
.vip-card.ouro .vip-crown-tag { background: rgba(229, 183, 90, 0.28); color: var(--gold-100); border: 1px solid var(--gold-300); }

.vip-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}
.vip-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--frost-200);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 179, 219, 0.12);
}
.vip-price strong { font-size: 21px; color: var(--gold-200); }
.vip-perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.vip-perks-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}
.vip-perks-list li > span:first-child {
  position: absolute;
  left: 0;
  top: 0;
}
.vip-perks-list .ok { color: var(--emerald-300); font-weight: 800; }
.vip-perks-list .no { color: #64748b; }
.vip-perks-list .star { color: var(--gold-200); font-weight: 800; }

/* ==========================================================================
   BOSSES GALLERY
   ========================================================================== */
.bosses-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.boss-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.9), rgba(6, 10, 19, 0.96));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.28s var(--ease-out), border-color 0.25s;
}
.boss-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
}
.boss-stage {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: radial-gradient(circle at 50% 60%, rgba(76, 196, 248, 0.16), rgba(4, 7, 13, 0.95) 75%);
  border-bottom: 1px solid rgba(148, 179, 219, 0.1);
}
.boss-stage img {
  max-height: 185px;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.85));
  transition: transform 0.35s var(--ease-out);
}
.boss-card:hover .boss-stage img { transform: scale(1.06); }
.boss-body { padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.boss-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--gold-100);
  margin: 8px 0 4px;
}
.boss-loc { font-size: 12px; color: var(--frost-300); font-weight: 700; margin-bottom: 10px; display: block; }
.boss-body p { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.boss-drops {
  padding-top: 12px;
  border-top: 1px solid rgba(148, 179, 219, 0.1);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.boss-drops strong { color: var(--gold-200); }

/* ==========================================================================
   FORMS & ALERTS
   ========================================================================== */
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
  margin-bottom: 7px;
}
.nordic-input {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 179, 219, 0.22);
  background: rgba(5, 9, 18, 0.85);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nordic-input:focus {
  outline: none;
  border-color: var(--gold-300);
  box-shadow: 0 0 0 3px rgba(229, 183, 90, 0.16);
}
.feedback-box {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 16px;
}
.feedback-box.show { display: block; }
.feedback-box.ok {
  background: rgba(16, 185, 129, 0.13);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}
.feedback-box.err {
  background: rgba(220, 38, 38, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

/* ==========================================================================
   AAA USER PANEL (/panel) — COMMAND CENTER & VIP AUTO-DISTRIBUTOR
   ========================================================================== */
.panel-top-banner {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-gold);
  background:
    radial-gradient(ellipse 60% 90% at 90% 20%, rgba(229, 183, 90, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 90% at 10% 80%, rgba(76, 196, 248, 0.14), transparent 60%),
    linear-gradient(135deg, #0b1324 0%, #060a14 100%);
  padding: 26px 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-panel);
}
.panel-identity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.panel-user-block {
  display: flex;
  align-items: center;
  gap: 16px;
}
.panel-user-crest {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, var(--gold-200), var(--frost-300));
  box-shadow: 0 0 26px rgba(229, 183, 90, 0.28);
}
.panel-user-crest img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}
.panel-account-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.panel-account-meta {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.currency-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.currency-tile {
  background: rgba(5, 9, 18, 0.72);
  border: 1px solid rgba(148, 179, 219, 0.14);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.currency-tile span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.currency-tile strong {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-200);
}
.currency-tile.frost strong { color: var(--frost-200); }
.currency-tile.emerald strong { color: var(--emerald-300); }
.currency-tile.amethyst strong { color: var(--amethyst-300); }

.panel-nav-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: rgba(8, 13, 25, 0.88);
  border: 1px solid var(--border-subtle);
}
.panel-tab-btn {
  flex: 1;
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: all 0.22s ease;
}
.panel-tab-btn:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.panel-tab-btn.active {
  background: linear-gradient(135deg, rgba(229, 183, 90, 0.22), rgba(76, 196, 248, 0.14));
  border: 1px solid var(--border-gold);
  color: var(--gold-100);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Character Selector Rail inside Panel */
.hero-roster-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.roster-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(11, 18, 33, 0.84);
  border: 1px solid rgba(148, 179, 219, 0.14);
  text-align: left;
  transition: all 0.22s ease;
}
.roster-card:hover { border-color: rgba(229, 183, 90, 0.4); transform: translateY(-2px); }
.roster-card.active {
  background: linear-gradient(135deg, rgba(229, 183, 90, 0.16), rgba(14, 24, 42, 0.96));
  border-color: var(--gold-300);
  box-shadow: 0 10px 30px rgba(200, 148, 56, 0.18);
}
.roster-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid var(--border-gold);
  flex-shrink: 0;
}
.roster-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.roster-sub { font-size: 11.5px; color: var(--text-muted); }

/* Active Hero Showcase Card in Panel */
.panel-hero-workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.hero-portrait-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  background: linear-gradient(180deg, #0b1222 0%, #050810 100%);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}
.hero-portrait-visual {
  position: relative;
  height: 290px;
  background: radial-gradient(circle at 50% 42%, rgba(76, 196, 248, 0.16), #05080f 75%);
  overflow: hidden;
}
.hero-portrait-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
}
.hero-portrait-overlay {
  padding: 18px 20px 20px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
}
.hero-portrait-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--gold-100);
}
.hero-portrait-class {
  font-size: 12.5px;
  color: var(--frost-200);
  font-weight: 700;
  margin-bottom: 14px;
}
.hero-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hero-mini-pill {
  background: rgba(12, 20, 36, 0.85);
  border: 1px solid rgba(148, 179, 219, 0.12);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.hero-mini-pill span { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.hero-mini-pill strong { font-family: var(--font-mono); font-size: 13.5px; color: #fff; }

/* Stat Gauges + Manual Distributor */
.stat-gauge-row {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr) 92px 96px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 179, 219, 0.08);
}
.stat-gauge-row:last-child { border-bottom: none; }
.stat-label { font-weight: 700; font-size: 13px; color: var(--text-primary); }
.stat-label small { display: block; font-size: 10.5px; color: var(--text-muted); font-weight: 500; }
.stat-bar-outer {
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}
.stat-bar-inner {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--frost-400), var(--gold-300));
  transition: width 0.35s var(--ease-out);
}
.stat-val-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-200);
  text-align: right;
}
.stat-add-input {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(148, 179, 219, 0.22);
  background: rgba(4, 7, 13, 0.9);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  width: 100%;
  text-align: center;
}
.stat-add-input:focus { outline: none; border-color: var(--gold-300); }
.stat-add-input:disabled { opacity: 0.35; cursor: not-allowed; }

/* Action Tiles Grid */
.panel-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.action-tile-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: rgba(12, 20, 36, 0.85);
  border: 1px solid rgba(148, 179, 219, 0.16);
  text-align: left;
  transition: all 0.22s ease;
}
.action-tile-btn:hover {
  border-color: var(--gold-300);
  background: rgba(229, 183, 90, 0.1);
  transform: translateY(-2px);
}
.action-tile-btn.highlight {
  background: linear-gradient(135deg, rgba(229, 183, 90, 0.18), rgba(14, 24, 42, 0.92));
  border-color: rgba(229, 183, 90, 0.45);
}
.action-tile-btn strong {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold-100);
  letter-spacing: 0.6px;
}
.action-tile-btn small { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }

.teleport-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tp-pill {
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(76, 196, 248, 0.1);
  border: 1px solid rgba(76, 196, 248, 0.28);
  color: var(--frost-100);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
}
.tp-pill:hover {
  background: rgba(76, 196, 248, 0.22);
  border-color: var(--frost-200);
  transform: translateY(-1px);
}

/* ==========================================================================
   VIP AUTO-DISTRIBUTOR MODULE — FLAGSHIP FEATURE
   ========================================================================== */
.autodist-hero-box {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-gold);
  background:
    radial-gradient(ellipse 55% 80% at 100% 0%, rgba(229, 183, 90, 0.15), transparent 60%),
    radial-gradient(ellipse 55% 80% at 0% 100%, rgba(76, 196, 248, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(13, 21, 37, 0.94), rgba(6, 10, 19, 0.98));
  padding: 28px;
  box-shadow: var(--shadow-panel);
}
.autodist-switch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(5, 9, 18, 0.8);
  border: 1px solid rgba(229, 183, 90, 0.28);
  margin-bottom: 22px;
}
.toggle-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.toggle-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  width: 56px;
  height: 30px;
  border-radius: 99px;
  background: #1e293b;
  border: 1px solid rgba(148, 179, 219, 0.3);
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: transform 0.25s var(--ease-out), background 0.25s;
}
.toggle-pill input:checked + .toggle-track {
  background: linear-gradient(90deg, #059669, #10b981);
  border-color: #6ee7b7;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.45);
}
.toggle-pill input:checked + .toggle-track::after {
  transform: translateX(26px);
  background: #ffffff;
}
.preset-chips-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.preset-chip-btn {
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(229, 183, 90, 0.1);
  border: 1px solid rgba(229, 183, 90, 0.32);
  color: var(--gold-200);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
}
.preset-chip-btn:hover {
  background: rgba(229, 183, 90, 0.22);
  border-color: var(--gold-200);
  transform: translateY(-1px);
}
.autodist-sliders-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.ad-stat-box {
  background: rgba(6, 11, 22, 0.85);
  border: 1px solid rgba(148, 179, 219, 0.16);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ad-stat-box.locked { opacity: 0.42; }
.ad-stat-box label {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gold-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ad-stat-box input[type="range"] {
  width: 100%;
  accent-color: var(--gold-300);
  cursor: pointer;
}
.ad-stat-box input[type="number"] {
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid rgba(229, 183, 90, 0.28);
  background: rgba(4, 7, 13, 0.92);
  color: var(--frost-100);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.ad-stat-box input[type="number"]:focus { outline: none; border-color: var(--gold-200); }

.vip-lock-gate {
  text-align: center;
  padding: 48px 28px;
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(229, 183, 90, 0.45);
  background: radial-gradient(circle at 50% 0%, rgba(229, 183, 90, 0.12), rgba(7, 12, 22, 0.95) 70%);
}
.vip-lock-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: rgba(229, 183, 90, 0.14);
  border: 2px solid var(--gold-300);
  box-shadow: 0 0 32px rgba(229, 183, 90, 0.28);
}

/* Jewel Bank Visual Cards */
.jewels-summary-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.jewel-orb-card {
  background: rgba(7, 12, 23, 0.88);
  border: 1px solid rgba(148, 179, 219, 0.14);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
}
.jewel-gem {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  border-radius: 8px;
  transform: rotate(45deg);
  box-shadow: 0 0 18px currentColor;
}
.jewel-orb-card strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  color: #fff;
}
.jewel-orb-card span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

/* ==========================================================================
   PATCH NOTES CARDS & FOOTER
   ========================================================================== */
.patch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.patch-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(10, 16, 29, 0.85);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.patch-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-100);
}
.patch-card ul {
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 64px;
  border-top: 1px solid rgba(229, 183, 90, 0.22);
  background: linear-gradient(180deg, rgba(6, 10, 19, 0.92) 0%, #03050a 100%);
  padding: 52px 24px 36px;
}
.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(148, 179, 219, 0.1);
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-200);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--frost-200); }
.footer-bottom {
  max-width: 1360px;
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-content-grid { grid-template-columns: 1fr; align-items: start; }
  .pillars-grid, .vip-tiers-grid, .bosses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-stage-body { grid-template-columns: 1fr; padding: 26px; }
  .class-art-stage { order: -1; min-height: 400px; }
  .panel-hero-workspace { grid-template-columns: 1fr; }
  .autodist-sliders-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jewels-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .currency-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(5, 9, 18, 0.98);
    border-bottom: 1px solid var(--border-gold);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px;
    gap: 6px;
  }
  .main-nav.open { display: flex; }
  .mobile-menu-btn { display: inline-flex; }
  .grid-2, .grid-3, .patch-grid, .footer-inner { grid-template-columns: 1fr; }
  .class-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .panel-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .hero-metrics-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars-grid, .vip-tiers-grid, .bosses-grid { grid-template-columns: 1fr; }
  .class-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .class-bars-grid, .class-meta-footer { grid-template-columns: 1fr; }
  .autodist-sliders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .currency-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-gauge-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .header-actions .hide-mobile { display: none; }
}
