/* styles.css
   Jess Nails — Global Theme (Modern / Fashion / Salon)
   Palette: Black + White + Red (logo-inspired)
*/

/* =========================
   Theme Tokens
========================= */
:root {
  --bg: #0b0b0f;
  --bg-2: #11111a;

  --card: rgba(255, 255, 255, 0.06);
  --card-2: rgba(255, 255, 255, 0.1);

  --text: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.72);

  --red: #e11d2e;
  --red-2: #ff3b4d;

  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);

  --radius: 18px;
  --radius-2: 26px;

  --font-body: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --container: 1100px;
}

/* =========================
   Base / Reset
========================= */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(
        900px 500px at 15% 10%,
        rgba(225, 29, 46, 0.18),
        transparent 55%
      ),
    radial-gradient(
        800px 500px at 85% 25%,
        rgba(255, 59, 77, 0.1),
        transparent 60%
      ),
    linear-gradient(180deg, var(--bg) 0%, #07070a 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Optional: consistent selection */
::selection {
  background: rgba(225, 29, 46, 0.35);
  color: var(--text);
}

/* =========================
   Navbar (Global)
========================= */
#siteNavbar {
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-shell {
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(11, 11, 15, 0.72);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--text);
  opacity: 0.92;
  border: 1px solid transparent;
  transition: 180ms ease;
  font-weight: 500;
  font-size: 14px;
}

.nav-link:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  opacity: 1;
}

.nav-cta {
  border: 1px solid rgba(225, 29, 46, 0.55);
  background: linear-gradient(
    180deg,
    rgba(225, 29, 46, 0.95),
    rgba(225, 29, 46, 0.75)
  );
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 14px 35px rgba(225, 29, 46, 0.18);
  transition: transform 160ms ease, filter 160ms ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.nav-cta:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  opacity: 0.9;
  margin: 5px 0;
  border-radius: 2px;
}

/* Hide menu links on auth pages (logo only) */
body[data-page="auth"] .nav-toggle,
body[data-page="auth"] .nav-links {
  display: none !important;
}

/* =========================
   Buttons (Global)
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  font-weight: 600;
  transition: 180ms ease;
  background: transparent;
  color: var(--text);
}

.btn-primary {
  border-color: rgba(225, 29, 46, 0.55);
  background: linear-gradient(
    180deg,
    rgba(225, 29, 46, 0.95),
    rgba(225, 29, 46, 0.75)
  );
  box-shadow: 0 18px 45px rgba(225, 29, 46, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn:focus-visible,
.nav-cta:focus-visible,
.nav-link:focus-visible,
.social-btn:focus-visible,
.mini-link:focus-visible {
  outline: 3px solid rgba(225, 29, 46, 0.35);
  outline-offset: 3px;
  border-radius: 999px;
}

/* =========================
   Hero
========================= */
.hero {
  padding: 54px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.hero-kicker {
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.03;
  margin: 0 0 16px;
}

.hero-card {
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.04)
  );
  border-radius: var(--radius-2);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-text {
  margin: 0 0 16px;
  color: rgba(245, 245, 247, 0.92);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  font-size: 14px;
  transition: 180ms ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.social-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(225, 29, 46, 0.16);
  border: 1px solid rgba(225, 29, 46, 0.35);
  color: var(--text);
  font-weight: 800;
}

/* Portrait */
.hero-media {
  display: grid;
  place-items: center;
}

.portrait-wrap {
  position: relative;
  width: min(420px, 100%);
  border-radius: var(--radius-2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: scale(1.02);
}

.portrait-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(225, 29, 46, 0.35),
    transparent 55%
  );
  pointer-events: none;
}

/* =========================
   Showcase / Mosaic
========================= */
.showcase {
  padding: 26px 0 64px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  margin: 0;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 260px 260px;
  gap: 14px;
}

.tile {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  position: relative;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
  filter: contrast(1.04) saturate(1.06);
}

.tile:hover img {
  transform: scale(1.04);
}

.tile-a {
  grid-row: 1 / span 2;
}
.tile-b {
  grid-column: 2;
  grid-row: 1;
}
.tile-c {
  grid-column: 2;
  grid-row: 2;
}

/* =========================
   Auth Page (Login)
========================= */
.auth {
  padding: 56px 0 72px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.auth-card {
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.04)
  );
  border-radius: var(--radius-2);
  padding: 18px;
  box-shadow: var(--shadow);
}

.auth-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 6px;
}

.auth-subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.form {
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  font-size: 13px;
  color: rgba(245, 245, 247, 0.82);
  margin: 0 0 6px;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
  transition: 180ms ease;
}

.field input::placeholder {
  color: rgba(245, 245, 247, 0.55);
}

.field input:focus {
  border-color: rgba(225, 29, 46, 0.45);
  box-shadow: 0 0 0 4px rgba(225, 29, 46, 0.12);
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.msg {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 245, 247, 0.92);
  line-height: 1.5;
}

.msg.show {
  display: block;
}

.msg.error {
  border-color: rgba(225, 29, 46, 0.45);
  background: rgba(225, 29, 46, 0.12);
}

.mini-link {
  color: rgba(245, 245, 247, 0.86);
  border-bottom: 1px dashed rgba(245, 245, 247, 0.35);
  padding-bottom: 2px;
  transition: 180ms ease;
  font-weight: 600;
}

.mini-link:hover {
  color: rgba(245, 245, 247, 1);
  border-bottom-color: rgba(245, 245, 247, 0.7);
}

.auth-side {
  border-radius: var(--radius-2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  position: relative;
  min-height: 420px;
}

.auth-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.08);
  transform: scale(1.02);
}

.auth-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
        600px 380px at 25% 25%,
        rgba(225, 29, 46, 0.28),
        transparent 55%
      ),
    linear-gradient(180deg, rgba(11, 11, 15, 0.15), rgba(11, 11, 15, 0.65));
  pointer-events: none;
}

/* =========================
   Footer
========================= */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(11, 11, 15, 0.8);
  padding: 18px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-link {
  color: rgba(245, 245, 247, 0.8);
  font-weight: 600;
  transition: 180ms ease;
}

.footer-link:hover {
  color: rgba(245, 245, 247, 1);
}

/* =========================
   Responsive
========================= */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: 260px 220px 220px;
  }

  .tile-a {
    grid-row: auto;
  }
  .tile-b {
    grid-column: auto;
    grid-row: auto;
  }
  .tile-c {
    grid-column: auto;
    grid-row: auto;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-side {
    min-height: 260px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    margin: 0 auto;
    width: min(var(--container), calc(100% - 40px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border-radius: var(--radius-2);
    border: 1px solid var(--line);
    background: rgba(11, 11, 15, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link,
  .nav-cta {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   Pages / Panels (Profile)
========================= */
.page {
  padding: 34px 0 72px;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 40px);
  margin: 0 0 6px;
}

.page-subtitle {
  margin: 0;
  color: var(--muted);
}

.page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border-radius: var(--radius-2);
  padding: 16px;
  box-shadow: var(--shadow);
}

.panel-hidden {
  display: none;
}

.panel-head {
  margin-bottom: 10px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 4px;
}

.panel-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.placeholder {
  border: 1px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 14px;
  color: rgba(245,245,247,0.85);
}

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

/* =========================
   Admin Directory
========================= */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.admin-card {
  display: block;
  padding: 16px;
  border-radius: var(--radius-2);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.admin-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(225,29,46,0.35);
}

.admin-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,245,247,0.9);
  background: rgba(225,29,46,0.14);
  border: 1px solid rgba(225,29,46,0.28);
}

.admin-card-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.admin-card-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

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

/* =========================
   Inputs: Select (global)
========================= */
.select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  outline: none;
  transition: 180ms ease;
}

.select:focus {
  border-color: rgba(225, 29, 46, 0.45);
  box-shadow: 0 0 0 4px rgba(225, 29, 46, 0.12);
}

/* =========================
   Clients Page
========================= */
.clients-controls {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 12px;
}

.clients-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.muted-text {
  color: var(--muted);
  font-weight: 600;
}

.pager {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.client-card {
  text-align: left;
  width: 100%;
  border-radius: var(--radius-2);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  padding: 14px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  color: var(--text);
}

.client-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(225,29,46,0.35);
}

.client-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.client-name {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 800;
  font-size: 16px;
}

.client-meta {
  display: grid;
  gap: 8px;
}

.client-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 10px;
}

.client-meta-label {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.client-meta-value {
  font-weight: 700;
  font-size: 13px;
}

.empty {
  margin-top: 14px;
  border: 1px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 14px;
  color: rgba(245,245,247,0.85);
}

/* Role badges */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.14);
}

.role-client {
  background: rgba(245,245,247,0.65);
  color: #0b0b0f;
  border-color: rgba(245,245,247,0.35);
}

.role-admin {
  background: rgba(225,29,46,0.90);
  color: #ffffff;
  border-color: rgba(225,29,46,0.35);
}

@media (max-width: 920px) {
  .clients-controls {
    grid-template-columns: 1fr;
  }
  .clients-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Modal
========================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 1000;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  width: min(980px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: var(--radius-2);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(11,11,15,0.92);
  box-shadow: 0 20px 70px rgba(0,0,0,0.65);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.modal-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 24px;
}

.modal-subtitle {
  margin: 0;
  color: var(--muted);
}

.modal-close {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.modal-body {
  padding: 14px 16px 16px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.info-label {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.info-value {
  font-weight: 700;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.appt-section {
  margin-top: 10px;
}

.appt-title {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,245,247,0.85);
}

.appt-list {
  display: grid;
  gap: 10px;
}

.appt-row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.appt-when {
  color: rgba(245,245,247,0.92);
  font-weight: 800;
  font-size: 13px;
}

.appt-what {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

/* Status badge (modal) */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.14);
}

.status-active {
  background: rgba(255,255,255,0.10);
  color: rgba(245,245,247,0.92);
  border-color: rgba(255,255,255,0.18);
}

.status-disabled {
  background: rgba(225,29,46,0.22);
  color: rgba(245,245,247,0.95);
  border-color: rgba(225,29,46,0.35);
}

/* Optional pill on cards */
.pill-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(225,29,46,0.22);
  border: 1px solid rgba(225,29,46,0.35);
  color: rgba(245,245,247,0.95);
}

/* Toggle row */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.toggle-title {
  font-weight: 800;
  font-size: 14px;
}

.toggle-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
}

/* Switch */
.switch {
  position: relative;
  width: 54px;
  height: 32px;
  flex: 0 0 auto;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  transition: 180ms ease;
}

.slider:before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 4px;
  top: 3px;
  border-radius: 999px;
  background: rgba(245,245,247,0.92);
  transition: 180ms ease;
}

.switch input:checked + .slider {
  background: rgba(225,29,46,0.55);
  border-color: rgba(225,29,46,0.55);
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
  background: #fff;
}

/* =========================
   Availability Page — Base + Mobile Responsive
========================= */

/* Layout */
.avail-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-top: 10px;
  align-items: start;
}

/* Calendar header */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cal-title-wrap {
  text-align: center;
  flex: 1;
  min-width: 240px;
}

.cal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.cal-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

/* Weekdays */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 10px 0 8px;
  color: rgba(245, 245, 247, 0.85);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Calendar grid */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

/* Calendar day */
.cal-day {
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  min-height: 96px;
  touch-action: manipulation;
}

.cal-day:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(225, 29, 46, 0.28);
}

/* Day types (color coding) */
.cal-day.cal-none {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.cal-day.cal-has {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.25);
}

/* Selected ring */
.cal-day.cal-selected {
  outline: 3px solid rgba(225, 29, 46, 0.35);
  outline-offset: 2px;
}

/* Disabled/past/out-of-month */
.cal-day:disabled,
.cal-day.cal-past {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.cal-day.cal-out {
  opacity: 0.18;
  cursor: not-allowed;
  transform: none;
}

/* Day content */
.cal-day-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.cal-num {
  font-weight: 900;
  font-size: 14px;
}

.cal-count {
  font-weight: 800;
  font-size: 11px;
  color: rgba(245, 245, 247, 0.85);
  white-space: nowrap;
}

.cal-chip {
  margin-top: 10px;
  font-weight: 800;
  font-size: 12px;
  color: rgba(245, 245, 247, 0.86);
  line-height: 1.3;
}

/* Legend */
.cal-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dot-green {
  background: rgba(34, 197, 94, 0.6);
  border-color: rgba(34, 197, 94, 0.6);
}

.dot-gray {
  background: rgba(255, 255, 255, 0.14);
}

.dot-dark {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.dot-outline {
  background: transparent;
  border-color: rgba(225, 29, 46, 0.55);
}

/* Selected dates box */
.avail-selected {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
}

.selected-title {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.86);
  margin-bottom: 6px;
}

.selected-list {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Two-column inputs inside availability page */
.grid-2-tight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Slot controls */
.slot-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.slot-title {
  font-weight: 900;
  font-size: 14px;
}

.slot-subtitle {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  margin-top: 4px;
}

.slot-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Slots */
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.slot-chip {
  border-radius: 999px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  transition: 160ms ease;
  touch-action: manipulation;
  user-select: none;
}

.slot-chip.slot-on {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.26);
}

.slot-chip.slot-off {
  background: rgba(225, 29, 46, 0.16);
  border-color: rgba(225, 29, 46, 0.26);
  opacity: 0.88;
}

/* DOW selector in modal */
.dow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dow-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
  font-size: 13px;
  color: rgba(245, 245, 247, 0.92);
}

/* Nice disabled look for Exclude All results */
.slot-chip:focus-visible,
.cal-day:focus-visible {
  outline: 3px solid rgba(225, 29, 46, 0.35);
  outline-offset: 3px;
}

/* =========================
   Tablet and down
========================= */
@media (max-width: 920px) {
  .avail-layout {
    grid-template-columns: 1fr;
  }

  /* Calendar header becomes stacked */
  .cal-head {
    align-items: stretch;
  }

  .cal-title-wrap {
    text-align: left;
    min-width: 0;
  }

  .cal-head .btn {
    width: 100%;
  }

  /* Denser calendar */
  .cal-weekdays {
    gap: 6px;
    font-size: 11px;
  }

  .calendar {
    gap: 6px;
  }

  .cal-day {
    min-height: 86px;
    padding: 10px;
  }

  .cal-num {
    font-size: 13px;
  }

  .cal-count {
    font-size: 10px;
  }

  .cal-chip {
    margin-top: 8px;
    font-size: 11px;
  }

  .cal-legend {
    gap: 10px;
    font-size: 12px;
  }
}

/* =========================
   Phone
========================= */
@media (max-width: 520px) {
  body[data-page="availability"] .page { padding: 22px 0 56px; }



  /* Month header buttons side-by-side, title centered on top */
  .cal-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cal-title-wrap {
    grid-column: 1 / -1;
    order: -1;
    text-align: center;
  }

  .cal-title {
    font-size: 20px;
  }

  .cal-subtitle {
    font-size: 12px;
  }

  /* Compact weekdays */
  .cal-weekdays {
    gap: 5px;
    font-size: 10px;
  }

  /* Compact calendar cells with solid tap area */
  .calendar {
    gap: 5px;
  }

  .cal-day {
    min-height: 78px;
    padding: 8px;
    border-radius: 14px;
  }

  .cal-day-top {
    gap: 6px;
  }

  .cal-num {
    font-size: 12px;
  }

  .cal-count {
    font-size: 10px;
  }

  .cal-chip {
    margin-top: 6px;
    font-size: 10px;
  }

  /* Selected dates area */
  .avail-selected {
    padding: 10px;
  }

  /* Time inputs stack */
  .grid-2-tight {
    grid-template-columns: 1fr;
  }

  /* Slot header stacks, actions full width */
  .slot-head {
    align-items: stretch;
  }

  .slot-actions {
    width: 100%;
  }

  .slot-actions .btn {
    width: 100%;
  }

  /* Bigger slot chips for tapping */
  .slots {
    gap: 8px;
  }

  .slot-chip {
    padding: 12px 14px;
    font-size: 13px;
  }

  /* Modal padding and scrolling */
  .modal {
    max-height: 90vh;
  }

  .modal-head {
    padding: 14px;
  }

  .modal-body {
    padding: 12px 14px 14px;
  }

  /* DOW wrap */
  .dow {
    gap: 8px;
  }

  .dow-item {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* =========================
   Services Page — Ordering + Mobile Preview
========================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Each service item holds the card + action row + reorder controls */
.service-item {
  border-radius: var(--radius-2);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto;
}

.service-item.drag-over {
  border-color: rgba(225,29,46,0.40);
  box-shadow: 0 0 0 4px rgba(225,29,46,0.12), 0 16px 50px rgba(0,0,0,0.35);
}

.service-item.dragging {
  opacity: 0.6;
}

/* Main clickable card */
.service-card {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 14px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  cursor: pointer;
}

.service-thumb {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  height: 80px;
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.06);
}

.service-thumb-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.service-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.service-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.service-title {
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
}

.service-tags {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.service-desc {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 10px;
  font-weight: 800;
  font-size: 13px;
}

.service-meta-label {
  color: var(--muted);
  margin-right: 8px;
}

.service-meta-right {
  text-align: right;
}

.service-muted {
  color: var(--muted);
  font-weight: 800;
  margin-left: 8px;
}

/* Action row */
.service-actions {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.service-action-btn {
  padding: 10px 12px;
}

/* Reorder row (hidden unless reorder mode) */
.service-reorder {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.service-item.reorder-on .service-reorder {
  display: flex;
}

.service-item.reorder-on .service-actions {
  display: none;
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  font-size: 18px;
  cursor: grab;
  user-select: none;
}

.service-item.reorder-on {
  cursor: grab;
}

.reorder-btns {
  display: none;
  gap: 10px;
}

.reorder-btn {
  padding: 10px 12px;
}

/* Tablet */
@media (max-width: 920px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile: compact "Service Preview" list style */
@media (max-width: 520px) {
  .service-card {
    grid-template-columns: 72px 1fr;
    padding: 12px;
    gap: 10px;
  }

  .service-thumb {
    height: 66px;
    border-radius: 14px;
  }

  .service-title {
    font-size: 15px;
  }

  .service-desc {
    -webkit-line-clamp: 1;
  }

  .service-meta {
    font-size: 12px;
  }

  /* On mobile, show reorder Up/Down buttons (easier than drag) */
  .reorder-btns {
    display: inline-flex;
  }

  .drag-handle {
    display: none;
  }
}

/* =========================
   Booking Page — Accordion + Selection UI
========================= */

.booking-accordion {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.booking-panel {
  padding: 0; /* header handles padding */
  overflow: hidden;
}

.booking-panel-head {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 16px;
  cursor: pointer;

  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.booking-step {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.booking-head-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.booking-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  font-weight: 800;
  font-size: 13px;
  color: rgba(245,245,247,0.92);
}

.booking-caret {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  font-weight: 900;
  opacity: 0.9;
}

.booking-panel-body {
  padding: 0 16px 16px;
  display: none;
}

.booking-panel.is-open .booking-panel-body {
  display: block;
}

.booking-panel.is-open .booking-caret {
  transform: rotate(180deg);
}

/* Actions row */
.booking-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 14px;
}

.booking-totals {
  display: grid;
  gap: 8px;
}

.booking-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 10px 12px;
  border-radius: 14px;
  min-width: 260px;
}

.booking-total-label {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.booking-total-value {
  font-weight: 900;
  font-size: 13px;
}

/* =========================
   Services selection
========================= */

.booking-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.booking-service-card {
  width: 100%;
  text-align: left;
  border-radius: var(--radius-2);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
  overflow: hidden;

  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  color: var(--text);
}

.booking-service-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(225,29,46,0.35);
}

.booking-service-card.is-selected {
  outline: 3px solid rgba(225,29,46,0.35);
  outline-offset: 2px;
  border-color: rgba(225,29,46,0.35);
}

.booking-service-thumb {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  height: 110px;
}

.booking-service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.06);
}

.booking-service-thumb-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.booking-service-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.booking-service-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.booking-service-title {
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
}

.booking-service-check {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  font-weight: 900;
}

.booking-service-desc {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;

  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.booking-service-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 10px;
  font-weight: 800;
  font-size: 13px;
}

.booking-price-wrap {
  text-align: right;
  display: grid;
  gap: 4px;
}

.booking-price-line {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  justify-content: flex-end;
}

.booking-price-old {
  color: rgba(245,245,247,0.68);
  text-decoration: line-through;
  font-weight: 800;
}

.booking-price-new {
  font-weight: 900;
}

.booking-promo-exp {
  color: var(--red);
  font-weight: 900;
  font-size: 12px;
}

/* =========================
   Step 2 — Calendar + times
========================= */

.booking-two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  margin-top: 6px;
  align-items: start;
}

.booking-mini-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.booking-mini-title {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,245,247,0.9);
}

.booking-mini-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
}

/* =========================
   Booking Page — Calendar + Times + Review + Policy Modal (COMPLETE)
   Paste this after your existing Booking section (or replace the truncated part)
========================= */

/* Continue from your truncated .booking-weekdays rule */
.booking-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 10px 0 8px;
  color: rgba(245, 245, 247, 0.85);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 21-day calendar grid */
.booking-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

/* Leading blanks to align weekday */
.booking-cal-blank {
  min-height: 92px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  opacity: 0.55;
}

/* Day cell */
.booking-cal-day {
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  min-height: 92px;
  touch-action: manipulation;
}

.booking-cal-day:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(225, 29, 46, 0.28);
}

.booking-cal-day.has {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.25);
}

.booking-cal-day.none {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.booking-cal-day.selected {
  outline: 3px solid rgba(225, 29, 46, 0.35);
  outline-offset: 2px;
  border-color: rgba(225, 29, 46, 0.35);
}

.booking-cal-day:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Day content */
.booking-cal-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.booking-cal-num {
  font-weight: 900;
  font-size: 14px;
}

.booking-cal-badge {
  font-weight: 800;
  font-size: 11px;
  color: rgba(245, 245, 247, 0.85);
  white-space: nowrap;
}

.booking-cal-sub {
  margin-top: 10px;
  font-weight: 800;
  font-size: 12px;
  color: rgba(245, 245, 247, 0.86);
  line-height: 1.3;
}

/* Legend */
.booking-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

/* Times grid */
.booking-times {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.booking-time-chip {
  border-radius: 999px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  transition: 160ms ease;
  touch-action: manipulation;
  user-select: none;

  display: grid;
  gap: 2px;
  min-width: 132px;
  text-align: center;
}

.booking-time-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(225, 29, 46, 0.28);
}

.booking-time-chip.selected {
  outline: 3px solid rgba(225, 29, 46, 0.35);
  outline-offset: 2px;
  border-color: rgba(225, 29, 46, 0.35);
  background: rgba(225, 29, 46, 0.14);
}

.booking-time-main {
  font-weight: 900;
  letter-spacing: 0.02em;
}

.booking-time-sub {
  color: rgba(245, 245, 247, 0.72);
  font-weight: 800;
  font-size: 11px;
}

/* Review layout */
.booking-review-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 12px;
  margin-top: 6px;
  align-items: start;
}

.booking-selected-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.booking-selected-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.booking-selected-name {
  font-weight: 900;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.booking-selected-meta {
  display: grid;
  gap: 4px;
  text-align: right;
  font-weight: 800;
  font-size: 12px;
  color: rgba(245, 245, 247, 0.86);
  white-space: nowrap;
}

.booking-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 12px 0;
}

/* Appointment box */
.booking-appt-box {
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.booking-appt-when {
  font-weight: 900;
  font-size: 14px;
}

.booking-appt-sub {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
}

.booking-note {
  margin: 12px 2px 0;
  color: rgba(245, 245, 247, 0.78);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.5;
}

/* Policy modal content */
.policy-box {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  color: rgba(245, 245, 247, 0.88);
  line-height: 1.55;
  font-weight: 700;
  font-size: 13px;
  white-space: pre-wrap; /* preserves your POLICY_TEXT newlines */
  overflow-wrap: anywhere;
}

.policy-ack {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.policy-check {
  display: flex;
  align-items: start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  color: rgba(245, 245, 247, 0.9);
  font-weight: 700;
  line-height: 1.4;
}

.policy-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

/* Focus states (match global) */
.booking-panel-head:focus-visible,
.booking-service-card:focus-visible,
.booking-cal-day:focus-visible,
.booking-time-chip:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid rgba(225, 29, 46, 0.35);
  outline-offset: 3px;
}

/* =========================
   Booking Responsive
========================= */
@media (max-width: 920px) {
  .booking-services-grid {
    grid-template-columns: 1fr;
  }

  .booking-two-col {
    grid-template-columns: 1fr;
  }

  .booking-review-grid {
    grid-template-columns: 1fr;
  }

  .booking-total-row {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 520px) {
  body[data-page="booking"] .page {
    padding: 22px 0 56px;
  }

  .booking-panel-head {
    padding: 14px;
  }

  .booking-panel-body {
    padding: 0 14px 14px;
  }

  .booking-weekdays,
  .booking-calendar {
    gap: 5px;
  }

  .booking-cal-day {
    min-height: 78px;
    padding: 8px;
    border-radius: 14px;
  }

  .booking-cal-blank {
    min-height: 78px;
    border-radius: 14px;
  }

  .booking-cal-num {
    font-size: 12px;
  }

  .booking-cal-badge {
    font-size: 10px;
  }

  .booking-cal-sub {
    margin-top: 6px;
    font-size: 10px;
  }

  .booking-times {
    gap: 8px;
  }

  .booking-time-chip {
    padding: 12px 14px;
    font-size: 13px;
    min-width: 0;
    flex: 1 1 calc(50% - 8px); /* 2-up chips when possible */
  }

  .booking-actions .btn {
    width: 100%;
  }

  .booking-actions {
    align-items: stretch;
  }

  .booking-head-right {
    gap: 8px;
  }

  .booking-chip {
    font-size: 12px;
    padding: 8px 10px;
  }

  .booking-caret {
    width: 36px;
    height: 36px;
    border-radius: 14px;
  }
}

/* =========================
   Confirmation Page
========================= */
.confirm-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px;
  align-items: start;
  margin-top: 12px;
}

.confirm-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.confirm-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.confirm-row.confirm-muted {
  opacity: 0.92;
}

.confirm-label {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.confirm-value {
  font-weight: 900;
  font-size: 13px;
  overflow-wrap: anywhere;
  text-align: right;
}

.confirm-services {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.confirm-service-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.confirm-service-name {
  font-weight: 900;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.confirm-service-meta {
  display: grid;
  gap: 4px;
  text-align: right;
  font-weight: 800;
  font-size: 12px;
  color: rgba(245,245,247,0.86);
  white-space: nowrap;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 14px;
}

@media (max-width: 920px) {
  .confirm-grid {
    grid-template-columns: 1fr;
  }
  .confirm-row {
    grid-template-columns: 1fr;
  }
  .confirm-value {
    text-align: left;
  }
  .confirm-actions .btn {
    width: 100%;
  }
}

/* =========================
   Appointments Page
========================= */

.appts-panel {
  padding: 16px;
}

.appts-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.appts-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  font-weight: 900;
}

.appts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.appt-card {
  text-align: left;
  width: 100%;
  border-radius: var(--radius-2);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  padding: 14px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  color: var(--text);
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
}

.appt-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(225,29,46,0.35);
}

.appt-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.appt-name {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 900;
  font-size: 16px;
}

.appt-meta {
  display: grid;
  gap: 8px;
}

.appt-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 10px;
}

.appt-meta-label {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.appt-meta-value {
  font-weight: 800;
  font-size: 13px;
  text-align: right;
}

/* Status badge base */
.appt-badge,
.appt-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.14);
  white-space: nowrap;
}

/* Requested color codes:
   Upcoming=green
   Cancelled=black
   Completed - Balance Due=red
   Completed - Paid=gray
*/

/* Upcoming (green) */
.appt-badge-upcoming {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.35);
  color: rgba(245,245,247,0.95);
}

/* Cancelled (black) */
.appt-badge-cancelled {
  background: rgba(0, 0, 0, 0.65);
  border-color: rgba(255,255,255,0.12);
  color: rgba(245,245,247,0.95);
}

/* Balance due (red) */
.appt-badge-balance {
  background: rgba(225, 29, 46, 0.22);
  border-color: rgba(225, 29, 46, 0.35);
  color: rgba(245,245,247,0.98);
}

/* Paid (gray) */
.appt-badge-paid {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255,255,255,0.18);
  color: rgba(245,245,247,0.95);
}

/* Modal service list */
.appt-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.appt-services {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.appt-service-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.appt-service-name {
  font-weight: 900;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.appt-service-price {
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0.95;
}

.appt-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .appts-grid {
    grid-template-columns: 1fr;
  }
  .appt-meta-value {
    text-align: left;
  }
}

@media (max-width: 520px) {
  body[data-page="appointments"] .page {
    padding: 22px 0 56px;
  }

  .appts-panel {
    padding: 14px;
  }

  .appt-actions .btn {
    width: 100%;
  }
}

/* =========================
   Appointments Page
========================= */

.appointments-layout {
  display: grid;
  gap: 14px;
}

.appointments-panel {
  padding: 16px;
}

.appointments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.appt-card {
  text-align: left;
  width: 100%;
  border-radius: var(--radius-2);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  padding: 14px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  color: var(--text);
}

.appt-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(225,29,46,0.35);
}

.appt-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.appt-client {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 900;
  font-size: 16px;
}

.appt-meta {
  display: grid;
  gap: 8px;
}

.appt-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 10px;
}

.appt-meta-label {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.appt-meta-value {
  font-weight: 900;
  font-size: 13px;
}

/* Status badges (cards + modal) */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.14);
  white-space: nowrap;
}

.status-upcoming {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.35);
  color: rgba(245,245,247,0.95);
}

.status-cancelled {
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.14);
  color: rgba(245,245,247,0.92);
}

.status-balance {
  background: rgba(225,29,46,0.22);
  border-color: rgba(225,29,46,0.35);
  color: rgba(245,245,247,0.95);
}

.status-paid {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.18);
  color: rgba(245,245,247,0.92);
}

/* Modal action row spacing */
#modalActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

/* =========================
   Upload Page (photos.html / upload.html)
   Paste this at the END of styles.css
========================= */

/* Page wrapper */
body[data-page="upload"] .page {
  padding: 34px 0 72px;
}

/* Two column layout (Albums / Videos on left, Album Photos on right) */
.upload-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: start;
  margin-top: 10px;
}

/* Stack on tablet */
@media (max-width: 920px) {
  .upload-layout {
    grid-template-columns: 1fr;
  }
}

/* Card blocks */
.upload-card {
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.04)
  );
  border-radius: var(--radius-2);
  padding: 16px;
  box-shadow: var(--shadow);
}

.upload-card + .upload-card {
  margin-top: 14px;
}

/* Section header row */
.upload-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.upload-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.upload-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.45;
}

.upload-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.upload-actions .btn {
  padding: 10px 12px;
}

/* Info chip (selected album label) */
.upload-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
  font-size: 13px;
  color: rgba(245, 245, 247, 0.92);
}

/* Message (uploadMsg) - works with JS setMsg */
#uploadMsg {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 245, 247, 0.92);
  line-height: 1.5;
  display: none; /* shown when text exists via .show below */
}

#uploadMsg.success {
  display: block;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.14);
}

#uploadMsg.error {
  display: block;
  border-color: rgba(225, 29, 46, 0.45);
  background: rgba(225, 29, 46, 0.12);
}

/* Optional: if you add .show in HTML/JS */
#uploadMsg.show {
  display: block;
}

/* Forms */
.upload-form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.upload-form .field input[type="file"] {
  padding: 10px 12px;
}

/* Smaller buttons in dense rows */
.btn-sm {
  padding: 10px 12px;
  font-size: 13px;
}

/* Albums list */
#albumsList {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

/* Album cards (used by upload.js) */
.media-card {
  border-radius: var(--radius-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 12px;
  padding: 12px;
  align-items: center;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.media-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(225, 29, 46, 0.35);
}

.media-card.active {
  outline: 3px solid rgba(225, 29, 46, 0.35);
  outline-offset: 2px;
  border-color: rgba(225, 29, 46, 0.35);
}

/* Drag states */
.media-card.dragging,
.media-photo-card.dragging,
.video-card.dragging {
  opacity: 0.6;
}

.media-thumb {
  height: 72px;
  width: 72px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.media-card-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.media-card-title {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-card-meta {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.media-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Empty states */
#albumsEmpty,
#photosEmpty,
#videosEmpty {
  margin-top: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 14px;
  color: rgba(245, 245, 247, 0.85);
}

/* Photos grid */
#photosGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 920px) {
  #photosGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  #photosGrid {
    grid-template-columns: 1fr;
  }
}

/* Photo card */
.media-photo-card {
  border-radius: var(--radius-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: grid;
  grid-template-rows: 160px auto;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.media-photo-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(225, 29, 46, 0.35);
}

.media-photo-thumb {
  width: 100%;
  height: 160px;
  background: rgba(255, 255, 255, 0.05);
}

.media-photo-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.media-photo-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.media-photo-actions {
  display: grid;
  gap: 10px;
}

/* Move row */
.media-move {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

/* Inputs used in upload.js title editing */
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
  transition: 180ms ease;
}

.input::placeholder {
  color: rgba(245, 245, 247, 0.55);
}

.input:focus {
  border-color: rgba(225, 29, 46, 0.45);
  box-shadow: 0 0 0 4px rgba(225, 29, 46, 0.12);
}

/* Videos list */
#videosList {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.video-card {
  grid-template-columns: 72px 1fr;
  align-items: start;
}

.video-card .media-thumb {
  height: 56px;
  width: 56px;
  border-radius: 14px;
}

/* Video title row (input + save button) */
.media-video-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

/* File input polish (works with your .field styles too) */
input[type="file"] {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  color: rgba(245, 245, 247, 0.9);
}

/* Buttons disabled state (consistent) */
.btn:disabled,
.nav-cta:disabled,
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Modal: album delete radio row (optional helper) */
.album-delete-options {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.radio-row {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  user-select: none;
}

.radio-row input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.radio-row strong {
  font-weight: 900;
}

.radio-row .muted {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
}

/* Mobile tweaks */
@media (max-width: 520px) {
  body[data-page="upload"] .page {
    padding: 22px 0 56px;
  }

  .media-card {
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
  }

  .media-card-actions {
    justify-content: flex-start;
  }

  .media-card-actions .btn {
    width: 100%;
  }

  .media-photo-title {
    grid-template-columns: 1fr;
  }

  .media-move {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Gallery Page (public)
========================= */
body[data-page="gallery"] .page {
  padding: 34px 0 72px;
}

.gallery-albums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.gallery-album-card {
  text-align: left;
  width: 100%;
  border-radius: var(--radius-2);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  padding: 12px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  color: var(--text);
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
  overflow: hidden;
  display: grid;
  gap: 12px;
}

.gallery-album-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(225,29,46,0.35);
}

.gallery-album-cover {
  height: 160px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.gallery-album-cover.is-empty {
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--muted);
}

.gallery-album-body {
  display: grid;
  gap: 6px;
}

.gallery-album-title {
  font-weight: 900;
  font-size: 16px;
}

.gallery-album-meta {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.gallery-detail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gallery-kicker {
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.gallery-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.gallery-photo-card {
  width: 100%;
  text-align: left;
  border-radius: var(--radius-2);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
  color: var(--text);
}

.gallery-photo-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(225,29,46,0.35);
}

.gallery-photo-thumb {
  height: 170px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.05);
}

.gallery-photo-cap {
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.gallery-photo-title {
  font-weight: 900;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 2000;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  width: min(1100px, 100%);
  max-height: 90vh;
  border-radius: var(--radius-2);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(11,11,15,0.92);
  box-shadow: 0 20px 70px rgba(0,0,0,0.65);
  overflow: hidden;
  padding: 14px;
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}

.lightbox-caption {
  margin-top: 10px;
  color: rgba(245,245,247,0.92);
  font-weight: 800;
  font-size: 13px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
  display: grid;
  place-items: center;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* Responsive */
@media (max-width: 920px) {
  .gallery-albums {
    grid-template-columns: 1fr;
  }
  .gallery-photos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  body[data-page="gallery"] .page {
    padding: 22px 0 56px;
  }
  .gallery-photos {
    grid-template-columns: 1fr;
  }
  .lightbox-nav {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
}

/* =========================
   Videos Page (public)
========================= */
body[data-page="videos"] .page {
  padding: 34px 0 72px;
}

.videos-olist {
  margin: 12px 0 0;
  padding-left: 22px; /* keep ordered list numbering */
  display: grid;
  gap: 12px;
}

.videos-item {
  list-style: decimal;
}

.videos-card {
  border-radius: var(--radius-2);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
  overflow: hidden;
  padding: 14px;
}

.videos-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.videos-num {
  min-width: 42px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.videos-title {
  margin: 0;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.videos-player-wrap {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.videos-player {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  max-height: 72vh; /* prevents huge video on desktop */
}

.videos-player.is-disabled {
  opacity: 0.55;
}

.videos-note {
  padding: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* Responsive */
@media (max-width: 920px) {
  .videos-title {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  body[data-page="videos"] .page {
    padding: 22px 0 56px;
  }

  .videos-olist {
    padding-left: 18px;
  }

  .videos-card {
    padding: 12px;
  }

  .videos-head {
    gap: 10px;
  }

  .videos-num {
    min-width: 38px;
    height: 32px;
    padding: 0 10px;
  }
}

.videos-title-wrap {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.videos-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.videos-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(245,245,247,0.92);
}

.videos-badge-warn {
  border-color: rgba(225,29,46,0.40);
  background: rgba(225,29,46,0.14);
}
/* Deposit badge (modal) */
.deposit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.deposit-badge.deposit-on {
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
}

.deposit-badge.deposit-off {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
}

/* Card pill (Deposit Waived) */
.waiver-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* =========================
   Appointment Modal (profile.html)
   HTML uses: <div class="overlay" id="apptOverlay"> ... </div>
========================= */

/* Hidden by default */
#apptOverlay.overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;                 /* IMPORTANT: hidden on page load */
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Your JS should add/remove .open */
#apptOverlay.overlay.open {
  display: flex;
}

/* Modal card */
#apptOverlay .modal {
  width: min(980px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: var(--radius-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 11, 15, 0.92);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.65);
}

/* Header */
#apptOverlay .modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 11, 15, 0.92);
}

/* Close button (your HTML uses class="icon-btn") */
#apptOverlay .icon-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#apptOverlay .icon-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
}

#apptOverlay .icon-btn:focus-visible {
  outline: 3px solid rgba(225, 29, 46, 0.35);
  outline-offset: 3px;
}

/* Mobile */
@media (max-width: 520px) {
  #apptOverlay.overlay {
    padding: 12px;
  }

  #apptOverlay .modal {
    max-height: 92vh;
  }

  #apptOverlay .modal-head {
    padding: 14px;
  }
}
