/*
 * main.css — the one stylesheet of every page: the brand green (#99C24D) with muted neutrals,
 * Barlow Condensed for headings and Barlow for text (both from Google Fonts, see views/partials/head.ejs).
 */

/* --- RESET & VARIABLES --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* The brand colour of the logo, and the shades the interface derives from it */
  --brand:          #99C24D;
  --brand-hover:    #87aa44;
  --primary:        #4d5a3a;
  --primary-dark:   #1a1d17;
  --primary-light:  #b0c96f;
  --primary-pale:   #f1f4eb;
  --accent:         #99C24D;
  --accent-dark:    #7a9a3d;
  --tone-gray:      #6d7f7f;

  --bg:             #fafaf8;
  --bg-card:        #ffffff;
  --bg-dark:        #121510;

  --text:           #1c1f19;
  --text-muted:     #5c6460;
  --text-light:     #8a928c;

  --border:         #e6e8e3;
  --border-strong:  #cfd4cc;

  --danger:         #dc2626;
  --warning:        #d97706;
  --success:        #15803d;

  --radius:         8px;
  --radius-lg:      12px;
  --shadow:         0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg:      0 8px 28px rgba(0,0,0,0.08);

  --nav-h:          64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary  { background: var(--brand); color: var(--primary-dark); border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--primary-dark); }
.btn--outline  { background: transparent; color: var(--primary); border-color: var(--border-strong); }
.btn--outline:hover { background: var(--primary-pale); border-color: var(--primary); }
.btn--white    { background: #fff; color: var(--primary); border-color: rgba(255,255,255,0.35); }
.btn--white:hover { background: rgba(255,255,255,0.92); }
.btn--danger   { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn--danger:hover { background: #b52820; }
.btn--warning  { background: var(--warning); color: #fff; border-color: var(--warning); }

.btn--lg  { padding: 14px 32px; font-size: 1.1rem; }
.btn--sm  { padding: 7px 16px; font-size: 0.9rem; }
.btn--xs  { padding: 4px 10px; font-size: 0.8rem; }
.btn--full { width: 100%; }

/* --- ALERTS --- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert--error   { background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d; }
.alert--success { background: #f0fdf4; border: 1px solid #86efac; color: #14532d; }
.alert--info    { background: var(--primary-pale); border: 1px solid var(--border-strong); color: var(--primary); }
.alert-icon { font-size: 1.2rem; flex-shrink: 0; }

/* --- DEMO INSTANCE (DEMO_MODE=true): the banner on every page and the role buttons --- */
.demo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  padding: 10px 16px;
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}
.demo-banner-text { margin: 0; }
.demo-roles { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.demo-banner .demo-roles { margin-top: 0; }
.demo-roles-label { font-weight: 600; }
.demo-roles .btn { background: #fff; }
.demo-login-note { text-align: center; }
@media (max-width: 480px) {
  .demo-roles .btn { flex: 1 1 auto; }
  .demo-roles-label { flex-basis: 100%; }
}

/* --- NAVBAR --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary-dark);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.nav-brand-logo {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav-brand-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  line-height: 1.2;
}
.nav-brand-text span { color: var(--brand); }
@media (max-width: 420px) {
  .nav-brand-text { font-size: 0.92rem; letter-spacing: 0.08em; }
  .nav-brand-logo { height: 38px; }
}

.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--primary-dark);
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-menu.active { display: flex; }

@media (min-width: 768px) {
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    border: none;
    padding: 0;
    gap: 4px;
    align-items: center;
  }
}

.nav-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.15s;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); text-decoration: none; }
.nav-link--admin { color: var(--brand); }
.nav-link--instructor { color: #a78bfa; }
.nav-link--instructor:hover { color: #c4b5fd !important; }
.nav-link--btn { font-family: 'Barlow Condensed', sans-serif; }

/* --- INSTRUCTOR / ATTENDANCE --- */
.attendance-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.att-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 100px;
  flex: 1;
}
.att-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
}
.att-stat span:last-child {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.attendance-header {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}
.attendance-header-actions {
  display: flex;
  gap: 0.5rem;
}

.attendance-section {
  margin-top: 2rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow-x: auto;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.toast--hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.toast--success { border-left: 4px solid var(--brand); }
.toast--error   { border-left: 4px solid var(--danger); }
.nav-cta {
  background: var(--brand);
  color: var(--primary-dark) !important;
  font-weight: 700;
  border-radius: 6px;
}
.nav-cta:hover { background: var(--brand-hover) !important; color: var(--primary-dark) !important; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (min-width: 768px) { .nav-toggle { display: none; } }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--primary-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #10120f 0%, #1a1d17 60%, #22281e 100%);
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  width: 100%;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 0.95;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero-title--accent {
  color: transparent;
  background: linear-gradient(135deg, #b0c96f 0%, #99C24D 50%, #7a9a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 3rem;
}

/* --- SECTIONS --- */
.section { padding: 5rem 0; }
.section--light { background: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 720px; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* Feature cards */
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all 0.2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-card p { color: var(--text-muted); font-size: 0.93rem; }

.class-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.class-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.class-card.kids   { border-top: 3px solid var(--brand); }
.class-card.adults { border-top: 3px solid var(--tone-gray); }
.class-card.mixed  { border-top: 3px solid var(--primary-light); }

.class-card-header { display: flex; justify-content: space-between; align-items: center; }
.class-category-badge {
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}
.class-category-badge--lg { font-size: 0.9rem; padding: 5px 14px; }

/* Map section */
.section--map { background: #fff; }
.map-wrapper { position: relative; }
.map-info-card {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  font-size: 0.9rem;
}
.map-info-card h4 { margin-bottom: 0.5rem; }
.map-info-card p { color: var(--text-muted); margin-bottom: 0.5rem; line-height: 1.5; }
@media (max-width: 600px) {
  .map-info-card { position: static; margin-top: 1rem; box-shadow: var(--shadow); }
}

/* CTA section */
.section--cta { background: var(--primary-dark); }
.cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 2rem 0;
}
@media (min-width: 768px) {
  .cta-box { flex-direction: row; justify-content: space-between; text-align: left; }
}
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* --- CALENDAR PAGE --- */
.page-content { padding: 2.5rem 0 5rem; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); }

.calendar-row {
  display: grid;
  grid-template-columns: 52px 8px 1fr auto auto;
  gap: 1rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  transition: all 0.15s;
}
.calendar-row:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.spots-label--low { color: var(--warning); font-weight: 700; }

.calendar-cta-hint {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--primary-pale);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 600px) {
  .calendar-row { grid-template-columns: 44px 1fr; grid-template-rows: auto auto auto; }
}

/* --- WEEKLY GRID CALENDAR --- */
.container--wide { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.week-nav-label { font-weight: 700; font-size: 1rem; color: var(--text); }

/* Modal */
.cal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
}
.cal-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: min(520px, 95vw);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.cal-modal-accent { height: 5px; width: 100%; }
.cal-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  z-index: 2;
}
.cal-modal-close:hover { background: var(--border); color: var(--text); }
.cal-modal-body { padding: 1.5rem 1.75rem 1.75rem; max-height: 85vh; overflow-y: auto; }
.cal-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .25rem;
  padding-right: 2rem;
  font-family: 'Barlow Condensed', sans-serif;
}
.cal-modal-time { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; }
.cal-modal-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.cal-modal-meta span {
  background: var(--primary-pale);
  color: var(--primary);
  border-radius: 100px;
  padding: 2px 12px;
  font-size: .8rem;
  font-weight: 600;
}
.cal-modal-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.1rem;
  border-left: 3px solid var(--border-strong);
  padding-left: .8rem;
}
.cal-modal-spots { margin-bottom: 1.3rem; }
.modal-spots-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.modal-spot-label {
  font-size: .85rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.modal-spot-label.low { color: var(--warning); border-color: var(--warning); background: #fffbeb; }
.cal-modal-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* --- BOOKING PAGE --- */
.back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--primary); }

.class-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.class-info-header { margin-bottom: 0.75rem; }
.class-info-title { font-size: 1.8rem; margin-bottom: 1rem; }
.class-info-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1rem; }
.class-info-meta-item { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text-muted); }
.meta-icon { width: 20px; text-align: center; }
.class-info-desc { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.5rem; }

.locked-state, .empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.locked-icon, .empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state-icon--logo { font-size: unset; text-align: center; }
.empty-state-icon--logo img {
  width: 88px;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}
.locked-state h2, .empty-state h3 { margin-bottom: 0.5rem; }
.locked-state p, .empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

.booking-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.booking-form-card h2 { margin-bottom: 0.25rem; }
.booking-form-hint { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.participant-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.participant-block--main { background: var(--primary-pale); border-color: var(--primary-light); }
.participant-block-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.participant-number { font-weight: 700; font-size: 0.9rem; color: var(--primary); }
.participant-name-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-right: 8px;
}
.participant-email { font-size: 0.85rem; color: var(--text-muted); }

.remove-btn {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.booking-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.booking-summary-inner { display: flex; justify-content: space-between; align-items: center; }
.spots-warning { color: var(--warning); font-weight: 600; font-size: 0.85rem; }

.booking-terms { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 0.75rem; }

/* --- DASHBOARD --- */
.dashboard { padding: 2.5rem 0 5rem; }
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.dashboard-email { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.dashboard-section { margin-bottom: 3rem; }
.dashboard-section-title { font-size: 1.5rem; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--border); }

.bookings-list { display: flex; flex-direction: column; gap: 0.75rem; }
.booking-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.booking-card--past { opacity: 0.6; }
.booking-date-block { text-align: center; }
.booking-day {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.booking-month { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); }
.booking-class-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.booking-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.booking-participants { font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.booking-participants strong { margin-right: 4px; }
.participant-chip {
  background: var(--primary-pale);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .booking-card { grid-template-columns: 1fr; }
  .booking-date-block { text-align: left; display: flex; align-items: baseline; gap: 6px; }
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge--past      { background: #f3f4f6; color: #9ca3af; }
.badge--soon      { background: #fef9c3; color: #ca8a04; }
.badge--active    { background: #dcfce7; color: #15803d; }
.badge--cancelled { background: #fee2e2; color: #dc2626; }
.badge--full      { background: #fee2e2; color: #dc2626; }

/* --- AUTH PAGES --- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .auth-page { grid-template-columns: 1fr 1fr; } }

.auth-side--visual {
  background: linear-gradient(160deg, #161914 0%, #252b22 100%);
  padding: 4rem 3rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-side--visual::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='%2399C24D' fill-opacity='0.05'%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");
}
@media (min-width: 900px) { .auth-side--visual { display: flex; } }
.auth-side--admin { background: linear-gradient(160deg, #121510, #1e2419); }

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff !important;
  text-decoration: none;
}
.auth-brand-logo {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
}
.auth-brand-label { line-height: 1.25; }
.auth-visual-tagline { z-index: 1; }
.auth-visual-tagline h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: #fff;
  margin-bottom: 0.5rem;
}
.auth-visual-tagline p { color: rgba(255,255,255,0.5); font-size: 0.95rem; }

.auth-side--form {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  min-height: 100vh;
}
.auth-form-wrapper { width: 100%; max-width: 400px; }
.auth-back { display: inline-block; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 2rem; }
.auth-title { font-size: 2rem; margin-bottom: 0.5rem; }
.auth-subtitle { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 2rem; line-height: 1.6; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.auth-divider { text-align: center; color: var(--border-strong); font-size: 0.8rem; margin: 1.5rem 0 0.75rem; }
.auth-register-info { font-size: 0.83rem; color: var(--text-muted); text-align: center; }
.email-sent-hint { text-align: center; padding: 1.5rem; }
.email-sent-icon { font-size: 3rem; margin-bottom: 1rem; }

/* --- FORMS --- */
.form-group { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.form-group--wide { flex: 2; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { min-width: 160px; }

.form-label { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.form-input {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(153, 194, 77, 0.22);
}
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 90px; }

.form-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }

/* --- ADMIN LAYOUT --- */
.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
@media (min-width: 900px) { .admin-layout { grid-template-columns: 220px 1fr; } }

.admin-sidebar {
  background: var(--primary-dark);
  color: #fff;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (max-width: 899px) { .admin-sidebar { display: none; } }

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  padding: 0 0.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  line-height: 1.25;
}
.admin-sidebar-brand-logo {
  height: 42px;
  width: auto;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}
.admin-sidebar-brand-text { min-width: 0; }
.admin-sidebar-brand-text span {
  color: var(--brand);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.15s;
}
.admin-nav-link:hover, .admin-nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.admin-sidebar-footer { margin-top: auto; font-size: 0.8rem; }
.admin-user-info { color: rgba(255,255,255,0.4); margin-bottom: 0.75rem; word-break: break-all; }

.admin-main { padding: 1.5rem; overflow-x: auto; }
@media (min-width: 900px) { .admin-main { padding: 2rem 2.5rem; } }

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-topbar h1 { margin: 0; }
.admin-topbar-sub { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.admin-topbar-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.admin-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
}
.admin-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.admin-info-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
.admin-info-icon { font-size: 1.5rem; flex-shrink: 0; }
.admin-info-box strong { display: block; margin-bottom: 4px; }
.admin-info-box p { margin: 0; color: var(--text-muted); }
.admin-email-link { color: var(--primary); font-weight: 700; }

.admin-section { margin-bottom: 2.5rem; }
.admin-section h2 { margin-bottom: 1.25rem; font-size: 1.4rem; }

.admin-table-wrapper { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.admin-table thead { background: var(--primary-dark); color: #fff; }
.admin-table th {
  padding: 12px 14px;
  text-align: left;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg); }
.admin-table .row--cancelled { opacity: 0.5; }
.admin-table .row--past { background: #fafafa; }

.admin-actions { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; white-space: nowrap; }

.badge-cat {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-cat--kids   { background: #e8f2d9; color: #3d5228; }
.badge-cat--adults { background: #e8eceb; color: #4a5555; }
.badge-cat--mixed  { background: var(--primary-pale); color: var(--primary); }

.mini-bar-wrap { display: flex; align-items: center; gap: 6px; }
.mini-bar { width: 60px; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.mini-bar-fill { height: 100%; background: var(--brand); border-radius: 3px; }

.admin-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 800px;
}
.admin-form { display: flex; flex-direction: column; gap: 1.25rem; }

/* Attendance */
.attendance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.att-stat {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.att-stat-num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
}
.attendance-checkbox {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-radius: 3px;
}

.booking-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
}
.booking-detail-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 4px;
}
.booking-detail-date { color: var(--text-muted); font-size: 0.8rem; }
.booking-detail-participants { display: flex; flex-wrap: wrap; gap: 6px; }

/* --- FOOTER --- */
.footer-main { background: var(--primary-dark); padding: 3rem 0 1.5rem; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.footer-desc { color: rgba(255,255,255,0.4); font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 { color: rgba(255,255,255,0.6); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.75rem; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,0.45); font-size: 0.88rem; margin-bottom: 0.25rem; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* --- ERROR PAGE --- */
.error-page-logo {
  width: min(112px, 40vw);
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
  border-radius: 14px;
}
.error-page-icon { font-size: 5rem; margin-bottom: 1rem; line-height: 1; }

/* --- EMERGENCY CONTACT BAR --- */
.emergency-contact-bar {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: 10px 0;
  font-size: 0.88rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.emergency-icon { font-size: 1rem; }
.emergency-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}
.emergency-link:hover { color: var(--primary-dark); }

/* --- CONSENT BLOCK (shown to an unverified minor instead of the booking features) --- */
.consent-block {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  max-width: 560px;
  margin: 2rem auto;
}
.consent-block-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.consent-block h2 { margin-bottom: 0.75rem; }
.consent-block p { color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.7; font-size: 0.95rem; }
.consent-status { margin-top: 1.5rem; }
.consent-contact { margin-top: 2rem; font-size: 0.85rem; color: var(--text-light); }
.consent-contact a { color: var(--primary); font-weight: 600; }

/* --- SPOTS INFO BOX (adult and child places on the booking page) --- */
.spots-info-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--primary-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.spots-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.spots-info-row strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; }

/* Badge info */
.badge--info { background: var(--primary-pale); color: var(--primary); border: 1px solid var(--border-strong); }

/* --- INSTRUCTION LIST --- */
.instruction-list {
  background: var(--bg-card);
  padding: 2.5rem 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  list-style: none;
  counter-reset: custom-counter;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 600px) {
  .instruction-list { padding: 2rem 1.5rem; }
}
.instruction-list li {
  position: relative;
  padding-left: 3.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.instruction-list li::before {
  counter-increment: custom-counter;
  content: counter(custom-counter);
  position: absolute;
  left: 0;
  top: -2px;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--brand);
  color: var(--primary-dark);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.instruction-list li strong {
  color: var(--primary-dark);
  font-weight: 700;
}

/* --- WEEKLY CALENDAR (kcal-*) ---
   The week grid of the home page, the calendar, the participant dashboard and the admin calendar. Classes are placed
   by pixel offsets from their start time (--hh is the height of one hour); overlapping classes share the day's width
   in columns. */

.kcal-wrapper {
  --hh: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Header row */
.kcal-header {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
  border-bottom: 2px solid var(--border-strong);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
  min-width: 640px;
}
.kcal-gutter-hd {
  border-right: 1px solid var(--border);
}
.kcal-day-hd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px;
  border-left: 1px solid var(--border);
  text-align: center;
}
.kcal-day-hd--today {
  background: var(--primary-pale);
}
.kcal-day-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.kcal-day-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.kcal-day-num--today {
  background: var(--brand);
  color: var(--primary-dark);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
}

/* Scroll container */
.kcal-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 75vh;
  -webkit-overflow-scrolling: touch;
}

/* Grid body */
.kcal-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  position: relative;
  min-width: 640px;
}

/* Time gutter */
.kcal-gutter {
  position: relative;
  border-right: 1px solid var(--border);
  background: var(--bg);
}
.kcal-gutter-label {
  position: absolute;
  right: 6px;
  transform: translateY(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}

/* Day columns */
.kcal-cols {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  position: relative;
}
.kcal-col {
  position: relative;
  border-left: 1px solid var(--border);
}
.kcal-col--today {
  background: rgba(153, 194, 77, 0.04);
}

/* Gridlines */
.kcal-gridline {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid var(--border);
  pointer-events: none;
  z-index: 0;
}
.kcal-gridline--half {
  border-top: 1px dashed rgba(0,0,0,0.05);
}

/* Event card */
.kcal-ev {
  position: absolute;
  border-radius: 6px;
  padding: 5px 7px;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  transition: filter .15s, transform .12s, box-shadow .15s;
  background: var(--ev-color, #6366f1);
  box-shadow: 0 2px 8px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.18);
  border: 1px solid rgba(0,0,0,.12);
}
.kcal-ev:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.18);
  z-index: 10;
}
.kcal-ev:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.kcal-ev--full {
  opacity: .55;
}
.kcal-ev--cancelled {
  opacity: .45;
  text-decoration: line-through;
}

.kcal-ev-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.kcal-ev-time {
  font-family: 'Barlow', sans-serif;
  font-size: .65rem;
  color: rgba(255,255,255,.9);
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.kcal-ev-instr {
  font-family: 'Barlow', sans-serif;
  font-size: .62rem;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.kcal-ev-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.3);
  padding: 1px 6px;
  border-radius: 3px;
  align-self: flex-start;
  margin-top: auto;
}

/* Mobile: horizontal scroll */
@media (max-width: 768px) {
  .kcal-wrapper { --hh: 48px; }
  .kcal-body { min-width: 580px; }
  .kcal-header { min-width: 580px; }
  .kcal-ev-name { font-size: .72rem; }
  .kcal-ev-time { font-size: .6rem; }
  .kcal-ev-instr { font-size: .58rem; }
}
@media (max-width: 480px) {
  .kcal-wrapper { --hh: 32px; }
  .kcal-header { grid-template-columns: 44px repeat(7, 1fr); min-width: 520px; }
  .kcal-body { grid-template-columns: 44px 1fr; min-width: 520px; }
  .kcal-gutter-label { font-size: .65rem; right: 4px; }
  .kcal-day-name { font-size: .6rem; }
  .kcal-day-num { font-size: 1rem; }
}

/* Week navigation bar */
.kcal-week-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
}
.kcal-week-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .kcal-week-nav { gap: .5rem; }
  .kcal-week-label { font-size: .88rem; }
  .kcal-week-nav .btn { padding: 6px 10px; font-size: .82rem; }
}

/* --- FOOTER (continued) --- */
.footer-main {
  padding: 5rem 0 2rem 0;
  background: var(--primary-dark);
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.footer-brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  color: #fff;
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  max-width: 300px;
  line-height: 1.6;
}
.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-link {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
  text-decoration: none;
}
.footer-link:hover {
  color: var(--brand);
  text-decoration: none;
  transform: translateX(4px);
}
.footer-address {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
  line-height: 1.6;
}
.footer-email {
  font-size: 1rem;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(153, 194, 77, 0.2);
  padding-bottom: 2px;
  transition: all 0.2s;
}
.footer-email:hover {
  color: #fff;
  border-color: #fff;
}
.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* --- SCROLL TO TOP --- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99;
  border: none;
  box-shadow: var(--shadow-lg);
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  background: var(--brand);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

/* --- BUTTON MODIFIERS --- */
.btn--danger {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}
.btn--danger:hover {
  background: #b91c1c;
  color: white;
  border-color: #b91c1c;
}
.btn--sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 4px;
}

/* --- ADMIN CALENDAR (acal-*) ---
   Additions for views/admin/calendar.ejs: the places tag on events, the places bars and action buttons of its modal. */

/* Spots tag on event card */
.kcal-ev-spots-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .58rem;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  background: rgba(0,0,0,.35);
  padding: 1px 5px;
  border-radius: 3px;
  align-self: flex-start;
  letter-spacing: .3px;
  line-height: 1.3;
  white-space: nowrap;
  margin-top: auto;
}

/* Spots section in admin modal */
.acal-spots-section {
  margin-bottom: 1.2rem;
}
.acal-spots-bars {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.acal-spot-row {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.acal-spot-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 85px;
  white-space: nowrap;
}
.acal-spot-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  min-width: 80px;
}
.acal-spot-bar-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 4px;
  transition: width .3s ease;
}
.acal-spot-count {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  min-width: 40px;
  text-align: right;
}
.acal-spot-count.low {
  color: var(--warning);
}

/* Admin action buttons in modal */
.acal-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
}

/* Admin calendar full-width */
.admin-main .kcal-wrapper {
  margin-bottom: 2rem;
}
.admin-main .kcal-week-nav {
  margin-bottom: 1.2rem;
}

/* --- PARTICIPANT DASHBOARD (views/user/dashboard.ejs) --- */
.dashboard-minor-badge { margin-top: 6px; display: inline-block; }
.consent-request-form { margin-top: 1.5rem; }
.empty-state--spaced { margin-top: 1.5rem; }
.empty-state--tab { padding: 2rem; }
.empty-state--tab p { color: var(--text-muted); font-size: 1.1rem; }

.custom-tabs { display: flex; gap: 1rem; margin-top: 1rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border); }
.custom-tab-btn {
  background: none; border: none; padding: 0.5rem 1rem; font-size: 1.05rem; font-family: inherit; font-weight: 600;
  cursor: pointer; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.2s;
}
.custom-tab-btn.active { color: var(--text); border-bottom-color: var(--brand); }
.custom-tab-count { background: var(--bg-secondary); padding: 2px 8px; border-radius: 12px; font-size: 0.85em; margin-left: 4px; }

.participant-remove-form { display: inline; }
.participant-remove-btn { background: none; border: none; color: var(--danger); cursor: pointer; margin-left: 4px; padding: 0; font-size: 0.9em; }

.booking-card--waitlist { border-left: 3px solid #f59e0b; }
.waitlist-status { margin-top: 8px; }
.waitlist-badge {
  display: inline-block; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; border: 1px solid #fde68a;
}
.waitlist-note { margin: 6px 0 0; font-size: 13px; color: #666; }
.btn--waitlist, .btn--waitlist:hover { border-color: #f59e0b; color: #92400e; }

.dashboard-section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 2px solid var(--border);
}
.dashboard-section-title.dashboard-section-title--inline { margin: 0; border: none; padding: 0; }
.week-nav.week-nav--compact { gap: .5rem; flex-wrap: nowrap; }
.week-nav-range { font-size: .85rem; font-weight: 600; white-space: nowrap; color: var(--text-muted); }
/* The class modal starts hidden; dashboard.js shows it by setting display. */
.cal-modal-overlay[hidden] { display: none; }
