/* ═══════════════════════════════════════════════════════════
   HESED LEADS — Design System
   Clean SaaS aesthetic: Inter, indigo, white backgrounds
   ═══════════════════════════════════════════════════════════ */

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

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Brand colors */
  --indigo:       #6366F1;
  --indigo-hover: #4F46E5;
  --indigo-dark:  #4338CA;
  --indigo-light: rgba(99, 102, 241, 0.08);
  --green:        #16A34A;
  --green-hover:  #15803D;
  --green-dark:   #166534;
  --green-light:  #F0FDF4;

  /* Backgrounds */
  --bg-white:     #FFFFFF;
  --bg-gray:      #F9FAFB;

  /* Text */
  --text-heading: #111827;
  --text-body:    #374151;
  --text-muted:   #6B7280;
  --text-light:   #9CA3AF;

  /* Borders */
  --border:       #E5E7EB;
  --border-light: #F3F4F6;

  /* Status */
  --success:         #16A34A;
  --success-bg:      #F0FDF4;
  --success-border:  #BBF7D0;
  --success-text:    #14532D;
  --error:           #DC2626;
  --error-dark:      #B91C1C;
  --error-bg:        #FEF2F2;
  --error-border:    #FECACA;
  --error-text:      #991B1B;
  --warning:         #D97706;
  --warning-bg:      #FFFBEB;
  --warning-border:  #FDE68A;
  --warning-text:    #92400E;
  --info:            #2563EB;
  --info-bg:         #EFF6FF;
  --info-border:     #BFDBFE;
  --info-text:       #1E40AF;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Container widths */
  --container-sm: 480px;
  --container-md: 720px;
  --container-lg: 1200px;
}

/* ── Base ─────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-white);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--indigo);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-heading);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(1.875rem, 4vw, 2.875rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

p {
  color: var(--text-body);
  line-height: 1.65;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-md {
  max-width: var(--container-md);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Skip to content (accessibility) ─────────────────────── */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: var(--space-sm) var(--space-md);
  background: var(--indigo-hover);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 var(--radius-md) 0;
  text-decoration: none;
}

.skip-to-content:focus {
  left: 0;
}

/* ── Site Header (public-facing pages) ───────────────────── */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.875rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.logo-lockup {
  height: 38px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--indigo);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.header-login {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.header-login:hover {
  color: var(--indigo);
  text-decoration: none;
}

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.hamburger:hover {
  background: var(--border-light);
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-body);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-white);
  z-index: 200;
  flex-direction: column;
  padding: var(--space-lg);
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--border-light);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-body);
  line-height: 1;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.mobile-menu-nav a {
  display: block;
  padding: 0.875rem 0.75rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-heading);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background 0.15s;
}

.mobile-menu-nav a:hover {
  background: var(--bg-gray);
  color: var(--indigo);
  text-decoration: none;
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.mobile-menu-footer a {
  display: block;
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.mobile-menu-footer .mobile-login {
  color: var(--text-body);
  border: 1.5px solid var(--border);
}

.mobile-menu-footer .mobile-signup {
  background: var(--indigo);
  color: #fff;
  border: 1.5px solid var(--indigo);
}

@media (max-width: 768px) {
  .site-nav,
  .header-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ── App Header (authenticated pages) ────────────────────── */
.app-header {
  background: var(--text-heading);
  padding: 0.875rem 0;
}

.app-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.app-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.app-nav a,
.app-nav button {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color 0.2s;
}

.app-nav a:hover,
.app-nav button:hover {
  color: #fff;
  text-decoration: none;
}

.app-nav a.active {
  color: #fff;
  font-weight: 600;
}

/* ── Logo ─────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo img,
.logo-lockup {
  display: block;
  height: 34px;
  width: auto;
}

.site-header .logo-lockup {
  height: 36px;
}

.app-header .logo-lockup {
  height: 32px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1.5px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

/* Primary — indigo pill */
.btn-primary {
  background: var(--indigo-hover);
  color: #fff;
  border-color: var(--indigo-hover);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: var(--indigo-dark);
  border-color: var(--indigo-dark);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
  color: #fff;
}

/* Secondary — ghost/outline */
.btn-secondary {
  background: transparent;
  color: var(--text-body);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-gray);
  border-color: #D1D5DB;
  color: var(--text-heading);
}

/* Green — free / success CTAs */
.btn-green {
  background: var(--green-hover);
  color: #fff;
  border-color: var(--green-hover);
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  transform: translateY(-1px);
  color: #fff;
}

/* Danger */
.btn-danger {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
}

.btn-danger:hover {
  background: var(--error-dark);
  border-color: var(--error-dark);
  color: #fff;
}

/* Size variants */
.btn-sm {
  padding: 0.4375rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-full);
}

.btn-full {
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text-heading);
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group small,
.form-group .helper-text {
  display: block;
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 0.375rem;
  line-height: 1.5;
}

.form-group input[type="file"] {
  border-style: dashed;
  background: var(--bg-gray);
  cursor: pointer;
  padding: 0.75rem;
}

.form-group input[type="file"]:hover {
  border-color: var(--indigo);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
  line-height: 1.6;
  border-width: 1px;
  border-style: solid;
}

.alert strong {
  font-weight: 700;
}

.alert ul {
  margin: var(--space-sm) 0 0 1.25rem;
  padding: 0;
}

.alert-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}

.alert-success a {
  color: var(--success-text);
  font-weight: 600;
}

.alert-error {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error-text);
}

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}

.alert-info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-text);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-md);
}

/* ── Stat Cards ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  font-weight: 500;
}

/* ── Status indicators ────────────────────────────────────── */
.status-active {
  color: var(--success);
  font-weight: 600;
}

.status-paused {
  color: var(--warning);
  font-weight: 600;
}

.status-banner {
  padding: var(--space-md) 1.125rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
  border-width: 1px;
  border-style: solid;
}

.status-banner.active {
  background: var(--success-bg);
  border-color: var(--success-border);
  border-left: 4px solid var(--success);
  color: var(--success-text);
}

.status-banner.paused {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  border-left: 4px solid var(--warning);
  color: var(--warning-text);
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.1875rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.78125rem;
  font-weight: 600;
  line-height: 1.5;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.badge-error {
  background: var(--error-bg);
  color: var(--error-text);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.badge-pending {
  background: var(--bg-gray);
  color: var(--text-muted);
}

.zip-badge {
  background: var(--bg-gray);
  padding: 0.1875rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--text-body);
  border: 1px solid var(--border);
}

.admin-badge {
  background: var(--error);
  color: #fff;
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ── Data Table ───────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-gray);
}

.data-table td {
  color: var(--text-body);
  background: var(--bg-white);
}

.data-table tbody tr:nth-child(even) td {
  background: var(--bg-gray);
}

.data-table tbody tr:hover td {
  background: rgba(99, 102, 241, 0.04);
}

/* Generic table fallback */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-gray);
}

td {
  color: var(--text-body);
}

tr:hover {
  background: rgba(99, 102, 241, 0.03);
}

/* ── Auth Layout ──────────────────────────────────────────── */
.auth-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-gray);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
}

.auth-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
}

.auth-card .card-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-card .card-header h1 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.auth-card .card-header p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.auth-card .footer-link {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-card .footer-link a {
  color: var(--indigo);
  font-weight: 600;
}

.auth-card .footer-link a:hover {
  text-decoration: underline;
}

/* ── Site Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0 var(--space-xl);
  margin-top: var(--space-2xl);
}

.site-footer p,
.site-footer a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--indigo);
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-col .footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: var(--indigo);
}

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

.footer-bottom p,
.footer-bottom a {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Info elements ────────────────────────────────────────── */
.info-box {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) 1.125rem;
  margin-bottom: var(--space-lg);
}

.info-box p {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.info-box strong { color: var(--text-heading); }

.info-box code {
  background: var(--border);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.84375rem;
  font-family: "SF Mono", "Fira Code", monospace;
}

.info-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.info-card h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-md);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.info-row:last-child { border-bottom: none; }

.info-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.info-value {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.9rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: var(--space-lg);
}

.info-item label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.info-item .value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
}

.info-item .value a {
  color: var(--indigo);
}

/* ── Callout ──────────────────────────────────────────────── */
.callout {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.callout h2 { color: var(--success-text); }
.callout p  { color: var(--success-text); }

/* ── Indigo callout variant ───────────────────────────────── */
.callout-indigo {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.empty-state p {
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
}

/* ── Action bar ───────────────────────────────────────────── */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

/* ── Page header ──────────────────────────────────────────── */
.page-header {
  margin-bottom: var(--space-xl);
}

.page-header h1 {
  font-size: 1.75rem;
  margin-bottom: var(--space-xs);
}

.page-header p,
.subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ── Modal ────────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.show { display: flex; }

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal h3 { margin-bottom: var(--space-md); }

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-md);
  justify-content: flex-end;
}

/* ── History items ────────────────────────────────────────── */
.history-item {
  padding: var(--space-md);
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.history-item .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.history-item .date {
  font-weight: 600;
  color: var(--text-heading);
}

.history-item .details {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Setup card ───────────────────────────────────────────── */
.setup-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.setup-card h2 {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.625rem;
}

.setup-card p {
  color: var(--text-body);
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
  line-height: 1.65;
}

/* ── Admin actions ────────────────────────────────────────── */
.action-link {
  color: var(--indigo);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
}

.action-link:hover {
  text-decoration: underline;
}

.action-btn {
  background: none;
  border: none;
  color: var(--warning);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  padding: 0;
}

.action-btn:hover { text-decoration: underline; }
.action-btn-email { color: var(--info); }
.action-btn-delete { color: var(--error); }

/* ── Lead cap slider ──────────────────────────────────────── */
.lead-cap-display {
  background: var(--text-heading);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.lead-cap-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.lead-cap-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
}

.slider-container { padding: 0 var(--space-sm); }

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    var(--indigo) 0%,
    var(--indigo) var(--value-percent, 0%),
    rgba(255,255,255,0.2) var(--value-percent, 0%),
    rgba(255,255,255,0.2) 100%
  );
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--indigo);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--indigo);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Payment info ─────────────────────────────────────────── */
.payment-info {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.payment-info .row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.payment-info label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.payment-info .value {
  font-weight: 600;
  font-family: "SF Mono", "Fira Code", "Courier New", monospace;
  font-size: 0.875rem;
  color: var(--text-heading);
}

/* ── FAQ Accordion (details/summary) ─────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

details.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  overflow: hidden;
}

details.faq-item[open] {
  box-shadow: var(--shadow-sm);
}

summary.faq-question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  transition: background 0.15s;
}

summary.faq-question::-webkit-details-marker { display: none; }

summary.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

details.faq-item[open] summary.faq-question::after {
  transform: rotate(45deg);
}

summary.faq-question:hover {
  background: var(--bg-gray);
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

/* ── Cookie banner ────────────────────────────────────────── */
.cookie-banner {
  background: var(--text-heading);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up   { animation: fadeUp 0.45s ease both; }
.fade-up-1 { animation-delay: 0.08s; }
.fade-up-2 { animation-delay: 0.16s; }
.fade-up-3 { animation-delay: 0.24s; }
.fade-up-4 { animation-delay: 0.32s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Utility classes ──────────────────────────────────────── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted); }
.text-heading { color: var(--text-heading); }
.text-success { color: var(--success); }
.text-error   { color: var(--error); }
.text-indigo  { color: var(--indigo); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

.w-full { width: 100%; }

.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm        { gap: var(--space-sm); }
.gap-md        { gap: var(--space-md); }
.gap-lg        { gap: var(--space-lg); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-header .container {
    gap: var(--space-md);
  }

  .auth-card {
    padding: 2rem 1.375rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

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

  .app-nav {
    gap: 0.875rem;
  }
}

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

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

  .auth-card {
    padding: 1.5rem 1.125rem;
    border-radius: var(--radius-lg);
  }

  .btn-group {
    flex-direction: column;
  }

  .modal-actions {
    flex-direction: column;
  }
}
