/* ── Design Tokens ───────────────────────────────────────────────────────── */
:root {
  /* Brand - Single primary color */
  --navy: #003580;
  --navy-light: #0057b8;
  --navy-dark: #00264d;

  /* Keep for functional states only */
  --mint: #059669;
  --mint-light: #f0fdf4;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --red: #dc2626;
  --red-light: #fef2f2;

  /* Neutrals - WCAG AA compliant (4.5:1+ contrast on white) */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #fafbfc;
  --text: #1a1a1a;
  --muted: #525252; /* Was #6b7280 - now 7.5:1 contrast */
  --muted-light: #6b7280; /* Was #9ca3af - now 5.0:1 contrast */
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Accessibility ───────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 12px 24px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
}

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.app-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 53, 128, 0.3);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}
.header-brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.logo-icon {
  stroke: #fff;
}
.app-header .sub {
  font-size: 0.7rem;
  opacity: 0.85; /* Increased for better contrast */
  font-weight: 400;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-nav-link {
  color: rgba(255, 255, 255, 0.9); /* Increased for WCAG AA compliance */
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
}
.header-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}
.lang-toggle {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-family: inherit;
}
.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 14px;
}
.card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.card-value {
  font-size: 0.975rem;
  font-weight: 600;
}

/* ── Status Badge ────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-pending {
  background: var(--amber-light);
  color: #92400e;
}
.badge-pending::before {
  background: var(--amber);
}
.badge-secured {
  background: var(--mint-light);
  color: #065f46;
}
.badge-secured::before {
  background: var(--mint);
}
.badge-released {
  background: #dbeafe;
  color: var(--navy-dark);
}
.badge-released::before {
  background: var(--navy);
}
.badge-disputed {
  background: var(--red-light);
  color: #991b1b;
}
.badge-disputed::before {
  background: var(--red);
}

/* ── Amount Display ──────────────────────────────────────────────────────── */
.amount-display {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
}
.amount-currency {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Memo Code ───────────────────────────────────────────────────────────── */
.memo-code {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--navy);
  text-align: center;
  padding: 18px 12px;
  background: var(--bg);
  border-radius: 10px;
  cursor: pointer;
  user-select: all;
  transition:
    background 0.15s,
    transform 0.1s;
  border: 2px dashed var(--border);
  margin-top: 4px;
}
.memo-code:active {
  transform: scale(0.97);
}
.copy-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ── PIN Input ───────────────────────────────────────────────────────────── */
.pin-grid {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 2vw, 10px);
  margin: 16px 0;
  padding: 4px;
  overflow: visible;
  width: 100%;
}
.pin-grid input {
  flex: 1 1 0;
  min-width: 0;
  max-width: 62px;
  aspect-ratio: 1;
  min-height: 40px;
  text-align: center;
  font-size: clamp(1rem, 4vw, 1.75rem);
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  background: var(--surface);
  color: var(--text);
}
.pin-grid input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 43, 75, 0.15);
}
.pin-grid input.filled {
  border-color: var(--mint);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.975rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.1s;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn:active {
  transform: scale(0.98);
}
.btn + .btn {
  margin-top: 10px;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-mint {
  background: var(--mint);
  color: #fff;
}
.btn-mint:hover {
  opacity: 0.9;
}
.btn-ghost {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 0.8rem;
  width: auto;
}

/* ── Form Fields ─────────────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  background: var(--surface);
}
.field-input:focus {
  border-color: var(--navy);
}
.field-input::placeholder {
  color: var(--muted);
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Alert ───────────────────────────────────────────────────────────────── */
.alert {
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-bottom: 14px;
}
.alert-success {
  background: var(--mint-light);
  color: #065f46;
}
.alert-error {
  background: var(--red-light);
  color: #991b1b;
}
.alert-info {
  background: #eff6ff;
  color: #1e40af;
}

/* ── Steps ───────────────────────────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-title {
  font-weight: 600;
  font-size: 0.9rem;
}
.step-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Booking List Item ───────────────────────────────────────────────────── */
.booking-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.booking-row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.booking-name-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.booking-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge-mode {
  font-size: 0.62rem;
  padding: 2px 6px;
}
.booking-amount-block {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}
.booking-amount {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}
.booking-cad {
  font-size: 0.68rem;
  color: var(--muted);
}
.booking-details {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
}
.booking-details-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}
.booking-details-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.booking-details-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  flex-shrink: 0;
  color: var(--muted);
}
.booking-details-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}
.booking-details-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.booking-details-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  flex-shrink: 0;
  color: var(--muted);
}
.booking-details-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}
.booking-details-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.booking-details-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  flex-shrink: 0;
}
.booking-sender {
  font-size: 0.72rem;
  color: var(--muted);
}
.booking-meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.booking-item-left {
  flex: 1;
  min-width: 0;
}
.booking-item-right {
  text-align: right;
  flex-shrink: 0;
}

/* ── Misc ────────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}
.section-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 10px;
}
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--muted);
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 16px;
  }
  .header-nav-link {
    display: none;
  }
  .app-header .logo {
    font-size: 0.95rem;
  }
  .app-header .sub {
    font-size: 0.65rem;
  }
  .header-actions {
    gap: 12px;
  }
  .lang-toggle {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
}

/* ── Landing Page ────────────────────────────────────────────────────────── */
.hero {
  padding: 48px 0 36px;
}
.hero-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  opacity: 0.9;
}
.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 1rem;
  color: #475569;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
  font-weight: 400;
}
.hero-tagline {
  font-size: 0.9rem !important;
  color: var(--navy) !important;
  font-weight: 500 !important;
  opacity: 0.7;
}
.trust-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
}
.trust-item {
  text-align: center;
}
.trust-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.trust-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.6;
}
.cta-section {
  margin-top: 24px;
}
.cta-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
}
.landing-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.landing-shell .card {
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  background: #fff;
}

.landing-shell .section-heading {
  margin-top: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* ── Login / Register Pages ──────────────────────────────────────────────── */
.login-header {
  padding: 30px 0 20px;
}
.login-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

/* ── Mobile Responsive Design ────────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }

  .page {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Stack booking items vertically on mobile */
  .booking-item {
    gap: 10px;
  }

  .booking-name-group {
    gap: 4px;
  }

  .booking-name {
    white-space: normal;
    overflow: visible;
  }

  .booking-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Make buttons more compact on mobile */
  .btn-sm {
    padding: 8px 12px;
    font-size: 0.75rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
  }

  /* Ensure button containers don't overflow */
  .booking-actions {
    max-width: 100%;
    overflow: hidden;
  }

  /* Stack dashboard header on mobile */
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .list-scroll,
  .flagged-scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    margin-right: 0;
  }

  /* Referral code card - better wrapping */
  .card {
    overflow: hidden;
  }
  /* PIN grid must not be clipped */
  .card:has(.pin-grid) {
    overflow: visible;
  }

  /* Prevent referral code from overflowing */
  .card [style*="letter-spacing: 2px"] {
    letter-spacing: 1px !important;
    word-break: break-all;
  }

  /* Reduce font sizes slightly on very small screens */
  .hero-title {
    font-size: 1.3rem;
  }

  /* Make form buttons full width on mobile */
  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  /* Extra small screens - even more compact */
  .page {
    padding: 12px;
  }

  .card {
    padding: 12px;
  }

  .booking-item {
    padding: 12px;
  }

  .btn-sm {
    font-size: 0.7rem;
    padding: 6px 10px;
  }
}

/* ── UI Refinements ─────────────────────────────────────────────────────── */

/* Resolve missing design tokens */
:root {
  --primary: var(--navy);
  --muted-dark: #334155;
}

/* Stat tile — dashboard financial summary numbers */
.stat-tile {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px 10px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.stat-tile .stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-tile .stat-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-top: 5px;
}

/* Tier indicator pills for dashboard header */
.tier-pill-pro {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.tier-pill-basic {
  display: inline-block;
  background: var(--border);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.tier-pill-starter {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Service description tag on booking rows */
.service-tag {
  display: inline-block;
  background: var(--bg);
  color: var(--muted);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 0.68rem;
  font-weight: 500;
}

/* Booking items — status-coded left accent border + hover lift */
.booking-item {
  border-left: 3px solid var(--border);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.booking-item:hover {
  transform: translateY(-1px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.06);
}
.booking-item[data-status="pending"] {
  border-left-color: var(--amber);
}
.booking-item[data-status="secured"] {
  border-left-color: var(--mint);
}
.booking-item[data-status="released"] {
  border-left-color: var(--navy);
}
.booking-item[data-status="disputed"] {
  border-left-color: var(--red);
}

/* Monospace font for memo codes */
.memo-code {
  font-family: "SF Mono", ui-monospace, "Fira Code", monospace;
}

/* Section heading — clean minimal style */
.section-heading {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

/* ── Layout Variants ────────────────────────────────────────────────────── */
.page.page-wide {
  max-width: 1040px;
  padding-left: 20px;
  padding-right: 20px;
}

.page.page-dashboard {
  max-width: 980px;
  padding-left: 20px;
  padding-right: 20px;
}

.page.page-booking {
  max-width: 620px;
  display: block;
}

/* ── Landing Organization ───────────────────────────────────────────────── */
.landing-shell {
  display: grid;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-shell {
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 24px 36px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hero-actions {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions .btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  font-weight: 600;
  letter-spacing: 0;
}

.hero-actions .btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}

.launch-pill {
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
}

.privacy-card,
.trust-card,
.referral-card,
.steps-card,
.value-card,
.pricing-card {
  margin-bottom: 0;
  background: #fff !important;
}

.problem-card {
  background: #fff !important;
  border: 1px solid #e5e7eb;
}

.trust-indicators-card {
  background: #fafbfc !important;
  border: 1px solid #e5e7eb;
}

.privacy-grid,
.feature-grid,
.pricing-grid,
.referral-grid {
  align-items: stretch;
}

.privacy-item,
.value-card,
.pricing-card {
  height: 100%;
}

.bank-note {
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
}

.steps-card .step {
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.steps-card .step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-num {
  background: var(--navy) !important;
  color: #fff !important;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pricing-card-pro {
  transform: translateY(-2px);
  border-color: var(--navy) !important;
}

.referral-card {
  background: #fafbfc !important;
  border: 1px solid #e5e7eb;
}

.features-highlight {
  background: #fff !important;
}

/* ── Dashboard Organization ─────────────────────────────────────────────── */
.dashboard-shell {
  display: grid;
  gap: 12px;
}

.dash-topbar {
  margin-top: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.ref-card,
.account-card,
.sub-card,
.interac-panel,
.booking-form-card,
.empty-card,
.flagged-card {
  margin-bottom: 0;
}

.flagged-client-item {
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.flagged-client-item-high {
  background: #dc262608;
  border-color: #dc262620;
}

.flagged-client-item-medium {
  background: #f59e0b08;
  border-color: #f59e0b20;
}

.flagged-client-item-low {
  background: #6b728008;
  border-color: #6b728020;
}

.flagged-client-severity {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.flagged-client-severity.flagged-client-item-high {
  background: #dc262620;
  color: #dc2626;
}

.flagged-client-severity.flagged-client-item-medium {
  background: #f59e0b20;
  color: #f59e0b;
}

.flagged-client-severity.flagged-client-item-low {
  background: #6b728020;
  color: #6b7280;
}

.card-title {
  letter-spacing: 0.01em;
  color: var(--text);
}

/* ── New Landing Page Components ────────────────────────────────────────── */

/* Launch Notice */
.launch-notice {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Hero Enhancements */
.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 16px;
}

.hero-login {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 12px;
}
.hero-login a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}
.hero-login a:hover {
  text-decoration: underline;
}

/* Trust Bar */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.trust-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}

/* Credentials Bar */
.credentials-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.cred-divider {
  color: var(--border);
}

/* Stats Row */
.stats-row {
  display: flex;
  justify-content: space-around;
  padding: 24px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.stat-item {
  text-align: center;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Problem Summary */
.problem-summary {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  padding: 20px 24px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

/* Section Intro */
.section-intro {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.feature-item {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.feature-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.feature-premium {
  display: inline-block;
  margin-top: 10px;
}
.tier-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface-alt);
  color: var(--muted);
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.benefit-item {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.benefit-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.benefit-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.benefit-highlight {
  font-weight: 500;
  color: var(--navy);
}

/* Referral Section */
.referral-header {
  text-align: center;
  margin-bottom: 20px;
}
.referral-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.referral-desc {
  font-size: 0.85rem;
  color: var(--muted);
}
.referral-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.referral-benefit {
  padding: 16px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text);
  text-align: center;
}

/* Pricing Grid - Redesigned */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.pricing-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
}
.pricing-featured {
  border: 2px solid var(--navy);
}
.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 4px;
}
.pricing-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.pricing-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 2;
}
.pricing-features li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--mint);
  font-weight: 600;
}

/* Final CTA */
.final-cta {
  text-align: center;
  margin: 32px 0;
}
.final-cta .btn-primary {
  font-size: 1rem;
  padding: 14px 36px;
}

/* Landing Footer */
.landing-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-links {
  font-size: 0.75rem;
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 8px;
}
.footer-links a:hover {
  color: var(--navy);
}
.footer-links span {
  color: var(--border);
}
.footer-disclaimer {
  font-size: 0.7rem;
  color: var(--muted-light);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Mobile responsive for new components */
@media (max-width: 600px) {
  .trust-bar {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .referral-benefits {
    grid-template-columns: 1fr;
  }
  .stats-row {
    flex-direction: column;
    gap: 16px;
  }
}

.stats-grid {
  align-items: stretch;
}

.upgrade-card {
  border: 1px solid rgba(16, 185, 129, 0.16);
}

.sub-card {
  border: 1px solid var(--border);
}

.privacy-note {
  border: 1px solid rgba(16, 185, 129, 0.16);
}

.booking-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.booking-actions .btn {
  min-width: 120px;
}

.action-note {
  width: 100%;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 2px;
}

.booking-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -2px 0 10px;
}

.booking-filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted-dark);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.booking-filter-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.booking-filter-btn.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.filter-count {
  opacity: 0.88;
  margin-left: 2px;
}

.list-block {
  display: grid;
  gap: 0;
}

.list-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
  margin-right: -4px;
  border-radius: 8px;
  /* Scroll indicators for better UX with many bookings */
  background: 
    /* Shadow at top */
    radial-gradient(
        ellipse at top,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(255, 255, 255, 0) 70%
      )
      repeat-x,
    /* Shadow at bottom */
      radial-gradient(
        ellipse at bottom,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(255, 255, 255, 0) 70%
      )
      repeat-x;
  background-size:
    100% 8px,
    100% 8px;
  background-attachment: local, local;
  background-position: top, bottom;
}

.flagged-scroll {
  max-height: 420px;
}

.list-scroll::-webkit-scrollbar {
  width: 8px;
}

.list-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.list-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.flagged-card {
  border-left: 3px solid var(--amber);
}

/* ── Booking Page Polish ────────────────────────────────────────────────── */
.booking-shell {
  display: grid;
  gap: 12px;
}

.booking-status-strip {
  margin-top: 8px;
}

.booking-amount-card,
.booking-details-card,
.booking-instructions-card,
.booking-release-card,
.booking-released-card {
  margin-bottom: 0;
}

.booking-details-card .card-value {
  font-size: 1rem;
}

.booking-auto-refresh-note {
  margin-bottom: 0;
  border: 1px solid rgba(30, 64, 175, 0.15);
}

.booking-release-card {
  border-top: 3px solid rgba(0, 200, 150, 0.4);
}

@media (min-width: 800px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

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

  .dashboard-shell {
    gap: 14px;
  }
}

/* ── Toast Notifications ─────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.4;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: toastIn 0.3s ease-out;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.toast.toast-exit {
  opacity: 0;
  transform: translateX(30px);
}
.toast-success {
  background: #ecfdf5;
  color: #065f46;
  border-left: 4px solid var(--mint);
}
.toast-error {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid var(--red);
}
.toast-info {
  background: #eff6ff;
  color: #1e40af;
  border-left: 4px solid #3b82f6;
}
.toast-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  margin-top: 1px;
}
.toast-body {
  flex: 1;
}
.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
}
.toast-close:hover {
  opacity: 1;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (max-width: 480px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  .toast {
    min-width: 0;
    max-width: none;
  }
}

/* ── Hero Animations ─────────────────────────────────────────────────────── */
@keyframes slideInDown {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.3);
  }
  50% {
    box-shadow: 0 8px 40px rgba(220, 38, 38, 0.5);
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   STRIPE-INSPIRED LANDING PAGE — NAVY THEME
   ══════════════════════════════════════════════════════════════════════════ */

.page-landing {
  max-width: 100%;
  padding: 0;
  background: var(--navy-dark);
}

/* Override page-wide max-width for landing page */
.page.page-wide.page-landing {
  max-width: 100%;
  padding: 0;
}

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.landing-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgba(0, 87, 184, 0.4),
      transparent
    ),
    radial-gradient(
      ellipse 60% 50% at 100% 0%,
      rgba(0, 53, 128, 0.5),
      transparent
    ),
    radial-gradient(
      ellipse 50% 40% at 0% 100%,
      rgba(5, 150, 105, 0.15),
      transparent
    ),
    linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}
.hero-badge svg {
  stroke: var(--mint);
}

.landing-hero .hero-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.landing-hero .hero-sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85); /* Increased for WCAG AA compliance */
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--mint) 0%, #10b981 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.4);
}
.btn-hero-primary:hover {
  background: linear-gradient(135deg, #10b981 0%, var(--mint) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(5, 150, 105, 0.6);
}

.btn-hero-secondary {
  color: rgba(255, 255, 255, 0.9); /* Increased for WCAG AA compliance */
  font-weight: 500;
  font-size: 0.95rem;
  padding: 16px 24px;
  text-decoration: none;
  transition: color 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}
.btn-hero-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.landing-hero .hero-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7); /* Increased for WCAG AA compliance */
}

/* ── Trust Logos ──────────────────────────────────────────────────────────── */
.trust-logos {
  background: #fff;
  padding: 56px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.trust-logos-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 28px;
}

.trust-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.trust-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.trust-emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.trust-logo-item span:not(.trust-emoji) {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Stats Section ────────────────────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
}

.stats-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto 32px;
}

.stat-block {
  text-align: center;
  min-width: 180px;
  padding: 24px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 53, 128, 0.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  opacity: 0;
  transform: translateY(14px);
  transform-origin: center bottom;
  will-change: transform, opacity;
  transition:
    opacity 0.6s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  transition-delay: calc(var(--stat-index, 0) * 110ms);
}

.stats-section.is-visible .stat-block {
  opacity: 1;
  transform: translateY(0);
}

.stat-block:hover {
  border-color: rgba(0, 87, 184, 0.18);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
  min-height: 3rem;
  font-variant-numeric: tabular-nums;
}

.stat-number-word {
  font-size: 2.6rem;
  letter-spacing: -0.03em;
}

.stat-text {
  font-size: 0.9rem;
  color: #525252; /* WCAG AA compliant */
  max-width: 140px;
  margin: 0 auto;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, #e5e7eb, transparent);
  opacity: 0;
  transform: scaleY(0.82);
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-section.is-visible .stat-divider {
  opacity: 1;
  transform: scaleY(1);
}

.stats-summary {
  font-size: 1.1rem;
  color: #374151;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.55s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 260ms;
}

.stats-section.is-visible .stats-summary {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section Styles ───────────────────────────────────────────────────────── */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-light {
  background: #fff;
  padding: 80px 0;
}

.section-gradient {
  background: linear-gradient(
    135deg,
    var(--navy-dark) 0%,
    var(--navy) 50%,
    var(--navy-dark) 100%
  );
  padding: 100px 0;
}

.section-dark {
  background: var(--navy-dark);
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 48px;
}

.section-title-light {
  color: #fff;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #a1a1aa;
  text-align: center;
  max-width: 540px;
  margin: -32px auto 48px;
  line-height: 1.6;
}

/* ── Steps Grid ───────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.2s ease;
}
.step-card:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 30px rgba(0, 53, 128, 0.15);
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step-icon-1 {
  background: linear-gradient(135deg, #dbeafe, #d1fae5);
}
.step-icon-1 svg {
  stroke: var(--navy);
}
.step-icon-2 {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.step-icon-2 svg {
  stroke: var(--navy-light);
}
.step-icon-3 {
  background: linear-gradient(135deg, #d1fae5, #dbeafe);
}
.step-icon-3 svg {
  stroke: #10b981;
}
.step-icon-4 {
  background: linear-gradient(135deg, #dbeafe, #d1fae5);
}
.step-icon-4 svg {
  stroke: #3b82f6;
}

.step-card .step-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.step-card .step-desc {
  font-size: 0.9rem;
  color: #525252; /* WCAG AA compliant */
  line-height: 1.6;
}

/* ── Features Showcase ────────────────────────────────────────────────────── */
.features-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 87, 184, 0.5);
  transform: translateY(-4px);
}

.feature-card-premium {
  position: relative;
  border-color: rgba(5, 150, 105, 0.4);
}

.premium-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: linear-gradient(135deg, var(--mint), #10b981);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(
    135deg,
    rgba(0, 87, 184, 0.25),
    rgba(5, 150, 105, 0.2)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg {
  stroke: #93c5fd;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9rem;
  color: #a1a1aa;
  line-height: 1.6;
}

/* ── Benefits Showcase ────────────────────────────────────────────────────── */
.benefits-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.benefit-card {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.2s ease;
}
.benefit-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.benefit-provider .benefit-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.benefit-provider .benefit-icon svg {
  stroke: var(--navy);
}

.benefit-client .benefit-icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}
.benefit-client .benefit-icon svg {
  stroke: var(--mint);
}

.benefit-auto .benefit-icon {
  background: linear-gradient(135deg, #d1fae5, #dbeafe);
}
.benefit-auto .benefit-icon svg {
  stroke: #10b981;
}

.benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 0.9rem;
  color: #525252; /* WCAG AA compliant */
  line-height: 1.6;
}

/* ── Platform Features (Dark) ─────────────────────────────────────────────── */
.platform-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.platform-feature {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.platform-feature h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.platform-feature p {
  font-size: 0.85rem;
  color: #a1a1aa; /* Light text on dark bg - WCAG AA compliant */
  line-height: 1.5;
}

/* ── Referral Banner ──────────────────────────────────────────────────────── */
.referral-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.referral-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.referral-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.referral-icon svg {
  stroke: #fff;
}

.referral-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.referral-content p {
  font-size: 0.95rem;
  color: #525252; /* WCAG AA compliant */
}

.referral-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.referral-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
}

/* ── Pricing Section ──────────────────────────────────────────────────────── */
.section-pricing {
  background: var(--navy-dark);
  padding: 100px 24px;
}

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

.price-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: all 0.2s ease;
}
.price-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.price-card-featured {
  border: 2px solid var(--navy);
  box-shadow: 0 8px 30px rgba(0, 53, 128, 0.15);
}

.price-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 100px;
}

.price-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 4px;
}

.price-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 24px;
}

.price-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 8px;
}

.price-period {
  font-size: 0.85rem;
  color: #525252; /* WCAG AA compliant */
}

.price-features {
  list-style: none;
  margin-bottom: 32px;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: #374151;
}
.price-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.price-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #f3f4f6;
  color: #374151;
}
.price-cta:hover {
  background: #e5e7eb;
}

.price-cta-primary {
  background: linear-gradient(135deg, var(--mint) 0%, #10b981 100%);
  color: #fff;
}
.price-cta-primary:hover {
  background: linear-gradient(135deg, #10b981 0%, var(--mint) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.5);
}

/* ── Final CTA Section ────────────────────────────────────────────────────── */
.final-cta-section {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
}

.final-cta-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 50% 50%,
      rgba(0, 87, 184, 0.3),
      transparent
    ),
    linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.final-cta-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.final-cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

.btn-final-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--mint) 0%, #10b981 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 18px 36px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.4);
}
.btn-final-cta:hover {
  background: linear-gradient(135deg, #10b981 0%, var(--mint) 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 45px rgba(5, 150, 105, 0.6);
}

/* ── Landing Footer ──────────────────────────────────────────────────────── */
.page-landing .landing-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 24px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.footer-brand svg {
  stroke: var(--mint);
}
.footer-brand span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.page-landing .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.page-landing .footer-links a {
  color: rgba(255, 255, 255, 0.75); /* WCAG AA compliant - 5.4:1 contrast */
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.page-landing .footer-links a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.page-landing .footer-disclaimer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7); /* WCAG AA compliant - 4.5:1 contrast */
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Mobile Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .landing-hero {
    min-height: auto;
    padding: 60px 20px 80px;
  }

  .landing-hero .hero-title {
    font-size: 2rem;
  }

  .landing-hero .hero-sub {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .trust-logos-row {
    gap: 24px;
  }

  .stats-container {
    flex-direction: column;
    gap: 32px;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-number-word {
    font-size: 2.2rem;
  }

  .stat-block {
    width: min(100%, 260px);
  }

  .section-light,
  .section-gradient,
  .section-dark,
  .section-pricing {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .referral-banner {
    padding: 28px;
  }

  .referral-content {
    flex-direction: column;
    text-align: center;
  }

  .final-cta-content h2 {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-block,
  .stat-divider,
  .stats-summary {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 480px) {
  .trust-logo-item {
    flex: 1 1 40%;
  }

  .referral-perks {
    flex-direction: column;
  }
}
