/* ============================================================
   GMAT AI — Aegis 3D Design System
   Glassmorphism · Three.js · Neon Glow · Mesh Gradients
   Inter + Geist Typography
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Geist+Mono:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

/* ─── DESIGN TOKENS (Aegis Palette) ──────────────────────── */
:root {
  /* Surface Colors — Aegis Deep Dark */
  --surface: #0e141a;
  --surface-dim: #0e141a;
  --surface-bright: #333a40;
  --surface-container-lowest: #080f14;
  --surface-container-low: #161c22;
  --surface-container: #1a2026;
  --surface-container-high: #242b31;
  --surface-container-highest: #2f353c;
  --surface-variant: #2f353c;

  /* On-surface */
  --on-surface: #dde3eb;
  --on-surface-variant: #c5c6cd;
  --on-background: #dde3eb;

  /* Brand — Aegis */
  --primary: #bbc7e0;
  --on-primary: #253144;
  --primary-container: #071426;
  --on-primary-container: #737f95;
  --primary-fixed: #d7e3fc;
  --primary-fixed-dim: #bbc7e0;
  --inverse-primary: #535f74;

  --secondary: #bec2ff;
  --on-secondary: #000da4;
  --secondary-container: #2532c4;
  --on-secondary-container: #acb3ff;

  --tertiary: #00dbe9;
  --on-tertiary: #00363a;
  --tertiary-container: #001719;
  --on-tertiary-container: #008c95;

  /* System */
  --error: #ffb4ab;
  --on-error: #690005;
  --error-container: #93000a;
  --background: #0e141a;

  --outline: #8f9097;
  --outline-variant: #44474c;
  --surface-tint: #bbc7e0;
  --inverse-surface: #dde3eb;
  --inverse-on-surface: #2b3137;

  /* Glow & Glass */
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-glow: rgba(0, 219, 233, 0.15);
  --neon-cyan: rgba(0, 219, 233, 0.5);
  --neon-cyan-soft: rgba(0, 219, 233, 0.2);

  /* Spacing */
  --unit-1: 0.25rem;
  --unit-2: 0.5rem;
  --unit-3: 0.75rem;
  --unit-4: 1rem;
  --unit-6: 1.5rem;
  --unit-8: 2rem;
  --unit-12: 3rem;
  --gutter: 24px;
  --container-max: 1440px;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at 50% 50%, #0e141a 0%, #080f14 100%);
  color: var(--on-background);
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ─── MATERIAL SYMBOLS ───────────────────────────────────── */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.icon-filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
.font-display {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.font-display-mobile {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.font-headline {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.font-body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.font-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.font-label {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: 0.1em;
}

.font-mono {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .font-display {
    font-size: 36px;
    line-height: 1.2;
  }
}

/* ─── ATMOSPHERIC MESH BACKGROUND ───────────────────────── */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -50;
  pointer-events: none;
  overflow: hidden;
}

.mesh-bg::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: var(--tertiary);
  opacity: 0.08;
  border-radius: 50%;
  filter: blur(120px);
}

.mesh-bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--secondary);
  opacity: 0.04;
  border-radius: 50%;
  filter: blur(150px);
}

.mesh-glow {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(120px);
}

.glow-primary {
  background: var(--primary);
  opacity: 0.05;
}

.glow-tertiary {
  background: var(--tertiary);
  opacity: 0.08;
}

/* ─── GLASS SURFACES (Aegis Enhanced) ───────────────────── */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.glass-dark {
  background: rgba(12, 14, 22, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-panel {
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  background: rgba(26, 32, 38, 0.4);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
  margin: 10px 0 !important;
}

/* ─── 3D GLASS CARD HOVER ────────────────────────────────── */
.glass-card-hover {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--glass-glow);
  border-color: rgba(0, 219, 233, 0.3);
}

/* ─── NEON EFFECTS ───────────────────────────────────────── */
.neon-ring {
  box-shadow: 0 0 15px var(--neon-cyan), inset 0 0 5px var(--neon-cyan);
}

.neon-glow {
  box-shadow: 0 0 20px var(--neon-cyan-soft);
}

.neon-border {
  border-color: rgba(0, 219, 233, 0.3);
}

/* ─── BUTTONS (Aegis) ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--unit-2);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius-xl);
  padding: 14px var(--unit-8);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s;
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.06);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--tertiary);
  color: var(--tertiary-container);
  box-shadow: 0 8px 24px rgba(0, 219, 233, 0.2);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 219, 233, 0.5);
  transform: translateY(-1px);
}

.btn-white {
  background: white;
  color: black;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.btn-white:hover {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  background: rgba(0, 219, 233, 0.15) !important;
  color: #00dbe9 !important;
  border: 1px solid rgba(0, 219, 233, 0.4) !important;
  box-shadow: 0 4px 12px rgba(0, 219, 233, 0.15) !important;
}

.btn-secondary:hover {
  background: rgba(0, 219, 233, 0.25) !important;
  color: #ffffff !important;
  border-color: #00dbe9 !important;
  box-shadow: 0 0 20px rgba(0, 219, 233, 0.35) !important;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
  background: var(--error-container);
  color: var(--error);
  border: 1px solid rgba(255, 180, 171, 0.2);
}

.btn-sm {
  padding: 8px var(--unit-4);
  font-size: 14px;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-surface-variant);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-surface);
}

/* ─── INPUTS ─────────────────────────────────────────────── */
.input-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  color: var(--on-surface);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  transition: all 0.2s;
  outline: none;
}

.input-field::placeholder {
  color: var(--on-surface-variant);
  opacity: 0.6;
}

.input-field:focus {
  border-color: var(--tertiary);
  background: rgba(0, 219, 233, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 219, 233, 0.12);
}

.input-label {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  border-radius: var(--radius-3xl);
  padding: var(--unit-6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.card-2xl {
  border-radius: 1.5rem;
  padding: var(--unit-8);
}

/* ─── SIDEBAR (Aegis Neon) ───────────────────────────────── */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 260px;
  display: flex;
  flex-direction: column;
  padding: var(--unit-8) var(--unit-4);
  z-index: 40;
  background: rgba(14, 20, 26, 0.6);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--unit-3);
  padding: 0 var(--unit-4);
  margin-bottom: 2.5rem;
}

.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: rgba(0, 219, 233, 0.15);
  border: 1px solid rgba(0, 219, 233, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tertiary);
  font-weight: 700;
  font-size: 20px;
}

.sidebar-logo-text {
  font-weight: 500;
  font-size: 24px;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.sidebar-logo-sub {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--unit-3);
  padding: 12px var(--unit-4);
  border-radius: var(--radius-xl);
  color: var(--on-surface-variant);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
  margin-bottom: 2px;
}

.nav-item:hover {
  background: rgba(47, 53, 60, 0.3);
  color: var(--on-surface);
}

.nav-item.active {
  background: var(--tertiary-container);
  color: var(--tertiary);
  box-shadow: 0 0 15px rgba(0, 219, 233, 0.3);
}

.nav-item .material-symbols-outlined {
  font-size: 22px;
}

/* ─── PROGRESS BARS ──────────────────────────────────────── */
.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: linear-gradient(90deg, var(--tertiary), var(--secondary));
}

.progress-fill.tertiary {
  background: var(--tertiary);
}

.progress-fill.secondary {
  background: var(--secondary);
}

.progress-fill.primary {
  background: var(--primary);
}

/* Shimmer animation for progress bars */
.shimmer-progress {
  background: linear-gradient(90deg, var(--tertiary), rgba(0, 219, 233, 0.6), var(--tertiary));
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite linear;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes wave {

  0%,
  100% {
    height: 4px;
  }

  50% {
    height: 24px;
  }
}

@keyframes waveform {

  0%,
  100% {
    height: 8px;
  }

  50% {
    height: 24px;
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(0, 219, 233, 0.3);
  }

  50% {
    opacity: 0.75;
    text-shadow: 0 0 20px rgba(0, 219, 233, 0.7);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-fade-up {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-spin {
  animation: spin 0.8s linear infinite;
}

.animate-rotate {
  animation: rotate-slow 20s linear infinite;
}

.wave-bar {
  animation: wave 1.2s ease-in-out infinite;
}

.waveform-bar {
  animation: waveform 1.2s ease-in-out infinite;
}

.pulse-glow {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* ─── BADGE / PILL ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-primary {
  background: rgba(0, 219, 233, 0.1);
  color: var(--tertiary);
  border: 1px solid rgba(0, 219, 233, 0.2);
}

.badge-tertiary {
  background: rgba(0, 219, 233, 0.12);
  color: var(--tertiary);
  border: 1px solid rgba(0, 219, 233, 0.2);
}

.badge-error {
  background: rgba(255, 180, 171, 0.1);
  color: var(--error);
  border: 1px solid rgba(255, 180, 171, 0.2);
}

.badge-live {
  background: rgba(255, 100, 100, 0.12);
  color: #ff7070;
  border: 1px solid rgba(255, 100, 100, 0.3);
}

/* ─── STATS CARD ─────────────────────────────────────────── */
.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: var(--unit-6);
  border-radius: var(--radius-3xl);
  cursor: default;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--glass-glow);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}

.stat-label {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1;
}

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ─── MAIN CONTENT AREA ──────────────────────────────────── */
.main-content {
  margin-left: 260px;
  min-height: 100vh;
  padding: var(--unit-8) var(--unit-12);
}

/* On all viewports ≥ 480px: sidebar is always visible, content always offset.
   This prevents content from going under the fixed sidebar regardless of screen size. */
@media (min-width: 480px) {
  .sidebar {
    transform: translateX(0) !important;
    transition: transform 0.3s ease;
  }

  .main-content {
    margin-left: 260px !important;
    padding: var(--unit-6) var(--unit-4);
  }
}

/* On very small phones < 480px: sidebar overlays as drawer, content stays full width */
@media (max-width: 479px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: var(--unit-4) var(--unit-3);
  }
}



/* ─── TOAST NOTIFICATIONS ────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--unit-6);
  right: var(--unit-6);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--unit-2);
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  animation: slideIn 0.3s ease;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: var(--unit-3);
  backdrop-filter: blur(20px);
}

.toast-success {
  background: rgba(0, 219, 233, 0.12);
  border: 1px solid rgba(0, 219, 233, 0.3);
  color: var(--tertiary);
}

.toast-error {
  background: rgba(255, 180, 171, 0.12);
  border: 1px solid rgba(255, 180, 171, 0.25);
  color: var(--error);
}

.toast-info {
  background: rgba(187, 199, 224, 0.1);
  border: 1px solid rgba(187, 199, 224, 0.2);
  color: var(--primary);
}

/* ─── LOADER ─────────────────────────────────────────────── */
.loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 219, 233, 0.15);
  border-top-color: var(--tertiary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ─── MOBILE NAV ─────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(14, 20, 26, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px var(--unit-4);
  z-index: 50;
  justify-content: space-around;
  align-items: center;
}

@media (max-width: 1024px) {
  .mobile-nav {
    display: flex;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--on-surface-variant);
  font-size: 10px;
  font-family: 'Geist Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.mobile-nav-item.active {
  color: var(--tertiary);
}

.mobile-nav-item .material-symbols-outlined {
  font-size: 24px;
}

/* ─── SVG CIRCULAR PROGRESS ──────────────────────────────── */
.circular-progress-ring {
  transform: rotate(-90deg);
  transform-origin: center;
}

/* ─── RADAR CHART CONTAINER ──────────────────────────────── */
.radar-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.radar-label {
  position: absolute;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ─── HERO GLOW ──────────────────────────────────────────── */
.hero-glow {
  filter: blur(120px);
  background: linear-gradient(135deg, #00dbe9 0%, #bec2ff 100%);
  opacity: 0.12;
  border-radius: 50%;
}

/* ─── TABLE ──────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-surface-variant);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
  color: var(--on-surface);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ─── DIVIDER ────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: var(--unit-8) 0;
}

/* ─── UTILITY ────────────────────────────────────────────── */
.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-tertiary {
  color: var(--tertiary);
}

.text-muted {
  color: var(--on-surface-variant);
}

.text-error {
  color: var(--error);
}

.text-white {
  color: #fff;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Page transition */
.page-enter {
  animation: fadeInUp 0.4s ease both;
}

/* ─── SCHOOL CARDS (Aegis) ───────────────────────────────── */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

@media (max-width: 1024px) {
  .schools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .schools-grid {
    grid-template-columns: 1fr;
  }
}

.school-card {
  border-radius: var(--radius-3xl);
  padding: var(--unit-6);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.school-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--glass-glow);
  border-color: rgba(0, 219, 233, 0.25);
}

.school-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--unit-6);
  overflow: hidden;
  padding: 12px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.school-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.school-logo img.loaded {
  opacity: 1;
}

.school-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.school-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--on-surface);
}

.school-uni {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--on-surface-variant);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.school-meta-label {
  color: var(--on-surface-variant);
}

.rank-badge {
  color: var(--tertiary);
  font-weight: 700;
}

.school-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  color: var(--on-surface);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.school-btn:hover {
  background: var(--tertiary);
  color: var(--tertiary-container);
  border-color: var(--tertiary);
}

/* ─── SCORE RING (Aegis) ─────────────────────────────────── */
.score-ring-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--unit-6);
}

.score-ring-wrap svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring-holo {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 219, 233, 0.2);
  border-radius: 50%;
  animation: rotate-slow 20s linear infinite;
  opacity: 0.5;
}

.score-ring-holo-inner {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(190, 194, 255, 0.15);
  border-radius: 50%;
  animation: rotate-slow 20s linear infinite reverse;
  opacity: 0.3;
}

.score-number {
  font-size: 56px;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1;
  letter-spacing: -0.04em;
}

.score-of {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ─── PROGRESS CHART ─────────────────────────────────────── */
.progress-chart {
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px;
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 100%;
}

.chart-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.chart-bar {
  width: 100%;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.05);
  transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.chart-bar:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chart-bar.active {
  background: rgba(0, 219, 233, 0.2);
  border: 1px solid rgba(0, 219, 233, 0.4);
  box-shadow: 0 0 15px rgba(0, 219, 233, 0.2);
}

.chart-tip {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--tertiary);
}

/* ─── SKILL TILES ────────────────────────────────────────── */
.skill-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--unit-6);
}

@media (max-width: 1024px) {
  .skill-bento {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .skill-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skill-tile {
  border-radius: 1.5rem;
  padding: var(--unit-6);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}

.skill-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.tile-label {
  font-size: 12px;
  color: var(--on-surface-variant);
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.05em;
}

.tile-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--on-surface);
}

/* ─── RADAR GRID BG ──────────────────────────────────────── */
.radar-grid-bg {
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

/* ─── THREE.JS CONTAINER ─────────────────────────────────── */
.threejs-container {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.threejs-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ─── AI AURA ORB (Floating Assistant) ───────────────────── */
.aura-orb-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  pointer-events: none;
}

.aura-bubble {
  background: rgba(36, 43, 49, 0.8);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 16px;
  max-width: 260px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.aura-bubble.show {
  opacity: 1;
  transform: translateY(0);
}

.aura-orb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  border: 1px solid rgba(0, 219, 233, 0.3);
  box-shadow: 0 0 40px rgba(0, 219, 233, 0.2);
}

.aura-orb-status {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--tertiary);
  border-radius: 50%;
  border: 3px solid var(--surface-dim);
  animation: pulse 2s ease infinite;
}

/* ─── FORM GROUPS ────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--unit-4);
}

.auth-submit {
  width: 100%;
  margin-top: var(--unit-4);
}

/* ─── CANDIDATE PROFILE WIZARD ───────────────────────────── */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--gutter);
  align-items: start;
}

@media (max-width: 1024px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

.wizard-card {
  border-radius: 24px;
  padding: var(--unit-8);
  position: relative;
  overflow: hidden;
}

/* Float Animations for SVGs */
@keyframes float-svg-1 {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(5deg);
  }
}

@keyframes float-svg-2 {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(12px) rotate(-8deg);
  }
}

.floating-decor-1 {
  position: absolute;
  top: -40px;
  right: -40px;
  opacity: 0.1;
  pointer-events: none;
  animation: float-svg-1 8s ease-in-out infinite;
}

.floating-decor-2 {
  position: absolute;
  bottom: -40px;
  left: -40px;
  opacity: 0.08;
  pointer-events: none;
  animation: float-svg-2 10s ease-in-out infinite;
}

/* Step content transitions */
.wizard-step-content {
  display: none;
}

.wizard-step-content.active {
  display: block;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Fields with Icons */
.field-with-icon {
  position: relative;
}

.field-with-icon .material-symbols-outlined {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--on-surface-variant);
  opacity: 0.6;
}

.field-with-icon input,
.field-with-icon select {
  padding-left: 44px;
}

/* Searchable dropdown */
.searchable-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 6px;
  border-radius: var(--radius-lg);
  background: rgba(22, 28, 34, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown-panel.show {
  display: block;
}

.dropdown-item {
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--on-surface);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--tertiary);
}

/* Resume dropzone */
.resume-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--unit-8) var(--unit-4);
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.3s;
  cursor: pointer;
  margin-bottom: var(--unit-4);
}

.resume-dropzone:hover,
.resume-dropzone.dragover {
  border-color: var(--tertiary);
  background: rgba(0, 219, 233, 0.03);
}

.resume-dropzone .material-symbols-outlined {
  font-size: 40px;
  color: var(--tertiary);
  margin-bottom: 12px;
  opacity: 0.8;
}

/* Target school chips */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s;
}

.chip-item:hover {
  border-color: var(--tertiary);
  background: rgba(0, 219, 233, 0.05);
}

.chip-item.selected {
  background: var(--tertiary-container);
  color: var(--tertiary);
  border-color: var(--tertiary);
  box-shadow: 0 0 10px rgba(0, 219, 233, 0.2);
}

.chip-item .remove-icon {
  font-size: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px;
  cursor: pointer;
}

.chip-item .remove-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Interview preferences style cards */
.interview-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: var(--unit-4);
}

.style-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.style-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 219, 233, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.style-card.selected {
  background: rgba(0, 219, 233, 0.06);
  border-color: var(--tertiary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 219, 233, 0.2);
}

.style-card-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.style-card-desc {
  font-size: 11px;
  color: var(--on-surface-variant);
  line-height: 1.3;
}

/* Difficulty Options Selector */
.difficulty-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: var(--unit-2);
}

@media (max-width: 600px) {
  .difficulty-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

.diff-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 12px;
  text-align: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}

.diff-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.diff-option.selected {
  background: var(--tertiary-container);
  color: var(--tertiary);
  border-color: var(--tertiary);
}

/* Expandable career goal sections */
.goal-accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-xl);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.goal-header {
  padding: 16px var(--unit-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.goal-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.goal-header-title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.goal-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 var(--unit-6);
}

.goal-accordion-item.active .goal-content {
  max-height: 1000px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
  padding: 0 var(--unit-6) var(--unit-6) var(--unit-6);
}

.goal-accordion-item.active .arrow-icon {
  transform: rotate(180deg);
}

.arrow-icon {
  transition: transform 0.3s;
}

/* Floating Right Sidebar Summary Card */
.sidebar-summary-card {
  position: sticky;
  top: 96px;
  border-radius: 24px;
  padding: var(--unit-6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  margin-top: 15px;
}

.summary-title {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--unit-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: var(--unit-2);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
}

.summary-label {
  color: var(--on-surface-variant);
  opacity: 0.8;
}

.summary-val {
  font-weight: 600;
  text-align: right;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Auto-save status styles */
.autosave-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--on-surface-variant);
  opacity: 0.8;
}

.autosave-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tertiary);
  box-shadow: 0 0 8px var(--tertiary);
}

.autosave-dot.saving {
  background: var(--secondary);
  box-shadow: 0 0 8px var(--secondary);
  animation: pulse 1s infinite alternate;
}

/* Work experience repeated card */
.work-exp-item {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: var(--unit-4);
  margin-bottom: var(--unit-4);
}

.remove-experience-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--error);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.remove-experience-btn:hover {
  opacity: 1;
}

/* ============================================================
   STYLE SYNCHRONIZATION OVERRIDES
   Unifies Candidate Profile, Business Schools, AI Reports,
   and Resume Analyzer with the Dashboard Design System
   ============================================================ */

/* 1. Global Page Header Synchronization */
#subview-profile header,
#subview-schools header,
#subview-report header,
#subview-resume-analyzer header {
  margin-bottom: var(--unit-12) !important;
}

#subview-profile header h1,
#subview-schools header h1,
#subview-report header h1,
#subview-resume-analyzer header h1 {
  font-family: 'Inter', sans-serif !important;
  font-size: 48px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.04em !important;
  color: var(--primary) !important;
  margin-bottom: 6px !important;
}

#subview-profile header p.font-body-lg,
#subview-schools header p.font-body-lg,
#subview-report header p.font-body-lg,
#subview-resume-analyzer header p.font-body-lg {
  font-family: 'Inter', sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: 0.01em !important;
  color: var(--on-surface-variant) !important;
  max-width: 600px !important;
}

/* 2. Card Unification (Radius, Padding, and Shadows) */
#profile-wizard-card,
.school-card,
#subview-report .glass-panel:not(.skill-tile),
#subview-resume-analyzer .glass-panel:not(.resume-dropzone):not(.style-card) {
  border-radius: var(--radius-3xl) !important;
  padding: var(--unit-8) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

/* Sidebar summary card: keep its own measured padding, no hover lift */
.sidebar-summary-card {
  border-radius: var(--radius-3xl) !important;
  padding: var(--unit-6) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
  /* NOTE: position:sticky and top:96px intentionally left to original CSS — overriding
     them here with !important creates a stacking context that collapses the grid gap */
}

/* 3. Card Hover Effect Unification */
#subview-schools .school-card,
#subview-report .glass-panel.card-2xl,
#subview-resume-analyzer .glass-panel.card-2xl {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

#subview-schools .school-card:hover,
#subview-report .glass-panel.card-2xl:hover,
#subview-resume-analyzer .glass-panel.card-2xl:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--glass-glow) !important;
  border-color: rgba(0, 219, 233, 0.3) !important;
}

/* Sidebar summary card: no hover lift so it never overlaps wizard card */
.sidebar-summary-card:hover {
  transform: none !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

/* 4. Typography Normalization */

/* Main headers / Wizard section headers */
#subview-profile h2,
#subview-resume-analyzer h2,
#subview-report h2 {
  font-family: 'Inter', sans-serif !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em !important;
  color: var(--on-surface) !important;
  margin-bottom: var(--unit-2) !important;
}

/* Card titles, Sub-section headers, School Names */
#subview-profile h3,
#subview-schools .school-name,
#subview-report h3,
#subview-report h4,
#subview-resume-analyzer h3,
#subview-resume-analyzer h4 {
  font-family: 'Inter', sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: -0.01em !important;
  color: var(--on-surface) !important;
  margin-bottom: 12px !important;
  margin-top: 0 !important;
}

/* Body / Description text */
#subview-profile p,
#subview-schools p,
#subview-report p,
#subview-resume-analyzer p,
#subview-profile .text-muted,
#subview-schools .text-muted,
#subview-report .text-muted,
#subview-resume-analyzer .text-muted,
#subview-profile li,
#subview-resume-analyzer li {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--on-surface-variant) !important;
}

/* Labels / Mono text */
#subview-profile .input-label,
#subview-resume-analyzer .input-label,
#subview-schools .school-uni,
#subview-report .font-label,
#subview-resume-analyzer .font-label,
#subview-profile .font-label,
#subview-profile .summary-title,
#subview-report th {
  font-family: 'Geist Mono', monospace !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--on-surface-variant) !important;
}

/* 5. Form Components & Inputs Unification */
#subview-profile .input-field,
#subview-resume-analyzer .input-field,
#subview-schools .input-field,
#subview-schools .filter-select {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  color: var(--on-surface) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-lg) !important;
  padding: 14px 16px !important;
  height: auto !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Restore left-padding for inputs that have an icon inside — prevents icon/text overlap */
#subview-profile .field-with-icon .input-field,
#subview-profile .field-with-icon input,
#subview-profile .field-with-icon select {
  padding-left: 44px !important;
}

#subview-profile .input-field:focus,
#subview-resume-analyzer .input-field:focus,
#subview-schools .input-field:focus,
#subview-schools .filter-select:focus {
  border-color: var(--tertiary) !important;
  background: rgba(0, 219, 233, 0.04) !important;
  box-shadow: 0 0 0 3px rgba(0, 219, 233, 0.12) !important;
}

#subview-profile .dropdown-panel,
#subview-resume-analyzer .dropdown-panel {
  background: rgba(14, 20, 26, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

#subview-profile .dropdown-item,
#subview-resume-analyzer .dropdown-item {
  font-family: 'Inter', sans-serif !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  color: var(--on-surface) !important;
  transition: background 0.2s, color 0.2s !important;
}

#subview-profile .dropdown-item:hover,
#subview-resume-analyzer .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--tertiary) !important;
}

/* 6. Spacing & Grid Layout Synchronization
   Single-column layout: both wizard card and profile snapshot card
   take the same full width, stacked vertically with a clear gap */
#subview-profile .profile-layout {
  display: grid !important;
  grid-template-columns: 1fr !important;
  row-gap: var(--unit-8) !important;
  align-items: start !important;
}

#subview-schools .schools-grid {
  gap: var(--gutter) !important;
}

#subview-report>div[style*="grid-template-columns:1fr 2fr"],
#subview-report>div[style*="grid-template-columns: 1fr 2fr"] {
  gap: var(--gutter) !important;
}

#subview-report .skill-bento {
  gap: var(--gutter) !important;
  margin-bottom: var(--unit-12) !important;
}

#subview-report>div[style*="grid-template-columns:1fr 1fr"],
#subview-report>div[style*="grid-template-columns: 1fr 1fr"] {
  gap: var(--gutter) !important;
}

#subview-resume-analyzer>div[style*="grid-template-columns: 1fr 340px"],
#subview-resume-analyzer>div[style*="grid-template-columns:1fr 340px"] {
  gap: var(--gutter) !important;
}

#subview-resume-analyzer div[style*="grid-template-columns:1fr 1fr"],
#subview-resume-analyzer div[style*="grid-template-columns: 1fr 1fr"] {
  gap: var(--gutter) !important;
  margin-bottom: var(--unit-8) !important;
}

/* 7. Button Styling & Alignments */
#subview-profile .btn,
#subview-schools .btn,
#subview-report .btn,
#subview-resume-analyzer .btn,
#subview-schools .school-btn {
  font-family: 'Geist Mono', monospace !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-radius: var(--radius-xl) !important;
  padding: 14px var(--unit-8) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease !important;
}

#subview-profile .btn-sm,
#subview-schools .btn-sm,
#subview-report .btn-sm,
#subview-resume-analyzer .btn-sm,
#subview-schools .school-btn {
  padding: 8px var(--unit-4) !important;
  font-size: 11px !important;
  border-radius: var(--radius-lg) !important;
}

/* 8. Sub-card Component Details (Profile Preferences, Dropzone, Tables) */
#subview-profile .style-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: var(--radius-xl) !important;
  padding: var(--unit-4) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

#subview-profile .style-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(0, 219, 233, 0.25) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 219, 233, 0.15) !important;
}

#subview-profile .style-card.selected {
  background: rgba(0, 219, 233, 0.06) !important;
  border-color: var(--tertiary) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 219, 233, 0.3) !important;
}

#subview-profile .diff-option {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-lg) !important;
  padding: 12px !important;
  transition: all 0.2s ease !important;
}

#subview-profile .diff-option:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

#subview-profile .diff-option.selected {
  background: var(--tertiary-container) !important;
  color: var(--tertiary) !important;
  border-color: var(--tertiary) !important;
  box-shadow: 0 0 10px rgba(0, 219, 233, 0.2) !important;
}

#subview-profile .chip-item {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-full) !important;
  padding: 6px 14px !important;
  transition: all 0.2s ease !important;
}

#subview-profile .chip-item:hover {
  border-color: var(--tertiary) !important;
  background: rgba(0, 219, 233, 0.05) !important;
}

#subview-profile .chip-item.selected {
  background: var(--tertiary-container) !important;
  color: var(--tertiary) !important;
  border-color: var(--tertiary) !important;
  box-shadow: 0 0 10px rgba(0, 219, 233, 0.2) !important;
}

#subview-resume-analyzer .resume-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15) !important;
  border-radius: var(--radius-xl) !important;
  padding: var(--unit-8) var(--unit-4) !important;
  background: rgba(255, 255, 255, 0.01) !important;
  transition: all 0.3s ease !important;
}

#subview-resume-analyzer .resume-dropzone:hover,
#subview-resume-analyzer .resume-dropzone.dragover {
  border-color: var(--tertiary) !important;
  background: rgba(0, 219, 233, 0.03) !important;
  box-shadow: 0 0 15px rgba(0, 219, 233, 0.1) !important;
}

#subview-resume-analyzer table {
  width: 100% !important;
  border-collapse: collapse !important;
}

#subview-resume-analyzer th {
  font-family: 'Geist Mono', monospace !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--on-surface-variant) !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#subview-resume-analyzer td {
  padding: 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  font-size: 14px !important;
  color: var(--on-surface) !important;
  font-family: 'Inter', sans-serif !important;
}

#subview-resume-analyzer tr:hover td {
  background: rgba(255, 255, 255, 0.02) !important;
}

#subview-report .score-ring-wrap {
  width: 200px !important;
  height: 200px !important;
}

/* Custom Global Dark-Themed Select Dropdown Styling */
select {
  color-scheme: dark !important;
  background-color: var(--surface-container-low) !important;
  color: var(--on-surface) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-lg) !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  outline: none !important;
  transition: all 0.3s ease !important;
}

select:focus {
  border-color: var(--tertiary) !important;
  box-shadow: 0 0 8px rgba(0, 219, 233, 0.2) !important;
}

select option {
  background-color: var(--surface-container-low) !important;
  color: var(--on-surface) !important;
}

select option:hover,
select option:focus,
select option:active,
select option:checked {
  background-color: var(--tertiary-container) !important;
  color: var(--tertiary) !important;
}

/* Pipeline Item Styling */
.pipeline-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 16px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: var(--radius-xl) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.pipeline-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--tertiary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.pipeline-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.school-avatar {
  width: 36px !important;
  height: 36px !important;
}

/* ─── MOCK QUESTION NAVIGATOR BUTTONS ────────────────────── */
.nav-question-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.nav-question-btn:hover {
  transform: scale(1.08) !important;
  border-color: #00dbe9 !important;
  color: #ffffff !important;
}

.nav-question-btn.unanswered {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.nav-question-btn.answered {
  background: rgba(46, 204, 113, 0.25) !important;
  color: #2ecc71 !important;
  border: 1px solid #2ecc71 !important;
  font-weight: 800 !important;
}

.nav-question-btn.current {
  background: #00dbe9 !important;
  color: #070b12 !important;
  border: 1px solid #00dbe9 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 14px rgba(0, 219, 233, 0.6) !important;
}

/* ─── PRINT MEDIA STYLES FOR CLEAN REPORT PRINTING ───────── */
@media print {
  body, html {
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 11pt !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Hide sidebar, headers, orb animations, and navigation/action buttons */
  aside.sidebar,
  .sidebar,
  .aura-orb-container,
  .no-print,
  button,
  .btn,
  #mock-perf-header,
  #mock-history-container {
    display: none !important;
  }

  /* Expand app workspace and main content to full printable width */
  #view-app-layout {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .main-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
  }

  .sub-view {
    display: block !important;
    padding: 0 !important;
  }

  /* High-contrast printable containers */
  .glass-panel, .premium-card {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #111111 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    margin-bottom: 16px !important;
  }

  h1, h2, h3, h4, h5, h6, strong, p, span, div, td, th {
    color: #111111 !important;
    text-shadow: none !important;
  }

  .text-tertiary, .text-secondary {
    color: #007680 !important;
  }

  .progress-track {
    background: #e5e7eb !important;
  }

  .progress-fill {
    background: #007680 !important;
  }

  /* STRICT PAGE BREAK PREVENTION FOR QUESTION CARDS IN PRINT */
  .glass-panel,
  .premium-card,
  tr,
  div[style*="border-left"] {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    break-inside: avoid-page !important;
    -webkit-column-break-inside: avoid !important;
  }

  @page {
    margin: 1.2cm;
    size: portrait;
  }
}
