/* ============================================================
   MIND OF MERCY — DESIGN SYSTEM
   Responsive breakpoints: 1200 / 1024 / 768 / 480
   ============================================================ */

/* ── GOOGLE FONTS FALLBACKS ──────────────────────────────── */
/* Loaded via header.php from fonts.googleapis.com */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --blue:        #0A3D62;
  --blue-dark:   #062B47;
  --blue-mid:    #1A5276;
  --blue-light:  #EAF2FB;
  --green:       #2E8B57;
  --green-dark:  #1E6B3F;
  --green-light: #E8F8F0;
  --gold:        #C9920A;
  --gold-light:  #FEF7E0;

  /* Neutrals */
  --white:       #FFFFFF;
  --gray-50:     #F8F9FA;
  --gray-100:    #F0F2F5;
  --gray-200:    #DDE1E7;
  --gray-300:    #C4CBD5;
  --gray-400:    #9AA5B4;
  --gray-500:    #6B7A8D;
  --gray-600:    #4B5563;
  --gray-700:    #374151;
  --gray-800:    #1F2937;
  --gray-900:    #111827;

  /* Semantic */
  --text:         #1A2332;
  --text-muted:   #5C6B7A;
  --text-light:   #8A9BAE;
  --border:       #DDE1E7;
  --border-focus: #0A3D62;
  --bg:           #FFFFFF;
  --bg-alt:       #F8F9FA;
  --error:        #C0392B;
  --error-light:  #FEE2E2;
  --success:      #1E6B3F;
  --success-light:#E8F8F0;
  --warning:      #854D0E;
  --warning-light:#FEF9C3;

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border radii */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10,61,98,.06);
  --shadow-sm: 0 1px 3px rgba(10,61,98,.08), 0 1px 2px rgba(10,61,98,.05);
  --shadow:    0 4px 12px rgba(10,61,98,.10), 0 2px 4px rgba(10,61,98,.06);
  --shadow-md: 0 8px 24px rgba(10,61,98,.12), 0 3px 8px rgba(10,61,98,.08);
  --shadow-lg: 0 16px 40px rgba(10,61,98,.14), 0 4px 12px rgba(10,61,98,.08);
  --shadow-xl: 0 24px 60px rgba(10,61,98,.18);

  /* Transition */
  --transition: all .2s cubic-bezier(.4,0,.2,1);
  --transition-slow: all .35s cubic-bezier(.4,0,.2,1);

  /* Typography */
  --font-display: 'Times New Roman', Times, Georgia, serif;
  --font-body:    'Times New Roman', Times, Georgia, serif;
  --font-mono:    'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.5rem;
  --navbar-h: 64px;
}

/* Dark mode */
[data-theme="dark"] {
  --bg:          #0D1117;
  --bg-alt:      #161B22;
  --white:       #0D1117;
  --gray-50:     #161B22;
  --gray-100:    #21262D;
  --gray-200:    #30363D;
  --gray-300:    #444C56;
  --gray-400:    #6E7681;
  --gray-500:    #8B949E;
  --gray-600:    #B1BAC4;
  --gray-700:    #C9D1D9;
  --gray-800:    #E6EDF3;
  --gray-900:    #F0F6FC;
  --text:        #E6EDF3;
  --text-muted:  #8B949E;
  --text-light:  #6E7681;
  --border:      #30363D;
  --blue-light:  #0D1F2D;
  --green-light: #0D1A12;
  --gold-light:  #1A1200;
  --error-light: #2D0A0A;
  --success-light: #0A1D12;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background .25s, color .25s;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
input, textarea, select { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; }
h5 { font-size: .95rem; font-family: var(--font-body); font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.75; }

.section-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .5rem;
}
.lead { font-size: 1.1rem; line-height: 1.7; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.section     { padding: var(--space-20) 0; }
.section-alt { background: var(--bg-alt); }
.section-sm  { padding: var(--space-12) 0; }

/* Grid system */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Utilities */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted); }
.text-small   { font-size: .875rem; }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }
.color-blue   { color: var(--blue); }
.color-green  { color: var(--green); }
.color-gold   { color: var(--gold); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.divider { border: none; border-top: 1px solid var(--border); margin: var(--space-6) 0; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: .65rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-sm  { padding: .5rem 1.1rem; font-size: .82rem; }
.btn-lg  { padding: .85rem 2rem; font-size: 1rem; }
.btn-xl  { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue);  color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: #A87A08; border-color: #A87A08; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--gray-100); }

.btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn-danger:hover { background: #991B1B; border-color: #991B1B; }

/* ── CRISIS BAR ───────────────────────────────────────────── */
.crisis-bar {
  background: #8B1C1C;
  color: #fff;
  text-align: center;
  padding: .55rem var(--container-pad);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
  position: relative;
  z-index: 1001;
}
.crisis-bar a { color: #fff; text-decoration: underline; margin-left: .25rem; }
.crisis-bar a:hover { opacity: .85; }

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }
.navbar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
  flex: 1;
  margin-left: var(--space-4);
}
.nav-link {
  padding: .45rem .8rem;
  border-radius: var(--radius-sm);
  font-size: .855rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--blue); background: var(--blue-light); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: .4rem;
  min-width: 210px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--transition);
  z-index: 200;
}
.dropdown-menu-right { left: auto; right: 0; }
.dropdown-menu a,
.dropdown-menu button {
  display: block;
  width: 100%;
  padding: .55rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .855rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  text-align: left;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover { background: var(--blue-light); color: var(--blue); }
.dropdown-divider { height: 1px; background: var(--border); margin: .35rem .4rem; }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
  flex-shrink: 0;
}
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: none;
}
.theme-toggle:hover { background: var(--blue-light); }
.theme-icon { display: flex; align-items: center; justify-content: center; }

/* User avatar button */
.nav-avatar-btn { background: none; border: none; cursor: pointer; padding: 0; }
.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--blue-mid), var(--green));
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
}
.hamburger {
  width: 18px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* ── MOBILE MENU ──────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--blue-dark);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner { padding: var(--space-6) var(--container-pad) var(--space-8); min-height: 100%; }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}
.mobile-menu-header .navbar-logo { color: #fff; }
.mobile-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  display: block;
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 500;
  transition: color .15s;
}
.mobile-nav a:hover { color: #fff; }
.mobile-nav hr { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: var(--space-4) 0; }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1999;
}
.mobile-overlay[hidden] { display: none; }

/* ── FLASH MESSAGES ───────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: calc(var(--navbar-h) + 2.5rem + .5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: min(480px, calc(100vw - 2rem));
}
.flash {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideDown .2s ease;
}
.flash-success { background: var(--success-light); color: var(--success); border: 1px solid #6EE7B7; }
.flash-error   { background: var(--error-light);   color: var(--error);   border: 1px solid #FCA5A5; }
.flash-info    { background: var(--blue-light);     color: var(--blue);    border: 1px solid #93C5FD; }
.flash-warning { background: var(--warning-light);  color: var(--warning); border: 1px solid #FCD34D; }
.flash-close   { background: none; border: none; font-size: 1.1rem; cursor: pointer; opacity: .6; flex-shrink: 0; color: inherit; line-height: 1; }
.flash-close:hover { opacity: 1; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ── TOAST ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}
.toast {
  background: var(--gray-900);
  color: #fff;
  padding: .75rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: .855rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  pointer-events: auto;
  border-left: 3px solid var(--green);
  animation: toastIn .22s ease;
  transition: opacity .25s, transform .25s;
}
.toast.toast-error   { border-left-color: var(--error); }
.toast.toast-warning { border-left-color: var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ── PAGE HERO ────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%);
  padding: 5rem 0 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 50%; right: -40px;
  transform: translateY(-50%);
  width: 280px; height: 280px;
  background-image: url("../assets/images/illustrations/motif-tree-heart.svg");
  background-size: contain; background-repeat: no-repeat;
  opacity: .16;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: var(--space-3); }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 600px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: var(--space-3);
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: rgba(255,255,255,.3); }

/* ── AUTH SPLIT LAYOUT (login/register) ──────────────────── */
.auth-split {
  min-height: calc(100vh - 2.5rem - var(--navbar-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, var(--blue-mid) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
}
.auth-visual-img { width: 100%; max-width: 340px; margin-bottom: var(--space-6); filter: drop-shadow(0 16px 30px rgba(0,0,0,.25)); }
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-6);
  background: var(--bg);
}
@media (max-width: 900px) {
  .auth-split  { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}

/* ── DONATION FORM CONTROLS ───────────────────────────────── */
.freq-btn {
  flex: 1;
  padding: .65rem 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg);
  font-weight: 600;
  font-size: .875rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.freq-btn:hover  { border-color: var(--blue); }
.freq-btn.active { border-color: var(--blue); background: var(--blue); color: #fff; }

.donate-amount-btn {
  padding: .65rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg);
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.donate-amount-btn:hover  { border-color: var(--blue); }
.donate-amount-btn.active { border-color: var(--blue); background: var(--blue); color: #fff; }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: var(--space-6); }
.card-header { padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--border); }
.card-footer { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border); background: var(--bg-alt); }

/* ── BADGES ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-blue    { background: var(--blue-light);     color: var(--blue); }
.badge-green   { background: var(--green-light);    color: var(--green-dark); }
.badge-gold    { background: var(--gold-light);     color: #8B5E08; }
.badge-red     { background: var(--error-light);    color: var(--error); }
.badge-gray    { background: var(--gray-100);       color: var(--gray-600); }

/* Status pills */
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-active   { color: var(--green); }
.status-pending  { color: #8B5E08; }
.status-inactive { color: var(--error); }
.status-confirmed { color: var(--blue); }

/* ── FORMS ────────────────────────────────────────────────── */
.form-group   { margin-bottom: var(--space-5); }
.form-label   { display: block; font-size: .855rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.form-hint    { display: block; font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }
.form-error   { display: block; font-size: .78rem; color: var(--error); margin-top: .3rem; }

.form-control {
  display: block;
  width: 100%;
  padding: .65rem .9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(10,61,98,.12); }
.form-control::placeholder { color: var(--text-light); }
.form-control.is-invalid { border-color: var(--error); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%239AA5B4' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 12px;
  padding-right: 2.25rem;
  cursor: pointer;
}
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-check { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; }
.form-check input { margin-top: .2rem; flex-shrink: 0; accent-color: var(--blue); }
.form-check-label { font-size: .875rem; color: var(--text); }

/* ── TABLES ───────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { min-width: 600px; }
.data-table th {
  padding: .75rem 1rem;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: .9rem 1rem;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg-alt); }

/* ── TABS ─────────────────────────────────────────────────── */
.tabs { display: flex; gap: var(--space-2); flex-wrap: wrap; border-bottom: 2px solid var(--border); margin-bottom: var(--space-8); }
.tab-btn {
  padding: .6rem 1.2rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.tab-btn:hover  { color: var(--text); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-panel { display: none; animation: fadeUp .2s ease; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── ACCORDION ────────────────────────────────────────────── */
.accordion-list { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: var(--space-4);
}
.accordion-btn:hover { color: var(--blue); }
.accordion-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform .22s;
  color: var(--gray-400);
}
.accordion-btn[aria-expanded="true"] .accordion-chevron { transform: rotate(180deg); color: var(--blue); }
.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .28s ease;
}
.accordion-body-inner { padding-bottom: var(--space-5); }

/* ── PROGRESS ─────────────────────────────────────────────── */
.progress-bar { background: var(--gray-200); border-radius: var(--radius-full); height: 7px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--blue), var(--green)); transition: width .6s ease; }

/* ── PAGINATION ───────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.page-btn {
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .5rem;
}
.page-btn:hover   { border-color: var(--blue); color: var(--blue); }
.page-btn.active  { background: var(--blue); color: #fff; border-color: var(--blue); }
.page-btn:disabled { opacity: .4; pointer-events: none; }

/* ── HERO (HOMEPAGE) ──────────────────────────────────────── */
.hero-section {
  min-height: calc(100vh - 2.5rem - var(--navbar-h));
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, var(--blue-mid) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: var(--space-16) 0;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 75% 50%, rgba(46,139,87,.15) 0%, transparent 60%),
    radial-gradient(ellipse 45% 60% at 5% 85%,  rgba(201,146,10,.08) 0%, transparent 55%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.hero-content { color: #fff; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  padding: .35rem 1rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: var(--space-5);
}
.hero-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.hero-content h1 { color: #fff; margin-bottom: var(--space-5); }
.hero-content h1 em { font-style: italic; color: var(--gold); }
.hero-lead { font-size: 1.05rem; color: rgba(255,255,255,.78); margin-bottom: var(--space-8); max-width: 500px; line-height: 1.7; }
.hero-btns { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-10); }
.hero-stats { display: flex; gap: var(--space-8); flex-wrap: wrap; }
.stat-item { border-left: 2px solid var(--gold); padding-left: var(--space-4); }
.stat-number { font-family: var(--font-display); font-size: 1.9rem; font-weight: 900; color: #fff; line-height: 1; }
.stat-label  { font-size: .75rem; color: rgba(255,255,255,.6); margin-top: .2rem; }

/* Hero visual panel */
.hero-visual { display: flex; flex-direction: column; gap: var(--space-6); }
.hero-illustration-frame { position: relative; padding-bottom: var(--space-10); }
.hero-illustration-img {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.25));
}
.hero-panel-floating {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  text-align: center;
}
.hero-panel {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.hero-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.hero-mini {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.hero-mini h5 { color: #fff; font-size: .85rem; margin-bottom: .2rem; }
.hero-mini p  { color: rgba(255,255,255,.55); font-size: .75rem; }
.avatar-stack { display: flex; justify-content: center; margin-bottom: var(--space-4); }
.avatar-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-mid), var(--green));
  border: 2px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  margin-left: -10px;
}
.avatar-item:first-child { margin-left: 0; }

/* ── IMPACT / STAT CARDS ──────────────────────────────────── */
.impact-card {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}
.impact-card.green  { background: linear-gradient(135deg, var(--green-dark), var(--green)); }
.impact-card.gold   { background: linear-gradient(135deg, #8B5E08, var(--gold)); }
.impact-card.purple { background: linear-gradient(135deg, #4A235A, #7D3C98); }
.impact-number { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: #fff; line-height: 1; }
.impact-label  { color: rgba(255,255,255,.7); font-size: .85rem; margin-top: var(--space-2); }

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--green);
  opacity: .15;
  position: absolute;
  top: .5rem;
  left: var(--space-6);
  pointer-events: none;
}
.testimonial-text {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: var(--space-5);
  position: relative;
}
.testimonial-author { display: flex; align-items: center; gap: var(--space-3); }
.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: .9rem; color: var(--text); }
.author-role { font-size: .75rem; color: var(--text-muted); }

/* ── EVENTS ───────────────────────────────────────────────── */
.event-card {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.event-card:hover { box-shadow: var(--shadow); }
.event-date-box {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  padding: .6rem .8rem;
  text-align: center;
  flex-shrink: 0;
  min-width: 56px;
}
.event-date-day   { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; line-height: 1; }
.event-date-month { font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.event-body       { flex: 1; min-width: 0; }
.event-meta { font-size: .78rem; color: var(--text-muted); margin-top: var(--space-2); }

/* ── NEWSLETTER ───────────────────────────────────────────── */
.newsletter-section { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%); padding: var(--space-16) 0; }
.newsletter-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-12); align-items: center; }
.newsletter-section h2, .newsletter-section p { color: #fff; }
.newsletter-form { display: flex; gap: var(--space-3); }
.newsletter-input {
  flex: 1;
  padding: .75rem 1.1rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .9rem;
  outline: none;
  font-family: var(--font-body);
}
.newsletter-input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-input:focus { border-color: rgba(255,255,255,.5); }

/* ── CHATBOT ──────────────────────────────────────────────── */
.chatbot-fab { position: fixed; bottom: var(--space-6); right: var(--space-6); z-index: 9000; }
.chatbot-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.chatbot-toggle-btn:hover { transform: scale(1.08); box-shadow: var(--shadow-xl); }
.chatbot-window {
  position: absolute;
  bottom: calc(100% + var(--space-3));
  right: 0;
  width: 340px;
  max-height: 500px;
  background: var(--bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}
.chatbot-window[hidden] { display: none; }
.chatbot-header {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chatbot-header-info { display: flex; align-items: center; gap: var(--space-3); }
.chatbot-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}
.chatbot-title    { font-weight: 600; font-size: .9rem; color: #fff; }
.chatbot-subtitle { font-size: .72rem; color: rgba(255,255,255,.65); }
.chatbot-close-btn { background: none; border: none; color: rgba(255,255,255,.7); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.chatbot-close-btn:hover { color: #fff; }
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  -webkit-overflow-scrolling: touch;
}
.chat-msg { max-width: 88%; }
.chat-msg.bot  { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-bubble {
  padding: .6rem .9rem;
  border-radius: var(--radius-md);
  font-size: .855rem;
  line-height: 1.55;
}
.chat-msg.bot  .chat-bubble { background: var(--gray-100); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.crisis { background: var(--error-light); color: var(--error); border: 1px solid #FCA5A5; font-weight: 500; }
.chat-typing .chat-bubble { display: flex; align-items: center; gap: 4px; padding: .7rem .9rem; }
.typing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-light); animation: typingBounce 1.1s infinite ease-in-out; }
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chatbot-input-area {
  padding: var(--space-3);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}
.chatbot-input {
  flex: 1;
  padding: .55rem .85rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  font-size: .855rem;
  font-family: var(--font-body);
  outline: none;
  background: var(--bg);
  color: var(--text);
}
.chatbot-input:focus { border-color: var(--blue); }
.chatbot-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
}
.chatbot-send-btn:hover { background: var(--blue-dark); }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer { background: var(--blue-dark); padding: var(--space-16) 0 0; color: rgba(255,255,255,.7); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-12); margin-bottom: var(--space-12); }
.footer-logo { display: flex; align-items: center; gap: .6rem; color: #fff; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-4); text-decoration: none; }
.footer-tagline { font-size: .875rem; line-height: 1.75; max-width: 280px; }
.footer-social { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.social-link {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--green); color: #fff; }
.footer-col-title {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: var(--space-4);
}
.footer-links li { margin-bottom: var(--space-2); }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color .15s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-legal { display: flex; gap: var(--space-5); }
.footer-legal a { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-legal a:hover { color: var(--gold); }

/* ── REVEAL ANIMATIONS ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── MOOD TRACKER ─────────────────────────────────────────── */
.mood-grid { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.mood-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--bg);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.mood-btn:hover   { border-color: var(--blue); color: var(--blue); }
.mood-btn.active  { border-color: var(--blue); background: var(--blue); color: #fff; font-weight: 600; }

/* ── MOOD CALENDAR ────────────────────────────────────────── */
.cal-header { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; margin-bottom: 3px; }
.cal-header span { text-align: center; font-size: .68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.cal-grid  { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.cal-day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
}
.cal-day.empty   { opacity: .2; cursor: default; }
.cal-day.great   { background: #DCFCE7; border-color: #86EFAC; color: #14532D; }
.cal-day.good    { background: #D1FAE5; border-color: #6EE7B7; color: #065F46; }
.cal-day.okay    { background: #FEF9C3; border-color: #FDE047; color: #713F12; }
.cal-day.low     { background: #FEE2E2; border-color: #FCA5A5; color: #7F1D1D; }
.cal-day.struggling { background: #FECACA; border-color: #F87171; color: #7F1D1D; }

/* ── TOPIC PILLS ──────────────────────────────────────────── */
.topic-pill {
  display: inline-flex;
  align-items: center;
  padding: .45rem 1rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--bg);
  font-size: .83rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
}
.topic-pill:hover,
.topic-pill.active { border-color: var(--blue); background: var(--blue); color: #fff; }

/* ── PROGRAM CARDS ────────────────────────────────────────── */
.program-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.program-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.program-card-banner { height: 130px; display: flex; align-items: flex-end; padding: var(--space-4); position: relative; overflow: hidden; }
.program-card-banner::after {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 150px; height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 85 C20 65 5 45 5 28 C5 14 16 4 30 4 C39 4 47 9 50 17 C53 9 61 4 70 4 C84 4 95 14 95 28 C95 45 80 65 50 85 Z' fill='none' stroke='white' stroke-width='4'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
  opacity: .16;
  pointer-events: none;
}
.program-card-banner.blue   { background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); }
.program-card-banner.green  { background: linear-gradient(135deg, var(--green-dark), var(--green)); }
.program-card-banner.gold   { background: linear-gradient(135deg, #8B5E08, var(--gold)); }
.program-card-banner.teal   { background: linear-gradient(135deg, #0E6655, #1ABC9C); }
.program-card-banner.purple { background: linear-gradient(135deg, #4A235A, #7D3C98); }
.program-card-banner.dark   { background: linear-gradient(135deg, #111827, #374151); }
.program-card-body { padding: var(--space-5); }

/* ── ADMIN DASHBOARD ──────────────────────────────────────── */
.admin-layout    { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 2.5rem - var(--navbar-h)); }
.admin-sidebar   { background: var(--blue-dark); position: sticky; top: calc(2.5rem + var(--navbar-h)); height: calc(100vh - 2.5rem - var(--navbar-h)); overflow-y: auto; padding: var(--space-5) 0; border-right: 1px solid rgba(255,255,255,.06); }
.admin-content   { padding: var(--space-8); background: var(--bg-alt); min-height: 100%; }
.admin-sidebar-section { margin-bottom: var(--space-4); }
.admin-section-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); padding: .4rem var(--space-5); margin-bottom: .25rem; }
.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: .6rem var(--space-5);
  font-size: .855rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  border-radius: 0;
}
.admin-nav-btn:hover  { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav-btn.active { background: rgba(255,255,255,.1);  color: #fff; font-weight: 600; border-left: 3px solid var(--green); }
.admin-nav-icon { width: 16px; text-align: center; flex-shrink: 0; opacity: .75; }
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: fadeUp .2s ease; }
.kpi-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); }
.kpi-number { font-family: var(--font-display); font-size: 1.9rem; font-weight: 900; line-height: 1; }
.kpi-label  { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: var(--space-2); }
.kpi-change { font-size: .75rem; font-weight: 600; margin-top: var(--space-1); }
.kpi-change.up   { color: var(--green); }
.kpi-change.down { color: var(--error); }

/* ── MINI CHART BARS ──────────────────────────────────────── */
.bar-chart { display: flex; align-items: flex-end; gap: var(--space-2); height: 120px; }
.bar-col   { flex: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-1); }
.bar-fill  { width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--blue), var(--blue-mid)); min-height: 4px; transition: height .5s ease; }
.bar-fill.green { background: linear-gradient(180deg, var(--green), var(--green-dark)); }
.bar-x    { font-size: .68rem; color: var(--text-muted); font-weight: 600; }
.bar-y    { font-size: .65rem; color: var(--text-muted); }

/* ── FOUNDER STORY (about page) ──────────────────────────── */
.founder-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-12);
  align-items: start;
}
.founder-photo-col { position: sticky; top: calc(2.5rem + var(--navbar-h) + var(--space-6)); text-align: center; }
.founder-photo-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  padding: 6px;
  background: linear-gradient(135deg, var(--gold), var(--green), var(--blue));
  box-shadow: var(--shadow-lg);
}
.founder-photo,
.founder-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-xl) - 4px);
  display: block;
  object-fit: cover;
}
.founder-photo-placeholder {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
}
.founder-photo-placeholder span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
}
.founder-caption { margin-top: var(--space-4); }
.founder-caption h4 { font-size: 1.1rem; margin-bottom: .2rem; }
.founder-caption p  { font-size: .85rem; color: var(--text-muted); margin: 0; }

.founder-pullquote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  border-left: 4px solid var(--gold);
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  margin: var(--space-6) 0;
  font-style: italic;
}

.founder-stats-strip {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
  margin-top: var(--space-14);
  padding-top: var(--space-10);
  border-top: 1px solid var(--border);
}
.founder-stat { text-align: center; }
.founder-stat-num { font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--blue); line-height: 1; }
.founder-stat-label { font-size: .85rem; color: var(--text-muted); margin-top: var(--space-2); }

@media (max-width: 800px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo-col { position: static; max-width: 260px; margin: 0 auto; }
  .founder-stats-strip { gap: var(--space-8); }
}

/* ── DASHBOARD (USER) ─────────────────────────────────────── */
.dash-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, var(--blue-mid) 100%);
  padding: var(--space-8) 0 var(--space-10);
  position: relative;
  overflow: hidden;
}
.dash-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(201,146,10,.18), transparent 55%);
  pointer-events: none;
}
.dash-hero .container { position: relative; z-index: 1; }
.avatar-lg-hero {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14);
  border: 2px solid rgba(255,255,255,.35);
  color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.2rem;
}
.dash-stat-chip {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: .75rem 1.2rem;
  text-align: center;
  min-width: 84px;
}
.dash-stat-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; line-height: 1; }
.dash-stat-lbl { font-size: .72rem; color: rgba(255,255,255,.75); margin-top: .25rem; font-weight: 500; }

.dash-layout  { display: grid; grid-template-columns: 230px 1fr; gap: var(--space-6); align-items: start; }
.dash-sidebar { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); position: sticky; top: calc(2.5rem + var(--navbar-h) + var(--space-4)); box-shadow: var(--shadow-md); margin-top: calc(-1 * var(--space-10) - var(--space-2)); }
.dash-nav-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: .65rem .8rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  margin-bottom: .15rem;
  text-decoration: none;
}
.dash-nav-icon { display: flex; flex-shrink: 0; color: inherit; opacity: .75; transition: var(--transition); }
.dash-nav-btn:hover  { background: var(--gray-100); color: var(--text); }
.dash-nav-btn:hover .dash-nav-icon { opacity: 1; }
.dash-nav-btn.active { background: var(--blue-light); color: var(--blue); font-weight: 600; border-left-color: var(--blue); }
.dash-nav-btn.active .dash-nav-icon { opacity: 1; color: var(--blue); }
.dash-nav-signout { color: var(--error); }
.dash-nav-signout .dash-nav-icon { opacity: .7; }
.dash-nav-signout:hover { background: var(--error-light); color: var(--error); }
.dash-panel { display: none; }
.dash-panel.active { display: block; animation: fadeUp .2s ease; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4        { grid-template-columns: repeat(2,1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .newsletter-grid { grid-template-columns: 1fr; }
  .admin-layout  { grid-template-columns: 180px 1fr; }
  .dash-layout   { grid-template-columns: 180px 1fr; }
}

@media (max-width: 768px) {
  :root { --container-pad: 1rem; }

  .nav-links { display: none; }
  .nav-actions .btn-ghost,
  .nav-actions .btn-primary,
  .nav-actions .btn-gold,
  .nav-actions .nav-user-menu { display: none; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: var(--space-6); }
  .hero-illustration-frame { padding-bottom: var(--space-8); max-width: 280px; margin: 0 auto; }
  .hero-mini-grid { display: none; }
  .hero-stats  { gap: var(--space-5); }
  .hero-btns   { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  .grid-2    { grid-template-columns: 1fr; }
  .grid-3    { grid-template-columns: 1fr; }
  .grid-4    { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }

  .form-row  { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-content { padding: var(--space-4); }

  .dash-layout  { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; margin-top: calc(-1 * var(--space-6)); }
  .dash-hero    { padding-bottom: var(--space-8); }

  .chatbot-window { width: calc(100vw - var(--space-8)); right: calc(-1 * var(--space-6) + var(--space-4)); }

  .event-card { flex-direction: column; gap: var(--space-3); }

  .page-hero { padding: 3rem 0 2rem; }

  .section { padding: var(--space-12) 0; }

  h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }

  .tabs { gap: var(--space-1); }
  .tab-btn { padding: .5rem .75rem; font-size: .8rem; }

  .toast-container { right: var(--space-3); left: var(--space-3); bottom: var(--space-4); }
  .toast { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-stats    { flex-direction: column; gap: var(--space-4); }
  .stat-number   { font-size: 1.5rem; }
  .impact-number { font-size: 1.9rem; }
  .footer-social { flex-wrap: wrap; }
  .pagination    { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}