/* ════════════════════════════════════════════════════════════════
   Floating flash banners
   ════════════════════════════════════════════════════════════════ */
#flash-stack {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
}

.flash-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem 1.5rem;
  pointer-events: all;
  /* Start hidden above the viewport */
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.35s ease;
}

.flash-banner-visible {
  transform: translateY(0);
  opacity: 1;
}

.flash-banner-hiding {
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.55, 0, 1, 0.45),
              opacity 0.38s ease;
}

.flash-close {
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

/* ════════════════════════════════════════════════════════════════
   Donor Tracker — Design Tokens
   Generated from the Donor Tracker Design System
   ════════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand greens (editorial) ─────────────────────────────── */
  --dt-emerald-50:  #f4f8eb;
  --dt-emerald-100: #e6efde;
  --dt-emerald-200: #d5e3c9;
  --dt-emerald-300: #b8cfab;
  --dt-emerald-400: #95b987;
  --dt-emerald-500: #6e9965;
  --dt-emerald-600: #4a7a3f;
  --dt-emerald-700: #365a2d;
  --dt-emerald-800: #2f4b28;
  --dt-emerald-900: #243a20;

  /* ── Neutrals (zinc) ───────────────────────────────────────── */
  --dt-zinc-50:  #fafafa;
  --dt-zinc-100: #f4f4f5;
  --dt-zinc-200: #e4e4e7;
  --dt-zinc-300: #d4d4d8;
  --dt-zinc-400: #a1a1aa;
  --dt-zinc-500: #6b6f7d;
  --dt-zinc-600: #4d5465;
  --dt-zinc-700: #3a4156;
  --dt-zinc-800: #243456;
  --dt-zinc-900: #1d2a48;
  --dt-zinc-950: #161a26;

  /* ── Surfaces ──────────────────────────────────────────────── */
  --dt-page-bg:       #e6efde;
  --dt-surface:       #ffffff;
  --dt-surface-subtle:#eef4e6;
  --dt-surface-tinted:#f4f8eb;
  --dt-hero-bg: linear-gradient(135deg, #eef4e6 0%, #e6efde 48%, #f4f8eb 100%);

  /* ── Semantic colors ───────────────────────────────────────── */
  --dt-fg:           var(--dt-zinc-950);
  --dt-fg-muted:     var(--dt-zinc-600);
  --dt-fg-subtle:    var(--dt-zinc-500);
  --dt-fg-faint:     var(--dt-zinc-400);
  --dt-fg-inverse:   #ffffff;
  --dt-border:       rgba(29, 42, 72, 0.20);
  --dt-border-soft:  rgba(29, 42, 72, 0.12);
  --dt-border-strong:rgba(29, 42, 72, 0.28);
  --dt-link:         var(--dt-zinc-900);
  --dt-link-hover:   var(--dt-emerald-700);
  --dt-focus-ring:   rgba(74, 122, 63, 0.12);
  --dt-focus-border: var(--dt-emerald-500);

  /* ── Status ────────────────────────────────────────────────── */
  --dt-success:    var(--dt-emerald-600);
  --dt-success-bg: var(--dt-emerald-50);
  --dt-success-fg: var(--dt-emerald-700);
  --dt-danger:     #dc2626;
  --dt-danger-bg:  #fef2f2;
  --dt-danger-fg:  #b91c1c;
  --dt-warning:    #d97706;
  --dt-warning-bg: #fffbeb;
  --dt-warning-fg: #92400e;
  --dt-info:       #4f46e5;
  --dt-info-bg:    #eef2ff;
  --dt-info-fg:    #4338ca;

  /* ── Donor heat ────────────────────────────────────────────── */
  --dt-heat-hot-bg:  #ffedd5;
  --dt-heat-hot-fg:  #ea580c;
  --dt-heat-warm-bg: var(--dt-zinc-100);
  --dt-heat-warm-fg: var(--dt-zinc-500);
  --dt-heat-cold-bg: #e0f2fe;
  --dt-heat-cold-fg: #0284c7;

  /* ── Radii ─────────────────────────────────────────────────── */
  --dt-radius-xs:   4px;
  --dt-radius-sm:   6px;
  --dt-radius-md:   10px;
  --dt-radius-lg:   12px;
  --dt-radius-xl:   16px;
  --dt-radius-2xl:  20px;
  --dt-radius-3xl:  24px;
  --dt-radius-pill: 9999px;

  /* ── Spacing ───────────────────────────────────────────────── */
  --dt-space-1:  4px;
  --dt-space-2:  8px;
  --dt-space-3:  12px;
  --dt-space-4:  16px;
  --dt-space-5:  20px;
  --dt-space-6:  24px;
  --dt-space-8:  32px;
  --dt-space-10: 40px;
  --dt-space-12: 48px;
  --dt-space-16: 64px;

  /* ── Shadows ───────────────────────────────────────────────── */
  --dt-shadow-xs:           0 1px 0 rgba(29, 42, 72, 0.04);
  --dt-shadow-sm:           0 1px 0 rgba(29, 42, 72, 0.04), 0 8px 24px -18px rgba(29, 42, 72, 0.12);
  --dt-shadow-md:           0 1px 0 rgba(29, 42, 72, 0.04), 0 8px 24px -18px rgba(29, 42, 72, 0.18);
  --dt-shadow-lg:           0 1px 0 rgba(29, 42, 72, 0.04), 0 12px 32px -14px rgba(29, 42, 72, 0.22);
  --dt-shadow-xl:           0 1px 0 rgba(29, 42, 72, 0.04), 0 20px 40px -12px rgba(29, 42, 72, 0.26);
  --dt-shadow-metric-hover: 0 8px 24px rgba(16, 185, 129, 0.12);

  /* ── Motion ────────────────────────────────────────────────── */
  --dt-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dt-ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --dt-duration-fast:   0.15s;
  --dt-duration-medium: 0.25s;
  --dt-duration-slow:   0.5s;

  /* ── Typography ────────────────────────────────────────────── */
  --dt-font-sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --dt-font-serif: 'Newsreader', ui-serif, Georgia, serif;
  --dt-font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --dt-text-2xs:  10px;
  --dt-text-xs:   12px;
  --dt-text-sm:   14px;
  --dt-text-base: 16px;
  --dt-text-lg:   18px;
  --dt-text-xl:   20px;
  --dt-text-2xl:  24px;
  --dt-text-3xl:  30px;

  --dt-weight-regular:  400;
  --dt-weight-medium:   500;
  --dt-weight-semibold: 600;
  --dt-weight-bold:     700;

  --dt-tracking-tight:  -0.01em;
  --dt-tracking-normal: 0;
  --dt-tracking-caps:   0.18em;
}

html,
body {
  background: var(--dt-page-bg);
}

body {
  font-family: var(--dt-font-sans);
  color: var(--dt-fg);
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════════════════════════════
   Donor Tracker — Tailwind-compatible base styles
   ════════════════════════════════════════════════════════════════ */

/* ── Collapsible sidebar ───────────────────────────────────────── */
#desktopSidebar {
  width: 16rem; /* 256px — expanded */
  transition: width 0.2s ease;
}
.sidebar-is-collapsed #desktopSidebar {
  width: 3.5rem; /* 56px — icons only */
}
@media (min-width: 1024px) {
  #mainContent {
    padding-left: 16rem;
    transition: padding-left 0.2s ease;
  }
  .sidebar-is-collapsed #mainContent {
    padding-left: 3.5rem;
  }
}

/* Hide text labels when collapsed */
.sidebar-is-collapsed #desktopSidebar .sidebar-label,
.sidebar-is-collapsed #desktopSidebar .sidebar-section-label,
.sidebar-is-collapsed #desktopSidebar .sidebar-campaign-label,
.sidebar-is-collapsed #desktopSidebar .sidebar-toggle-btn {
  display: none;
}

/* Compact nav links when collapsed */
.sidebar-is-collapsed #desktopSidebar .nav-link {
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  gap: 0;
}
.sidebar-is-collapsed #desktopSidebar .nav-link > i {
  width: auto;
  margin: 0;
  font-size: 1rem;
}

.sidebar-is-collapsed #desktopSidebar .sidebar-dot-indicator {
  display: none;
}

/* Hide campaigns section when collapsed */
.sidebar-is-collapsed #desktopSidebar .sidebar-campaigns-section {
  display: none;
}

.account-collapsed-settings-link {
  display: none;
}

/* Account button at bottom — direct settings link when collapsed */
.sidebar-is-collapsed #desktopSidebar #accountDropdownWrap {
  border-top: 0;
  padding-top: 0;
}
.sidebar-is-collapsed #desktopSidebar #accountDropdownWrap button,
.sidebar-is-collapsed #desktopSidebar #accountDropdownWrap #accountDropdown {
  display: none;
}
.sidebar-is-collapsed #desktopSidebar #accountDropdownWrap .account-collapsed-settings-link {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.75rem;
  background: #ecfdf5;
  color: #047857;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar-is-collapsed #desktopSidebar #accountDropdownWrap .account-collapsed-settings-link:hover {
  background: #d1fae5;
  color: #065f46;
}

/* Sidebar nav padding when collapsed */
.sidebar-is-collapsed #desktopSidebar nav {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  align-items: center;
}

/* Center the logo/header when collapsed */
.sidebar-is-collapsed #desktopSidebar .sidebar-header {
  justify-content: center;
}
.sidebar-is-collapsed #desktopSidebar .sidebar-header > div {
  padding: 0;
}
.sidebar-is-collapsed #desktopSidebar .sidebar-logo {
  width: 2rem;
  height: 2rem;
}

/* ── Nav link styling ──────────────────────────────────────────── */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dt-zinc-700);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.52);
  color: var(--dt-zinc-950);
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.62);
  color: var(--dt-zinc-950);
  box-shadow: inset 0 0 0 1px var(--dt-border-soft);
}

/* ── Nav groups (collapsible dropdown sections in sidebar) ─── */
.nav-group-children {
  display: none;
  flex-direction: column;
  gap: 1px;
  margin-top: 1px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1.5px solid #e4e4e7;
}
.nav-group.is-open > .nav-group-children {
  display: flex;
}
.nav-group-chevron {
  margin-left: auto;
  font-size: 9px;
  color: #a1a1aa;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav-group.is-open > button .nav-group-chevron {
  transform: rotate(180deg);
}
.nav-sublink {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #71717a;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.nav-sublink:hover {
  background-color: rgba(255, 255, 255, 0.52);
  color: var(--dt-zinc-950);
}
.nav-sublink.active {
  color: var(--dt-zinc-950);
  background-color: rgba(255, 255, 255, 0.64);
}
/* Hide sub-items and chevron when sidebar is collapsed */
.sidebar-is-collapsed #desktopSidebar .nav-group-children { display: none !important; }
.sidebar-is-collapsed #desktopSidebar .nav-group-chevron { display: none; }

.reminder-alert-icon {
  color: #e11d48;
  animation: reminder-bell-pulse 1.25s ease-in-out infinite;
}

.billing-alert-icon {
  color: #d97706;
  animation: billing-icon-pulse 1.25s ease-in-out infinite;
}

@keyframes reminder-bell-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.78;
  }
}

@keyframes billing-icon-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.78;
  }
}

/* ── Card component ────────────────────────────────────────────── */
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius-md);
  background: var(--dt-surface-tinted);
  box-shadow: var(--dt-shadow-sm);
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--dt-border-soft);
  color: var(--dt-zinc-950);
}

.card-body {
  padding: 1.25rem;
}

.card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #f1f5f9;
}

h1, h3, h4, h5, h6,
h1.tracking-tight {
  font-family: var(--dt-font-serif);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.05em;
  color: var(--dt-zinc-950);
}

h2 {
  font-family: var(--dt-font-serif);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.05em;
  color: var(--dt-zinc-950);
}

/* ── Card flashlight glow (easter egg) ─────────────────────────── */
.card-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    400px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    var(--glow-color, rgba(34, 197, 94, 0.08)),
    transparent 70%
  );
  transition: opacity 0.35s ease;
}

.card:hover > .card-glow {
  opacity: 1;
}

/* ── Form controls ─────────────────────────────────────────────── */
.form-input,
.form-select,
.form-control,
.form-control-input,
select.form-select,
input.form-control,
textarea.form-control {
  display: block;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(9, 9, 11, 0.1); /* zinc-950/10 — Catalyst border */
  background: #fff;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #18181b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.form-input:hover,
.form-select:hover,
.form-control:hover,
.form-control-input:hover,
select.form-select:hover,
input.form-control:hover,
textarea.form-control:hover {
  border-color: rgba(9, 9, 11, 0.2); /* zinc-950/20 — Catalyst hover */
}

.form-input:focus,
.form-select:focus,
.form-control:focus,
.form-control-input:focus,
select.form-select:focus,
input.form-control:focus,
textarea.form-control:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

textarea.form-control {
  min-height: 6rem;
  resize: vertical;
}

.form-control::placeholder,
.form-control-input::placeholder,
input.form-control::placeholder,
textarea.form-control::placeholder {
  color: #a1a1aa; /* zinc-400 — clearly lighter than real input text */
  opacity: 1;     /* override Firefox's default opacity reduction */
}

/* ── Catalyst-style combobox ─────────────────────────────────── */
.catalyst-combobox {
  position: relative;
  width: 100%;
}

.catalyst-combobox.is-open {
  z-index: 90;
}

.combobox-menu-open,
.card:has(.catalyst-combobox.is-open),
.dashboard-hero:has(.catalyst-combobox.is-open) {
  position: relative;
  overflow: visible !important;
  z-index: 70;
}

.catalyst-combobox-input {
  padding-right: 2.5rem;
}

.catalyst-combobox-trigger {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: -0.625rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: #71717a;
  cursor: pointer;
}

.catalyst-combobox-trigger:hover {
  color: #18181b;
}

.catalyst-combobox-panel {
  position: absolute;
  z-index: 90;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  display: none;
  max-height: 16rem;
  overflow-y: auto;
  border: 1px solid rgba(9, 9, 11, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 30px rgba(15, 23, 42, 0.1);
  padding: 0.375rem;
}

.catalyst-combobox.is-open .catalyst-combobox-panel {
  display: block;
}

.catalyst-combobox-empty {
  display: none;
  padding: 0.65rem 0.75rem;
  color: #71717a;
  font-size: 0.8125rem;
}

.catalyst-combobox.is-empty .catalyst-combobox-empty {
  display: block;
}

.catalyst-combobox-option {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  padding: 0.65rem 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.catalyst-combobox-option:hover,
.catalyst-combobox-option.is-active {
  background: #f4f4f5;
}

.catalyst-combobox-option[hidden] {
  display: none;
}

.catalyst-combobox-label {
  display: block;
  color: #18181b;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.catalyst-combobox-meta {
  display: block;
  margin-top: 0.1rem;
  color: #71717a;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* ── Catalyst-style el-select ─────────────────────────────────── */
.el-select,
.catalyst-select {
  position: relative;
  display: block;
  width: 100%;
}

.el-select[data-open="true"] {
  z-index: 90;
}

.card.el-select-menu-open,
.card:has(.el-select[data-open="true"]) {
  overflow: visible;
  z-index: 60;
}

.dashboard-hero.el-select-menu-open,
.dashboard-hero:has(.el-select[data-open="true"]) {
  overflow: visible;
  z-index: 70;
}

.el-select::before,
.catalyst-select::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(0.75rem - 1px);
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.el-select-button,
.catalyst-select select {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  appearance: none;
  border-radius: 0.75rem;
  border: 1px solid rgba(9, 9, 11, 0.1);
  background: transparent;
  padding: 0.625rem 2.25rem 0.625rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #09090b;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  text-align: left;
}

.el-select-button {
  min-height: 2.75rem;
}

.el-select-button:hover,
.catalyst-select select:hover {
  border-color: rgba(9, 9, 11, 0.2);
}

.el-select-button:focus,
.catalyst-select select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.catalyst-select select:disabled {
  opacity: 0.5;
  cursor: default;
}

.el-select-chevron,
.catalyst-select .catalyst-select-chevron {
  position: absolute;
  z-index: 2;
  inset-block: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding-right: 0.5rem;
  pointer-events: none;
}

.el-select-chevron i {
  font-size: 0.75rem;
  color: #71717a;
}

.catalyst-select .catalyst-select-chevron svg {
  width: 1rem;
  height: 1rem;
  stroke: #71717a; /* zinc-500 */
  fill: none;
}

.el-select-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;
  max-height: 16rem;
  overflow-y: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(9, 9, 11, 0.08);
  background: #fff;
  padding: 0.25rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.el-select-menu[hidden] {
  display: none;
}

.el-select-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.55rem;
  padding: 0.55rem 0.65rem;
  color: #3f3f46;
  font-size: 0.875rem;
  line-height: 1.35;
  text-align: left;
}

.el-select-option:hover,
.el-select-option[aria-selected="true"] {
  background: #f4f4f5;
  color: #18181b;
}

.el-select-option[data-selected="true"]::after {
  content: '✓';
  color: #059669;
  font-size: 0.75rem;
  font-weight: 700;
}

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

.table th,
.table td {
  padding: 0.85rem 0.875rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #71717a; /* zinc-500 */
  white-space: nowrap;
  font-weight: 600;
}

.table-striped tbody tr:nth-child(odd) {
  background: #fafafa;
}

.table-hover tbody tr:hover {
  background: #fafaf9;
}

.table-sm th,
.table-sm td {
  padding: 0.4rem 0.5rem;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-sm {
  min-height: 2rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: 0.375rem;
}

.btn-primary {
  background: #18181b;
  color: #fff;
  border-color: #18181b;
}
.btn-primary:hover { background: #27272a; }

.btn-success {
  background: #059669;
  color: #fff;
  border-color: #059669;
}
.btn-success:hover { background: #047857; }

.btn-danger {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.btn-danger:hover { background: #b91c1c; }

.btn-warning {
  background: #d97706;
  color: #fff;
  border-color: #d97706;
}
.btn-warning:hover { background: #b45309; }

.btn-outline {
  background: #fff;
  color: #3f3f46;
  border-color: #e4e4e7;
}
.btn-outline:hover { background: #fafafa; }

.btn-outline-danger {
  background: #fff;
  color: #dc2626;
  border-color: #fca5a5;
}
.btn-outline-danger:hover { background: #fef2f2; }

.btn-outline-success {
  background: #fff;
  color: #059669;
  border-color: #a7f3d0;
}
.btn-outline-success:hover { background: #ecfdf5; }

.btn-ghost {
  background: transparent;
  color: #52525b;
  border: none;
}
.btn-ghost:hover { background: #f4f4f5; }

/* ── Catalyst-style dropdowns ─────────────────────────────────── */
.catalyst-dropdown {
  position: relative;
}

.catalyst-dropdown-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(9, 9, 11, 0.08);
  background: rgba(250, 250, 250, 0.96);
  padding: 0.55rem 0.75rem;
  color: #18181b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.catalyst-dropdown-button:hover {
  background: #ffffff;
  border-color: rgba(9, 9, 11, 0.12);
}

.catalyst-dropdown-button:focus-visible {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.catalyst-dropdown-chevron {
  margin-left: auto;
  color: #71717a;
  font-size: 0.7rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

.catalyst-dropdown.is-open .catalyst-dropdown-chevron {
  transform: rotate(180deg);
  color: #18181b;
}

.catalyst-dropdown-menu {
  position: absolute;
  z-index: 50;
  display: none;
  min-width: 15rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(9, 9, 11, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 16px 40px rgba(15, 23, 42, 0.14);
  padding: 0.35rem;
}

.catalyst-dropdown.is-open .catalyst-dropdown-menu {
  display: block;
}

.catalyst-dropdown-menu[data-anchor="top-start"] {
  right: auto;
  left: 0;
  bottom: calc(100% + 0.5rem);
}

.catalyst-dropdown-menu[data-anchor="bottom-end"] {
  right: 0;
  left: auto;
  top: calc(100% + 0.5rem);
}

.catalyst-dropdown-section + .catalyst-dropdown-section,
.catalyst-dropdown-divider {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid #f1f5f9;
}

.catalyst-dropdown-header {
  padding: 0.85rem 0.85rem 0.75rem;
  text-align: center;
}

.catalyst-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  padding: 0.6rem 0.7rem;
  color: #3f3f46;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.catalyst-dropdown-item:hover {
  background: #f4f4f5;
  color: #18181b;
}

.catalyst-dropdown-item-danger {
  color: #dc2626;
}

.catalyst-dropdown-item-danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.catalyst-dropdown-item-icon {
  width: 1rem;
  text-align: center;
  color: #71717a;
  flex: none;
}

.catalyst-dropdown-item-danger .catalyst-dropdown-item-icon {
  color: currentColor;
}

/* ── Catalyst-style disclosure / details ──────────────────────── */
.catalyst-disclosure {
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
}

.catalyst-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #18181b;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.catalyst-disclosure > summary::-webkit-details-marker {
  display: none;
}

.catalyst-disclosure > summary:hover {
  background: #fafafa;
}

.catalyst-disclosure-icon {
  color: #71717a;
  font-size: 0.75rem;
  transition: transform 0.15s ease;
}

.catalyst-disclosure[open] .catalyst-disclosure-icon {
  transform: rotate(180deg);
}

.catalyst-disclosure-panel {
  border-top: 1px solid #f1f5f9;
  padding: 0.9rem 1rem 1rem;
}

/* ── Badge ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 0.75rem;
  line-height: 1.5;
}

.badge-success { background: #ecfdf5; color: #059669; }
.badge-danger { background: #fef2f2; color: #dc2626; }
.badge-warning { background: #fffbeb; color: #d97706; }
.badge-brand { background: #eef2ff; color: #4f46e5; }
.badge-neutral { background: #f4f4f5; color: #52525b; }

.badge-outline {
  background: transparent;
  border: 1px solid currentColor;
  padding: 0 0.4rem;
}

/* ── Empty states ──────────────────────────────────────────────── */
.empty-state {
  padding: 1.5rem 1rem;
}

.empty-state svg {
  color: #a1a1aa;
}

/* ── Circular color picker ─────────────────────────────────────── */
.color-dot-input,
.tag-color-input {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 9999px;
  overflow: hidden;
}

.color-dot-input::-webkit-color-swatch-wrapper,
.tag-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-dot-input::-webkit-color-swatch,
.tag-color-input::-webkit-color-swatch {
  border: 0;
  border-radius: 9999px;
}

.color-dot-input::-moz-color-swatch,
.tag-color-input::-moz-color-swatch {
  border: 0;
  border-radius: 9999px;
}

/* ── Tag badge ─────────────────────────────────────────────────── */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
}

/* ── Donate page ───────────────────────────────────────────────── */
.donate-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #4f46e5, #3730a3);
  color: white;
}

.donate-header h2 {
  margin: 0 0 0.25rem;
}

/* ── Auth card ─────────────────────────────────────────────────── */
.auth-card {
  border-radius: 1.25rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 48px rgba(15, 23, 42, 0.08);
}

/* ── Stripe badge ──────────────────────────────────────────────── */
.stripe-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 600;
  font-size: 0.75rem;
}

/* ── Tagline rotation (login page) ─────────────────────────────── */
.tagline-rotate {
  min-height: 1.3rem;
  color: #71717a;
  transition: opacity 0.35s ease;
}

.tagline-rotate.fade-out {
  opacity: 0;
}

/* ── Password strength ─────────────────────────────────────────── */
.pw-strength,
.pw-match-msg {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.75rem;
}

.pw-strength.weak { color: #dc2626; }
.pw-strength.fair { color: #d97706; }
.pw-strength.good { color: #059669; }
.pw-strength.fort { color: #4f46e5; }

.pw-match-msg.match { color: #059669; }
.pw-match-msg.no-match { color: #dc2626; }

/* ── Test mode banner ──────────────────────────────────────────── */
.test-mode-banner {
  margin-bottom: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════════════
   Easter Eggs
   ════════════════════════════════════════════════════════════════ */

/* ── Metric card hover tilt ────────────────────────────────────── */
.metric-tilt {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.metric-tilt:hover {
  transform: translateY(-2px) rotate(-0.3deg);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

/* ── Avatar wiggle on hover ────────────────────────────────────── */
.avatar-wiggle:hover {
  animation: avatar-wiggle 0.5s ease;
}
@keyframes avatar-wiggle {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(-6deg) scale(1.05); }
  40%  { transform: rotate(5deg) scale(1.05); }
  60%  { transform: rotate(-3deg); }
  80%  { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

/* ── Nav icon bounce on active ─────────────────────────────────── */
.nav-link.active i {
  animation: nav-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes nav-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ── Sparkle cursor on dollar amounts ──────────────────────────── */
.sparkle-pop {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 1rem;
  animation: sparkle-fly 0.7s ease-out forwards;
}
@keyframes sparkle-fly {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx, 10px), var(--dy, -30px)) scale(0.4); }
}

/* ── Badge pulse on overdue ────────────────────────────────────── */
.badge-danger {
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

/* ── Wiggle hover ──────────────────────────────────────────────── */
.wiggle-hover:hover {
  animation: wiggle 0.35s ease;
}
@keyframes wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(1deg); }
  50% { transform: rotate(-1deg); }
  100% { transform: rotate(0deg); }
}

/* ── Card shake (konami) ───────────────────────────────────────── */
.card-shake {
  animation: card-shake 0.6s ease;
}
@keyframes card-shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

/* ── Konami confetti ───────────────────────────────────────────── */
.konami-confetti {
  position: absolute;
  top: -1rem;
  font-size: 1.2rem;
  animation: confetti-drop 1.4s ease forwards;
}
@keyframes confetti-drop {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(160px) rotate(360deg); opacity: 0; }
}

/* ── Details chevron rotation ──────────────────────────────────── */
details[open] .details-chevron {
  transform: rotate(180deg);
}

/* ── Confetti container ────────────────────────────────────────── */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -20px;
  font-size: 1.3rem;
  animation: confetti-fall 2.5s ease-out forwards;
}
@keyframes confetti-fall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* ── AI summary bullets ────────────────────────────────────────── */
.ai-bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.ai-bullet-list li {
  position: relative;
  padding-left: 1rem;
}
.ai-bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #4f46e5;
}

/* ── Call log action buttons ───────────────────────────────────── */
.call-log-action-btn {
  border: 0;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}
.call-log-action-btn:hover {
  background: #f4f4f5;
  color: #18181b;
}
.call-log-delete-btn:hover {
  color: #dc2626 !important;
}

/* ── Save indicator ────────────────────────────────────────────── */
.save-indicator {
  font-size: 0.75rem;
  min-height: 1.2em;
}
.save-indicator.typing { color: #71717a; }
.save-indicator.saving { color: #4f46e5; }
.save-indicator.saved { color: #059669; }
.save-indicator.error { color: #dc2626; }

/* ════════════════════════════════════════════════════════════════
   UI Kit design system — shared component classes
   ════════════════════════════════════════════════════════════════ */

/* Typography */
.eyebrow {
  font-family: var(--dt-font-mono);
  font-weight: 500;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dt-emerald-600);
}
.page-title {
  font-family: var(--dt-font-serif);
  font-weight: 600;
  font-style: normal;
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: var(--dt-zinc-950);
  margin: 0;
}
.card-title {
  font-family: var(--dt-font-serif);
  font-weight: 600;
  font-style: normal;
  font-size: 18px;
  line-height: 1.3;
  color: var(--dt-zinc-950);
  margin: 0;
  letter-spacing: -0.04em;
}

/* Donor heat avatar */
.heat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: none;
  transition: transform .25s ease;
}
.heat-avatar.heat-hot  { background: #ffedd5; color: #ea580c; }
.heat-avatar.heat-warm { background: #f4f4f5; color: #71717a; }
.heat-avatar.heat-cold { background: #e0f2fe; color: #0284c7; }
.heat-avatar.heat-dnc  { background: #fef2f2; color: #dc2626; }
.heat-avatar:hover { animation: avatar-wiggle 0.5s ease; }
@keyframes avatar-wiggle {
  0%, 100% { transform: rotate(0deg); }
  20%      { transform: rotate(-6deg) scale(1.05); }
  40%      { transform: rotate(5deg)  scale(1.05); }
  60%      { transform: rotate(-3deg); }
  80%      { transform: rotate(2deg); }
}

/* Metric cards */
.metric-card {
  background: var(--dt-surface-tinted);
  border: 1px solid var(--dt-border);
  border-radius: 0;
  padding: 20px;
  display: grid;
  gap: 6px;
  box-shadow: none;
  transition: background-color .2s ease;
}
.metric-card:hover {
  background: rgba(255,255,255,0.38);
}
.metric-label { display: flex; align-items: center; gap: 8px; color: var(--dt-emerald-600); }
.metric-icon  { color: var(--dt-emerald-600); font-size: 13px; }
.metric-value {
  font-family: var(--dt-font-serif);
  font-weight: 600;
  font-style: normal;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--dt-zinc-950);
}
.metric-value.emphasis { color: var(--dt-zinc-950); }
.metric-delta {
  font-size: 12px;
  color: var(--dt-emerald-600);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.metric-delta.down { color: #b91c1c; }

/* Pill filter toggles */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid #e4e4e7;
  background: #fff;
  font: 500 13px/1 'Inter', sans-serif;
  color: #52525b;
  cursor: pointer;
  transition: all .15s ease;
}
.filter-pill:hover  { background: #fafafa; border-color: #d4d4d8; }
.filter-pill.active { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }

/* AI talking-point bullets (indigo accent) */
.ai-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ai-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: #3f3f46;
  line-height: 1.55;
}
.ai-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #4f46e5;
  font-weight: 700;
}

/* Icon-only square button */
.btn-icon { width: 36px; padding: 0; min-height: 36px; }

/* ════════════════════════════════════════════════════════════════
   Shared Guilloche — Auth page background art
   (Same visual language as the dashboard hero)
   ════════════════════════════════════════════════════════════════ */

/* Full-screen fixed background layer */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, rgba(236, 253, 245, 0.55) 55%, #fafafa 100%);
}

/* Crosshatch diagonal overlay — same as dashboard-hero::after */
.auth-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -12deg,
      rgba(5, 150, 105, 0.032) 0,
      rgba(5, 150, 105, 0.032) 1px,
      transparent 1px,
      transparent 8px
    ),
    repeating-linear-gradient(
      78deg,
      rgba(16, 185, 129, 0.022) 0,
      rgba(16, 185, 129, 0.022) 1px,
      transparent 1px,
      transparent 12px
    ),
    linear-gradient(90deg, rgba(255,255,255,0.3), transparent 24%, transparent 76%, rgba(255,255,255,0.25));
  pointer-events: none;
}

/* Outer clipping circle — stationary, clips the spinning inner */
.auth-guilloche-rotator {
  position: absolute;
  width: 920px;
  height: 920px;
  right: -220px;
  top: 50%;
  translate: 0 -50%;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 185, 129, 0.2);
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.06) 0%, transparent 68%);
  overflow: hidden;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Spinning inner — slightly elliptical so the rotation is visible */
.auth-guilloche {
  position: absolute;
  inset: -12%;
  border-radius: 44% 56% 53% 47% / 56% 44% 56% 44%;
  background:
    repeating-radial-gradient(ellipse at 48% 52%, rgba(16, 185, 129, 0.13) 0 1px, transparent 1px 16px),
    repeating-radial-gradient(ellipse at 54% 46%, rgba(5, 150, 105, 0.07) 0 1px, transparent 1px 26px);
  animation: guillocheRotate 90s linear infinite;
  pointer-events: none;
}

/* Shared keyframes (also used by dashboard) */
@keyframes guillocheRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes guillocheFloatA {
  0%   { transform: rotate(-9deg)  scaleX(1.18) scaleY(0.82) translate3d(0, 0, 0); }
  50%  { transform: rotate(-3deg)  scaleX(1.2)  scaleY(0.84) translate3d(0.35rem, 0.45rem, 0); }
  100% { transform: rotate(-9deg)  scaleX(1.18) scaleY(0.82) translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-guilloche-rotator,
  .auth-guilloche {
    animation: none !important;
  }
}

/* Ensure auth page content creates a stacking context above the bg */
.auth-content {
  position: relative;
}

.auth-kit-shell {
  position: relative;
  display: grid;
  min-height: calc(100svh - 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 31rem);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 4.5rem);
}

.auth-kit-shell::before {
  content: "";
  position: fixed;
  inset: auto auto -18rem -18rem;
  width: 42rem;
  height: 42rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(16, 185, 129, 0.08), transparent 68%),
    repeating-radial-gradient(circle at center, rgba(5, 150, 105, 0.08) 0 1px, transparent 1px 12px);
  pointer-events: none;
}

.auth-kit-intro {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.auth-kit-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(14px);
}

.auth-kit-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 999px;
  background: #064e3b;
  color: #ecfdf5;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-kit-copy {
  margin-top: clamp(1rem, 3vw, 2.5rem);
}

.auth-kit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(236, 253, 245, 0.82);
  padding: 0.4rem 0.75rem;
  color: #047857;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.auth-kit-copy h1 {
  margin-top: 1.4rem;
  max-width: 12ch;
  color: #09090b;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.auth-kit-copy p {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: #3f3f46;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.auth-kit-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  border: 1px solid rgba(228, 228, 231, 0.95);
  border-radius: 1rem;
  background: rgba(228, 228, 231, 0.95);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.auth-kit-proof > div {
  min-height: 9rem;
  background: rgba(255, 255, 255, 0.78);
  padding: 1rem;
  backdrop-filter: blur(14px);
}

.auth-kit-proof span {
  color: #059669;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.auth-kit-proof strong {
  display: block;
  margin-top: 1.65rem;
  color: #18181b;
  font-size: 0.9rem;
}

.auth-kit-proof p {
  margin-top: 0.4rem;
  color: #71717a;
  font-size: 0.78rem;
  line-height: 1.5;
}

.auth-kit-card {
  position: relative;
  z-index: 2;
  overflow: visible;
  border: 1px solid rgba(228, 228, 231, 0.95);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 28px 80px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

.auth-kit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(-12deg, rgba(16, 185, 129, 0.035) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(78deg, rgba(16, 185, 129, 0.025) 0 1px, transparent 1px 16px);
  opacity: 0.45;
  pointer-events: none;
}

.auth-kit-card-header,
.auth-kit-card-body {
  position: relative;
  z-index: 1;
}

.auth-kit-card-header {
  border-bottom: 1px solid #e4e4e7;
  padding: 1.5rem 1.5rem 1.35rem;
}

.auth-kit-card-header h2 {
  margin-top: 1rem;
  color: #09090b;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.auth-kit-card-header .tagline-rotate {
  margin-top: 0.35rem;
  color: #71717a;
  font-size: 0.9rem;
}

.auth-kit-card-body {
  padding: 1.5rem;
}

@media (max-width: 960px) {
  .auth-kit-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 1.25rem;
  }

  .auth-kit-copy {
    margin-top: 2.5rem;
  }

  .auth-kit-copy h1 {
    max-width: 10ch;
    font-size: clamp(1.8rem, 10vw, 3.8rem);
  }

  .auth-kit-proof {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Section dashboards (Donors/Volunteers overview, shared pieces)
   Page-specific grid columns stay in each template.
   ═══════════════════════════════════════════════════════════════ */

/* ── Section card ── */
.section-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--dt-surface-tinted);
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius-md);
  padding: 1.25rem; text-decoration: none;
  box-shadow: var(--dt-shadow-sm);
  transition: box-shadow .15s, border-color .15s; cursor: pointer;
}
.section-card:hover {
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.14); border-color: #a7f3d0; text-decoration: none;
}
.section-card-header { display: flex; align-items: center; gap: 10px; }
.section-card-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #ecfdf5; color: #059669;
  display: grid; place-items: center; font-size: 14px; flex-shrink: 0;
}
.section-card-title {
  /* Matches .card-title so section dashboards read like every other card */
  font-family: var(--dt-font-serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  text-transform: none;
  color: var(--dt-zinc-950);
  flex: 1;
}
.section-card-arrow { color: #d4d4d8; font-size: 12px; transition: color .15s, transform .15s; }
.section-card:hover .section-card-arrow { color: #059669; transform: translateX(3px); }
.section-card-stat { display: flex; align-items: baseline; gap: 6px; }
.section-card-number { font: 720 2rem/1 Inter, sans-serif; letter-spacing: -.03em; color: #09090b; }
.section-card-label { font-size: 13px; color: #71717a; font-weight: 500; }
.section-card-meta { font-size: 12px; color: #71717a; display: flex; align-items: center; gap: 5px; }

/* ── Compact avatars + person rows ── */
.ds-avatar {
  width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center;
  font: 600 11px/1 Inter, sans-serif; flex-shrink: 0;
}
.ds-hot  { background: #ffedd5; color: #ea580c; }
.ds-warm { background: #f4f4f5; color: #71717a; }
.ds-cold { background: #e0f2fe; color: #0284c7; }
.ds-donor-name { font: 500 13px/1.2 Inter, sans-serif; color: #09090b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-donor-sub  { font-size: 11px; color: #a1a1aa; }
.ds-donor-amt  { font: 600 12px/1 "Geist Mono", monospace; color: #059669; }
.ds-tag-chip {
  font: 500 10px/1 Inter, sans-serif; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 4px; white-space: nowrap;
  background: color-mix(in srgb, var(--tag-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag-color) 35%, transparent);
  color: var(--tag-color);
}
.ds-empty { font-size: 13px; color: #a1a1aa; text-align: center; padding: 20px 0; }

/* ── Compact item lists (call lists, sheets, donations) ── */
.ds-item-list { display: flex; flex-direction: column; gap: 0; margin-top: 4px; border-top: 1px solid rgba(29,42,72,.10); padding-top: 8px; }
.ds-item-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid rgba(29,42,72,.07);
  font-size: 12.5px;
}
.ds-item-row:last-child { border-bottom: 0; }
.ds-item-name { color: #3f3f46; font-weight: 500; font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ds-item-count { font-size: 11px; color: #a1a1aa; flex-shrink: 0; }
.ds-item-more  { font-size: 11px; color: #059669; padding-top: 4px; }

/* ── Tag cloud ── */
.ds-tag-cloud { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.ds-tag-pill {
  font: 500 11px/1 Inter, sans-serif; letter-spacing: .03em;
  padding: 3px 8px; border-radius: 5px; border: 1px solid;
  white-space: nowrap;
}

/* ── Donation stats row ── */
.ds-donation-stats { display: flex; gap: 24px; flex-wrap: wrap; padding: 4px 0 2px; }
.ds-donation-stat-value { font: 720 1.6rem/1 Inter, sans-serif; letter-spacing: -.03em; color: #09090b; }
.ds-donation-stat-label { font-size: 12px; color: #71717a; margin-top: 3px; }

/* ── Full-width database table card ── */
.db-full {
  background: var(--dt-surface-tinted);
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius-md);
  box-shadow: var(--dt-shadow-sm);
  overflow: hidden;
}
.db-full-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(29,42,72,.10);
  flex-wrap: wrap; gap: 10px;
}
.db-view-all {
  font: 500 12px/1 Inter, sans-serif; color: #059669;
  display: flex; align-items: center; gap: 4px;
  text-decoration: none; white-space: nowrap;
  padding: 6px 10px; border-radius: 6px;
  border: 1px solid rgba(5, 150, 105, 0.25);
  transition: background .12s, border-color .12s;
}
.db-view-all:hover { background: #f0fdf4; border-color: #059669; text-decoration: none; }
.db-table { display: flex; flex-direction: column; }
.db-thead {
  display: grid;
  padding: 7px 20px;
  background: #fafafa;
  border-bottom: 1px solid rgba(29,42,72,.08);
  font: 700 10px/1 Inter, sans-serif;
  letter-spacing: .14em; text-transform: uppercase; color: #a1a1aa;
}
.db-th { display: flex; align-items: center; }
.db-trow {
  display: grid;
  padding: 9px 20px;
  border-bottom: 1px solid rgba(29,42,72,.07);
  align-items: center;
  text-decoration: none;
  transition: background .1s;
}
.db-trow:last-child { border-bottom: 0; }
.db-trow:hover { background: #f9fafb; }
.db-td { font-size: 13px; min-width: 0; }
