/* ============================================================
   HEUS Google Review Link Generator
   Brand: dark navy + teal/purple, Playfair + Noto Serif + Manrope
   ============================================================ */

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

:root {
  --primary: #2dd4bf;
  --secondary: #a78bfa;
  --bg: #0a0f1e;
  --surface: #111827;
  --input-bg: #1a2235;
  --border: #1e2d45;
  --text: #dee1f7;
  --text-bright: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --danger: #ef4444;
  --amber: #fbbf24;
  --gold: #fde047;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Serif', serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }

/* ---------- Background ---------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  pointer-events: none;
}
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.2;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.6; }
}
.top-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 60vh;
  background: radial-gradient(circle at center,
    rgba(45, 212, 191, 0.15),
    rgba(167, 139, 250, 0.05) 40%,
    transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Nav ---------- */
.top-nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px clamp(20px, 4vw, 60px);
  max-width: 1400px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  background: linear-gradient(135deg, #f5f0e8, #2dd4bf, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-divider { color: var(--text-muted); font-weight: 300; }
.brand-section {
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}
.nav-back {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.nav-back:hover { color: var(--primary); }

/* ---------- Layout ---------- */
.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 60px) 80px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 40px 0 50px;
  max-width: 820px;
  margin: 0 auto;
}
.section-label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 20px;
}
.section-label.teal { color: var(--primary); }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.1;
  color: white;
  margin-bottom: 24px;
}
.hero-title .accent {
  background: linear-gradient(135deg, #2dd4bf, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}
.hero-sub {
  font-family: 'Noto Serif', serif;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Search ---------- */
.search-panel {
  max-width: 700px;
  margin: 0 auto 60px;
  position: relative;
}
.search-wrap {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.2s;
}
.search-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(45,212,191,0.12), 0 12px 40px rgba(0,0,0,0.4);
}
.search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: white;
  padding: 22px 96px 22px 60px;
}
.search-input::placeholder { color: var(--text-muted); font-style: italic; }
.search-spinner {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  display: none;
  animation: spin 0.9s linear infinite;
}
.search-spinner.is-loading { display: block; }

.location-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.location-btn svg { width: 18px; height: 18px; }
.location-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.location-btn.is-active {
  background: linear-gradient(135deg, rgba(45,212,191,0.2), rgba(167,139,250,0.12));
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px rgba(45,212,191,0.3);
}
.location-btn.is-loading {
  pointer-events: none;
  opacity: 0.5;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.4);
  max-height: 380px;
  overflow-y: auto;
  z-index: 5;
}
.search-dropdown[hidden] { display: none; }

.dropdown-item {
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover,
.dropdown-item.is-active {
  background: rgba(45,212,191,0.06);
}
.dropdown-item-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: white;
}
.dropdown-item-addr {
  font-family: 'Noto Serif', serif;
  font-size: 13px;
  color: var(--text-dim);
}
.dropdown-empty,
.dropdown-error {
  padding: 18px 20px;
  font-family: 'Noto Serif', serif;
  font-size: 14px;
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
}
.dropdown-error { color: var(--danger); }
.dropdown-mock-tag {
  background: rgba(251,191,36,0.12);
  color: var(--amber);
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.search-hint {
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  font-style: italic;
}

/* ---------- Empty state ---------- */
.empty-state {
  margin: 30px 0 80px;
}
.empty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .empty-grid { grid-template-columns: 1fr; }
}
.empty-step {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.empty-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dd4bf, #a78bfa);
  color: var(--bg);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.empty-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: white;
  margin-bottom: 6px;
}
.empty-text {
  font-family: 'Noto Serif', serif;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---------- Result panel ---------- */
.result-panel[hidden] { display: none; }

.biz-card {
  position: relative;
  padding: 1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(45,212,191,0.35), rgba(167,139,250,0.25), rgba(45,212,191,0.35));
  margin-bottom: 30px;
}
.biz-card-inner {
  background: linear-gradient(135deg, #0d1f3c, #0a1628);
  border-radius: 19px;
  padding: 28px 32px;
}
.biz-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.search-again-link {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}
.search-again-link:hover { color: var(--primary); }
.biz-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  color: white;
  margin: 6px 0 8px;
  line-height: 1.2;
}
.biz-address {
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.biz-meta {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.biz-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: white;
  font-size: 14px;
}
.biz-rating .star { color: var(--gold); font-size: 16px; }
.biz-rating .muted { color: var(--text-muted); font-weight: 500; }
.biz-maps-link {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.result-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
@media (max-width: 880px) {
  .result-grid { grid-template-columns: 1fr; }
}
.result-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}
.block-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: white;
  line-height: 1.4;
  margin-bottom: 22px;
}

/* URL row */
.url-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.url-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-bright);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  font-weight: 500;
}
.url-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,212,191,0.1); }

.action-btn {
  background: linear-gradient(135deg, #2dd4bf, #34d399);
  color: var(--bg);
  border: none;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 18px rgba(45,212,191,0.2);
}
.action-btn svg { width: 16px; height: 16px; }
.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45,212,191,0.35);
}
.copy-btn.is-copied {
  background: linear-gradient(135deg, #1f2937, #111827);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.ghost-btn {
  background: transparent;
  color: var(--text-bright);
  border: 1px solid var(--border);
  box-shadow: none;
}
.ghost-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Share row */
.share-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.share-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.share-link svg { width: 16px; height: 16px; }
.share-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* QR block */
.qr-block { display: flex; flex-direction: column; }
.qr-wrap {
  background: white;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  aspect-ratio: 1;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.qr-code { line-height: 0; }
.qr-code img,
.qr-code canvas { display: block; width: 100% !important; height: auto !important; }

.qr-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #0d1f3c, #0a1628);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 60px;
}
@media (max-width: 720px) {
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
}
.cta-banner-text { flex: 1; }
.cta-banner h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 28px);
  color: white;
  margin: 6px 0 8px;
  line-height: 1.3;
}
.cta-banner p {
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}
.cta-btn {
  background: linear-gradient(135deg, #2dd4bf, #34d399);
  color: var(--bg);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 28px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s;
  box-shadow: 0 4px 22px rgba(45,212,191,0.25);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45,212,191,0.4);
}

/* ---------- Learn sections (shared) ---------- */
.learn-section,
.stats-section,
.mistakes-section,
.faq,
.final-cta {
  margin-bottom: 70px;
}
.learn-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
}
.learn-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  color: white;
  margin: 8px 0 14px;
}
.learn-title .accent {
  background: linear-gradient(135deg, #2dd4bf, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}
.learn-sub {
  font-family: 'Noto Serif', serif;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---------- How-to grid ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.how-grid > .how-card:first-child { grid-column: span 2; }
@media (max-width: 720px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-grid > .how-card:first-child { grid-column: span 1; }
}
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  transition: all 0.3s;
  position: relative;
}
.how-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(45,212,191,0.12);
}
.how-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(45,212,191,0.2), rgba(167,139,250,0.15));
  border: 1px solid var(--border);
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.how-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  color: white;
  line-height: 1.3;
  margin-bottom: 10px;
}
.how-card p {
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 880px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}
.stat-tile {
  background: linear-gradient(135deg, #0d1f3c, #0a1628);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
}
.stat-big {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1;
  background: linear-gradient(135deg, #2dd4bf, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  padding-bottom: 0.1em;
  display: inline-block;
}
.stat-text {
  font-family: 'Noto Serif', serif;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---------- Mistakes ---------- */
.mistakes-list {
  list-style: none;
  padding: 0;
  max-width: 820px;
  margin: 0 auto;
  counter-reset: mistake;
}
.mistakes-list li {
  counter-increment: mistake;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px 18px 64px;
  margin-bottom: 12px;
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}
.mistakes-list li::before {
  content: counter(mistake);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.4);
  color: #f87171;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mistakes-list li strong { color: white; font-family: 'Manrope', sans-serif; }

/* ---------- FAQ (same pattern as ROI tool) ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] {
  border-color: rgba(45,212,191,0.4);
  box-shadow: 0 8px 30px rgba(45,212,191,0.08);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: white;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: rgba(45,212,191,0.04); }
.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 1px;
  transition: transform 0.3s;
}
.faq-icon::before {
  top: 50%; left: 0; right: 0; height: 2px;
  transform: translateY(-50%);
}
.faq-icon::after {
  left: 50%; top: 0; bottom: 0; width: 2px;
  transform: translateX(-50%);
}
.faq-item[open] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}
.faq-answer {
  padding: 0 24px 22px;
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

/* ---------- Final CTA banner ---------- */
.final-cta-inner {
  background: linear-gradient(135deg, #0d1f3c, #0a1628);
  border: 1px solid rgba(45,212,191,0.3);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 12px 40px rgba(45,212,191,0.08);
}
@media (max-width: 720px) {
  .final-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
  }
}
.final-cta-text { flex: 1; }
.final-cta h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  color: white;
  margin: 6px 0 12px;
  line-height: 1.2;
}
.final-cta p {
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #111827, #0a0f1e);
  border: 1px solid var(--primary);
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(45,212,191,0.25);
  z-index: 100;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.toast[hidden] { display: none; }
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Modal (reused from ROI tool) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: linear-gradient(160deg, #111827, #0a0f1e);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(45,212,191,0.1);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.is-open .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-close:hover {
  background: rgba(239,68,68,0.08);
  border-color: var(--danger);
  color: var(--danger);
}
.modal-card h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 26px;
  color: white;
  line-height: 1.25;
  margin: 8px 0 10px;
}
.modal-sub {
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.lead-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s;
  margin-bottom: 18px;
}
.lead-option:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25d366;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}
.lead-option .option-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.lead-option .option-icon svg { width: 24px; height: 24px; }
.lead-option .option-body { flex: 1; }
.lead-option .option-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: white;
  margin-bottom: 3px;
}
.lead-option .option-sub {
  font-family: 'Noto Serif', serif;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}
.lead-option .option-arrow {
  color: #25d366;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.lead-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
  color: var(--text-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.lead-divider::before,
.lead-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.form-row input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s;
}
.form-row input::placeholder { color: var(--text-muted); }
.form-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.12);
}
.form-row input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.form-submit {
  background: linear-gradient(135deg, #2dd4bf, #34d399);
  color: var(--bg);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 18px rgba(45,212,191,0.25);
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45,212,191,0.4);
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-hint {
  font-family: 'Noto Serif', serif;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
  font-style: italic;
}
.modal-success,
.modal-error { text-align: center; padding: 20px 0 10px; }
.success-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dd4bf, #34d399);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 30px rgba(45,212,191,0.45);
}
.success-circle svg { width: 32px; height: 32px; }
.modal-success p,
.modal-error p {
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  color: var(--text-dim);
  margin: 8px 0 22px;
  line-height: 1.55;
}
.modal-error h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: white;
  margin-bottom: 8px;
}
.modal-error a { color: var(--primary); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer-brand {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
}
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--primary); }

/* ---------- Print stylesheet for the QR card ---------- */
@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body {
    background: white !important;
    overflow: visible !important;
  }
  body > *:not(.print-card) { display: none !important; }
  .print-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40mm 30mm;
    background: white !important;
    color: #0a0f1e !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    text-align: center;
  }
  .print-card-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 48px;
    color: #0a0f1e;
    margin-bottom: 8px;
  }
  .print-card-sub {
    font-family: 'Noto Serif', serif;
    font-size: 22px;
    color: #475569;
    font-style: italic;
    margin-bottom: 24px;
  }
  .print-card-biz {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 28px;
    color: #0d9488;
    margin-bottom: 30px;
  }
  .print-card-qr {
    width: 280px;
    height: 280px;
    margin: 0 auto 24px;
  }
  .print-card-qr img,
  .print-card-qr canvas {
    width: 100% !important;
    height: 100% !important;
  }
  .print-card-stars {
    font-size: 36px;
    color: #fde047;
    letter-spacing: 6px;
    margin-bottom: 12px;
  }
  .print-card-cta {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .print-card-footer {
    position: absolute;
    bottom: 20mm;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    color: #94a3b8;
  }
}

/* Off-screen wrapper for the print card (only visible during print) */
.print-card-wrap {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.print-card { background: white; }
