/* ⚠️ MOBILE-FIRST: Base rules = mobile. Use @media(min-width: X) for desktop. Do NOT use @media(max-width) for layout.
   ==========================================
   WIZARD - Progressive Disclosure Styles
   ========================================== */

/* --- Layout --- */
.wizard-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--pad) 60px;
}

@media(min-width: 640px) {
  .wizard-inner {
    padding: 30px var(--pad) 60px;
  }
}

.wizard-step {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* --- Progress Bar --- */
.progress-bar-container {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-light);
  padding: 10px var(--pad);
  position: sticky;
  top: var(--topbar-height);
  z-index: 90;
}

@media(min-width: 640px) {
  .progress-bar-container {
    padding: 12px var(--pad);
  }
}

.progress-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile: show short step labels, hide longer text */
.progress-step {
  font-size: 0.6rem;
  font-weight: 700;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.3s;
  flex-shrink: 0;
}

@media(min-width: 480px) {
  .progress-step {
    font-size: 0.7rem;
    padding: 4px 8px;
    letter-spacing: 0.05em;
  }
}

/* On very small screens, show only current and adjacent steps */
@media(max-width: 479px) {
  .progress-step {
    display: none;
  }
  .progress-step.active {
    display: block;
    color: var(--brand-navy);
    background: rgba(29, 45, 68, 0.06);
  }
  .progress-step.active::before {
    content: "Step " attr(data-step) ": ";
    font-weight: 400;
    color: var(--text-muted);
  }
  /* Show adjacent steps */
  .progress-step.active ~ .progress-step,
  .progress-step.active + .progress-step {
    display: block;
  }
  /* Limit to showing max 3 visible steps by hiding the rest */
  .progress-step.active ~ .progress-step ~ .progress-step ~ .progress-step {
    display: none;
  }
}

/* Hide progress bar text completely on very small screens (≤360px) to save space */
@media(max-width: 360px) {
  .progress-bar-inner {
    display: none;
  }
  .progress-bar-track {
    margin-top: 0;
  }
}

.progress-step.active {
  color: var(--brand-navy);
  background: rgba(29, 45, 68, 0.06);
}

.progress-step.done {
  color: var(--success-green);
}

.progress-bar-track {
  max-width: var(--max);
  margin: 0 auto;
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-gold));
  border-radius: 2px;
  transition: width 0.5s ease;
  width: 0%;
}

/* --- Form Rows --- */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

@media(min-width: 640px) {
  .form-row {
    flex-direction: row;
    gap: 20px;
  }
}

.form-group {
  flex: 1;
  min-width: 0;
}

@media(min-width: 640px) {
  .form-group {
    min-width: 250px;
  }
}

.legal-checkbox {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.legal-checkbox label {
  cursor: pointer;
  user-select: none;
}

.legal-checkbox a {
  color: var(--brand-gold);
  font-weight: 600;
}

/* --- Section Header --- */
.section-header {
  margin-bottom: 20px;
}

.section-header h3 {
  color: var(--brand-navy);
  font-family: var(--sans);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

@media(min-width: 640px) {
  .section-header h3 {
    font-size: 1.3rem;
  }
}

.section-step-badge {
  display: inline-block;
  background: var(--brand-navy);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* --- Split Screen Layout --- */
.split-section-ui {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

@media(min-width: 768px) {
  .split-section-ui {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.split-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
}

@media(min-width: 640px) {
  .split-panel {
    padding: 20px;
  }
}

.split-panel h4 {
  color: var(--brand-navy);
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.raw-text-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-main);
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: monospace;
}

/* --- Watermarked Preview --- */
.preview-blurred {
  position: relative;
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.preview-blurred::after {
  content: '🔒 PREMIUM';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(29, 45, 68, 0.15);
  letter-spacing: 0.1em;
  pointer-events: none;
  filter: none;
}

.preview-watermark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(175, 144, 91, 0.03) 20px,
    rgba(175, 144, 91, 0.03) 40px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.preview-watermark span {
  background: rgba(29, 45, 68, 0.85);
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* --- Metrics Input --- */
.metrics-input-area {
  margin-top: 16px;
}

.metrics-input-area textarea {
  min-height: 80px;
}

.split-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.split-actions button {
  flex: 1;
  min-width: 140px;
  min-height: 44px;
}

/* --- AI Critique Box --- */
.critique-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-left: 4px solid var(--error-red);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.critique-box h5 {
  color: #991B1B;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.critique-box p {
  font-size: 0.85rem;
  color: #7F1D1D;
  line-height: 1.6;
}

/* --- Refined Bullet List --- */
.bullet-list {
  list-style: none;
  padding: 0;
}

.bullet-list li {
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #F8FAFC;
  border-left: 3px solid var(--brand-gold);
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-main);
}

/* --- Score Display (duplicate in sections.css, kept for backward compat) --- */
.score-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

@media(min-width: 640px) {
  .score-row {
    flex-direction: row;
    align-items: center;
  }
}

.score-circle {
  width: 100px;
  height: 100px;
  border: 3px solid var(--brand-gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-value {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: var(--brand-gold);
}

.score-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--brand-gold);
  margin-top: 2px;
}

.metrics-container {
  flex: 1;
  min-width: 200px;
  width: 100%;
}

.metric-row {
  margin-bottom: 12px;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.metric-bar-bg {
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

.metric-reason {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.score-explanation {
  background: #F8FAFC;
  padding: 14px;
  border-radius: 8px;
  border-left: 3px solid var(--brand-gold);
  font-size: 0.85rem;
  line-height: 1.6;
  flex: 1;
}

/* --- Skills UI --- */
.skill-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  min-height: 44px;
}

.skill-tag.selected {
  background: var(--brand-navy);
  color: white;
  border-color: var(--brand-navy);
}

.skill-tag:hover {
  border-color: var(--brand-gold);
}

.skill-tag .remove {
  color: #94A3B8;
  font-weight: 700;
  margin-left: 4px;
}

.skill-tag.selected .remove {
  color: rgba(255,255,255,0.7);
}

/* --- Skill Categories --- */
.skills-container {
  max-width: 600px;
  margin: 0 auto;
}

.skills-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--bg-cream);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.skills-intro {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.skill-category-section {
  margin-bottom: 16px;
  padding: 12px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.skill-category-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-navy);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.skill-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-ai-badge {
  font-size: 0.65rem;
  background: var(--brand-gold);
  color: white;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  font-weight: 700;
}

.skills-add-area {
  margin: 16px 0;
  padding: 12px;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

/* Loading spinner */
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #E2E8F0;
  border-top-color: var(--brand-navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Summary Section --- */
.summary-feedback-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

#summary-edit-text {
  font-size: 0.95rem;
  line-height: 1.8;
  resize: vertical;
}

.summary-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 0;
}

.btn-back:hover {
  color: var(--brand-navy);
}

.summary-angle-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-gold);
  background: #FFF8E1;
  padding: 4px 12px;
  border-radius: 12px;
}

/* 3 Summary Options Grid */
.summary-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media(min-width: 768px) {
  .summary-options-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.summary-option-card {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.summary-option-card:hover {
  border-color: var(--brand-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.summary-option-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.summary-option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.summary-option-preview {
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.summary-option-btn {
  width: 100%;
  padding: 10px;
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
  transition: all 0.2s;
}

.summary-option-card:hover .summary-option-btn {
  background: var(--brand-gold);
  color: white;
  border-color: var(--brand-gold);
}

/* --- Persona Selector --- */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}

@media(min-width: 640px) {
  .persona-grid {
    gap: 12px;
  }
}

@media(min-width: 768px) {
  .persona-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.persona-card {
  background: var(--card-bg);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media(min-width: 640px) {
  .persona-card {
    padding: 16px;
  }
}

.persona-card:hover {
  border-color: var(--brand-gold);
  transform: translateY(-2px);
}

.persona-card.selected {
  border-color: var(--brand-navy);
  background: #F8FAFC;
  box-shadow: 0 4px 12px rgba(29, 45, 68, 0.1);
}

.persona-card .emoji {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

@media(min-width: 640px) {
  .persona-card .emoji {
    font-size: 2rem;
    margin-bottom: 8px;
  }
}

.persona-card .title {
  font-weight: 700;
  color: var(--brand-navy);
  font-size: 0.85rem;
  margin-bottom: 2px;
}

@media(min-width: 640px) {
  .persona-card .title {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }
}

.persona-card .subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

@media(min-width: 640px) {
  .persona-card .subtitle {
    font-size: 0.78rem;
  }
}

/* --- Success Header --- */
.success-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media(min-width: 640px) {
  .success-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.success-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

@media(min-width: 640px) {
  .success-actions {
    width: auto;
  }
}

.success-actions button {
  flex: 1;
  min-height: 44px;
}

@media(min-width: 640px) {
  .success-actions button {
    width: auto;
  }
}

/* --- CV Document Preview --- */
.cv-document {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media(min-width: 640px) {
  .cv-document {
    padding: 40px;
  }
}

.cv-document h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.cv-document .cv-section {
  margin-bottom: 20px;
}

.cv-document .cv-section h3 {
  font-size: 1rem;
  color: var(--brand-navy);
  border-bottom: 2px solid var(--brand-gold);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

/* --- Modal Overlay --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(29, 45, 68, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

@media(min-width: 640px) {
  .modal-overlay {
    padding: 20px;
  }
}

.modal-content {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
}

@media(min-width: 640px) {
  .modal-content {
    padding: 25px;
    max-height: 80vh;
  }
}

.modal-content h3 {
  color: var(--brand-navy);
  margin-top: 0;
  margin-bottom: 15px;
}

.modal-body {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Extracted sections tags --- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-navy);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  min-height: 44px;
}

.section-tag .count {
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
}

/* --- Modal Close Button --- */
.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s;
  min-height: 44px;
  min-width: 44px;
  line-height: 1;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(0,0,0,0.05);
  color: var(--brand-navy);
}

/* --- Inline Error Alert (replaces browser alert()) --- */
.alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-left: 4px solid var(--error-red);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.alert-error-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.alert-error-body strong {
  display: block;
  font-size: 0.88rem;
  color: #991B1B;
  margin-bottom: 4px;
}

.alert-error-body p {
  font-size: 0.82rem;
  color: #7F1D1D;
  line-height: 1.5;
  margin: 0;
}

.alert-error-actions {
  margin-top: 0;
  text-align: center;
}

.alert-error-actions button {
  background: var(--brand-navy);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 120px;
  transition: all 0.15s;
}

.alert-error-actions button:hover {
  background: var(--brand-navy-light);
}

/* --- Interview Prep --- */
.interview-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.interview-card h5 {
  color: var(--brand-navy);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.interview-card .context {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.interview-card .tip {
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* --- Lock & Continue button style --- */
.btn-lock {
  background: var(--success-green);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-lock:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* --- Work Section Blur Teaser (Paywall Hook) --- */
.work-complete-results {
  position: relative;
}

.work-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(1px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  border-radius: 8px;
  pointer-events: auto;
}

.work-blur-overlay p {
  font-weight: 700;
  color: var(--brand-navy);
  font-size: 0.95rem;
  text-align: center;
  padding: 0 16px;
  margin: 0;
}

/* --- Section Before/After Comparison --- */
.section-comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}

@media(min-width: 768px) {
  .section-comparison {
    grid-template-columns: 1fr 1fr;
  }
}

.comparison-card {
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.5;
}

.comparison-before {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.comparison-after {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-left: 4px solid var(--success-green);
}

.comparison-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid;
}

.comparison-before .comparison-label {
  color: #64748B;
  border-color: #E2E8F0;
}

.comparison-after .comparison-label {
  color: var(--success-green);
  border-color: #BBF7D0;
}

.comparison-content {
  color: var(--text-dark);
}

.comparison-before .comparison-content {
  opacity: 0.7;
}

.comparison-header {
  font-weight: 600;
  color: var(--brand-navy);
  margin-top: 8px;
  margin-bottom: 2px;
}

.comparison-header:first-child {
  margin-top: 0;
}

.comparison-bullet {
  padding: 2px 0 2px 14px;
  position: relative;
}

.comparison-bullet::before {
  content: '•';
  position: absolute;
  left: 0;
  color: inherit;
}

.comparison-before .comparison-bullet::before {
  color: #94A3B8;
}

.comparison-after .comparison-bullet::before {
  color: var(--success-green);
}

.comparison-subheader {
  font-weight: 600;
  color: var(--brand-navy);
  margin-top: 10px;
  margin-bottom: 4px;
}

/* --- Audit Skeleton (Step 1 Loading) --- */
.audit-skeleton {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.audit-skeleton-score {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

@media(min-width: 640px) {
  .audit-skeleton-score {
    flex-direction: row;
    align-items: center;
  }
}

.audit-skeleton-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.audit-skeleton-metrics {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audit-skeleton-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audit-skeleton-card {
  border-radius: 10px;
  padding: 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.audit-skeleton-card--red {
  border-left: 4px solid #FECACA;
}

.audit-skeleton-card--gold {
  border-left: 4px solid #AF905B;
}

.audit-skeleton-card--green {
  border-left: 4px solid #BBF7D0;
}

.audit-skeleton-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audit-skeleton-pills .skeleton-pill {
  width: 80px;
  height: 28px;
  border-radius: 20px;
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.audit-skeleton-cta {
  padding: 4px 0;
}

.audit-skeleton .skeleton-bar {
  border-radius: 4px;
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

/* ==========================================
   CV PREVIEW (Step 7)
   ========================================== */
.cv-preview {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

@media(min-width: 640px) {
  .cv-preview {
    padding: 48px 40px;
  }
}

.cv-preview-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--brand-gold);
}

.cv-preview-name {
  font-family: 'Source Serif 4', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

@media(min-width: 640px) {
  .cv-preview-name {
    font-size: 2.2rem;
  }
}

.cv-preview-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cv-preview-contact span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cv-preview-section {
  margin-bottom: 24px;
}

.cv-preview-section:last-child {
  margin-bottom: 0;
}

.cv-preview-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-navy);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.cv-preview-summary {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
}

.cv-preview-item {
  margin-bottom: 16px;
}

.cv-preview-item:last-child {
  margin-bottom: 0;
}

.cv-preview-item-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

@media(min-width: 640px) {
  .cv-preview-item-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
  }
}

.cv-preview-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-navy);
}

.cv-preview-item-subtitle {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

.cv-preview-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  white-space: nowrap;
}

.cv-preview-bullets {
  margin: 0;
  padding-left: 18px;
}

.cv-preview-bullets li {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 4px;
  color: var(--text-main);
}

.cv-preview-details {
  margin: 0;
  padding-left: 18px;
}

.cv-preview-details li {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 4px;
  color: var(--text-main);
}

.cv-preview-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-preview-skill {
  padding: 6px 14px;
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.cv-preview-cover-letter {
  background: #FAFAFA;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  margin-top: 8px;
}

.cv-preview-cover-letter p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--text-main);
}

.cv-preview-cover-letter p:last-child {
  margin-bottom: 0;
}

.cv-preview-cover-letter .cl-salutation {
  font-weight: 600;
  margin-bottom: 16px;
}

.cv-preview-cover-letter .cl-closing {
  margin-top: 16px;
  font-weight: 600;
}