/**
 * MINDLOOP 360 - DEDICATED NEURAL WORKSPACE & ASTRO-PSYCHOMETRICS
 * Tiêu chuẩn: Gemini 4 Argon High + UI/UX Pro Max (Cyber-Luxury Glassmorphism)
 */

:root {
  --bg-deep: #05070a;
  --bg-main: #07090e;
  --bg-card: rgba(255, 255, 255, 0.028);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --bg-card-active: rgba(255, 255, 255, 0.08);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.11);
  --border-card-hover: rgba(255, 255, 255, 0.24);
  --border-highlight: rgba(255, 255, 255, 0.4);
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.76);
  --text-muted: rgba(255, 255, 255, 0.44);
  --text-faint: rgba(255, 255, 255, 0.25);
  
  --accent-gold: #f3cb79;
  --accent-gold-glow: rgba(243, 203, 121, 0.25);
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  --accent-emerald: #34d399;
  --accent-emerald-glow: rgba(52, 211, 153, 0.25);
  --accent-purple: #c084fc;
  --accent-purple-glow: rgba(192, 132, 252, 0.25);
  --accent-rose: #fb7185;
  --accent-amber: #fbbf24;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-heading: 'HelveticaNowDisplay-Medium', 'Plus Jakarta Sans', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'HelveticaNowDisplayW01-Rg', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: 
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.09) 0%, transparent 60%),
    radial-gradient(circle at 85% 45%, rgba(243, 203, 121, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 15% 75%, rgba(192, 132, 252, 0.05) 0%, transparent 50%),
    #05070a;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Sci-Fi Grid Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ==============================================================================
 * 1. APP HEADER (LIQUID FROSTED GLASS)
 * ============================================================================== */
.portal-header {
  height: 72px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 9, 14, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 40px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.brand-wrap:hover {
  opacity: 0.9;
}

.brand-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(243, 203, 121, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.5px;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-institute {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  opacity: 0.9;
  white-space: nowrap;
}

.brand-title span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  font-weight: 700;
  background: linear-gradient(135deg, #FFF7D9 0%, #F5CE7B 50%, #D4A03D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(243, 203, 121, 0.45));
}

/* Header Live Status Pills */
.header-status-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .header-status-pills {
    display: none;
  }
}

.header-pills-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
  flex-shrink: 0;
}

.header-pie-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-right: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-tuvi-pill {
  text-decoration: none;
  border-color: rgba(243, 203, 121, 0.3) !important;
  background: rgba(243, 203, 121, 0.07) !important;
  color: #ffffff !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-tuvi-pill:hover {
  background: rgba(243, 203, 121, 0.16) !important;
  border-color: rgba(243, 203, 121, 0.6) !important;
  transform: translateY(-1px);
}

.header-tuvi-pill .tuvi-dot {
  background: var(--accent-gold) !important;
  box-shadow: 0 0 8px var(--accent-gold) !important;
}

.header-pill .pill-key {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 11px;
  color: var(--accent-cyan);
  margin-right: 2px;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
}

.header-pill.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.header-pill.active .pill-dot {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

.header-pill.active .pill-val {
  color: #ffffff;
  font-weight: 700;
  font-family: var(--font-mono);
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Header Actions & Profile */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-portal-pill {
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.btn-portal-pill:active {
  transform: scale(0.97) translateY(1px);
  transition-duration: 0.08s;
}

.btn-portal-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
}

.btn-portal-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: var(--border-card-hover);
  transform: translateY(-1px);
}

.btn-portal-white {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.2);
}

.btn-portal-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.35);
  background: #f8fafc;
}

/* ==============================================================================
 * 2. PORTAL MAIN CONTAINER
 * ============================================================================== */
.portal-main {
  flex: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 36px clamp(16px, 3vw, 36px) 100px;
  position: relative;
  z-index: 1;
}

/* ==============================================================================
 * 3. HERO: THE NEURAL CORE (3D BRAIN & DYNAMIC PROGRESS)
 * ============================================================================== */
.neural-core-card {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border-card);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Decorative ambient glow inside hero */
.neural-core-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(243, 203, 121, 0.04) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.neural-core-grid {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  align-items: stretch;
  gap: 28px;
  position: relative;
  z-index: 2;
}

@media (max-width: 1040px) {
  .neural-core-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.neural-core-info {
  display: flex;
  flex-direction: column;
}

.core-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  background: rgba(243, 203, 121, 0.08);
  border: 1px solid rgba(243, 203, 121, 0.22);
  padding: 5px 14px;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.core-tag .live-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
  animation: pulseDot 1.8s infinite;
}

.core-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.core-heading-line-1 {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  background: linear-gradient(180deg, #FFFFFF 20%, #E2E8F0 60%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 20px rgba(255, 255, 255, 0.2));
}

.core-heading-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  -webkit-text-fill-color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
  vertical-align: middle;
}

.core-heading-line-2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.25vw, 31px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #f1f5f9;
}

.core-heading-separator {
  color: rgba(243, 203, 121, 0.45);
  font-weight: 300;
  margin: 0 4px;
}

.core-heading-line-2 .serif-gold-radiant {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(135deg, #FFF7D9 0%, #F6D68D 30%, #E5A93C 70%, #C88319 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(243, 203, 121, 0.5));
  white-space: nowrap;
}

.core-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 28px;
}

.core-desc strong {
  color: #ffffff;
  font-weight: 600;
}

/* ==============================================================================
 * DUAL EMPIRE HERO LAYOUT: MA TRẬN A-P-I-E & KHU VỰC TỬ VI 12 CUNG
 * ============================================================================== */
.hero-apie-intro {
  margin-bottom: 8px;
}

.hero-apie-subgrid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

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

/* Khối 2: "Các chỉ số" */
.hero-metrics-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.metrics-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.metrics-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
}

.metrics-pct-live {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.metrics-progress-bar-wrap {
  width: 100%;
  height: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 8px;
}

.metrics-progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.metrics-status-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.metrics-status-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.neural-lobes-hud.compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.neural-lobes-hud.compact .lobe-chip {
  padding: 5px 8px;
  font-size: 10.5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}

.neural-lobes-hud.compact .lobe-chip.unlocked {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
}

.btn-metrics-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: #ffffff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-metrics-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Khối 3: "Bộ não 3D" */
.hero-brain-box {
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 230px;
}

.neural-3d-wrap.compact {
  position: relative;
  width: 100%;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neural-3d-pedestal {
  position: absolute;
  bottom: 12px;
  width: 170px;
  height: 44px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.25) 0%, rgba(243, 203, 121, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

#portal-3d-canvas-wrap {
  width: 100%;
  height: 100%;
  cursor: grab;
  position: relative;
  z-index: 2;
}

#portal-3d-canvas-wrap:active {
  cursor: grabbing;
}

.neural-interactive-badge {
  position: absolute;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-subtle);
  font-size: 10.5px;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 3;
}

/* ==============================================================================
 * CỘT PHẢI: KHU VỰC GIỚI THIỆU TỬ VI 12 CUNG VỊ
 * ============================================================================== */
.hero-tuvi-column {
  display: flex;
  flex-direction: column;
}

.hero-tuvi-card {
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(243, 203, 121, 0.07) 0%, rgba(18, 14, 8, 0.6) 100%);
  border: 1px solid rgba(243, 203, 121, 0.25);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(243, 203, 121, 0.15);
  position: relative;
  overflow: hidden;
}

.tuvi-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  background: rgba(243, 203, 121, 0.12);
  border: 1px solid rgba(243, 203, 121, 0.3);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.tuvi-gold-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.hero-tuvi-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 6px;
}

.hero-tuvi-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

/* Fast An Sao Form in Hero */
.hero-quick-tuvi-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-tuvi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quick-field label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.quick-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 7px 10px;
  color: #ffffff;
  font-size: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.quick-input:focus {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(243, 203, 121, 0.2);
}

.btn-quick-an-sao {
  margin-top: 4px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFF7D9 0%, #F5CE7B 50%, #D4A03D 100%);
  color: #0b0f19;
  font-weight: 700;
  font-size: 12.5px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(243, 203, 121, 0.3);
  transition: all 0.2s ease;
}

.btn-quick-an-sao:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(243, 203, 121, 0.45);
}

/* Celestial Passport Summary */
.hero-tuvi-passport {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.passport-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(243, 203, 121, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.passport-item .p-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.passport-item .p-val {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

.passport-item .p-val.gold {
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(243, 203, 121, 0.3);
}

.passport-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-tuvi-passport-jump {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  color: #000000;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.btn-tuvi-passport-jump:hover {
  transform: translateY(-1px);
  background: #f8fafc;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.35);
}

.btn-tuvi-recalc {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tuvi-recalc:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* ==============================================================================
 * MODAL TRACK SELECTOR (HỌC ĐƯỜNG VS SỰ NGHIỆP)
 * ============================================================================== */
.modal-track-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-track-overlay.open {
  display: flex !important;
}

.modal-track-card {
  position: relative;
  max-width: 780px;
  width: 100%;
  border-radius: 28px;
  background: #090d14;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-track-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.modal-track-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.modal-track-header {
  margin-bottom: 28px;
  text-align: center;
}

.modal-track-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  backdrop-filter: blur(14px);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-track-tag .tag-icon {
  font-size: 13px;
  line-height: 1;
}

.modal-track-tag.theme-aq {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(217, 119, 6, 0.08));
  border-color: rgba(245, 158, 11, 0.40);
  color: #fde68a;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.22);
}

.modal-track-tag.theme-personality {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(5, 150, 105, 0.08));
  border-color: rgba(16, 185, 129, 0.40);
  color: #6ee7b7;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.22);
}

.modal-track-tag.theme-iq {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(2, 132, 199, 0.08));
  border-color: rgba(56, 189, 248, 0.40);
  color: #7dd3fc;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.22);
}

.modal-track-tag.theme-eq {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.16), rgba(225, 29, 72, 0.08));
  border-color: rgba(244, 63, 94, 0.40);
  color: #fda4af;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.22);
}

.modal-track-header h2 {
  font-family: var(--font-display);
  font-size: clamp(23px, 3.2vw, 29px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  line-height: 1.35;
  background: linear-gradient(180deg, #FFFFFF 40%, #E2E8F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-track-header p {
  font-size: 14px;
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 400;
}

.track-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 680px) {
  .track-options-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.track-option-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
}

.track-option-card.recommended {
  border-color: rgba(243, 203, 121, 0.5);
  background: rgba(243, 203, 121, 0.035);
  box-shadow: 0 0 25px rgba(243, 203, 121, 0.08);
}

.track-option-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.track-badge-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 12px;
}

.track-badge-tag.student {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--accent-emerald);
}

.track-badge-tag.career {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
}

.track-recommended-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(243, 203, 121, 0.15);
  border: 1px solid rgba(243, 203, 121, 0.4);
  color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(243, 203, 121, 0.25);
}

.track-option-card h3 {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.track-age-scope {
  font-size: 12px;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.track-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-select-track {
  width: 100%;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-select-track:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* ==============================================================================
 * 4. THE 4 ASSESSMENT GATEWAYS (LUXURY POD CARDS)
 * ============================================================================== */
.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.section-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #FFFFFF 30%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gateways-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

@media (max-width: 1200px) {
  .gateways-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .gateways-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
  width: fit-content;
  line-height: 1.4;
}

.gateway-card.theme-personality .origin-badge {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: var(--accent-emerald);
}

.gateway-card.theme-eq .origin-badge {
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.28);
  color: var(--accent-purple);
}

.gateway-card.theme-iq .origin-badge {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--accent-cyan);
}

.gateway-card.theme-aq .origin-badge {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: var(--accent-amber);
}

.gateway-card {
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.gateway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: all 0.3s ease;
}

.gateway-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

/* Theme accent highlights on hover */
.gateway-card.theme-personality:hover::before { background: linear-gradient(90deg, transparent, var(--accent-emerald), transparent); }
.gateway-card.theme-eq:hover::before { background: linear-gradient(90deg, transparent, var(--accent-purple), transparent); }
.gateway-card.theme-iq:hover::before { background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent); }
.gateway-card.theme-aq:hover::before { background: linear-gradient(90deg, transparent, var(--accent-amber), transparent); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.card-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  display: grid;
  place-items: center;
  transition: transform 0.3s ease;
}

.gateway-card:hover .card-icon-wrap {
  transform: scale(1.08);
}

.card-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.card-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
}

.card-badge-status.pending {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.card-badge-status.unlocked {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.15);
}

.gateway-card h3 {
  font-family: var(--font-display);
  font-size: 19.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.32;
}

.gateway-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}

.gateway-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.btn-launch-quiz {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 12.5px;
  padding: 9px 20px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-launch-quiz:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* ==============================================================================
 * 5. LOWER HUB: TỬ VI 12 CUNG & BẢN ĐỒ 360°
 * ============================================================================== */
.lower-hub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  width: fit-content;
}

.hub-tab-btn {
  background: none;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hub-tab-btn:hover {
  color: #ffffff;
}

.hub-tab-btn.active {
  color: #000000;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.hub-panel {
  display: none;
}

.hub-panel.active {
  display: block;
}

/* Form Tử Vi */
.tuvi-form-card {
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 32px clamp(20px, 3vw, 36px);
  margin-bottom: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.portal-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  align-items: flex-end;
}

.portal-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-input-group label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
}

.portal-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 11px 16px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.portal-input:focus {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
}

/* Bàn cờ Tử Vi 4x4 Grid */
.tuvi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(136px, auto));
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .tuvi-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
}

.palace-cell {
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 136px;
  position: relative;
  overflow: hidden;
}

.palace-cell:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  z-index: 5;
}

.palace-cell.active-menh {
  border: 2px solid var(--accent-gold) !important;
  box-shadow: 0 0 24px rgba(243, 203, 121, 0.25);
  background: rgba(243, 203, 121, 0.04);
}

.palace-cell.active-menh::before {
  content: 'BẢN MỆNH';
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 9px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
}

.center-cell {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(243, 203, 121, 0.06), rgba(56, 189, 248, 0.04));
  border: 1px solid rgba(243, 203, 121, 0.3);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(243, 203, 121, 0.1);
}

@media (max-width: 900px) {
  .center-cell {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* ==============================================================================
 * 6. DISTRACTION-FREE FULLSCREEN QUIZ RUNNER (MODAL OVERLAY)
 * ============================================================================== */
.quiz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.94);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.quiz-overlay.open {
  display: flex;
}

.runner-top-bar {
  height: 68px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(16px, 3.5vw, 40px);
  position: sticky;
  top: 0;
  background: rgba(6, 9, 15, 0.92);
  backdrop-filter: blur(20px);
  z-index: 10;
}

.runner-top-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.runner-top-center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.runner-top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.runner-quiz-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.2px;
}

.runner-quiz-name {
  color: #f1f5f9;
  font-weight: 700;
}

.runner-track-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

.runner-track-badge.student {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--accent-emerald);
}

.runner-track-badge.career {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-cyan);
}

.runner-q-counter {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 14px;
  border-radius: 9999px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.runner-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  padding: 5px 13px;
  border-radius: 9999px;
}

.runner-timer-clock {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.btn-exit-runner {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 9999px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-exit-runner:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.btn-exit-runner:active {
  transform: scale(0.96);
  transition-duration: 0.08s;
}

.runner-body-shell {
  max-width: 840px;
  width: 100%;
  margin: 40px auto 100px;
  padding: 0 24px;
}

.runner-progress-bar-wrap {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 32px;
  position: relative;
}

.runner-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #f3cb79);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.runner-question-card {
  border-radius: 28px;
  background: rgba(14, 20, 32, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(24px);
  padding: clamp(28px, 4.5vw, 46px);
  margin-bottom: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.05) inset;
  position: relative;
}

/* Luxury Structured Question Header */
.runner-question-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  font-family: var(--font-sans);
}

.runner-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.runner-header-pill .pill-icon {
  font-size: 14px;
  line-height: 1;
}

.runner-header-pill .pill-sub-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  margin-left: 4px;
}

.runner-header-pill.theme-eq {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(225, 29, 72, 0.10));
  border: 1px solid rgba(244, 63, 94, 0.40);
  color: #fda4af;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.22);
}

.runner-header-pill.theme-aq {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.10));
  border: 1px solid rgba(245, 158, 11, 0.40);
  color: #fde68a;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.22);
}

.runner-header-pill.theme-personality {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.10));
  border: 1px solid rgba(16, 185, 129, 0.40);
  color: #6ee7b7;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.22);
}

.runner-header-pill.theme-iq {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(2, 132, 199, 0.10));
  border: 1px solid rgba(56, 189, 248, 0.40);
  color: #7dd3fc;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.22);
}

.runner-header-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #cbd5e1;
  font-weight: 500;
}

.runner-sub-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.runner-header-sub .sub-tag {
  color: #ffffff;
  font-weight: 600;
}

.runner-question-text {
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ==============================================================================
 * 7B. EQ 5-POINT LIKERT SCALE OPTIONS (HIGH-CONTRAST LUXURY CARDS)
 * ============================================================================== */
.likert-options-stack-eq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.eq-option-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-radius: 18px;
  background: rgba(20, 27, 43, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
  outline: none;
}

.eq-option-card:focus-visible {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35);
}

.eq-option-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: all 0.2s ease;
}

.eq-option-card:hover {
  background: rgba(30, 42, 68, 0.85);
  transform: translateX(6px);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
}

.eq-option-card:active {
  transform: translateX(3px) scale(0.985);
  transition-duration: 0.08s;
}

.eq-option-card.eq-level-1:hover {
  border-color: rgba(244, 63, 94, 0.7);
  box-shadow: 0 10px 30px -5px rgba(244, 63, 94, 0.28);
}
.eq-option-card.eq-level-1:hover::before {
  background: #f43f5e;
}

.eq-option-card.eq-level-2:hover {
  border-color: rgba(251, 146, 60, 0.7);
  box-shadow: 0 10px 30px -5px rgba(251, 146, 60, 0.28);
}
.eq-option-card.eq-level-2:hover::before {
  background: #fb923c;
}

.eq-option-card.eq-level-3:hover {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 10px 30px -5px rgba(56, 189, 248, 0.28);
}
.eq-option-card.eq-level-3:hover::before {
  background: #38bdf8;
}

.eq-option-card.eq-level-4:hover {
  border-color: rgba(45, 212, 191, 0.7);
  box-shadow: 0 10px 30px -5px rgba(45, 212, 191, 0.28);
}
.eq-option-card.eq-level-4:hover::before {
  background: #2dd4bf;
}

.eq-option-card.eq-level-5:hover {
  border-color: rgba(52, 211, 153, 0.7);
  box-shadow: 0 10px 30px -5px rgba(52, 211, 153, 0.28);
}
.eq-option-card.eq-level-5:hover::before {
  background: #34d399;
}

.eq-score-badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.eq-option-card:hover .eq-score-badge {
  transform: scale(1.08);
}

.eq-option-content {
  flex: 1;
  min-width: 0;
}

.eq-option-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.eq-option-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.eq-option-tag {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.95;
}

.eq-option-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.45;
}

.eq-option-arrow {
  color: #64748b;
  font-size: 20px;
  font-weight: 600;
  opacity: 0.5;
  transition: all 0.2s ease;
  padding-right: 4px;
}

.eq-option-card:hover .eq-option-arrow {
  color: #ffffff;
  opacity: 1;
  transform: translateX(4px);
}

/* ==============================================================================
 * 7. 7-POINT CIRCULAR LIKERT SCALE (16PERSONALITIES LUXURY STANDARD)
 * ============================================================================== */
.likert-scale-7-wrap {
  margin-top: 48px;
}

.likert-labels-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.label-agree {
  color: var(--accent-emerald);
}

.label-disagree {
  color: #fc8181;
}

.likert-circles-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 16px 0;
}

.likert-line-track {
  position: absolute;
  top: 50%;
  left: 30px;
  right: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-50%);
  z-index: 1;
}

.likert-btn {
  position: relative;
  z-index: 2;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: #090d14;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  place-items: center;
  outline: none;
}

/* Proportional circle sizes */
.likert-btn.size-3 { width: 52px; height: 52px; border-color: rgba(52, 211, 153, 0.6); }
.likert-btn.size-2 { width: 44px; height: 44px; border-color: rgba(52, 211, 153, 0.4); }
.likert-btn.size-1 { width: 36px; height: 36px; border-color: rgba(52, 211, 153, 0.28); }
.likert-btn.size-0 { width: 28px; height: 28px; border-color: rgba(255, 255, 255, 0.22); }
.likert-btn.size-neg-1 { width: 36px; height: 36px; border-color: rgba(252, 129, 129, 0.28); }
.likert-btn.size-neg-2 { width: 44px; height: 44px; border-color: rgba(252, 129, 129, 0.4); }
.likert-btn.size-neg-3 { width: 52px; height: 52px; border-color: rgba(252, 129, 129, 0.6); }

.likert-btn:hover {
  transform: scale(1.18);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.likert-btn.size-3:hover, .likert-btn.size-2:hover, .likert-btn.size-1:hover {
  border-color: var(--accent-emerald);
  background: rgba(52, 211, 153, 0.25);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.5);
}

.likert-btn.size-neg-3:hover, .likert-btn.size-neg-2:hover, .likert-btn.size-neg-1:hover {
  border-color: #fc8181;
  background: rgba(252, 129, 129, 0.25);
  box-shadow: 0 0 20px rgba(252, 129, 129, 0.5);
}

/* IQ Matrix Board & Options - Raven / Mensa Standard */
.iq-matrix-board {
  max-width: 340px;
  margin: 0 auto 24px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 28px rgba(56, 189, 248, 0.25);
  border: 2px solid rgba(56, 189, 248, 0.4);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iq-matrix-board svg {
  display: block;
  width: 100%;
  height: auto;
}

.iq-options-grid-portal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.iq-option-card-portal {
  position: relative;
  border-radius: 18px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  min-height: 120px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  user-select: none;
  outline: none;
}

.iq-option-card-portal:hover,
.iq-option-card-portal:focus-visible {
  background: #ffffff;
  border-color: #38bdf8;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 24px rgba(56, 189, 248, 0.45);
}

.iq-option-card-portal:active {
  transform: translateY(-1px) scale(0.985);
}

.iq-option-letter-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e2e8f0;
  color: #0f172a;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.iq-option-card-portal:hover .iq-option-letter-badge,
.iq-option-card-portal:focus-visible .iq-option-letter-badge {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.iq-option-svg-wrap {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.iq-option-svg-wrap svg {
  width: 84px;
  height: 84px;
  max-width: 92%;
  max-height: 92%;
  transition: transform 0.2s ease;
}

.iq-option-card-portal:hover .iq-option-svg-wrap svg,
.iq-option-card-portal:focus-visible .iq-option-svg-wrap svg {
  transform: scale(1.08);
}

.iq-option-text-label {
  font-size: 14px;
  color: #0f172a;
  font-weight: 600;
  padding-left: 28px;
  line-height: 1.4;
}

/* SJT Cards - Situational Judgment Test (High Contrast Luxury Standard) */
.sjt-options-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.sjt-card-portal {
  border-radius: 18px;
  background: rgba(20, 27, 43, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  color: #ffffff;
  width: 100%;
  outline: none;
  user-select: none;
}

.sjt-card-portal:hover {
  background: rgba(30, 42, 68, 0.85);
  border-color: rgba(56, 189, 248, 0.65);
  transform: translateX(6px);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 18px rgba(56, 189, 248, 0.2);
}

.sjt-card-portal:active {
  transform: translateX(3px) scale(0.985);
  transition-duration: 0.08s;
}

.sjt-letter-portal {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(56, 189, 248, 0.12);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
  color: #38bdf8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sjt-text-portal {
  font-size: 15px;
  color: #f1f5f9;
  line-height: 1.6;
  flex: 1;
}

.sjt-arrow-portal {
  color: #64748b;
  font-size: 20px;
  font-weight: 600;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.sjt-card-portal:hover .sjt-arrow-portal {
  color: #38bdf8;
  opacity: 1;
  transform: translateX(4px);
}

/* ==============================================================================
 * 8. ACCOUNT SYSTEM & MULTI-PROFILE MODAL
 * ============================================================================== */
.account-menu-container {
  position: relative;
  display: inline-block;
}

.account-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  padding: 6px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}

.account-pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.account-avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-gold));
  color: #000000;
  font-size: 11.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.account-pill-chevron {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.account-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 290px;
  background: #090d14;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(24px);
  padding: 14px;
  display: none;
  flex-direction: column;
  z-index: 200;
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.account-dropdown-panel.open {
  display: flex;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.account-dropdown-header {
  padding: 8px 12px;
}

.account-dropdown-user {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-dropdown-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.account-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}

.account-dropdown-section-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 4px 12px 6px;
}

.account-switch-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
}

.account-switch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
}

.account-switch-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.account-switch-item.active {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.account-switch-name {
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 500;
}

.account-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
}

.account-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.account-dropdown-item.danger {
  color: #fc8181;
}

.account-dropdown-item.danger:hover {
  background: rgba(252, 129, 129, 0.1);
  color: #feb2b2;
}

/* Auth Modal */
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  z-index: 1100;
  display: none;
  place-items: center;
  padding: 20px;
}

.auth-modal.open {
  display: grid;
}

.auth-card {
  max-width: 450px;
  width: 100%;
  background: #090d14;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 30px rgba(56, 189, 248, 0.15);
  padding: 36px 30px;
  position: relative;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.auth-close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  background: none;
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-close-btn:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 12px;
}

.auth-tab-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.auth-panel {
  display: none;
}

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

.auth-notice-box {
  background: rgba(243, 203, 121, 0.08);
  border: 1px solid rgba(243, 203, 121, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--accent-gold);
  line-height: 1.6;
}

/* ==============================================================================
 * FULLSCREEN NIMBUS AI HERO (MOUSE-SCRUB CONTROLLED 3D CHARACTER)
 * ============================================================================== */
.nimbus-hero-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #020409;
  font-family: var(--font-body);
}

.nimbus-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  z-index: 1;
  pointer-events: none;
  filter: brightness(0.96) contrast(1.04);
}

.nimbus-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: 
    radial-gradient(circle at 65% 55%, transparent 35%, rgba(3, 6, 12, 0.35) 75%, rgba(2, 4, 9, 0.8) 100%),
    linear-gradient(180deg, rgba(2, 4, 9, 0.75) 0%, transparent 22%, transparent 72%, rgba(5, 7, 10, 0.98) 100%),
    linear-gradient(90deg, rgba(2, 4, 9, 0.75) 0%, rgba(2, 4, 9, 0.3) 45%, transparent 70%);
}

/* NAVBAR (FIXED TOP, Z-INDEX 50) */
.nimbus-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 2vw, 20px) clamp(20px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(2, 4, 9, 0.85) 0%, rgba(2, 4, 9, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.nimbus-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nimbus-logo-text {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.nimbus-asterisk {
  font-size: clamp(22px, 2.4vw, 28px);
  color: #ffffff;
  user-select: none;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nimbus-inst-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-gold);
  background: rgba(243, 203, 121, 0.1);
  border: 1px solid rgba(243, 203, 121, 0.25);
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .nimbus-inst-tag { display: none; }
}

.nimbus-nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(15px, 1.4vw, 20px);
  white-space: nowrap;
}

.nimbus-nav-link {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nimbus-nav-link:hover {
  opacity: 0.6;
}

.nimbus-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nimbus-nav-cta {
  color: #ffffff;
  font-size: clamp(15px, 1.4vw, 20px);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.nimbus-nav-cta:hover {
  opacity: 0.6;
}

@media (max-width: 860px) {
  .nimbus-nav-center,
  .nimbus-nav-cta {
    display: none;
  }
}

/* Mobile Hamburger */
.nimbus-mobile-btn {
  display: none;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 60;
}

@media (max-width: 860px) {
  .nimbus-mobile-btn {
    display: flex;
  }
}

.nimbus-bar {
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nimbus-mobile-btn.open .nimbus-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nimbus-mobile-btn.open .nimbus-bar:nth-child(2) {
  opacity: 0;
}

.nimbus-mobile-btn.open .nimbus-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nimbus-mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nimbus-mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.nimbus-drawer-link {
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

/* HERO MAIN CONTENT */
.nimbus-hero-content {
  position: relative;
  z-index: 10;
  max-width: 580px;
  padding: clamp(90px, 12vh, 120px) clamp(20px, 4vw, 44px) 40px;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .nimbus-hero-content {
    justify-content: flex-end;
    padding-bottom: 75px;
    margin: 0;
    height: 100%;
  }
}

.nimbus-blurred-label {
  pointer-events: none;
  user-select: none;
  margin-bottom: clamp(14px, 2vw, 20px);
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.35;
  font-weight: 400;
  color: #ffffff;
  filter: blur(4px);
  transition: filter 0.4s ease;
}

.nimbus-hero-content:hover .nimbus-blurred-label {
  filter: blur(0px);
}

.nimbus-typewriter-wrap {
  margin-bottom: clamp(16px, 2.5vw, 24px);
  min-height: 58px;
}

.nimbus-typewriter-p {
  color: #ffffff;
  font-size: clamp(17px, 2.4vw, 25px);
  line-height: 1.4;
  font-weight: 400;
  display: inline;
}

.nimbus-cursor {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background: #ffffff;
  vertical-align: middle;
  margin-left: 3px;
  animation: nimbusBlink 1s step-end infinite;
}

@keyframes nimbusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ACTION PILL BUTTONS */
.nimbus-action-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nimbus-action-pills.visible {
  opacity: 1;
  transform: translateY(0);
}

.nimbus-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: clamp(12.5px, 1.1vw, 14.5px);
  padding: 6px 16px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nimbus-pill.white {
  background: #ffffff;
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.nimbus-pill.white:hover {
  background: #000000;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.nimbus-pill.outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nimbus-pill.outline:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* BOTTOM SCROLL INDICATOR */
.nimbus-scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.nimbus-scroll-down:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%) translateY(-2px);
}

.nimbus-scroll-arrow {
  animation: nimbusBounce 1.8s ease-in-out infinite;
}

@keyframes nimbusBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* WORKSPACE HUB (PUSHED DOWN) */
.workspace-hub-wrapper {
  position: relative;
  z-index: 10;
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.8);
}


/* ==============================================================================
 * LUXURY IQ PSYCHOMETRIC REPORT MODAL & BELL CURVE (CHUẨN MENSA & CHC)
 * ============================================================================== */
.iq-report-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 18, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 10005;
  overflow-y: auto;
  padding: 40px 18px;
  display: none;
  box-sizing: border-box;
}

.iq-report-overlay.open {
  display: block;
}

.iq-report-dialog {
  max-width: 940px;
  width: 100%;
  margin: 0 auto 60px;
  background: #080d1e;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 245, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #091024 0%, #050814 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.92), 0 0 60px rgba(0, 245, 255, 0.14);
  padding: 44px 40px;
  position: relative;
  box-sizing: border-box;
  animation: iqModalIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes iqModalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.iq-report-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.iq-report-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Header */
.iq-report-header {
  text-align: center;
  margin-bottom: 32px;
}

.iq-academic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.28);
  border-radius: 9999px;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.iq-report-title {
  font-family: 'Plus Jakarta Sans', var(--font-primary), sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #bae6fd 80%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.iq-report-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Score Hero Card */
.iq-score-hero-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  background: rgba(14, 22, 45, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 22px;
  padding: 30px 32px;
  margin-bottom: 34px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 15px 35px rgba(0, 0, 0, 0.5);
}

.iq-score-main-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 26px;
}

.iq-score-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.iq-score-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 58px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 35px rgba(0, 245, 255, 0.55), 0 4px 15px rgba(0, 0, 0, 0.8);
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.iq-score-scale {
  font-size: 12px;
  color: var(--text-secondary);
}

.iq-hero-badges-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.iq-percentile-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 700;
}

.iq-mensa-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  color: #34d399;
  font-size: 13.5px;
  font-weight: 700;
}

.iq-mensa-status-pill.elite {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde68a;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.iq-quick-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.iq-metric-cell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
}

.iq-metric-cell .metric-val {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.iq-metric-cell .metric-lbl {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Section Box */
.iq-section-box {
  background: rgba(10, 16, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 26px 28px;
  margin-bottom: 28px;
}

.iq-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.iq-section-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 20px;
  line-height: 1.6;
}

/* Bell Curve SVG Styles */
.iq-bell-curve-wrap {
  width: 100%;
  overflow-x: auto;
  background: rgba(4, 8, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px 12px;
  box-sizing: border-box;
}

.iq-bell-curve-svg {
  width: 100%;
  height: auto;
  min-width: 620px;
  display: block;
}

/* CHC 4-Pillar Grid */
.iq-chc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.iq-chc-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color 0.2s ease;
}

.iq-chc-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.chc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.chc-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chc-code {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

.chc-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.chc-score {
  font-size: 15px;
  font-weight: 800;
  color: #38bdf8;
}

.chc-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.chc-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.chc-bar-fill.gf { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.chc-bar-fill.gv { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.chc-bar-fill.gq { background: linear-gradient(90deg, #d97706, #fbbf24); }
.chc-bar-fill.gs { background: linear-gradient(90deg, #059669, #34d399); }

.chc-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Cognitive Narrative */
.iq-narrative-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
}

.iq-archetype-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  margin-bottom: 20px;
}

.archetype-crown {
  font-size: 32px;
}

.archetype-role {
  font-size: 17px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 4px;
}

.archetype-motto {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
}

.iq-narrative-body {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 22px;
}

.iq-strengths-box, .iq-careers-box {
  margin-top: 18px;
}

.iq-strengths-box h4, .iq-careers-box h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #38bdf8;
  margin: 0 0 10px;
}

.iq-strengths-box ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.iq-careers-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.iq-career-pill {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
}

/* Solution Review Accordion */
.iq-review-toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.iq-review-expand-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.iq-review-expand-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #38bdf8;
}

.iq-review-drawer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.iq-review-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.iq-review-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px 20px;
}

.iq-review-item-card.correct {
  border-left: 4px solid #10b981;
}

.iq-review-item-card.incorrect {
  border-left: 4px solid #f43f5e;
}

.iq-review-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.iq-review-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.iq-review-status-tag.correct { color: #34d399; }
.iq-review-status-tag.incorrect { color: #fb7185; }

.iq-review-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.iq-review-body-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
}

.iq-review-matrix-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.iq-review-matrix-col .matrix-preview-svg {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #f8f9fa;
}

.iq-review-matrix-col .matrix-preview-svg svg {
  width: 100%;
  height: 100%;
}

.iq-review-details-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iq-review-choices-compare {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.iq-choice-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
}

.iq-choice-box.user.correct {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.iq-choice-box.user.incorrect {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

.iq-choice-box.correct-target {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}

.iq-choice-box svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.iq-review-rule-pill {
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 4px;
}

.iq-review-explain-text {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 14px;
  border-radius: 8px;
}

/* Actions */
.iq-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.iq-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.iq-btn.primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.iq-btn.primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  transform: translateY(-1px);
}

.iq-btn.secondary {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.iq-btn.secondary:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #fbbf24;
  color: #fef3c7;
}

.iq-btn.outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

.iq-btn.outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .iq-report-dialog {
    padding: 30px 20px;
    border-radius: 20px;
  }
  .iq-score-hero-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 18px;
  }
  .iq-score-main-group {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 0;
    padding-bottom: 20px;
  }
  .iq-chc-grid {
    grid-template-columns: 1fr;
  }
  .iq-review-body-grid {
    grid-template-columns: 1fr;
  }
  .iq-report-actions {
    flex-direction: column;
  }
  .iq-btn {
    width: 100%;
  }
}

/* ==============================================================================
 * THEME STYLING FOR EQ, AQ, AND PERSONALITY REPORT MODALS
 * ============================================================================== */
.iq-report-overlay.theme-eq .iq-report-dialog {
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(124, 58, 237, 0.10) 0%, transparent 45%),
    linear-gradient(180deg, #091326 0%, #050814 100%);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.92), 0 0 60px rgba(56, 189, 248, 0.14);
}
.iq-report-overlay.theme-eq .iq-academic-badge {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.iq-report-overlay.theme-aq .iq-report-dialog {
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(239, 68, 68, 0.10) 0%, transparent 45%),
    linear-gradient(180deg, #1c0e0b 0%, #0a0608 100%);
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.92), 0 0 60px rgba(245, 158, 11, 0.14);
}
.iq-report-overlay.theme-aq .iq-academic-badge {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.iq-report-overlay.theme-personality .iq-report-dialog {
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(168, 85, 247, 0.10) 0%, transparent 45%),
    linear-gradient(180deg, #091a18 0%, #050814 100%);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.92), 0 0 60px rgba(16, 185, 129, 0.14);
}
.iq-report-overlay.theme-personality .iq-academic-badge {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}
