/* ── CV Superstar Web App Styles ──────────────────────────────────── */
/* Colors match landing page: #0D1117 bg, #131B2E card, #5EFFC2 mint  */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0D1117;
  color: #fff;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

/* ── NAV ──────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 58px;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  background: #0D1117;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.logo span { color: #5EFFC2; }
.logo img { border-radius: 4px; }

.nav-right { display: flex; align-items: center; gap: 10px; }

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid rgba(94,255,194,0.35);
  border-radius: 8px;
  background: transparent;
  color: #5EFFC2;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn-ghost-sm:hover { border-color: #5EFFC2; background: rgba(94,255,194,0.07); }
.btn-ghost-sm.auth-signed-in { color: #8A9BB5; border-color: rgba(138,155,181,0.3); }

.btn-premium-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: rgba(94,255,194,0.1);
  color: #5EFFC2;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-premium-nav:hover { background: rgba(94,255,194,0.18); }
.btn-premium-nav.is-premium { background: rgba(212,160,23,0.15); color: #f5c842; }

/* ── TAB BAR ──────────────────────────────────────────────────────── */
.tab-bar {
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  background: #0D1117;
  position: sticky;
  top: 58px;
  z-index: 90;
}
.tab-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.tabs { display: flex; gap: 0; }
.tab {
  padding: 14px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8A9BB5;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: #fff; }
.tab.active { color: #5EFFC2; border-bottom-color: #5EFFC2; }

/* ── MAIN LAYOUT ──────────────────────────────────────────────────── */
.app-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px 60px;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Two-column analyze grid */
.analyze-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.results-area { margin-top: 20px; }

/* Single-column (My CV, Settings) */
.single-col { max-width: 720px; }

/* ── CARDS ────────────────────────────────────────────────────────── */
.card {
  background: #131B2E;
  border: 0.5px solid rgba(94,255,194,0.12);
  border-radius: 12px;
  padding: 24px;
}
.result-section { margin-bottom: 16px; }

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.1px;
}

/* ── BUTTONS ──────────────────────────────────────────────────────── */
.btn-primary {
  background: #5EFFC2;
  color: #0D1117;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
.btn-primary:hover { background: #3DEBB0; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #C8D8E8;
  border: 0.5px solid rgba(255,255,255,0.1);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s, border-color 0.15s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-gold {
  background: linear-gradient(135deg, #d4a017, #f5c842);
  color: #1a1a1a;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 16px;
  transition: opacity 0.15s;
}
.btn-gold:hover { opacity: 0.9; }

.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-full { width: 100%; margin-top: 12px; }

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.btn-row .btn-secondary { flex: 1; }

/* ── INPUTS ───────────────────────────────────────────────────────── */
.cv-textarea, .job-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  padding: 12px;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.15s;
}
.cv-textarea:focus, .job-textarea:focus {
  outline: none;
  border-color: rgba(94,255,194,0.4);
}
.cv-textarea::placeholder, .job-textarea::placeholder { color: #4A5568; }

.select-input {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  padding: 9px 12px;
  cursor: pointer;
  width: 100%;
}
.select-input option { background: #131B2E; }

/* ── UPLOAD ───────────────────────────────────────────────────────── */
.upload-area {
  margin-bottom: 12px;
}
.upload-area input[type="file"] { display: none; }
.upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px dashed rgba(94,255,194,0.25);
  border-radius: 8px;
  color: #8A9BB5;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.upload-label:hover { border-color: #5EFFC2; color: #5EFFC2; }

.status { font-size: 12px; padding: 6px 0; }
.status.success { color: #5EFFC2; }
.status.error { color: #E24B4A; }

.textarea-footer {
  display: flex;
  justify-content: flex-end;
  padding: 4px 0 8px;
  font-size: 11px;
  color: #4A5568;
}

/* ── CV STATUS BAR ────────────────────────────────────────────────── */
.cv-status-bar {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.cv-missing {
  background: rgba(226,75,74,0.08);
  border: 0.5px solid rgba(226,75,74,0.2);
  color: #E24B4A;
}
.btn-link { background: none; border: none; color: #5EFFC2; cursor: pointer; font-size: inherit; text-decoration: underline; padding: 0; }

/* ── COLLAPSIBLE ──────────────────────────────────────────────────── */
.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
}
.collapsible-body { overflow: hidden; }
.collapsible-body.collapsed { display: none; }
.collapsible-header.collapsed .chevron { transform: rotate(-90deg); }
.chevron { transition: transform 0.2s; color: #8A9BB5; flex-shrink: 0; }
.gaps-toggle-row { border-top: 0.5px solid rgba(255,255,255,0.06); margin-top: 12px; padding-top: 10px; }
.tips-toggle-right { display: flex; align-items: center; gap: 8px; }
.tips-hint { font-size: 12px; color: #8A9BB5; }

/* ── SCORE ────────────────────────────────────────────────────────── */
.score-display {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.score-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
  border: 2.5px solid;
}
.score-badge.green { border-color: #5EFFC2; color: #5EFFC2; }
.score-badge.amber { border-color: #f5c842; color: #f5c842; }
.score-badge.red   { border-color: #E24B4A; color: #E24B4A; }

.score-badge-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid;
}
.score-badge-sm.green { border-color: #5EFFC2; color: #5EFFC2; }
.score-badge-sm.amber { border-color: #f5c842; color: #f5c842; }
.score-badge-sm.red   { border-color: #E24B4A; color: #E24B4A; }

.score-summary { color: #8A9BB5; font-size: 13px; line-height: 1.5; }

/* ── GAPS & TIPS ──────────────────────────────────────────────────── */
.gap-list, .tips-list { list-style: none; margin-top: 8px; }
.gap-list li {
  padding: 6px 0;
  font-size: 13px;
  color: #C8D8E8;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
}
.gap-list li:last-child { border: none; }

.tips-list li { padding: 6px 0; }
.tip-item { display: flex; align-items: flex-start; gap: 10px; }
.tip-item input[type="checkbox"] { margin-top: 2px; accent-color: #5EFFC2; flex-shrink: 0; }
.tip-item label { font-size: 13px; color: #C8D8E8; cursor: pointer; line-height: 1.5; }
.tip-item.rejected label { text-decoration: line-through; color: #4A5568; }

.upgraded-header-right { display: flex; align-items: center; gap: 10px; }

/* ── UPGRADED CV ──────────────────────────────────────────────────── */
.cv-editable-wrapper { position: relative; }
.cv-edit-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  background: #131B2E;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.25s;
}
.cv-editable-wrapper:focus-within .cv-edit-badge { opacity: 0; }

.upgraded-content {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 13px;
  line-height: 1.7;
  color: #E8EFF8;
  outline: none;
  min-height: 200px;
}
.upgraded-content:focus {
  border-color: rgba(94,255,194,0.3);
  box-shadow: inset 0 0 0 1px rgba(94,255,194,0.15);
}

.cv-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: #5EFFC2;
  margin-left: 3px;
  vertical-align: text-bottom;
  border-radius: 1px;
  animation: cv-cursor-blink 1s step-end infinite;
}
.cv-editable-wrapper:focus-within .cv-cursor { display: none; }
@keyframes cv-cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* CV content styles */
.cv-name { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 4px; color: #fff; }
.cv-headline { text-align: center; color: #8A9BB5; font-size: 13px; margin-bottom: 4px; }
.cv-contact { text-align: center; color: #6A7F94; font-size: 12px; margin-bottom: 16px; }
.cv-section-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5EFFC2;
  border-bottom: 0.5px solid rgba(94,255,194,0.3);
  padding-bottom: 4px;
  margin: 16px 0 10px;
}
.experience-block { margin-bottom: 14px; }
.experience-block h3 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.experience-block .meta { font-size: 11px; color: #6A7F94; margin-bottom: 6px; }
.experience-block ul { padding-left: 16px; }
.experience-block li { font-size: 13px; color: #C8D8E8; margin-bottom: 4px; line-height: 1.6; }
.cv-skill-row { font-size: 13px; color: #C8D8E8; margin-bottom: 4px; }
.cv-languages { font-size: 13px; color: #C8D8E8; }

/* ── DOTS LOADER ──────────────────────────────────────────────────── */
.dots-loader { display: inline-flex; align-items: center; gap: 3px; }
.dots-loader span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: dots 1.2s infinite;
}
.dots-loader span:nth-child(2) { animation-delay: 0.2s; }
.dots-loader span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dots { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

.spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error { color: #E24B4A; font-size: 13px; padding: 8px 0; }
.hidden { display: none !important; }

/* ── HISTORY ──────────────────────────────────────────────────────── */
.history-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: #131B2E;
  border: 0.5px solid rgba(94,255,194,0.1);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
}
.stat-card.accent { border-color: rgba(94,255,194,0.25); }
.stat-number { display: block; font-size: 24px; font-weight: 700; color: #5EFFC2; margin-bottom: 4px; }
.stat-label { font-size: 11px; color: #6A7F94; text-transform: uppercase; letter-spacing: 0.5px; }

.history-filters { display: flex; gap: 8px; margin-bottom: 16px; }
.filter-btn {
  padding: 7px 14px;
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: transparent;
  color: #8A9BB5;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn.active { background: rgba(94,255,194,0.1); border-color: rgba(94,255,194,0.3); color: #5EFFC2; }

.history-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}
.history-list-col { min-width: 0; }

.history-list { list-style: none; }
.history-anon-banner {
  padding: 10px 14px;
  background: rgba(94,255,194,0.06);
  border: 0.5px solid rgba(94,255,194,0.15);
  border-radius: 8px;
  font-size: 12px;
  color: #8A9BB5;
  margin-bottom: 10px;
}
.history-item {
  padding: 12px 14px;
  background: #131B2E;
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color 0.15s;
}
.history-item:hover, .history-item.selected { border-color: rgba(94,255,194,0.3); }
.history-item-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.history-item-info { min-width: 0; }
.history-item-info strong { display: block; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item-date { font-size: 11px; color: #6A7F94; }
.history-item-badges { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.score-badge-xs {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border: 1.5px solid;
}
.score-badge-xs.green { border-color: #5EFFC2; color: #5EFFC2; }
.score-badge-xs.amber { border-color: #f5c842; color: #f5c842; }
.score-badge-xs.red   { border-color: #E24B4A; color: #E24B4A; }

.score-arrow { color: #4A5568; font-size: 11px; }

.status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.status-badge.analyzed { background: rgba(138,155,181,0.12); color: #8A9BB5; }
.status-badge.applied  { background: rgba(94,255,194,0.12); color: #5EFFC2; }
.status-badge.interview { background: rgba(245,200,66,0.12); color: #f5c842; }

/* ── JOB DETAIL PANEL (inline on web) ────────────────────────────── */
.job-detail-panel {
  background: #131B2E;
  border: 0.5px solid rgba(94,255,194,0.12);
  border-radius: 12px;
  padding: 20px;
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.job-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.job-detail-header strong { font-size: 15px; font-weight: 700; color: #fff; display: block; }
.detail-date { font-size: 12px; color: #6A7F94; margin-top: 2px; display: block; }
.close-btn {
  background: none;
  border: none;
  color: #6A7F94;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.close-btn:hover { color: #fff; }

.detail-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 0.5px solid rgba(255,255,255,0.05); }
.detail-section:last-child { border: none; margin-bottom: 0; }
.detail-section-title { font-size: 12px; font-weight: 600; color: #8A9BB5; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }

.brief-content, .cover-letter-content {
  font-size: 13px;
  color: #C8D8E8;
  line-height: 1.7;
  min-height: 32px;
  margin-bottom: 8px;
}
.cover-letter-content {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 12px;
  outline: none;
  white-space: pre-wrap;
}
.cover-letter-content:focus { border-color: rgba(94,255,194,0.25); }

.detail-actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 0.5px solid rgba(255,255,255,0.06); }
.detail-actions .btn-secondary { flex: 1; }

.btn-applied { background: rgba(94,255,194,0.1) !important; color: #5EFFC2 !important; border-color: rgba(94,255,194,0.3) !important; }
.btn-interview { background: rgba(245,200,66,0.1) !important; color: #f5c842 !important; border-color: rgba(245,200,66,0.3) !important; }

/* ── SETTINGS ─────────────────────────────────────────────────────── */
.settings-row { display: flex; align-items: center; gap: 14px; }
.settings-row label { font-size: 13px; color: #8A9BB5; min-width: 80px; }

/* ── CUSTOM SELECT ────────────────────────────────────────────────── */
.custom-select { position: relative; flex: 1; }
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #fff;
}
.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #1A2438;
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  list-style: none;
  z-index: 200;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.custom-select-options li {
  padding: 9px 12px;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.custom-select-options li:hover { background: rgba(255,255,255,0.06); }
.custom-select-options li.selected { color: #5EFFC2; }
.premium-option { color: #4A5568 !important; cursor: default !important; }
.premium-option.premium-unlocked { color: #fff !important; cursor: pointer !important; }
.premium-option.premium-unlocked:hover { background: rgba(255,255,255,0.06) !important; }
.premium-badge {
  background: linear-gradient(135deg, #d4a017, #f5c842);
  color: #1a1a1a;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── MODALS ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  backdrop-filter: blur(4px);
}
.modal {
  background: #131B2E;
  border: 0.5px solid rgba(94,255,194,0.15);
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 400px;
  position: relative;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-header h2 { font-size: 17px; font-weight: 700; color: #fff; }
.modal-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  padding: 11px 14px;
  margin-bottom: 10px;
  font-family: inherit;
}
.modal-input:focus { outline: none; border-color: rgba(94,255,194,0.4); }
.modal-input::placeholder { color: #4A5568; }
.auth-error { color: #E24B4A; font-size: 13px; margin-top: 10px; }

.premium-list { list-style: none; margin-bottom: 4px; }
.premium-list li { padding: 8px 0; border-bottom: 0.5px solid rgba(255,255,255,0.05); font-size: 14px; color: #C8D8E8; }
.premium-list li:last-child { border: none; }
.premium-list li::before { content: '✓  '; color: #5EFFC2; font-weight: 700; }
.premium-usage-text { font-size: 12px; color: #6A7F94; margin-top: 12px; text-align: center; }

.premium-success-content { text-align: center; padding: 20px 0; }
.premium-success-icon { font-size: 40px; margin-bottom: 12px; }
.premium-success-content p { color: #8A9BB5; font-size: 14px; }

.limit-message { color: #C8D8E8; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }

/* ── AUTH PROMPT ──────────────────────────────────────────────────── */
.auth-prompt-box {
  text-align: center;
  padding: 60px 20px;
}
.prompt-text { color: #8A9BB5; font-size: 14px; margin-bottom: 16px; }

/* ── FOOTER ───────────────────────────────────────────────────────── */
.app-footer {
  border-top: 0.5px solid rgba(255,255,255,0.06);
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #3A4A58;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #3A4A58; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #5EFFC2; }

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .analyze-grid { grid-template-columns: 1fr; }
  .history-layout { grid-template-columns: 1fr; }
  .job-detail-panel { position: static; max-height: none; }
  .history-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nav { padding: 0 16px; }
  .tab-bar-inner { padding: 0 16px; }
  .app-main { padding: 20px 16px 40px; }
  .tab { padding: 12px 12px; font-size: 13px; }
  .history-stats { grid-template-columns: repeat(2, 1fr); }
  .app-footer { padding: 20px 16px; flex-direction: column; align-items: flex-start; }
  .btn-row { flex-direction: column; }
  .btn-row .btn-secondary { flex: none; width: 100%; }
}
