/* ============================================================
   Women's Empowerment Center™ — Shared Stylesheet
   Color palette: Deep Purple #6B2D8B · Gold #D4A843 · White · Soft Gray
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --purple:       #6B2D8B;
  --purple-dark:  #4e1f68;
  --purple-light: #8b45b0;
  --purple-pale:  #f3eaf8;
  --gold:         #D4A843;
  --gold-dark:    #b8902f;
  --gold-light:   #e8c472;
  --gold-pale:    #fdf8ec;
  --white:        #ffffff;
  --gray-50:      #f9f9fb;
  --gray-100:     #f0eff4;
  --gray-200:     #e2e0ea;
  --gray-300:     #c8c4d8;
  --gray-400:     #9b96b0;
  --gray-500:     #6e6884;
  --gray-600:     #4a4560;
  --gray-700:     #2e2a3d;
  --gray-800:     #1a1728;
  --text:         #1a1728;
  --text-muted:   #5a5672;

  --shadow-sm:  0 1px 3px rgba(107,45,139,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(107,45,139,.12), 0 2px 6px rgba(0,0,0,.08);
  --shadow-lg:  0 10px 32px rgba(107,45,139,.16), 0 4px 12px rgba(0,0,0,.1);
  --shadow-xl:  0 20px 48px rgba(107,45,139,.2),  0 8px 20px rgba(0,0,0,.12);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --nav-h: 72px;
  --transition: 200ms ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--gray-800);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.75; }

.text-center { text-align: center; }
.text-purple { color: var(--purple); }
.text-gold   { color: var(--gold-dark); }
.text-muted  { color: var(--text-muted); }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 860px; }
.container-xs { max-width: 640px; }

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 112px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p  { font-size: 1.1rem; max-width: 580px; margin: 0 auto; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-icon svg { width: 22px; height: 22px; fill: white; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--purple-dark);
  line-height: 1.2;
}
.nav-logo-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .08em;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--purple);
  background: var(--purple-pale);
}
.nav-cta {
  margin-left: 8px;
  padding: 9px 20px;
  background: var(--purple);
  color: white !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(107,45,139,.3);
}
.nav-cta:hover {
  background: var(--purple-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(107,45,139,.4);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
  z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { padding: 12px 16px; border-radius: var(--radius-md); font-size: 1rem; }
.nav-mobile .nav-cta { margin: 8px 0 0; text-align: center; padding: 14px; border-radius: var(--radius-md); }

.page-body { padding-top: var(--nav-h); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 2px 10px rgba(107,45,139,.3);
}
.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107,45,139,.4);
}
.btn-secondary {
  background: white;
  color: var(--purple);
  border-color: var(--purple);
}
.btn-secondary:hover {
  background: var(--purple-pale);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--gold);
  color: var(--gray-800);
  box-shadow: 0 2px 10px rgba(212,168,67,.3);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,168,67,.4);
}
.btn-ghost {
  background: transparent;
  color: var(--purple);
}
.btn-ghost:hover { background: var(--purple-pale); }
.btn-danger {
  background: #dc2626;
  color: white;
}
.btn-danger:hover { background: #b91c1c; }
.btn-success {
  background: #16a34a;
  color: white;
}
.btn-success:hover { background: #15803d; }
.btn-sm  { padding: 8px 16px;  font-size: 0.8rem; }
.btn-lg  { padding: 16px 32px; font-size: 1rem; }
.btn-xl  { padding: 18px 40px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-body { padding: 24px; }
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.space-card .card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--purple-pale) 0%, var(--gold-pale) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.space-card .card-image-placeholder {
  width: 64px; height: 64px;
  background: rgba(107,45,139,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.space-card .card-image-placeholder svg {
  width: 32px; height: 32px;
  fill: var(--purple);
  opacity: .7;
}
.space-card .card-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge-small { background: var(--purple-pale); color: var(--purple); }
.badge-large { background: var(--gold-pale);   color: var(--gold-dark); }
.badge-event { background: #edf2ff;            color: #3730a3; }

.space-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.space-card .space-meta {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.space-card .space-sqft {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.space-card .amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.amenity-tag {
  font-size: 0.72rem;
  padding: 3px 9px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
label .required { color: #dc2626; margin-left: 2px; }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107,45,139,.1);
}
input::placeholder,
textarea::placeholder { color: var(--gray-400); }
textarea { min-height: 100px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e6884' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field-hint { font-size: 0.78rem; color: var(--gray-500); margin-top: 5px; }
.field-error { font-size: 0.78rem; color: #dc2626; margin-top: 5px; display: none; }
.field-error.show { display: block; }
input.error, select.error, textarea.error { border-color: #dc2626; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 60%, var(--purple-light) 100%);
  color: white;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(212,168,67,.12);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { color: white; margin-bottom: 20px; }
.hero h1 span { color: var(--gold-light); }
.hero p { color: rgba(255,255,255,.8); font-size: 1.15rem; max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
}
.hero-stat-lbl {
  font-size: 0.82rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Page Hero (inner pages) ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  color: white;
  padding: 56px 0 48px;
  text-align: center;
}
.page-hero h1 { color: white; font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 10px; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1.05rem; }

/* ── Badges & Chips ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-purple   { background: var(--purple-pale); color: var(--purple); }
.badge-gold     { background: var(--gold-pale);   color: var(--gold-dark); }
.badge-green    { background: #dcfce7;             color: #166534; }
.badge-yellow   { background: #fef9c3;             color: #92400e; }
.badge-red      { background: #fee2e2;             color: #dc2626; }
.badge-gray     { background: var(--gray-100);     color: var(--gray-600); }
.badge-blue     { background: #dbeafe;             color: #1d4ed8; }

/* Status badge helpers */
.status-pending  { @extend .badge-yellow; }
.status-approved { @extend .badge-green; }
.status-denied   { @extend .badge-red; }
.status-cancelled { @extend .badge-gray; }

/* ── Alert / Notice boxes ────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.alert-info    { background: #dbeafe; color: #1d4ed8; border-left: 4px solid #3b82f6; }
.alert-success { background: #dcfce7; color: #166534; border-left: 4px solid #16a34a; }
.alert-warning { background: #fef9c3; color: #92400e; border-left: 4px solid #f59e0b; }
.alert-error   { background: #fee2e2; color: #dc2626; border-left: 4px solid #dc2626; }

/* ── Filter Bar ──────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--gray-50);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  margin-bottom: 36px;
}
.filter-bar label { margin: 0; font-size: 0.85rem; }
.filter-chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gray-300);
  background: white;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover { border-color: var(--purple); color: var(--purple); }
.filter-chip.active {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}

/* ── Grid Layouts ────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }

/* ── Membership Cards ─────────────────────────────────────────── */
.membership-card {
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  border: 2px solid var(--gray-200);
  background: white;
  position: relative;
  transition: all var(--transition);
}
.membership-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.membership-card.featured {
  border-color: var(--purple);
  background: linear-gradient(160deg, var(--purple-pale) 0%, white 60%);
}
.membership-card .popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: white;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.membership-tier {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.membership-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.membership-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  margin: 16px 0 4px;
}
.membership-price span { font-size: 1rem; font-weight: 400; color: var(--gray-500); }
.membership-features {
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.membership-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.membership-feature .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--purple-pale);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
}
.membership-feature .check.gold-check {
  background: var(--gold-pale);
  color: var(--gold-dark);
}

/* ── Calendar ─────────────────────────────────────────────────── */
.cal-wrapper {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: var(--purple);
  color: white;
}
.cal-nav-btn {
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.cal-nav-btn:hover { background: rgba(255,255,255,.3); }
.cal-month-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-day-name {
  text-align: center;
  padding: 12px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-100);
}
.cal-day {
  min-height: 80px;
  padding: 8px;
  border-right: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.cal-day:nth-child(7n) { border-right: none; }
.cal-day:hover:not(.cal-day-empty) { background: var(--gray-50); }
.cal-day.selected { background: var(--purple-pale) !important; }
.cal-day-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
}
.cal-day.today .cal-day-num {
  background: var(--purple);
  color: white;
}
.cal-day-empty { background: var(--gray-50); cursor: default; }
.cal-day-empty .cal-day-num { color: var(--gray-300); }
.cal-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}
.cal-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-available { background: #16a34a; }
.dot-booked    { background: #dc2626; }
.dot-pending   { background: #f59e0b; }
.dot-partial   { background: var(--purple); }

/* Legend */
.cal-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 28px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--gray-600);
}
.cal-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Day Detail Panel ────────────────────────────────────────── */
.day-detail {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.day-detail h3 { margin-bottom: 20px; }
.space-availability-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.space-availability-item:last-child { border-bottom: none; }
.avail-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}
.avail-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ── Admin Dashboard ─────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-h));
}
.admin-sidebar {
  background: var(--gray-800);
  color: white;
  padding: 32px 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.admin-sidebar-title {
  padding: 0 24px 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-400);
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 12px;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  font-size: 0.88rem;
  color: var(--gray-300);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.admin-nav-link:hover { background: rgba(255,255,255,.07); color: white; }
.admin-nav-link.active { background: var(--purple); color: white; }
.admin-nav-link svg { width: 18px; height: 18px; opacity: .7; flex-shrink: 0; }
.admin-nav-link.active svg { opacity: 1; }

.admin-main { padding: 36px; background: var(--gray-50); min-height: calc(100vh - var(--nav-h)); }
.admin-section { display: none; }
.admin-section.active { display: block; }

/* Stat cards */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.stat-card-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-card-label {
  font-size: 0.82rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.stat-card-icon {
  width: 44px; height: 44px;
  background: var(--purple-pale);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.stat-card-icon svg { width: 22px; height: 22px; fill: var(--purple); }

/* Data tables */
.table-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.table-header h3 { font-size: 1.05rem; margin: 0; }
.table-scroll { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
  color: var(--gray-700);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--gray-50); }
.table-actions { display: flex; gap: 6px; }
.table-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-400);
}

/* ── Loading / Spinner ───────────────────────────────────────── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 64px 24px;
}
.loading-overlay p { color: var(--gray-500); }

/* ── Toast notifications ─────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--purple);
  font-size: 0.88rem;
  color: var(--gray-700);
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 360px;
  pointer-events: all;
  animation: slide-in-toast .25s ease;
}
.toast-success { border-color: #16a34a; }
.toast-error   { border-color: #dc2626; }
.toast-warning { border-color: #f59e0b; }
@keyframes slide-in-toast { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(.96);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { margin: 0; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-800); }
.modal-body { padding: 24px 28px; }
.modal-footer {
  padding: 16px 28px 24px;
  display: flex; gap: 12px; justify-content: flex-end;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--gray-800);
  color: white;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo-text { color: white; font-size: 1.1rem; }
.footer-brand .nav-logo-sub  { color: var(--gray-400); }
.footer-desc {
  font-size: 0.88rem;
  color: var(--gray-400);
  line-height: 1.75;
  margin-top: 16px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-400);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link {
  font-size: 0.88rem;
  color: var(--gray-400);
  transition: color var(--transition);
}
.footer-link:hover { color: white; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--gray-500);
}
.footer-bottom a { color: var(--gold-light); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Step indicator ─────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 16px;
  width: calc(100% - 36px);
  left: 36px;
  height: 2px;
  background: var(--gray-200);
}
.step.completed::after { background: var(--purple); }
.step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.step.active .step-circle { background: var(--purple); color: white; }
.step.completed .step-circle { background: #16a34a; color: white; }
.step-label { font-size: 0.8rem; font-weight: 600; color: var(--gray-500); }
.step.active .step-label { color: var(--purple); }
.step.completed .step-label { color: #16a34a; }

/* ── Feature icons ───────────────────────────────────────────── */
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon-purple { background: var(--purple-pale); }
.feature-icon-gold   { background: var(--gold-pale); }
.feature-icon svg { width: 28px; height: 28px; }

/* ── Misc utilities ──────────────────────────────────────────── */
.divider { height: 1px; background: var(--gray-200); margin: 32px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* PIN lock screen */
.pin-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  padding: 24px;
}
.pin-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
}
.pin-card h2 { margin-bottom: 8px; }
.pin-card p { margin-bottom: 28px; }
.pin-input {
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: .2em;
  font-weight: 600;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .admin-layout { grid-template-columns: 200px 1fr; }
  .admin-main { padding: 24px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .grid-3, .grid-2, .grid-auto { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }

  .hero { padding: 72px 0 56px; }
  .hero-stats { gap: 24px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-sidebar.open { display: block; position: fixed; z-index: 900; height: 100vh; top: 0; }

  .cal-day { min-height: 52px; }
  .cal-day-num { font-size: 0.75rem; width: 22px; height: 22px; }
  .cal-dots { gap: 2px; }
  .cal-dot { width: 5px; height: 5px; }

  .steps { flex-direction: column; align-items: flex-start; }
  .step::after { display: none; }

  .table-wrapper { border-radius: var(--radius-md); }
  .modal { border-radius: var(--radius-lg); margin: 0; }

  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stat-cards { grid-template-columns: 1fr; }
  .filter-bar { gap: 8px; }
  .membership-card { padding: 28px 20px; }
  .pin-card { padding: 32px 24px; }
  .modal-body, .modal-footer, .modal-header { padding-left: 20px; padding-right: 20px; }
}
