/* ========================================================
   Synapse Career Lab - Memory & Cognitive Hub
   Dual-Theme: Obsidian Dark (Default) & Oceanic Light
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;1,9..144,600&family=Caveat:wght@600;700&family=Fira+Code:wght@500;700&display=swap');

:root {
  /* ========================================================
     OBSIDIAN DARK THEME (DEFAULT HIGH-TECH NEURAL)
     ======================================================== */
  --bg-main: #070B14;
  --bg-surface: #0E1626;
  --bg-card: #131E33;
  --bg-card-subtle: #192742;
  --bg-card-hover: #1E3052;
  
  --border-color: rgba(56, 189, 248, 0.18);
  --border-strong: rgba(56, 189, 248, 0.40);
  --border-dashed: rgba(147, 197, 253, 0.25);
  --border-gold: #F59E0B;
  
  --primary: #00F0FF;          /* High-Voltage Cyan */
  --primary-hover: #38BDF8;
  --primary-light: rgba(0, 240, 255, 0.12);
  --primary-glow: rgba(0, 240, 255, 0.35);
  --primary-text: #E0F2FE;
  
  --secondary: #EC4899;        /* Electric Magenta / Rose */
  --secondary-hover: #F43F5E;
  --secondary-light: rgba(236, 72, 153, 0.15);
  --secondary-glow: rgba(236, 72, 153, 0.30);
  
  --accent-green: #10B981;     /* Synaptic Emerald */
  --accent-green-light: rgba(16, 185, 129, 0.15);
  --accent-purple: #8B5CF6;
  --accent-amber: #F59E0B;
  
  --text-main: #F8FAFC;        /* Crisp White */
  --text-muted: #94A3B8;       /* Slate */
  --text-light: #64748B;
  
  --shadow-warm: 0 4px 20px -2px rgba(0, 0, 0, 0.5), 0 2px 6px -1px rgba(0, 240, 255, 0.05);
  --shadow-hover: 0 14px 34px -4px rgba(0, 240, 255, 0.22), 0 4px 12px -2px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.25);
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-serif: 'Fraunces', serif;
  --font-hand: 'Caveat', cursive;
  --font-mono: 'Fira Code', monospace;
  
  --header-height: 72px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================================
   OCEANIC LIGHT THEME
   ======================================================== */
[data-theme="light"] {
  --bg-main: #F0F7FF;
  --bg-surface: #E0F0FE;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F4F9FE;
  --bg-card-hover: #E8F3FD;
  
  --border-color: #C5E0F8;
  --border-strong: #90CDF4;
  --border-dashed: #9EC7EE;
  --border-gold: #D97706;
  
  --primary: #0284C7;
  --primary-hover: #0369A1;
  --primary-light: #E0F2FE;
  --primary-glow: rgba(2, 132, 199, 0.28);
  --primary-text: #0C4A6E;
  
  --secondary: #E11D48;
  --secondary-hover: #BE123C;
  --secondary-light: #FFE4E6;
  --secondary-glow: rgba(225, 29, 72, 0.25);
  
  --accent-green: #059669;
  --accent-green-light: #ECFDF5;
  --accent-purple: #7C3AED;
  --accent-amber: #D97706;
  
  --text-main: #0F172A;
  --text-muted: #334155;
  --text-light: #64748B;
  
  --shadow-warm: 0 4px 20px -2px rgba(2, 132, 199, 0.08), 0 2px 6px -1px rgba(2, 132, 199, 0.04);
  --shadow-hover: 0 14px 34px -4px rgba(2, 132, 199, 0.18), 0 4px 12px -2px rgba(2, 132, 199, 0.08);
  --shadow-glow: 0 0 26px rgba(2, 132, 199, 0.22);
}

/* ========================================================
   RESET & GLOBAL RESETS
   ======================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-main);
}

.handwritten {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.15rem;
  letter-spacing: 0.5px;
}

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-green { color: var(--accent-green) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ========================================================
   BUTTONS & BADGES
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #070B14;
  box-shadow: 0 4px 14px var(--primary-glow);
}
[data-theme="light"] .btn-primary {
  color: #FFFFFF;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #be185d);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--secondary-glow);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  background: var(--bg-card);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-glow:hover::after {
  opacity: 1;
}

/* Badges & Chips */
.chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.chip-badge.accent {
  background: var(--secondary-light);
  color: var(--secondary);
  border-color: rgba(236, 72, 153, 0.3);
}

.chip-badge.gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.4);
}

/* ========================================================
   STICKY FLOATING HEADER
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="light"] .site-header {
  background: rgba(240, 247, 255, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.25rem;
  gap: 1rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-subtle));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 14px var(--primary-glow);
  animation: pulse-brain 3s ease-in-out infinite;
}

@keyframes pulse-brain {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px var(--primary-glow); }
  50% { transform: scale(1.06); box-shadow: 0 0 22px var(--primary-glow); }
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-main);
  margin: 0;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  display: block;
}

/* Nav Bar Tabs */
.site-nav {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  padding: 0.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
}

.nav-link.active {
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #070B14;
  box-shadow: 0 2px 10px var(--primary-glow);
}
[data-theme="light"] .nav-link.active {
  color: #FFFFFF;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-leaderboard-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.header-leaderboard-pill:hover {
  border-color: var(--accent-amber);
  transform: translateY(-1px);
}

.lb-trophy { font-size: 1rem; }
.lb-title { color: var(--text-muted); }
.lb-rank {
  background: var(--accent-amber);
  color: #000;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.icon-btn.admin-btn {
  border-color: rgba(236, 72, 153, 0.4);
  color: var(--secondary);
}

.profile-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.profile-pill:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.profile-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* ========================================================
   HERO SHOWCASE (SCROLLTIDE DEPTH + 3D SYNAPSE CANVAS)
   ======================================================== */
.scrolltide-hero-showcase {
  position: relative;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.scrolltide-aura-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(236, 72, 153, 0.06) 50%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.synapse-3d-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: auto; /* Interactive 3D cursor hover */
  opacity: 0.75;
}

.scrolltide-hero-inner {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.scrolltide-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.scrolltide-badge {
  padding: 0.35rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-warm);
}

.scrolltide-hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.15rem;
}

.highlight-memory {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.scrolltide-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 1.85rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

/* Neural Progress & MQ Strip */
.neural-progress-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-warm);
  gap: 1.5rem;
  text-align: left;
}

.strip-level {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 180px;
}

.badge-icon {
  font-size: 1.8rem;
}

.strip-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.strip-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.strip-bar-container {
  flex: 1;
}

.strip-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.strip-track {
  height: 10px;
  background: var(--bg-surface);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.strip-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.strip-badges {
  display: flex;
  gap: 0.4rem;
}

.mini-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0.35;
  transition: all var(--transition-fast);
}

.mini-badge.earned {
  opacity: 1;
  border-color: var(--border-gold);
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

/* Hero Feature Cards */
.hero-feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.hero-feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.hero-feat-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.feat-info h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.feat-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.feat-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--primary);
  opacity: 0.6;
  transition: transform var(--transition-fast);
}

.hero-feat-card:hover .feat-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ========================================================
   TAB SECTIONS COMMON
   ======================================================== */
.tab-content {
  display: none;
  padding: 3rem 0;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.games-welcome-banner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 650px;
}

.banner-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ========================================================
   GAMES HUB: HORIZONTAL TRACK & CARDS
   ======================================================== */
.games-scroll-container {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.games-scroll-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.games-scroll-track::-webkit-scrollbar {
  display: none;
}

.scroll-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-warm);
  transition: all var(--transition-fast);
}

.scroll-arrow-btn:hover {
  background: var(--primary);
  color: #000;
}

.scroll-arrow-btn.scroll-left { left: -16px; }
.scroll-arrow-btn.scroll-right { right: -16px; }

.game-tab-card {
  flex: 0 0 250px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  user-select: none;
}

.game-tab-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.game-tab-card.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--bg-card-subtle), var(--bg-card));
  box-shadow: 0 0 20px var(--primary-glow);
}

.game-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.game-card-icon {
  font-size: 1.8rem;
}

.game-card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary);
}

.game-tab-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.game-tab-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.game-card-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
}

/* ========================================================
   MAIN INTERACTIVE GAME ARENA CONTAINER
   ======================================================== */
.play-arena {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-warm);
  min-height: 480px;
  position: relative;
}

/* Arena Header */
.arena-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.arena-title-group h3 {
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.arena-title-group p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.arena-stats-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.arena-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.arena-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.arena-stat-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* Game 1: Synapse Matrix Grid */
.matrix-game-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.matrix-instructions {
  font-size: 0.95rem;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.matrix-board {
  display: grid;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding: 16px;
  background: var(--bg-surface);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.matrix-tile {
  width: 75px;
  height: 75px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.matrix-tile:hover {
  border-color: var(--primary);
  transform: scale(1.04);
}

.matrix-tile.flash {
  background: var(--primary) !important;
  border-color: #fff !important;
  box-shadow: 0 0 25px var(--primary-glow);
  transform: scale(1.08);
}

.matrix-tile.user-clicked {
  background: var(--secondary) !important;
  border-color: #fff !important;
  box-shadow: 0 0 25px var(--secondary-glow);
}

/* Game 2: Recruiter Blitz Cards */
.recruiter-game-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.recruiter-stage-memo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.recruiter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.recruiter-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  border: 2px solid var(--primary);
}

.recruiter-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.recruiter-company {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.recruiter-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.recruiter-quiz-question {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.recruiter-quiz-question h4 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.recruiter-quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.quiz-opt-btn {
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  transition: all var(--transition-fast);
}

.quiz-opt-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.quiz-opt-btn.correct {
  background: var(--accent-green-light) !important;
  border-color: var(--accent-green) !important;
  color: var(--accent-green) !important;
}

.quiz-opt-btn.wrong {
  background: var(--secondary-light) !important;
  border-color: var(--secondary) !important;
  color: var(--secondary) !important;
}

/* Game 4: Wheel of Brain Chemistry */
.wheel-game-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 650px;
  margin: 0 auto;
}

.wheel-canvas-box {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 1.5rem auto;
}

#wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 30px var(--primary-glow);
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--secondary);
  z-index: 5;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.wheel-result-card {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1rem;
  text-align: left;
  animation: fadeIn 0.4s ease;
}

.wheel-result-card h4 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wheel-result-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================================
   TAB 2: MEMORY PALACE (ISOMETRIC ROOM & HOTSPOTS)
   ======================================================== */
.palace-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.palace-stage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.palace-room-canvas-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, #090f1d, #111a2f);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

[data-theme="light"] .palace-room-canvas-wrap {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

/* Isometric Room Stylized Art */
.isometric-room {
  position: relative;
  width: 100%;
  height: 100%;
}

.room-walls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(56, 189, 248, 0.05), transparent);
  border-bottom: 1px dashed var(--border-color);
}

.room-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background-image: 
    linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%), 
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%);
  background-size: 40px 40px;
}

/* Hotspot Pins */
.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
  color: var(--text-main);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: all var(--transition-normal);
  z-index: 10;
}

.hotspot-pin:hover, .hotspot-pin.active {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 20px var(--primary-glow);
}

.pin-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  border: 2px solid var(--primary);
  top: 0;
  left: 0;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes ping {
  75%, 100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.pin-icon { font-size: 1.1rem; }
.pin-label { font-size: 0.75rem; font-weight: 700; white-space: nowrap; }

.hotspot-nav-strip {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.hotspot-btn {
  padding: 0.4rem 0.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.hotspot-btn.active, .hotspot-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Palace Details Card */
.palace-details-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.palace-hotspot-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.palace-hotspot-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.palace-mnemonic-box {
  background: var(--bg-surface);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.palace-mnemonic-box h5 {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.palace-mnemonic-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.palace-takeaway-list {
  list-style: none;
  margin-bottom: 1.25rem;
}

.palace-takeaway-list li {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.palace-takeaway-list li span { color: var(--accent-green); }

.palace-quiz-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ========================================================
   TAB 3: CAREER MATCH & ARCHETYPES
   ======================================================== */
.career-matcher-container {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-warm);
}

.matcher-quiz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.matcher-quiz-head h3 {
  font-size: 1.35rem;
}

.quiz-progress-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary);
}

.matcher-question-text {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.matcher-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.matcher-option-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.matcher-option-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.option-symbol {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.option-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Matcher Result Card */
.archetype-result-box {
  text-align: center;
  padding: 1rem;
}

.result-badge {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.result-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.result-tagline {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.result-body-text {
  max-width: 650px;
  margin: 0 auto 1.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.result-booth-recs {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.result-booth-recs h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.booth-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.booth-pill {
  padding: 0.35rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Archetypes Grid */
.archetypes-overview-title {
  text-align: center;
  margin-bottom: 1.75rem;
}

.archetypes-overview-title h3 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.archetypes-overview-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.archetypes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.archetype-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.arch-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.arch-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.archetype-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.arch-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.arch-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  flex: 1;
}

.arch-careers {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

.arch-careers span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-surface);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

/* ========================================================
   TAB 4: LEADERBOARD
   ======================================================== */
.leaderboard-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-warm);
}

.lb-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.lb-filter-pills {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-surface);
  padding: 0.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
}

.filter-pill {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.filter-pill.active {
  background: var(--primary);
  color: #000;
  font-weight: 700;
}

.lb-table-card {
  overflow-x: auto;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.lb-table th {
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.lb-table td {
  padding: 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.lb-table tr:hover td {
  background: var(--bg-surface);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
}

.rank-badge.top-1 { background: #FFD700; color: #000; }
.rank-badge.top-2 { background: #C0C0C0; color: #000; }
.rank-badge.top-3 { background: #CD7F32; color: #000; }
.rank-badge.other { background: var(--bg-surface); color: var(--text-muted); }

.candidate-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cand-avatar {
  font-size: 1.3rem;
}

.cand-name {
  font-weight: 700;
  color: var(--text-main);
}

.cand-me-badge {
  font-size: 0.65rem;
  background: var(--secondary);
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 800;
  margin-left: 0.4rem;
}

.mq-score-cell {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  text-align: right;
}

/* ========================================================
   MODALS (COMMON)
   ======================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-sheet {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-sheet.modal-lg {
  max-width: 780px;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  font-size: 1.2rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--bg-surface);
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}

/* Form Groups */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.profile-avatar-picker {
  margin-bottom: 1.25rem;
}

.avatar-choices {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.avatar-opt {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.avatar-opt.active, .avatar-opt:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: scale(1.1);
}

.profile-stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  display: block;
}

.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

/* ========================================================
   MODAL 2: AR CAMERA & PHOTO BOOTH
   ======================================================== */
.camera-stage {
  position: relative;
  width: 100%;
  height: 340px;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#webcam-feed {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror camera */
}

#camera-overlay-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.camera-fallback {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  z-index: 2;
}

.fallback-holo-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  animation: pulse-brain 2s infinite;
}

.camera-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.snapshot-preview-area {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
  text-align: center;
}

.snapshot-preview-area img {
  max-width: 320px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-glow);
  margin: 1rem auto;
  display: block;
}

/* ========================================================
   MODAL 3: CERTIFICATE PRINT & VIEW
   ======================================================== */
.certificate-frame {
  background: #0B1120;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.cert-border-outer {
  border: 4px double #F59E0B;
  padding: 1rem;
  border-radius: 8px;
}

.cert-border-inner {
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 1.75rem;
  text-align: center;
  border-radius: 4px;
}

.cert-badge-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cert-authority {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #F59E0B;
}

.cert-main-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.cert-subtext {
  font-size: 0.85rem;
  color: #94A3B8;
  margin-bottom: 0.5rem;
}

.cert-candidate-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  text-decoration: underline;
  text-decoration-color: #F59E0B;
  text-underline-offset: 6px;
}

.cert-qualification {
  font-size: 0.85rem;
  color: #CBD5E1;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.cert-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 1.75rem;
}

.cert-metric .m-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #F59E0B;
}

.cert-metric .m-lbl {
  font-size: 0.7rem;
  color: #94A3B8;
  text-transform: uppercase;
}

.cert-footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.sig-line {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: #FFFFFF;
  border-bottom: 1px solid #94A3B8;
  padding-bottom: 0.2rem;
  margin-bottom: 0.2rem;
}

.sig-title {
  font-size: 0.7rem;
  color: #94A3B8;
}

.qr-box {
  border: 1px solid #F59E0B;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #F59E0B;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
}

.modal-actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ========================================================
   MODAL 4: AI TOUR GUIDE
   ======================================================== */
.tour-guide-body {
  text-align: center;
}

.ai-avatar-circle {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.avatar-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: ping 2s infinite;
}

.ai-avatar-face {
  font-size: 2.75rem;
}

.tour-speech-bubble {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.tour-speech-bubble h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.tour-speech-bubble p {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.55;
}

.tour-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-indicator {
  display: flex;
  gap: 0.4rem;
}

.step-indicator .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  transition: all var(--transition-fast);
}

.step-indicator .dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* ========================================================
   MODAL 5: ADMIN BOOTH ORGANIZER
   ======================================================== */
.admin-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
}

.admin-card-row h5 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.admin-card-row p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  transition: .3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary);
  border-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background-color: #000;
}

/* ========================================================
   TOASTS
   ======================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-color: var(--accent-green); }
.toast.info { border-color: var(--primary); }
.toast.alert { border-color: var(--secondary); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  background: var(--bg-surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand h3 {
  font-size: 1.1rem;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.4rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ========================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ======================================================== */
@media (max-width: 992px) {
  .scrolltide-hero-title { font-size: 2.2rem; }
  .hero-feature-cards { grid-template-columns: 1fr; }
  .palace-grid { grid-template-columns: 1fr; }
  .archetypes-grid { grid-template-columns: repeat(2, 1fr); }
  .recruiter-stage-memo { grid-template-columns: 1fr; }
  .recruiter-quiz-options { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-nav span:not(.nav-emoji) { display: none; }
  .brand-text span { display: none; }
  .scrolltide-hero-title { font-size: 1.85rem; }
  .neural-progress-strip { flex-direction: column; align-items: stretch; }
  .archetypes-grid { grid-template-columns: 1fr; }
  .cert-metrics-row { grid-template-columns: 1fr; }
  .cert-footer-row { flex-direction: column; gap: 1rem; align-items: center; }
  .header-leaderboard-pill .lb-title { display: none; }
  .profile-pill span:not(.profile-avatar) { display: none; }
}

/* Print Stylesheet for Certificate */
@media print {
  body * {
    visibility: hidden;
  }
  #certificate-print-area, #certificate-print-area * {
    visibility: visible;
  }
  #certificate-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #000 !important;
    -webkit-print-color-adjust: exact;
  }
}
