/* ========================================
   GIGGLEZEN ASSESSMENT - DESIGN SYSTEM
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-purple: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-blue: #6366f1;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --gradient-primary: linear-gradient(135deg, #a855f7, #06b6d4);
  --gradient-hero: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #06b6d4 100%);
  --gradient-card: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(6, 182, 212, 0.1));
  --gradient-button: linear-gradient(135deg, #a855f7, #6366f1);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(168, 85, 247, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.15);
  --shadow-button: 0 4px 20px rgba(168, 85, 247, 0.3);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --section-padding: 100px 0;
  --container-max: 1200px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
}

img {
  max-width: 100%;
  display: block;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-mesh .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-mesh .orb:nth-child(1) {
  width: 600px;
  height: 600px;
  background: var(--accent-purple);
  top: -200px;
  left: -200px;
}

.bg-mesh .orb:nth-child(2) {
  width: 500px;
  height: 500px;
  background: var(--accent-cyan);
  bottom: -150px;
  right: -150px;
  animation-delay: -7s;
}

.bg-mesh .orb:nth-child(3) {
  width: 400px;
  height: 400px;
  background: var(--accent-blue);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(50px, -80px) scale(1.1);
  }

  50% {
    transform: translate(-30px, 60px) scale(0.95);
  }

  75% {
    transform: translate(70px, 30px) scale(1.05);
  }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  filter: invert(1);
}

.logo-text span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-normal);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--gradient-button);
  color: white !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-button);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(168, 85, 247, 0.4);
}

.nav-cta::after {
  display: none !important;
}

/* ===== CONTAINER & SECTIONS ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  z-index: 1;
  display: none;
}

.section.active {
  display: block;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.8s ease;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 .gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
  background: var(--gradient-button);
  color: white;
  padding: 16px 40px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 600;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-button);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  padding: 16px 40px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 600;
  border: 1px solid var(--border-glass);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-purple);
  transform: translateY(-3px);
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-purple);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-glass);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== ROUND CARDS (Home Page) ===== */
.rounds-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.round-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.round-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.round-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
}

.round-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.round-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.round-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.round-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.round-meta span {
  font-size: 0.8rem;
  color: var(--accent-purple);
  font-weight: 600;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.08);
  border-radius: var(--radius-full);
  border: 1px solid rgba(168, 85, 247, 0.15);
}

/* ===== ROUND INTRO ===== */
.round-intro-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
}

.round-intro-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  animation: scaleIn 0.5s ease;
}

.round-intro-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  padding: 8px 20px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-full);
}

.round-intro-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.round-intro-card h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.round-intro-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.round-intro-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 36px;
}

.round-intro-stat {
  text-align: center;
}

.round-intro-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.round-intro-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== ROUND INDICATOR ===== */
.round-indicator {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  padding: 6px 16px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: var(--radius-full);
}

/* ===== TEST SECTION ===== */
.test-section {
  min-height: 100vh;
  padding: 100px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.test-header {
  text-align: center;
  margin-bottom: 40px;
  width: 100%;
  max-width: 700px;
}

.test-progress-wrapper {
  width: 100%;
  max-width: 700px;
  margin-bottom: 8px;
}

.test-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.test-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.test-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  width: 100%;
  max-width: 700px;
  margin-bottom: 32px;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.progress-text span {
  color: var(--accent-purple);
  font-weight: 700;
}

.test-timer {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== QUESTION CARD ===== */
.question-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 700px;
  width: 100%;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  animation: questionFadeIn 0.5s ease;
}

@keyframes questionFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.question-number {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-purple);
  margin-bottom: 16px;
}

.question-trait-tag,
.question-cat-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 4px 12px;
  background: var(--gradient-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  margin-left: 12px;
  text-transform: capitalize;
  font-weight: 500;
  letter-spacing: 1px;
}

.question-text {
  font-size: 1.3rem;
  font-weight: 600;
  font-family: var(--font-heading);
  line-height: 1.5;
  margin-bottom: 36px;
  color: var(--text-primary);
}

/* ===== LIKERT SCALE ===== */
.likert-scale {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.likert-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
}

.likert-option:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(168, 85, 247, 0.2);
  transform: translateX(4px);
}

.likert-option.selected {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.likert-option.selected .likert-radio {
  border-color: var(--accent-purple);
  background: var(--accent-purple);
}

.likert-option.selected .likert-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.likert-radio {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.likert-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.likert-option.selected .likert-label {
  color: var(--text-primary);
}

.likert-key {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: auto;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  font-family: monospace;
}

/* ===== MCQ OPTIONS (Technical Test) ===== */
.mcq-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mcq-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
}

.mcq-option:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(168, 85, 247, 0.2);
  transform: translateX(4px);
}

.mcq-option.selected {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--accent-purple);
}

.mcq-option.correct {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-green);
}

.mcq-option.wrong {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--accent-red);
}

.mcq-letter {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.mcq-option.selected .mcq-letter {
  border-color: var(--accent-purple);
  background: var(--accent-purple);
  color: white;
}

.mcq-option.correct .mcq-letter {
  border-color: var(--accent-green);
  background: var(--accent-green);
  color: white;
}

.mcq-option.wrong .mcq-letter {
  border-color: var(--accent-red);
  background: var(--accent-red);
  color: white;
}

.mcq-option-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.mcq-option.selected .mcq-option-text {
  color: var(--text-primary);
}

/* ===== TYPING TEST ===== */
.typing-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 700px;
  width: 100%;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.typing-source {
  font-size: 1.15rem;
  line-height: 2;
  margin-bottom: 24px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  font-family: 'Inter', monospace;
  letter-spacing: 0.02em;
}

.typing-source .char {
  transition: color 0.05s;
}

.typing-source .char.correct {
  color: var(--accent-green);
}

.typing-source .char.wrong {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.15);
  border-radius: 2px;
}

.typing-source .char.current {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 2px;
  animation: blink 1s ease-in-out infinite;
}

.typing-source .char.untyped {
  color: var(--text-muted);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.typing-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', monospace;
  font-size: 1rem;
  line-height: 1.6;
  resize: none;
  height: 100px;
  transition: var(--transition-normal);
  outline: none;
}

.typing-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.typing-input::placeholder {
  color: var(--text-muted);
}

.typing-live-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
}

.typing-stat {
  text-align: center;
}

.typing-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
}

.typing-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

#liveWpm {
  color: var(--accent-cyan);
}

#liveAccuracy {
  color: var(--accent-green);
}

#liveErrors {
  color: var(--accent-red);
}

/* ===== TEST NAVIGATION ===== */
.test-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 700px;
  width: 100%;
  margin-top: 28px;
}

.test-nav-btn {
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-prev {
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-prev:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.btn-next {
  background: var(--gradient-button);
  color: white;
  box-shadow: var(--shadow-button);
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(168, 85, 247, 0.4);
}

.btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.btn-submit {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-submit:hover {
  box-shadow: 0 6px 30px rgba(16, 185, 129, 0.4);
}

/* ===== RESULTS SECTION ===== */
.results-section {
  min-height: 100vh;
  padding: 100px 24px 60px;
}

.results-header {
  text-align: center;
  margin-bottom: 48px;
}

.results-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.results-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* ===== CHART CARD ===== */
.chart-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.chart-card h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  text-align: center;
}

#radarChart,
#finalRadarChart {
  max-width: 100%;
}

/* ===== TRAIT BREAKDOWN ===== */
.traits-breakdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trait-result-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
  cursor: pointer;
}

.trait-result-card:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.trait-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.trait-result-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
}

.trait-result-score {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
}

.trait-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

.trait-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.trait-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: none;
}

.trait-result-card.expanded .trait-description {
  display: block;
  animation: fadeInDown 0.3s ease;
}

/* ===== OVERALL SCORE CARD ===== */
.overall-score-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 48px;
  backdrop-filter: blur(20px);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.overall-score-ring {
  position: relative;
  flex-shrink: 0;
}

.overall-score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.overall-score-info h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.overall-score-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.overall-score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.score-breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.score-breakdown-item .score-label {
  color: var(--text-secondary);
}

.score-breakdown-item .score-value {
  font-weight: 700;
  color: var(--accent-purple);
}

/* ===== REPORT SECTIONS ===== */
.report-round-section {
  margin-bottom: 48px;
}

.report-round-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.report-round-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  color: white;
  flex-shrink: 0;
}

.report-round-header h3 {
  font-size: 1.2rem;
}

.report-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.8;
}

/* ===== TECH RESULT CARDS ===== */
.tech-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.tech-result-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.tech-result-card .tech-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.tech-result-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.tech-score-big {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.tech-score-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tech-score-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 12px;
}

.tech-score-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1.2s ease;
}

/* ===== TYPING RESULT CARDS ===== */
.typing-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.typing-result-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.typing-result-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.typing-result-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== LOADING ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: invert(1);
  margin-bottom: 8px;
  animation: pulse 2s ease-in-out infinite;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-glass);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-normal);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .results-grid {
    grid-template-columns: 1fr;
  }

  .overall-score-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-glass);
  }

  .nav-links.open {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .stats-bar {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features-grid,
  .rounds-cards {
    grid-template-columns: 1fr;
  }

  .question-card,
  .typing-card {
    padding: 32px 24px;
  }

  .question-text {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .typing-live-stats {
    gap: 20px;
  }

  .typing-source {
    font-size: 1rem;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .test-nav {
    flex-direction: column;
    gap: 12px;
  }

  .test-nav-btn {
    width: 100%;
    justify-content: center;
  }

  .results-actions {
    flex-direction: column;
    align-items: center;
  }

  .round-intro-stats {
    gap: 24px;
  }

  .typing-results-grid {
    grid-template-columns: 1fr 1fr;
  }
}