/**
 * PanelPrep Design System
 * Based on UX Requirements 1.1
 */

:root {
  /* Primary - Trust (Blue) */
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;
  --blue-900: #1E3A8A;

  /* Accent - Action (Orange) */
  --orange-50: #FFF7ED;
  --orange-100: #FFEDD5;
  --orange-200: #FED7AA;
  --orange-300: #FDBA74;
  --orange-400: #FB923C;
  --orange-500: #F97316;
  --orange-600: #EA580C;
  --orange-700: #C2410C;
  --orange-800: #9A3412;

  /* Success (Green) */
  --green-50: #F0FDF4;
  --green-100: #DCFCE7;
  --green-200: #BBF7D0;
  --green-300: #86EFAC;
  --green-400: #34D399;
  --green-500: #10B981;
  --green-600: #059669;
  --green-700: #047857;

  /* Warning (Amber) */
  --amber-50: #FFFBEB;
  --amber-100: #FEF3C7;
  --amber-200: #FDE68A;
  --amber-300: #FCD34D;
  --amber-400: #FBBF24;
  --amber-500: #F59E0B;
  --amber-600: #D97706;

  /* Error (Red) */
  --red-50: #FEF2F2;
  --red-100: #FEE2E2;
  --red-200: #FECACA;
  --red-300: #FCA5A5;
  --red-400: #F87171;
  --red-500: #EF4444;
  --red-600: #DC2626;

  /* Premium (Purple) */
  --purple-50: #FAF5FF;
  --purple-100: #F3E8FF;
  --purple-200: #E9D5FF;
  --purple-400: #C084FC;
  --purple-500: #8B5CF6;
  --purple-600: #7C3AED;

  /* Neutrals (Slate) */
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* Semantic colors */
  --primary: var(--blue-600);
  --primary-hover: var(--blue-700);
  --accent: var(--orange-500);
  --accent-hover: var(--orange-600);
  --success: var(--green-500);
  --warning: var(--amber-500);
  --error: var(--red-500);
  --premium: var(--purple-500);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

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

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

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;

  /* Extended: Typography scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Extended: Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Extended: Component tokens */
  --shadow-cta: 0 4px 14px 0 rgba(249, 115, 22, 0.4);
  --card-padding-mobile: 1rem;
  --card-padding-desktop: 1.5rem;
  --card-radius: var(--radius-lg);
  --button-radius: var(--radius-md);
  --input-radius: var(--radius-md);
  --page-max-width: 1200px;
  --content-max-width: 800px;
}

/* Desktop typography overrides */
@media (min-width: 768px) {
  :root {
    --text-3xl: 2.25rem;
    --text-4xl: 3rem;
  }
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background-color: var(--slate-50);
  line-height: 1.6;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-error { color: var(--error) !important; }
.text-premium { color: var(--premium) !important; }
.text-muted { color: var(--slate-500) !important; }

/* ============================================
   BUTTONS
   ============================================ */

/* Primary CTA Button */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Accent CTA Button */
.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta);
}

/* Secondary/Outline Button */
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background-color: transparent;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Large Button */
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-elevated {
  box-shadow: var(--shadow-lg);
}

/* ============================================
   FORMS
   ============================================ */

.form-control {
  border-color: var(--slate-300);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

.form-control.is-invalid {
  border-color: var(--error);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-label {
  font-weight: 500;
  color: var(--slate-700);
  margin-bottom: 0.5rem;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
}

.badge-success {
  background-color: var(--green-100);
  color: var(--green-700);
}

.badge-warning {
  background-color: var(--amber-100);
  color: var(--amber-700);
}

.badge-error {
  background-color: var(--red-100);
  color: var(--red-700);
}

.badge-premium {
  background-color: var(--purple-100);
  color: var(--purple-600);
}

.badge-pro {
  background: linear-gradient(135deg, var(--purple-500), var(--blue-500));
  color: white;
  font-weight: 600;
}

/* ============================================
   SCORE RING
   ============================================ */

.score-ring-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}

.score-ring {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.score-ring-bg {
  fill: none;
  stroke: var(--slate-200);
  stroke-width: 12;
}

.score-ring-progress {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out, stroke 0.5s ease;
}

.score-ring-progress.score-low { stroke: var(--error); }
.score-ring-progress.score-medium { stroke: var(--warning); }
.score-ring-progress.score-high { stroke: var(--success); }

.score-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-ring-value {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.score-ring-label {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

/* ============================================
   PROGRESS STEPS
   ============================================ */

.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  transition: all var(--transition-normal);
}

.progress-step.active {
  border-color: var(--primary);
  background: var(--blue-50);
}

.progress-step.completed {
  border-color: var(--success);
  background: var(--green-50);
}

.progress-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.progress-step.pending .progress-step-icon {
  background: var(--slate-200);
  color: var(--slate-500);
}

.progress-step.active .progress-step-icon {
  background: var(--primary);
  color: white;
}

.progress-step.completed .progress-step-icon {
  background: var(--success);
  color: white;
}

.progress-step-text {
  font-weight: 500;
  color: var(--slate-700);
}

.progress-step.active .progress-step-text {
  color: var(--primary);
}

.progress-step.completed .progress-step-text {
  color: var(--success);
}

/* Loading spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.toast.toast-error {
  border-left-color: var(--error);
}

.toast.toast-warning {
  border-left-color: var(--warning);
}

.toast.toast-info {
  border-left-color: var(--primary);
}

.toast-close {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.toast-close:hover {
  opacity: 1;
}

/* ============================================
   SKELETON LOADERS
   ============================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--slate-200) 25%,
    var(--slate-100) 50%,
    var(--slate-200) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-text-sm {
  height: 0.75rem;
}

.skeleton-text-lg {
  height: 1.5rem;
}

.skeleton-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-button {
  height: 44px;
  width: 120px;
}

/* ============================================
   SOCIAL PROOF
   ============================================ */

.social-proof-bar {
  background: var(--slate-800);
  color: white;
  padding: 0.75rem 0;
  font-size: 0.875rem;
}

.social-proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-proof-number {
  font-weight: 700;
  color: var(--accent);
}

/* ============================================
   BLURRED PREVIEW
   ============================================ */

.blurred-preview {
  position: relative;
  overflow: hidden;
}

.blurred-preview-content {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.blurred-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.9) 60%,
    white 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2rem;
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--slate-200);
  display: none;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  color: var(--slate-500);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color var(--transition-fast);
  min-width: 60px;
}

.mobile-nav a.active,
.mobile-nav a:hover {
  color: var(--primary);
}

.mobile-nav a span {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 767px) {
  .mobile-nav {
    display: flex;
  }

  body {
    padding-bottom: 70px;
  }

  /* Typography - smaller headings on mobile */
  .display-4 { font-size: 1.75rem; }
  .display-5 { font-size: 1.5rem; }
  h1, .h1 { font-size: 1.5rem; }
  h2, .h2 { font-size: 1.25rem; }
  .lead { font-size: 1rem; }

  /* Score ring - scale down */
  .score-ring-container {
    width: 140px !important;
    height: 140px !important;
  }

  .score-ring-value {
    font-size: 2.25rem;
  }

  /* Score comparison arrow - rotate for vertical flow */
  .improvement-arrow svg {
    transform: rotate(90deg);
  }

  /* Buttons - full width on mobile */
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    width: 100%;
  }

  /* Ensure minimum touch targets */
  .btn, .form-control, .form-select, .accordion-button,
  .nav-link, .dropdown-item {
    min-height: 44px;
  }

  /* Cards - reduce padding */
  .card-body {
    padding: 1rem;
  }

  /* Toast - full width on mobile */
  .toast-container {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  /* Social proof bar - smaller text, wrap */
  .social-proof-bar {
    font-size: 0.75rem;
  }

  .social-proof-item {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  /* Blurred preview - adjust height */
  .blurred-preview {
    max-height: 200px !important;
  }

  /* Footer hidden on mobile (nav bar takes over) */
  footer { display: none !important; }

  /* Section spacing tighter on mobile */
  section.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Hero section adjustments */
  .hero-section .display-4 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  /* Pricing cards - ensure proper stacking */
  .accordion-button {
    padding: 1rem;
    font-size: 0.95rem;
  }
}

/* Small phones (<475px) */
@media (max-width: 474px) {
  .display-4 { font-size: 1.5rem; }
  .display-5 { font-size: 1.25rem; }

  .score-ring-container {
    width: 120px !important;
    height: 120px !important;
  }

  .score-ring-value {
    font-size: 2rem;
  }

  .score-ring-label {
    font-size: 0.75rem;
  }

  /* Even tighter padding on very small screens */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .card-body {
    padding: 0.875rem;
  }

  /* Badge font size */
  .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

/* Touch target sizing (44px minimum) */
.touch-target {
  min-width: 44px;
  min-height: 44px;
}

/* Navbar logo */
.navbar-brand img {
  height: 32px;
  width: auto;
}
.brand-text-logo {
  height: 28px;
  width: auto;
}
@media (max-width: 767.98px) {
  .navbar-brand img { height: 28px; }
  .brand-text-logo { height: 22px; }
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 0.5s ease;
}

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

.animate-slide-up {
  animation: slideUp 0.5s ease;
}

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

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Hide scrollbar but allow scroll */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ============================================
   PLAN TABS (Pricing Switcher)
   ============================================ */

.plan-tabs {
  display: flex;
  background: var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.5rem;
}

.plan-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
  color: var(--slate-600);
  border: none;
}

.plan-tab:hover {
  color: var(--slate-800);
}

.plan-tab.active {
  background: white;
  color: var(--slate-800);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   KEYWORDS LOCKED (Blurred Gate)
   ============================================ */

.keywords-locked {
  position: relative;
  overflow: hidden;
}

.keywords-locked > *:not(.keywords-locked-overlay) {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

.keywords-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
  z-index: 1;
  font-weight: 600;
  color: var(--slate-700);
  gap: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1px dashed var(--slate-300);
  transition: all var(--transition-fast);
}

.keywords-locked-overlay:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   BADGE PULSE
   ============================================ */

.badge-pulse {
  position: relative;
}

.badge-pulse::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: var(--green-500);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* ============================================
   TRUST ROW
   ============================================ */

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  font-size: var(--text-sm);
  color: var(--slate-500);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

/* ============================================
   BOTTOM SHEET (Mobile)
   ============================================ */

.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.bottom-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1051;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  max-height: 85vh;
  overflow-y: auto;
  padding: 0 1.5rem 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.bottom-sheet.active {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--slate-300);
  border-radius: var(--radius-full);
  margin: 0.75rem auto 1rem;
}

/* ============================================
   SEGMENTED CONTROL
   ============================================ */

.segmented-control {
  display: inline-flex;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.segment {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
  color: var(--slate-600);
  border: none;
  white-space: nowrap;
}

.segment:hover {
  color: var(--slate-800);
}

.segment.active {
  background: white;
  color: var(--slate-800);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   CUSTOM ACCORDION
   ============================================ */

.custom-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid var(--slate-200);
}

.custom-accordion .accordion-trigger {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  background: none;
  border: none;
  font-weight: 500;
  color: var(--slate-800);
  cursor: pointer;
  text-align: left;
}

.custom-accordion .accordion-trigger:hover {
  color: var(--primary);
}

.custom-accordion .accordion-chevron {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.custom-accordion .accordion-trigger[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}

.custom-accordion .accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
  padding: 0;
}

.custom-accordion .accordion-content.open {
  max-height: 500px;
  padding-bottom: 1rem;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FILE UPLOAD ZONE (Mobile-aware)
   ============================================ */

.file-upload-zone {
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
  border-color: var(--primary);
  background: var(--blue-50);
}

.file-upload-zone .drag-text { display: block; }
.file-upload-zone .tap-text { display: none; }

@media (max-width: 767px) {
  .file-upload-zone {
    padding: 1.25rem;
  }
  .file-upload-zone .drag-text { display: none; }
  .file-upload-zone .tap-text { display: block; }
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */

.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--slate-200);
}

.testimonial-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--green-100);
  color: var(--green-700);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* ============================================
   FIXED BOTTOM (iPhone safe area)
   ============================================ */

.fixed-bottom-safe {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 1040;
}

/* ============================================
   TRIAL BANNER
   ============================================ */

.trial-banner {
  background: var(--blue-50);
  border-bottom: 1px solid var(--blue-200);
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 40px;
}

.trial-banner a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.trial-banner a:hover {
  text-decoration: underline;
}

.trial-banner .close-btn {
  background: none;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.25rem;
  line-height: 1;
}

/* ============================================
   PERFORMANCE BARS (Interview Summary)
   ============================================ */

.performance-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.performance-bar-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--slate-600);
  min-width: 110px;
}

.performance-bar-track {
  flex: 1;
  height: 8px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.performance-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s ease-out;
}

.performance-bar-fill.score-low { background: var(--error); }
.performance-bar-fill.score-medium { background: var(--warning); }
.performance-bar-fill.score-high { background: var(--success); }

.performance-bar-value {
  font-size: var(--text-sm);
  font-weight: 600;
  min-width: 36px;
  text-align: right;
}

/* ============================================
   PRICING CAROUSEL (Mobile)
   ============================================ */

@media (max-width: 767px) {
  .pricing-cards-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0 0.5rem 1rem;
    scrollbar-width: none;
  }

  .pricing-cards-container::-webkit-scrollbar {
    display: none;
  }

  .pricing-cards-container > .pricing-card {
    flex: 0 0 calc(100vw - 48px);
    scroll-snap-align: center;
  }

  .pricing-dot-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }

  .pricing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--slate-300);
    transition: background var(--transition-fast);
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .pricing-dot.active {
    background: var(--primary);
  }
}

@media (min-width: 768px) {
  .pricing-dot-indicators {
    display: none;
  }
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */

.countdown-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--amber-700);
}

.countdown-timer.expired {
  background: var(--red-50);
  border-color: var(--red-200);
  color: var(--red-600);
}

/* ============================================
   MOBILE NAV ENHANCEMENT
   ============================================ */

@media (max-width: 991px) {
  /* Prevent Bootstrap flex-grow:1 from stretching the collapse */
  .navbar-collapse {
    flex-grow: 0 !important;
    flex-basis: 100% !important;
    max-height: 70vh;
    overflow-y: auto;
  }

  .navbar-collapse .navbar-nav .nav-link {
    padding: 0.625rem 0;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--slate-100);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .navbar-collapse .nav-mobile-cta {
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--slate-200);
  }

  .navbar-collapse .nav-mobile-cta .btn {
    width: 100%;
    min-height: 44px;
    font-size: var(--text-base);
  }
}

/* Desktop navbar dropdown fix */
@media (min-width: 992px) {
  .navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    width: auto;
    min-width: 220px;
  }
  .navbar .dropdown-item {
    min-height: auto;
    padding: 0.5rem 1rem;
  }
}

/* ============================================
   ONBOARDING STEPS
   ============================================ */

.onboarding-step {
  display: none;
}

.onboarding-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slate-300);
  transition: all var(--transition-fast);
  border: none;
  padding: 0;
}

.onboarding-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: var(--radius-full);
}

.goal-card {
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.goal-card:hover {
  border-color: var(--primary);
  background: var(--blue-50);
}

.goal-card.selected {
  border-color: var(--primary);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ============================================
   EMAIL CAPTURE GATE
   ============================================ */

.email-gate {
  animation: slideUp 0.5s ease;
  text-align: center;
  padding: 1.5rem;
}

.email-gate input[type="email"] {
  font-size: 16px; /* Prevent iOS zoom */
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-300);
  width: 100%;
  max-width: 360px;
  transition: border-color var(--transition-fast);
}

.email-gate input[type="email"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

/* ============================================
   NEXT STEPS CARD
   ============================================ */

.next-steps-card {
  background: linear-gradient(135deg, var(--blue-50), var(--orange-50));
  border: none;
  border-radius: var(--radius-lg);
}

.next-steps-card .card-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

@media (max-width: 767px) {
  .next-steps-card .card-body {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   HERO SCORE ANIMATION
   ============================================ */

.hero-score-demo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
}

.hero-score-before,
.hero-score-after {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hero-score-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--slate-400);
  letter-spacing: 0.05em;
}
.hero-score-value {
  font-weight: 700;
  font-size: 1.25rem;
  transition: opacity 0.3s ease;
}
.hero-score-before .hero-score-value { color: var(--danger); }
.hero-score-after .hero-score-value { color: var(--success); }
.hero-score-arrow {
  color: var(--slate-400);
  font-size: 1.25rem;
}

.hero-score-bar {
  width: 120px;
  height: 6px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.hero-score-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--danger), var(--success));
  transition: width 1.5s ease-out;
}

/* ============================================
   AUTHORITY BADGE
   ============================================ */
.authority-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 1rem;
  background: var(--amber-50);
  color: var(--amber-600);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  border: 1px solid var(--amber-200);
}

/* ============================================
   FEATURE BULLETS (Levelsio style)
   ============================================ */
.feature-bullets {
  max-width: 520px;
  margin: 0 auto;
}
.feature-bullet {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--slate-700);
  padding: 0.5rem 0;
  text-align: center;
}
@media (max-width: 767.98px) {
  .feature-bullet {
    font-size: var(--text-base);
    text-align: left;
    padding: 0.375rem 0;
  }
}

/* ============================================
   TRUSTED BY ROW
   ============================================ */
.trusted-by-row {
  background: var(--slate-50);
}
.trusted-company {
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  color: var(--slate-400);
  opacity: 0.45;
}

/* ============================================
   COST COMPARISON TABLE (Pricing)
   ============================================ */
.cost-comparison {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cost-comparison th,
.cost-comparison td {
  padding: 0.75rem 1rem;
  text-align: center;
  vertical-align: middle;
}
.cost-comparison .highlight-col {
  background: var(--orange-50);
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.cost-comparison thead th {
  background: var(--slate-50);
  font-weight: 600;
  font-size: var(--text-sm);
}

/* ============================================
   PRICING FEATURED CARD
   ============================================ */
.pricing-featured {
  background: var(--orange-50) !important;
}
@media (min-width: 768px) {
  .pricing-featured {
    transform: scale(1.03);
  }
}

/* ============================================
   PIPELINE METRICS ROW (Dashboard)
   ============================================ */
.pipeline-row {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.pipeline-row::-webkit-scrollbar { display: none; }
.pipeline-step {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  position: relative;
  min-width: 100px;
}
.pipeline-step::after {
  content: '\2192';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-300);
  font-size: 1rem;
}
.pipeline-step:last-child::after { display: none; }
.pipeline-count {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--slate-800);
}
.pipeline-label {
  font-size: var(--text-xs);
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   SCORE TREND (before → after)
   ============================================ */
.score-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}
.score-trend-before {
  color: var(--slate-400);
}
.score-trend-arrow {
  color: var(--slate-300);
  font-size: 0.875rem;
}

/* ============================================
   PROGRESS CHART (Interview Summary)
   ============================================ */
.progress-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding: 0 0.5rem;
}
.progress-chart-bar {
  flex: 1;
  min-width: 32px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height 0.6s ease-out;
  position: relative;
}
.progress-chart-bar.current {
  box-shadow: 0 0 0 2px var(--accent);
}
.progress-chart-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  color: var(--slate-500);
  white-space: nowrap;
}
.progress-chart-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* ============================================
   DASHBOARD — Stats Bar
   ============================================ */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.5rem 1rem;
  background: var(--slate-50, #f8fafc);
  border-radius: var(--radius-md, 8px);
  font-size: 0.875rem;
  flex-wrap: wrap;
}
.stats-bar .stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--slate-600, #475569);
}
.stats-bar .stat-value {
  font-weight: 700;
  color: var(--slate-900, #0f172a);
}
.stats-bar .stat-alert {
  color: var(--red-500, #ef4444);
}

/* Readiness Target Bar (mini) */
.readiness-target-bar {
  display: inline-block;
  width: 48px;
  height: 6px;
  background: var(--slate-200, #e2e8f0);
  border-radius: 3px;
  position: relative;
  vertical-align: middle;
  margin-left: 4px;
}
.readiness-target-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--blue-500, #3b82f6);
  transition: width 0.3s ease;
}
.readiness-target-marker {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 10px;
  background: var(--slate-400, #94a3b8);
  border-radius: 1px;
}

/* ============================================
   DASHBOARD — Status Badges
   ============================================ */
.status-badge {
  padding: 0.2em 0.6em;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.7rem;
  line-height: 1;
}
.status-active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-600, #2563eb);
}
.status-applied {
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}
.status-interviewing {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber-600, #d97706);
}
.status-offered {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green-600, #059669);
}
.status-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-500, #ef4444);
}
.status-archived {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

/* ============================================
   DASHBOARD — Card Grid
   ============================================ */
.job-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.job-card {
  background: #fff;
  border-radius: var(--radius-xl, 16px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 1.75rem;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}
.job-card--dimmed {
  opacity: 0.6;
}

/* Card Header */
.job-card-header {
  margin-bottom: 1rem;
}
.job-card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.job-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
}
.job-card-meta {
  font-size: 0.8rem;
  color: var(--slate-500, #64748b);
  margin-top: 0.25rem;
}

/* Menu Button */
.job-card-menu {
  flex-shrink: 0;
}
.job-card-menu-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  color: var(--slate-400, #94a3b8);
  cursor: pointer;
  border-radius: var(--radius-sm, 4px);
  transition: background 0.15s, color 0.15s;
}
.job-card-menu-btn:hover {
  background: var(--slate-100, #f1f5f9);
  color: var(--slate-700, #334155);
}

/* Card Progress Zone */
.job-card-progress {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--slate-100, #f1f5f9);
  border-bottom: 1px solid var(--slate-100, #f1f5f9);
}

/* Readiness Ring */
.readiness-ring {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.readiness-ring svg {
  display: block;
}
.ring-progress {
  transition: stroke-dashoffset 0.8s ease;
}
.ring-green { stroke: var(--green-500, #22c55e); }
.ring-amber { stroke: var(--amber-500, #f59e0b); }
.ring-red { stroke: var(--red-500, #ef4444); }

.readiness-ring-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.1;
}
.readiness-ring-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900, #0f172a);
}
.readiness-ring-text {
  display: block;
  font-size: 0.65rem;
  color: var(--slate-500, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Scores */
.job-card-scores {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
}
.score-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.score-label {
  font-size: 0.75rem;
  color: var(--slate-500, #64748b);
  min-width: 58px;
}
.score-value {
  font-size: 0.875rem;
}
.score-before {
  color: var(--slate-400, #94a3b8);
  text-decoration: line-through;
  font-size: 0.8rem;
}
.score-arrow {
  color: var(--slate-400, #94a3b8);
  font-size: 0.75rem;
  margin: 0 0.15rem;
}
.score-after {
  font-weight: 700;
  color: var(--green-600, #16a34a);
}

/* Interview Score Block */
.interview-score-block {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--blue-50, #eff6ff);
  border-radius: var(--radius-sm, 4px);
  padding: 0.2rem 0.5rem;
  text-decoration: none;
  transition: background 0.15s;
}
.interview-score-block:hover {
  background: var(--blue-100, #dbeafe);
}

/* Card Actions Zone */
.job-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.ready-badge {
  text-align: center;
  padding: 0.5rem;
  background: var(--green-50, #f0fdf4);
  color: var(--green-700, #15803d);
  border-radius: var(--radius-md, 8px);
  font-weight: 600;
  font-size: 0.875rem;
}
.secondary-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.secondary-link {
  font-size: 0.75rem;
  color: var(--slate-500, #64748b);
  text-decoration: none;
}
.secondary-link:hover {
  color: var(--blue-600, #2563eb);
  text-decoration: underline;
}

/* ============================================
   DASHBOARD — Alert variants for banner
   ============================================ */
.alert-info {
  background-color: var(--blue-50, #eff6ff);
  border-color: var(--blue-200, #bfdbfe);
  color: var(--blue-800, #1e40af);
}
.alert-accent {
  background-color: var(--orange-50, #fff7ed);
  border-color: var(--orange-200, #fed7aa);
  color: var(--orange-800, #9a3412);
}
.btn-info {
  background-color: var(--blue-500, #3b82f6);
  border-color: var(--blue-500, #3b82f6);
  color: #fff;
}
.btn-accent {
  background-color: var(--orange-500, #f97316);
  border-color: var(--orange-500, #f97316);
  color: #fff;
}
.btn-warning {
  color: #fff;
}

/* ============================================
   DASHBOARD — Search hide helper
   ============================================ */
.d-none-search {
  display: none !important;
}

/* ============================================
   DASHBOARD — Mobile Responsive
   ============================================ */
@media (max-width: 768px) {
  .dashboard-content {
    padding-bottom: 90px;
  }
  .stats-bar {
    gap: 0.75rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
  .readiness-target-bar {
    display: none;
  }
  .job-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .job-card {
    padding: 1.25rem;
  }
  .job-card-progress {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .job-card-scores {
    align-items: center;
    width: 100%;
  }
  .score-item {
    justify-content: center;
  }
}

/* ============================================
   INTERVIEW LAUNCHER
   ============================================ */

.interview-launcher {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg) 4rem;
  background: var(--slate-50);
  min-height: calc(100vh - 60px);
}

/* Continue banner */
.continue-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
  color: var(--slate-800);
  animation: fadeInDown 0.3s ease;
}
.continue-banner .banner-emoji { font-size: 1.15rem; }
.continue-banner .session-name { font-weight: 600; }
.continue-banner .resume-link {
  margin-left: auto;
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.35rem 0.85rem;
  background: var(--blue-100);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  transition: background var(--transition-fast);
}
.continue-banner .resume-link:hover {
  background: var(--blue-200);
  text-decoration: none;
}

/* Launcher card */
.launcher-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
  padding: 2.75rem 3.5rem 2.5rem;
  animation: fadeInUp 0.4s ease;
}

.launcher-card .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--slate-800);
}
.launcher-card .card-subtitle {
  text-align: center;
  font-size: 0.88rem;
  color: var(--slate-400);
  margin-top: -1.25rem;
  margin-bottom: 2rem;
}

/* Form sections */
.launcher-card .form-section {
  margin-bottom: 1.5rem;
}
.launcher-card .form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

/* URL Input with integrated Extract button */
.url-input-group {
  display: flex;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.url-input-group:focus-within {
  border-color: var(--blue-300);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.url-input-group input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  color: var(--slate-800);
  background: white;
  min-width: 0;
}
.url-input-group input::placeholder { color: var(--slate-400); }

.url-extract-btn {
  background: var(--blue-800);
  color: white;
  border: none;
  padding: 0 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
}
.url-extract-btn:hover { background: var(--blue-900); }
.url-extract-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Extract status */
.extract-status {
  display: none;
  align-items: center;
  gap: var(--space-xs);
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--slate-400);
}
.extract-status.visible { display: flex; }

/* "or" divider */
.form-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  font-size: 0.78rem;
  color: var(--slate-400);
  font-weight: 500;
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--slate-200);
}

/* Custom select dropdown */
.launcher-card .form-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  color: var(--slate-800);
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.launcher-card .form-select:focus {
  outline: none;
  border-color: var(--blue-300);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

/* Job context hint */
.job-context {
  display: none;
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-top: 0.35rem;
}
.job-context.visible { display: block; }

/* Manual entry collapsible */
.manual-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-500);
  cursor: pointer;
  padding: 0.45rem 0.85rem;
  user-select: none;
  border: 1.5px dashed var(--slate-300);
  border-radius: var(--radius-md);
  background: var(--slate-50);
  transition: all var(--transition-fast);
}
.manual-toggle:hover {
  color: var(--blue-700);
  border-color: var(--blue-300);
  background: var(--blue-50);
}
.manual-toggle.open {
  border-style: solid;
  border-color: var(--blue-300);
  color: var(--blue-700);
  background: var(--blue-50);
}
.manual-toggle .arrow {
  font-size: 0.65rem;
  transition: transform 0.2s;
}
.manual-toggle.open .arrow { transform: rotate(90deg); }

.manual-fields {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  opacity: 0;
}
.manual-fields.open {
  max-height: 300px;
  opacity: 1;
  margin-top: 0.75rem;
}
.manual-fields input,
.manual-fields textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  color: var(--slate-800);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: white;
}
.manual-fields input:focus,
.manual-fields textarea:focus {
  outline: none;
  border-color: var(--blue-300);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.manual-fields input::placeholder,
.manual-fields textarea::placeholder { color: var(--slate-400); }
.manual-fields input { margin-bottom: 0.6rem; }
.manual-fields textarea { resize: vertical; min-height: 80px; }
.manual-fields .form-text { font-size: 0.75rem; color: var(--slate-400); margin-top: 0.25rem; }

/* Popular role chips */
.popular-role-btn {
  border-radius: var(--radius-full) !important;
}
.popular-role-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Interview type toggle */
.type-section {
  margin: 1.75rem 0 1.5rem;
}
.type-section .type-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 0.5rem;
  display: block;
}
.type-section .type-hint {
  font-size: 0.78rem;
  color: var(--slate-400);
  margin-top: 0.4rem;
  transition: opacity 0.2s;
}
.type-toggle {
  display: inline-flex;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--slate-50);
}
.type-toggle input[type="radio"] { display: none; }
.type-toggle label {
  padding: 0.5rem 1.3rem;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--slate-500);
  transition: all 0.2s;
  border-right: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.type-toggle label:last-of-type { border-right: none; }
.type-toggle label:hover { background: var(--slate-100); color: var(--slate-800); }
.type-toggle input[type="radio"]:checked + label {
  background: var(--blue-800);
  color: white;
  font-weight: 600;
}
.type-emoji { font-size: 0.9rem; }

/* Options collapsed section */
.options-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate-400);
  cursor: pointer;
  padding: 0.35rem 0.7rem;
  user-select: none;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--slate-50);
  transition: all var(--transition-fast);
  margin-bottom: 0.25rem;
}
.options-toggle:hover {
  color: var(--slate-600);
  border-color: var(--slate-300);
}
.options-toggle .arrow {
  font-size: 0.65rem;
  transition: transform 0.2s;
}
.options-toggle.open .arrow { transform: rotate(90deg); }

.options-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  opacity: 0;
}
.options-panel.open {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.5rem;
}
.options-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem var(--space-md);
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
}
.option-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.84rem;
}
.option-row .label-text { color: var(--slate-500); font-weight: 500; }

/* Question count small toggle */
.q-toggle {
  display: inline-flex;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.q-toggle input[type="radio"] { display: none; }
.q-toggle label {
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--slate-500);
  border-right: 1px solid var(--slate-200);
  transition: all var(--transition-fast);
}
.q-toggle label:last-of-type { border-right: none; }
.q-toggle input[type="radio"]:checked + label {
  background: var(--blue-800);
  color: white;
  font-weight: 600;
}

/* Conversational mode checkbox */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--slate-500);
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-800);
  cursor: pointer;
}
.pro-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--blue-800);
  background: var(--blue-100);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 0.25rem;
}

/* Active path feedback */
.form-section.path-active .url-input-group {
  border-color: var(--blue-300);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}
.form-section.path-active .form-select {
  border-color: var(--blue-300);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}
.form-section .path-check {
  display: none;
  color: var(--green-500);
  font-size: 0.85rem;
  margin-left: 0.35rem;
}
.form-section.path-active .path-check { display: inline; }

/* Step hint under start button */
.start-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--slate-400);
  margin-top: 0.6rem;
  transition: opacity 0.2s;
}

/* Start button */
.btn-start {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--orange-500);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  margin-top: 1.75rem;
  transition: all 0.2s;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}
.btn-start:hover {
  background: var(--orange-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}
.btn-start:active { transform: translateY(0); }
.btn-start:disabled {
  background: var(--slate-300);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Past sessions link */
.sessions-link {
  text-align: center;
  margin-top: 1.25rem;
}
.sessions-link a {
  font-size: 0.82rem;
  color: var(--slate-400);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.sessions-link a:hover { color: var(--slate-500); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Interview launcher mobile */
@media (max-width: 640px) {
  .interview-launcher { padding: 1.25rem var(--space-md) 6rem; }
  .launcher-card { padding: 1.75rem 1.25rem 1.5rem; }
  .launcher-card .card-title { font-size: 1.25rem; margin-bottom: 1.5rem; }
  .launcher-card .card-subtitle { font-size: 0.82rem; margin-bottom: 1.5rem; }
  .type-toggle label { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
  .url-extract-btn { padding: 0 1rem; font-size: 0.78rem; }
  .manual-toggle { font-size: 0.82rem; padding: 0.4rem 0.75rem; }
}
