/* ===========================================
   ResumeIQ — Design System
   =========================================== */

:root {
  /* Light theme */
  --bg: #f7f8fc;
  --bg-elev: #ffffff;
  --bg-soft: #f1f3f9;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --text-muted: #5b6479;
  --text-soft: #8b93a7;

  --brand-1: #6366f1;   /* indigo */
  --brand-2: #8b5cf6;   /* violet */
  --brand-3: #3b82f6;   /* blue */
  --brand-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #3b82f6 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.12), rgba(59,130,246,0.12));

  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;
  --info:    #0ea5e9;

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 6px 24px rgba(15,23,42,0.08);
  --shadow-lg: 0 20px 50px rgba(15,23,42,0.12);
  --shadow-glow: 0 10px 40px rgba(99,102,241,0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

[data-theme="dark"] {
  --bg: #0a0b14;
  --bg-elev: #11131f;
  --bg-soft: #161826;
  --surface: rgba(22, 24, 38, 0.6);
  --surface-strong: rgba(22, 24, 38, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f1f3f9;
  --text-muted: #a3a9bd;
  --text-soft: #6b7390;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.5);
  --shadow-glow: 0 10px 40px rgba(99,102,241,0.4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(99,102,241,0.08), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(139,92,246,0.08), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(59,130,246,0.06), transparent 50%);
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 0% 0%, rgba(99,102,241,0.18), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(139,92,246,0.15), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(59,130,246,0.10), transparent 50%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; }
h3 { font-size: 1.25rem; }
p { color: var(--text-muted); line-height: 1.6; margin: 0; }

.text-gradient {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Layout ============ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ============ Navbar ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow-glow);
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand-grad);
  color: white;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(99,102,241,0.4); }
.btn-secondary {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-soft); }
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 8px 14px; font-size: 0.875rem; border-radius: 10px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* ============ Cards ============ */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}
.card-glass {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* ============ Badges ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--text-muted);
}
.badge-success { background: rgba(16,185,129,0.12); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.12); color: var(--warning); }
.badge-danger  { background: rgba(239,68,68,0.12); color: var(--danger); }
.badge-info    { background: rgba(14,165,233,0.12); color: var(--info); }
.badge-brand   { background: var(--brand-grad-soft); color: var(--brand-1); }

/* ============ Inputs ============ */
.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand-1);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}
.textarea { min-height: 120px; resize: vertical; font-family: var(--font-sans); }
.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.input-hint {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 6px;
}

/* ============ Theme Toggle ============ */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}
.theme-toggle:hover { color: var(--text); background: var(--bg-elev); }

/* ============ Avatar ============ */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}
.avatar-lg { width: 56px; height: 56px; font-size: 1.125rem; }

/* ============ Progress ============ */
.progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--brand-grad);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.875rem;
}

/* ============ Grid utilities ============ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ============ Animations ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.fade-up { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fade-in { animation: fadeIn 0.5s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.float { animation: float 4s ease-in-out infinite; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-grad-soft);
  color: var(--brand-1);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(99,102,241,0.2);
  margin-bottom: 24px;
}
.hero h1 { margin-bottom: 20px; }
.hero p.lead {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}
.hero-orb-1 { width: 400px; height: 400px; background: #6366f1; top: -100px; left: -100px; }
.hero-orb-2 { width: 500px; height: 500px; background: #8b5cf6; top: -150px; right: -150px; }

/* ============ Feature grid ============ */
.feature-card {
  padding: 28px;
  text-align: left;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-1);
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.125rem; }
.feature-card p { font-size: 0.92rem; }

/* ============ Sidebar Layout ============ */
.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-section { margin-top: 24px; }
.sidebar-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  padding: 0 12px;
  margin-bottom: 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.15s;
  margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--bg-soft); color: var(--text); }
.sidebar-link.active {
  background: var(--brand-grad-soft);
  color: var(--brand-1);
  font-weight: 600;
}
.sidebar-link i { width: 18px; text-align: center; }
.main-content { padding: 32px 40px; overflow-x: hidden; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.page-title h1 { font-size: 1.75rem; margin-bottom: 4px; }
.page-title p { font-size: 0.95rem; }

/* ============ Score Gauge ============ */
.gauge-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}
.gauge-svg { transform: rotate(-90deg); }
.gauge-track { stroke: var(--bg-soft); }
.gauge-bar { stroke: url(#gaugeGrad); transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1); }
.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gauge-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.gauge-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ============ Stat Card ============ */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}
.stat-card .stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text);
}
.stat-card .stat-delta { font-size: 0.8rem; font-weight: 600; }
.stat-delta.up { color: var(--success); }
.stat-delta.down { color: var(--danger); }

/* ============ Drop zone ============ */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 56px 24px;
  text-align: center;
  background: var(--bg-elev);
  transition: all 0.2s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--brand-1);
  background: var(--brand-grad-soft);
}
.dropzone-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--brand-grad);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-glow);
}

/* ============ Tabs ============ */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tab {
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand-1); border-bottom-color: var(--brand-1); }

/* ============ Pricing ============ */
.pricing-card {
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border: 2px solid var(--brand-1);
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-elev)) padding-box,
              var(--brand-grad) border-box;
  box-shadow: var(--shadow-glow);
}
.pricing-tag {
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-grad);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
}
.pricing-features { list-style: none; padding: 0; margin: 20px 0; }
.pricing-features li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.pricing-features li i { color: var(--success); margin-top: 4px; }

/* ============ Toast ============ */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  animation: fadeUp 0.3s ease;
}
.toast i { color: var(--brand-1); }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }

/* ============ Modal ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; animation: fadeIn 0.2s ease; }
.modal {
  background: var(--bg-elev);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.3s ease;
}
.modal-header {
  padding: 24px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-body { padding: 20px 28px 28px; }

/* ============ Loading shimmer ============ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-soft), var(--bg-elev), var(--bg-soft));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-col h4 { font-size: 0.92rem; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 4px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.85rem;
}

/* ============ Mobile Menu Toggle ============ */
.mobile-toggle { display: none; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    z-index: 150;
    width: 260px;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { left: 0; }
  .mobile-toggle {
    display: inline-flex;
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text);
  }
  .main-content { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 40px; }
  .section { padding: 56px 0; }
}

/* radar / chart containers */
.chart-box { position: relative; height: 320px; }
.chart-box-sm { position: relative; height: 220px; }

/* List items used in results */
.list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: all 0.15s;
}
.list-item:hover { border-color: var(--border-strong); background: var(--bg-elev); }
.list-item + .list-item { margin-top: 10px; }
.list-item-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.list-item-icon.green { background: rgba(16,185,129,0.15); color: var(--success); }
.list-item-icon.amber { background: rgba(245,158,11,0.15); color: var(--warning); }
.list-item-icon.red   { background: rgba(239,68,68,0.15); color: var(--danger); }
.list-item-icon.blue  { background: var(--brand-grad-soft); color: var(--brand-1); }

.list-item h4 { font-size: 0.92rem; margin-bottom: 4px; font-family: var(--font-sans); }
.list-item p { font-size: 0.85rem; }

/* Keyword chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
  margin: 4px 4px 0 0;
}
.chip.matched { background: rgba(16,185,129,0.12); color: var(--success); border-color: rgba(16,185,129,0.2); }
.chip.missing { background: rgba(239,68,68,0.10); color: var(--danger); border-color: rgba(239,68,68,0.2); }

/* Centered auth */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-side {
  background: var(--brand-grad);
  color: white;
  padding: 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-side::before, .auth-side::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.auth-side::before { width: 300px; height: 300px; background: rgba(255,255,255,0.2); top: -50px; right: -80px; }
.auth-side::after { width: 250px; height: 250px; background: rgba(255,255,255,0.15); bottom: -50px; left: -50px; }
.auth-side > * { position: relative; z-index: 1; }
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form { width: 100%; max-width: 420px; }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}

/* Onboarding stepper */
.stepper { display: flex; align-items: center; gap: 8px; }
.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  color: var(--text-muted);
}
.step-dot.active { background: var(--brand-grad); color: white; box-shadow: var(--shadow-glow); }
.step-dot.done { background: var(--success); color: white; }
.step-line { flex: 1; height: 2px; background: var(--bg-soft); border-radius: 2px; }
.step-line.done { background: var(--success); }

/* Section header chip */
.section-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-grad-soft);
  color: var(--brand-1);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
