/* ═══════════════════════════════════════════
   JobInstant Website — Design System
   ═══════════════════════════════════════════ */
:root {
  --accent: #2D31FA;
  --accent-hover: #1E22D4;
  --accent-light: #eef0ff;
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --surface2: #F8F9FB;
  --text: #0f172a;
  --text2: #374151;
  --text-muted: #9ca3af;
  --border: #e5e7ef;
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --red-border: #fecaca;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 4px rgba(0,0,0,0.06), 0 2px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ═══ Navbar ═══ */
.navbar {
  background: var(--accent);
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(45,49,250,0.3);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}
.logo-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: white; }

/* Nav page buttons */
.btn-nav-page {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-nav-page:hover {
  background: rgba(255,255,255,0.25);
  color: white;
}
.btn-nav-page.active {
  background: white;
  color: var(--accent);
  border-color: white;
}
.btn-nav-plugin {
  background: rgba(255,255,255,0.9);
  color: var(--accent);
  border-color: rgba(255,255,255,0.9);
}
.btn-nav-plugin:hover {
  background: white;
  color: var(--accent);
  border-color: white;
}

/* ═══ Page Visibility ═══ */
.page { display: none; }
.page.active { display: block; }

/* ═══ Plugin Page ═══ */
.plugin-page-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 24px;
}
.plugin-card {
  background: white;
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.plugin-card-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}
.plugin-card-title { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.plugin-card-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.plugin-card-desc { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 24px; }
.plugin-card-features {
  text-align: left;
  max-width: 360px;
  margin: 0 auto 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.plugin-feature { font-size: 14px; color: var(--text2); display: flex; align-items: center; gap: 10px; }
.plugin-feature .feature-check { color: var(--green); font-weight: 700; }
.plugin-card-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: white;
  font-size: 15px; font-weight: 700;
  padding: 14px 32px; border-radius: 12px;
  text-decoration: none; transition: all 0.2s;
  box-shadow: 0 3px 12px rgba(45,49,250,0.3);
}
.plugin-card-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,49,250,0.35);
}

/* ═══ Hero ═══ */
.hero {
  text-align: center;
  padding: 60px 24px 40px;
  max-width: 700px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto;
}

/* ═══ Feature Slides ═══ */
.slides-section {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.slides-list { display: flex; flex-direction: column; gap: 32px; }
.slide {
  display: flex;
  background: linear-gradient(135deg, #ebedfb 0%, #f2f3fe 40%, #ebedfb 100%);
  border-radius: 16px;
  padding: 32px 36px;
  gap: 28px;
  align-items: center;
  animation: slideIn 0.4s ease;
}
.slide.active { display: flex; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.slide-left { flex: 0 0 280px; }
.slide-right { flex-shrink: 0; }
.slide-icon { font-size: 18px; color: var(--text-muted); margin-bottom: 8px; }
.slide-headline {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 10px;
}
.blue-underline {
  color: #2D31FA;
  text-decoration: underline;
  text-decoration-color: #2D31FA;
  text-underline-offset: 3px;
}
.slide-sub {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 16px;
}
.slide-btn {
  display: inline-block;
  background: #2D31FA;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 28px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(45,49,250,0.3);
  transition: all 0.15s;
}
.slide-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(45,49,250,0.4); }
.slide-btn-cta { letter-spacing: 0; font-size: 13px; padding: 10px 24px; }
.slide-dots { display: none; }
.slide-dot { display: none; }

/* ═══ Slide Mockup Cards ═══ */
.slide-mockup {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  font-size: 10px;
  width: 300px;
}

/* Slide 1: LinkedIn mockup */
.mock-linkedin-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.mock-li-logo { width: 26px; height: 26px; border-radius: 6px; background: #0a66c2; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mock-li-search { flex: 1; background: #f3f4f6; border-radius: 4px; padding: 4px 10px; font-size: 9px; color: #9ca3af; }
.mock-li-loc { font-size: 8px; color: #9ca3af; }
.mock-li-btn { background: #0a66c2; color: #fff; font-size: 8px; font-weight: 600; padding: 3px 10px; border-radius: 4px; }
.mock-filters { display: flex; gap: 4px; margin-bottom: 6px; }
.mock-filter { font-size: 7px; color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 2px 5px; border-radius: 3px; }
.mock-score-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.mock-score-btn { background: #2D31FA; color: #fff; font-size: 9px; font-weight: 700; padding: 4px 12px; border-radius: 20px; display: flex; align-items: center; gap: 3px; }
.mock-tab { font-size: 8px; color: #6b7280; border: 1px solid #e5e7eb; padding: 2px 8px; border-radius: 12px; font-weight: 600; }
.mock-tab-active { color: #fff; background: #2D31FA; border-color: #2D31FA; }
.mock-job { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #f3f4f6; }
.mock-job:last-child { border-bottom: none; }
.mock-job-best { background: rgba(16,185,129,0.04); border-radius: 6px; }
.mock-job-icon { width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.mock-job-info { flex: 1; min-width: 0; }
.mock-job-title { font-size: 10px; font-weight: 600; color: #2D31FA; }
.mock-job-co { font-size: 8px; color: #6b7280; }
.mock-job-sal { font-size: 7px; color: #9ca3af; }
.mock-score-badge { border: 1.5px solid; border-radius: 8px; padding: 4px 8px; text-align: center; position: relative; background: #fff; }
.mock-score-best { background: rgba(16,185,129,0.06); }
.mock-best-tag { position: absolute; top: -7px; right: -4px; background: #16a34a; color: #fff; font-size: 6px; font-weight: 700; padding: 1px 4px; border-radius: 3px; }
.mock-score-num { font-size: 18px; font-weight: 800; font-family: 'Space Mono', monospace; }
.mock-score-num span { font-size: 9px; }
.mock-score-label { font-size: 7px; font-weight: 700; }

/* Slide 2: Score breakdown mockup */
.mock-dim-row { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: #fafafa; border-radius: 8px; border: 1px solid #f0f0f0; margin-bottom: 5px; }
.mock-dim-expanded { border-radius: 8px 8px 0 0; margin-bottom: 0; }
.mock-dim-circle { width: 24px; height: 24px; border-radius: 12px; border: 2.5px solid; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.mock-dim-label { font-size: 9px; color: var(--text2); flex: 1; }
.mock-dim-arrow { font-size: 9px; color: #9ca3af; }
.mock-dim-detail { background: #fafafa; border: 1px solid #f0f0f0; border-top: none; border-radius: 0 0 8px 8px; padding: 6px 8px; margin-bottom: 5px; }
.mock-detail-item { font-size: 8px; padding: 4px 8px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.mock-detail-item span { font-size: 12px; font-weight: 800; }
.mock-detail-green { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; font-weight: 600; }
.mock-detail-red { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; font-weight: 600; }
.mock-detail-item-plain { padding: 3px 8px; font-size: 8px; color: var(--text2); }
.mock-detail-bar { height: 4px; background: #e5e7eb; border-radius: 2px; margin: 3px 0; }
.mock-detail-fill { height: 4px; border-radius: 2px; }

/* Slide 3: Resume mockup */
.mock-resume-section { font-size: 7px; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.5px; margin: 8px 0 3px; font-weight: 600; }
.mock-resume-text { font-size: 9px; color: var(--text2); line-height: 1.7; margin-bottom: 6px; }
.mock-hl { background: #d1fae5; padding: 1px 4px; border-radius: 3px; color: #065f46; font-weight: 600; border: 1px solid #a7f3d0; }
.mock-hl-yellow { background: #fde68a; padding: 0 3px; border-radius: 3px; font-weight: 600; }
.mock-resume-bullet { background: #fefce8; border-left: 3px solid #fbbf24; padding: 4px 8px; margin: 5px 0; font-size: 8px; color: var(--text2); }
.mock-cta-btn { background: #2D31FA; color: #fff; text-align: center; padding: 8px 0; border-radius: 8px; font-size: 10px; font-weight: 700; margin-top: 10px; }

/* Slide 4: Stats mockup */
.mock-stats { display: flex; gap: 6px; margin-bottom: 12px; }
.mock-stat { flex: 1; border: 1.5px solid #e5e7eb; border-radius: 8px; padding: 6px 4px; text-align: center; }
.mock-stat-num { font-size: 18px; font-weight: 800; color: var(--text); font-family: 'Space Mono', monospace; }
.mock-stat-num span { font-size: 9px; color: #6b7280; }
.mock-stat-label { font-size: 7px; color: #9ca3af; }
.mock-top-label { font-size: 8px; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; margin-bottom: 6px; }
.mock-top-match { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f3f4f6; }
.mock-top-circle { width: 28px; height: 28px; border-radius: 14px; background: #f0fdf4; border: 1.5px solid #bbf7d0; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 800; color: #16a34a; flex-shrink: 0; }
.mock-top-title { font-size: 10px; font-weight: 600; color: var(--text); }
.mock-top-co { font-size: 8px; color: #9ca3af; }

/* Slide responsive */
@media (max-width: 768px) {
  .slide { flex-direction: column; padding: 24px 20px; gap: 20px; }
  .slide-left { flex: none; }
  .slide-headline { font-size: 22px; }
  .slide-mockup { width: 100%; max-width: 320px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .slide-headline { font-size: 20px; }
  .slides-section { margin-bottom: 24px; }
}

/* ═══ App Container ═══ */
.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ═══ Cards ═══ */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.card-step {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.c-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text2);
}
.c-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.c-icon-green { background: var(--green-bg); color: var(--green); }
.c-icon-red { background: var(--red-bg); color: var(--red); }
.c-icon-amber { background: var(--amber-bg); color: var(--amber); }
.card-body { padding: 20px; }

/* ═══ Input Grid ═══ */
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .input-grid { grid-template-columns: 1fr; }
}
.input-card { min-height: 280px; }

/* ═══ Upload Zone ═══ */
.upload-zone {
  border: 2px dashed #c7d2fe;
  border-radius: var(--radius);
  background: #f5f6ff;
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-zone:hover, .upload-zone.drag {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 8px 24px rgba(45,49,250,0.1);
}
.zone-icon { font-size: 36px; margin-bottom: 8px; }
.zone-title { font-size: 15px; font-weight: 600; color: var(--text); }
.zone-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.zone-types {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
}
.type-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--green-border);
  background: var(--green-bg);
  color: var(--green);
}

/* Upload states */
.upload-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--green-bg);
  border-radius: var(--radius);
  border: 1px solid var(--green-border);
}
.success-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.success-info { flex: 1; }
.success-filename { font-weight: 600; font-size: 14px; display: block; }
.success-meta { font-size: 12px; color: var(--text-muted); }

.upload-error-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--red-bg);
  border-radius: var(--radius);
  border: 1px solid var(--red-border);
}
.error-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.error-msg { flex: 1; font-size: 13px; color: var(--red); }

/* Resume status badge */
.resume-status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ═══ JD Input ═══ */
.jd-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.jd-tab {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.jd-tab.active {
  background: white;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.jd-textarea {
  width: 100%;
  min-height: 160px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.15s;
  color: var(--text);
}
.jd-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,49,250,0.1);
}
.jd-textarea::placeholder { color: var(--text-muted); }
.jd-link-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  transition: border-color 0.15s;
}
.jd-link-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,49,250,0.1);
}
.jd-link-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}
.jd-link-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  line-height: 1.5;
}
.jd-link-input.error {
  border-color: var(--red);
  background: var(--red-bg);
}

/* ═══ Analyze Button ═══ */
.analyze-row {
  text-align: center;
  margin-bottom: 40px;
}
.analyze-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ═══ Buttons ═══ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  height: 44px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(45,49,250,0.28);
  transition: all 0.15s;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45,49,250,0.36);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-lg { height: 48px; font-size: 15px; padding: 0 28px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 34px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.btn-sm { height: 30px; font-size: 11px; padding: 0 10px; }

/* ═══ Loading State ═══ */
.state-loading {
  text-align: center;
  padding: 60px 24px;
  animation: up 0.3s ease;
}
.spinner {
  width: 44px; height: 44px;
  border: 3px solid #e0e7ff;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-bar {
  width: 280px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin: 16px auto 0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.progress-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Error state */
.state-error {
  text-align: center;
  padding: 60px 24px;
  animation: up 0.3s ease;
}
.error-big-icon { font-size: 40px; margin-bottom: 12px; }

/* ═══ Results ═══ */
.results-section, .rewrite-section {
  animation: up 0.4s ease;
}
.results-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.results-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.result-pills { display: flex; gap: 8px; }
.pill {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.pill-green { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.pill-amber { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.pill-red { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.pill-neutral { background: var(--surface2); color: var(--text2); border: 1px solid var(--border); }

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .results-grid { grid-template-columns: 1fr; }
}
.results-left { display: flex; flex-direction: column; gap: 16px; }
.results-right { display: flex; flex-direction: column; gap: 16px; }

/* Gauge */
.gauge-card { text-align: center; padding: 28px 20px; }
.gauge-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
}
.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gauge-num {
  font-family: 'Space Mono', monospace;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.gauge-fill {
  transition: stroke-dashoffset 1.4s cubic-bezier(.4,0,.2,1);
}
.gauge-verdict {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.gauge-summary {
  font-size: 13px;
  color: var(--text2);
  max-width: 280px;
  margin: 0 auto;
}

/* Dimension bars */
.dim-bars { padding: 14px 20px; }
.dim-bar {
  padding: 10px 0;
  border-bottom: 1px solid #f7f7f7;
}
.dim-bar:last-child { border-bottom: none; }
.dim-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.dim-bar-label { font-size: 13px; font-weight: 500; color: var(--text2); }
.dim-bar-value { font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; }
.dim-bar-track {
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
}
.dim-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
}

/* Tags list */
.tag-list { padding: 14px 20px; }
.tag-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f7f7f7;
}
.tag-item:last-child { border-bottom: none; }
.tag-label { font-size: 13px; font-weight: 600; color: var(--text); }
.tag-detail { font-size: 12px; color: var(--text-muted); }

/* Tips */
.tips-content { padding: 14px 20px; }
.tip-row {
  padding: 8px 0;
  border-bottom: 1px solid #f7f7f7;
}
.tip-row:last-child { border-bottom: none; }
.tip-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.tip-value { font-size: 13px; color: var(--text2); }

/* Rewrite CTA */
.rewrite-cta-card {
  padding: 24px;
  background: linear-gradient(135deg, #f5f6ff, #eef0ff);
  border: 1px solid #c7d2fe;
}
.rewrite-cta-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.rewrite-cta-card p { font-size: 13px; color: var(--text2); margin-bottom: 16px; }

/* ═══ Rewrite Grid ═══ */
.rewrite-grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .rewrite-grid { grid-template-columns: 1fr; }
}

/* Changes */
.changes-list { padding: 8px 0; }
.change-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
}
.change-item:last-child { border-bottom: none; }
.c-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.c-text { font-size: 13px; color: var(--text2); }
.tag { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; margin-left: 4px; }
.tag-added { background: #D1FAE5; color: #065F46; }
.tag-reordered { background: #FEF08A; color: #713F12; }

/* Resume output */
.resume-output { padding: 20px; font-size: 13px; line-height: 1.7; }
.r-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text);
  padding: 14px 0 6px;
  border-bottom: 1.5px solid var(--text);
  margin-bottom: 6px;
}
.r-name { font-size: 16px; font-weight: 700; }
.r-contact { font-size: 11px; color: var(--text-muted); }
.r-role { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 8px; }
.r-meta { font-size: 11px; color: var(--text-muted); font-family: 'Space Mono', monospace; }
.r-company { font-size: 12px; font-weight: 700; color: var(--text2); }
.r-line { font-size: 13px; color: var(--text2); }
.bul {
  display: flex;
  gap: 7px;
  padding: 2px 0;
  font-size: 13px;
  color: var(--text2);
}
.bul-dot { color: var(--text-muted); flex-shrink: 0; }
mark.added { background: #D1FAE5; color: #065F46; border-radius: 3px; padding: 0 3px; }

/* Resume actions bar */
.resume-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}
.resume-actions .btn-primary.btn-sm {
  height: 32px;
  font-size: 12px;
  padding: 0 14px;
}
.resume-actions .btn-ghost.btn-sm {
  height: 32px;
  font-size: 12px;
  padding: 0 12px;
}

/* ═══ How Section ═══ */
.how-section {
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 60px 24px;
  text-align: center;
}
.how-section h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
}
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}
.step-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--text2); }

/* ═══ Footer ═══ */
.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-inner {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-dot { margin: 0 8px; }

/* ═══ Nav Chrome Button ═══ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-chrome-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  font-size: 12px !important;
  font-weight: 700 !important;
  transition: all 0.15s;
}
.btn-chrome-nav:hover {
  background: rgba(255,255,255,0.25) !important;
  border-color: rgba(255,255,255,0.7);
}
@media (max-width: 600px) {
  .nav-inner { padding: 0 12px; }
  .nav-links { gap: 6px; }
  .nav-link-howit { display: none; }
  .btn-nav-page { font-size: 11px; padding: 5px 10px; gap: 4px; }
  .btn-nav-page svg { width: 12px; height: 12px; }
  .logo-text { font-size: 15px; }
  .plugin-iframe { height: 500px; }
  .plugin-page-inner { padding: 16px; }
}

/* ═══ Chrome Extension Section ═══ */
.extension-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}
.extension-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  background: linear-gradient(135deg, #f5f6ff 0%, #eef0ff 50%, #f5f6ff 100%);
  border: 1.5px solid #c7d2fe;
  border-radius: 20px;
  padding: 48px;
  overflow: hidden;
}
.extension-content { flex: 1; }
.extension-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(45,49,250,0.08);
  border: 1px solid rgba(45,49,250,0.15);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.extension-content h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.extension-content p {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 20px;
  max-width: 440px;
}
.extension-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.extension-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text2);
}
.feature-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.btn-chrome-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(45,49,250,0.3);
  transition: all 0.2s;
}
.btn-chrome-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,49,250,0.4);
}
.extension-visual { flex-shrink: 0; }
.ext-card {
  width: 260px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 16px;
}
.ext-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
}
.ext-logo-mini {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--accent);
  color: #FFC828;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.ext-demo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 12px;
  color: var(--text2);
  border-bottom: 1px solid #f3f4f6;
}
.ext-demo-row:last-child { border-bottom: none; }
.ext-demo-score {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  width: 38px;
  text-align: center;
  flex-shrink: 0;
}
.ext-demo-green { color: var(--green); }
.ext-demo-amber { color: var(--amber); }
@media (max-width: 768px) {
  .extension-inner { flex-direction: column; padding: 32px 24px; gap: 28px; }
  .extension-visual { align-self: center; }
}

/* ═══ Toast ═══ */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}
.toast.show { opacity: 1; }

/* ═══ Animations ═══ */
@keyframes up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
