/* =========================================================
   Fit For Our Life — Shared Stylesheet (spec v2.0)
   Hand-coded, no framework, no build step.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --white: #FFFFFF;
  --offwhite: #F5F5F7;
  --black: #111111;
  --charcoal: #2D2D2D;
  --card-border: #E5E5E5;
  --red: #D32F2F;
  --red-dark: #b71c1c;
  --green: #2E7D32;

  /* Fonts */
  --font-head: "Bebas Neue", Impact, "Arial Narrow Bold", sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Type scale (clamp: mobile min / preferred / desktop max) */
  --fs-hero: clamp(2.5rem, 6vw + 1rem, 4.5rem);        /* 40 -> 72 */
  --fs-hero-sub: clamp(1.125rem, 2vw + 0.5rem, 2.125rem); /* 18 -> 34 */
  --fs-section: clamp(2rem, 4vw + 0.5rem, 3.25rem);     /* 32 -> 52 */
  --fs-card-head: clamp(1.375rem, 2vw + 0.5rem, 2rem);  /* 22 -> 32 */
  --fs-price: clamp(2.375rem, 3vw + 0.5rem, 3rem);      /* 38 -> 48 */
  --fs-body: clamp(1rem, 0.4vw + 0.9rem, 1.1875rem);    /* 16 -> 19 */
  --fs-small: clamp(0.875rem, 0.3vw + 0.8rem, 1rem);    /* 14 -> 16 */

  /* Layout */
  --container: 1280px;
  --container-text: 960px;
  --radius-card: 20px;
  --radius-btn: 10px;
  --shadow-card: 0 10px 28px rgba(17, 17, 17, 0.08), 0 2px 8px rgba(17, 17, 17, 0.05);

  /* Section padding responsive */
  --section-pad: clamp(3.5rem, 6vw, 6rem);   /* 56 -> 96 */
  --card-pad: clamp(1.5rem, 3vw, 2rem);      /* 24 -> 32 */
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--black);
  letter-spacing: 0.5px;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }

/* Focus visibility (accessibility) */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.container-text { max-width: var(--container-text); }
.section { padding-block: var(--section-pad); }
.section--gray { background: var(--offwhite); }
.section--black { background: var(--black); color: var(--white); }
.section--black h1, .section--black h2, .section--black h3 { color: var(--white); }
.section-title {
  font-size: var(--fs-section);
  text-align: center;
  margin-bottom: 0.75em;
}
.section-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem;
  color: var(--charcoal);
}
.section--black .section-intro { color: #d0d0d0; }
.text-center { text-align: center; }
.justify-start { justify-content: flex-start; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Red gradient accent for numbers / emphasis */
.text-gradient {
  background: linear-gradient(135deg, #ff5252, var(--red) 55%, var(--red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  min-width: 44px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: 1px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-secondary { background: var(--black); color: #fff; }
.btn-secondary:hover { background: #000; color: #fff; }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: #fff; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--card-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--red);
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  color: var(--black);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.4rem 0;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); }
.nav-cta { flex-shrink: 0; }
.nav-links .mobile-cta { display: none; }
.nav-cta .btn.btn-primary { font-size: 0.9rem; min-height: 44px; padding: 0.55rem 1.1rem; background: #fff; color: var(--red); border: 2px solid var(--red); }
.nav-cta .btn.btn-primary:hover { background: var(--red); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--black);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

/* Mobile nav */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta.desktop-only { display: none; }
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-120%);
    transition: transform .25s ease;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    color: #fff;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: 1.05rem;
  }
  .nav-links a:hover,
  .nav-links a.active { color: var(--red); }
  .nav-links .mobile-cta { display: block; margin-top: 1rem; }
  .nav-links .mobile-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: #fff;
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(17,17,17,.9));
  z-index: 1;
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 {
  color: #fff;
  font-size: var(--fs-hero);
  line-height: 1.1;
  margin-bottom: 0.35em;
}
.hero-sub {
  font-size: var(--fs-hero-sub);
  line-height: 1.3;
  max-width: 820px;
  margin: 0 auto 2rem;
  color: #ececec;
  font-family: var(--font-body);
  font-weight: 500;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
/* Hero with a real photo behind it (uses the same ::before dark overlay) */
.hero--photo {
  background-size: cover;
  background-position: center;
}
/* Placeholder media band */
.media-band {
  position: relative;
  z-index: 2;
  margin-top: 2.5rem;
  border: 2px dashed rgba(255,255,255,.35);
  border-radius: var(--radius-card);
  background: repeating-linear-gradient(45deg, #1a1a1a, #1a1a1a 12px, #222 12px, #222 24px);
  color: #cfcfcf;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: clamp(160px, 30vw, 320px);
  padding: 1.5rem;
  font-style: italic;
}
.media-band--photo {
  border-style: solid;
  border-color: rgba(255,255,255,.15);
  background-size: cover;
  background-position: center;
  min-height: clamp(220px, 40vw, 420px);
}
.media-placeholder {
  border: 2px dashed var(--card-border);
  border-radius: var(--radius-card);
  background: var(--offwhite);
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: clamp(220px, 35vw, 360px);
  padding: 1.5rem;
  font-style: italic;
}
.media-placeholder--photo {
  border-style: solid;
  border-color: var(--card-border);
  background-size: cover;
  background-position: center top;
  min-height: clamp(320px, 40vw, 520px);
}
/* Section with a real photo behind it (Uphill Battle band) */
.section--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.section--photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.65), rgba(17,17,17,.85));
}
.section--photo > .container { position: relative; z-index: 1; }
.section--photo .section-title { color: #fff; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--card-pad);
}
.card h3 { font-size: var(--fs-card-head); }
.card--black { background: var(--black); color: #fff; border-color: #333; }
.card--black h3 { color: var(--red); }
.card--black p { color: #dcdcdc; }
.card-icon {
  font-size: 2.4rem;
  color: var(--red);
  margin-bottom: 0.6rem;
  display: inline-block;
}
.card--black .card-icon { color: var(--red); }

/* ---------- Comparison Matrix ---------- */
.comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
@media (max-width: 640px) { .comparison { grid-template-columns: 1fr; } }
.comparison-col {
  border-radius: var(--radius-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.comparison-col h3 {
  margin: 0;
  padding: 1rem;
  text-align: center;
  font-size: var(--fs-card-head);
  color: #fff;
}
.comparison-col.other h3 { background: var(--charcoal); }
.comparison-col.ours h3 { background: var(--red); }
.comparison-col ul { list-style: none; margin: 0; padding: 0.5rem 1.25rem 1.25rem; }
.comparison-col li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--card-border);
  font-size: var(--fs-body);
}
.comparison-col li:last-child { border-bottom: 0; }
.icon-x { color: var(--red); font-size: 1.25rem; flex-shrink: 0; }
.icon-check { color: var(--green); font-size: 1.25rem; flex-shrink: 0; }

/* ---------- How It Works (steps) ---------- */
.steps { counter-reset: step; }
.step-num {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}

/* ---------- Pricing ---------- */
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card .badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  letter-spacing: 1px;
  font-size: 0.85rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card.featured { border-color: var(--red); border-width: 2px; }
.price-name { font-size: var(--fs-card-head); margin-bottom: 0.25rem; }
.price-amount {
  font-family: var(--font-head);
  font-size: var(--fs-price);
  color: var(--red);
  line-height: 1;
  margin: 0.5rem 0 0.15rem;
}
.price-cycle { font-size: var(--fs-small); color: var(--charcoal); margin-bottom: 0.75rem; }
.price-meta { list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: 0.95rem; }
.price-meta li { padding: 0.3rem 0; border-bottom: 1px dashed var(--card-border); }
.price-meta li:last-child { border-bottom: 0; }
.price-card .btn { margin-top: auto; }

/* Benefit strip */
.benefit-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin: 0;
  padding: 0;
  font-weight: 600;
}
.benefit-strip li { display: flex; align-items: center; gap: 0.5rem; }
.benefit-strip .bi { color: var(--red); font-size: 1.2rem; }

/* Founding banner */
.founding-banner {
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-card);
  padding: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
  font-weight: 600;
}
.founding-banner strong { font-family: var(--font-head); letter-spacing: 1px; font-size: 1.4rem; display: block; margin-bottom: 0.4rem; }

/* ---------- Forms ---------- */
.form-wrap { max-width: 900px; margin-inline: auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group > label,
.form-legend {
  display: block;
  font-weight: 600;
  font-size: var(--fs-small);
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}
fieldset { border: 0; padding: 0; margin: 0; }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-btn);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem 1rem;
}
.choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 400;
  font-size: var(--fs-body);
  padding: 0.35rem 0;
}
.choice input { width: auto; min-height: auto; }
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Success screen deliverable box */
.deliverable-box {
  background: var(--offwhite);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: var(--card-pad);
  margin: 1.5rem 0;
}
.deliverable-box ul { list-style: none; padding: 0; margin: 0; }
.deliverable-box li { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.5rem 0; }
.deliverable-box .bi-check-circle-fill,
.deliverable-box .icon-check { color: var(--green); font-size: 1.3rem; flex-shrink: 0; }
.is-hidden { display: none !important; }

/* ---------- Scheduling calendar (home page) ---------- */
.scheduler { max-width: 960px; margin-inline: auto; }
.scheduler-hint { color: var(--charcoal); opacity: 0.75; font-size: var(--fs-small); }
.scheduler-layout {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
@media (max-width: 760px) {
  .scheduler-layout { grid-template-columns: 1fr; }
}
.cal,
.slot-panel {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: var(--card-pad);
  box-shadow: var(--shadow-card);
}
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-header h3 {
  margin: 0;
  font-family: var(--font-head);
  letter-spacing: 1px;
  font-size: 1.5rem;
  color: var(--black);
}
.cal-nav-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--charcoal);
  flex-shrink: 0;
}
.cal-nav-btn:hover:not(:disabled) { background: var(--offwhite); border-color: var(--red); color: var(--red); }
.cal-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.cal-weekdays span { text-align: center; font-size: var(--fs-small); font-weight: 700; color: var(--charcoal); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--charcoal);
  cursor: pointer;
  position: relative;
  padding: 0;
  min-height: 0;
}
.cal-day:hover:not(:disabled) { border-color: var(--red); }
.cal-day.is-empty { background: transparent; cursor: default; visibility: hidden; }
.cal-day:disabled { color: #bbb; cursor: not-allowed; background: transparent; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--charcoal); }
.cal-day.is-selected, .cal-day.is-selected:hover { background: var(--red); border-color: var(--red); color: #fff; }
.cal-day .cal-dot { position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.cal-day.is-selected .cal-dot { background: #fff; }
.cal-day:disabled .cal-dot { display: none; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1rem; font-size: var(--fs-small); color: var(--charcoal); }
.cal-legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 0.4rem; }
.cal-legend .dot--open { background: var(--green); }
.cal-legend .dot--full { background: #bbb; }
.slot-panel h3 { margin-top: 0; font-family: var(--font-head); letter-spacing: 1px; font-size: 1.5rem; color: var(--black); }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.6rem; margin: 1rem 0; max-height: 320px; overflow-y: auto; }
.slot-btn {
  border: 1px solid var(--card-border);
  background: var(--white);
  border-radius: var(--radius-btn);
  padding: 0.6rem 0.4rem;
  font-weight: 600;
  cursor: pointer;
  font-size: var(--fs-small);
  color: var(--charcoal);
  min-height: 44px;
}
.slot-btn:hover { border-color: var(--red); color: var(--red); }
.slot-btn.is-selected { background: var(--red); color: #fff; border-color: var(--red); }
.slot-empty { color: var(--charcoal); opacity: 0.8; font-size: var(--fs-small); }
.booking-form { margin-top: 1.5rem; border-top: 1px solid var(--card-border); padding-top: 1.5rem; }
.booking-selected-summary {
  background: var(--offwhite);
  border-radius: var(--radius-btn);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  color: var(--black);
}

/* ---------- Appointment lists (account dashboard) ---------- */
.appt-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.appt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--card-border);
  flex-wrap: wrap;
}
.appt-row:last-child { border-bottom: 0; }
.appt-row-main { display: flex; flex-direction: column; gap: 0.15rem; }
.appt-row-date { font-weight: 700; color: var(--black); }
.appt-row-time { font-size: var(--fs-small); color: var(--charcoal); }
.appt-row-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }

/* ---------- Modal (Who We Help) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-card);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  position: relative;
}
.modal h3 { font-size: var(--fs-card-head); color: var(--red); }
.modal-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  background: none; border: 0;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--charcoal);
  min-width: 44px; min-height: 44px;
}
/* No-JS expandable fallback */
details.wwh-details { margin-top: 0.75rem; }
details.wwh-details summary { cursor: pointer; font-weight: 600; color: var(--red); }

/* Category card (clickable) */
.category-card { cursor: pointer; text-align: left; }
.category-card:hover { border-color: var(--red); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-card);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.cta-band h2 { color: #fff; }
.cta-band .btn-secondary { background: var(--black); }
.cta-band .btn-white { background: #fff; color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: #cfcfcf;
  padding-block: clamp(2.5rem, 5vw, 4rem) 6rem;
}
.site-footer .brand { display: inline-block; margin-bottom: 0.75rem; font-size: 1.8rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.site-footer a { color: #e0e0e0; }
.site-footer a:hover { color: var(--red); }
.footer-contact p { margin: 0.3rem 0; color: #bdbdbd; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-h {
  font-family: var(--font-head);
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: var(--fs-small);
  color: #9a9a9a;
}

/* ---------- Floating CTA ---------- */
.floating-cta {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 90;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
@media (max-width: 1024px) { .floating-cta { display: none; } }

/* ---------- Sticky mobile bottom bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: var(--black);
  padding: 0.6rem 0.75rem;
  border-top: 1px solid #2a2a2a;
}
.mobile-bar .btn { width: 100%; }
.mobile-bar .btn.btn-primary { background: #fff; color: var(--red); border: 2px solid var(--red); }
@media (max-width: 1024px) { .mobile-bar { display: block; } }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: var(--fs-hero-sub); font-weight: 500; }
.disclaimer { font-size: var(--fs-small); color: var(--charcoal); }
.stack > * + * { margin-top: 1rem; }
.descriptor-strip {
  font-family: var(--font-head);
  letter-spacing: 2px;
  color: var(--red);
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ---------- Account (login / sign up / my account) ---------- */
input[type="password"] {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-btn);
}

.auth-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--card-pad);
}

.password-field { position: relative; }
.password-field input { padding-right: 3rem; }
.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  height: 52px;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--charcoal);
  cursor: pointer;
  font-size: 1.1rem;
}
.password-toggle:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }

.field-hint {
  font-size: var(--fs-small);
  color: var(--charcoal);
  opacity: 0.75;
  margin-top: 0.4rem;
}
.field-error {
  font-size: var(--fs-small);
  color: var(--red-dark);
  margin-top: 0.4rem;
  font-weight: 600;
}

.form-alert {
  border-radius: var(--radius-btn);
  padding: 0.9rem 1.1rem;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}
.form-alert--error { background: #FDECEA; color: var(--red-dark); border-color: #F5C6C2; }
.form-alert--success { background: #EAF5EB; color: var(--green); border-color: #C7E4C9; }

.auth-switch {
  text-align: center;
  font-size: var(--fs-small);
  margin-top: 1.5rem;
}

.btn[disabled], .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.account-info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--card-border);
}
.account-info-row:last-child { border-bottom: 0; }
.account-info-row dt { font-weight: 600; color: var(--charcoal); }
.account-info-row dd { margin: 0; color: var(--charcoal); text-align: right; }

.session-check {
  text-align: center;
  padding: var(--section-pad) 0;
  color: var(--charcoal);
  opacity: 0.7;
}
.auth-card--spaced { margin-bottom: 2rem; }
.account-card-title { font-size: var(--fs-card-head); text-align: left; margin-top: 0; }
.account-dl { margin: 0; }
.account-actions { justify-content: flex-start; margin-top: 1.5rem; }

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 700;
}
.status-badge--active { background: #EAF5EB; color: var(--green); }
.admin-role-badge { margin-left: 0.5rem; font-size: 0.7rem; padding: 0.1rem 0.6rem; vertical-align: middle; }
.status-badge--cancelled { background: #FDECEA; color: var(--red-dark); }

.cancel-confirm {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: #FDECEA;
  border: 1px solid #F5C6C2;
  border-radius: var(--radius-btn);
}
.cancel-confirm p { margin: 0 0 1rem; font-weight: 600; color: var(--red-dark); }
.cancel-confirm .account-actions { margin-top: 0; }

/* ---------- Dashboard (My Account) ---------- */
.dash-page { padding: 0; }

.dash-shell {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 68px);
}

/* Sidebar */
.dash-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--black);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  position: sticky;
  top: 68px;
  align-self: flex-start;
  height: calc(100vh - 68px);
  overflow-y: auto;
}
.dash-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.dash-brand {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 1px;
  text-decoration: none;
}
.dash-brand:hover { text-decoration: none; color: var(--red); }
.dash-sidebar-close {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.25rem;
  min-width: 44px;
  min-height: 44px;
}

.dash-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-card);
  margin-bottom: 1.5rem;
}
.dash-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.dash-profile-info { min-width: 0; }
.dash-profile-name {
  margin: 0;
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-profile-email {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #b8b8b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-nav { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: none;
  border: 0;
  border-radius: var(--radius-btn);
  color: #d8d8d8;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.dash-nav-link .bi { font-size: 1.1rem; width: 1.25rem; text-align: center; }
.dash-nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.dash-nav-link.is-active { background: var(--red); color: #fff; }

.dash-sidebar-bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.dash-sidebar-bottom .btn { color: #fff; border-color: rgba(255, 255, 255, 0.4); width: 100%; }
.dash-sidebar-bottom .btn:hover { background: #fff; color: var(--black); }

.dash-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
}
.dash-backdrop.is-open { display: block; }

/* Main content */
.dash-main {
  flex: 1;
  min-width: 0;
  background: var(--offwhite);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.dash-topbar {
  display: none;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dash-menu-toggle {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-btn);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--black);
  cursor: pointer;
}
.dash-title { margin: 0; font-size: var(--fs-card-head); }

.dash-panel { display: none; }
.dash-panel.is-active { display: block; }
.dash-panel-title { font-size: var(--fs-card-head); text-align: left; margin-bottom: 1.25rem; margin-top: 0; }

.dash-welcome { font-size: var(--fs-card-head); margin-bottom: 0.25rem; }
.dash-welcome-sub { color: var(--charcoal); opacity: 0.75; margin-bottom: 1.75rem; }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.dash-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--card-pad);
  margin-bottom: 1.5rem;
}
.dash-grid .dash-card { margin-bottom: 0; }
.dash-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  text-align: left;
  margin-top: 0;
  margin-bottom: 1rem;
}
.dash-card-title .bi { color: var(--red); }
.dash-card-link { margin-top: 1.25rem; }

/* Mobile: collapse sidebar into a slide-in drawer */
@media (max-width: 900px) {
  .dash-shell { display: block; min-height: 0; }
  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 82vw;
    max-width: 320px;
  }
  .dash-sidebar.is-open { transform: translateX(0); }
  .dash-sidebar-close { display: inline-flex; align-items: center; justify-content: center; }
  .dash-topbar { display: flex; }
  .dash-main { padding: 1.25rem; }
}

/* ---------- Admin Panel ---------- */
.btn-sm {
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.btn-danger { background: var(--red-dark); color: #fff; }
.btn-danger:hover { background: #8f1515; color: #fff; }
.btn-danger-outline { background: transparent; color: var(--red-dark); border-color: var(--red-dark); }
.btn-danger-outline:hover { background: var(--red-dark); color: #fff; }

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.admin-toolbar input[type="search"] {
  flex: 1;
  min-width: 220px;
  height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: var(--fs-small);
}
.admin-toolbar select {
  height: 44px;
  padding: 0 2.25rem 0 1rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  background: #fff;
  color: var(--charcoal);
}
.admin-count {
  font-size: var(--fs-small);
  color: var(--charcoal);
  opacity: 0.7;
  white-space: nowrap;
}

.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.admin-table th {
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--charcoal);
  opacity: 0.6;
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid var(--card-border);
  white-space: nowrap;
}
.admin-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--card-border);
  vertical-align: middle;
  font-size: var(--fs-small);
}
.admin-table tr:last-child td { border-bottom: 0; }

.admin-member-name { font-weight: 700; color: var(--black); }
.admin-member-email { color: var(--charcoal); opacity: 0.7; font-size: 0.85rem; }

.admin-package-cell { display: table-cell; }
.admin-package-select {
  height: 40px;
  padding: 0 0.6rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.85rem;
  margin-right: 0.5rem;
  max-width: 220px;
}

.admin-actions-cell { min-width: 140px; }
.admin-self-note {
  font-size: 0.85rem;
  color: var(--charcoal);
  opacity: 0.6;
  font-style: italic;
}
.admin-action-wrap { position: relative; }
.admin-confirm {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.75rem;
  background: #FDECEA;
  border: 1px solid #F5C6C2;
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red-dark);
}
.admin-confirm-actions { display: flex; gap: 0.5rem; }

.admin-action-stack { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }

.admin-toolbar-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--charcoal);
  white-space: nowrap;
  cursor: pointer;
}
.admin-toolbar-check input { width: 16px; height: 16px; }

.admin-member-cell { display: flex; align-items: center; gap: 0.75rem; }
.admin-row-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 1px;
  flex-shrink: 0;
  overflow: hidden;
}
.dash-avatar img,
.admin-row-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.status-badge--archived { background: #ECECEC; color: var(--charcoal); }
.status-badge--pending { background: #FFF4E0; color: #8A5A00; }
.status-badge--addressed { background: #EAF5EB; color: var(--green); }
.status-badge--completed { background: #EAF5EB; color: var(--green); }
tr.is-archived { opacity: 0.6; }
tr.is-archived .admin-member-name { color: var(--charcoal); }

.admin-notes-cell {
  max-width: 260px;
  white-space: normal;
  color: var(--charcoal);
}

.admin-subhead {
  font-family: var(--font-head);
  letter-spacing: 0.5px;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.admin-add-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 1.25rem;
}
.admin-add-form .form-group { margin-bottom: 1.25rem; }
.admin-add-form-full { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .admin-toolbar { flex-direction: column; align-items: stretch; }
}

/* ---------- Profile photo upload (My Account -> Personal Info) ---------- */
.photo-upload-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.dash-avatar--lg {
  width: 88px;
  height: 88px;
  font-size: 1.75rem;
}
.photo-upload-actions { flex: 1; min-width: 200px; }
.photo-upload-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.photo-upload-actions .field-hint { margin-top: 0.6rem; margin-bottom: 0; }

/* =========================================================
   Modern Dashboard Redesign — Account & Admin only
   Everything below is scoped under .dash-page (the <main>
   wrapper for /account/ and /admin/) so the marketing site
   keeps its original look. Same color tokens throughout —
   only depth, motion, and layout get a refresh.
   ========================================================= */
:root {
  --red-soft: rgba(211, 47, 47, 0.10);
  --red-soft-2: rgba(211, 47, 47, 0.18);
  --green-soft: rgba(46, 125, 50, 0.12);
  --black-soft: rgba(17, 17, 17, 0.04);
  --dash-ease: cubic-bezier(.22, .8, .32, 1);
  --dash-radius: 20px;
  --dash-radius-sm: 12px;
  --dash-shadow-sm: 0 1px 2px rgba(17,17,17,0.05), 0 1px 1px rgba(17,17,17,0.04);
  --dash-shadow-md: 0 10px 30px rgba(17,17,17,0.08), 0 2px 8px rgba(17,17,17,0.05);
  --dash-shadow-lg: 0 20px 48px rgba(17,17,17,0.14), 0 4px 12px rgba(17,17,17,0.06);
  --dash-shadow-glow: 0 10px 24px rgba(211,47,47,0.28);
}

@keyframes dashFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dashPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

/* ---------- Shell background ---------- */
.dash-page .dash-main { background: var(--offwhite); }
.dash-page .dash-panel.is-active { animation: dashFadeIn .35s var(--dash-ease); }

/* ---------- Sidebar ---------- */
.dash-page .dash-sidebar {
  background: linear-gradient(190deg, #1a1a1a 0%, #0d0d0d 65%, #000 100%);
  box-shadow: var(--dash-shadow-lg);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.dash-page .dash-brand { position: relative; }
.dash-page .dash-profile {
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--dash-radius-sm);
  box-shadow: var(--dash-shadow-sm);
}
.dash-page .dash-avatar {
  background: linear-gradient(135deg, #ff5252, var(--red) 55%, var(--red-dark));
  box-shadow: 0 0 0 3px rgba(255,255,255,0.10), var(--dash-shadow-sm);
}
.dash-page .dash-nav-link {
  position: relative;
  border-radius: var(--dash-radius-sm);
  transition: background .2s var(--dash-ease), color .2s var(--dash-ease), transform .15s var(--dash-ease), padding-left .2s var(--dash-ease);
}
.dash-page .dash-nav-link .bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  transition: background .2s var(--dash-ease), color .2s var(--dash-ease);
}
.dash-page .dash-nav-link:hover { background: rgba(255,255,255,0.08); transform: translateX(2px); }
.dash-page .dash-nav-link:hover .bi { background: rgba(255,255,255,0.12); }
.dash-page .dash-nav-link.is-active {
  background: linear-gradient(135deg, #ff5252, var(--red) 60%, var(--red-dark));
  box-shadow: var(--dash-shadow-glow);
}
.dash-page .dash-nav-link.is-active .bi { background: rgba(255,255,255,0.22); color: #fff; }
.dash-page .dash-sidebar-bottom .btn {
  transition: background .2s var(--dash-ease), color .2s var(--dash-ease), transform .15s var(--dash-ease), box-shadow .2s var(--dash-ease);
}
.dash-page .dash-sidebar-bottom .btn:hover { box-shadow: var(--dash-shadow-sm); }
.dash-page .dash-backdrop { backdrop-filter: blur(2px); }

/* ---------- Topbar ---------- */
.dash-page .dash-topbar {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -1.25rem -1.25rem 1.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--card-border);
}
.dash-page .dash-menu-toggle {
  border-radius: var(--dash-radius-sm);
  transition: box-shadow .2s var(--dash-ease), transform .15s var(--dash-ease);
}
.dash-page .dash-menu-toggle:hover { box-shadow: var(--dash-shadow-sm); transform: translateY(-1px); }

/* ---------- Cards ---------- */
.dash-page .dash-card,
.dash-page .auth-card {
  position: relative;
  border-color: rgba(17,17,17,0.07);
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow-md);
  overflow: hidden;
  transition: box-shadow .25s var(--dash-ease);
}
.dash-page .dash-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #ff5252 60%, var(--red-dark));
  opacity: .9;
}
.dash-page .dash-card-title { gap: 0.85rem; }
.dash-page .dash-card-title .bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--red-soft);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.dash-page .account-info-row { border-color: rgba(17,17,17,0.06); transition: background .15s var(--dash-ease); }
.dash-page .account-info-row:hover { background: var(--black-soft); }

/* Nested calendar/slot panel loses its own card chrome so it doesn't
   double up inside the outer dash-card on the Schedule Appointment tab. */
.dash-page .dash-card .scheduler-layout .cal,
.dash-page .dash-card .scheduler-layout .slot-panel {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

/* ---------- Buttons (dash-scoped polish) ---------- */
.dash-page .btn-primary {
  background: linear-gradient(135deg, #ff5252, var(--red) 55%, var(--red-dark));
  box-shadow: 0 6px 16px rgba(211,47,47,0.22);
}
.dash-page .btn-primary:hover { background: linear-gradient(135deg, var(--red), var(--red-dark)); box-shadow: 0 10px 26px rgba(211,47,47,0.3); }
.dash-page .btn-outline:hover { box-shadow: var(--dash-shadow-sm); }
.dash-page .btn-danger-outline:hover { box-shadow: 0 10px 22px rgba(183,28,28,0.22); }

/* ---------- Forms ---------- */
.dash-page input[type="text"],
.dash-page input[type="email"],
.dash-page input[type="tel"],
.dash-page input[type="password"],
.dash-page input[type="date"],
.dash-page select,
.dash-page textarea {
  border-color: rgba(17,17,17,0.10);
  border-radius: var(--dash-radius-sm);
  transition: border-color .15s var(--dash-ease), box-shadow .15s var(--dash-ease);
}
.dash-page input:focus,
.dash-page select:focus,
.dash-page textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}
.dash-page .form-alert { border-radius: var(--dash-radius-sm); }
.dash-page .cancel-confirm,
.dash-page .admin-confirm { border-radius: var(--dash-radius-sm); }

/* ---------- Toolbar ---------- */
.dash-page .admin-toolbar input[type="search"] {
  border-color: rgba(17,17,17,0.10);
  border-radius: var(--dash-radius-sm);
  padding-left: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23888' stroke-width='1.6'%3E%3Ccircle cx='7' cy='7' r='5.25'/%3E%3Cline x1='11' y1='11' x2='14.5' y2='14.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.85rem center;
  background-size: 16px;
  transition: border-color .15s var(--dash-ease), box-shadow .15s var(--dash-ease);
}
.dash-page .admin-toolbar input[type="search"]:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}
.dash-page .admin-toolbar select {
  border-color: rgba(17,17,17,0.10);
  border-radius: var(--dash-radius-sm);
}

/* ---------- Table ---------- */
.dash-page .admin-table th {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}
.dash-page .admin-table tr td { border-color: rgba(17,17,17,0.06); }
.dash-page .admin-table tbody tr {
  transition: background .15s var(--dash-ease);
}
.dash-page .admin-table tbody tr:hover { background: var(--black-soft); }
.dash-page .admin-row-avatar {
  background: linear-gradient(135deg, #ff5252, var(--red) 55%, var(--red-dark));
  box-shadow: 0 0 0 2px rgba(255,255,255,0.6), var(--dash-shadow-sm);
}
.dash-page .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.3px;
}
.dash-page .status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ---------- Overview stat cards ---------- */
.dash-page .dash-grid .dash-card { transition: box-shadow .25s var(--dash-ease), transform .25s var(--dash-ease); }
.dash-page .dash-grid .dash-card:hover { box-shadow: var(--dash-shadow-lg); transform: translateY(-2px); }

/* ---------- Loading state ---------- */
.dash-page .session-check { animation: dashPulse 1.6s ease-in-out infinite; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .dash-page .dash-topbar { margin: -1.25rem -1.25rem 1.25rem; }
}

/* =========================================================
   Site-Wide Modernization
   Extends the same depth/motion language to every page (not
   just /account and /admin) — same colors, same layout/grid
   structure everywhere, just richer shadows, rounder corners,
   gradient accents, and a little motion. --radius-card,
   --radius-btn and --shadow-card were already bumped up in the
   :root tokens above, so plenty of this comes free; the rules
   below cover the things a bare token swap can't (buttons,
   focus states, hover motion, gradients).
   ========================================================= */

/* ---------- Buttons (every page) ---------- */
.btn {
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.06);
  transition: background .2s var(--dash-ease), color .2s var(--dash-ease),
    transform .15s var(--dash-ease), box-shadow .2s var(--dash-ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(17, 17, 17, 0.14); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(17, 17, 17, 0.12); }
.btn-primary {
  background: linear-gradient(135deg, #ff5252, var(--red) 55%, var(--red-dark));
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.24);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 12px 28px rgba(211, 47, 47, 0.32);
}
.btn-secondary { background: linear-gradient(135deg, #2c2c2c, var(--black)); }
.btn-secondary:hover { background: #000; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32); }
.btn-outline:hover { box-shadow: 0 8px 18px rgba(17, 17, 17, 0.14); }

/* ---------- Forms (every page) ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
select,
textarea {
  border-color: rgba(17, 17, 17, 0.10);
  transition: border-color .15s var(--dash-ease), box-shadow .15s var(--dash-ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

/* ---------- Header / Nav ---------- */
.site-header { box-shadow: 0 1px 0 rgba(17, 17, 17, 0.03), 0 6px 20px rgba(17, 17, 17, 0.03); }
.nav-links a { transition: color .15s var(--dash-ease); }

/* ---------- Cards (feature cards on marketing pages) ---------- */
.card {
  border-color: rgba(17, 17, 17, 0.07);
  transition: box-shadow .25s var(--dash-ease), transform .25s var(--dash-ease);
}
.card:hover { box-shadow: var(--dash-shadow-lg); transform: translateY(-3px); }
.card--black { border-color: rgba(255, 255, 255, 0.08); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--red-soft);
  font-size: 1.5rem;
}
.card--black .card-icon { background: rgba(211, 47, 47, 0.18); }
.category-card:hover { box-shadow: var(--dash-shadow-lg); transform: translateY(-3px); }

/* ---------- Comparison / Pricing ---------- */
.comparison-col { transition: box-shadow .25s var(--dash-ease); }
.price-card { transition: box-shadow .25s var(--dash-ease), transform .25s var(--dash-ease); }
.price-card:hover { box-shadow: var(--dash-shadow-lg); transform: translateY(-3px); }
.price-card.featured { box-shadow: var(--dash-shadow-lg); }

/* ---------- Founding banner / CTA band ---------- */
.founding-banner,
.cta-band {
  background: linear-gradient(135deg, #ff5252, var(--red) 55%, var(--red-dark));
  box-shadow: 0 16px 40px rgba(211, 47, 47, 0.22);
}

/* ---------- Modal ---------- */
.modal-backdrop { backdrop-filter: blur(3px); }
.modal { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }

/* ---------- Footer ---------- */
.site-footer { position: relative; }
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #ff5252 60%, var(--red-dark));
}
.footer-links a,
.site-footer .footer-contact a { transition: color .15s var(--dash-ease); }

/* ---------- Floating / mobile CTA ---------- */
.floating-cta:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); }

/* =========================================================
   Calendar & Time-Slot Picker
   Shared by the home page booking widget and the account
   "Schedule Appointment" tab.
   ========================================================= */
.cal, .slot-panel { transition: box-shadow .25s var(--dash-ease); }
.cal-header h3, .slot-panel h3 { letter-spacing: 0.5px; }

.cal-nav-btn {
  border-radius: 50%;
  transition: background .15s var(--dash-ease), border-color .15s var(--dash-ease),
    color .15s var(--dash-ease), box-shadow .15s var(--dash-ease), transform .15s var(--dash-ease);
}
.cal-nav-btn:hover:not(:disabled) {
  background: var(--red-soft);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.18);
  transform: translateY(-1px);
}

.cal-weekdays span { letter-spacing: 0.5px; text-transform: uppercase; font-size: 0.75rem; opacity: 0.6; }

.cal-grid { gap: 6px; }
.cal-day {
  border-radius: var(--dash-radius-sm);
  font-weight: 700;
  transition: background .15s var(--dash-ease), color .15s var(--dash-ease),
    box-shadow .2s var(--dash-ease), transform .15s var(--dash-ease);
}
.cal-day:hover:not(:disabled) {
  border-color: transparent;
  background: var(--red-soft);
  color: var(--red);
  transform: translateY(-1px);
}
.cal-day.is-today {
  box-shadow: inset 0 0 0 2px var(--charcoal);
  background: var(--offwhite);
}
.cal-day.is-selected, .cal-day.is-selected:hover {
  background: linear-gradient(135deg, #ff5252, var(--red) 55%, var(--red-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.35);
  transform: translateY(-1px) scale(1.04);
}
.cal-day .cal-dot { bottom: 8px; width: 4px; height: 4px; }

.slot-list { gap: 0.6rem; }
.slot-btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: background .15s var(--dash-ease), color .15s var(--dash-ease),
    border-color .15s var(--dash-ease), box-shadow .15s var(--dash-ease), transform .15s var(--dash-ease);
}
.slot-btn:hover {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
  transform: translateY(-1px);
}
.slot-btn.is-selected {
  background: linear-gradient(135deg, #ff5252, var(--red) 55%, var(--red-dark));
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.32);
}
.booking-selected-summary {
  border-left: 3px solid var(--red);
}

/* =========================================================
   Profile Photo — Facebook-style avatar
   ========================================================= */
.dash-avatar--lg {
  width: 104px;
  height: 104px;
  font-size: 2rem;
  box-shadow: 0 0 0 4px var(--white), var(--dash-shadow-md);
}
.avatar-edit-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.avatar-edit-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5252, var(--red) 55%, var(--red-dark));
  border: 3px solid var(--white);
  box-shadow: var(--dash-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s var(--dash-ease), box-shadow .15s var(--dash-ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M6.5 3.5A1.5 1.5 0 0 1 8 2h0a1.5 1.5 0 0 1 1.5 1.5V4h1.086a1.5 1.5 0 0 1 1.06.44l.415.414A1.5 1.5 0 0 0 13.12 5H14a1.5 1.5 0 0 1 1.5 1.5v6A1.5 1.5 0 0 1 14 14H2a1.5 1.5 0 0 1-1.5-1.5v-6A1.5 1.5 0 0 1 2 5h.879a1.5 1.5 0 0 0 1.06-.44l.415-.414A1.5 1.5 0 0 1 5.415 3.6l.086-.1H6.5z'/%3E%3Ccircle cx='8' cy='9' r='2.6' fill='%23111'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
}
.avatar-edit-badge:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35); }

/* Bigger, photo-friendly avatars on the admin Manage Users table —
   large enough to actually recognize a face, without dominating the row. */
.admin-row-avatar {
  width: 44px;
  height: 44px;
  font-size: 1rem;
  box-shadow: 0 0 0 2px var(--white), 0 1px 3px rgba(17, 17, 17, 0.15);
}

/* =========================================================
   Bold Editorial Redesign — v3.0
   Same color tokens, same HTML structure and IDs everywhere
   (nothing here touches markup or JS hooks) — this refines
   typography, hero layout, and nav toward a punchier,
   editorial-magazine feel across every page.
   ========================================================= */
:root {
  --fs-hero: clamp(2.75rem, 5vw + 1.5rem, 5.5rem);
  --fs-section: clamp(2.25rem, 3.2vw + 0.75rem, 3.75rem);
}

h1, h2, h3, h4 { letter-spacing: 0.3px; }

/* ---- Hero: left-aligned, editorial ---- */
.hero { text-align: left; padding-block: clamp(4rem, 9vw, 8rem); }
.hero::before {
  background: linear-gradient(100deg, rgba(0,0,0,.8) 0%, rgba(17,17,17,.6) 45%, rgba(17,17,17,.35) 100%);
}
.hero > .container { max-width: 980px; }
.hero h1 { max-width: 900px; letter-spacing: 0; }
.hero-sub { margin: 0 0 2rem; text-align: left; }
.hero-actions { justify-content: flex-start; }

/* ---- Section titles: a touch bigger, tighter ---- */
.section-title { letter-spacing: 0.3px; }

/* ---- Nav: pill capsule links ---- */
.nav-links {
  background: var(--offwhite);
  border-radius: 999px;
  padding: 6px;
  gap: 2px;
}
.nav-links a { padding: 0.55rem 0.9rem; border-radius: 999px; }
.nav-links a:hover, .nav-links a.active { background: var(--black); color: #fff; }
.nav-cta .btn.btn-primary { border-radius: 999px; }
@media (max-width: 1024px) {
  .nav-links { border-radius: 0; padding: 1rem 1.25rem 1.5rem; }
  .nav-links a:hover, .nav-links a.active { background: none; color: var(--red); }
}

/* ---- Buttons: fully rounded, bolder tracking ---- */
.btn { border-radius: 999px; letter-spacing: 1px; }

/* ---- Marketing cards: slightly larger radius ---- */
.card, .price-card, .comparison-col { border-radius: 24px; }


/* ---------- Admin: block-off-specific-times checkbox grid ---------- */
.blackout-slot-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.blackout-slot-time-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: 999px;
  font-size: var(--fs-small);
  color: var(--charcoal);
  cursor: pointer;
  user-select: none;
}
.blackout-slot-time-option input { width: 15px; height: 15px; margin: 0; }
.blackout-slot-time-option:has(input:checked) {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ---------- Modal calendar (admin blackout-times date picker +
   member scheduling modal) ---------- */
.modal--schedule { max-width: 480px; }
.modal--schedule .cal { margin-top: 0.5rem; }
.modal--schedule .slot-panel { margin-top: 1.25rem; }

.blackout-date-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Member scheduler: modal trigger + selected summary ---------- */
.scheduler-trigger {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.booking-selected-summary {
  font-weight: 700;
  color: var(--charcoal);
  background: var(--offwhite);
  border-radius: var(--radius-card);
  padding: 0.6rem 1rem;
}
#open-schedule-modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Checkout page (payment/index.html) ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 460px);
  gap: 2rem;
  align-items: start;
  justify-content: center;
  max-width: 900px;
  margin-inline: auto;
}
@media (max-width: 800px) {
  .checkout-layout { grid-template-columns: 1fr; }
}
.order-summary {
  background: var(--offwhite);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: var(--card-pad);
}
.order-summary-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.3rem 1rem;
  font-weight: 700;
  font-size: var(--fs-card-head);
  color: var(--charcoal);
  margin-top: 0.5rem;
}
.order-summary-row > span:first-child { flex: 1 1 auto; min-width: 0; }
.order-summary-row > span:last-child { flex: 0 0 auto; white-space: nowrap; }
.order-summary-sub { color: var(--charcoal); opacity: 0.75; font-size: var(--fs-small); margin: 0.2rem 0 1rem; }
.order-summary-meta { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.order-summary-meta li { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.3rem 0; font-size: var(--fs-small); }
.order-summary-meta .bi-check-circle-fill { color: var(--green); flex-shrink: 0; }
.order-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--card-border);
  padding-top: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--red);
}
.checkout-card { max-width: none; }
.card-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}
.payment-secure-note {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--charcoal);
  opacity: 0.75;
  margin-top: 0.85rem;
}
.payment-secure-note .bi { color: var(--green); margin-right: 0.3rem; }
#payment-submit .bi-lock-fill { margin-right: 0.4rem; }
