:root {
  /* Brand Colors */
  --primary-color: #ff9900;
  --secondary-color: #232f3e;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --border-color: #dee2e6;
  --success-color: #28a745;
  --danger-color: #dc3545;

  /* QUICK WIN: Expanded Primary Color Palette */
  --primary-50: #fff7ed;
  --primary-100: #ffedd5;
  --primary-200: #fed7aa;
  --primary-300: #fdba74;
  --primary-400: #fb923c;
  --primary-500: #ff9900; /* Main */
  --primary-600: #ea580c;
  --primary-700: #c2410c;
  --primary-800: #9a3412;
  --primary-900: #7c2d12;

  /* QUICK WIN: Enhanced Semantic Colors */
  --success-color-light: #d4edda;
  --success-color-dark: #10b981;
  --warning-color: #f59e0b;
  --danger-color-light: #fff5f5;
  --info-color: #3b82f6;

  /* QUICK WIN: Neutral Grays Palette */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Responsive Breakpoints (Mobile-first) */
  --bp-xs: 480px; /* Small phones landscape */
  --bp-sm: 640px; /* Large phones, small tablets portrait */
  --bp-md: 768px; /* Tablets portrait */
  --bp-lg: 1024px; /* Tablets landscape, small desktops */
  --bp-xl: 1280px; /* Desktops */
  --bp-2xl: 1536px; /* Large desktops */

  /* Typography Scale - Mobile Base (320px+) */
  --font-size-h1: 2rem; /* QUICK WIN: Increased from 1.8rem */
  --font-size-h2: 1.65rem; /* QUICK WIN: Increased from 1.5rem */
  --font-size-h3: 1.35rem; /* QUICK WIN: Increased from 1.25rem */
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;
  --font-size-tiny: 0.75rem;

  --line-height-tight: 1.25; /* QUICK WIN: Tighter for headings */
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75; /* QUICK WIN: Slightly more relaxed */

  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800; /* QUICK WIN: Added for hero */

  /* QUICK WIN: Better Font Stacks */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-family-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* QUICK WIN: Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;

  /* Spacing Scale (4px base unit) */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */

  /* Touch Target Sizes */
  --touch-target-min: 44px;
  --touch-target-comfortable: 48px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index layers */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-notification: 60;
  --z-onboarding: 10100;

  /* Named Gradient Colors */
  --gradient-gold: #f6b93b;
  --gradient-purple-start: #667eea;
  --gradient-purple-end: #764ba2;
  --gradient-pink-start: #f093fb;
  --gradient-pink-end: #f5576c;
}

/* Typography Scale - Tablet & Desktop */
@media (min-width: 768px) {
  :root {
    --font-size-h1: 2.75rem; /* QUICK WIN: Increased from 2.5rem */
    --font-size-h2: 2.25rem; /* QUICK WIN: Increased from 2rem */
    --font-size-h3: 1.75rem; /* QUICK WIN: Increased from 1.5rem */
    --line-height-tight: 1.2;
  }
}

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

/* PHASE 3: Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-family-base); /* QUICK WIN: Use variable */
  line-height: var(--line-height-normal);
  color: var(--text-color);
  background-color: #fff;
  /* QUICK WIN: Better font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* QUICK WIN: Better heading styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  font-weight: var(--font-weight-bold);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background-color: var(--secondary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: var(--space-4);
  padding: var(--space-3) var(--space-4);
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
  transition: var(--transition-base);
}

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

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: var(--z-fixed);
}

.hamburger-icon {
  display: block;
  width: 28px;
  height: 2px;
  background-color: white;
  position: relative;
  transition: var(--transition-base);
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background-color: white;
  position: absolute;
  transition: var(--transition-base);
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  top: 8px;
}

/* Hamburger animation when open */
.mobile-menu-toggle.open .hamburger-icon {
  background-color: transparent;
}

.mobile-menu-toggle.open .hamburger-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle.open .hamburger-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile menu drawer */
.nav-links {
  display: flex;
  align-items: center;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-menu-overlay.show {
  display: block;
  opacity: 1;
}

/* Mobile breakpoint */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    max-width: 85%;
    background-color: var(--secondary-color);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-16) var(--space-6);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transition: right var(--transition-base);
    z-index: var(--z-modal);
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    margin-left: 0;
    margin-bottom: var(--space-2);
    padding: var(--space-4);
    border-radius: var(--radius-md);
  }

  .nav-links a:hover,
  .nav-links a:active {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* User menu mobile adjustments */
  .user-menu-container {
    width: 100%;
  }

  /* Show user name in mobile menu */
  .nav-links.open .user-name {
    display: block;
  }

  /* Make user profile button full width in mobile menu */
  .nav-links.open .user-profile-button {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    justify-content: flex-start;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-2);
  }

  .nav-links.open .user-profile-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }

  /* Show dropdown arrow in mobile menu */
  .nav-links.open .dropdown-arrow {
    display: block;
    margin-left: auto;
  }

  /* IMPROVED: Better mobile dropdown - appears below avatar, not bottom sheet */
  .user-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    min-width: 220px !important;
    max-width: 90vw !important;
    margin-top: 8px !important;
    border-radius: var(--radius-md) !important;
    max-height: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-10px);
    transition: transform 0.15s ease, opacity 0.15s ease, visibility 0.15s ease;
    z-index: calc(var(--z-modal) + 2) !important;
  }

  .user-dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  /* Transparent overlay for mobile - doesn't block entire screen */
  .user-dropdown-overlay {
    z-index: calc(var(--z-modal) + 1) !important;
    background-color: transparent !important;
    pointer-events: auto !important;
  }

  .user-dropdown-overlay.show {
    display: block !important;
    opacity: 1 !important;
  }

  /* CRITICAL: Ensure dropdown menu receives touch events on mobile */
  .user-dropdown-menu {
    pointer-events: auto !important;
  }

  .user-dropdown-menu .dropdown-item {
    pointer-events: auto !important;
    position: relative;
    z-index: 9999 !important;
  }

  /* Make dropdown items easier to tap on mobile */
  .dropdown-item {
    padding: 14px 16px !important;
    font-size: 15px !important;
  }

  .dropdown-item svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* Mobile accordion user menu - expands inline in mobile nav */
  .nav-links.open .user-dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav-links.open .user-dropdown-menu.show {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
  }

  /* Rotate arrow when expanded */
  .nav-links.open .user-profile-button[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
  }

  .nav-links.open .dropdown-arrow {
    transition: transform 0.2s ease;
  }

  /* Style dropdown items for dark mobile menu */
  .nav-links.open .user-dropdown-menu .dropdown-item {
    color: white !important;
    background: transparent;
    padding-left: 48px;
  }

  .nav-links.open .user-dropdown-menu .dropdown-item:hover,
  .nav-links.open .user-dropdown-menu .dropdown-item:active {
    background-color: rgba(255, 255, 255, 0.1) !important;
  }

  .nav-links.open .user-dropdown-menu .dropdown-item svg {
    color: rgba(255, 255, 255, 0.8) !important;
  }

  /* Hide header in mobile accordion */
  .nav-links.open .user-dropdown-menu .dropdown-header {
    display: none;
  }

  /* First divider also hidden */
  .nav-links.open .user-dropdown-menu .dropdown-header + .dropdown-divider {
    display: none;
  }

  /* Style dividers for dark context */
  .nav-links.open .user-dropdown-menu .dropdown-divider {
    background-color: rgba(255, 255, 255, 0.1);
    margin: 8px 16px;
  }

  /* Logout styling in mobile */
  .nav-links.open .user-dropdown-menu .dropdown-logout {
    color: #ff6b6b !important;
  }

  /* Hide overlay in mobile accordion mode */
  .nav-links.open ~ .user-dropdown-overlay {
    display: none !important;
  }
}

/* Announcement Banner */
.announcement-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-bottom: 3px solid #f59e0b;
  padding: 0.75rem 0;
  position: relative;
}

.announcement-banner.type-discount {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-bottom-color: #22c55e;
}

.announcement-banner.type-warning {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-bottom-color: #ef4444;
}

.announcement-banner.type-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-bottom-color: #3b82f6;
}

.announcement-banner .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.announcement-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.announcement-new-badge {
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.announcement-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.95rem;
}

.announcement-message {
  color: #374151;
  font-size: 0.9rem;
}

.announcement-link {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 4px;
  transition: all 0.3s;
}

.announcement-link:hover {
  background: rgba(37, 99, 235, 0.2);
}

.announcement-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0 var(--space-2);
  line-height: 1;
  transition: var(--transition-base);
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
}

.announcement-close:hover {
  color: #1f2937;
}

/* Desktop announcement layout */
@media (min-width: 768px) {
  .announcement-content {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
  }

  .announcement-banner .container {
    align-items: center;
  }

  .announcement-close {
    position: static;
    padding: 0 var(--space-2);
  }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 5rem 2rem; /* QUICK WIN: More generous padding */
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  color: var(--gray-900);
  border-radius: 16px; /* QUICK WIN: Larger radius */
  margin: 2rem 0;
  position: relative; /* QUICK WIN: For decorative pattern */
  overflow: hidden;
}

/* QUICK WIN: Decorative background pattern */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(255, 153, 0, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 153, 0, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero h1 {
  font-size: var(--font-size-h1);
  margin-bottom: var(--space-6); /* QUICK WIN: More spacing */
  font-weight: var(--font-weight-extrabold); /* QUICK WIN: Bolder */
  line-height: 1.2;
  position: relative; /* QUICK WIN: Above pattern */
  z-index: 1;
}

.hero p {
  font-size: 1.3rem; /* QUICK WIN: Larger from 1.2rem */
  margin-bottom: 2.5rem; /* QUICK WIN: More spacing */
  color: var(--gray-600);
  max-width: 600px; /* QUICK WIN: Constrain width */
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
  position: relative; /* QUICK WIN: For layering */
  z-index: 1;
}

/* QUICK WIN: Larger hero CTA buttons */
.hero .btn-primary {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(255, 153, 0, 0.4);
}

.hero .btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 24px rgba(255, 153, 0, 0.5);
  transform: translateY(-3px) scale(1.02);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* QUICK WIN: Hardware acceleration */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  box-shadow: none;
  outline: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.btn-primary::before {
  display: none;
}

.btn-primary:hover:not(:disabled) {
  background-color: #e88b00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover:not(:disabled) {
  background-color: #1a252f;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(35, 47, 62, 0.3);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.btn .arrow {
  font-weight: 300;
  font-size: 1.4em;
  line-height: 0.8;
  margin: 0 0.3rem;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-full);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.2);
}

.btn-outline:active:not(:disabled) {
  transform: translateY(0) scale(0.95);
}

.btn-correct {
  background-color: #5cb85c !important;
  color: white !important;
  opacity: 1 !important;
}

.btn-incorrect {
  background-color: #f0ad4e !important;
  color: white !important;
  opacity: 1 !important;
}

/* Features Section */
.features,
.pricing {
  padding: 4rem 0;
}

.features h2,
.pricing h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--secondary-color);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.feature-card {
  padding: 2rem;
  background-color: var(--light-bg);
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  color: #c2410c; /* WCAG AA compliant - darker orange for better contrast */
  margin-bottom: 1rem;
}

/* Responsive feature grid */
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

/* ========================================
   Social Proof Section
   ======================================== */

.social-proof {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, #ffffff 0%, #fffbf5 100%);
  margin: var(--space-12) -20px;
  padding-left: 20px;
  padding-right: 20px;
  border-top: 2px solid rgba(148, 163, 184, 0.3);
  border-bottom: 2px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-lg);
}

.social-proof h2 {
  text-align: center;
  margin-bottom: var(--space-8);
  color: var(--secondary-color);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto var(--space-10);
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: var(--space-4);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--gradient-gold) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  color: var(--secondary-color);
}

.author-cert {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Trust badges - Enhanced Design */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  max-width: 900px;
  margin: var(--space-10) auto 0;
  padding: var(--space-6);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

@media (min-width: 768px) {
  .trust-badges {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.trust-badge-item {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.trust-badge-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.trust-icon {
  font-size: 2.25rem;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: var(--radius-lg);
}

.trust-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-color);
  line-height: 1.3;
}

/* ========================================
   Certification Levels Section
   ======================================== */

.certification-levels {
  margin: var(--space-8) 1.5rem;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
}

.certification-levels::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, #f59e0b 100%);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
  z-index: 1;
}

.certification-levels-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}

.certification-levels-header:hover .levels-toggle {
  color: var(--primary-color);
}

.certification-levels h2 {
  margin: 0;
  color: var(--secondary-color);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: left;
}

.levels-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: #64748b;
  white-space: nowrap;
  transition: color 0.2s;
}

.levels-toggle-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-style: normal;
}

.certification-levels.open .levels-toggle-arrow {
  transform: rotate(180deg);
}

.levels-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 2rem;
}

.certification-levels.open .levels-content {
  max-height: 800px;
  padding: 0 2rem 2rem;
}

.levels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .levels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .levels-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.level-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(148, 163, 184, 0.15);
  position: relative;
  overflow: hidden;
}

.level-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, #f59e0b 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.level-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.level-card:hover::before {
  opacity: 1;
}

.level-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.level-icon.foundational {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.level-icon.associate {
  background: linear-gradient(
    135deg,
    var(--gradient-purple-start) 0%,
    var(--gradient-purple-end) 100%
  );
}

.level-icon.professional {
  background: linear-gradient(
    135deg,
    var(--gradient-pink-start) 0%,
    var(--gradient-pink-end) 100%
  );
}

.level-icon.specialty {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.level-card h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.level-card p {
  color: #4a5568; /* WCAG AA compliant - darker gray for better contrast */
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.level-example {
  display: block;
  font-size: 0.85rem;
  color: #c2410c; /* WCAG AA compliant - darker orange for better contrast */
  font-weight: 600;
  margin-top: 1rem;
}

/* Mobile responsive adjustments for social proof */
@media (max-width: 767px) {
  .social-proof {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .trust-badges {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .trust-badge-item {
    padding: 1rem;
  }

  /* Certification levels section mobile */
  .certification-levels {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  .certification-levels-header {
    padding: 1.25rem 1.25rem;
  }

  .certification-levels h2 {
    font-size: 1.1rem;
  }

  .levels-content {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .certification-levels.open .levels-content {
    padding: 0 1.25rem 1.5rem;
  }

  .levels-grid {
    gap: var(--space-4);
  }

  .level-card {
    padding: 2rem;
  }

  /* Feature cards on mobile */
  .feature-card {
    padding: 1.5rem;
  }

  .feature-card h3 {
    font-size: 1.125rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .testimonial-card {
    padding: 1.25rem;
  }

  .testimonial-text {
    font-size: 0.9375rem;
  }

  .trust-badges {
    grid-template-columns: 1fr;
  }
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  padding: var(--space-6);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-base);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  border-width: 3px;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.2);
  position: relative;
}

.pricing-card.featured::before {
  content: "RECOMMENDED";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-tiny);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.5px;
}

/* Desktop pricing grid */
@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .pricing-card.featured {
    transform: scale(1.05);
  }
}

@media (min-width: 768px) {
  .pricing-grid {
    gap: var(--space-8);
  }
}

.pricing-card h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: bold;
  margin: 1rem 0;
}

.pricing-card ul {
  list-style: none;
  margin: 2rem 0;
}

.pricing-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

/* Quiz Page */
.quiz-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
}

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

.question-card {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  /* PHASE 2: Better depth and entrance animation */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  animation: slideInUp 0.4s ease-out;
}

/* PHASE 2: Smooth entrance animation for questions */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Allow selecting question text but not answers */
.question-text,
.question-text-formatted,
.question-number {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

.options,
.option,
.option-content {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.question-number {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 1rem;
  /* PHASE 2: More prominent question number */
  display: inline-block;
  background: linear-gradient(
    135deg,
    rgba(255, 153, 0, 0.1) 0%,
    rgba(255, 153, 0, 0.05) 100%
  );
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.question-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.question-text-formatted {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  white-space: pre-line;
}

.question-image {
  margin: 1.5rem 0;
  text-align: center;
}

.question-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.question-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.options {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* PHASE 2: Increased spacing between options */
  margin-top: 1.5rem; /* PHASE 2: More space from question */
}

.option {
  padding: var(--space-5) var(--space-6); /* PHASE 2: More generous padding */
  min-height: 64px; /* PHASE 2: Taller options */
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); /* PHASE 2: Smoother easing */
  transform-origin: center;
  display: flex;
  align-items: center;
  /* QUICK WIN: Hardware acceleration */
  transform: translateZ(0);
  backface-visibility: hidden;
  /* PHASE 2: Default shadow */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.option:hover {
  border-color: var(--primary-color);
  background-color: #fffbf5; /* PHASE 2: Softer background */
  transform: translateY(-2px) scale(1.01); /* PHASE 2: Subtle lift */
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.15);
}

.option:active {
  transform: scale(0.98);
}

.option.selected {
  border-color: var(--primary-color);
  background-color: #fff8e1;
  transform: scale(1.02);
}

.option.correct {
  border-color: var(--success-color);
  background-color: #d4edda;
  animation: correctPulse 0.5s ease;
}

.option.incorrect {
  border-color: var(--danger-color);
  background-color: var(--danger-color-light); /* QUICK WIN: Use new variable */
  animation: shake 0.3s ease; /* QUICK WIN: Faster, gentler */
}

@keyframes correctPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* QUICK WIN: Gentler shake animation */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  } /* Reduced from -5px */
  75% {
    transform: translateX(3px);
  } /* Reduced from 5px */
}

.explanation {
  margin-top: 2rem; /* PHASE 2: More spacing */
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    #f0f9ff 0%,
    #e0f2fe 100%
  ); /* PHASE 2: Blue gradient */
  border-left: 4px solid #3b82f6; /* PHASE 2: Blue accent */
  border-radius: 12px;
  display: none;
  /* PHASE 2: Shadow and smooth animation */
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  animation: slideInExplanation 0.3s ease-out;
}

/* PHASE 2: Smooth explanation appearance */
@keyframes slideInExplanation {
  from {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin-top: 2rem;
  }
}

.explanation.show {
  display: block;
}

/* PHASE 2: Better explanation text styling */
.explanation strong {
  color: #1e40af;
  font-weight: 700;
}

.explanation p {
  line-height: 1.7;
  color: #374151;
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* Premium Upgrade Prompt */
.premium-upgrade-prompt {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
  border: 2px solid #ffc107;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
  animation: slideIn 0.5s ease-out;
}

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

.upgrade-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.upgrade-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.upgrade-text {
  flex: 1;
  min-width: 250px;
}

.upgrade-text strong {
  display: block;
  font-size: 1.1rem;
  color: #856404;
  margin-bottom: 0.3rem;
}

.upgrade-text p {
  margin: 0;
  color: #856404;
  font-size: 0.95rem;
}

.btn-premium {
  background: linear-gradient(135deg, var(--primary-color) 0%, #f6b93b 100%);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
  transition: all 0.3s ease;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 153, 0, 0.4);
}

/* User Status Badge */
.badge {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1.4;
  min-width: 85px;
}

.badge-status {
  white-space: nowrap;
  display: inline-block;
}

.badge small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 0.1rem;
  letter-spacing: 0.3px;
}

.badge-free {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.badge-premium {
  background: linear-gradient(135deg, var(--primary-color) 0%, #f6b93b 100%);
  color: white;
  box-shadow: 0 2px 12px rgba(255, 153, 0, 0.3);
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Exam Mode Button */
.btn-exam-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
  color: white;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(255, 153, 0, 0.3);
  white-space: nowrap;
}
.btn-exam-mode:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 153, 0, 0.4);
  color: white;
}
.btn-exam-mode.disabled {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.75;
}
.btn-exam-mode.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Go to Page Feature */
.go-to-page-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.go-to-page-container:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.1);
}

.go-to-page-input {
  width: 100px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  background: white;
  color: var(--text-primary);
}

.go-to-page-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

.go-to-page-input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

.go-to-page-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #f6b93b 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(255, 153, 0, 0.2);
}

.go-to-page-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3);
}

.go-to-page-btn:active {
  transform: translateY(0);
}

.quiz-header-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

/* Mobile responsive styles for go-to-page */
@media (max-width: 768px) {
  .quiz-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .quiz-header-actions {
    align-items: stretch;
  }

  .go-to-page-container {
    justify-content: center;
  }

  .go-to-page-input {
    flex: 1;
    max-width: 120px;
  }
}

/* Premium Gate */
.premium-gate {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--light-bg);
  border-radius: 16px;
  margin: 2rem 0;
}

.premium-gate h2 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.premium-gate p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Auth Forms */
.auth-container {
  max-width: 400px;
  margin: 3rem auto;
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Certifications Section */
.certifications {
  margin: 4rem 0;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.cert-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  contain: layout style paint;
}

/* Colored top border based on certification level */
.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Foundational - CLF, AIF */
.cert-card[data-exam-code*="CLF"]::before,
.cert-card[data-exam-code*="AIF"]::before {
  background: linear-gradient(90deg, #84fab0 0%, #8fd3f4 100%);
}

/* Associate - SAA, DVA */
.cert-card[data-exam-code*="SAA"]::before,
.cert-card[data-exam-code*="DVA"]::before {
  background: linear-gradient(
    90deg,
    var(--gradient-purple-start) 0%,
    var(--gradient-purple-end) 100%
  );
}

/* Professional - SAP, DOP */
.cert-card[data-exam-code*="SAP"]::before,
.cert-card[data-exam-code*="DOP"]::before {
  background: linear-gradient(
    90deg,
    var(--gradient-pink-start) 0%,
    var(--gradient-pink-end) 100%
  );
}

/* Specialty - ANS, SCS, DBS, DAS, MLS */
.cert-card[data-exam-code*="ANS"]::before,
.cert-card[data-exam-code*="SCS"]::before,
.cert-card[data-exam-code*="DBS"]::before,
.cert-card[data-exam-code*="DAS"]::before,
.cert-card[data-exam-code*="MLS"]::before {
  background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
}

/* Azure exams - Microsoft Blue */
.cert-card[data-exam-code*="AZ-"]::before {
  background: linear-gradient(90deg, #0078D4 0%, #50E6FF 100%);
}

/* PMI exams - PMI Blue/Gold */
.cert-card[data-exam-code*="PMP"]::before,
.cert-card[data-exam-code*="CAPM"]::before,
.cert-card[data-exam-code*="PMI-"]::before {
  background: linear-gradient(90deg, #00529B 0%, #FFD200 100%);
}

/* Cisco exams - Cisco Blue */
.cert-card[data-exam-code*="CCNA"]::before,
.cert-card[data-exam-code*="CCNP"]::before,
.cert-card[data-exam-code*="CCIE"]::before {
  background: linear-gradient(90deg, #00BCEB 0%, #005073 100%);
}

/* Kubernetes/CNCF exams - K8s Blue */
.cert-card[data-exam-code*="KCNA"]::before,
.cert-card[data-exam-code*="CKA"]::before,
.cert-card[data-exam-code*="CKAD"]::before,
.cert-card[data-exam-code*="CKS"]::before {
  background: linear-gradient(90deg, #326CE5 0%, #6495ED 100%);
}

/* ISTQB exams - Navy Blue */
.cert-card[data-exam-code*="ISTQB"]::before {
  background: linear-gradient(90deg, #003366 0%, #00A0E3 100%);
}

/* ICAgile exams - Orange */
.cert-card[data-exam-code*="ICP"]::before {
  background: linear-gradient(90deg, #FF6600 0%, #FFB366 100%);
}

/* ASTQB exams - Teal */
.cert-card[data-exam-code*="ASTQB"]::before {
  background: linear-gradient(90deg, #006699 0%, #66B2CC 100%);
}

/* Enhanced hover effect - matches AWSReady */
.cert-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 153, 0, 0.2);
}

.cert-card.coming-soon {
  opacity: 0.72;
  border: 2px dashed #d5d8dc;
  cursor: default;
  pointer-events: none;
}

.cert-card.coming-soon:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cert-card.coming-soon .cert-level {
  background: #95a5a6;
  color: #fff;
}

.coming-soon-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #8e9eab 0%, #6c7a89 100%);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-coming-soon {
  background: #d5d8dc;
  color: #839192;
  border: none;
  cursor: not-allowed;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
}

/* Popular badge for SAA-C03 */
.cert-card.popular .cert-badge {
  top: 3.5rem;
}

.popular-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.cert-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.cert-card.coming-soon .cert-badge {
  background: #95a5a6;
}

.cert-level {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  width: fit-content;
  flex-shrink: 0;
}

.cert-level.foundational {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
  color: white;
}

.cert-level.associate {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.cert-level.professional {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.cert-level.specialty {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
}

.cert-card h3 {
  font-size: 1.5rem; /* PHASE 2: Larger */
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
  flex-shrink: 0;
  min-height: auto; /* PHASE 2: Remove fixed height */
  line-height: 1.3;
  font-weight: var(--font-weight-bold);
}

.cert-code {
  font-size: 1rem;
  font-weight: 700; /* PHASE 2: Bolder */
  color: var(--primary-color);
  margin-bottom: 1rem;
  /* PHASE 2: Badge style */
  background: rgba(255, 153, 0, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  display: inline-block;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.cert-card p {
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-shrink: 0;
  min-height: 3rem;
}

.cert-stats {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #fffbf5 100%);
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  position: relative;
  flex-shrink: 0;
  min-height: 100px;
}

.cert-stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.cert-stats span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray-700, #475569);
  font-weight: 500;
}

.cert-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: var(--space-6);
}

.cert-actions .btn {
  flex: 1;
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  justify-content: center;
}

/* PHASE 2: Make primary action more prominent */
.cert-actions .btn-primary {
  order: -1; /* Always first */
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.2);
}

/* Premium button with shimmer effect */
.cert-actions .premium-button,
.premium-button {
  position: relative;
  overflow: hidden;
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-full);
}

.premium-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.premium-button:hover::before {
  left: 100%;
}

.cert-actions.single-button .btn-primary {
  flex: 1;
}

.cert-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   JSON Code Block Styles
   ============================================ */

.option-content {
  width: 100%;
}

.json-code-block {
  margin: 0;
  padding: var(--space-3);
  background: #282c34;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", "Consolas", "source-code-pro",
    monospace;
  font-size: 0.75rem;
  line-height: var(--line-height-normal);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.json-code {
  display: block;
  color: #abb2bf;
  white-space: pre;
  margin: 0;
  padding: 0;
}

/* JSON Syntax Highlighting Colors (inspired by VS Code Dark+ theme) */
.json-key {
  color: #61afef; /* Light blue for keys */
  font-weight: 500;
}

.json-string {
  color: #98c379; /* Green for string values */
}

.json-number {
  color: #d19a66; /* Orange for numbers */
}

.json-boolean {
  color: #c678dd; /* Purple for booleans */
  font-weight: 600;
}

.json-null {
  color: #e06c75; /* Red for null */
  font-style: italic;
}

/* Option styling adjustments for JSON content */
.option .json-code-block {
  margin-top: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option:hover .json-code-block {
  box-shadow: 0 0 0 2px var(--primary-color), inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.option.selected .json-code-block {
  box-shadow: 0 0 0 3px var(--primary-color), inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.option.correct .json-code-block {
  box-shadow: 0 0 0 3px var(--success-color), inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.option.incorrect .json-code-block {
  box-shadow: 0 0 0 3px var(--danger-color), inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Desktop sizing for JSON blocks */
@media (min-width: 768px) {
  .json-code-block {
    font-size: 0.9rem;
    padding: var(--space-4);
  }
}

/* Tablet breakpoint (sm-md) */
@media (min-width: 640px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .levels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

/* Desktop breakpoint (md+) */
@media (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
  }

  .nav-links a {
    margin-left: var(--space-8);
  }

  .cert-card {
    min-height: 420px;
  }
}

/* Large desktop breakpoint (lg+) */
@media (min-width: 1024px) {
  .cert-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
  }

  .levels-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
  }

  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
  }
}

/* ==========================================
   QUICK WIN: ACCESSIBILITY ENHANCEMENTS
   ========================================== */

/* Screen reader only text */
.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;
}

/* Skip to main content link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-500);
  color: white;
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 10000;
  font-weight: var(--font-weight-semibold);
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
}

/* Better focus states for accessibility */
*:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: 2px;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* PHASE 3: Advanced Micro-Interactions */

/* Smooth link interactions */
a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* Subtle scale on all interactive elements */
button:not(:disabled):active,
.btn:not(:disabled):active,
input[type="checkbox"]:active,
input[type="radio"]:active {
  transform: scale(0.96);
}

/* Ripple effect on buttons (optional enhancement) */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
  width: 300px;
  height: 300px;
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Staggered animation for lists */
.stagger-item {
  animation: fadeInStagger 0.5s ease-out backwards;
}

.stagger-item:nth-child(1) {
  animation-delay: 0.05s;
}
.stagger-item:nth-child(2) {
  animation-delay: 0.1s;
}
.stagger-item:nth-child(3) {
  animation-delay: 0.15s;
}
.stagger-item:nth-child(4) {
  animation-delay: 0.2s;
}
.stagger-item:nth-child(5) {
  animation-delay: 0.25s;
}
.stagger-item:nth-child(6) {
  animation-delay: 0.3s;
}

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

/* Hover glow effect for primary actions */
.btn-primary:hover:not(:disabled)::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-400), var(--primary-600));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
  position: relative;
  z-index: 1;
}

.btn-primary:hover:not(:disabled)::before {
  opacity: 0.6;
}

/* Touch device tap states (no hover capability) */
@media (hover: none) and (pointer: coarse) {
  .btn:active {
    transform: scale(0.95);
    opacity: 0.8;
  }

  .option:active {
    transform: scale(0.98);
    background-color: var(--light-bg);
  }

  .nav-links a:active {
    opacity: 0.7;
  }

  .cert-card:active {
    transform: translateY(-2px);
  }
}

/* Premium Page Duration Cards - Mobile First */
.duration-cards {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: var(--space-4) !important;
}

.duration-card {
  border: 2px solid #e0e0e0 !important;
  border-radius: var(--radius-lg) !important;
  padding: var(--space-4) !important;
  cursor: pointer !important;
  background: #fff !important;
  position: relative !important;
  transition: var(--transition-base) !important;
}

.duration-card.active {
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.2) !important;
}

.best-value-badge {
  position: absolute !important;
  top: -10px !important;
  right: 50% !important;
  transform: translateX(50%) !important;
  background: #28a745 !important;
  color: white !important;
  padding: var(--space-1) var(--space-3) !important;
  border-radius: var(--radius-full) !important;
  font-size: var(--font-size-tiny) !important;
  font-weight: var(--font-weight-bold) !important;
  white-space: nowrap !important;
}

/* Tablet and Desktop: 2 columns */
@media (min-width: 640px) {
  .duration-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-6) !important;
  }

  .best-value-badge {
    right: 10px !important;
    transform: none !important;
  }

  .duration-card {
    padding: var(--space-6) !important;
  }
}

/* Premium Page Mobile Enhancements */
@media (max-width: 767px) {
  /* Make premium cards full width on mobile */
  .pricing-card {
    margin: 0 !important;
  }

  /* Adjust duration selector heading */
  .duration-selector h4 {
    font-size: 1.1rem !important;
    text-align: center !important;
    margin-bottom: var(--space-4) !important;
  }

  /* Duration card content sizing */
  .duration-card > div:first-child {
    font-size: 1.25rem !important;
    text-align: center !important;
  }

  .duration-price {
    font-size: 2.5rem !important;
    text-align: center !important;
  }

  /* Center all text in duration cards */
  .duration-card > div {
    text-align: center !important;
  }

  /* Make savings indicator more prominent */
  .savings-indicator {
    font-size: 0.9rem !important;
    text-align: center !important;
  }

  /* Coupon section responsive */
  .duration-selector + div {
    margin-top: var(--space-4) !important;
  }

  /* Stack coupon input and button on very small screens */
  @media (max-width: 375px) {
    .duration-selector + div > div {
      flex-direction: column !important;
    }

    .duration-selector + div > div > input,
    .duration-selector + div > div > button {
      width: 100% !important;
    }
  }
}

/* Exam Selector Tabs - Mobile First Responsive Design */
.exam-tabs {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: var(--space-3) !important;
  margin-bottom: var(--space-6) !important;
}

.exam-tab {
  padding: var(--space-4) var(--space-5) !important;
  min-height: var(--touch-target-min) !important;
  flex: none !important;
  min-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.exam-tab .exam-name {
  font-size: 1rem !important;
  text-align: center !important;
}

.exam-tab .exam-code {
  font-size: 0.875rem !important;
}

/* Tablet: 2 columns for exam tabs */
@media (min-width: 640px) {
  .exam-tabs {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-4) !important;
  }

  .exam-tab {
    padding: 1rem 1.5rem !important;
  }
}

/* Desktop: Flexible columns based on content */
@media (min-width: 1024px) {
  .exam-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: var(--space-4) !important;
  }

  .exam-tab {
    flex: 1 !important;
    min-width: 180px !important;
  }
}

/* Exam Level Section Spacing */
.exam-level-section {
  margin-bottom: var(--space-6) !important;
}

.exam-level-title {
  font-size: 1.1rem !important;
  margin-bottom: var(--space-4) !important;
}

@media (min-width: 768px) {
  .exam-level-title {
    font-size: 1.25rem !important;
  }
}

/* Mobile Quiz Interface Enhancements */
@media (max-width: 767px) {
  /* QUICK WIN: Larger touch targets for buttons on mobile */
  .btn {
    min-height: 48px;
    padding: var(--space-4) var(--space-6);
    font-size: 1rem;
  }

  /* Sticky quiz header */
  .quiz-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background-color: white;
    margin-bottom: var(--space-4);
    padding: var(--space-4);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* More compact header on mobile */
  .quiz-header h1 {
    font-size: 1.25rem;
    margin-bottom: var(--space-1);
  }

  #page-info {
    font-size: 0.875rem;
  }

  /* QUICK WIN: Larger touch targets for navigation links */
  .nav-links a {
    min-height: 52px;
    padding: var(--space-4) var(--space-5);
  }

  /* QUICK WIN: Larger quiz option touch targets */
  .option {
    min-height: 68px;
    padding: var(--space-5) var(--space-5);
    font-size: 1rem;
  }

  /* Fixed navigation at bottom */
  .quiz-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: var(--space-4); /* QUICK WIN: More padding */
    margin-top: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: var(--z-sticky);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--space-3); /* QUICK WIN: Gap between buttons */
  }

  /* QUICK WIN: Larger quiz navigation buttons */
  .quiz-navigation .btn {
    flex: 1;
    min-height: 52px;
    font-size: 1rem;
  }

  /* Add bottom padding to quiz content to prevent overlap with fixed nav */
  .quiz-container {
    padding-bottom: 80px;
  }

  /* Adjust question cards for mobile */
  .question-card {
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
  }

  /* Compact question text */
  .question-text {
    font-size: 1rem;
    line-height: var(--line-height-relaxed);
  }

  /* Make premium upgrade prompt more compact */
  .premium-upgrade-prompt {
    padding: var(--space-4);
    margin-top: var(--space-4);
  }
}

/* Loading State Styles */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 60px 20px;
  text-align: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--gray-200);
  border-top: 4px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  margin-top: 20px;
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

/* PHASE 3: Skeleton Loading States for Better Perceived Performance */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-200) 25%,
    var(--gray-100) 50%,
    var(--gray-200) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* PHASE 3: Skeleton Certification Card */
.skeleton-cert-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid #f0f0f0;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.skeleton-cert-badge {
  width: 120px;
  height: 28px;
  border-radius: 20px;
  align-self: flex-end;
}

.skeleton-cert-level {
  width: 100px;
  height: 26px;
  border-radius: 20px;
}

.skeleton-cert-title {
  width: 80%;
  height: 32px;
  border-radius: var(--radius-md);
}

.skeleton-cert-code {
  width: 100px;
  height: 28px;
  border-radius: 6px;
}

.skeleton-cert-description {
  width: 100%;
  height: 60px;
  border-radius: var(--radius-md);
}

.skeleton-cert-stats {
  width: 100%;
  height: 120px;
  border-radius: 10px;
}

.skeleton-cert-buttons {
  display: flex;
  gap: var(--space-3);
  margin-top: auto;
}

.skeleton-cert-button {
  flex: 1;
  height: 48px;
  border-radius: var(--radius-full);
}

/* PHASE 3: Skeleton Question Card */
.skeleton-question-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.skeleton-question-number {
  width: 120px;
  height: 36px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.skeleton-question-text {
  width: 100%;
  height: 80px;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.skeleton-options {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skeleton-option {
  width: 100%;
  height: 64px;
  border-radius: var(--radius-lg);
}

/* User Menu Dropdown Styles */
.user-menu-container {
  position: relative;
  display: inline-block;
}

.user-profile-button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  background-color: rgba(255, 255, 255, 0.1);
}

.user-profile-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.user-avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  border: 2px solid #fff;
}

.user-name {
  display: none;
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  color: white;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  display: none;
  color: white;
  transition: var(--transition-base);
}

.user-profile-button:hover .dropdown-arrow {
  transform: translateY(2px);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 10001;
  overflow: hidden;
}

.user-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.user-dropdown-overlay.show {
  display: block;
  opacity: 1;
}

.dropdown-header {
  padding: 16px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #3a4a5e 100%);
  color: white;
}

.dropdown-user-info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.dropdown-email {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 4px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #2d3748 !important;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.dropdown-item svg {
  flex-shrink: 0;
  color: #666;
  transition: color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f7fafc;
  color: #1a202c !important;
}

.dropdown-item:hover svg {
  color: #1a202c;
}

.dropdown-logout {
  color: #dc3545 !important;
}

.dropdown-logout:hover {
  background-color: #f7fafc;
  color: #c82333 !important;
}

.dropdown-logout svg {
  color: #dc3545 !important;
}

.dropdown-logout:hover svg {
  color: #c82333 !important;
}

/* Desktop user profile enhancements */
@media (min-width: 768px) {
  .user-name {
    display: block;
  }

  .user-profile-button {
    padding: 4px 12px 4px 4px;
  }

  .dropdown-arrow {
    display: block;
  }

  .user-dropdown-menu {
    min-width: 240px;
  }
}

/* ============================================
   Settings Modal Styles
   ============================================ */

/* Settings Modal Container */
.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.settings-modal.show {
  display: flex;
}

/* Modal Overlay */
.settings-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Content */
.settings-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 900px;
  width: 95%;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  z-index: 1;
}

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

/* Modal Header */
.settings-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid var(--border-color);
  flex-shrink: 0;
}

.settings-modal-header h2 {
  margin: 0;
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.settings-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-close-btn:hover {
  background: #f0f0f0;
  color: #333;
}

/* Modal Body */
.settings-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
}

/* Settings Tabs */
.settings-tabs {
  flex-shrink: 0;
  width: 200px;
  background: #f8f9fa;
  padding: 1.5rem 0;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.settings-tab svg {
  flex-shrink: 0;
}

.settings-tab:hover {
  background: rgba(255, 153, 0, 0.1);
  color: var(--primary-color);
}

.settings-tab.active {
  background: white;
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

/* Tab Content */
.settings-tab-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.settings-tab-panel {
  display: none;
}

.settings-tab-panel.active {
  display: block;
}

/* Settings Sections */
.settings-section {
  margin-bottom: 2.5rem;
}

.settings-section:last-child {
  margin-bottom: 0;
}

.settings-section h3 {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.settings-section h4 {
  font-size: 1rem;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.section-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Profile Info Card */
.profile-info-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.profile-avatar-section {
  flex-shrink: 0;
}

.current-avatar-wrapper {
  position: relative;
}

.current-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.current-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-initials {
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.change-avatar-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary-color);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.change-avatar-btn:hover {
  background: #e88b00;
  transform: scale(1.1);
}

.profile-details {
  flex: 1;
}

.profile-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #dee2e6;
}

.profile-detail-row:last-child {
  border-bottom: none;
}

.profile-detail-row label {
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
}

.profile-detail-row span {
  color: var(--secondary-color);
  font-weight: 500;
}

/* Avatar Change Section */
.avatar-change-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.avatar-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.avatar-option-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.avatar-option-group label {
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.preset-avatars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.75rem;
}

.preset-avatar-option {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s ease;
}

.preset-avatar-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preset-avatar-option:hover {
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.preset-avatar-option.selected {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

.avatar-option-divider {
  text-align: center;
  position: relative;
  padding: 1rem 0;
}

.avatar-option-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.avatar-option-divider span {
  position: relative;
  background: #f8f9fa;
  padding: 0 1rem;
  color: #666;
  font-size: 0.9rem;
}

.custom-avatar-input-group {
  display: flex;
  gap: 0.75rem;
}

.custom-avatar-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
}

.custom-avatar-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.custom-avatar-preview {
  margin-top: 0.75rem;
  text-align: center;
}

.custom-avatar-preview img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.error-text {
  color: var(--danger-color);
  font-size: 0.85rem;
}

.avatar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Exam List Styles */
.exam-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exam-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.exam-card.owned {
  border-color: var(--success-color);
  background: linear-gradient(135deg, #f0fff4 0%, #e6f9ed 100%);
}

.exam-card.available:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.1);
}

.exam-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.exam-card-header h4 {
  margin: 0 0 0.5rem 0;
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.exam-code-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.owned-badge {
  background: var(--success-color);
  color: white;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.price-badge {
  background: linear-gradient(135deg, var(--primary-color) 0%, #f6b93b 100%);
  color: white;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: bold;
}

.exam-card-details {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.exam-card-actions {
  display: flex;
  gap: 0.75rem;
}

.exam-card-actions .btn {
  flex: 1;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.empty-state p {
  margin-bottom: 0.5rem;
}

.empty-state-hint {
  font-size: 0.9rem;
  color: #999;
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.stat-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: var(--transition-base);
  border: 1px solid var(--border-color);
}

/* Tablet: 2 columns */
@media (min-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Exam Progress List */
.exam-progress-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

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

.progress-card-header h4 {
  margin: 0;
  color: var(--secondary-color);
  font-size: 1rem;
}

.progress-percent {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary-color);
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #f6b93b 100%);
  transition: width 0.5s ease;
  border-radius: 10px;
}

.progress-stats {
  font-size: 0.85rem;
  color: #666;
}

/* Modal Footer */
.settings-modal-footer {
  border-top: 2px solid var(--border-color);
  padding: 1rem 2rem;
  background: #f8f9fa;
  flex-shrink: 0;
  text-align: center;
}

.settings-footer-text {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: #666;
}

.settings-footer-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.settings-footer-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.settings-footer-link:hover {
  color: #e88b00;
  text-decoration: underline;
}

.footer-separator {
  color: #ccc;
}

/* Danger Button */
.btn-danger {
  background-color: var(--danger-color);
  color: white;
  border: 2px solid transparent;
}

.btn-danger:hover {
  background-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 300px;
  z-index: 10001;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-success {
  border-left: 4px solid var(--success-color);
}

.notification-warning {
  border-left: 4px solid #ffc107;
}

.notification-info {
  border-left: 4px solid #17a2b8;
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  padding: 0;
  margin-left: auto;
}

.notification-close:hover {
  color: #333;
}

/* Desktop settings modal sizing */
@media (min-width: 768px) {
  .settings-modal-content {
    width: 90%;
    max-height: 90vh;
  }

  .settings-modal-body {
    flex-direction: column;
  }

  .settings-tabs {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
  }

  .settings-tab {
    flex-direction: column;
    text-align: center;
    padding: 0.5rem 1rem;
    gap: 0.25rem;
    font-size: 0.8rem;
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .settings-tab.active {
    border-left: none;
    border-bottom-color: var(--primary-color);
  }

  .settings-tab svg {
    width: 20px;
    height: 20px;
  }

  .settings-tab-content {
    padding: 1.5rem 1rem;
  }

  .profile-info-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exam-card-actions {
    flex-direction: column;
  }

  .preset-avatars {
    grid-template-columns: repeat(4, 1fr);
  }

  .custom-avatar-input-group {
    flex-direction: column;
  }

  .notification {
    min-width: auto;
    right: 10px;
    left: 10px;
  }
}

/* ==========================================
   QUESTION REPORTING SYSTEM
   ========================================== */

/* Report Issue Button - Three-dot menu */
.report-issue-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: transparent;
  border: none;
  color: #6c757d;
  padding: 0.25rem 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.3s ease, color 0.3s ease;
  line-height: 1;
  font-weight: bold;
}

/* Show the menu when hovering over the question card */
.question-card:hover .report-issue-btn {
  opacity: 0.6;
}

/* Full opacity when hovering directly over the button */
.report-issue-btn:hover {
  opacity: 1;
  color: #dc3545;
}

/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Content */
.modal-content {
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 95%;
  max-width: 600px;
  max-height: 95vh;
  overflow-y: auto;
  animation: slideDown var(--transition-base);
}

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

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

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--danger-color);
}

/* Modal Body */
.modal-body {
  padding: 1.5rem;
}

.modal-question-info {
  background-color: var(--light-bg);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

.question-preview {
  display: block;
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.char-counter {
  display: block;
  text-align: right;
  color: #999;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
  transition: bottom 0.3s ease;
}

.toast.show {
  bottom: 30px;
}

.toast-success {
  background-color: var(--success-color);
}

.toast-error {
  background-color: var(--danger-color);
}

.toast-info {
  background-color: #17a2b8;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-header h2 {
    font-size: 1.25rem;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .toast {
    min-width: 250px;
    max-width: 90%;
  }
}

/* ==========================================
   PHASE 3: MULTI-VENDOR PLATFORM STYLES
   CSS Custom Properties for Dynamic Theming
   ========================================== */

:root {
  /* Default theme colors (can be overridden dynamically) */
  --vendor-primary: #ff9900;
  --vendor-secondary: #232f3e;
  --vendor-accent: #ff9900;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) 0;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: var(--spacing-md);
}

.breadcrumb a {
  color: var(--vendor-primary, #4285f4);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--vendor-secondary, #34a853);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #999;
}

/* Vendors Grid */
.vendors-section {
  padding: var(--spacing-xl) 0;
}

.vendors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

/* Vendor Card */
.vendor-card {
  background: white;
  border-radius: 16px;
  padding: var(--spacing-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--card-accent, var(--vendor-primary, #4285f4));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.vendor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--vendor-primary, #4285f4));
  transition: height 0.3s ease;
}

.vendor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.vendor-card:hover::before {
  height: 6px;
}

.vendor-card-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--spacing-md);
  min-height: 80px;
}

.vendor-logo {
  max-width: 120px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.vendor-card:hover .vendor-logo {
  transform: scale(1.05);
}

.vendor-logo-placeholder {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--logo-primary, var(--vendor-primary, #4285f4)) 0%,
    var(--logo-secondary, var(--vendor-secondary, #34a853)) 100%
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 8px;
  text-align: center;
  line-height: 1.1;
}

.vendor-card:hover .vendor-logo-placeholder {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.vendor-card-body {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.vendor-card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: #1a1a2e;
  line-height: 1.4;
  /* Allow text to wrap naturally - no truncation */
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  /* Minimum 2 lines, max 3 lines for very long names */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.vendor-exam-count {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.vendor-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: var(--spacing-sm);
  min-height: 28px;
}

.category-badge {
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  color: #4b5563;
  font-weight: 500;
  text-transform: capitalize;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.vendor-card:hover .category-badge {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.vendor-card-footer {
  margin-top: auto;
  padding-top: var(--spacing-md);
}

.vendor-card-footer .btn {
  width: 100%;
  justify-content: center;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.vendor-card-footer .btn-primary {
  background: var(--card-accent, var(--primary-color, #ff9900));
  border: none;
  color: white;
}

.vendor-card-footer .btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Vendor Header */
.vendor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.vendor-info h2 {
  color: var(--vendor-primary, #4285f4);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0;
}

.category-tab {
  background: none;
  border: none;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.category-tab:hover {
  color: var(--vendor-primary, #4285f4);
}

.category-tab.active {
  color: var(--vendor-primary, #4285f4);
  border-bottom-color: var(--vendor-primary, #4285f4);
}

/* Loading States */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  color: #666;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--vendor-primary, #4285f4);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: var(--spacing-xl);
  color: #666;
}

.empty-state p {
  margin: var(--spacing-sm) 0;
}

/* PHASE 2: Enhanced Error/Success/Warning Messages */
.error-message {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: var(--spacing-lg);
  text-align: center;
  color: #856404;
  box-shadow: 0 2px 12px rgba(255, 193, 7, 0.2);
}

.error-message::before {
  content: "⚠️";
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.error-message p {
  margin: var(--spacing-sm) 0;
  font-weight: 500;
}

.error-message .btn {
  margin-top: var(--spacing-md);
}

/* PHASE 2: Success Message */
.success-message {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  text-align: center;
  border: 2px solid #28a745;
  box-shadow: 0 2px 12px rgba(40, 167, 69, 0.2);
  display: none;
}

.success-message::before {
  content: "✓";
  display: inline-block;
  width: 28px;
  height: 28px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  margin-right: 0.75rem;
  line-height: 28px;
  font-weight: bold;
  font-size: 1.2rem;
}

/* PHASE 2: Blocked/Error State */
.blocked-message {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #ef4444;
  color: #991b1b;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.2);
}

.blocked-message::before {
  content: "⚠";
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #ef4444;
}

.blocked-message h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  color: #991b1b;
}

.blocked-message .reason {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.75rem;
  border-radius: 8px;
  margin: 0.75rem 0;
  font-style: italic;
}

.blocked-message .contact-info {
  font-size: 0.9rem;
  margin-top: 1rem;
  opacity: 0.9;
}

/* Update existing cert-card to support vendor theming */
.cert-card .btn-primary {
  background: var(--vendor-primary, #ff9900);
  border-color: var(--vendor-primary, #ff9900);
}

.cert-card .btn-primary:hover {
  background: var(--vendor-secondary, #ec8900);
  border-color: var(--vendor-secondary, #ec8900);
}

/* Responsive Design for Multi-Vendor */

/* Tablet: 2 columns for vendors grid */
@media (min-width: 640px) and (max-width: 1023px) {
  .vendors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
}

/* Desktop: 3 columns for vendors grid */
@media (min-width: 1024px) {
  .vendors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }
}

/* Mobile: single column */
@media (max-width: 639px) {
  .vendors-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .vendor-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--spacing-xs);
  }

  .category-tab {
    white-space: nowrap;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .vendor-card {
    padding: var(--spacing-md);
    min-height: 280px;
  }

  .vendor-card-header {
    min-height: 60px;
  }

  .vendor-logo {
    max-width: 80px;
    max-height: 48px;
  }

  .vendor-logo-placeholder {
    width: 60px;
    height: 60px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .vendor-card-body h3 {
    font-size: 1rem;
    min-height: 2.4em;
  }

  .vendor-exam-count {
    font-size: 0.8rem;
  }

  .category-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .vendor-card-footer .btn {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
  }
}

/* Partner teaser section */
.partner-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-bottom: 3rem;
}

.partner-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-base);
}

.partner-card:hover {
  background: rgba(255, 153, 0, 0.08);
  border-color: rgba(255, 153, 0, 0.3);
  transform: translateY(-4px);
}

.partner-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 153, 0, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.partner-card-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.partner-card-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

.btn-partner-cta {
  background: #ff9900;
  color: #1a1a1a;
  font-weight: 700;
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: var(--transition-base);
}

.btn-partner-cta:hover {
  background: #e68a00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 153, 0, 0.35);
}

/* ============================================
   Onboarding Overlay
   ============================================ */

@keyframes ob-backdrop-in {
  from { opacity: 0 }
  to   { opacity: 1 }
}
@keyframes ob-backdrop-out {
  from { opacity: 1 }
  to   { opacity: 0 }
}
@keyframes ob-card-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97) }
  to   { opacity: 1; transform: translateY(0) scale(1) }
}
@keyframes ob-illus-in {
  from { opacity: 0; transform: scale(0.88) translateY(10px) }
  to   { opacity: 1; transform: scale(1) translateY(0) }
}
@keyframes ob-orbit-spin {
  from { transform: rotate(0deg) }
  to   { transform: rotate(360deg) }
}

.ob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: var(--z-onboarding);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: ob-backdrop-in 0.3s ease forwards;
}
.ob-overlay--closing {
  animation: ob-backdrop-out 0.3s ease forwards;
}
.ob-overlay--closing .ob-card {
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ob-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 540px;
  padding: 2rem 2rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: ob-card-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  overflow: hidden;
}

.ob-skip {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--gray-400);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  z-index: 2;
}
.ob-skip:hover { color: var(--gray-600); }

/* Slide wrap transitions */
.ob-slide-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ob-exit-left  { animation: ob-exit-l  0.2s ease forwards; }
.ob-exit-right { animation: ob-exit-r  0.2s ease forwards; }
.ob-enter-right { animation: ob-enter-r 0.3s ease forwards; }
.ob-enter-left  { animation: ob-enter-l 0.3s ease forwards; }

@keyframes ob-exit-l {
  to { opacity: 0; transform: translateX(-32px); }
}
@keyframes ob-exit-r {
  to { opacity: 0; transform: translateX(32px); }
}
@keyframes ob-enter-r {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes ob-enter-l {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Illustration area */
.ob-illus {
  height: 200px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: background var(--transition-base);
}
.ob-illus--dark {
  background: #1a2332;
}
.ob-illus-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ob-illus-animate {
  animation: ob-illus-in 0.35s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

/* Text content */
.ob-content { text-align: center; }
.ob-title {
  font-family: var(--font-family-heading);
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  color: var(--secondary-color);
  margin: 0 0 0.5rem;
  line-height: var(--line-height-tight);
  padding-right: 2rem;
}
.ob-body {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 0;
  line-height: var(--line-height-relaxed);
}

/* Dot navigation */
.ob-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.ob-dot {
  height: 8px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  padding: 0;
  background: var(--gray-300);
  width: 8px;
  transition: width 0.3s ease, background 0.3s ease;
  min-width: 8px;
}
.ob-dot--active {
  width: 24px;
  background: var(--primary-color);
}

/* Bottom navigation */
.ob-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.ob-nav .btn {
  min-width: 88px;
  min-height: var(--touch-target-min);
}

/* ---- Slide 1: Welcome / Orbit ---- */
.ob-illus-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
}
.ob-orbit-ring {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ob-orbit-center {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 0 8px rgba(255,153,0,0.12), 0 0 0 16px rgba(255,153,0,0.06);
}
.ob-orbit-logo {
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  letter-spacing: -0.03em;
}
.ob-orbit-vendors {
  position: absolute;
  inset: 0;
  animation: ob-orbit-spin 20s linear infinite;
}
.ob-vendor-dot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color, #ccc);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  left: 50%;
  transform:
    rotate(var(--angle))
    translateX(52px)
    rotate(calc(-1 * var(--angle)));
  margin: -16px 0 0 -16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.ob-welcome-stats {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 500;
}
.ob-stat-divider { color: var(--gray-300); }

/* ---- Slide 2: Free Practice ---- */
.ob-illus-free {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.ob-quiz-card-mock {
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  width: 220px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.ob-qcm-lock {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
}
.ob-qcm-q { margin-bottom: 0.6rem; }
.ob-shimmer {
  background: var(--gray-200);
  border-radius: var(--radius-sm);
  height: 8px;
  margin-bottom: 5px;
}
.ob-shimmer-lg { width: 90%; }
.ob-shimmer-md { width: 75%; }
.ob-shimmer-sm { width: 55%; }
.ob-shimmer-opt { flex: 1; height: 7px; margin: 0; }
.ob-shimmer-green { background: rgba(40,167,69,0.2) !important; }
.ob-qcm-options { display: flex; flex-direction: column; gap: 5px; }
.ob-qcm-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
}
.ob-qcm-opt--correct {
  border-color: rgba(40,167,69,0.4);
  background: rgba(40,167,69,0.06);
}
.ob-opt-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gray-400);
  min-width: 10px;
}
.ob-opt-label--correct { color: #28a745; }
.ob-check { flex-shrink: 0; }
.ob-free-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(40,167,69,0.1);
  color: #28a745;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ---- Slide 3: Quiz Interface ---- */
.ob-illus-quiz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem;
}
.ob-page-tabs {
  display: flex;
  gap: 5px;
}
.ob-page-tab {
  width: 36px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.65rem;
  font-weight: 600;
}
.ob-page-tab--done { background: #3b82f6; color: #fff; }
.ob-page-tab--active { background: #1d4ed8; color: #fff; outline: 2px solid #93c5fd; }
.ob-page-tab--pending { background: var(--gray-100); color: var(--gray-400); border: 1px solid var(--gray-200); }
.ob-quiz-card-mini {
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.75rem 0.9rem;
  width: 220px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.ob-qcm-bk {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
}
.ob-qicon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.ob-qlines { margin-bottom: 0.5rem; }
.ob-shimmer-q1 { width: 80%; height: 7px; }
.ob-shimmer-q2 { width: 60%; height: 7px; }
.ob-progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.4rem;
}
.ob-progress-bar {
  flex: 1;
  height: 5px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.ob-progress-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: var(--radius-full);
}
.ob-progress-label { font-size: 0.6rem; color: var(--gray-400); white-space: nowrap; }
.ob-quiz-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--gray-400);
}

/* ---- Slide 4: Exam Mode (Dark) ---- */
.ob-illus-exam {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
  width: 100%;
}
.ob-exam-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.ob-timer-svg { display: block; }
.ob-timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  margin-top: -4px;
}
.ob-timer-val {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.ob-timer-lbl {
  display: block;
  font-size: 0.52rem;
  color: #9ca3af;
  margin-top: 2px;
}
.ob-exam-divider {
  width: 1px;
  height: 100px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.ob-exam-right {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ob-nav-label {
  font-size: 0.6rem;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ob-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 18px);
  gap: 4px;
}
.ob-nav-cell {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ob-nav-cell--answered  { background: var(--primary-color); }
.ob-nav-cell--unanswered { background: #374151; }
.ob-nav-cell--current   { background: #3b82f6; outline: 2px solid #93c5fd; }
.ob-nav-cell--bookmark  { background: #1d4ed8; }
.ob-nav-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ob-nav-legend span {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.55rem;
  color: #9ca3af;
}
.ob-leg-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  display: inline-block;
}
.ob-leg-answered  { background: var(--primary-color); }
.ob-leg-unanswered { background: #374151; border: 1px solid #4b5563; }
.ob-leg-bookmark  { background: #1d4ed8; }

/* ---- Slide 5: Pricing ---- */
.ob-illus-pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
}
.ob-crown { line-height: 1; }
.ob-price-cards {
  display: flex;
  gap: 0.75rem;
}
.ob-price-card {
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  width: 108px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ob-price-card--featured {
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(245,158,11,0.2);
}
.ob-pc-badge {
  position: absolute;
  top: 7px;
  right: -14px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 2px 18px 2px 6px;
  transform: rotate(30deg);
  transform-origin: right top;
}
.ob-pc-icon { margin-bottom: 5px; display: flex; justify-content: center; }
.ob-pc-duration { font-size: 0.85rem; font-weight: 700; color: var(--secondary-color); }
.ob-pc-access { font-size: 0.58rem; color: var(--gray-400); margin-bottom: 5px; }
.ob-pc-checks { font-size: 0.58rem; color: var(--gray-500); text-align: left; display: flex; flex-direction: column; gap: 2px; }
.ob-session-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 0.68rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* ---- Slide 6: Certificate ---- */
.ob-illus-cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem;
}
.ob-cert-card {
  width: 230px;
  border: 2px solid #dee2e6;
  border-radius: var(--radius-md);
  padding: 2px;
  background: #fffbf5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}
.ob-cert-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 6px,
    #ff9900 6px,
    #ff9900 7px
  );
  pointer-events: none;
}
.ob-cert-inner {
  border: 1.5px solid #ff9900;
  border-radius: 3px;
  padding: 0.65rem 0.75rem 0.5rem;
  position: relative;
}
.ob-cert-medal { text-align: center; margin-bottom: 0.3rem; }
.ob-cert-lines { text-align: center; }
.ob-cert-line { line-height: 1.4; }
.ob-cert-title-line { font-size: 0.72rem; font-weight: 700; color: var(--secondary-color); }
.ob-cert-sub { font-size: 0.56rem; color: var(--gray-400); }
.ob-cert-name { font-size: 0.68rem; font-weight: 600; color: var(--primary-color); }
.ob-cert-exam { font-size: 0.62rem; font-weight: 600; color: var(--secondary-color); }
.ob-cert-divider { border: none; border-top: 1px solid #e9ecef; margin: 0.4rem 0 0.3rem; }
.ob-cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ob-cert-date { font-size: 0.54rem; color: var(--gray-400); }
.ob-cert-pdf svg { display: block; }
.ob-cert-actions {
  display: flex;
  gap: 0.5rem;
}
.ob-cert-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  color: var(--gray-500);
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  cursor: default;
}

/* ---- Responsive ---- */
@media (max-width: 540px) {
  .ob-overlay { padding: 0; align-items: flex-end; }
  .ob-card {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    padding: 1.5rem 1.25rem 1.25rem;
    animation: ob-card-mobile-in 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
  }
  @keyframes ob-card-mobile-in {
    from { opacity: 0; transform: translateY(60px) }
    to   { opacity: 1; transform: translateY(0) }
  }
  .ob-illus { height: 160px; }
  .ob-title { font-size: 1.05rem; }
  .ob-quiz-card-mock,
  .ob-quiz-card-mini,
  .ob-cert-card { width: 190px; }
  .ob-price-cards { gap: 0.5rem; }
  .ob-price-card { width: 90px; font-size: 0.85em; }
  .ob-illus-exam { gap: 0.75rem; padding: 0.5rem 0.75rem; }
  .ob-nav-grid { grid-template-columns: repeat(5, 15px); }
  .ob-nav-cell { width: 15px; height: 15px; }
  .ob-cert-action-btn { font-size: 0.58rem; padding: 3px 7px; }
  .ob-nav .btn { min-width: 72px; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ob-overlay,
  .ob-card,
  .ob-illus-wrap,
  .ob-illus-animate,
  .ob-exit-left,
  .ob-exit-right,
  .ob-enter-right,
  .ob-enter-left,
  .ob-orbit-vendors {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
