:root {
  --font: 'Lora', serif;
  --black: #000;
  --white: #fff;
  --gold: #eec160;
  --text-dark: #111;
  --text-light: #f4f4f4;
  --bg-light: #fff;
  --bg-dark: #111;
  --transition: 0.5s ease;
  --navbar-height: 72px; /* Default navbar height for desktop */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  margin: 0;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--black);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--black);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  flex-wrap: nowrap;
  margin-bottom: 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 45px;
  margin-right: 10px;
  background: white;
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  line-height: 1.2;
}

.logo-text .name {
  font-size: 1.4rem;
  font-weight: 600;
}

.logo-text .location {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 500;
}

.desktop-title {
  display: block;
}

.mobile-title {
  display: none;
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--white);
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--gold);
  color: var(--black);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
}

/* === Mobile Nav === */
@media (max-width: 768px) {
    body {
        overflow: default;
    }
  :root {
    --navbar-height: 60px; /* Adjusted navbar height for mobile */
  }

  .navbar {
    flex-direction: row;
    align-items: center;
    padding: 10px 5%;
  }

  .logo {
    flex-grow: 1;
    display: flex;
    align-items: center;
  }

  .logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
  }

  .location {
    font-size: 0.9rem;
    margin-top: 2px;
  }

  .hamburger {
    display: block;
    margin-left: 12px;
    align-self: center;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--black);
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    z-index: 999;
  }

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

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px;
  }
}

/* === Hero Carousel === */
.hero-carousel {
  position: relative;
  overflow: hidden;
  margin-top: var(--navbar-height);
}

.carousel {
  position: relative;
  width: 100%;
  height: 60vh;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  opacity: 0;
  transition: opacity var(--transition);
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel-book-button {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.book-button {
  background: var(--gold);
  color: var(--black);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
  display: inline-block;
  box-shadow: 0 0 10px rgba(238, 193, 96, 0.6);
}

.book-button:hover {
  background: #f0d58d;
  color: var(--black);
  box-shadow: 0 0 15px rgba(238, 193, 96, 0.8);
}

@media (max-width: 768px) {
  .carousel {
    height: 55vh;
  }

  .carousel-slide {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%; /* Center vertically and horizontally */
  }

  .carousel-book-button {
    bottom: 30px;
  }

  .book-button {
    font-size: 0.9rem;
    padding: 10px 20px;
    box-shadow: 0 0 8px rgba(238, 193, 96, 0.6);
  }

  .book-button:hover {
    box-shadow: 0 0 12px rgba(238, 193, 96, 0.8);
  }
}

/* === Services === */
.services {
  background: var(--bg-light);
  margin-top: 0;
  padding-top: 0;
}

.services h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.services-header {
  text-align: center;
  margin-bottom: 40px;
}

.features-and-photo {
  margin-bottom: 40px;
}

/* Social Strip */
.social-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  background-color: #f5f5f5;
  font-size: 1rem;
  color: var(--text-dark);
  border-radius: 8px;
  margin-bottom: 15px;
}

.social-strip a {
  margin: 0 5px;
  color: var(--text-dark);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-strip a:hover {
  color: var(--gold);
}

@media (max-width: 768px) {
  .social-strip {
    font-size: 0.9rem;
    padding: 8px 0;
  }

  .social-strip a {
    font-size: 1rem;
  }
}

/* Desktop Layout */
@media (min-width: 769px) {
  .features-and-photo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 5px; /* Reduced for less vertical spacing */
    justify-items: center;
    align-items: center;
  }

  .features .feature-tile:nth-child(1) { grid-column: 1; grid-row: 1; }
  .features .feature-tile:nth-child(2) { grid-column: 1; grid-row: 2; }
  .features .feature-tile:nth-child(3) { grid-column: 1; grid-row: 3; }
  .offer-photo { grid-column: 2; grid-row: 1 / span 3; }
  .features .feature-tile:nth-child(4) { grid-column: 3; grid-row: 1; }
  .features .feature-tile:nth-child(5) { grid-column: 3; grid-row: 2; }
  .features .feature-tile:nth-child(6) { grid-column: 3; grid-row: 3; }
}

/* Narrower Screens (including Mobile) */
@media (max-width: 768px) {
  .features-and-photo {
    display: flex;
    flex-direction: column;
  }

  .features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; /* Increased for more vertical spacing */
    margin-bottom: 20px;
  }

  .offer-photo {
    text-align: center;
  }
}

@media (min-width: 769px) {
  .services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
  }

  .service-category {
    flex: 1 1 calc(50% - 20px);
    margin-bottom: 40px;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 20px;
    break-inside: avoid;
  }
}

@media (max-width: 768px) {
  .services-grid {
    display: block;
  }

  .service-category {
    margin-bottom: 30px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 20px;
  }
}

.service-category h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.service-category ul {
  list-style: none;
}

.service-category li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
}

.combinations li {
  border: none;
}

.offer-detail {
  margin-top: 10px;
  color: var(--gold);
  font-weight: 500;
  font-style: italic;
}

/* === Features Tiles === */
.features {
  display: contents; /* Allows direct grid placement of children in desktop layout */
}

.feature-tile {
  background: #f8f8f8;
  color: var(--black);
  padding: 10px 15px; /* Compact padding */
  border-radius: 12px;
  text-align: center;
  font-size: 0.9rem; /* Compact font size */
  font-weight: 500;
  border: 1px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
  max-width: 300px;
}

.feature-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.offer-photo {
  max-width: 500px;
  margin: 0 auto;
}

.photo-wrapper {
  position: relative;
}

.offer-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.photo-label {
  text-align: center;
  color: var(--black);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .feature-tile {
    font-size: 0.85rem;
    padding: 8px 12px;
    max-width: 100%;
  }

  .offer-photo {
    max-width: 100%;
    padding: 0 10px;
  }
}

/* === Products === */
.products {
  background: var(--bg-light);
}

.products h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.product-collage {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-end;
  padding: 0 20px;
}

.product-item {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
  margin: 0 auto;
}

.product-collage img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
  transition: transform var(--transition);
}

.product-item:hover img {
  transform: scale(1.05);
}

.product-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  text-align: center;
  font-family: var(--font);
  width: 100%;
}

@media (max-width: 768px) {
  .product-collage {
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
  }

  .product-item {
    max-width: 100%;
    width: 100%;
  }

  .product-collage img {
    max-width: 200px;
    width: 100%;
  }
}

/* === About === */
.about {
  background: #d7e0e7;
  color: black;
}

.about h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
}

/* === Contact === */
.contact {
  background: var(--bg-light);
}

.contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-details {
  flex: 1 1 300px;
}

.contact-details p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.contact-map {
  flex: 2 1 400px;
  min-height: 300px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* === Footer === */
footer {
  background: var(--black);
  color: var(--gold);
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}
/* ===================== Day-view scheduler ===================== */
#day-view {
  position: relative;
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--white, #fff);
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
}
/* Stylists header lives in its own strip ABOVE the vertical scroller, so the
   time rows always begin right below it and never scroll underneath it. */
#dv-head {
  flex: 0 0 auto;
  overflow: hidden;
  border-bottom: 1px solid #e0e0e0;
  background: var(--white, #fff);
}
#day-view-body {
  flex: 1 1 0%;
  min-height: 0;
  overflow: auto;
  position: relative;
}
.dv-inner {
  min-width: calc(64px + var(--dv-cols, 1) * var(--dv-col-min, 150px));
}
.dv-message {
  padding: 48px 24px;
  text-align: center;
  color: #666;
  font-size: 1rem;
}

/* Touch-only usage hint for the day scheduler (hidden on mouse/desktop). */
.dv-touch-hint { display: none; }
@media (pointer: coarse) {
  .dv-touch-hint {
    display: block;
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 0.76rem;
    color: #8a6d1e;
    background: #fbf6e9;
    border-bottom: 1px solid #eee;
    text-align: center;
  }
}

/* header row (in the #dv-head strip, not scrolled vertically) */
.dv-header {
  display: flex;
  background: var(--white, #fff);
}
.dv-corner {
  width: 64px;
  flex: 0 0 64px;
  border-right: 1px solid #eee;
  background: var(--white, #fff);
  z-index: 6;
}
/* horizontally-scrolled wrapper that mirrors the body's scrollLeft */
.dv-head-cols {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
}
.dv-head-col {
  flex: 1 1 0;
  min-width: var(--dv-col-min, 150px);
  padding: 8px 6px;
  border-right: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.dv-head-col.dv-head-off { opacity: 0.5; }
.dv-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--gold, #eec160);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
}
.dv-head-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.dv-head-sub {
  font-size: 0.72rem;
  color: #888;
}

/* body grid */
.dv-body {
  display: flex;
  position: relative;
}
.dv-timecol {
  width: 64px;
  flex: 0 0 64px;
  position: sticky;
  left: 0;
  z-index: 4;
  background: var(--white, #fff);
  border-right: 1px solid #eee;
}
.dv-time-label {
  position: absolute;
  right: 6px;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: #999;
  white-space: nowrap;
}
.dv-col {
  flex: 1 1 0;
  min-width: var(--dv-col-min, 150px);
  position: relative;
  border-right: 1px solid #f0f0f0;
  /* Let the browser own touch panning; the JS only takes over for a deliberate
     press-and-hold drag (see beginTouchInteraction). Prevents swipe→drag misreads. */
  touch-action: pan-x pan-y;
  /* hour lines + faint slot lines, offset to clear the top padding */
  background-image:
    repeating-linear-gradient(to bottom, #e8e8e8 0, #e8e8e8 1px, transparent 1px, transparent var(--dv-hour-px, 64px)),
    repeating-linear-gradient(to bottom, #f4f4f4 0, #f4f4f4 1px, transparent 1px, transparent var(--dv-slot-px, 16px));
  background-position: 0 var(--dv-top, 0px), 0 var(--dv-top, 0px);
  cursor: pointer;
}
.dv-col[data-working="1"]:hover {
  background-color: rgba(238, 193, 96, 0.06);
}
.dv-col-off {
  cursor: not-allowed;
  background-image:
    repeating-linear-gradient(to bottom, #e8e8e8 0, #e8e8e8 1px, transparent 1px, transparent var(--dv-hour-px, 64px));
  background-position: 0 var(--dv-top, 0px);
}

/* greyed unavailable areas */
.dv-off-overlay {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  background-color: rgba(150, 150, 150, 0.14);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(150, 150, 150, 0.10) 0,
    rgba(150, 150, 150, 0.10) 6px,
    transparent 6px,
    transparent 12px
  );
}

/* appointment tiles */
.dv-appt {
  position: absolute;
  left: 3px;
  right: 3px;
  border-radius: 5px;
  padding: 3px 6px;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  font-size: 0.74rem;
  line-height: 1.15;
  color: #1c1c1c;
  background: rgba(238, 193, 96, 0.85);
  border-left: 3px solid var(--gold, #eec160);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.dv-appt:hover { filter: brightness(0.96); }
.dv-appt-time { font-weight: 700; font-size: 0.7rem; }
.dv-appt-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-appt-svc { color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-status-requested { background: #fff3d6; border-left-color: #e0a106; }
.dv-status-booked,
.dv-status-confirmed { background: #dff0e3; border-left-color: #2e9e57; }
.dv-status-completed { background: #e7e9ee; border-left-color: #8a93a6; color: #555; }

/* toolbar additions */
.cal-view-toggle { display: inline-flex; border: 1px solid #d6d6d6; border-radius: 6px; overflow: hidden; }
.cal-view-btn {
  border: none;
  background: var(--white, #fff);
  color: #444;
  padding: 7px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}
.cal-view-btn + .cal-view-btn { border-left: 1px solid #d6d6d6; }
.cal-view-btn.active { background: var(--gold, #eec160); color: #000; }
.cal-day-nav { display: inline-flex; align-items: center; gap: 8px; }
.cal-day-nav button {
  border: 1px solid #d6d6d6;
  background: var(--white, #fff);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
  color: #333;
}
.cal-day-nav button:hover { background: #f3f3f3; }
input.cal-date-field {
  font-weight: 600;
  color: #222;
  background: var(--white, #fff);
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  cursor: pointer;
  padding: 6px 10px;
  min-width: 200px;
  margin: 0;
  width: auto;
  text-align: left;
}
.calendar-toolbar { gap: 12px; flex-wrap: wrap; align-items: center; }
.cal-stylist-filter { display: inline-flex; align-items: center; gap: 6px; }
.cal-stylist-label { font-size: 0.8rem; font-weight: 600; color: #666; }
.cal-stylist-select {
  border: 1px solid #d6d6d6;
  background: var(--white, #fff);
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #333;
  cursor: pointer;
  max-width: 200px;
}
.optional-hint { color: #999; font-weight: 400; font-size: 0.8em; }
.tvboard-frame {
  width: 100%;
  height: calc(100vh - 150px);
  min-height: 480px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #15171b;
  display: block;
}
.dv-create-meta { color: #666; margin: 4px 0 12px; font-size: 0.9rem; }
.dv-create-error { display: block; color: #c0392b; font-size: 0.85rem; margin: 6px 0; min-height: 1em; }
/* rendered availability slots + create-modal helpers */
.dv-create-times { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; max-height: 170px; overflow-y: auto; }
.time-slot {
  border: 1px solid #d6d6d6; background: #fff; color: #333; border-radius: 6px;
  padding: 7px 12px; cursor: pointer; font-size: 0.85rem; font-weight: 600;
}
.time-slot:hover { background: #f3f3f3; }
.time-slot.selected { background: var(--gold, #eec160); border-color: var(--gold, #eec160); color: #000; }
.dv-create-hint { display: none; font-size: 0.8rem; color: #2e7d32; margin: 2px 0 8px; }
.dv-create-customtime { display: flex; align-items: center; gap: 8px; font-weight: 400; margin-top: 8px; cursor: pointer; }
.dv-create-customtime input[type="checkbox"] { width: auto; }

/* ===================== Day-view: extra toolbar tools ===================== */
.cal-extra-tools { display: inline-flex; gap: 8px; align-items: center; }
.cal-tool-btn {
  border: 1px solid #d6d6d6;
  background: var(--white, #fff);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  font-size: 0.85rem;
}
.cal-tool-btn:hover { background: #f3f3f3; }

/* ===================== appointment tile additions ===================== */
.dv-appt-price { color: #333; font-size: 0.7rem; font-weight: 600; }
.dv-appt-online {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e7dd1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

/* ===================== blocked-time tiles ===================== */
.dv-block {
  position: absolute;
  left: 3px;
  right: 3px;
  border-radius: 5px;
  padding: 3px 6px;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  font-size: 0.72rem;
  color: #444;
  background: repeating-linear-gradient(45deg, #d9d9d9 0, #d9d9d9 7px, #cfcfcf 7px, #cfcfcf 14px);
  border-left: 3px solid #8a8a8a;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.dv-block i { margin-top: 1px; }
.dv-block-label { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* drag-to-create selection */
.dv-drag-sel {
  position: absolute;
  left: 3px;
  right: 3px;
  background: rgba(46, 125, 209, 0.18);
  border: 1px dashed #2e7dd1;
  border-radius: 5px;
  z-index: 3;
  pointer-events: none;
  font-size: 0.7rem;
  color: #1b4f86;
  padding: 2px 4px;
  font-weight: 700;
}

/* ===================== hover preview card ===================== */
.dv-hovercard {
  position: fixed;
  z-index: 1000;
  width: 260px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #222;
}
.dv-hc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.dv-hc-head strong { font-size: 0.95rem; }
.dv-hc-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.dv-hc-row i { width: 14px; text-align: center; color: #888; }
.dv-hc-muted { color: #999; }
.dv-hc-hint { margin-top: 8px; font-size: 0.72rem; color: #aaa; border-top: 1px solid #f0f0f0; padding-top: 6px; }

/* status pills */
.dv-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; text-transform: capitalize; }
.dv-pill-requested { background: #fff3d6; color: #9a6b00; }
.dv-pill-booked,
.dv-pill-confirmed { background: #dff0e3; color: #1f7a44; }
.dv-pill-completed { background: #e7e9ee; color: #555; }
.dv-pill-cancelled { background: #fbe0df; color: #b3261e; }
.dv-pill-no_show { background: #f3e1f7; color: #7a2f8a; }
.dv-pill-block { background: #e7e9ee; color: #555; }
.dv-pill-paid { background: #dff0e3; color: #1f7a44; }
.dv-pill-unpaid { background: #f1f1f1; color: #888; }

/* waitlist panel */
.dv-wl-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.dv-wl-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #eee; border-radius: 8px; padding: 8px 10px; }
.dv-wl-info { display: flex; flex-direction: column; gap: 1px; font-size: 0.85rem; }
.dv-wl-del { background: none; border: none; font-size: 1.3rem; line-height: 1; color: #b3261e; cursor: pointer; }
.dv-wl-add summary { cursor: pointer; font-weight: 600; color: var(--gold, #b8860b); margin-bottom: 8px; }
.dv-wl-add input, .dv-wl-add select { width: 100%; box-sizing: border-box; padding: 7px 9px; border: 1px solid #d6d6d6; border-radius: 6px; margin: 6px 0; }

/* ===================== side panel ===================== */
.dv-panel-overlay {
  position: fixed;
  /* start below the fixed global navbar so the panel header isn't hidden */
  inset: var(--navbar-height, 72px) 0 0 0;
  background: rgba(0, 0, 0, 0.28);
  display: none;
  justify-content: flex-end;
  z-index: 900;
}
.dv-panel-overlay.open { display: flex; }
.dv-panel {
  width: 380px;
  max-width: 92vw;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.18);
  animation: dv-slide-in 0.18s ease-out;
}
@keyframes dv-slide-in { from { transform: translateX(30px); opacity: 0.4; } to { transform: translateX(0); opacity: 1; } }
.dv-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #eee;
}
.dv-panel-head h3 { margin: 0 0 6px; font-size: 1.15rem; }
.dv-panel-close { background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: #888; }
.dv-panel-body { padding: 16px 20px; overflow-y: auto; flex: 1 1 auto; }
.dv-panel-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.dv-panel-row i { width: 18px; text-align: center; color: #999; margin-top: 3px; }
.dv-panel-row a { color: var(--gold, #b8860b); text-decoration: none; }
.dv-panel-note {
  margin-top: 12px;
  background: #fbf4e0;
  border: 1px solid #f0e3bd;
  color: #7a5b12;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
}
.dv-panel-note code { background: rgba(0,0,0,0.06); padding: 1px 4px; border-radius: 3px; }
.dv-panel-actions { padding: 14px 20px; border-top: 1px solid #eee; display: flex; flex-direction: column; gap: 10px; }
.dv-panel-actions .button { width: 100%; }
.dv-btn-ghost { background: #fff !important; color: #333 !important; border: 1px solid #d6d6d6 !important; }
.dv-btn-danger { background: #c0392b !important; color: #fff !important; }

/* ===================== block popover ===================== */
.dv-popover {
  position: fixed;
  z-index: 1100;
  width: 250px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 14px;
  font-size: 0.85rem;
}
.dv-pop-title { font-weight: 700; margin-bottom: 4px; }
.dv-pop-sub { color: #888; font-size: 0.78rem; margin-bottom: 10px; }
.dv-pop-label { display: block; font-size: 0.78rem; color: #666; margin-bottom: 4px; }
.dv-pop-input { width: 100%; box-sizing: border-box; padding: 7px 9px; border: 1px solid #d6d6d6; border-radius: 6px; margin: 0 0 12px; }
.dv-pop-actions { display: flex; gap: 8px; justify-content: flex-end; }
.dv-pop-actions .button { padding: 6px 14px; }

/* ===================== dropdowns (filters / settings) ===================== */
.dv-dropdown {
  position: fixed;
  z-index: 1100;
  width: 240px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 10px 12px;
  font-size: 0.85rem;
}
.dv-dd-title { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: #999; margin: 6px 0; }
.dv-dd-section { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.dv-dd-scroll { max-height: 220px; overflow-y: auto; }
.dv-check { display: flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; width: auto; font-weight: 500; }
.dv-check input { width: auto; margin: 0; }

/* ===================== requested-approval alert badges ===================== */
.dv-head-avatar-wrap { position: relative; display: inline-flex; }
.dv-head-alert {
  position: absolute;
  top: -3px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  box-sizing: border-box;
  background: #e3342f;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
}
.dv-appt-alert {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 15px;
  height: 15px;
  background: #e3342f;
  color: #fff;
  border-radius: 50%;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
  z-index: 3;
}
.dv-status-requested { box-shadow: inset 3px 0 0 #e3342f; }

/* ===================== side panel: status dropdown ===================== */
.dv-panel-field { display: block; margin: 0 0 14px; }
.dv-panel-field-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #999;
  margin-bottom: 5px;
  font-weight: 700;
}
.dv-panel-select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  font-size: 0.95rem;
  text-transform: capitalize;
  background: #fff;
  cursor: pointer;
}
.dv-panel-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
}
.dv-panel-times { display: flex; gap: 12px; }
.dv-panel-times .dv-panel-field { flex: 1; }

/* ===================== new-appointment placeholder row ===================== */
.dv-placeholder {
  position: absolute;
  left: 3px;
  right: 3px;
  border: 2px dashed var(--gold, #eec160);
  background: rgba(238, 193, 96, 0.18);
  border-radius: 5px;
  z-index: 2;
  pointer-events: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8a6d00;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2px 4px;
  box-sizing: border-box;
}

/* ===================== current-time indicator ===================== */
.dv-now-line {
  position: absolute;
  left: 64px; /* start at the columns, after the time gutter */
  right: 0;
  height: 0;
  border-top: 2px solid #b8860b; /* dark gold */
  z-index: 7;
  pointer-events: none;
}
.dv-now-dot {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b8860b;
}
.dv-now-label {
  position: absolute;
  top: -9px;
  right: 100%;
  margin-right: 4px;
  background: #b8860b;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

/* no-show ledger toggle inside the appointment side panel */
.dv-inline-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #555;
  cursor: pointer;
}
.dv-inline-toggle input { width: auto; margin: 0; }

/* searchable service combobox (admin appointment creator) */
.dv-combobox { position: relative; }
.dv-combobox-input { width: 100%; box-sizing: border-box; }
.dv-combobox-list {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  z-index: 10002;
}
.dv-combobox-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: none;
  background: #fff;
  padding: 9px 12px;
  cursor: pointer;
  font: inherit;
  color: #222;
}
.dv-combobox-opt:hover { background: #f5f5f5; }
.dv-combobox-price { color: #888; font-size: 0.85em; white-space: nowrap; }
.dv-combobox-empty { padding: 10px 12px; color: #777; font-size: 0.9rem; }
