:root {
  --navy: #3d4a61;
  --navy-soft: #7c8797;
  --accent: #dbe6f7;
  --bg: #fbfaf8;
  --danger: #b3413a;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.brand img { width: 34px; height: 34px; border-radius: 8px; }

.brand span {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--navy-soft);
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 8px;
}

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 6px;
}

p.sub {
  color: var(--navy-soft);
  font-size: 15px;
  margin: 0 0 24px;
  line-height: 1.5;
}

p.sub.small { font-size: 13px; margin-bottom: 12px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 18px 0 6px;
  color: var(--navy);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid #dfe3ea;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--navy);
}

input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

.file-drop {
  border: 2px dashed #c9d3e0;
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  background: #fff;
  cursor: pointer;
}

.file-drop.has-file { border-color: var(--navy); }

.file-drop input[type="file"] { display: none; }

.file-drop-label {
  font-size: 14px;
  color: var(--navy-soft);
}

.file-drop-label strong { color: var(--navy); }

button.primary {
  width: 100%;
  margin-top: 26px;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  cursor: pointer;
}

button.primary:disabled { opacity: 0.55; cursor: not-allowed; }

button.secondary {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

button.secondary:disabled { opacity: 0.55; cursor: not-allowed; }

button.secondary.small {
  width: auto;
  margin-top: 0;
  padding: 9px 16px;
  font-size: 13px;
}

.status {
  margin-top: 14px;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  display: none;
}

.status.show { display: block; }
.status.info { background: var(--accent); color: var(--navy); }
.status.error { background: #f7e3e1; color: var(--danger); }
.status.success { background: #e5f1e8; color: #2f6b46; }

.qr-card {
  background: #fff;
  border-radius: 18px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(61, 74, 97, 0.08);
}

.qr-card canvas { width: 100%; max-width: 260px; height: auto; }

.qr-card .name { font-weight: 600; font-size: 17px; margin-top: 16px; }
.qr-card .link { font-size: 12px; color: var(--navy-soft); word-break: break-all; margin-top: 6px; }

.blob {
  position: absolute;
  border-radius: 58% 42% 52% 48% / 48% 58% 42% 52%;
  background: var(--accent);
  z-index: -1;
}

.summary-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(61, 74, 97, 0.08);
}

.summary-card .name {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
}

.summary-card .headline { color: var(--navy-soft); margin-top: 4px; font-size: 15px; }

.summary-card .contact {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.pdf-frame {
  width: 100%;
  height: 70vh;
  border: 1px solid #e5e8ee;
  border-radius: 14px;
  margin-top: 20px;
  background: #fff;
}

.center-msg {
  text-align: center;
  color: var(--navy-soft);
  padding: 60px 20px;
}

/* ---- Premium-tier CTA (shown on the free upload result) ---- */

.cta-card {
  display: block;
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 20px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(61, 74, 97, 0.06);
}

.cta-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}

.cta-body {
  font-size: 13px;
  color: var(--navy-soft);
  margin-top: 4px;
  line-height: 1.5;
}

.cta-arrow {
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
  margin-top: 10px;
}

/* ---- Account / premium dashboard (account.html) ---- */

.account-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.account-header h1 { margin-bottom: 2px; }
.account-header .sub { margin-bottom: 0; }

.upload-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  margin-top: 18px;
  box-shadow: 0 8px 30px rgba(61, 74, 97, 0.08);
}

#saved-resumes { margin-top: 22px; }

.resume-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  margin-top: 16px;
  box-shadow: 0 8px 30px rgba(61, 74, 97, 0.08);
}

.resume-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.resume-card .name {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 19px;
}

.resume-card .headline { color: var(--navy-soft); font-size: 13px; margin-top: 2px; }

.link-btn {
  background: none;
  border: none;
  color: var(--navy-soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.link-btn.delete-btn:hover { color: var(--danger); }

.mini-qr {
  display: block;
  margin: 16px auto 0;
  width: 120px;
  height: 120px;
}

.resume-details {
  margin-top: 14px;
  border-top: 1px solid #eef0f4;
  padding-top: 12px;
}

.resume-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

.generated-text {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--navy);
  white-space: pre-wrap;
  font-family: inherit;
}

.job-titles {
  margin-top: 14px;
  border-top: 1px solid #eef0f4;
  padding-top: 12px;
}

.job-titles-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
}

.job-titles ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--navy-soft);
}

.format-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--navy-soft);
  line-height: 1.5;
}

/* ---- Job fair MVP ---- */
.fair-banner {
  background: var(--accent);
  color: var(--navy);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.turnstile-box { margin-top: 16px; }
.turnstile-box:empty { display: none; }
.connect-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-top: 18px;
  box-shadow: 0 1px 3px rgba(61, 74, 97, 0.08);
}
.connect-card h2 { margin-top: 0; }
.connect-card p.sub { margin-bottom: 4px; }
.connect-done { text-align: center; padding: 8px 0; }
.connect-done .check { font-size: 34px; }

/* ---- Dashboard ---- */
.wrap.wide { max-width: 1080px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.consent { font-size: 12px; line-height: 1.5; color: var(--navy-soft); margin: 14px 0 0; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--navy-soft); min-width: 0; }
.dash-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-actions button.secondary.small, .csv-row button.secondary.small { width: auto; margin-top: 0; padding: 8px 14px; }
.fair-picker-wrap select { font: inherit; font-size: 14px; color: var(--navy); border: 1px solid #dcdfe5; border-radius: 10px; padding: 8px 12px; background: #fff; margin-bottom: 10px; max-width: 100%; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #e6e8ec; margin-bottom: 18px; overflow-x: auto; }
.tab { font: inherit; font-size: 14px; font-weight: 500; color: var(--navy-soft); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; cursor: pointer; white-space: nowrap; }
.tab.active { color: var(--navy); border-bottom-color: var(--navy); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 3px rgba(61, 74, 97, 0.08); }
.kpi-value { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 600; line-height: 1.1; }
.kpi-label { font-size: 13px; font-weight: 600; margin-top: 4px; }
.kpi-note { font-size: 12px; color: var(--navy-soft); margin-top: 2px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.dash-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: 0 1px 3px rgba(61, 74, 97, 0.08); margin-bottom: 12px; min-width: 0; }
.card-title { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar-row { display: grid; grid-template-columns: 110px 1fr 36px; align-items: center; gap: 10px; font-size: 13px; }
.hbar-label { color: var(--navy-soft); }
.hbar-track { height: 14px; }
.hbar-fill { height: 100%; background: var(--navy); border-radius: 0 4px 4px 0; }
.hbar-value { font-weight: 600; text-align: right; }
.cols-wrap { position: relative; padding-top: 30px; }
.chart-tip { position: absolute; top: 0; left: 0; font-size: 12px; font-weight: 600; background: var(--navy); color: #fff; padding: 4px 10px; border-radius: 6px; opacity: 0; transition: opacity .1s; pointer-events: none; }
.chart-tip.show { opacity: 1; }
.cols { display: flex; align-items: flex-end; gap: 2px; height: 170px; border-bottom: 1px solid #e6e8ec; overflow-x: auto; }
.col { flex: 1 1 0; min-width: 34px; height: 100%; display: flex; flex-direction: column; cursor: default; outline: none; }
.col-bar-area { flex: 1; display: flex; align-items: flex-end; justify-content: center; padding: 0 4px; }
.col-bar { width: 100%; max-width: 36px; min-height: 2px; background: var(--navy); border-radius: 4px 4px 0 0; }
.col.hot .col-bar, .col:focus .col-bar { background: #26304a; }
.col-x { font-size: 11px; color: var(--navy-soft); text-align: center; padding-top: 6px; white-space: nowrap; height: 22px; }
.table-toggle { margin-top: 10px; font-size: 13px; }
.table-toggle summary { cursor: pointer; color: var(--navy-soft); }
.table-scroll { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(61, 74, 97, 0.08); }
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable th { text-align: left; font-weight: 600; font-size: 12px; color: var(--navy-soft); padding: 10px 12px; border-bottom: 1px solid #e6e8ec; white-space: nowrap; }
.dtable td { padding: 10px 12px; border-bottom: 1px solid #f0f1f4; vertical-align: top; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable a, .cand a, .summary-card a { color: var(--navy); font-weight: 500; }
.muted { color: var(--navy-soft); font-size: 12px; }
.pill { display: inline-block; min-width: 26px; text-align: center; font-weight: 600; background: var(--accent); border-radius: 999px; padding: 2px 8px; }
.pill.zero { background: #f7e3e1; color: var(--danger); }
.badge { font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.ok { color: #2f6b46; }
.badge.bad { color: var(--danger); }
.dash-search { width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid #dcdfe5; border-radius: 10px; margin-bottom: 12px; background: #fff; color: var(--navy); }
.csv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.csv-label { font-size: 13px; color: var(--navy-soft); }
.link-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f1f4; }
.link-row button.secondary.small { width: auto; margin-top: 0; padding: 6px 12px; }
.link-label { font-size: 12px; color: var(--navy-soft); }
.link-url { font-size: 13px; font-weight: 500; word-break: break-all; }
.qr-pair { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 14px; }
.qr-mini { text-align: center; }
.qr-mini canvas { width: 160px; height: 160px; }
.qr-cap { font-size: 12px; color: var(--navy-soft); margin: 4px 0; max-width: 180px; }
.cand-list { display: flex; flex-direction: column; gap: 10px; }
.cand { display: flex; justify-content: space-between; gap: 12px; background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 1px 3px rgba(61, 74, 97, 0.08); }
.cand-name { font-weight: 600; }
.cand-side { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; }
.narrow { max-width: 520px; }
.profile { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.profile-qr canvas { width: 120px; height: 120px; }
.conn-list { list-style: none; margin: 0; padding: 0; }
.conn-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f1f4; font-size: 14px; }
.conn-list li:last-child { border-bottom: 0; }
@media (max-width: 560px) {
  .hbar-row { grid-template-columns: 90px 1fr 30px; }
  .cand { flex-direction: column; }
  .cand-side { text-align: left; align-items: flex-start; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---- Plans & billing ---- */
.hero { margin: 8px 0 28px; max-width: 720px; }
.hero h1 { font-size: 34px; line-height: 1.15; }
.hero-points { margin: 14px 0 0; padding-left: 20px; line-height: 1.8; font-size: 15px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 28px; }
.plans.compact { grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); }
.plan { position: relative; text-align: left; font: inherit; color: var(--navy); background: #fff; border: 2px solid #e6e8ec; border-radius: var(--radius); padding: 20px; cursor: pointer; box-shadow: 0 1px 3px rgba(61, 74, 97, 0.08); }
.plan:hover { border-color: #b9c1cf; }
.plan.selected { border-color: var(--navy); box-shadow: 0 0 0 3px var(--accent); }
.plan-badge { display: inline-block; font-size: 11px; font-weight: 600; background: var(--accent); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.plan-name { font-weight: 600; font-size: 15px; }
.plan-price { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 600; margin-top: 4px; }
.plan-price span { font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 500; color: var(--navy-soft); }
.plan-note { font-size: 12px; color: var(--navy-soft); margin-top: 2px; }
.plan ul { margin: 14px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.8; }
.signup-card { background: #fff; border-radius: var(--radius); padding: 24px 22px; box-shadow: 0 1px 3px rgba(61, 74, 97, 0.08); }
.signup-card h2 { margin-top: 0; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.seg-opt { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; border: 1px solid #dcdfe5; border-radius: 10px; padding: 10px 14px; cursor: pointer; margin: 0; }
.seg-opt input { margin: 0; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; line-height: 1.5; margin-top: 18px; cursor: pointer; }
label.check input { margin-top: 3px; }
.plan-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; background: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(61, 74, 97, 0.08); }
.plan-bar.trial { background: var(--accent); }
.plan-bar-actions { display: flex; gap: 8px; }
.plan-bar-actions button.secondary.small { width: auto; margin-top: 0; padding: 6px 12px; }
.primary-mini { font: inherit; font-size: 13px; font-weight: 600; background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 7px 14px; cursor: pointer; white-space: nowrap; }
.cap-banner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff7e6; border: 1px solid #f0d9a8; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; font-size: 13px; line-height: 1.5; }
@media (max-width: 560px) { .hero h1 { font-size: 27px; } }

/* ---- v7: share my resume link ---- */
.share-block { background: #fff; border-radius: 18px; padding: 20px; margin-top: 16px; box-shadow: 0 8px 30px rgba(61, 74, 97, 0.08); text-align: left; }
.share-title { font-weight: 600; font-size: 16px; }
.share-hint { font-size: 13px; color: var(--navy-soft); margin-top: 4px; line-height: 1.45; }
.share-hint.small { font-size: 12px; margin-top: 10px; }
.share-link-row { display: flex; gap: 8px; margin-top: 12px; }
.share-link-row .share-link { flex: 1; min-width: 0; margin: 0; font-size: 13px; padding: 10px 12px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.share-btn { font: inherit; font-size: 13px; font-weight: 600; color: var(--navy); background: transparent; border: 1px solid var(--navy); border-radius: 10px; padding: 9px 14px; cursor: pointer; white-space: nowrap; }
.share-btn.primary-share { background: var(--navy); color: #fff; }
.share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.date-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .date-pair { grid-template-columns: 1fr; } }
.field-note { font-size: 12px; color: var(--navy-soft); margin-top: 4px; }
input[type="date"] { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #dfe3ea; font-size: 16px; font-family: inherit; background: #fff; color: var(--navy); }
