/* ResumeMatch - Complete Application Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0a0a0a;
  --paper: #fafaf9;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #dbeafe;
  --accent-bg: #eff6ff;
  --muted: #71717a;
  --border: #e4e4e7;
  --surface: #f4f4f5;
  --green: #16a34a;
  --green-light: #dcfce7;
  --red: #dc2626;
  --red-light: #fef2f2;
  --yellow: #ca8a04;
  --yellow-light: #fefce8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

.space { font-family: 'Space Grotesk', sans-serif; }

/* ============ LAYOUT ============ */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============ NAV ============ */
nav {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: rgba(250, 250, 249, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.logo span { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--surface); border-color: #d4d4d8; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

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

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn-ghost:hover { color: var(--ink); background: var(--surface); }

.btn-danger {
  color: var(--red);
  border-color: #fecaca;
}
.btn-danger:hover { background: var(--red-light); }

/* ============ FORMS ============ */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-input::placeholder { color: #a1a1aa; }

.form-error {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 0.25rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.alert-error {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid #fecaca;
}
.alert-success {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid #bbf7d0;
}

/* ============ CARDS ============ */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ============ AUTH PAGES ============ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--surface);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.auth-card .logo {
  font-size: 1.5rem;
  text-align: center;
  display: block;
  margin-bottom: 0.5rem;
}

.auth-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.25rem;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.auth-card .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
  font-size: 0.95rem;
}

.auth-card .auth-switch {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.auth-card .auth-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}
.auth-card .auth-switch a:hover {
  text-decoration: underline;
}

/* ============ LANDING PAGE ============ */
.landing-hero {
  padding: 6rem 1.5rem 4rem;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}
.hero-badge svg { flex-shrink: 0; }

.landing-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.landing-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-sub br { display: none; }

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero-cta {
  font-size: 1.05rem !important;
  padding: 0.85rem 2rem !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease, box-shadow 0.2s ease !important;
}
.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
}
.hero-note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Trust Bar */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  margin-bottom: 4rem;
}
.trust-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }
.trust-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

/* Pain Points */
.pain-section {
  max-width: 900px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  text-align: center;
}
.pain-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.pain-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
  transition: all var(--transition);
}
.pain-card:hover {
  border-color: #d4d4d8;
  box-shadow: var(--shadow);
}
.pain-emoji {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.pain-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
}
.pain-cta {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 0.5rem;
}

/* Demo Card */
.demo {
  max-width: 900px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}
.demo-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.demo-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}
.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.demo-dot:nth-child(1) { background: #ef4444; }
.demo-dot:nth-child(2) { background: #f59e0b; }
.demo-dot:nth-child(3) { background: #22c55e; }
.demo-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
}
.demo-col h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.demo-col-after h3 {
  color: var(--green);
}
.demo-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-top: 1rem;
}
.demo-arrow-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  letter-spacing: 0.02em;
}
.demo-arrow svg { width: 24px; height: 24px; color: var(--accent); }
.demo-arrow span {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bullet {
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--surface);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.bullet:last-child { border: none; }
.bullet-icon { flex-shrink: 0; margin-top: 2px; }
.bullet-old { color: var(--muted); }
.bullet-new { color: var(--ink); font-weight: 500; }
.highlight-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.2rem;
  vertical-align: middle;
}

/* Stats */
.stats {
  max-width: 900px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.stat-card {
  text-align: center;
  padding: 2rem 1.25rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.stat-card:hover {
  box-shadow: var(--shadow);
}
.stat-card-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.stat-card-accent .stat-number { color: white; }
.stat-card-accent .stat-number span { color: rgba(255,255,255,0.7); }
.stat-card-accent .stat-label { color: rgba(255,255,255,0.85); }
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-number span { color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

/* Steps */
.how {
  max-width: 900px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}
.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  line-height: 1.15;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step {
  padding: 1.75rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.step:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow);
}
.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.step p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* Comparison Table */
.compare-section {
  max-width: 900px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
  white-space: nowrap;
}
.compare-table td:first-child {
  font-weight: 500;
  color: var(--ink);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-highlight {
  background: var(--accent-bg) !important;
  color: var(--accent) !important;
  font-weight: 600 !important;
}
.compare-table thead th.compare-highlight {
  background: var(--accent) !important;
  color: white !important;
}
.compare-yes { color: var(--green) !important; }
.compare-no { color: var(--muted); }
.compare-mid { color: var(--yellow); }

/* Pricing */
.pricing-section {
  max-width: 800px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}
.pricing-card-pro {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.pricing-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.pricing-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}
.pricing-period {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.75rem;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  padding: 0.4rem 0;
  color: var(--ink);
}
.pricing-features li svg { flex-shrink: 0; }

/* FAQ */
.faq-section {
  max-width: 700px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item[open] {
  box-shadow: var(--shadow);
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--muted);
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  content: '\2212';
  color: var(--accent);
}
.faq-item[open] summary {
  color: var(--accent);
}
.faq-item p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Final CTA */
.final-cta {
  max-width: 700px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}
.final-cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.final-cta h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.final-cta p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Footer */
footer {
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: auto;
}
footer a { color: var(--accent); text-decoration: none; }

/* ============ DASHBOARD ============ */
.dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-mini {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.stat-mini .stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.stat-mini .stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============ UPLOAD ZONE ============ */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: white;
}
.upload-zone:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.upload-zone.dragging {
  border-color: var(--accent);
  background: var(--accent-light);
}
.upload-zone .upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--muted);
}
.upload-zone h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.upload-zone p { font-size: 0.85rem; color: var(--muted); }
.upload-zone input[type="file"] { display: none; }

/* ============ RESUME LIST ============ */
.resume-list { display: flex; flex-direction: column; gap: 0.75rem; }

.resume-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.resume-item:hover { border-color: #d4d4d8; box-shadow: var(--shadow-sm); }

.resume-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.resume-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.resume-item-info h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.resume-item-info p {
  font-size: 0.78rem;
  color: var(--muted);
}
.resume-item-actions {
  display: flex;
  gap: 0.5rem;
}

/* ============ TAILORING FLOW ============ */
.tailor-section {
  max-width: 700px;
  margin: 0 auto;
}
.tailor-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.tailor-section .subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.resume-select {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.resume-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: white;
}
.resume-option:hover { border-color: #d4d4d8; }
.resume-option.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.resume-option .radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.resume-option.selected .radio {
  border-color: var(--accent);
}
.resume-option.selected .radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.resume-option-info h4 { font-size: 0.9rem; font-weight: 500; }
.resume-option-info p { font-size: 0.78rem; color: var(--muted); }

/* ============ PROCESSING STATE ============ */
.processing {
  text-align: center;
  padding: 3rem 2rem;
}
.processing .spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.25rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.processing p { color: var(--muted); font-size: 0.9rem; }
.processing .step-indicator {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-top: 1rem;
}

/* ============ RESULT VIEW ============ */
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.result-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.match-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
}
.match-badge.high { background: var(--green-light); color: var(--green); }
.match-badge.medium { background: var(--yellow-light); color: var(--yellow); }
.match-badge.low { background: var(--red-light); color: var(--red); }

.changes-list {
  margin-bottom: 1.5rem;
}
.changes-list h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.change-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  margin: 0.15rem;
}

.resume-preview {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  font-size: 0.9rem;
  line-height: 1.7;
  max-height: 600px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.resume-preview h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.resume-preview .contact-line {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

.resume-preview .section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 1.25rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.resume-preview .exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.15rem;
}
.resume-preview .exp-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.resume-preview .exp-dates {
  font-size: 0.8rem;
  color: var(--muted);
}
.resume-preview .exp-company {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}
.resume-preview ul {
  list-style: none;
  padding: 0;
}
.resume-preview ul li {
  padding: 0.15rem 0;
  padding-left: 1em;
  position: relative;
  font-size: 0.85rem;
}
.resume-preview ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--muted);
}
.resume-preview .skills-list {
  font-size: 0.85rem;
  color: var(--ink);
}

/* ============ TAILORED LIST ============ */
.tailored-list { display: flex; flex-direction: column; gap: 0.75rem; }

.tailored-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}
.tailored-item:hover { border-color: #d4d4d8; box-shadow: var(--shadow-sm); }

.tailored-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.tailored-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.tailored-item-info { min-width: 0; }
.tailored-item-info h4 {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tailored-item-info p {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ EMPTY STATES ============ */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--muted);
}
.empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}
.empty-state h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.empty-state p { font-size: 0.85rem; margin-bottom: 1rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .landing-hero { padding: 4rem 1.25rem 3rem; }
  .landing-hero h1 { font-size: 2.4rem; }
  .hero-sub { font-size: 1rem; }
  .hero-sub br { display: none; }

  .trust-inner { gap: 0.75rem; }
  .trust-divider { display: none; }
  .trust-item { font-size: 0.75rem; }

  .pain-grid { grid-template-columns: 1fr; }

  .demo-body { grid-template-columns: 1fr; gap: 1rem; }
  .demo-arrow { flex-direction: row; padding: 0; justify-content: center; }
  .demo-arrow svg { transform: rotate(90deg); }

  .stats, .stats-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .compare-table { font-size: 0.78rem; }
  .compare-table th,
  .compare-table td { padding: 0.65rem 0.6rem; }

  .pricing-grid { grid-template-columns: 1fr; }

  .final-cta { padding: 3rem 1.25rem; }

  .dashboard { padding: 1.25rem; }
  .dashboard-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  nav { padding: 0.75rem 1.25rem; }
  .auth-card { padding: 1.75rem; }
  .result-header { flex-direction: column; align-items: flex-start; }

  .pricing-grid-3 { grid-template-columns: 1fr; }
  .upgrade-banner { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .modal-box { padding: 1.5rem; margin: 1rem; }
  .upgrade-option { width: 100%; }
}

/* ============ MODALS ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.18s ease;
}
.modal-overlay-dark { background: rgba(0,0,0,0.7); }

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

.modal-box {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: slideUp 0.2s ease;
}
.modal-box-sm { max-width: 380px; }

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

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 50%;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--surface); color: var(--ink); }

.modal-icon { font-size: 2.25rem; text-align: center; margin-bottom: 0.75rem; }
.modal-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; text-align: center; margin-bottom: 0.5rem; color: var(--ink); }
.modal-sub { color: var(--muted); font-size: 0.9rem; text-align: center; margin-bottom: 1.25rem; line-height: 1.5; }

.modal-plan-featured {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
}
.modal-plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.modal-plan-name { font-weight: 600; color: var(--ink); font-size: 1rem; }
.modal-plan-price { font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; margin: 0.25rem 0; }
.modal-plan-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.modal-plan-features { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.modal-plan-features li { font-size: 0.85rem; color: var(--ink); padding: 0.2rem 0; }

.modal-dismiss {
  width: 100%;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.83rem;
  cursor: pointer;
  padding: 0.5rem;
  text-align: center;
  text-decoration: underline;
  text-decoration-style: dotted;
}
.modal-dismiss:hover { color: var(--ink); }

/* ============ NAV BADGES ============ */
.nav-pro-badge {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.03em;
}
.nav-free-badge {
  background: var(--green-light);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
}

/* ============ UPGRADE BANNER ============ */
.upgrade-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ============ USAGE HINT ============ */
.usage-hint {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: 0.6rem 0.875rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.usage-hint.pro-hint { color: var(--green); background: var(--green-light); border-color: #bbf7d0; }

/* ============ ALERT SUCCESS ============ */
.alert-success {
  background: var(--green-light);
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

/* ============ 3-COLUMN PRICING ============ */
.pricing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ============ SETTINGS PAGE ============ */
.settings-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ============ ADMIN ============ */
.admin-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.settings-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--surface);
  font-size: 0.9rem;
}
.settings-row:last-of-type { border-bottom: none; }
.settings-label {
  color: var(--muted);
  font-size: 0.83rem;
  min-width: 120px;
  flex-shrink: 0;
}

.sub-badge-active {
  background: var(--green-light);
  color: #166534;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}
.sub-badge-free {
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
}

/* ============ UPGRADE OPTIONS (SETTINGS) ============ */
.upgrade-option {
  flex: 1;
  min-width: 160px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: white;
}
.upgrade-option-featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  position: relative;
}
.upgrade-option-badge {
  position: absolute;
  top: -10px;
  left: 1rem;
  background: var(--accent);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.upgrade-option-name { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.upgrade-option-price { font-size: 1.6rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.upgrade-option-price span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.upgrade-option-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

/* ============ ADMIN TABLES ============ */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th { text-align: left; padding: 0.6rem 0.75rem; background: var(--surface); border-bottom: 1px solid var(--border); font-weight: 600; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-table td { padding: 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface); }
