/* CVCraft UK -- style.css */

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

:root {
  --blue:       #2563EB;
  --blue-dark:  #1E3A5F;
  --blue-light: #EFF6FF;
  --green:      #059669;
  --text:       #1F2937;
  --text-light: #6B7280;
  --border:     #E5E7EB;
  --bg:         #F9FAFB;
  --white:      #FFFFFF;
  --radius:     12px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text); background: var(--white);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container        { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 720px;  margin: 0 auto; padding: 0 1.5rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); padding: .875rem 1.5rem;
}
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.35rem; font-weight: 800; color: var(--blue-dark); }
.logo span { color: var(--blue); }
.nav-price { font-size: .875rem; color: var(--text-light); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.25rem; border-radius: 8px; border: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .9rem;
  text-decoration: none; transition: all .15s ease; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.3); }
.btn-primary:hover { background: #1D4ED8; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,.4); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--bg); border-color: #D1D5DB; color: var(--text); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: #F0F4FF; color: var(--blue); }
.btn-sm   { padding: .45rem 1rem;   font-size: .82rem; }
.btn-lg   { padding: .8rem 1.75rem; font-size: 1rem; }
.btn-xs   { padding: .3rem .65rem;  font-size: .78rem; }
.btn-full { width: 100%; }

/* Hero */
.hero { background: linear-gradient(160deg,#EFF6FF 0%,#DBEAFE 50%,#F0FDF4 100%); padding: 5rem 1.5rem 4rem; text-align: center; }
.badge { display: inline-block; background: #DBEAFE; color: var(--blue); border: 1px solid #BFDBFE; border-radius: 999px; padding: .3rem .9rem; font-size: .82rem; font-weight: 600; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.25rem,5vw,3.5rem); font-weight: 800; line-height: 1.15; color: var(--blue-dark); margin-bottom: 1.25rem; }
.highlight { color: var(--blue); }
.hero-sub { font-size: 1.15rem; color: var(--text-light); max-width: 580px; margin: 0 auto 2rem; }
.hero-cta { margin-bottom: 2.5rem; }
.hero-note { margin-top: .6rem; font-size: .85rem; color: var(--text-light); }
.proof-strip { display: inline-flex; gap: 2.5rem; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 2.5rem; box-shadow: var(--shadow); }
.proof-item { text-align: center; }
.proof-num  { display: block; font-size: 1.5rem; font-weight: 800; color: var(--blue-dark); }
.proof-label{ font-size: .8rem; color: var(--text-light); font-weight: 500; }
.proof-divider { width: 1px; height: 40px; background: var(--border); }

/* Sections */
.section     { padding: 5rem 1.5rem; }
.section-alt { padding: 5rem 1.5rem; background: var(--bg); }
.section-label { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: .6rem; }
.section h2, .section-alt h2 { font-size: clamp(1.75rem,3.5vw,2.25rem); font-weight: 800; margin-bottom: 3rem; color: var(--blue-dark); }

/* Steps */
.steps { display: flex; gap: 1.5rem; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.75rem; flex: 1; min-width: 220px; max-width: 280px; box-shadow: var(--shadow); }
.step-num  { font-size: .75rem; font-weight: 700; color: var(--blue); margin-bottom: .5rem; }
.step-icon { font-size: 2.25rem; margin-bottom: .75rem; }
.step h3   { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.step p    { font-size: .9rem; color: var(--text-light); }
.step-arrow{ font-size: 1.5rem; color: var(--border); align-self: center; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1.5rem; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: box-shadow .2s; }
.feature-card:hover { box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.feature-card p  { font-size: .875rem; color: var(--text-light); }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1.5rem; }
.testimonial { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.stars { color: #F59E0B; font-size: 1rem; margin-bottom: .75rem; }
.testimonial p { font-size: .925rem; color: var(--text-light); font-style: italic; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; gap: .75rem; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.testimonial-author strong { display: block; font-size: .9rem; }
.testimonial-author span   { font-size: .8rem; color: var(--text-light); }

/* Pricing */
.pricing-box { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; justify-content: center; }
.pricing-card { background: var(--white); border: 2px solid var(--blue); border-radius: var(--radius); padding: 2.5rem 2rem; min-width: 300px; max-width: 340px; box-shadow: var(--shadow-lg); position: relative; }
.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; padding: .25rem .9rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pricing-card h3   { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.price             { font-size: 3rem; font-weight: 800; color: var(--blue-dark); margin: .5rem 0 .25rem; }
.price-note        { font-size: .82rem; color: var(--text-light); margin-bottom: 1.5rem; }
.pricing-list      { list-style: none; margin-bottom: 1.75rem; }
.pricing-list li   { padding: .4rem 0; font-size: .9rem; border-bottom: 1px solid var(--bg); }
.pricing-guarantee { text-align: center; font-size: .78rem; color: var(--text-light); margin-top: .75rem; }
.pricing-compare   { flex: 1; min-width: 280px; }
.pricing-compare h4{ font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-light); }
.compare-table     { width: 100%; border-collapse: collapse; font-size: .875rem; }
.compare-table tr  { border-bottom: 1px solid var(--border); }
.compare-table td  { padding: .65rem .5rem; color: var(--text-light); }
.compare-table tr:first-child td { font-weight: 700; color: var(--text); }
.compare-us        { color: var(--blue) !important; font-weight: 600 !important; }
.compare-note      { font-size: .78rem; color: var(--text-light); margin-top: .75rem; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.faq-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.faq-item p  { font-size: .9rem; color: var(--text-light); }

/* CTA section */
.section-cta { background: linear-gradient(135deg,var(--blue-dark) 0%,var(--blue) 100%); padding: 5rem 1.5rem; text-align: center; }
.section-cta h2 { font-size: 2.25rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.section-cta p  { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; }
.cta-note       { margin-top: .75rem; font-size: .85rem; color: rgba(255,255,255,.65); }

/* Footer */
.footer { background: var(--blue-dark); color: rgba(255,255,255,.7); padding: 3rem 1.5rem; }
.footer-inner { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-inner .logo { color: #fff; }
.footer-inner .logo span { color: #93C5FD; }
.footer-inner p { font-size: .875rem; }
.footer-legal   { font-size: .78rem; }
.footer-legal a { color: rgba(255,255,255,.6); }

/* Form Page */
body.form-page { background: var(--bg); }
.form-shell { max-width: 720px; margin: 2rem auto 4rem; background: var(--white); border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.progress-bar-wrap  { height: 4px; background: var(--bg); overflow: hidden; }
.progress-bar-inner { height: 100%; background: var(--blue); transition: width .4s ease; }
.step-indicator { text-align: right; padding: .6rem 1.5rem .25rem; font-size: .8rem; color: var(--text-light); font-weight: 600; }
.form-step        { display: none; padding: 2.5rem; }
.form-step.active { display: block; }
.step-header { text-align: center; margin-bottom: 2.5rem; }
.step-icon-lg { font-size: 2.75rem; margin-bottom: .75rem; }
.step-header h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .4rem; }
.step-header p  { color: var(--text-light); font-size: .95rem; }
.form-group { margin-bottom: 1.25rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.req      { color: #EF4444; }
.optional { font-weight: 400; color: var(--text-light); font-size: .82rem; }
input[type=text], input[type=email], input[type=tel],
input[type=url],  select, textarea {
  width: 100%; padding: .65rem .875rem; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: .9rem; color: var(--text);
  background: var(--white); transition: border-color .15s,box-shadow .15s; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
input.input-error { border-color: #EF4444; }
textarea { resize: vertical; min-height: 80px; }
.field-hint { font-size: .8rem; color: var(--text-light); margin-top: .35rem; }
.job-block { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.job-block-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.job-block-num   { font-size: .875rem; font-weight: 700; }
.job-current-tag { background: #DCFCE7; color: var(--green); border-radius: 999px; padding: .15rem .6rem; font-size: .72rem; font-weight: 700; margin-left: .5rem; }
.btn-remove { background: none; border: 1px solid #FECACA; color: #EF4444; border-radius: 6px; padding: .2rem .6rem; font-size: .78rem; cursor: pointer; font-family: inherit; }
.btn-remove:hover { background: #FEF2F2; }
.add-job-wrap { display: flex; align-items: center; gap: 1rem; }
.job-count { font-size: .8rem; color: var(--text-light); }
.checkbox-label { display: flex; gap: .5rem; align-items: center; font-weight: 400; cursor: pointer; font-size: .9rem; }
.checkbox-label input { width: auto; }
.order-summary { background: var(--blue-light); border: 1px solid #BFDBFE; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-top: 1.5rem; }
.order-summary h4 { font-size: .95rem; font-weight: 700; margin-bottom: .75rem; }
.order-summary ul { list-style: none; }
.order-summary li { font-size: .875rem; padding: .25rem 0; }
.order-total { display: flex; justify-content: space-between; align-items: center; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid #BFDBFE; font-size: 1rem; }
.order-total strong { font-size: 1.25rem; color: var(--blue-dark); }
.form-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.secure-note { text-align: center; font-size: .8rem; color: var(--text-light); margin-top: .75rem; }
.loading-overlay { display: none; position: fixed; inset: 0; background: rgba(255,255,255,.9); z-index: 999; align-items: center; justify-content: center; }
.loading-box { text-align: center; padding: 2rem; }
.loading-box h3 { margin: 1.25rem 0 .5rem; font-size: 1.25rem; }
.loading-box p  { color: var(--text-light); }
.spinner { width: 48px; height: 48px; margin: 0 auto; border: 4px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success Page */
.success-shell { max-width: 700px; margin: 3rem auto 5rem; text-align: center; padding: 0 1.5rem; }
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.success-shell h1 { font-size: 2rem; font-weight: 800; margin-bottom: .75rem; }
.success-sub { font-size: 1rem; color: var(--text-light); margin-bottom: 2.5rem; }
.download-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); margin-bottom: 2.5rem; }
.download-card { background: var(--white); border: 1.5px solid var(--blue); border-radius: var(--radius); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; box-shadow: var(--shadow); }
.dl-icon { font-size: 2.5rem; }
.dl-info h3 { font-size: 1.05rem; font-weight: 700; }
.dl-info p  { font-size: .85rem; color: var(--text-light); }
.next-steps { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; text-align: left; margin-bottom: 1.5rem; }
.next-steps h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.next-steps ol { padding-left: 1.25rem; }
.next-steps li { font-size: .9rem; padding: .35rem 0; }
.success-note { font-size: .85rem; color: var(--text-light); }
.success-note p { margin-bottom: .35rem; }

/* Admin Page */
body.admin-page { background: var(--bg); }
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.admin-login-box { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); text-align: center; }
.admin-login-box h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.admin-login-box p  { color: var(--text-light); margin-bottom: 1.5rem; }
.alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .875rem; }
.alert-error { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.admin-shell { max-width: 1100px; margin: 2rem auto 4rem; padding: 0 1.5rem; }
.admin-shell h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 2rem; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; box-shadow: var(--shadow); }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--blue-dark); }
.stat-label { font-size: .8rem; color: var(--text-light); font-weight: 600; margin-top: .25rem; }
.progress-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; box-shadow: var(--shadow); }
.progress-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.progress-card h3 { font-size: 1rem; font-weight: 700; }
.progress-card span { font-weight: 700; color: var(--blue); }
.orders-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.orders-table th { background: var(--bg); padding: .875rem 1rem; text-align: left; font-size: .82rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); }
.orders-table td { padding: .875rem 1rem; font-size: .875rem; border-bottom: 1px solid var(--bg); }
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: var(--bg); }
.empty-state { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 3rem; text-align: center; box-shadow: var(--shadow); }
.empty-state p { color: var(--text-light); margin-bottom: .5rem; }
.share-links { margin-top: 1.5rem; background: var(--bg); border-radius: 8px; padding: 1rem; text-align: left; display: inline-block; }
.share-links p { font-size: .875rem; }

/* Responsive */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .proof-strip { gap: 1.25rem; padding: 1rem 1.5rem; flex-wrap: wrap; justify-content: center; }
  .proof-divider { display: none; }
  .hero h1 { font-size: 2rem; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .pricing-box { flex-direction: column; align-items: center; }
  .form-step { padding: 1.5rem; }
  .form-shell { margin: 1rem; border-radius: 12px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* ── CV Upload Banner ────────────────────────────────────────────────────── */
.upload-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--blue-light);
  border: 1.5px dashed var(--blue);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  transition: opacity .3s;
}
.upload-banner-left {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.upload-banner-icon { font-size: 1.6rem; }
.upload-banner-left div { display: flex; flex-direction: column; gap: .15rem; }
.upload-banner-left strong { font-size: .95rem; color: var(--text); }
.upload-banner-left span  { font-size: .82rem; color: var(--text-light); }
.upload-label { cursor: pointer; white-space: nowrap; flex-shrink: 0; }

.upload-status {
  padding: .75rem 1rem;
  border-radius: 8px;
  font-size: .88rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.uploading    { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.upload-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.upload-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* ── Inline Validation Errors ────────────────────────────────────────────── */
.inline-error {
  color: #DC2626;
  font-size: .8rem;
  margin-top: .35rem;
  font-weight: 500;
}
.input-error {
  border-color: #DC2626 !important;
  background: #FFF5F5;
}

/* ── Experience Warning ───────────────────────────────────────────────────── */
.form-warning {
  background: #FFFBEB;
  border: 1.5px solid #FCD34D;
  border-radius: 8px;
  padding: .85rem 1rem;
  font-size: .875rem;
  color: #92400E;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .upload-banner { flex-direction: column; align-items: flex-start; }
  .upload-label  { width: 100%; text-align: center; }
}

/* ── Template Picker ─────────────────────────────────────────────────────── */
.template-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.template-card {
  cursor: pointer;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  background: #fff;
}
.template-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,99,235,.15);
}
.template-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.2);
}
.template-preview {
  padding: .75rem .6rem .5rem;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.tpl-bar        { height: 8px;  border-radius: 4px; width: 100%; }
.tpl-name-line  { height: 5px;  border-radius: 3px; width: 70%; margin: .15rem 0; }
.tpl-body       { display: flex; flex-direction: column; gap: .25rem; margin-top: .3rem; }
.tpl-divider    { height: 1px;  width: 100%; margin: .2rem 0; }
.tpl-line       { height: 4px;  border-radius: 2px; }
.tpl-line.long  { width: 90%; }
.tpl-line.med   { width: 65%; }
.tpl-line.short { width: 45%; }
.template-label {
  padding: .5rem .6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #F3F4F6;
}
.tpl-name  { font-size: .78rem; font-weight: 600; color: var(--text); }
.tpl-check {
  color: var(--blue);
  font-weight: 700;
  font-size: .9rem;
  opacity: 0;
  transition: opacity .15s;
}
.template-card.selected .tpl-check { opacity: 1; }

@media (max-width: 760px) {
  .template-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .template-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Upsell Section (success page) ──────────────────────────────────────── */
.upsell-section {
  background: #F8FAFF;
  border: 1.5px solid #DBEAFE;
  border-radius: 14px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}
.upsell-section h2 { font-size: 1.3rem; color: var(--text); margin-bottom: .4rem; }
.upsell-sub        { color: var(--text-light); font-size: .9rem; margin-bottom: 1.5rem; }

.upsell-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  text-align: left;
}
.upsell-card {
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: box-shadow .2s;
}
.upsell-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.upsell-card.upsell-done { border-color: #10B981; background: #F0FDF4; }
.upsell-card-icon { font-size: 2rem; }
.upsell-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.upsell-card-body p  { font-size: .85rem; color: var(--text-light); }
.upsell-features {
  list-style: none;
  margin-top: .6rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.upsell-features li { font-size: .82rem; color: var(--green); font-weight: 500; }
.upsell-card-action { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; margin-top: auto; }
.upsell-price       { font-size: 1.4rem; font-weight: 800; color: var(--blue); }

.btn-upsell {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--blue);
  color: #fff;
  padding: .65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s;
}
.btn-upsell:hover    { background: #1D4ED8; }
.upsell-price-inline { font-size: .8rem; background: rgba(255,255,255,.2); padding: .1rem .4rem; border-radius: 4px; }

.btn-success {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #10B981;
  color: #fff;
  padding: .65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}

@media (max-width: 640px) {
  .upsell-cards { grid-template-columns: 1fr; }
}

/* ── Referral Section ────────────────────────────────────────────────────── */
.referral-section {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1.5px solid #6EE7B7;
  border-radius: 14px;
  padding: 2rem;
  margin: 1.5rem 0;
  text-align: center;
}
.referral-icon         { font-size: 2rem; margin-bottom: .5rem; }
.referral-section h3   { font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; }
.referral-section p    { font-size: .88rem; color: #065F46; margin-bottom: 1rem; }
.referral-link-row {
  display: flex;
  gap: .5rem;
  max-width: 500px;
  margin: 0 auto;
}
.referral-input {
  flex: 1;
  padding: .65rem .9rem;
  border: 1.5px solid #6EE7B7;
  border-radius: 8px;
  font-size: .85rem;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
}
.ref-copied {
  color: #059669;
  font-weight: 600;
  font-size: .85rem;
  margin-top: .5rem;
}

/* ── Referral Banner (home page) ─────────────────────────────────────────── */
.ref-banner {
  background: #D1FAE5;
  border-bottom: 1px solid #6EE7B7;
  text-align: center;
  padding: .65rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: #065F46;
}

/* ── Upsell Result Page ──────────────────────────────────────────────────── */
.upsell-result-shell {
  max-width: 780px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}
.upsell-result-header {
  text-align: center;
  margin-bottom: 2rem;
}
.upsell-result-icon    { font-size: 3rem; margin-bottom: .5rem; }
.upsell-result-header h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: .4rem; }
.upsell-result-header p  { color: var(--text-light); }

.upsell-result-body {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 2rem;
  line-height: 1.7;
}
.result-score-line {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.result-section {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
  margin: 1.5rem 0 .5rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid #E5E7EB;
}
.result-question {
  font-weight: 700;
  color: var(--text);
  margin-top: 1.25rem;
  font-size: .95rem;
}
.result-tip {
  background: #FFFBEB;
  border-left: 3px solid #FCD34D;
  padding: .5rem .85rem;
  border-radius: 0 6px 6px 0;
  font-size: .88rem;
  color: #92400E;
  margin-top: .3rem;
}
.result-bullet {
  padding-left: 1.25rem;
  position: relative;
  font-size: .9rem;
  color: var(--text);
  margin: .25rem 0;
}
.result-bullet::before { content: "•"; position: absolute; left: 0; color: var(--blue); }
.result-para   { font-size: .9rem; color: var(--text); margin: .3rem 0; }
.result-spacer { height: .5rem; }

.upsell-result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ── Template Grid (3 layout previews) ──────────────────────────────────── */
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.template-card {
  cursor: pointer;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.template-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37,99,235,.15);
}
.template-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.2);
}
.tpl-preview {
  padding: 1rem;
  min-height: 220px;
  font-family: Georgia, serif;
  background: #fff;
  border-bottom: 1px solid #F3F4F6;
  overflow: hidden;
}

/* ── Classic preview ─────────────────────────────────────────────────────── */
.tpl-classic .tpl-c-name    { font-size: .85rem; font-weight: 700; text-align: center; color: #1F2937; margin-bottom: 2px; }
.tpl-classic .tpl-c-contact { font-size: .55rem; text-align: center; color: #6B7280; margin-bottom: 4px; }
.tpl-classic .tpl-c-rule    { border: none; border-top: 1.5px solid #1E3A5F; margin: 4px 0; }
.tpl-classic .tpl-c-section { font-size: .55rem; font-weight: 700; text-transform: uppercase; color: #1E3A5F; letter-spacing: .05em; margin: 3px 0 2px; font-family: Arial, sans-serif; }
.tpl-classic .tpl-c-text    { font-size: .52rem; color: #374151; line-height: 1.4; margin-bottom: 3px; }
.tpl-classic .tpl-c-bold    { font-size: .58rem; font-weight: 700; color: #1F2937; font-family: Arial, sans-serif; }
.tpl-classic .tpl-c-date    { font-size: .5rem;  color: #6B7280; font-style: italic; margin-bottom: 2px; font-family: Arial, sans-serif; }
.tpl-classic .tpl-c-bullet  { font-size: .5rem;  color: #374151; padding-left: 8px; line-height: 1.4; font-family: Arial, sans-serif; }

/* ── Modern preview ──────────────────────────────────────────────────────── */
.tpl-modern .tpl-m-name     { font-size: .85rem; font-weight: 700; color: #1F2937; margin-bottom: 1px; font-family: Arial, sans-serif; }
.tpl-modern .tpl-m-contact  { font-size: .52rem; color: #6B7280; margin-bottom: 6px; font-family: Arial, sans-serif; }
.tpl-modern .tpl-m-section  { font-size: .52rem; font-weight: 700; text-transform: uppercase; color: #2563EB; letter-spacing: .08em; margin: 4px 0 1px; font-family: Arial, sans-serif; }
.tpl-modern .tpl-m-rule     { border: none; border-top: .5px solid #E5E7EB; margin: 2px 0 3px; }
.tpl-modern .tpl-m-row      { display: flex; justify-content: space-between; align-items: baseline; }
.tpl-modern .tpl-m-bold     { font-size: .56rem; font-weight: 700; color: #1F2937; font-family: Arial, sans-serif; }
.tpl-modern .tpl-m-date     { font-size: .48rem; color: #6B7280; font-family: Arial, sans-serif; }
.tpl-modern .tpl-m-text     { font-size: .52rem; color: #374151; line-height: 1.4; margin-bottom: 3px; font-family: Arial, sans-serif; }
.tpl-modern .tpl-m-bullet   { font-size: .5rem;  color: #374151; padding-left: 8px; line-height: 1.4; font-family: Arial, sans-serif; }

/* ── Creative preview ────────────────────────────────────────────────────── */
.tpl-preview.tpl-creative   { padding: 0; }
.tpl-cr-header  { background: #0D9488; padding: .65rem .75rem; }
.tpl-cr-name    { font-size: .82rem; font-weight: 700; color: #fff; font-family: Arial, sans-serif; }
.tpl-cr-contact { font-size: .5rem;  color: #CCFBF1; font-family: Arial, sans-serif; }
.tpl-cr-section {
  font-size: .52rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #fff;
  background: #0D9488; padding: 3px 8px; margin: 4px 0 2px;
  font-family: Arial, sans-serif;
}
.tpl-cr-bold    { font-size: .56rem; font-weight: 700; color: #1F2937; padding: 0 8px; font-family: Arial, sans-serif; }
.tpl-cr-date    { font-size: .5rem;  color: #6B7280; padding: 0 8px; margin-bottom: 2px; font-style: italic; font-family: Arial, sans-serif; }
.tpl-cr-text    { font-size: .52rem; color: #374151; line-height: 1.4; padding: 0 8px; margin-bottom: 2px; font-family: Arial, sans-serif; }
.tpl-cr-bullet  { font-size: .5rem;  color: #374151; padding: 0 8px 0 16px; line-height: 1.4; font-family: Arial, sans-serif; }

.template-label {
  padding: .6rem .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.template-label > div  { display: flex; flex-direction: column; gap: .1rem; }
.tpl-name  { font-size: .88rem; font-weight: 700; color: var(--text); }
.tpl-desc  { font-size: .72rem; color: var(--text-light); }
.tpl-check { color: var(--blue); font-weight: 700; font-size: 1rem; opacity: 0; transition: opacity .15s; }
.template-card.selected .tpl-check { opacity: 1; }

@media (max-width: 700px) {
  .template-grid { grid-template-columns: 1fr; }
}

/* ── Addon checkboxes (order summary) ────────────────────────────────────── */
.order-line {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding: .5rem 0;
  border-bottom: 1px solid #F3F4F6;
  color: var(--text);
}
.addon-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
}
.addon-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; cursor: pointer; }
.addon-info  { flex: 1; display: flex; flex-direction: column; gap: .1rem; }
.addon-name  { font-size: .88rem; font-weight: 600; color: var(--text); }
.addon-desc  { font-size: .78rem; color: var(--text-light); }
.addon-price { font-size: .9rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
.addon-note  { font-size: .78rem; color: var(--text-light); text-align: center; margin-top: .5rem; }

/* ── btn-outline ─────────────────────────────────────────────────────────── */
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.5rem; border-radius: 8px; font-weight: 600;
  font-size: .95rem; font-family: var(--font); cursor: pointer;
  text-decoration: none; transition: all .2s;
  background: transparent; color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ── Product cards (landing page pricing) ────────────────────────────────── */
.pricing-sub  { text-align: center; color: var(--text-light); margin-bottom: 2rem; }
.product-cards {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.product-card {
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: box-shadow .2s;
}
.product-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.product-main  { border-color: var(--blue); box-shadow: 0 4px 20px rgba(37,99,235,.12); }
.product-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700;
  padding: .2rem .9rem; border-radius: 20px; white-space: nowrap;
}
.product-icon      { font-size: 2rem; margin-bottom: .75rem; }
.product-card h3   { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.product-price     { font-size: 2rem; font-weight: 800; color: var(--blue); }
.product-price-note { font-size: .78rem; color: var(--text-light); margin-bottom: 1rem; }

@media (max-width: 760px) {
  .product-cards { grid-template-columns: 1fr; }
}

/* ── Download buttons (PDF + Word side by side) ──────────────────────────── */
.dl-buttons {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}
.dl-buttons .btn { padding: .55rem 1.1rem; font-size: .88rem; }

/* ── Report download bar ──────────────────────────────────────────────────── */
.report-download-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  border-radius: 10px;
  padding: .9rem 1.25rem;
  margin: 0 auto 1.5rem;
  max-width: 680px;
  flex-wrap: wrap;
}
.report-download-label {
  font-weight: 600;
  color: #065F46;
  font-size: .95rem;
  flex: 1;
}


/* ── Generation Loading Screen ──────────────────────────────────────────── */
.gen-overlay {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDFA 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.gen-box {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  padding: 3rem 2.5rem;
  max-width: 460px;
  width: 90%;
  text-align: center;
}
.gen-logo {
  font-size: 1.2rem; font-weight: 800; color: #1F2937;
  margin-bottom: 1.5rem; letter-spacing: -.02em;
}
.gen-logo span { color: #2563EB; }
.gen-spinner {
  width: 52px; height: 52px;
  border: 4px solid #E5E7EB;
  border-top-color: #2563EB;
  border-radius: 50%;
  animation: spin .9s linear infinite;
  margin: 0 auto 1.25rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.gen-title { font-size: 1.3rem; font-weight: 700; color: #1F2937; margin-bottom: .35rem; }
.gen-sub   { font-size: .85rem; color: #9CA3AF; margin-bottom: 1.75rem; }
.gen-steps { text-align: left; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.gen-step {
  font-size: .88rem; color: #9CA3AF;
  padding: .4rem .75rem;
  border-radius: 8px;
  transition: all .3s;
}
.gen-step.active {
  color: #2563EB; font-weight: 600;
  background: #EFF6FF;
}
.gen-step.done  { color: #10B981; font-weight: 500; }
.gen-bar-outer  {
  height: 8px; background: #F3F4F6; border-radius: 99px;
  overflow: hidden; margin-bottom: .75rem;
}
.gen-bar-inner  {
  height: 100%; width: 8%;
  background: linear-gradient(90deg, #2563EB, #0D9488);
  border-radius: 99px;
  transition: width .8s ease;
}
.gen-eta { font-size: .8rem; color: #6B7280; }

/* ── Email Send Section ──────────────────────────────────────────────────── */
.email-send-section {
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  padding: 1.75rem;
  text-align: center;
  margin: 2rem 0;
}
.email-send-icon { font-size: 2rem; margin-bottom: .5rem; }
.email-send-section h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
.email-send-section p  { font-size: .9rem; color: #6B7280; margin-bottom: 1rem; }
.email-send-row {
  display: flex; gap: .75rem;
  max-width: 480px; margin: 0 auto;
}
.email-send-input {
  flex: 1; padding: .7rem 1rem;
  border: 1.5px solid #E5E7EB; border-radius: 8px;
  font-size: .95rem; font-family: var(--font);
  outline: none; transition: border-color .2s;
}
.email-send-input:focus { border-color: #2563EB; }
.email-send-status {
  font-size: .85rem; margin-top: .75rem;
  padding: .5rem 1rem; border-radius: 8px;
}
.email-send-status.success { background: #F0FDF4; color: #166534; }
.email-send-status.error   { background: #FEF2F2; color: #991B1B; }

@media (max-width: 500px) {
  .email-send-row { flex-direction: column; }
}
