/* ─── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --navy:      #0d1628;
  --navy-card: #1a2d4a;
  --navy-mid:  #223c60;
  --navy-deep: #2d5080;
  --orange:    #f5a500;
  --orange-dk: #e69500;
  --muted:     #6a8aaa;
  --text:      #edf2f8;
  --text-dim:  #b4c8de;
  --border:    #253d62;
  --radius:    12px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

img { display: block; max-width: 100%; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary  { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-dk); text-decoration: none; color: var(--navy); }
/* Override any link colour inheritance — navbar-links a has higher specificity otherwise */
a.btn-primary, a.btn-primary:hover,
a.btn-outline, a.btn-outline:hover { text-decoration: none; }
a.btn-primary, a.btn-primary:hover { color: var(--navy); }
/* Extra specificity: navbar anchor btn-primary must be navy regardless of .navbar-links a cascade */
.navbar-links a.btn-primary, .navbar-links a.btn-primary:hover { color: var(--navy); }
a.btn-outline { color: var(--orange); }
a.btn-outline:hover { color: var(--navy); }

.btn-ghost    { background: transparent; color: var(--text-dim); }
.btn-ghost:hover { background: var(--navy-mid); color: var(--text); text-decoration: none; }

.btn-outline  { background: transparent; color: var(--orange); border: 1.5px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: var(--navy); text-decoration: none; }

.btn-danger   { background: #b91c1c; color: #fff; }
.btn-danger:hover { background: #991b1b; }

.btn-sm  { padding: 6px 14px; font-size: 13px; }
.btn-lg  { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ─── Public navbar ──────────────────────────────────────────────────────── */
.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  height: 260px;
  background: rgba(13,22,40,0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.navbar-brand { display: flex; align-items: center; justify-content: center; grid-column: 2; }
.navbar-brand img { height: 240px; width: auto; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-column: 3;
  justify-self: end;
}

.navbar-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.navbar-links a:hover { color: var(--text); text-decoration: none; }

/* ─── Hamburger toggle (hidden on desktop) ───────────────────────────────── */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
/* Animate to X when open */
.navbar-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Container ──────────────────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(circle, rgba(245,165,0,0.025) 1px, transparent 1px),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(245,165,0,0.09) 0%, transparent 65%),
    var(--navy);
  background-size: 36px 36px, 100% 100%, 100% 100%;
  min-height: calc(100vh - 260px);
  display: flex;
  align-items: center;
  padding: 60px 24px;
  text-align: center;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

/* Two-column split layout (used when hero-visual is present) */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.hero-text {
  text-align: left;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--navy-mid);
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(245,165,0,0.2);
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* Left-aligned variant used inside hero-text */
.hero-text .hero-sub {
  margin-left: 0;
  margin-right: 0;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-text .hero-ctas {
  justify-content: flex-start;
}

.hero-note {
  font-size: 13px;
  color: var(--muted);
}

/* ─── Trust bar ──────────────────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  margin-top: 32px;
}

/* Center-align on centered hero */
.hero-inner .trust-bar {
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

.trust-check {
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

/* ─── Phone frame wrapper ────────────────────────────────────────────────── */
.phone-frame {
  position: relative;
  background: linear-gradient(160deg, #1c1c1e 0%, #2c2c2e 50%, #1c1c1e 100%);
  border: 2.5px solid #3a3a3c;
  border-radius: 56px;
  padding: 20px 14px 28px;
  max-width: 360px;
  margin: 0 auto;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 64px 128px rgba(0,0,0,0.72),
    0 0 80px rgba(245,165,0,0.06);
  transform: perspective(1400px) rotateY(-10deg) rotateX(4deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.phone-frame:hover {
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 72px 144px rgba(0,0,0,0.65),
    0 0 100px rgba(245,165,0,0.09);
}

/* Dynamic island */
.phone-notch {
  width: 96px;
  height: 26px;
  background: #000;
  border-radius: 14px;
  margin: 0 auto 14px;
}

/* ─── Card mockup (hero visual) ──────────────────────────────────────────── */
.card-mockup {
  background: linear-gradient(160deg, #1e3255 0%, #131f3a 100%);
  border: 1px solid rgba(245,165,0,0.25);
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Remove transform when inside phone frame */
.phone-frame .card-mockup {
  transform: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.card-mockup-stripe {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), #e69500);
  border-radius: 2px;
  margin-bottom: 28px;
}

.card-mockup-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #e69500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 auto 16px;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(245,165,0,0.4);
}

.card-mockup-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.card-mockup-name {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.card-mockup-role {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.card-mockup-company {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

.card-mockup-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.card-mockup-action-btn {
  background: var(--navy);
  border: 1px solid rgba(245,165,0,0.2);
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  font-size: 10px;
  color: var(--text-dim);
  transition: border-color 0.15s, background 0.15s;
}

.card-mockup-action-btn:hover {
  border-color: rgba(245,165,0,0.4);
  background: var(--navy-mid);
}

.card-mockup-action-btn .icon {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.card-mockup-save-btn {
  background: var(--orange);
  color: var(--navy);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  display: block;
  transition: background 0.15s;
}

.card-mockup-save-btn:hover {
  background: var(--orange-dk);
  text-decoration: none;
  color: var(--navy);
}

.card-mockup-powered {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ─── Features ───────────────────────────────────────────────────────────── */
.features {
  padding: 80px 0;
  background: var(--navy-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  text-align: center;
  margin-top: -24px;
  margin-bottom: 40px;
}

.features h2 {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
}

.features-sub {
  text-align: center;
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 48px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--navy-mid);
  border: 1px solid rgba(245,165,0,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245,165,0,0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.feature-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

/* ─── Proof strip ─────────────────────────────────────────────────────────── */
.proof-strip {
  background: var(--navy);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.proof-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 8px 28px;
}
.proof-icon { font-size: 18px; }
.proof-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── How it works ────────────────────────────────────────────────────────── */
.how-it-works {
  padding: 80px 0 72px;
  background: var(--navy);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-it-works h2 {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
}
.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
}
.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}
.step-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.step p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}
.step-connector {
  flex-shrink: 0;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, rgba(245,165,0,0.2) 100%);
  margin-top: 22px;
  align-self: flex-start;
}
.hiw-cta {
  text-align: center;
  margin-top: 48px;
}

/* ─── /create — anonymous card builder ──────────────────────────────────── */
.create-steps {
  display: flex;
  align-items: center;
  gap: 10px;
}
.create-step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
}
.create-step--active { opacity: 1; }
.create-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.create-step--active .create-step-num { background: var(--orange); color: var(--navy); }
.create-step-label { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.create-step--active .create-step-label { color: #fff; }
.create-step-arrow { color: var(--muted); font-size: 16px; }

/* Claim ribbon at bottom of preview */
.card-preview-claim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(245,165,0,0.12), rgba(245,165,0,0.06));
  border-top: 1px solid rgba(245,165,0,0.25);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 14px 16px;
  flex-wrap: wrap;
}
.card-preview-claim-text {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.card-preview-claim-icon { font-size: 22px; flex-shrink: 0; }
.card-preview-claim-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.card-preview-claim-text span {
  font-size: 12px;
  color: var(--text-dim);
  display: block;
}

/* Trust micro strip below preview */
.create-trust {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.create-trust span::before { color: var(--orange); margin-right: 4px; }

/* Auth from-create highlight */
.auth-from-create {
  text-align: center;
  margin-bottom: 8px;
}
.auth-from-create-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.auth-from-create h1 { margin-bottom: 0; }

/* ─── Pricing ────────────────────────────────────────────────────────────── */
.pricing {
  padding: 56px 0 40px;
  background: var(--navy-card);
  border-bottom: 1px solid var(--border);
}

.pricing h2 {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
}

.pricing-sub {
  text-align: center;
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 48px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 840px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.pricing-featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.pricing-featured:hover {
  box-shadow: 0 0 0 1px var(--orange), 0 20px 40px rgba(245,165,0,0.15);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.pricing-plan {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.pricing-price span { font-size: 16px; font-weight: 400; color: var(--muted); }

.pricing-annual { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

.pricing-feature-off { opacity: 0.45; }

/* flex: 1 pushes the CTA button to the bottom of each card */
.pricing-features { margin-bottom: 28px; flex: 1; }
.pricing-features li { font-size: 14px; color: var(--text-dim); padding: 5px 0; }

/* ─── Auth layout ────────────────────────────────────────────────────────── */
.auth-body {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.auth-container {
  width: 100%;
  max-width: 400px;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.auth-logo img { height: 120px; width: auto; }

.auth-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.auth-card--center { text-align: center; }

.auth-icon { font-size: 40px; margin-bottom: 16px; }

.auth-card h1 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.auth-card--center h1 { margin-bottom: 12px; }
.auth-card--center p { color: var(--text-dim); font-size: 15px; margin-bottom: 24px; }

.auth-footer {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}

.auth-footer a { color: var(--orange); }

/* ─── Alerts ─────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-success { background: #14532d; color: #86efac; border: 1px solid #166534; }
.alert-error   { background: #450a0a; color: #fca5a5; border: 1px solid #991b1b; }
.alert-info    { background: #1e3a5f; color: #93c5fd; border: 1px solid #1d4ed8; }

.alert-welcome,
.alert-linked {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  position: relative;
}
.alert-welcome { background: #1a2e1a; color: #86efac; border: 1px solid #166534; }
.alert-linked  { background: #1a2240; color: #a5b4fc; border: 1px solid #3730a3; }
.alert-welcome-icon { font-size: 20px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.alert-dismiss {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  font-size: 14px;
  padding: 0 4px;
  margin-left: auto;
  flex-shrink: 0;
  line-height: 1;
  align-self: center;
}
.alert-dismiss:hover { opacity: 1; }

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--navy-mid);
  border: 1px solid var(--navy-deep);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
}

.form-group input::placeholder { color: var(--muted); }

.form-hint {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

/* ─── Dashboard layout ───────────────────────────────────────────────────── */
.dash-body { background: var(--navy); }
.dash-brand img { height: 100px; width: auto; object-fit: contain; }
.dash-nav-link { font-size: 13px; font-weight: 500; color: var(--text-dim); text-decoration: none; padding: 6px 10px; border-radius: 6px; transition: background .15s, color .15s; }
.dash-nav-link:hover { background: var(--navy-mid); color: var(--text); }
.dash-nav-link--active { color: var(--orange); }

.dash-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 110px;
  background: var(--navy-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.dash-nav .navbar-brand img { height: 100px; width: auto; object-fit: contain; }

.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-account-email {
  font-size: 11px;
  color: var(--muted);
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-layout {
  display: flex;
  min-height: calc(100vh - 110px);
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.dash-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--navy-card);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
}

.dash-plan {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.plan-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.plan-badge--free { background: var(--navy-mid); color: var(--text-dim); }
.plan-badge--pro  { background: var(--orange); color: var(--navy); }

.plan-label { font-size: 12px; color: var(--muted); }

.dash-sidenav { display: flex; flex-direction: column; gap: 4px; }

.dash-sidenav-link {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.dash-sidenav-link:hover,
.dash-sidenav-link.active {
  background: var(--navy-mid);
  color: #fff;
  text-decoration: none;
}

.dash-sidenav-link.disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.badge-pro {
  font-size: 10px;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ─── Dashboard main ─────────────────────────────────────────────────────── */
.dash-main {
  flex: 1;
  padding: 32px 40px;
  min-width: 0;
}

.dash-title { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 6px; }

.dash-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}

.dash-sub a { color: var(--orange); }

/* ─── Card form ──────────────────────────────────────────────────────────── */
.card-form { display: flex; flex-direction: column; gap: 0; }

.form-section {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.form-section h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0 32px;
}

.save-status { font-size: 14px; font-weight: 500; }
.save-status--ok  { color: #86efac; }
.save-status--err { color: #fca5a5; }

/* ─── Upgrade banner ─────────────────────────────────────────────────────── */
.upgrade-banner {
  background: linear-gradient(135deg, #1a2d4e, #111d35);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

.upgrade-inner h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.upgrade-inner ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }

.upgrade-inner li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 4px;
}

.upgrade-inner li::before { content: "✅ "; }

/* ─── Danger zone / Account & Data (v21) ────────────────────────────────── */
/* ── Subscription management zone ─────────────────────────────── */
.sub-manage-zone {
  border: 1px solid #1e3352;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.sub-manage-zone h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.sub-manage-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sub-cancelling-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #1a2c18;
  border: 1px solid #f5a500;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #c8d8b8;
  line-height: 1.5;
}
.sub-cancelling-banner strong { color: #f5a500; }

/* ── Danger zone ─────────────────────────────────────────────────── */
.danger-zone {
  border: 1px solid #3d1515;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}

.danger-zone h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.danger-zone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.danger-zone-actions > div {
  flex: 1;
  min-width: 220px;
}

.danger-zone-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0 0 4px;
}

.danger-zone-label--red { color: #fca5a5; }

.danger-zone-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

/* ─── Pending deletion banner ───────────────────────────────────────────── */
.alert-deletion-pending {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(127, 29, 29, 0.18);
  border: 1px solid #7f1d1d;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #fca5a5;
}

/* ─── Delete confirmation modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-box {
  background: #142238;
  border: 1px solid #253d62;
  border-radius: 16px;
  padding: 32px;
  max-width: 460px;
  width: 100%;
}

.modal-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fca5a5;
  margin: 0 0 14px;
}

.modal-box p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}

.modal-box ul {
  margin: 0 0 16px 20px;
  padding: 0;
}

.modal-box ul li {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}

.modal-text-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: #0d1628;
  border: 1px solid #253d62;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 20px;
  font-family: inherit;
}

.modal-text-input:focus {
  outline: none;
  border-color: var(--orange);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-danger:disabled { opacity: 0.45; cursor: not-allowed; }

/* ─── Dashboard editor split ────────────────────────────────────────────── */
.dash-editor {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.dash-form-col { min-width: 0; }

.dash-preview-col {
  position: sticky;
  top: 126px;
  max-height: calc(100vh - 142px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.preview-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-align: center;
}

/* ─── Live card preview panel ────────────────────────────────────────────── */
.card-preview {
  background: #1a2d4a;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.card-preview-header {
  background: linear-gradient(135deg, #0d1628, #1a3c60);
  padding: 20px 16px 16px;
  text-align: center;
}

.card-preview-photo-wrap { margin-bottom: 10px; }

.card-preview-photo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f5a500;
}

.card-preview-initials {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #f5a500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #0d1628;
  margin: 0 auto;
}

.card-preview-name    { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 3px; min-height: 22px; }
.card-preview-role    { font-size: 13px; color: #f5a500; margin-bottom: 2px; min-height: 16px; }
.card-preview-company { font-size: 12px; color: var(--muted); min-height: 16px; }

.card-preview-actions {
  padding: 10px 14px;
  display: grid;
  gap: 6px;
}

.card-preview-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-mid);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border: none;
}
.card-preview-btn.pv-primary  { background: #f5a500; color: #0d1628; }
.card-preview-btn.pv-apple    { background: #000; color: #fff; }
.card-preview-btn.pv-google   { background: #fff; color: #202124; }
.card-preview-btn svg         { width: 18px; height: 18px; flex-shrink: 0; }

.card-preview-footer {
  padding: 11px 18px;
  border-top: 1px solid #1a2d4e;
  text-align: center;
  font-size: 11px;
  color: #4a6585;
}

.preview-share-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  justify-content: center;
}

.preview-share-link {
  font-size: 12px;
  color: var(--orange);
  text-decoration: none;
  background: var(--navy-card);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 6px;
  transition: background 0.15s;
}
.preview-share-link:hover { background: var(--navy-mid); }

/* ─── Dashboard: wallet pass preview ─────────────────────────────────────── */
.wallet-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}
.wallet-tab {
  flex: 1;
  padding: 7px 10px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.wallet-tab--active {
  background: var(--navy-mid);
  color: #fff;
}

/* ── Apple Wallet pass mockup ── */
.wpass-wrap {
  perspective: 900px;
  margin-bottom: 10px;
}
.wpass-scene {
  position: relative;
  width: 100%;
  /* Height set by .wpass-face */
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
}
.wpass-scene.is-flipped {
  transform: rotateY(180deg);
}
.wpass-face {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.wpass-front {
  background: rgb(13, 22, 40);
  color: #fff;
}
/* Theme overrides for live preview */
.wpass-front.theme-midnight { background: linear-gradient(135deg,#1a0a2e,#2d1a4e); }
.wpass-front.theme-forest   { background: linear-gradient(135deg,#0d2818,#1a4e2d); }
.wpass-front.theme-crimson  { background: linear-gradient(135deg,#2b0a0a,#4e1a1a); }
.wpass-front.theme-ocean    { background: linear-gradient(135deg,#0a1f2b,#1a3d4e); }
.wpass-front.theme-slate    { background: linear-gradient(135deg,#1a1f2e,#2d3348); }
.wpass-front.theme-navy     { background: linear-gradient(135deg,#0d1628,#1a2d4e); }
.wpass-back {
  position: absolute;
  inset: 0;
  background: #f2f2f7;
  color: #1c1c1e;
  transform: rotateY(180deg);
  overflow-y: auto;
}

/* Pass header row: logo+logoText | thumbnail */
.wpass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.wpass-logo-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.wpass-logo {
  height: 36px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}
.wpass-logo-text {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
}
.wpass-thumb-wrap {
  flex-shrink: 0;
}
.wpass-thumb {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.15);
}
.wpass-thumb-init {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f5a500;
  color: #0d1628;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

/* Pass field areas */
.wpass-body {
  padding: 8px 12px 4px;
}
.wpass-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgb(245, 165, 0);
  text-transform: uppercase;
  margin-bottom: 1px;
}
.wpass-primary { margin-bottom: 6px; }
.wpass-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 24px;
}
.wpass-secondary { margin-bottom: 6px; }
.wpass-title {
  font-size: 13px;
  color: #fff;
  min-height: 17px;
}
.wpass-aux {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}
.wpass-aux-field {}
.wpass-small {
  font-size: 9px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 12px;
}

/* QR / barcode area */
.wpass-barcode-area {
  background: #fff;
  border-radius: 10px;
  margin: 4px 12px 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.wpass-qr-svg {
  width: 100px;
  height: 100px;
}
.wpass-qr-label {
  font-size: 9px;
  color: #8e8e93;
  text-align: center;
}

/* Pass back face */
.wpass-back-title {
  font-size: 11px;
  font-weight: 700;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 14px 14px 6px;
  border-bottom: 1px solid #e5e5ea;
}
.wpass-back-field {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e5ea;
}
.wpass-back-field-label {
  font-size: 11px;
  color: #8e8e93;
  margin-bottom: 2px;
}
.wpass-back-field-value {
  font-size: 14px;
  color: #1c1c1e;
  word-break: break-all;
}
.wpass-back-empty {
  padding: 20px 14px;
  color: #8e8e93;
  font-size: 13px;
  text-align: center;
}

/* Flip button */
.wpass-flip-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 7px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: center;
}
.wpass-flip-btn:hover { background: var(--navy-mid); color: #fff; }

/* Bottom-left card icon in wpass-barcode-area */
.wpass-barcode-area {
  position: relative;
}
.wpass-card-icon {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  color: #8e8e93;
  opacity: 0.7;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wpass-card-icon:hover { opacity: 1; }
.wpass-card-icon svg { width: 20px; height: 20px; }

/* ── Google Wallet pass mockup ── */
.gpass-wrap { margin-bottom: 10px; }

/* Google pass flip (mirrors Apple Wallet structure) */
.gpass-scene {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
}
.gpass-scene.is-flipped {
  transform: rotateY(180deg);
}
.gpass-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.gpass-front {}
.gpass-back {
  position: absolute;
  inset: 0;
  background: #f2f2f7;
  color: #1c1c1e;
  border-radius: 16px;
  transform: rotateY(180deg);
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
}

.gpass {
  border-radius: 16px;
  overflow: hidden;
  background: #0d1628;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
}
.gpass-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 8px;
  background: rgba(255,255,255,.04);
}
.gpass-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}
.gpass-card-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
}
.gpass-hero {
  height: 80px;
  background: linear-gradient(135deg, #1a2d4e, #0d1628);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gpass-hero-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}
.gpass-hero-init {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f5a500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #0d1628;
}
.gpass-body {
  padding: 10px 14px 6px;
}
.gpass-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  min-height: 22px;
}
.gpass-sub {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-bottom: 8px;
  min-height: 16px;
}
.gpass-fields {
  display: grid;
  gap: 4px;
}
.gpass-field {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
}
.gpass-field-label {
  color: rgba(255,165,0,.8);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 52px;
}
.gpass-field-val {
  color: rgba(255,255,255,.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gpass-barcode-area {
  background: #fff;
  border-radius: 10px;
  margin: 6px 12px 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.gpass-qr-label {
  font-size: 9px;
  color: #8e8e93;
}

/* ─── Wallet buttons on public card page ─────────────────────────────────── */
.btn-wallet-apple              { background: #000 !important; color: #fff !important; }
.btn-wallet-apple:hover        { background: #1c1c1e !important; }
.btn-wallet-google             { background: #fff !important; color: #202124 !important; }
.btn-wallet-google:hover       { background: #f1f3f4 !important; }
.btn-wallet-google .btn-icon-g { display: flex; gap: 0; }

/* ─── Landing page phone mockup wallet pills ─────────────────────────────── */
.card-mockup-wallet-row {
  display: flex;
  gap: 5px;
  padding: 4px 10px 10px;
  justify-content: center;
}

.card-mockup-wallet-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}
.card-mockup-wallet-pill--apple  { background: #000; color: #fff; }
.card-mockup-wallet-pill--google { background: #fff; color: #202124; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  padding: 40px 24px 24px;
  text-align: left;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 28px;
}

.footer-brand img {
  height: 80px;
  width: auto;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  max-width: 240px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: var(--orange);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-ico {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  background: var(--navy-mid);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.footer-ico a { color: var(--muted); }
.footer-ico a:hover { color: var(--orange); text-decoration: none; }

.footer-compliance {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Legacy: keep simple footer link colour for pages not using multi-col footer */
.footer a { color: var(--muted); }
.footer a:hover { color: var(--orange); }

/* ─── Public card page ───────────────────────────────────────────────────── */
.public-card-body {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 60px;
}

.public-card {
  width: 100%;
  max-width: 400px;
}

.public-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.public-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dk));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 auto 16px;
}

.public-avatar img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
}

.public-name {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.public-role { font-size: 15px; color: var(--text-dim); margin-bottom: 4px; }
.public-company { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.public-bio {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 24px;
  text-align: center;
}

.public-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.public-link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.public-link-btn:hover {
  background: var(--navy-mid);
  border-color: var(--navy-deep);
  color: var(--text);
  text-decoration: none;
}

.public-link-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.public-save-btn {
  width: 100%;
  margin-bottom: 20px;
}

.public-powered {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.public-powered a { color: var(--muted); }
.public-powered a:hover { color: var(--orange); }

/* ─── NFC badge ──────────────────────────────────────────────────────────── */
.nfc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.nfc-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Hero split collapses to single column, no full-height lock */
  .hero {
    min-height: unset;
    padding: 80px 24px 60px;
    align-items: flex-start;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-text { text-align: center; }
  .hero-text .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-text .hero-ctas { justify-content: center; }
  .hero-text .trust-bar { justify-content: center; flex-wrap: wrap; }

  /* Show card mockup below text on small screens — smaller for visual impact */
  .hero-visual { display: flex; justify-content: center; margin-top: 40px; }
  .phone-frame { transform: scale(0.72); transform-origin: top center; margin-bottom: -60px; }
}

@media (max-width: 768px) {
  .dash-layout { flex-direction: column; }

  .dash-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }

  .dash-sidenav { flex-direction: row; flex-wrap: wrap; gap: 8px; }

  .dash-main { padding: 24px 16px; }

  .dash-editor { grid-template-columns: 1fr; }
  .dash-preview-col { position: static; order: -1; }

  .form-row { grid-template-columns: 1fr; }

  .hero { padding: 64px 16px 48px; }

  .hero-ctas { flex-direction: column; align-items: center; }

  .dash-nav { padding: 0 16px; }
  .dash-nav-right { gap: 6px; }

  /* Footer collapses to single column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Proof strip wraps */
  .proof-items { gap: 4px; }
  .proof-item { padding: 6px 16px; font-size: 13px; }
  .proof-divider { display: none; }

  /* How it works stacks vertically */
  .steps-grid { flex-direction: column; align-items: center; gap: 40px; }
  .step { max-width: 320px; }
  .step-connector { width: 2px; height: 32px; margin-top: 0; align-self: center;
    background: linear-gradient(180deg, var(--orange) 0%, rgba(245,165,0,0.2) 100%); }

  /* ── Mobile navbar ──────────────────────────────────────────────────── */
  .navbar {
    height: 150px;
    padding: 0 16px;
    flex-wrap: nowrap;
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    justify-content: center;
  }
  .navbar-brand { flex: unset; }
  .navbar-brand img { height: 140px; width: auto; object-fit: contain; }
  .navbar-toggle { display: flex; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }

  .navbar-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 150px;
    left: 0;
    right: 0;
    background: rgba(13,22,40,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0 16px;
    z-index: 200;
  }
  .navbar-links.open { display: flex; }
  .navbar-links a {
    padding: 12px 20px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .navbar-links a:last-child { border-bottom: none; }
  .navbar-links .btn-primary {
    margin: 12px 16px 0;
    text-align: center;
    padding: 12px 20px;
    border-radius: var(--radius);
    display: block;
    color: var(--navy);
  }
}

/* ─── Photo upload ───────────────────────────────────────────────────────────  */
.photo-upload-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.photo-upload-area {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--navy-mid);
  border: 2px solid var(--border);
  transition: border-color 0.15s;
}

.photo-upload-area:hover { border-color: var(--orange); }

.photo-upload-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-upload-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
}

.photo-upload-placeholder-initial {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.photo-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.photo-upload-area:hover .photo-upload-overlay { opacity: 1; }

.photo-upload-overlay svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.photo-upload-info { min-width: 0; }
.photo-upload-label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.photo-upload-hint  { font-size: 12px; color: var(--muted); margin-bottom: 10px; }

/* ─── Logo upload (Pro) ──────────────────────────────────────────────────── */
.logo-upload-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(245,165,0,0.06);
  border: 1px dashed rgba(245,165,0,0.3);
  border-radius: 10px;
}
.logo-upload-preview {
  flex-shrink: 0;
  width: 120px;
  height: 40px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-upload-preview img { max-width: 120px; max-height: 40px; object-fit: contain; }
.logo-placeholder-text { font-size: 11px; color: var(--muted); }
.logo-upload-info { min-width: 0; flex: 1; }

/* ─── Theme picker ───────────────────────────────────────────────────────────  */
.theme-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.theme-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  outline: none;
  flex-shrink: 0;
}

.theme-swatch:hover { transform: scale(1.1); }

.theme-swatch--active {
  border-color: var(--orange);
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--navy), 0 0 0 4px var(--orange);
}

/* ─── Social login buttons ───────────────────────────────────────────────────  */
.social-login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  font-family: inherit;
}

.btn-social:hover { text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

.btn-social--google {
  background: #fff;
  color: #3c4043;
  border-color: #dadce0;
}
.btn-social--google:hover { background: #f8f9fa; color: #3c4043; }

.btn-social--microsoft {
  background: #fff;
  color: #3c4043;
  border-color: #dadce0;
}
.btn-social--microsoft:hover { background: #f8f9fa; color: #3c4043; }

.btn-social--github {
  background: #24292e;
  color: #fff;
  border-color: #24292e;
}
.btn-social--github:hover { background: #1b1f23; color: #fff; }

.btn-social--apple {
  background: #000;
  color: #fff;
  border-color: #000;
}
.btn-social--apple:hover { background: #1c1c1e; color: #fff; }

/* Auth divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span { white-space: nowrap; }

@media (max-width: 480px) {
  .auth-card { padding: 24px 20px; }
  .pricing-grid { grid-template-columns: 1fr; }

  /* Footer bottom stacks vertically */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Photo crop modal ──────────────────────────────────────────────── */
.crop-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.crop-overlay.open { display: flex; }
.crop-modal {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(340px, 92vw);
}
.crop-title { color: var(--text); font-weight: 600; font-size: 1rem; margin: 0; }
.crop-hint  { color: var(--text-dim); font-size: 0.78rem; margin: 0; }
.crop-viewport {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--navy-deep);
  cursor: grab;
  user-select: none;
  border: 3px solid var(--orange);
  flex-shrink: 0;
}
.crop-viewport.dragging { cursor: grabbing; }
.crop-img {
  position: absolute;
  max-width: none;
  transform-origin: center center;
  pointer-events: none;
}
.crop-zoom-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.crop-zoom-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: transparent;
  color: var(--orange);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.crop-zoom-btn:hover { background: var(--orange); color: var(--navy); }
.crop-zoom-label { color: var(--text-dim); font-size: 0.85rem; min-width: 48px; text-align: center; }
.crop-actions { display: flex; gap: 12px; width: 100%; }
.crop-actions .btn { flex: 1; }

/* ── Multi-card tabs ───────────────────────────────────────────────── */
.card-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0;
}
.card-tab-wrap {
  display: flex;
  align-items: center;
  position: relative;
}
.card-tab {
  display: inline-block;
  padding: 8px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}
.card-tab:hover {
  color: var(--text);
}
.card-tab--active {
  border-bottom-color: var(--orange);
  color: var(--orange);
}
.card-tab-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: -8px;
  margin-right: 4px;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}
.card-tab-delete:hover {
  background: rgba(255,255,255,0.12);
  color: #e05252;
}
.card-tab-add {
  display: inline-block;
  padding: 6px 14px;
  background: none;
  border: 1.5px dashed var(--orange);
  border-radius: 6px;
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  margin-left: 4px;
  margin-bottom: 6px;
  transition: background 0.15s;
}
.card-tab-add:hover {
  background: rgba(245, 165, 0, 0.1);
}
.card-tab-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.card-count-badge {
  display: inline-block;
  margin-left: auto;
  padding: 2px 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ─── Legal pages (v25) ───────────────────────────────────────── */
.legal-page {
  max-width: 760px;
  margin: 60px auto 80px;
  padding: 0 20px;
}
.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.legal-page .legal-meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f3f4f6;
}
.legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 24px 0 8px;
}
.legal-page p {
  line-height: 1.75;
  color: #374151;
  margin-bottom: 16px;
}
.legal-page ul, .legal-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-page li {
  line-height: 1.75;
  color: #374151;
  margin-bottom: 6px;
}
.legal-page a {
  color: var(--orange);
  text-decoration: none;
}
.legal-page a:hover {
  text-decoration: underline;
}
.legal-highlight {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.legal-highlight h3 {
  margin-top: 0;
  color: #0369a1;
}
.legal-highlight p, .legal-highlight li {
  color: #0c4a6e;
}
.legal-warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: #78350f;
}


/* ── Form checkbox (consent) ─────────────────────────────── v26 ── */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.form-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--orange);
  cursor: pointer;
}
.form-check label {
  color: #4b5563;
  cursor: pointer;
  margin-bottom: 0;
  font-weight: 400;
}
.form-check label a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}
.form-check label a:hover {
  color: var(--orange);
}


/* ── Legal pages light background ───────────────────────────── v27 ── */
.legal-body {
  background: #f3f4f6;
  color: #374151;
}
.legal-body .navbar {
  background: rgba(13,22,40,0.97);
}
.legal-page {
  background: #ffffff;
  border-radius: 12px;
  padding: 48px 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
/* Ensure legal text is readable on white background */
.legal-page h1 { color: var(--navy); }
.legal-page h2 { color: var(--navy); }
.legal-page h3 { color: var(--navy); }
.legal-page p  { color: #374151; }
.legal-page li { color: #374151; }
.legal-page .legal-meta { color: #6b7280; }
.legal-body footer, .legal-page + * { color: #6b7280; }

/* ── Dashboard mobile hamburger ──────────────────────────────── v27 ── */
.dash-mob-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.dash-mob-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.dash-mob-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dash-mob-toggle.open span:nth-child(2) { opacity: 0; }
.dash-mob-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .dash-mob-toggle { display: flex; }

  .dash-nav-right {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(13,22,40,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px;
    z-index: 200;
  }
  .dash-nav-right.open { display: flex; }
  .dash-nav-right .btn { justify-content: flex-start; padding: 12px 14px; font-size: 15px; width: 100%; text-align: left; border-radius: 8px; }
  .dash-nav-right .nav-account-email { display: block; margin: 8px 0 4px; padding: 10px 14px; max-width: none; font-size: 13px; border-radius: 8px; }
  .dash-nav-right form { width: 100%; }
  .dash-nav-right form button { width: 100%; justify-content: flex-start; padding: 12px 14px; font-size: 15px; border-radius: 8px; }
  .dash-nav { height: 70px; padding: 0 16px; position: sticky; top: 0; }
  .dash-nav .navbar-brand img { height: 60px; }
}

/* ── Email Signature Generator ───────────────────────────────── v27 ── */

/* Two-column layout (mirrors .dash-editor pattern) */
.sig-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}

/* Left controls panel */
.sig-controls {
  min-width: 0;
}

/* Style/colour/size button group */
.sig-style-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sig-style-btn {
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  font-family: inherit;
}

.sig-style-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.sig-style-btn--active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

/* Field toggle list */
.sig-fields-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Instructions block */
.sig-instructions {
  background: #f3f4f6;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 8px;
}

.sig-instructions-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.sig-instructions-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8125rem;
  color: #4b5563;
  line-height: 1.6;
}

.sig-instructions-list code {
  background: #e5e7eb;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Right preview column */
.sig-preview-col {
  min-width: 0;
}

/* White email-client-like preview box */
.sig-preview-box {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 28px 24px;
  min-height: 120px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  margin-bottom: 16px;
  overflow-x: auto;
}

/* Copy actions row */
.sig-copy-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

/* Note under preview */
.sig-preview-note {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
}

.sig-preview-note a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.sig-preview-note a:hover {
  color: var(--orange);
}

/* Toast notification */
.sig-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--navy);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  z-index: 9999;
  animation: sig-toast-in .2s ease;
}

@keyframes sig-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Upsell page */
.sig-upsell-box {
  max-width: 500px;
  margin: 60px auto;
  text-align: center;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.sig-upsell-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.sig-upsell-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}

.sig-upsell-desc {
  color: #4b5563;
  margin: 0 0 16px;
  line-height: 1.6;
}

.sig-upsell-gate {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0 0 24px;
}

.sig-upsell-back {
  margin-top: 20px;
  font-size: 0.875rem;
}

.sig-upsell-back a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.sig-upsell-back a:hover {
  color: var(--orange);
}

/* Mobile: single column */
@media (max-width: 900px) {
  .sig-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 500px) {
  .sig-upsell-box {
    margin: 24px auto;
    padding: 32px 20px;
  }
}

/* ── Lead capture — public card page ─────────────────────────── v27 ── */
/* (styles are inlined in card.ejs to keep the standalone card page self-contained) */

/* ── Lead capture — dashboard ────────────────────────────────── v27 ── */
.leads-page {
  max-width: 860px;
}
.leads-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.leads-export-btn {
  flex-shrink: 0;
  align-self: center;
}

/* Toggle card */
.leads-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 8px;
}
.leads-toggle-info {}
.leads-toggle-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.leads-toggle-hint {
  font-size: 13px;
  color: var(--text-muted);
}
.leads-toggle-hint a {
  color: var(--orange);
  text-decoration: none;
}
.leads-toggle-hint a:hover {
  text-decoration: underline;
}

/* Toggle switch */
.leads-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  width: 48px;
  height: 26px;
}
.leads-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.leads-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 26px;
  transition: background .2s;
}
.leads-toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.leads-toggle-switch input:checked + .leads-toggle-slider {
  background: var(--orange);
}
.leads-toggle-switch input:checked + .leads-toggle-slider::before {
  transform: translateX(22px);
}
.leads-toggle-switch input:disabled + .leads-toggle-slider {
  opacity: .5;
  cursor: not-allowed;
}

/* Toggle status message */
.leads-toggle-status {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 6px 0 0 4px;
}
.leads-toggle-status--ok  { color: #4ade80; }
.leads-toggle-status--err { color: #f87171; }

/* Count badge */
.leads-count-row {
  margin: 16px 0 12px;
}
.leads-count-badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Table */
.leads-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.leads-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.leads-table td {
  padding: 12px 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.leads-table tbody tr:last-child td {
  border-bottom: none;
}
.leads-table tbody tr:hover td {
  background: rgba(255,255,255,.02);
}
.leads-email-link {
  color: var(--orange);
  text-decoration: none;
}
.leads-email-link:hover {
  text-decoration: underline;
}
.leads-message-cell {
  max-width: 220px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-muted);
}
.leads-date {
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 13px;
}

/* Empty state */
.leads-empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.leads-empty svg {
  margin: 0 auto 16px;
  opacity: .4;
}
.leads-empty p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.leads-empty-hint {
  font-size: 14px;
  color: var(--text-muted) !important;
  font-weight: 400 !important;
}

/* Pagination */
.leads-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}
.leads-page-info {
  font-size: 13px;
  color: var(--text-muted);
}

/* Upsell page */
.leads-upsell {
  max-width: 520px;
  margin: 48px auto;
  text-align: center;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.leads-upsell-icon {
  color: var(--orange);
  margin-bottom: 20px;
}
.leads-upsell h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.leads-upsell-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.leads-upsell-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  display: inline-block;
}
.leads-upsell-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0 4px 22px;
  position: relative;
}
.leads-upsell-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}
.leads-upsell-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
