/* ============================================================
   ResumeIQ — Master Stylesheet
   Theme: Refined Corporate Dark with Gold Accents
   ============================================================ */

:root {
  --bg:         #0a0c10;
  --bg2:        #111318;
  --bg3:        #181c24;
  --surface:    #1e2330;
  --border:     #2a2f3d;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim:   rgba(201,168,76,0.15);
  --text:       #e8eaf0;
  --text-dim:   #8a90a2;
  --text-muted: #545a6e;
  --green:      #2ecc71;
  --red:        #e74c3c;
  --amber:      #f39c12;
  --blue:       #3498db;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 8px 40px rgba(0,0,0,0.45);
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'DM Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); }
select, input, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ── SELECTION ── */
::selection { background: var(--gold-dim); color: var(--gold-light); }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,12,16,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.nav-admin { color: var(--text); }
.btn-nav {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}
.btn-nav:hover { border-color: var(--gold); color: var(--gold); }
.btn-nav.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  font-weight: 600;
}
.btn-nav.btn-primary:hover { background: var(--gold-light); }
.hamburger {
  display: none;
  background: none; border: none;
  color: var(--text); font-size: 1.4rem;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 0 1.5rem;
  gap: 1rem;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a, .mobile-nav button {
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 500;
  background: none; border: none;
  text-align: left; padding: 0;
}
.mobile-nav .btn-primary {
  background: var(--gold); color: #000;
  padding: 0.7rem 1.5rem;
  border-radius: 8px; font-weight: 600;
  border: none;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 2rem 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,168,76,0.06) 0%, transparent 70%),
              radial-gradient(ellipse 50% 80% at 10% 80%, rgba(52,152,219,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-content {
  max-width: 620px;
  position: relative; z-index: 1;
  flex: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 20px;
  margin-bottom: 1.5rem;
  animation: fadeDown 0.8s ease;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.2rem;
  animation: fadeDown 0.9s ease 0.1s both;
}
.hero h1 span { color: var(--gold); }
.hero > .hero-content > p {
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
  animation: fadeDown 1s ease 0.2s both;
}
.hero-cta {
  display: flex; align-items: center; gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeDown 1s ease 0.3s both;
}
.btn-hero {
  background: var(--gold);
  color: #000;
  font-size: 1rem; font-weight: 700;
  padding: 0.9rem 2rem;
  border: none; border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(201,168,76,0.3);
}
.btn-hero:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.4);
}
.btn-ghost {
  color: var(--text-dim);
  font-size: 0.95rem; font-weight: 500;
  transition: var(--transition);
}
.btn-ghost:hover { color: var(--gold); }
.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  animation: fadeDown 1s ease 0.4s both;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.6rem; font-weight: 700; color: var(--gold); font-family: var(--font-head); }
.stat span { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.04em; }
.hero-visual {
  flex: 1; display: flex; justify-content: center; align-items: center;
  padding-left: 4rem;
  animation: fadeLeft 1s ease 0.5s both;
}
.score-card-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 300px;
  box-shadow: var(--shadow);
}
.scd-header { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.scd-score {
  font-family: var(--font-head);
  font-size: 4rem; font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.scd-score span { font-size: 1.5rem; color: var(--text-muted); }
.scd-bars { display: flex; flex-direction: column; gap: 0.8rem; }
.scd-bar { display: flex; align-items: center; gap: 0.8rem; }
.scd-bar span { font-size: 0.8rem; color: var(--text-dim); width: 70px; flex-shrink: 0; }
.bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bar div { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 3px; animation: barGrow 1.5s ease 0.8s both; }

/* ── HOW IT WORKS ── */
.how { padding: 6rem 2rem; background: var(--bg2); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem;
}
.section-inner > h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text);
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}
.step:hover { border-color: var(--gold); transform: translateY(-4px); }
.step-num {
  font-size: 2.5rem; font-weight: 700;
  color: var(--gold-dim);
  font-family: var(--font-head);
  margin-bottom: 1rem;
  line-height: 1;
}
.step h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }

/* ── UPLOAD SECTION ── */
.upload-section { padding: 6rem 2rem; }
.section-sub { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 2.5rem; margin-top: -2rem; }

.upload-card {
  max-width: 760px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.upload-step { display: none; }
.upload-step.active { display: block; }
.upload-step h3 {
  font-family: var(--font-head);
  font-size: 1.4rem; color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); letter-spacing: 0.04em; }
.form-group select, .form-group .other-input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a90a2' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group .other-input {
  background-image: none;
  margin-top: 0.5rem;
}
.form-group select:focus, .form-group .other-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-group select option { background: var(--bg3); }
.hidden { display: none !important; }
.other-input { padding-right: 1rem !important; }

.btn-next {
  background: var(--gold); color: #000;
  font-size: 0.95rem; font-weight: 700;
  padding: 0.85rem 2rem;
  border: none; border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,0.25);
  width: 100%;
}
.btn-next:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg3);
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.drop-icon { font-size: 3rem; margin-bottom: 1rem; }
.drop-title { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.drop-sub { font-size: 0.85rem; color: var(--text-muted); }

.file-preview {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg3);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
}
.file-icon { font-size: 1.5rem; color: var(--green); }
.file-info { flex: 1; }
.file-info strong { display: block; font-size: 0.95rem; color: var(--text); }
.file-info span { font-size: 0.82rem; color: var(--text-muted); }
.remove-file {
  background: none; border: none;
  color: var(--text-muted); font-size: 1.1rem;
  padding: 0.3rem; transition: var(--transition);
}
.remove-file:hover { color: var(--red); }

.btn-row { display: flex; gap: 1rem; margin-top: 1.5rem; }
.btn-back {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
  transition: var(--transition);
}
.btn-back:hover { border-color: var(--text-dim); color: var(--text); }
.btn-analyse {
  flex: 1;
  background: var(--gold); color: #000;
  font-size: 1rem; font-weight: 700;
  padding: 0.85rem 2rem;
  border: none; border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,0.25);
}
.btn-analyse:hover:not(:disabled) { background: var(--gold-light); transform: translateY(-1px); }
.btn-analyse:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* Processing */
.processing {
  text-align: center;
  padding: 2rem 1rem;
}
.processing-ring {
  width: 60px; height: 60px;
  border: 4px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}
.processing h3 { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); margin-bottom: 0.5rem; }
.processing p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.5rem; }
.processing-steps { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; max-width: 300px; margin: 0 auto; }
.ps { font-size: 0.85rem; color: var(--text-muted); transition: var(--transition); }
.ps.done { color: var(--green); }

/* ── PRICING ── */
.pricing { padding: 6rem 2rem; background: var(--bg2); }
.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-bottom: 1.5rem;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
}
.plan:hover { transform: translateY(-4px); }
.plan-featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(201,168,76,0.05) 100%);
  box-shadow: 0 0 40px rgba(201,168,76,0.1);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #000;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 1rem; border-radius: 20px;
}
.plan-name { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.plan-price { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--text); margin-bottom: 1.5rem; }
.plan-price span { font-size: 1rem; color: var(--text-muted); font-family: var(--font-body); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.plan ul li { font-size: 0.9rem; color: var(--text-dim); }
.plan ul li:has(✗) { color: var(--text-muted); text-decoration: line-through; opacity: 0.5; }
.btn-plan {
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem; font-weight: 600;
  transition: var(--transition);
}
.btn-plan:hover { border-color: var(--gold); color: var(--gold); }
.btn-plan-primary {
  background: var(--gold); border-color: var(--gold); color: #000;
}
.btn-plan-primary:hover { background: var(--gold-light); color: #000; }
.payment-note { text-align: center; font-size: 0.85rem; color: var(--text-muted); }

/* ── FOOTER ── */
.footer { padding: 4rem 2rem 2rem; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-brand { margin-bottom: 2rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; max-width: 320px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ── MODALS ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%; max-width: 440px;
  position: relative;
  animation: modalIn 0.3s ease;
}
.modal-results { max-width: 900px; max-height: 90vh; overflow-y: auto; }
.modal-pay { max-width: 480px; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none;
  color: var(--text-muted); font-size: 1.1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--surface); color: var(--text); }
.modal-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; background: var(--bg3); border-radius: 8px; padding: 4px; }
.tab {
  flex: 1;
  background: none; border: none;
  color: var(--text-muted);
  padding: 0.6rem; border-radius: 6px;
  font-size: 0.9rem; font-weight: 600;
  transition: var(--transition);
}
.tab.active { background: var(--surface); color: var(--text); }
.modal h3 {
  font-family: var(--font-head);
  font-size: 1.5rem; color: var(--text);
  margin-bottom: 1.2rem;
}
.btn-google {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem; font-weight: 500;
  transition: var(--transition);
  margin-bottom: 1rem;
}
.btn-google:hover { border-color: var(--gold); }
.divider {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.divider span { font-size: 0.8rem; color: var(--text-muted); }
.form-input {
  width: 100%; display: block;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  margin-bottom: 0.75rem;
}
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.btn-submit {
  width: 100%;
  background: var(--gold); color: #000;
  font-size: 1rem; font-weight: 700;
  padding: 0.9rem;
  border: none; border-radius: 8px;
  transition: var(--transition);
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--gold-light); transform: translateY(-1px); }
.form-footer { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem; }
.pay-summary {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.2rem;
  margin-bottom: 1rem;
}
.pay-note { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin-bottom: 1rem; }

/* ── RESULTS PAGE ── */
.results-header {
  text-align: center;
  padding: 1rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.results-header h2 { font-family: var(--font-head); font-size: 1.8rem; color: var(--text); margin-bottom: 0.5rem; }
.results-header p { color: var(--text-dim); font-size: 0.9rem; }

.score-display {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.score-circle {
  width: 130px; height: 130px;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 4px solid var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 0 40px rgba(201,168,76,0.2);
}
.score-num { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; }
.score-label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.score-breakdown {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem; flex: 1; min-width: 280px;
}
.sb-item { display: flex; flex-direction: column; gap: 0.3rem; }
.sb-item label { font-size: 0.8rem; color: var(--text-dim); }
.sb-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.sb-bar div { height: 100%; border-radius: 4px; }
.sb-bar .good { background: var(--green); }
.sb-bar .ok { background: var(--amber); }
.sb-bar .bad { background: var(--red); }
.sb-val { font-size: 0.8rem; color: var(--text-muted); }

.results-section { margin-bottom: 2rem; }
.results-section h4 {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.results-section h4 .icon { font-size: 1.1rem; }

.card-list { display: flex; flex-direction: column; gap: 0.75rem; }
.card-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--border);
}
.card-item.error { border-left-color: var(--red); }
.card-item.warning { border-left-color: var(--amber); }
.card-item.success { border-left-color: var(--green); }
.card-item.info { border-left-color: var(--blue); }
.card-item strong { display: block; font-size: 0.9rem; color: var(--text); margin-bottom: 0.2rem; }
.card-item p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }
.card-item .why { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }

.qa-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.qa-q {
  padding: 1rem 1.2rem;
  font-size: 0.9rem; font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
}
.qa-q:hover { background: var(--surface); }
.qa-q::after { content: '▾'; color: var(--gold); font-size: 0.8rem; }
.qa-a {
  padding: 0 1.2rem;
  max-height: 0; overflow: hidden;
  transition: all 0.3s ease;
  font-size: 0.88rem; color: var(--text-dim); line-height: 1.7;
  border-top: 0 solid var(--border);
}
.qa-a.open {
  max-height: 400px;
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--border);
}

.rebuilt-resume {
  background: white;
  color: #1a1a1a;
  border-radius: 8px;
  padding: 2.5rem;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  box-shadow: var(--shadow);
}
.rebuilt-resume h1 { font-size: 1.8rem; color: #1a1a2e; border-bottom: 2px solid #c9a84c; padding-bottom: 0.5rem; margin-bottom: 0.3rem; }
.rebuilt-resume .rr-contact { font-size: 0.82rem; color: #555; margin-bottom: 1.5rem; }
.rebuilt-resume h2 { font-size: 1rem; color: #c9a84c; text-transform: uppercase; letter-spacing: 0.1em; margin: 1.2rem 0 0.5rem; border-left: 3px solid #c9a84c; padding-left: 0.5rem; }
.rebuilt-resume p, .rebuilt-resume li { font-size: 0.88rem; color: #333; }
.rebuilt-resume ul { padding-left: 1.2rem; }

.results-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.btn-download {
  flex: 1;
  background: var(--gold); color: #000;
  font-size: 0.95rem; font-weight: 700;
  padding: 0.9rem 1.5rem;
  border: none; border-radius: 8px;
  transition: var(--transition);
  min-width: 180px;
}
.btn-download:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-reanalyse {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
  transition: var(--transition);
}
.btn-reanalyse:hover { border-color: var(--text-dim); color: var(--text); }

/* ── NOTIFICATIONS ── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
  z-index: 9999;
  animation: toastIn 0.3s ease;
  max-width: 360px;
  box-shadow: var(--shadow);
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
.toast.info { border-left: 4px solid var(--blue); }
.toast-msg { font-size: 0.9rem; color: var(--text); }

/* ── ANIMATIONS ── */
@keyframes fadeDown { from { opacity:0; transform:translateY(-16px) } to { opacity:1; transform:none } }
@keyframes fadeLeft { from { opacity:0; transform:translateX(40px) } to { opacity:1; transform:none } }
@keyframes barGrow { from { width:0 } }
@keyframes spin { to { transform:rotate(360deg) } }
@keyframes modalIn { from { opacity:0; transform:scale(0.95) translateY(8px) } to { opacity:1; transform:none } }
@keyframes toastIn { from { opacity:0; transform:translateX(20px) } to { opacity:1; transform:none } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-visual { padding-left: 0; margin-top: 3rem; }
  .hero-stats { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero h1 br { display: none; }
  .nav-links { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .score-breakdown { grid-template-columns: 1fr; }
  .score-display { flex-direction: column; }
  .results-actions { flex-direction: column; }
  .modal { padding: 1.5rem; }
  .plans { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .upload-card { padding: 1.5rem; }
  .btn-row { flex-direction: column; }
  .toast { left: 1rem; right: 1rem; bottom: 1rem; }
}
@media (max-width: 400px) {
  .navbar { padding: 0 1rem; }
  .hero { padding: 100px 1rem 60px; }
  .upload-section, .how, .pricing { padding: 4rem 1rem; }
}

/* ── PRINT (for resume download) ── */
@media print {
  .navbar, .hero, .how, .upload-section, .pricing, .footer,
  .modal-overlay:not(#resultsModal), .results-actions { display: none !important; }
  .rebuilt-resume { box-shadow: none; margin: 0; }
}
