/* ═══════════════════════════════════════════════════════════════════════════
   HEALING HORIZONS FOUNDATION — Design System
   Brand: Compassionate • Premium • Hopeful • Dignified
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ──────────────────────────────────────────────────────── */
:root {
  --navy:        #1F2A44;
  --navy-light:  #263352;
  --navy-dark:   #151D30;
  --gold:        #C8A96A;
  --gold-light:  #DEC08A;
  --gold-dark:   #A88A4A;
  --teal:        #6FB3B8;
  --teal-light:  #8DCDD2;
  --teal-dark:   #4E9499;
  --white:       #FFFFFF;
  --off-white:   #F8F6F2;
  --gray-50:     #F9FAFB;
  --gray-100:    #F0EDE8;
  --gray-200:    #E2DDD6;
  --gray-400:    #9C9488;
  --gray-600:    #6B6358;
  --gray-800:    #2E2A26;

  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Open Sans', 'Lato', system-ui, sans-serif;

  --shadow-sm:   0 1px 3px rgba(31,42,68,.08), 0 1px 2px rgba(31,42,68,.06);
  --shadow-md:   0 4px 16px rgba(31,42,68,.12), 0 2px 6px rgba(31,42,68,.08);
  --shadow-lg:   0 16px 40px rgba(31,42,68,.16), 0 6px 16px rgba(31,42,68,.10);
  --shadow-gold: 0 0 0 3px rgba(200,169,106,.25);

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --transition: all .2s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

a { color: var(--teal-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

/* ─── Layout Shell ───────────────────────────────────────────────────────── */
.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
.page-content { flex: 1; padding: 0; }

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.navbar-hh {
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding: .75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.navbar-hh .navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white) !important;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.brand-emblem {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(200,169,106,.4);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.brand-tagline { font-size: .65rem; font-family: var(--font-sans); font-weight: 400; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }

.nav-link-hh {
  color: rgba(255,255,255,.8) !important;
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: .02em;
}
.nav-link-hh:hover, .nav-link-hh.active {
  color: var(--gold) !important;
  background: rgba(200,169,106,.1);
}

.nav-badge {
  background: var(--teal);
  color: var(--white);
  font-size: .65rem;
  padding: .15rem .4rem;
  border-radius: 100px;
  font-weight: 700;
  margin-left: .3rem;
}

.navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-toggler-icon { filter: invert(1); }

/* ─── Hero Section ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 800px 500px at 80% 50%, rgba(111,179,184,.12) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(200,169,106,.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-ornament {
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border: 1px solid rgba(200,169,106,.15);
  border-radius: 50%;
  pointer-events: none;
}
.hero-ornament::after {
  content: '';
  position: absolute;
  top: 40px; left: 40px; right: 40px; bottom: 40px;
  border: 1px solid rgba(200,169,106,.08);
  border-radius: 50%;
}

.hero-eyebrow {
  font-size: .8rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.hero-eyebrow::before { content: ''; display: block; width: 30px; height: 1px; background: var(--gold); }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span { color: var(--gold); font-style: italic; }

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  font-weight: 300;
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 1rem;
}
.hero-stat-value { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--gold); display: block; }
.hero-stat-label { font-size: .75rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-dark) !important;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(200,169,106,.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 6px 24px rgba(200,169,106,.5);
  transform: translateY(-1px);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--gold) !important;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  padding: .7rem 1.65rem;
  border-radius: 100px;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy) !important; }

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--navy);
  color: var(--white) !important;
  font-weight: 600;
  font-size: .9rem;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-1px); }

.btn-teal {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--teal);
  color: var(--white) !important;
  font-weight: 600;
  font-size: .875rem;
  padding: .65rem 1.5rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-teal:hover { background: var(--teal-dark); }

/* ─── Cards ───────────────────────────────────────────────────────────────── */
.hh-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.hh-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.hh-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.card-icon.navy { background: rgba(31,42,68,.1); color: var(--navy); }
.card-icon.gold  { background: rgba(200,169,106,.15); color: var(--gold-dark); }
.card-icon.teal  { background: rgba(111,179,184,.15); color: var(--teal-dark); }
.card-icon.green { background: rgba(34,197,94,.1); color: #15803d; }
.card-icon.red   { background: rgba(239,68,68,.1); color: #dc2626; }

/* ─── Stat Cards ─────────────────────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.stat-card.gold-accent::before { background: linear-gradient(90deg, var(--gold-light), var(--gold)); }
.stat-card.teal-accent::before { background: linear-gradient(90deg, var(--teal-light), var(--teal)); }
.stat-card.navy-accent::before { background: linear-gradient(90deg, var(--navy-light), var(--navy)); }
.stat-card.green-accent::before { background: linear-gradient(90deg, #86efac, #22c55e); }

.stat-value {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-label { font-size: .8rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .08em; }
.stat-change { font-size: .8rem; margin-top: .5rem; display: flex; align-items: center; gap: .25rem; }
.stat-change.up { color: #16a34a; }
.stat-change.down { color: #dc2626; }

/* ─── Dashboard Layout ───────────────────────────────────────────────────── */
.dashboard-shell {
  display: flex;
  min-height: calc(100vh - 72px);
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--navy);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px);
}

.sidebar-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1rem;
}

.sidebar-user-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
}
.sidebar-user-role {
  font-size: .72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}

.sidebar-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: .75rem;
}

.sidebar-nav { flex: 1; padding: 0 .75rem; }

.sidebar-section-label {
  font-size: .65rem;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 1rem .75rem .4rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .65rem .75rem;
  color: rgba(255,255,255,.65) !important;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: .15rem;
  position: relative;
}
.sidebar-link:hover { background: rgba(255,255,255,.07); color: var(--white) !important; }
.sidebar-link.active { background: rgba(200,169,106,.15); color: var(--gold) !important; }
.sidebar-link.active::before { content: ''; position: absolute; left: 0; top: 25%; bottom: 25%; width: 3px; background: var(--gold); border-radius: 0 4px 4px 0; }
.sidebar-link i { font-size: 1rem; width: 20px; text-align: center; }

.dashboard-content { flex: 1; background: var(--gray-50); overflow-y: auto; }
.dashboard-inner { padding: 2rem; max-width: 1200px; }

/* ─── Page Headers ────────────────────────────────────────────────────────── */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 2rem;
  margin-bottom: 2rem;
}
.page-header-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: .25rem;
}
.page-header-subtitle { color: var(--gray-600); font-size: .9rem; }

.section-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .5rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-lead { font-size: 1.05rem; color: var(--gray-600); line-height: 1.8; max-width: 600px; }

/* ─── Forms ───────────────────────────────────────────────────────────────── */
.hh-form-group { margin-bottom: 1.5rem; }
.hh-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .5rem;
}
.hh-label .required { color: #dc2626; margin-left: .2rem; }

.hh-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.hh-input:focus {
  border-color: var(--teal);
  box-shadow: var(--shadow-gold);
  box-shadow: 0 0 0 3px rgba(111,179,184,.2);
}
.hh-input.is-invalid { border-color: #dc2626; }
.hh-input::placeholder { color: var(--gray-400); }

.hh-textarea { min-height: 120px; resize: vertical; }

.hh-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%239C9488' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.form-error { color: #dc2626; font-size: .8rem; margin-top: .35rem; display: flex; align-items: center; gap: .3rem; }

/* ─── Tables ──────────────────────────────────────────────────────────────── */
.hh-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .875rem;
}
.hh-table thead th {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .9rem 1rem;
  border: none;
}
.hh-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.hh-table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.hh-table tbody td { padding: .85rem 1rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.hh-table tbody tr:hover td { background: rgba(111,179,184,.04); }
.hh-table tbody tr:last-child td { border-bottom: none; }

/* ─── Status Badges ──────────────────────────────────────────────────────── */
.badge-hh {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .75rem;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-submitted  { background: rgba(111,179,184,.15); color: var(--teal-dark); }
.badge-approved   { background: rgba(34,197,94,.12); color: #15803d; }
.badge-denied     { background: rgba(239,68,68,.12); color: #dc2626; }
.badge-review     { background: rgba(234,179,8,.12); color: #a16207; }
.badge-draft      { background: rgba(156,148,136,.12); color: var(--gray-600); }
.badge-fulfilled  { background: rgba(31,42,68,.12); color: var(--navy); }
.badge-gold       { background: rgba(200,169,106,.15); color: var(--gold-dark); }
.badge-active     { background: rgba(34,197,94,.12); color: #15803d; }
.badge-completed  { background: rgba(31,42,68,.12); color: var(--navy); }
.badge-pending    { background: rgba(234,179,8,.12); color: #a16207; }

/* ─── Alert / Notice ─────────────────────────────────────────────────────── */
.hh-alert {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .875rem;
  margin-bottom: 1.5rem;
}
.hh-alert i { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }
.hh-alert.info    { background: rgba(111,179,184,.1); color: var(--teal-dark); border-left: 3px solid var(--teal); }
.hh-alert.success { background: rgba(34,197,94,.08); color: #15803d; border-left: 3px solid #22c55e; }
.hh-alert.warning { background: rgba(234,179,8,.1); color: #92400e; border-left: 3px solid #f59e0b; }
.hh-alert.error   { background: rgba(239,68,68,.08); color: #991b1b; border-left: 3px solid #ef4444; }

/* ─── Auth Pages ─────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(ellipse 700px 500px at 70% 40%, rgba(111,179,184,.1) 0%, transparent 60%);
  pointer-events: none;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0,0,0,.3);
  padding: 3rem;
  width: 100%;
  max-width: 480px;
  position: relative;
}

.auth-logo { text-align: center; margin-bottom: 2.5rem; }
.auth-logo-emblem {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 20px rgba(200,169,106,.4);
}
.auth-title { font-family: var(--font-serif); font-size: 1.6rem; color: var(--navy); margin-bottom: .25rem; }
.auth-subtitle { font-size: .875rem; color: var(--gray-400); }

/* ─── Document / Terms ───────────────────────────────────────────────────── */
.terms-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.terms-card-header {
  background: var(--navy);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.terms-card-header h4 { color: var(--white); margin: 0; font-size: 1rem; }
.terms-card-body { padding: 1.5rem; }
.terms-content {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  max-height: 200px;
  overflow-y: auto;
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ─── Message Thread ─────────────────────────────────────────────────────── */
.message-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.message-item:hover { background: rgba(111,179,184,.04); }
.message-item.unread { background: rgba(111,179,184,.06); }
.message-item.unread .message-subject { font-weight: 700; color: var(--navy); }

.message-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

/* ─── Progress / Stepper ─────────────────────────────────────────────────── */
.request-tracker {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1.5rem 0;
}
.tracker-step {
  flex: 1;
  text-align: center;
  position: relative;
}
.tracker-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}
.tracker-step.completed:not(:last-child)::after { background: var(--teal); }
.step-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .5rem;
  font-size: .9rem;
  font-weight: 700;
  border: 2px solid var(--gray-200);
  background: var(--white);
  position: relative; z-index: 1;
  transition: var(--transition);
}
.tracker-step.completed .step-dot { background: var(--teal); border-color: var(--teal); color: var(--white); }
.tracker-step.active .step-dot { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.step-label { font-size: .72rem; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.tracker-step.active .step-label { color: var(--gold-dark); }
.tracker-step.completed .step-label { color: var(--teal-dark); }

/* ─── File Upload ─────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--teal);
  background: rgba(111,179,184,.05);
}
.upload-icon { font-size: 2.5rem; color: var(--gray-400); margin-bottom: .75rem; }
.upload-zone:hover .upload-icon { color: var(--teal); }

/* ─── Dividers ────────────────────────────────────────────────────────────── */
.divider-gold {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2.5rem 0;
}

/* ─── Chart wrapper ──────────────────────────────────────────────────────── */
.chart-container { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.chart-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); margin-bottom: .25rem; }
.chart-subtitle { font-size: .8rem; color: var(--gray-400); margin-bottom: 1.5rem; }

/* ─── Loading ────────────────────────────────────────────────────────────── */
.loading-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  gap: 1rem;
}
.loading-logo {
  font-size: 3rem;
  color: var(--gold);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.6; transform:scale(.95); } }

/* ─── Blazor Error ───────────────────────────────────────────────────────── */
#blazor-error-ui {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #991b1b;
  color: white;
  padding: .75rem 1.5rem;
  text-align: center;
  z-index: 9999;
  display: none;
  font-size: .875rem;
}
#blazor-error-ui .reload { color: var(--gold); font-weight: 600; }

/* ─── Sponsor Allocation Visual ──────────────────────────────────────────── */
.allocation-bar-wrap { margin: .5rem 0; }
.allocation-bar-track {
  height: 10px;
  background: var(--gray-100);
  border-radius: 100px;
  overflow: hidden;
}
.allocation-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

/* ─── Demographics Pill ──────────────────────────────────────────────────── */
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .85rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  margin: .2rem;
}
.demo-pill.gold-star  { background: rgba(200,169,106,.15); color: var(--gold-dark); }
.demo-pill.veteran    { background: rgba(31,42,68,.1); color: var(--navy); }
.demo-pill.foster     { background: rgba(111,179,184,.15); color: var(--teal-dark); }
.demo-pill.all        { background: rgba(34,197,94,.1); color: #15803d; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.hh-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.6);
  padding: 3rem 0 1.5rem;
  font-size: .875rem;
  border-top: 2px solid var(--gold);
}
.footer-brand { font-family: var(--font-serif); font-size: 1.3rem; color: var(--white); margin-bottom: .5rem; }
.footer-tagline { color: var(--gold); font-size: .8rem; margin-bottom: 1rem; }
.footer-link { color: rgba(255,255,255,.5); margin-bottom: .4rem; display: block; transition: var(--transition); }
.footer-link:hover { color: var(--gold); }
.footer-heading { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.3); margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1.5rem; text-align: center; font-size: .8rem; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .dashboard-inner { padding: 1rem; }
  .hero { padding: 4rem 0 3rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .auth-card { padding: 2rem 1.5rem; }
  .hh-card { padding: 1.25rem; }
  .stat-value { font-size: 1.75rem; }
}

/* ─── Radzen Overrides ───────────────────────────────────────────────────── */
.rz-button-primary { background: var(--navy) !important; border-color: var(--navy) !important; }
.rz-button-primary:hover { background: var(--navy-light) !important; }
.rz-datepicker .rz-calendar .rz-datepicker-header { background: var(--navy) !important; }
.rz-notification { border-radius: var(--radius-md) !important; }

/* ─── Checkbox / Toggle ──────────────────────────────────────────────────── */
.hh-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
  margin-bottom: .75rem;
}
.hh-checkbox input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: var(--teal);
  flex-shrink: 0;
  margin-top: .15rem;
}
.hh-checkbox-label { font-size: .9rem; color: var(--gray-600); line-height: 1.5; }

/* ─── Misc utilities ─────────────────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-teal { color: var(--teal-dark); }
.text-navy { color: var(--navy); }
.text-muted-hh { color: var(--gray-400); font-size: .875rem; }
.font-serif { font-family: var(--font-serif); }
.section-pad { padding: 5rem 0; }
.border-gold { border-color: var(--gold) !important; }
