/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #f8fafc;
  --bg-warm: #fefcf9;
  --panel: #ffffff;
  --panel-glass: rgba(255, 255, 255, 0.72);
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-light: #f1f5f9;
  --brand: #059669;
  --brand-light: #d1fae5;
  --brand-dark: #047857;
  --brand-glow: rgba(5, 150, 105, 0.15);
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 40px rgba(5, 150, 105, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
img { max-width: 100%; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s ease-out both;
}
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }

/* ===== TOP BAR / NAV ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 10px 24px;
  background: var(--panel-glass);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition);
}

.topbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Inline search in topbar --- */
.topbar-search {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 4px 0 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.topbar-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.topbar-search-icon {
  flex-shrink: 0;
  color: var(--muted);
}

.topbar-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-size: 0.9rem;
  margin: 0;
}

.topbar-search input:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}

.topbar-search button {
  padding: 6px 16px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
}

.brand-icon { font-size: 1.4rem; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
}

.nav a:hover {
  color: var(--ink);
  background: var(--line-light);
}

.nav-cta {
  background: var(--brand) !important;
  color: white !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--brand-dark) !important;
  color: white !important;
}

/* ===== PAGE CONTAINER ===== */
.page {
  width: min(1200px, calc(100% - 32px));
  margin: 32px auto 0;
}

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 48px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(5, 150, 105, 0.08), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(245, 158, 11, 0.08), transparent 50%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--brand-glow), transparent 70%);
  pointer-events: none;
}

.hero.compact {
  grid-template-columns: 1fr auto;
  align-items: start;
  padding: 40px 40px;
}

.hero-content { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: 16px;
  color: var(--ink);
}

.lead {
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--brand-light);
  color: var(--brand-dark);
}

/* ===== SEARCH BOX ===== */
.search {
  align-self: center;
  position: relative;
  z-index: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition);
}

.search:focus-within {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--brand);
}

.search-icon-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.search-icon-label svg { color: var(--brand); }

.search-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

input, textarea, select, button { font: inherit; }

input, textarea, select {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

input::placeholder, textarea::placeholder {
  color: #94a3b8;
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--brand);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

button:hover, .button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

button:active, .button:active {
  transform: translateY(0);
}

.button.secondary {
  background: var(--panel);
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.button.secondary:hover {
  background: var(--line-light);
  border-color: var(--muted);
}

/* ===== CATEGORY STRIP ===== */
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--line);
  background: var(--panel);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: all var(--transition);
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-light);
  transform: translateY(-1px);
}

.chip.active {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-light);
}

.chip span {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--brand-glow);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-dark);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 60px 0 40px;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  padding: 40px 28px 32px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-align: center;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand-light), rgba(5, 150, 105, 0.06));
  color: var(--brand);
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.feature-card {
  padding: 28px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-card.accent {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.06), rgba(245, 158, 11, 0.06));
  border-color: rgba(5, 150, 105, 0.2);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-light);
  color: var(--brand);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* ===== RESULTS SECTION ===== */
.results-section { margin-bottom: 48px; }

.results-header {
  margin-bottom: 20px;
}

.results-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.results-count {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.business-card, .empty-state {
  padding: 24px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.business-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 8px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.wa-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #25d366;
  color: white;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.wa-button:hover {
  background: #128c7e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.card-desc {
  color: var(--ink-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.meta-list {
  padding-left: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.85rem;
}

.meta-list li {
  padding: 3px 0;
}

.meta-list strong {
  color: var(--ink-secondary);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tags span {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  color: var(--ink-secondary);
}

.empty-state p {
  color: var(--muted);
}

/* ===== FORM PAGES ===== */
.form-page {
  display: grid;
  gap: 24px;
}

.payment-box, .stack-form {
  padding: 28px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.payment-box {
  display: grid;
  gap: 12px;
}

.payment-box .button {
  justify-self: start;
}

.payment-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  word-break: break-all;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.full { grid-column: 1 / -1; }

.stack-form {
  display: grid;
  gap: 18px;
}

.signup-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.signup-summary-item {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.signup-summary-item span {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-dark);
}

.signup-summary-item strong {
  font-size: 1rem;
  color: var(--ink);
}

.signup-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-chat-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(16, 185, 129, 0.04));
  border: 1.5px solid rgba(5, 150, 105, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-chat-box h2 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.contact-chat-box p {
  margin: 0;
  color: var(--muted);
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-weight: 500;
}

.alert.success {
  border: 1.5px solid rgba(5, 150, 105, 0.4);
  background: rgba(5, 150, 105, 0.08);
  color: var(--brand-dark);
}

.alert.error {
  border: 1.5px solid rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.06);
  color: #991b1b;
}

.payment-result-card {
  padding: 32px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.payment-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.payment-result-card h2 {
  margin: 16px 0 8px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.payment-result-card > p {
  color: var(--muted);
}

.payment-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.payment-result-item {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.payment-result-item span {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-dark);
}

.payment-result-item strong {
  font-size: 1rem;
  color: var(--ink);
  word-break: break-word;
}

.payment-result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 24px;
  padding: 40px 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  font-size: 1.1rem;
  color: var(--brand-dark);
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.footer-links a:hover {
  color: var(--brand);
  border-color: var(--brand-light);
  background: var(--brand-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .topbar-row {
    flex-wrap: wrap;
  }

  .topbar-search {
    order: 3;
    flex-basis: 100%;
  }

  .hero,
  .hero.compact {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    text-align: center;
  }

  .hero::before { display: none; }

  .steps-grid,
  .features-grid,
  .form-grid,
  .signup-summary,
  .compact-grid,
  .payment-result-grid {
    grid-template-columns: 1fr;
  }

  .contact-chat-box,
  .contact-hero-actions {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .search-row {
    flex-direction: column;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .cta-builder {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-builder-copy p {
    max-width: none;
  }

  .cta-builder .cta-actions {
    justify-content: center;
  }

  h1 {
    max-width: none;
  }

  .hero-badges {
    justify-content: center;
  }
}

/* ===== HOME HIGHLIGHT / CTA ===== */
.home-highlight {
  margin-bottom: 32px;
}

.highlight-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--brand-light), rgba(5, 150, 105, 0.04));
  border: 1.5px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius-lg);
}

.highlight-box h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.highlight-box p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.howto-details {
  padding: 40px 0;
  text-align: center;
}

.howto-cta {
  padding: 0 0 48px;
}

.home-cta {
  padding: 0 0 56px;
}

.cta-box {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.06), rgba(245, 158, 11, 0.06));
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.cta-box h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.cta-box p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.cta-builder {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
  text-align: left;
}

.cta-builder-copy p {
  max-width: 34rem;
}

.cta-builder-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.cta-preview {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1.5px solid var(--line);
}

.cta-preview-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.cta-preview-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1.5px solid var(--line);
  font-size: 1rem;
}

.cta-preview-prefix {
  color: var(--muted);
}

.cta-preview-link strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.cta-preview-note {
  margin: 12px 0 0;
  font-size: 0.92rem !important;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-builder .cta-actions {
  justify-content: flex-start;
}

.is-disabled {
  opacity: 0.55;
  pointer-events: auto;
}

.nav-active {
  color: var(--brand-dark) !important;
  font-weight: 600 !important;
}

/* ===== NEWEST CLIENTS ===== */
.newest-section {
  text-align: center;
  margin-bottom: 40px;
}

.newest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.newest-card {
  position: relative;
  padding: 28px 24px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition);
}

.newest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

/* ===== CARD QR CODE ===== */
.card-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 16px 0 4px;
  border-top: 1px dashed var(--line);
}

.card-qr img {
  width: 160px;
  height: 160px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.card-qr-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .2px;
}

@media (max-width: 480px) {
  .card-qr img {
    width: 140px;
    height: 140px;
  }
}

.newest-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.newest-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.newest-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.newest-card .wa-button {
  align-self: center;
}

/* ===== STATS SECTION ===== */
.stats-section {
  text-align: center;
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.stats-card {
  padding: 28px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stats-card h3 {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: stats;
}

.stats-list li {
  counter-increment: stats;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
}

.stats-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stats-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.stats-item::before {
  content: counter(stats);
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.stats-cat {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.stats-hits {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--line-light);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .highlight-box {
    flex-direction: column;
    text-align: center;
  }

  .newest-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 8px 12px;
  }

  .topbar-search input { font-size: 0.85rem; }

  .nav { gap: 4px; }
  .nav a { padding: 6px 10px; font-size: 0.8rem; }
}

/* ===== ANIMATED URL DEMO BAR ===== */
.url-demo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.url-bar {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #1e293b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  font-family: 'Inter', system-ui, sans-serif;
}

.url-bar-dots {
  display: flex;
  gap: 6px;
  padding: 10px 14px 0;
}

.url-bar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.url-bar-dots span:nth-child(1) { background: #ef4444; }
.url-bar-dots span:nth-child(2) { background: #eab308; }
.url-bar-dots span:nth-child(3) { background: #22c55e; }

.url-bar-field {
  display: flex;
  align-items: center;
  padding: 12px 16px 14px;
  font-size: 1.05rem;
  letter-spacing: .3px;
}

.url-prefix {
  color: #94a3b8;
}

.url-typed {
  color: #f8fafc;
  font-weight: 600;
}

.url-cursor {
  color: #38bdf8;
  font-weight: 300;
  animation: blink .6s step-end infinite;
  margin-left: 1px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.url-redirect-flash {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: #d1fae5;
  background: #065f46;
  font-size: .88rem;
  font-weight: 500;
  transition: max-height .35s ease, opacity .35s ease, padding .35s ease;
}

.url-redirect-flash.active {
  max-height: 48px;
  opacity: 1;
  padding: 10px 16px;
}

.url-redirect-flash svg {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .url-bar { max-width: 100%; }
  .url-bar-field { font-size: .92rem; }
}
