/* ============================================================
   Team Leann Support Site — Stylesheet
   TNBC Awareness: Teal + Pink color scheme
   ============================================================ */

:root {
  --primary:         #00897b;
  --primary-dark:    #00695c;
  --primary-darker:  #004d40;
  --primary-light:   #4db6ac;
  --primary-lighter: #80cbc4;
  --primary-bg:      #e0f2f1;
  --primary-bg-soft: #f0faf9;

  --pink:            #e91e8c;
  --pink-soft:       #f06292;
  --pink-light:      #fce4ec;
  --pink-border:     #f8bbd0;

  --purple:          #7c3aed;
  --orange:          #d97706;
  --green:           #059669;
  --slate:           #64748b;

  --text-dark:       #1a2e27;
  --text-medium:     #374151;
  --text-light:      #6b7280;
  --text-muted:      #9ca3af;

  --white:           #ffffff;
  --off-white:       #f9fafb;
  --border:          #d1e8e5;
  --border-light:    #e8f5f3;

  --shadow-sm:   0 1px 4px rgba(0,137,123,0.10);
  --shadow-md:   0 4px 18px rgba(0,137,123,0.13);
  --shadow-lg:   0 8px 40px rgba(0,137,123,0.18);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.07);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --transition: all 0.22s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--primary-bg-soft);
  color: var(--text-medium);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 60%, var(--primary) 100%);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.nav-brand-sub {
  font-size: 0.7rem;
  color: var(--primary-lighter);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.12); }
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.18); }
.nav-links .btn-nav-cta {
  background: var(--pink);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
}
.nav-links .btn-nav-cta:hover { background: #c2185b; transform: translateY(-1px); }

/* ============================================================
   HERO SECTION
   ============================================================ */
/* ── HERO SIZE TOGGLE ──────────────────────────────────────────
   To revert to the ORIGINAL (full) size, swap each "COMPACT" value
   with the matching "ORIGINAL" value in this block.
   ──────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--primary-darker) 0%, var(--primary-dark) 40%, var(--primary) 80%, var(--primary-light) 100%);
  padding: 3.5rem 2rem 2.75rem; /* COMPACT  — ORIGINAL: 5rem 2rem 4rem */
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-ribbon {
  display: block;
  margin: 0 auto 1rem;           /* COMPACT  — ORIGINAL: 0 auto 1.5rem */
  position: relative;
  z-index: 1;
}
.ribbon-svg {
  display: block;
  margin: 0 auto;
  max-width: 155px;              /* COMPACT  — ORIGINAL: 220px */
  width: auto;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.hero-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.hero-title {
  font-size: clamp(1.4rem, 3.5vw, 2.25rem); /* COMPACT  — ORIGINAL: clamp(2rem, 5vw, 3.2rem) */
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.45rem;        /* COMPACT  — ORIGINAL: 0.6rem */
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero-title span { color: #a7f3d0; }
.hero-subtitle {
  font-size: 0.78rem;            /* halved from 1.56rem — ORIGINAL: 1.05rem */
  color: rgba(255,255,255,0.82);
  margin-bottom: 0.3rem;         /* COMPACT  — ORIGINAL: 0.4rem */
  font-weight: 400;
}
.hero-tagline {
  font-size: 0.6rem;             /* COMPACT  — ORIGINAL: 0.85rem */
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-lighter);
  margin-bottom: 1.4rem;         /* COMPACT  — ORIGINAL: 2rem */
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
  box-shadow: 0 4px 14px rgba(233,30,140,0.35);
}
.btn-primary:hover {
  background: #c2185b;
  border-color: #c2185b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233,30,140,0.45);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}
.btn-teal {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-teal:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover {
  background: var(--primary-bg);
  transform: translateY(-1px);
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

/* ============================================================
   MAIN CONTENT LAYOUT
   ============================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.main-content { padding: 3rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.section-header p {
  color: var(--text-light);
  font-size: 1rem;
}
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card-header {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}
.card-subtitle { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.card-body { padding: 1.25rem 1.5rem 1.5rem; }

/* Card color variants */
.card-status .card-header  { background: linear-gradient(135deg, #e0f2f1, #f0fdf9); }
.card-status .card-icon    { background: var(--primary-bg); color: var(--primary-dark); }
.card-status .card-title   { color: var(--primary-darker); }

.card-talking .card-header { background: linear-gradient(135deg, #e8f5e9, #f1f8e9); }
.card-talking .card-icon   { background: #e8f5e9; color: #2e7d32; }
.card-talking .card-title  { color: #1b5e20; }

.card-avoid .card-header   { background: linear-gradient(135deg, #fce4ec, #fff3e0); }
.card-avoid .card-icon     { background: #fce4ec; color: #c62828; }
.card-avoid .card-title    { color: #b71c1c; }

.card-needs .card-header   { background: linear-gradient(135deg, #e8eaf6, #f3e5f5); }
.card-needs .card-icon     { background: #e8eaf6; color: #4527a0; }
.card-needs .card-title    { color: #311b92; }

/* Status card specific */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-bg);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.8rem;
}
.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}
.status-date { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.8rem; }
.status-text { color: var(--text-medium); line-height: 1.7; font-size: 0.95rem; }

/* List styles inside cards */
.card-list { display: flex; flex-direction: column; gap: 0.6rem; }
.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-medium);
  line-height: 1.5;
}
.card-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.card-talking .card-list li::before { background: #4caf50; }
.card-avoid .card-list li::before   { background: #ef5350; }
.card-needs .card-list li::before   { background: #7c4dff; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  color: var(--white);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '♥';
  position: absolute;
  font-size: 8rem;
  opacity: 0.06;
  right: 2rem;
  top: -1rem;
  color: var(--pink-soft);
}
.cta-banner h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; }
.cta-banner p  { font-size: 1rem; opacity: 0.85; margin-bottom: 1.5rem; }

/* ============================================================
   CALENDAR PAGE
   ============================================================ */
.calendar-page-header {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
}
.calendar-page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.4rem; }
.calendar-page-header p  { opacity: 0.82; font-size: 1rem; }

.calendar-wrapper { padding: 2.5rem 0; }

.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}
.calendar-month-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}
.calendar-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.calendar-nav-btn:hover { background: var(--primary); color: var(--white); }

.calendar-grid {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.calendar-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--primary-bg);
  border-bottom: 2px solid var(--border);
}
.calendar-day-header {
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}

.calendar-day {
  min-height: 80px;
  padding: 0.5rem;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.calendar-day:nth-child(7n) { border-right: none; }
.calendar-day:hover:not(.cal-empty):not(.cal-past) {
  background: var(--primary-bg-soft);
}
.calendar-day.cal-empty { cursor: default; background: var(--off-white); }
.calendar-day.cal-past  { cursor: default; opacity: 0.55; background: #fafafa; }
.calendar-day.cal-today {
  background: linear-gradient(135deg, #e0f2f1, #f0fdf9);
  border-left: 3px solid var(--primary);
}
.calendar-day.cal-has-slots { cursor: pointer; }

.cal-day-number {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 4px;
  line-height: 1;
}
.cal-today .cal-day-number {
  color: var(--primary-dark);
  font-weight: 800;
}
.cal-today-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
}

.cal-slot-chips { display: flex; flex-direction: column; gap: 3px; }
.cal-chip {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cal-add-prompt {
  font-size: 0.7rem;
  color: var(--primary-light);
  margin-top: 4px;
  opacity: 0;
  transition: var(--transition);
}
.calendar-day:hover .cal-add-prompt { opacity: 1; }

/* Type colors */
.chip-meal       { background: #e0f2f1; color: #00695c; }
.chip-ride       { background: #ede9fe; color: #5b21b6; }
.chip-groceries  { background: #fef3c7; color: #92400e; }
.chip-errands    { background: #d1fae5; color: #065f46; }
.chip-company    { background: #fce7f3; color: #9d174d; }
.chip-other      { background: #f1f5f9; color: #475569; }

/* ============================================================
   LEGEND
   ============================================================ */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}
.legend-title { font-size: 0.8rem; font-weight: 700; color: var(--text-light); width: 100%; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.8px; }
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: var(--text-medium);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ============================================================
   SIGNUPS PANEL
   ============================================================ */
.signups-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  margin-top: 1.5rem;
  overflow: hidden;
}
.signups-panel-header {
  padding: 1rem 1.5rem;
  background: var(--primary-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.signups-panel-header h3 { font-size: 1rem; font-weight: 700; color: var(--primary-darker); }

.signup-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.signup-item:last-child { border-bottom: none; }
.signup-type-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.signup-details { flex: 1; }
.signup-user { font-size: 0.88rem; font-weight: 600; color: var(--text-dark); }
.signup-meta  { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(3px);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-header {
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.modal-header-content h2 { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); }
.modal-header-content p  { font-size: 0.85rem; color: var(--text-light); margin-top: 3px; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--text-light);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  flex-shrink: 0;
  margin-top: 2px;
}
.modal-close:hover { background: #fee2e2; color: #dc2626; }

.modal-body    { padding: 1.5rem 1.75rem; }
.modal-footer  { padding: 1rem 1.75rem 1.5rem; display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-label span { color: #ef4444; margin-left: 2px; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,137,123,0.12);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: #ef4444; margin-top: 4px; display: none; }
.form-error.visible { display: block; }

/* ============================================================
   SUCCESS / CONFIRMATION STATES
   ============================================================ */
.success-box {
  text-align: center;
  padding: 1.5rem;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-bg), #a7f3d0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
}
.success-box h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
.success-box p  { font-size: 0.9rem; color: var(--text-light); }
.username-highlight {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-bg), #e8f5e9);
  color: var(--primary-darker);
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0.75rem 0;
  border: 1.5px solid var(--primary-lighter);
}

/* ============================================================
   ADMIN PAGE
   ============================================================ */
.admin-login {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.admin-login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.admin-login-card h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.4rem; }
.admin-login-card p  { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1.75rem; }

.admin-dashboard { display: none; }
.admin-dashboard.visible { display: block; }

.admin-tabs {
  background: var(--white);
  border-bottom: 2px solid var(--border-light);
  display: flex;
  gap: 0;
  padding: 0 2rem;
  overflow-x: auto;
}
.admin-tab {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.admin-tab:hover { color: var(--primary); }
.admin-tab.active { color: var(--primary-dark); border-bottom-color: var(--primary); }

.admin-content { padding: 2rem; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.admin-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Per-user delete button in the Users table */
.user-delete-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  padding: 3px 7px;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}
.user-delete-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}
.user-delete-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.signups-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.signups-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--primary-bg);
  color: var(--primary-darker);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}
.signups-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-medium);
  vertical-align: top;
}
.signups-table tr:last-child td { border-bottom: none; }
.signups-table tr:hover td { background: var(--primary-bg-soft); }

.admin-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label  { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-darker);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  margin-top: auto;
}
.site-footer strong { color: var(--pink-soft); }
.site-footer a { color: var(--primary-lighter); }
.site-footer .footer-top {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--border-light); margin: 1.25rem 0; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-info    { background: var(--primary-bg); color: var(--primary-darker); border-left: 3px solid var(--primary); }
.alert-success { background: #d1fae5; color: #065f46; border-left: 3px solid #10b981; }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 3px solid #ef4444; }

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-bg);
  color: var(--primary-darker);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--primary-lighter);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .cards-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 4px; }
  .nav-links a { padding: 6px 10px; font-size: 0.82rem; }
  .hero { padding: 3.5rem 1.5rem 3rem; }
  .calendar-day { min-height: 60px; padding: 4px; }
  .cal-day-number { font-size: 0.8rem; }
  .cal-chip { display: none; }
  .calendar-day.cal-has-slots .cal-add-prompt { display: block; opacity: 0.7; }
  .admin-content { padding: 1.25rem; }
  .signups-table { font-size: 0.8rem; }
  .signups-table th, .signups-table td { padding: 8px 10px; }
}
@media (max-width: 520px) {
  .site-nav { padding: 0 1rem; }
  .nav-brand-sub { display: none; }
  .modal { border-radius: var(--radius-md); }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-banner { padding: 2rem 1.25rem; }
}

/* ============================================================
   PHOTO GALLERY
   ============================================================ */

/* Page header */
.gallery-page-header {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
}
.gallery-page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.4rem; }
.gallery-page-header p  { opacity: 0.82; font-size: 1rem; }

/* Grid */
.gallery-section { padding: 2.5rem 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Individual tile */
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border-light);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  aspect-ratio: 1 / 1;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Caption overlay */
.gallery-caption-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,60,50,0.82) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-caption-overlay { opacity: 1; }
.gallery-caption-overlay span {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Empty state */
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.gallery-empty .empty-icon { font-size: 3.5rem; margin-bottom: 0.75rem; }
.gallery-empty h3 { font-size: 1.2rem; color: var(--text-light); margin-bottom: 0.4rem; }
.gallery-empty p  { font-size: 0.9rem; max-width: 360px; margin: 0 auto; }

/* ── Lightbox ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(6px);
}
.lightbox-overlay.active { opacity: 1; pointer-events: all; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 85vw;
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  text-align: center;
  max-width: 600px;
  line-height: 1.5;
  min-height: 1.4rem;
}

.lightbox-counter {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
}

/* Lightbox close button */
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
  z-index: 2001;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* Lightbox prev / next */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
  z-index: 2001;
}
.lightbox-nav:hover   { background: rgba(255,255,255,0.28); }
.lightbox-nav.prev    { left: 1rem; }
.lightbox-nav.next    { right: 1rem; }
.lightbox-nav:disabled { opacity: 0.2; cursor: default; }

/* ── Admin Upload Zone ── */
.upload-zone {
  border: 2.5px dashed var(--primary-lighter);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  background: var(--primary-bg-soft);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-bg);
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-zone-icon  { font-size: 2.5rem; margin-bottom: 0.5rem; }
.upload-zone-label { font-size: 1rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 0.25rem; }
.upload-zone-sub   { font-size: 0.82rem; color: var(--text-muted); }

.upload-preview-wrap {
  display: none;
  margin-top: 1.25rem;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.upload-preview-wrap.visible { display: flex; }
.upload-preview-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.upload-preview-fields { flex: 1; min-width: 200px; }

.upload-progress {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.75rem;
  display: none;
}
.upload-progress.visible { display: block; }
.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

/* Admin gallery management grid */
.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.gallery-admin-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border-light);
  background: var(--off-white);
  aspect-ratio: 1 / 1;
}
.gallery-admin-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-admin-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.7rem;
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-admin-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(220,38,38,0.85);
  color: white;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.gallery-admin-delete:hover { background: #dc2626; }
.gallery-admin-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Gallery responsive */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .lightbox-nav { width: 38px; height: 38px; font-size: 1rem; }
  .lightbox-nav.prev { left: 0.25rem; }
  .lightbox-nav.next { right: 0.25rem; }
}

/* ============================================================
   CHAT PAGE
   ============================================================ */

.chat-page-header {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--white);
}
.chat-page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.3rem; }
.chat-page-header p  { opacity: 0.82; font-size: 1rem; }

/* Override the .container max-width constraint for the chat page */
#chat-wrap { max-width: 1640px; }

/* Overall chat layout */
.chat-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 68px - 130px); /* viewport minus nav and header */
  min-height: 520px;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
}

/* Messages scrollable area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

/* Date separator */
.chat-date-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.25rem 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.chat-date-sep::before,
.chat-date-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* Single message row */
.chat-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  position: relative;
}
.chat-message:hover { background: var(--primary-bg-soft); }
.chat-message:hover .chat-delete-btn { opacity: 1; }

/* Avatar */
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  margin-top: 1px;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Special Leann styling */
.chat-message.is-leann .chat-avatar {
  background: linear-gradient(135deg, var(--pink), #c2185b) !important;
  box-shadow: 0 2px 8px rgba(233,30,140,0.35);
}
.chat-message.is-leann .chat-username {
  color: var(--pink) !important;
}
.leann-crown {
  font-size: 0.65rem;
  margin-left: 3px;
  vertical-align: middle;
}

/* Message content */
.chat-content { flex: 1; min-width: 0; }
.chat-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}
.chat-username {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}
.chat-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.chat-text {
  font-size: 0.92rem;
  color: var(--text-medium);
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
}

/* Delete button (admin-only, visible on hover) */
.chat-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
  flex-shrink: 0;
}
.chat-delete-btn:hover { background: #fca5a5; }

/* Empty state */
.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: 3rem;
  gap: 0.5rem;
}
.chat-empty .empty-icon { font-size: 3rem; }
.chat-empty h3 { font-size: 1.1rem; color: var(--text-light); font-weight: 600; }
.chat-empty p  { font-size: 0.88rem; max-width: 300px; }

/* Loading indicator */
.chat-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* New messages badge */
.new-msg-badge {
  position: sticky;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  display: none;
  width: fit-content;
  margin: 0 auto;
  transition: var(--transition);
}
.new-msg-badge:hover { background: var(--primary-dark); }
.new-msg-badge.visible { display: block; }

/* Input area */
.chat-input-area {
  border-top: 1px solid var(--border-light);
  padding: 1rem 0 1.25rem;
  background: var(--primary-bg-soft);
}
.chat-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.chat-input-wrap { flex: 1; position: relative; }
.chat-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  resize: none;
  outline: none;
  min-height: 130px;
  max-height: 300px;
  line-height: 1.5;
  overflow-y: auto;
  transition: var(--transition);
}
.chat-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,137,123,0.10); }
.chat-input::placeholder { color: var(--text-muted); }
.chat-char-count {
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-size: 0.7rem;
  color: var(--text-muted);
  pointer-events: none;
}
.chat-char-count.over { color: #ef4444; font-weight: 700; }
.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover:not(:disabled) { background: var(--primary-dark); transform: scale(1.05); }
.chat-send-btn:disabled { opacity: 0.45; cursor: default; transform: none; }

.chat-input-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0 2px;
}
.chat-posting-as { display: flex; align-items: center; gap: 5px; }
.chat-posting-badge {
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
}

/* Guest / not-registered prompt */
.chat-guest-prompt {
  border-top: 1px solid var(--border-light);
  padding: 1.25rem 0;
  background: var(--primary-bg-soft);
}
.chat-guest-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.chat-guest-card p { flex: 1; font-size: 0.9rem; color: var(--text-medium); min-width: 200px; }
.chat-guest-card .guest-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Polling status */
.chat-status-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  min-height: 20px;
}
.chat-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2.5s infinite;
  flex-shrink: 0;
}

/* Admin chat moderation */
.chat-mod-list { display: flex; flex-direction: column; gap: 0; }
.chat-mod-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.86rem;
}
.chat-mod-item:last-child { border-bottom: none; }
.chat-mod-item:hover { background: var(--primary-bg-soft); }
.chat-mod-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.chat-mod-body { flex: 1; min-width: 0; }
.chat-mod-meta { font-size: 0.78rem; margin-bottom: 3px; }
.chat-mod-meta strong { color: var(--text-dark); }
.chat-mod-meta span   { color: var(--text-muted); margin-left: 6px; }
.chat-mod-text { color: var(--text-medium); line-height: 1.5; word-break: break-word; }
.chat-mod-del {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.chat-mod-del:hover { background: #fee2e2; }

@media (max-width: 768px) {
  .chat-layout { height: calc(100vh - 68px - 110px); padding: 0.75rem 1rem 0; }
  .chat-guest-card { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   RESOURCES PAGE
   ============================================================ */

.resources-page-header {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
}
.resources-page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.4rem; }
.resources-page-header p  { opacity: 0.82; font-size: 1rem; }

.resources-section { padding: 2.5rem 0; }

/* Category block */
.resource-category { margin-bottom: 3rem; }
.resource-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-light);
}
.resource-category-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.resource-category-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}
.resource-category-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Resource grid */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Individual resource card */
.resource-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  border-left-width: 4px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

/* Category border colors */
.rc-teal   { border-left-color: var(--primary); }
.rc-purple { border-left-color: #7c3aed; }
.rc-pink   { border-left-color: var(--pink); }
.rc-orange { border-left-color: #d97706; }
.rc-green  { border-left-color: #059669; }

.resource-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.resource-card-name {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}
.resource-type-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.badge-gov      { background: #e0f2f1; color: #00695c; }
.badge-nonprofit{ background: #fce4ec; color: #880e4f; }
.badge-medical  { background: #e8eaf6; color: #283593; }
.badge-support  { background: #e8f5e9; color: #1b5e20; }
.badge-financial{ background: #fff3e0; color: #e65100; }
.badge-research { background: #f3e5f5; color: #4a148c; }
.badge-trials   { background: #e3f2fd; color: #0d47a1; }

.resource-card-desc {
  font-size: 0.84rem;
  color: var(--text-medium);
  line-height: 1.55;
  flex: 1;
}
.resource-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 4px;
  text-decoration: none;
}
.resource-card-link:hover { color: var(--primary); text-decoration: underline; }
.resource-card-link::after { content: '↗'; font-size: 0.75rem; }

/* Disclaimer box */
.resources-disclaimer {
  background: var(--primary-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  font-size: 0.83rem;
  color: var(--text-medium);
  margin-bottom: 2.5rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.6;
}

/* Last-reviewed bar */
.resources-reviewed-bar {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 1rem 0 2rem;
}

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

/* ============================================================
   TREATMENT PROGRESS BAR — MULTI-PHASE
   ============================================================ */

.treatment-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}
.treatment-card-header {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.treatment-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.4px;
}
.treatment-subtitle {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
  margin-top: 2px;
}
.treatment-wave-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Phase rows */
.tp-phases { display: flex; flex-direction: column; }

.tp-phase-row {
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}
.tp-phase-row:last-child { border-bottom: none; }
.tp-phase-row.phase-active { background: #f0fdf9; }
.tp-phase-row.phase-complete { background: #f9fffe; }

.tp-phase-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}
.tp-round-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--primary-bg);
  color: var(--primary-darker);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}
.tp-phase-name-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  flex: 1;
}
.tp-status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tp-status-active   { background: #d1fae5; color: #065f46; }
.tp-status-complete { background: #ccfbf1; color: #0f766e; }
.tp-status-upcoming { background: #f3f4f6; color: #6b7280; }

/* Mini progress bar per phase */
.tp-mini-bar-outer {
  height: 14px;
  background: #e5e7eb;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 3px;
}
.tp-mini-bar-fill {
  height: 100%;
  border-radius: 7px;
  width: 0;
  transition: width 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tp-bar-active   { background: linear-gradient(90deg, var(--primary), #f48fb1); }
.tp-bar-complete { background: var(--primary-dark); }
.tp-bar-upcoming { background: #d1d5db; }

.tp-count-text {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}
.tp-milestone-pill {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--text-muted);
  background: #f3f4f6;
  border: 1px solid var(--border-light);
  padding: 2px 12px;
  border-radius: 10px;
}
.tp-milestone-pill.active-pill {
  background: #e0f2f1;
  color: var(--primary-dark);
  border-color: var(--border);
}
.tp-phase-note-text {
  font-size: 0.78rem;
  color: var(--primary-dark);
  font-style: italic;
  margin-top: 4px;
}

/* Admin phase editor rows */
.tp-admin-phase {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem 0.7rem;
  margin-bottom: 0.75rem;
}
.tp-admin-phase:nth-child(1) { border-left-color: var(--primary); }
.tp-admin-phase:nth-child(2) { border-left-color: #7c3aed; }
.tp-admin-phase:nth-child(3) { border-left-color: var(--pink); }
.tp-admin-phase:nth-child(4) { border-left-color: #d97706; }
.tp-admin-phase:nth-child(n+5) { border-left-color: var(--text-muted); }
.tp-admin-row1, .tp-admin-row2 {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.tp-admin-row1 { margin-bottom: 7px; }

/* ============================================================
   CHAT GIF PICKER
   ============================================================ */

.chat-gif-btn {
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  height: 38px;
  padding: 0 9px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1;
}
.chat-gif-btn:hover,
.chat-gif-btn.gif-active { background: var(--primary-bg); border-color: var(--primary); color: var(--primary-darker); }

.gif-picker {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
  margin-bottom: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.gif-picker-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-light);
  background: #fafafa;
}
.gif-search-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}
.gif-search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-bg); }
.gif-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 3px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1;
}
.gif-close-btn:hover { background: #f0f0f0; color: var(--text-dark); }

.gif-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 6px;
  max-height: 195px;
  overflow-y: auto;
  background: #f5f5f5;
  min-height: 60px;
}
.gif-thumb-btn {
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
  background: #ddd;
  transition: border-color 0.12s, transform 0.1s, box-shadow 0.12s;
  height: 80px;
  display: block;
}
.gif-thumb-btn:hover {
  border-color: var(--primary);
  transform: scale(1.04);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  z-index: 1;
  position: relative;
}
.gif-thumb-btn img { height: 80px; width: auto; display: block; }

.gif-status {
  width: 100%;
  text-align: center;
  padding: 18px 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.gif-attribution {
  padding: 4px 10px;
  text-align: right;
  border-top: 1px solid var(--border-light);
  background: #fafafa;
}
.gif-attribution a {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.gif-attribution a:hover { color: var(--primary); }

/* ============================================================
   CHAT IMAGE ATTACHMENTS
   ============================================================ */

/* Attach button next to textarea */
.chat-attach-btn {
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1;
}
.chat-attach-btn:hover { background: var(--primary-bg); border-color: var(--primary); }

/* Preview row shown above input when file is selected */
.chat-img-preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: var(--primary-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.chat-img-thumb-preview {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-img-preview-name {
  font-size: 0.8rem;
  color: var(--text-medium);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-img-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  flex-shrink: 0;
}
.chat-img-remove-btn:hover { background: #fee2e2; color: #dc2626; }

/* Image inside a chat message bubble */
.chat-img-wrap { margin-top: 6px; }
.chat-img {
  display: block;
  max-width: 280px;
  max-height: 220px;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  cursor: zoom-in;
  transition: max-width 0.25s ease, max-height 0.25s ease, border-radius 0.25s ease;
  object-fit: contain;
}
.chat-img.chat-img-expanded {
  max-width: min(90vw, 700px);
  max-height: 80vh;
  cursor: zoom-out;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* ============================================================
   VIRTUAL HUG COUNTER
   ============================================================ */

.hug-section {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 50%, #fce4ec 100%);
  border: 1px solid #f48fb1;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.hug-section::before {
  content: '💗';
  position: absolute;
  font-size: 9rem;
  opacity: 0.07;
  top: -10px; right: -15px;
  pointer-events: none;
  line-height: 1;
}
.hug-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: #880e4f;
  margin-bottom: 0.3rem;
}
.hug-sub {
  font-size: 0.9rem;
  color: #c2185b;
  margin-bottom: 1.5rem;
}
.hug-btn {
  background: linear-gradient(135deg, #e91e8c, #f06292);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.85rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(233,30,140,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 1.5rem;
  font-family: var(--font);
}
.hug-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px rgba(233,30,140,0.45);
}
.hug-btn:active, .hug-btn.hug-sent {
  transform: scale(0.93);
  box-shadow: 0 2px 8px rgba(233,30,140,0.3);
}
.hug-btn-icon { font-size: 1.4rem; line-height: 1; }
.hug-count-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hug-count-number {
  font-size: 3rem;
  font-weight: 800;
  color: #880e4f;
  line-height: 1;
  display: block;
  transition: transform 0.08s ease-out;
}
.hug-count-number.hug-pop { transform: scale(1.2); }
.hug-count-label {
  font-size: 0.85rem;
  color: #ad1457;
  font-weight: 500;
}

/* Floating hearts (JS-generated) */
.floating-heart {
  position: fixed;
  font-size: 1.6rem;
  pointer-events: none;
  z-index: 9999;
  animation: heart-float 1.4s ease-out forwards;
  user-select: none;
}
@keyframes heart-float {
  0%   { opacity: 1; transform: translateY(0)    scale(1);   }
  100% { opacity: 0; transform: translateY(-130px) scale(0.5); }
}

/* ============================================================
   MOBILE OPTIMIZATIONS
   ============================================================ */

/* ── Hamburger toggle button ─────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Responsive nav ──────────────────────────────────────── */
@media (max-width: 768px) {
  /* Show hamburger, hide normal link row */
  .nav-hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--primary-dark, #1a4a5e);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 70px 0 1.5rem;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 150;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    max-height: 100dvh;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
  }
  .nav-links a:last-child { border-bottom: none; }

  /* Hero */
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero-logo { max-width: 200px !important; }
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: 0.72rem; }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Cards grid — single column */
  .cards-grid { grid-template-columns: 1fr; }
  .card { padding: 1.25rem; }

  /* CTA banner */
  .cta-banner { padding: 2rem 1.25rem; }
  .cta-banner h2 { font-size: 1.3rem; }

  /* Calendar */
  .calendar-grid {
    grid-template-columns: repeat(7, 1fr);
    font-size: 0.7rem;
  }
  .calendar-day { min-height: 52px; padding: 3px 2px; }
  .cal-day-number { font-size: 0.68rem; }
  .cal-chip { display: none; }
  .cal-chemo-badge { font-size: 0.55rem; padding: 1px 3px; }
  .calendar-controls { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .calendar-legend { flex-wrap: wrap; justify-content: center; gap: 8px; }

  /* Calendar info panel */
  .cal-info-panel { padding: 1rem 1.25rem; }

  /* Modal */
  .modal-box { width: 95vw; padding: 1.5rem 1.25rem; }

  /* Chat */
  #chat-wrap { max-width: 100%; padding: 0 0.5rem; }
  .chat-layout { flex-direction: column; gap: 12px; }
  .chat-messages { height: 55vh; }
  .chat-input-row { flex-direction: column; gap: 8px; }
  .chat-input { min-height: 80px; max-height: 180px; font-size: 0.93rem; }
  .chat-send-col { display: flex; flex-direction: row; gap: 8px; flex-wrap: wrap; }
  .chat-send-col .btn { flex: 1; min-width: 120px; }
  .chat-gif-btn { flex: 1; min-width: 120px; }

  /* Gallery grid */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Admin */
  .admin-tabs { flex-wrap: wrap; gap: 4px; }
  .admin-tab { padding: 8px 12px; font-size: 0.82rem; }
  .admin-content { padding: 1rem; }
  .admin-content table,
  .signups-table { display: block; overflow-x: auto; font-size: 0.78rem; }
  .admin-content th,
  .admin-content td { padding: 8px 10px; white-space: nowrap; }

  /* Treatment bar */
  .treatment-wrap { padding: 1rem 1.25rem; }
  .treatment-phases { flex-direction: column; gap: 8px; }

  /* Hug counter */
  .hug-btn { width: 100%; max-width: 300px; }

  /* Contact form */
  .contact-wrap { padding: 1.25rem; }
  .contact-form input,
  .contact-form textarea,
  .contact-form select { font-size: 1rem; }

  /* Footer */
  .site-footer { padding: 1.5rem 1rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 8px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 1.25rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .nav-brand-sub { display: none; }
  .calendar-grid { font-size: 0.62rem; }
  .calendar-day { min-height: 40px; }
  .cal-day-number { font-size: 0.6rem; }
  .modal-box { padding: 1.25rem 1rem; }
}
