/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
  /* Brand */
  --brand: #5a3c2e;
  --brand-hover: #4a2f24;
  --accent: #c8a15a;
  --accent-ink: #8a6420;
  --accent-soft: #faf3e6;

  /* Surfaces & text */
  --surface: #fff;
  --surface-soft: #faf6f2;
  --admin-bg: #f5f0eb;
  --ink: #2c2420;
  --ink-strong: #3b2b2b;
  --muted: #7a6a62;
  --line: #e0d5cc;

  /* Status */
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --info-soft: #eff6ff;

  /* Spacing, radii, shadows */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 64px rgba(43,32,28,0.28);

  /* Controls */
  --btn-h: 40px;
  --btn-h-sm: 34px;
  --input-h: 42px;
  --dialog-w: 460px;
  --focus-ring: 0 0 0 3px rgba(200,161,90,0.35);
  --dur: 0.18s;

  /* Admin aliases (kept so existing rules keep working) */
  --side-bg: var(--brand);
  --side-text: rgba(255,255,255,0.75);
  --side-active: #fff;
  --side-accent: var(--accent);
  --card-bg: var(--surface);
  --text-main: var(--ink-strong);
  --text-muted: var(--muted);
  --border-light: var(--line);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #2c2420;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(200,161,90,0.25); }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
main { animation: pageIn 0.45s ease-out; }

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

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: #3b2b2b;
  line-height: 1.3;
}

h1 { font-size: 3rem; letter-spacing: -0.5px; }
h2 { font-size: 2rem; letter-spacing: -0.3px; }
p  { font-size: 1rem; color: #544b47; line-height: 1.7; }

@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

/* ========================================
   REVEAL ON SCROLL
   ======================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ========================================
   HEADER
   ======================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #4a3f3a;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

nav a:hover { background: #f5f0eb; color: #3b2b2b; }
nav a.active { background: #f5f0eb; color: #3b2b2b; }

nav a.nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 9px 18px;
  font-weight: 600;
}
nav a.nav-cta:hover { background: #4a2f24; color: #fff; }

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: #5a3c2e;
  border: none;
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.nav-toggle:hover { background: #4a2f24; }
.nav-toggle:active { transform: scale(0.94); }

.nav-toggle-bar {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s ease;
}
.nav-toggle-bar:nth-child(1) { top: 15px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

/* Mobile off-canvas drawer */
.mobile-nav, .mobile-nav-overlay { display: none; }

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

  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(59, 43, 43, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
  }
  .mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }

  .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(82vw, 330px);
    background: #fff;
    z-index: 1002;
    transform: translateX(105%);
    transition: transform 0.32s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(59, 43, 43, 0.25);
    border-radius: 20px 0 0 20px;
  }
  .mobile-nav.open { transform: translateX(0); }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #f0e9e2;
  }
  .mobile-nav-logo { height: 38px; width: auto; }
  .mobile-nav-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ece4dd;
    background: #fff;
    color: #3b2b2b;
    font-size: 1.05rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    line-height: 1;
    transition: border-color 0.2s, color 0.2s;
  }
  .mobile-nav-close:hover { border-color: #c8a15a; color: #c8a15a; }

  .mobile-nav-list {
    list-style: none;
    padding: 14px 16px;
    flex: 1;
    overflow-y: auto;
  }
  .mobile-nav-list a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    color: #3b2b2b;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
  }
  .mobile-nav-list a:hover, .mobile-nav-list a.active { background: #faf6f2; color: #5a3c2e; }

  .mobile-nav-foot {
    padding: 16px 18px 24px;
    border-top: 1px solid #f0e9e2;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .mobile-nav-cta { justify-content: center; width: 100%; }
  .mobile-nav-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #5c4a43;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
  }
  .mobile-nav-phone i { color: #c8a15a; }
  .mobile-nav-social { display: flex; justify-content: center; gap: 12px; }
  .mobile-nav-social a {
    width: 36px;
    height: 36px;
    border: 1px solid #e8e0da;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #8a7a72;
    font-size: 0.85rem;
    transition: border-color 0.2s, color 0.2s;
  }
  .mobile-nav-social a:hover { border-color: #c8a15a; color: #c8a15a; }
}


/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--btn-h);
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font: 600 0.9rem/1 'Inter', sans-serif;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur), border-color var(--dur), color var(--dur), box-shadow var(--dur);
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn-sm { min-height: var(--btn-h-sm); padding: 0 14px; font-size: 0.82rem; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary, .btn-outline { background: var(--surface); color: var(--brand); border-color: #d6cdc6; }
.btn-secondary:hover, .btn-outline:hover { border-color: var(--brand); background: var(--surface-soft); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--admin-bg); color: var(--ink-strong); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--ok); color: #fff; }
.btn-success:hover { background: #15803d; }


/* ========================================
   CARDS (shared)
   ======================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border: 1px solid #e8e0da;
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(90,60,46,0.08); }

/* Service cards (sluzby.html) */

/* Skeleton loading for service cards */
.svc-skeleton {
  background: #fff;
  border: 1px solid #e8e0da;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 18px 18px;
}
.svc-skeleton::before {
  content: '';
  display: block;
  height: 200px;
  margin: 0 -18px 16px;
  background: linear-gradient(90deg, #f0ece8 25%, #e8e2dc 50%, #f0ece8 75%);
  background-size: 200% 100%;
  animation: svcShimmer 1.5s ease-in-out infinite;
  border-bottom: 1px solid #e8e0da;
}
.svc-skeleton .sk-line {
  height: 14px;
  border-radius: 6px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #f0ece8 25%, #e8e2dc 50%, #f0ece8 75%);
  background-size: 200% 100%;
  animation: svcShimmer 1.5s ease-in-out infinite;
}
.svc-skeleton .sk-line:first-child { width: 65%; }
.svc-skeleton .sk-line:nth-child(2) { width: 90%; }
.svc-skeleton .sk-line:nth-child(3) { width: 45%; }
@keyframes svcShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   SERVICE MODAL (public services page)
   ======================================== */
.service-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  background: rgba(43, 32, 28, 0.5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.service-modal-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
.service-modal {
  position: relative;
  display: flex; flex-direction: column;
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(8px);
  transition: transform 0.2s ease;
}
.service-modal-overlay.active .service-modal { transform: none; }
.service-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-strong); font-size: 1.3rem; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  transition: background var(--dur);
}
.service-modal-close:hover { background: #fff; }
.service-modal-content { display: flex; flex-direction: column; min-height: 0; }
.service-modal-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.service-modal-content img { display: block; width: 100%; height: 200px; object-fit: cover; background: var(--admin-bg); }
.service-modal-body { padding: 20px 24px; }
.service-modal-body h2 { margin-bottom: var(--space-2); font-size: 1.4rem; text-align: left; }
.service-modal-body .modal-desc { margin-bottom: var(--space-4); font-size: 0.94rem; line-height: 1.65; color: #544b47; }
.service-modal-body .modal-bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.service-modal-body .modal-bullets li { display: flex; align-items: center; gap: var(--space-2); font-size: 0.86rem; color: #544b47; }
.service-modal-body .modal-bullets li i { font-size: 0.7rem; color: var(--accent); }
.service-modal-body .modal-suitable { margin-bottom: var(--space-4); padding-left: 14px; border-left: 2px solid var(--accent); font-size: 0.88rem; font-style: italic; line-height: 1.6; color: #6a5f58; }
.service-modal-body .modal-suitable:empty { display: none; }
.service-modal-body .modal-suitable i { display: none; }
.service-modal-body .pricing-mini { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.price-option { cursor: pointer; }
.price-option input { position: absolute; opacity: 0; pointer-events: none; }
.price-option .price-tag {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--btn-h); padding: 0 16px;
  border: 1.5px solid #e0d8d2; border-radius: var(--radius-sm);
  background: var(--surface); color: #4a3f3a;
  font-size: 0.88rem; font-weight: 500; user-select: none;
  transition: border-color var(--dur), background var(--dur);
}
.price-option .price-tag:hover { border-color: var(--accent); }
.price-option .price-check { display: none; font-size: 0.72rem; color: var(--accent-ink); }
.price-option input:checked + .price-tag { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.price-option input:checked + .price-tag .price-check { display: inline-block; }
.price-option input:focus-visible + .price-tag { box-shadow: var(--focus-ring); }

.modal-book-row { flex-shrink: 0; padding: var(--space-3) 24px var(--space-4); border-top: 1px solid var(--line); background: var(--surface); }
.modal-book-btn { width: 100%; }

@media (max-width: 500px) {
  .service-modal-body { padding: 16px 18px; }
  .service-modal-body .modal-bullets { grid-template-columns: 1fr; }
  .service-modal-content img { height: 160px; }
  .modal-book-row { padding: var(--space-3) 18px var(--space-4); }
}

/* Service page intro */
.services-page-intro { width: 90%; max-width: 1100px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) 0 var(--space-2); text-align: center; }
.services-page-intro .home-eyebrow { margin-bottom: var(--space-3); }
.services-page-intro h1 { margin-bottom: var(--space-3); font-size: clamp(1.9rem, 3.2vw, 2.4rem); line-height: 1.2; color: var(--ink-strong); }
.services-page-intro p { max-width: 540px; margin: 0 auto; font-size: 0.98rem; line-height: 1.7; color: #6a5f58; }


/* ========================================
   BOOKING PAGE REDESIGN
   ======================================== */
.booking-page-inner { max-width: 1080px; margin: 0 auto; padding: 30px 0; }

.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: start; gap: 26px; }
.booking-layout.has-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); justify-items: stretch; }
.booking-layout.has-form .booking-calendar-section { max-width: none; }

.booking-steps { display: flex; gap: 0; margin-bottom: 28px; border-radius: 10px; overflow: hidden; border: 1px solid #e8e0da; background: #faf8f6; }
.booking-step { flex: 1; padding: 12px 16px; text-align: center; font-size: 0.85rem; font-weight: 500; color: #8a7a72; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.booking-step .step-num { width: 24px; height: 24px; border-radius: 50%; background: #e0d8d2; color: #fff; font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; transition: all 0.3s; }
.booking-step.active { color: #3b2b2b; background: #fff; }
.booking-step.active .step-num { background: #c8a15a; }

/* Calendar */
.booking-calendar-section { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid #e8e0da; box-shadow: 0 4px 16px rgba(90,60,46,0.06); width: 100%; max-width: 470px; margin-bottom: 0; }

.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-nav h3 { font-size: 1.15rem; color: #3b2b2b; font-weight: 600; font-family: 'Inter', sans-serif; }
.cal-nav-btn { background: none; border: 1.5px solid #e0d8d2; border-radius: 8px; padding: 6px 14px; cursor: pointer; font-size: 1rem; color: #5a3c2e; transition: all 0.2s; }
.cal-nav-btn:hover { border-color: #c8a15a; color: #c8a15a; }

.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.cal-weekdays span { text-align: center; font-size: 0.72rem; font-weight: 600; color: #8a7a72; text-transform: uppercase; padding: 6px 0; letter-spacing: 0.3px; }

.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }

.cal-cell { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 8px; font-size: 0.88rem; font-weight: 500; transition: all 0.15s; cursor: default; font-family: 'Inter', sans-serif; }

.cal-cell.empty { background: transparent; cursor: default; }

.cal-cell.past { color: #d6cdc6; background: transparent; }

.cal-cell.booked { color: #bbb; background: #f5f5f5; position: relative; cursor: not-allowed; }
.cal-cell.booked::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ef4444; bottom: 5px; left: 50%; transform: translateX(-50%); }
.cal-cell.booked:hover { background: #f0eeee; }

.cal-cell.weekend { color: #d6cdc6; background: #faf8f6; position: relative; cursor: not-allowed; }
.cal-cell.weekend::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #d6cdc6; bottom: 5px; left: 50%; transform: translateX(-50%); }

.cal-cell.partial { color: #3b2b2b; background: #faf6f2; cursor: pointer; border: 1.5px solid #d6cdc6; position: relative; }
.cal-cell.partial:hover { background: #f5ede0; border-color: #c8a15a; transform: translateY(-1px); }
.cal-cell.partial::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #c8a15a; bottom: 5px; left: 50%; transform: translateX(-50%); }

.cal-cell.closed { color: #c9bfb8; background: #f8f6f5; position: relative; cursor: not-allowed; }
.cal-cell.closed::after { content: '✕'; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); font-size: 0.62rem; color: #d6a3a3; line-height: 1; }
.cal-cell.closed:hover { background: #f6f2f0; }

.cal-cell.available { color: #3b2b2b; background: #fff; cursor: pointer; border: 1.5px solid transparent; }
.cal-cell.available:hover { background: #f5ede0; border-color: #c8a15a; transform: translateY(-1px); }

.cal-cell.selected { background: #faf3e6; color: #3b2b2b; font-weight: 600; border: 1.5px solid #c8a15a; box-shadow: inset 0 0 0 1px #c8a15a; }
.cal-cell.selected:hover { background: #faf3e6; border-color: #c8a15a; transform: none; }

.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin-top: 16px; font-size: 0.75rem; color: #8a7a72; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.legend-dot.available { background: #f5ede0; border: 1.5px solid #c8a15a; }
.legend-dot.partial-legend { background: #faf6f2; border: 1.5px solid #d6cdc6; }
.legend-dot.booked { background: #f5f5f5; }
.legend-dot.closed-legend { background: #f6efef; border: 1.5px solid #d6a3a3; }
.legend-dot.weekend-legend { background: #faf8f6; border: 1.5px solid #d6cdc6; }
.legend-dot.selected-legend { background: #c8a15a; }

/* Info form */
.booking-info-form { background: #fff; border-radius: 16px; padding: 28px; border: 1px solid #e8e0da; box-shadow: 0 4px 16px rgba(90,60,46,0.06); opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.35s ease; width: 100%; margin-bottom: 0; }
.booking-info-form.visible { opacity: 1; transform: translateY(0); }
.booking-info-form .form-group label { display: block; font-weight: 500; font-size: 0.85rem; margin-bottom: 5px; color: #3b2b2b; }
.booking-info-form .form-group input, .booking-info-form .form-group select, .booking-info-form .form-group textarea { width: 100%; padding: 10px 14px; border: 1.5px solid #e0d8d2; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 0.9rem; transition: border-color 0.2s; background: #fafafa; color: #2c2420; }
.booking-info-form .form-group input:focus, .booking-info-form .form-group select:focus, .booking-info-form .form-group textarea:focus { outline: none; border-color: #c8a15a; box-shadow: 0 0 0 3px rgba(200,161,90,0.12); }
.booking-info-form .form-group textarea { min-height: 80px; resize: vertical; }
.booking-info-form .form-group .error-message { color: #dc2626; font-size: 0.8rem; margin-top: 3px; display: none; }
.booking-info-form .form-group.error input, .booking-info-form .form-group.error select { border-color: #dc2626; }
.booking-info-form .form-group.error .error-message { display: block; }
.booking-info-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.booking-info-form .booking-submit { width: 100%; margin-top: 6px; padding: 12px; font-size: 0.95rem; justify-content: center; }

/* Service cards */

/* Price cards */
.price-cards-wrapper { margin-bottom: 18px; display: none; }
.price-cards-wrapper.visible { display: block; }
.price-cards-wrapper > label { display: block; font-weight: 500; font-size: 0.85rem; margin-bottom: 8px; color: #3b2b2b; }
.price-cards { display: flex; flex-wrap: wrap; gap: 8px; }

.price-card { font-family: inherit; flex: 1; min-width: 120px; padding: 14px 12px; border: 1.5px solid #e0d8d2; border-radius: 10px; text-align: center; cursor: pointer; transition: all 0.25s; background: #fafafa; opacity: 0; transform: translateY(8px); }
.price-card.show { opacity: 1; transform: translateY(0); }
.price-card:hover { border-color: #c8a15a; background: #f5ede0; }
.price-card.selected { border-color: #c8a15a; background: #faf3e6; box-shadow: inset 0 0 0 1px #c8a15a; }
.price-card.selected:hover { border-color: #c8a15a; }
.price-card.selected .pc-duration { color: #8a7a72; }
.price-card.selected .pc-price { color: #5a3c2e; }
.price-card .pc-duration { display: block; font-size: 0.8rem; color: #8a7a72; margin-bottom: 4px; font-weight: 500; }
.price-card .pc-price { display: block; font-size: 1.3rem; font-weight: 700; color: #5a3c2e; }

#serviceError { display: none; }

#selectedDateDisplay { background: #f5ede0 !important; border-color: #c8a15a !important; cursor: default; font-weight: 500; }

@media (max-width: 900px) {
  .booking-layout, .booking-layout.has-form { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .booking-calendar-section, .booking-layout.has-form .booking-calendar-section { max-width: 470px; }
}

@media (max-width: 500px) {
  
  .price-cards { flex-direction: column; }
  .price-card { min-width: unset; }
  .booking-step { font-size: 0.75rem; padding: 10px 8px; }
  .booking-step .step-num { width: 20px; height: 20px; font-size: 0.65rem; }
  .cal-cell { min-height: 38px; font-size: 0.82rem; }
  .booking-info-form .form-row { grid-template-columns: 1fr; }
  .booking-info-form, .booking-calendar-section { padding: 16px; }
}

/* ========================================
   SERVICE PAGE LAYOUT
   ======================================== */

@media (max-width: 768px) {
  
  
  
  
  .form-row { grid-template-columns: 1fr; }
  .booking-form { padding: 20px; }
}

/* ========================================
   ADMIN CSS — CLEAN MODERN UI
   ======================================== */

/* Material Icons base style for admin context */
.admin-layout .material-icons,
.login-body .material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

.notification {
  position: fixed; top: 20px; right: 24px; padding: 14px 22px;
  border-radius: 8px; font-size: 0.9rem; font-weight: 500;
  z-index: 10000; opacity: 0; transform: translateX(40px);
  transition: all 0.35s ease; box-shadow: var(--shadow-md);
  max-width: 380px; font-family: 'Inter', sans-serif;
  pointer-events: none;
}
.notification.show { opacity: 1; transform: translateX(0); pointer-events: auto; }
.notification.success { background: #dcfce7; color: #166534; border-left: 4px solid #22c55e; }
.notification.error { background: #fef2f2; color: #991b1b; border-left: 4px solid #ef4444; }
.notification.info { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }
/* ========================================
   DIALOGS (shared by every admin popup)
   ======================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: none; align-items: center; justify-content: center;
  padding: var(--space-4);
  background: rgba(43,32,28,0.5);
}
.modal-overlay.active { display: flex; }
.dialog {
  display: flex; flex-direction: column;
  width: min(var(--dialog-w), 100%);
  max-height: calc(100dvh - 32px);
  background: var(--surface);
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: dialogIn 0.18s ease-out;
}
/* A form inside a dialog must keep the head / scrolling body / footer layout */
.dialog > form { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.dialog-sm { --dialog-w: 400px; }
.dialog-lg { --dialog-w: 580px; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: 20px 20px 0; }
.dialog-title { margin: 0; font: 600 1.1rem/1.3 'Inter', sans-serif; letter-spacing: -0.2px; color: var(--ink-strong); }
.dialog-sub { margin-top: 2px; font-size: 0.85rem; color: var(--muted); }
.dialog-close {
  flex-shrink: 0; width: 36px; height: 36px; margin: -6px -8px 0 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
  transition: background var(--dur), color var(--dur);
}
.dialog-close:hover { background: var(--admin-bg); color: var(--ink-strong); }
.dialog-body { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-4) 20px; }
.dialog-body > p { margin: 0 0 var(--space-3); font-size: 0.92rem; color: var(--muted); line-height: 1.6; font-family: 'Inter', sans-serif; }
.dialog-body > :last-child { margin-bottom: 0; }
.dialog-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-2); padding: var(--space-3) 20px var(--space-4); border-top: 1px solid var(--line); }
.dialog-foot:empty { display: none; }
.dialog-foot .foot-note { margin-right: auto; }

body.dialog-open { overflow: hidden; }

/* Booking / account details */
.detail-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.detail-field .field-label { display: block; margin-bottom: 2px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: #8c7b72; }
.detail-field .field-value { font-size: 0.92rem; font-weight: 500; color: var(--ink-strong); word-break: break-word; }
.detail-field-full { grid-column: 1 / -1; }
.detail-notes { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-soft); font-size: 0.88rem; line-height: 1.55; color: #5a4636; }
.archive-stamp { font-size: 0.8rem; color: var(--muted); }

/* Day dialog */
.day-modal-list { display: flex; flex-direction: column; }
.day-booking-item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid #f1ebe4; }
.day-booking-item:last-child { border-bottom: none; }
.day-booking-info { display: flex; flex-direction: column; min-width: 0; }
.day-booking-name { font-weight: 600; font-size: 0.92rem; color: var(--ink-strong); }
.day-booking-date { font-size: 0.78rem; color: var(--muted); }
.day-modal-empty { padding: var(--space-3) 0; text-align: center; font-size: 0.88rem; color: var(--muted); }
.day-modal-closed-badge { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-size: 0.85rem; font-weight: 600; color: #b91c1c; }
.day-modal-closed-badge .material-icons { font-size: 1.05rem; }

/* Service form */
.dialog .form-group { margin-bottom: var(--space-3); }
.dialog .form-group:last-child { margin-bottom: 0; }
.dialog .form-group label { margin-bottom: 4px; font-size: 0.82rem; }
.dialog .form-group input, .dialog .form-group select, .dialog .form-group textarea { min-height: var(--input-h); padding: 9px 12px; font-size: 0.9rem; border-radius: var(--radius-sm); }
.dialog .form-group textarea { min-height: 64px; resize: vertical; }
.dialog .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.dialog .form-row .form-group { margin-bottom: var(--space-3); }
.dialog .required { color: var(--danger); }
.dialog .field-hint { font-weight: 400; color: var(--muted); }
.svc-image-preview { overflow: hidden; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); cursor: pointer; transition: border-color var(--dur); }
.svc-image-preview:hover, .svc-image-preview:focus-visible { border-color: var(--accent); }
.svc-image-preview img { display: block; width: 100%; max-height: 150px; object-fit: cover; }
.svc-image-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px; font-size: 0.85rem; color: var(--muted); }
.svc-image-placeholder i { font-size: 1.8rem; color: #d0c8c0; }
.svc-image-meta { margin-top: 4px; overflow: hidden; font-size: 0.75rem; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.svc-image-clear { margin-top: 6px; }
.svc-prices-box { display: flex; flex-direction: column; gap: var(--space-2); padding: 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.svc-price-row { display: grid; grid-template-columns: 1.2fr 0.8fr 1.4fr auto auto; gap: var(--space-2); align-items: end; }
.svc-price-row label { display: block; margin-bottom: 3px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: var(--muted); }
.svc-price-field input, .svc-price-field select { width: 100%; }
.svc-price-star, .svc-price-remove { width: 40px; height: var(--input-h); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 1.1rem; line-height: 1; cursor: pointer; transition: background var(--dur), border-color var(--dur), color var(--dur); }
.svc-price-star { border: 1.5px solid var(--line); background: var(--surface); color: #d0c8c0; }
.svc-price-star:hover { border-color: var(--accent); }
.svc-price-star.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.svc-price-remove { border: none; background: var(--danger-soft); color: #b91c1c; }
.svc-price-remove:hover { background: #fde3e3; }
.svc-price-add { margin-top: var(--space-2); }
.user-error { margin-top: var(--space-3); padding: 10px 14px; border-radius: var(--radius-sm); background: var(--danger-soft); color: #991b1b; font-size: 0.85rem; }

@media (max-width: 480px) {
  .dialog-head { padding: 16px 16px 0; }
  .dialog-body { padding: var(--space-3) 16px; }
  .dialog-foot { padding: var(--space-3) 16px; }
  .dialog-foot .btn { flex: 1; }
  .dialog-foot .foot-note { flex-basis: 100%; }
  .dialog .form-row { grid-template-columns: 1fr; }
  .detail-modal-grid { gap: 12px 16px; }
  .svc-price-row { grid-template-columns: 1fr 1fr auto auto; }
}

/* Login */
.login-body {
  background: #f0f0f0;
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 24px;
}
.login-body main { width: 100%; display: flex; justify-content: center; }
.login-container { width: 100%; max-width: 400px; }
.login-card {
  background: #fff; border-radius: 12px;
  padding: 40px 36px; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.login-header { text-align: center; margin-bottom: 24px; }
.login-header .login-logo { height: 60px; margin-bottom: 10px; }
.login-header p { color: var(--text-muted); font-size: 0.85rem; margin-top: 2px; }
.login-error {
  background: #fef2f2; color: #991b1b; padding: 10px 14px;
  border-radius: 8px; font-size: 0.85rem; margin-bottom: 16px; display: none;
}
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 40px !important; }
.password-toggle { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #888; padding: 4px; display: flex; align-items: center; }

.login-card .btn { width: 100%; padding: 12px; font-size: 0.95rem; border-radius: 8px; }

/* Layout */
.admin-layout { display: flex; min-height: 100vh; }
.admin-layout h1, .admin-layout h2, .admin-layout h3, .admin-layout h4,
.login-body h1, .login-body h2, .login-body h3 { font-family: 'Inter', sans-serif; }
.admin-sidebar {
  width: 240px; background: var(--side-bg); display: flex; flex-direction: column;
  flex-shrink: 0; position: sticky; top: 0; height: 100vh;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo-img { height: 75px; width: auto; }
.sidebar-close { display: none; position: absolute; top: 50%; right: 14px; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,0.6); font-size: 1.5rem; cursor: pointer; padding: 4px 8px; line-height: 1; }
.sidebar-nav { flex: 1; padding: 10px 0; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 20px;
  color: var(--side-text); font-size: 0.9rem; cursor: pointer;
  transition: all 0.2s; border: none; background: none;
  width: 100%; text-align: left; font-family: 'Inter', sans-serif; font-weight: 450;
  border-left: 3px solid transparent;
}
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: var(--side-active); }
.sidebar-link.active { background: rgba(200,161,90,0.12); color: var(--side-active); border-left-color: var(--side-accent); }
.sidebar-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-footer { border-top: 1px solid rgba(255,255,255,0.08); padding: 8px 0; }
.sidebar-footer .sidebar-link { font-size: 0.85rem; }

.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 1000; }

/* Menu toggle */
.admin-menu-toggle { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 1002; width: 100%; height: 48px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px; background: var(--side-bg); color: #fff; border: none; border-radius: 0; cursor: pointer; font-family: 'Inter', sans-serif; box-shadow: 0 2px 10px rgba(0,0,0,0.14); }
.admin-menu-toggle .menu-btn-left { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.3px; }
.admin-menu-toggle .menu-btn-icon { font-size: 0.95rem; color: var(--side-accent); }
.admin-menu-toggle .menu-btn-caret { font-size: 0.8rem; color: rgba(255,255,255,0.55); transition: transform 0.2s ease; }
.admin-menu-toggle.open .menu-btn-caret { transform: rotate(180deg); }

/* Main */
.admin-main { flex: 1; background: var(--admin-bg); padding: 32px; overflow-x: hidden; }
.admin-view { display: none; }
.admin-view.active { display: block; }
.view-header { margin-bottom: 24px; }
.view-header h1 { font-size: 1.8rem; color: var(--text-main); font-weight: 700; letter-spacing: -0.3px; text-align: left; }
.view-date { color: var(--text-muted); font-size: 0.88rem; display: block; margin-top: 2px; }


/* Toolbar */
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.admin-toolbar .filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-toolbar select, .admin-toolbar input { padding: 8px 12px; border: 1.5px solid var(--border-light); border-radius: 6px; font-family: 'Inter', sans-serif; font-size: 0.85rem; background: var(--card-bg); color: var(--text-main); }
.admin-toolbar .filter-group select { min-width: 130px; }
.admin-toolbar .filter-group input[type="text"] { min-width: 230px; }
.admin-toolbar .filter-group input[type="date"] { min-width: 140px; }
.admin-toolbar select:focus, .admin-toolbar input:focus { outline: none; border-color: var(--side-accent); box-shadow: 0 0 0 3px rgba(200,161,90,0.15); }
.admin-toolbar label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.admin-toolbar .booking-count { font-size: 0.85rem; color: var(--text-muted); }
.date-filter-info { display: none; align-items: center; gap: 4px; background: #f5ede0; padding: 4px 8px; border-radius: 6px; font-size: 0.82rem; color: var(--side-accent); font-weight: 500; }
.date-filter-info.active { display: inline-flex; }
.date-filter-icon { font-size: 1rem; }
.date-filter-clear { background: none; border: none; color: var(--side-accent); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 2px; opacity: 0.6; }
.date-filter-clear:hover { opacity: 1; }

/* Table */
.table-wrapper { background: var(--card-bg); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow-x: auto; border: 1px solid var(--border-light); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead { background: #f7f1ea; }
th { text-align: left; padding: 12px 16px; font-weight: 600; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap; border-bottom: 1px solid var(--border-light); }
td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; color: var(--text-main); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #faf6f2; }

.status-badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: capitalize; }
.status-badge.pending { background: #fef3c7; color: #92400e; }
.status-badge.confirmed { background: #dcfce7; color: #166534; }
.status-badge.cancelled { background: #fef2f2; color: #991b1b; }
.status-badge.archived { background: #e8f4f8; color: #1a6b7a; }

.no-bookings { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.no-bookings .empty-icon { font-size: 2.6rem; margin-bottom: 12px; opacity: 0.3; }
.no-bookings h3 { font-size: 1.1rem; color: var(--text-main); margin-bottom: 6px; font-weight: 600; }


/* Admin services — card grid */
.admin-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px;
}
.admin-service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.admin-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}
.admin-service-card-media { position: relative; }
.admin-service-card-media img { width: 100%; height: 150px; object-fit: cover; display: block; background: #f8fafc; }
.admin-service-card-ph {
  width: 100%; height: 150px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fdf6ec, #f3e9dc); color: #c8a15a;
}
.admin-service-card-sort {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(15, 23, 42, 0.72); color: #fff;
  font-size: 0.7rem; font-weight: 600; padding: 3px 9px; border-radius: 50px; letter-spacing: 0.3px;
}
.admin-service-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.admin-service-card-title { font-size: 1rem; color: var(--text-main); font-weight: 600; margin-bottom: 6px; text-align: left; }
.admin-service-card-desc {
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Card action menu (3-dot) */
.admin-svc-menu-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, 0.95); color: #3b2b2b;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.admin-svc-menu-btn .material-icons { font-size: 1.15rem; }
.admin-svc-menu-btn:hover,
.admin-svc-menu-btn.open { background: var(--side-bg); color: #fff; }
.admin-svc-menu {
  position: absolute; top: 44px; right: 8px; z-index: 6;
  min-width: 148px; background: #fff; border: 1px solid var(--border-light);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  padding: 4px; display: none;
}
.admin-svc-menu.open { display: block; }
.admin-svc-menu-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 12px; border: none; background: none; cursor: pointer;
  font-size: 0.83rem; color: var(--text-main); border-radius: 6px;
  font-family: 'Inter', sans-serif; text-align: left;
}
.admin-svc-menu-item .material-icons { font-size: 1.05rem; color: var(--text-muted); }
.admin-svc-menu-item:hover { background: #faf6f2; }
.admin-svc-menu-item.danger { color: #dc2626; }
.admin-svc-menu-item.danger .material-icons { color: #dc2626; }
.admin-svc-menu-item.danger:hover { background: #fef2f2; }

.loading { text-align: center; padding: 40px; color: var(--text-muted); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border-light); border-top-color: var(--side-accent); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Booking wrapper (customer booking form, not admin) */

.booking-form { background: var(--card-bg); padding: 28px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.booking-form h2 { font-size: 1.3rem; margin-bottom: 24px; color: var(--text-main); font-weight: 700; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; font-size: 0.85rem; margin-bottom: 5px; color: var(--text-main); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border-light); border-radius: 6px; font-family: 'Inter', sans-serif; font-size: 0.9rem; transition: border-color 0.2s; background: #fafafa; color: var(--text-main); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--side-accent); box-shadow: 0 0 0 3px rgba(200,161,90,0.15); }
.form-group textarea { min-height: 90px; resize: vertical; }
.form-group .error-message { color: #ef4444; font-size: 0.8rem; margin-top: 3px; display: none; }
.form-group.error input, .form-group.error select { border-color: #ef4444; }
.form-group.error .error-message { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.booking-form .btn { width: 100%; margin-top: 4px; padding: 12px; font-size: 0.95rem; justify-content: center; }

.confirmation-section { display: none; text-align: center; padding: 40px 0; }
.confirmation-section.active { display: block; }
.confirmation-section .check-icon { margin-bottom: 16px; }
.confirmation-section .check-icon .material-icons { font-size: 4.2rem; color: #22c55e; }
.confirmation-section h2 { font-size: 1.6rem; color: var(--text-main); margin-bottom: 10px; font-weight: 700; }
.confirmation-section p { color: var(--text-muted); font-size: 1rem; margin-bottom: 20px; }
.confirmation-section .booking-details { background: var(--card-bg); border-radius: var(--radius-md); padding: 20px 24px; box-shadow: var(--shadow-sm); max-width: 480px; margin: 0 auto 20px; text-align: left; border: 1px solid var(--border-light); }
.confirmation-section .booking-details .detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.confirmation-section .booking-details .detail-row:last-child { border-bottom: none; }
.confirmation-section .booking-details .detail-label { font-weight: 500; color: var(--text-muted); font-size: 0.85rem; }
.confirmation-section .booking-details .detail-value { color: var(--text-main); font-size: 0.9rem; }
.confirmation-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.confirmation-actions .btn { min-width: 160px; justify-content: center; }

/* Users */

.user-error { background: #fef2f2; color: #991b1b; padding: 10px 14px; border-radius: 8px; font-size: 0.85rem; margin-top: 12px; }
#usersTable td:last-child { text-align: right; }
#usersTable th:last-child { text-align: right; }

/* Booking rows */
.booking-main-row { cursor: pointer; }
.booking-main-row:hover td { background: #f5ede0; }
.booking-main-row.no-click { cursor: default; }
.booking-main-row.no-click:hover td { background: transparent; }
.booking-main-row td:last-child { text-align: right; }

/* Booking ID */
.booking-id {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.5px;
  color: var(--text-muted);
  background: #f5f0eb; border-radius: 6px; padding: 3px 8px;
}

/* Status icons */
.status-icon { display: inline-flex; vertical-align: middle; }
.status-icon .material-icons { font-size: 1.35rem; }
.status-icon.pending { color: #d97706; }
.status-icon.confirmed { color: #16a34a; }
.status-icon.cancelled { color: #dc2626; }

/* Row action icon buttons */
.row-actions { display: inline-flex; gap: 6px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--border-light); background: #fff;
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; line-height: 1;
  transition: all 0.15s;
}
.icon-btn .material-icons { font-size: 1.1rem; }
.icon-btn.confirm:hover { color: #16a34a; border-color: #16a34a; background: #f0fdf4; }
.icon-btn.danger:hover { color: #dc2626; border-color: #dc2626; background: #fef2f2; }
.icon-btn.view:hover { color: #8a6420; border-color: #c8a15a; background: #faf3e6; }

/* Detail modal */
.detail-field .field-label {
  display: block; font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: #a4938a; margin-bottom: 4px;
}
.detail-field .field-value { font-size: 0.92rem; font-weight: 500; color: var(--text-main); word-break: break-word; }
.detail-field .field-value .status-badge { text-transform: capitalize; }
.detail-field-full { grid-column: 1 / -1; }
.detail-notes {
  background: #faf6f0; border: 1px solid #f1e6d6; border-radius: 10px;
  padding: 12px 14px; font-size: 0.88rem; color: #5a4636; line-height: 1.55;
}
.archive-stamp {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
  background: #f5f0eb; border-radius: 50px; padding: 6px 12px;
}
.archive-stamp .material-icons { font-size: 1rem; }

@media (max-width: 968px) {
  .admin-sidebar { width: 200px; }
  .admin-main { padding: 24px; }
  
  
}
@media (max-width: 768px) {
  .admin-layout { position: relative; }
  .admin-sidebar { position: fixed; top: 48px; left: 0; right: 0; width: auto; height: auto; max-height: calc(100vh - 48px); overflow-y: auto; z-index: 1001; background: #fff; border-radius: 0 0 14px 14px; box-shadow: 0 16px 32px rgba(90,60,46,0.22); transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s; flex-direction: column; }
  .admin-sidebar.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .sidebar-header { display: none; }
  .sidebar-nav { flex: 1; padding: 8px; display: block; }
  .sidebar-link { justify-content: flex-start; padding: 11px 14px; border-left: none; border-bottom: none; font-size: 0.9rem; font-weight: 500; color: var(--text-main); border-radius: 10px; }
  .sidebar-link:hover { background: var(--admin-bg); color: var(--side-bg); }
  .sidebar-link.active { background: rgba(200,161,90,0.16); color: var(--side-bg); }
  .sidebar-link.active .sidebar-icon { color: var(--side-accent); }
  .sidebar-footer { border-top: 1px solid var(--border-light); padding: 8px; margin-top: 2px; }
  .sidebar-footer .sidebar-link { font-size: 0.85rem; color: #8a6f5f; }
  .sidebar-footer #logoutBtn { color: #b4533f; }
  .sidebar-footer #logoutBtn:hover { background: #fdf0ec; color: #b4533f; }
  .admin-menu-toggle { display: flex; }
  .sidebar-overlay.active { display: block; }
  .admin-main { padding: 16px; padding-top: 56px; }
  .form-row { grid-template-columns: 1fr; }
  .booking-form { padding: 20px; }
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-toolbar .filter-group { flex-wrap: wrap; gap: 8px; }
  .admin-toolbar .filter-group select,
  .admin-toolbar .filter-group input { flex: 1 1 100%; min-width: 0; }
  .admin-toolbar .booking-count { text-align: right; }
  
  
  .notification { left: 16px; right: 16px; max-width: none; }

  /* Mobile booking cards */
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  .table-wrapper { overflow: visible; background: transparent; border: none; box-shadow: none; }


  /* Cards on small screens: the crm-table rules handle bookings and archives */
  .booking-main-row:hover td { background: transparent; }

  .table-wrapper .admin-services-grid { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
  .admin-services-grid { padding: 12px; grid-template-columns: repeat(2, 1fr); }

  /* Mobile user cards */
  #usersTable tbody tr {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
  }
  #usersTable tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.82rem;
    gap: 10px;
  }
  #usersTable tbody td:last-of-type { border-bottom: none; }
  #usersTable tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
  }
  #usersTable tbody td[data-label="Actions"] { display: flex; justify-content: flex-end; border-top: 1px solid #f1f5f9; padding-top: 10px; margin-top: 4px; }
  #usersTable tbody td[data-label="Actions"]::before { display: none; }
  
  #usersTable tbody tr:hover td { background: transparent; }
}
@media (max-width: 480px) {
  .admin-main { padding: 10px; padding-top: 50px; }


  .day-booking-item { flex-wrap: wrap; }
  .archive-stamp { align-self: flex-start; }

  .admin-services-grid { gap: 10px; padding: 10px; }
  .admin-service-card-media img,
  .admin-service-card-ph { height: 110px; }
  .admin-service-card-body { padding: 10px 12px 12px; }
  .admin-service-card-title { font-size: 0.84rem; margin-bottom: 6px; }
  .admin-service-card-desc { display: none; }
  .admin-service-card-sort { font-size: 0.6rem; padding: 2px 7px; bottom: 6px; left: 6px; }
  .admin-svc-menu-btn { width: 26px; height: 26px; top: 6px; right: 6px; }
  .admin-svc-menu { top: 38px; right: 6px; }
}

/* ========================================
   HOMEPAGE — BEAUTY LANDING (index only)
   ======================================== */
body.home-page, body.site-page { background: #faf6f2; }

.home-page header, .site-page header {
  background: rgba(250, 246, 242, 0.92);
  border-bottom: 1px solid rgba(90, 60, 46, 0.08);
}

/* ---- Header ---- */
.home-header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 0;
}
.home-header-content nav { justify-self: center; }
.home-header-content .home-header-right { justify-self: end; }

.home-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.home-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.home-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 9px 16px;
  border: 1.5px solid #d6cdc6;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: border-color var(--dur), background var(--dur);
}
.home-phone i { color: #c8a15a; font-size: 0.85rem; }
.home-phone:hover { border-color: var(--brand); background: var(--surface-soft); }

/* ---- Hero ---- */
.home-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); overflow: hidden; }

.home-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.home-hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--ink-strong);
}

.home-hero-sub {
  max-width: 460px;
  margin: 20px 0 32px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #6a5f58;
}

.home-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.home-quote {
  max-width: 440px;
  margin-top: 48px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}
.home-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #5a4a42;
}

/* ---- Hero media ---- */
.home-hero-media { display: flex; justify-content: center; }
.home-product { position: relative; width: 100%; max-width: 480px; }
.home-product video {
  display: block;
  width: 100%;
  max-height: 560px;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--admin-bg);
  box-shadow: 0 20px 48px rgba(90, 60, 46, 0.14);
  cursor: pointer;
}
.home-video-expand {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-strong);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--dur), color var(--dur);
}
.home-video-expand:hover { background: var(--accent); color: #fff; }

/* ---- Footer ---- */
.home-footer { background: var(--ink-strong); }
.home-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-5);
  padding: 36px 0 28px;
}
.home-footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; }
.home-footer-nav a { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; text-decoration: none; transition: color var(--dur); }
.home-footer-nav a:hover { color: #fff; }
.home-footer-social { display: flex; gap: var(--space-2); list-style: none; }
.home-footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color var(--dur), color var(--dur);
}
.home-footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.home-footer-copy {
  width: 100%;
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---- Home responsive ---- */
@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-hero-title, .home-hero-sub { text-align: center; }
  .home-hero-sub { max-width: none; }
  .home-hero-actions { justify-content: center; }
  .home-quote { margin: 40px auto 0; }
  .home-product { max-width: 400px; }
}
@media (max-width: 768px) {
  .home-phone span { display: none; }
  .home-phone { padding: 9px 12px; }
  .home-footer-meta { flex-direction: column; text-align: center; }
  .home-footer-nav { justify-content: center; }
}
@media (max-width: 480px) {
  .home-product { max-width: 320px; }
  .home-hero-actions .btn { flex: 1 1 100%; }
}

/* ========================================
   HOMEPAGE — LOGO, VIDEO, SECTIONS
   ======================================== */
.home-logo-img { height: 46px; width: auto; display: block; }

/* ---- Section headings ---- */
.home-eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.home-section-title {
  margin-bottom: var(--space-3);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  color: var(--ink-strong);
}
.home-section-text { max-width: 540px; font-size: 0.98rem; line-height: 1.7; color: #6a5f58; }

.home-about, .home-services, .home-contact { padding: clamp(64px, 9vw, 100px) 0; }

/* ---- About ---- */
.home-about { background: var(--surface); }
.home-about-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.home-about-media { display: flex; justify-content: center; }
.home-about-photo-wrap { position: relative; }
.home-about-photo {
  display: block;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(90, 60, 46, 0.14);
}
.home-about-badge {
  position: absolute;
  right: -12px;
  bottom: 14px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.home-about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: var(--space-4) 0 var(--space-5);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-strong);
}
.home-about-highlights .highlight + .highlight::before { content: '·'; margin: 0 12px; color: var(--accent); font-weight: 700; }

/* ---- Services ---- */
.home-services { background: var(--surface-soft); text-align: center; }
.home-services-text { margin: 0 auto 40px; }

.home-service-carousel { position: relative; max-width: 1180px; margin: 0 auto 36px; }
.home-service-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 6px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
}
.home-service-track::-webkit-scrollbar { display: none; }
.home-service-track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.home-service-track.dragging .home-service-card { pointer-events: none; }

.home-service-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 262px;
  overflow: hidden;
  border: 1px solid #ece4dd;
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: left;
  text-decoration: none;
  scroll-snap-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(90, 60, 46, 0.12); }
.home-service-card-media { position: relative; display: block; }
.home-service-card-media img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--admin-bg);
  user-select: none;
  -webkit-user-drag: none;
}
.home-service-card-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px; }
.home-service-card-title { margin-bottom: 6px; font-family: 'Playfair Display', serif; font-size: 1.08rem; line-height: 1.3; color: var(--ink-strong); }
.home-service-card-desc {
  flex: 1;
  margin-bottom: var(--space-3);
  font-size: 0.84rem;
  line-height: 1.55;
  color: #6a5f58;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-service-card-foot { display: flex; align-items: center; justify-content: space-between; }
.home-service-card-price { font-family: 'Playfair Display', serif; font-size: 1.02rem; font-weight: 600; color: var(--ink-strong); }
.home-service-card-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--admin-bg);
  color: var(--brand);
  font-size: 0.75rem;
  transition: background var(--dur), color var(--dur);
}
.home-service-card:hover .home-service-card-btn { background: var(--accent); color: #fff; }

/* index — featured cards: image + title only */
.home-service-card-mini .home-service-card-media img { height: 210px; }
.home-service-card-mini .home-service-card-body { padding: 14px 18px 18px; }
.home-service-card-mini .home-service-card-title { margin-bottom: 0; font-size: 1.1rem; }

/* sluzby.html — same cards in a grid */
.cards#servicesGrid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; align-items: stretch; }
.cards#servicesGrid .home-service-card { flex: none; }

.home-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid #ece4dd;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-strong);
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(90, 60, 46, 0.12);
  transition: background var(--dur), color var(--dur);
}
.home-carousel-btn:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.home-carousel-prev { left: -8px; }
.home-carousel-next { right: -8px; }

.home-services-actions { display: flex; justify-content: center; }

/* ---- Contact ---- */
.home-contact { background: var(--surface); text-align: center; }
.home-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 5vw, 56px);
  max-width: 980px;
  margin: 40px auto 0;
  align-items: center;
  text-align: left;
}
.home-contact-cards { display: flex; flex-direction: column; }
.contact-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-areas: 'icon label' 'icon value';
  column-gap: var(--space-3);
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f0e8e0;
  color: inherit;
  text-decoration: none;
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  grid-area: icon;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
}
.contact-icon i { font-size: 0.95rem; color: var(--accent-ink); }
.contact-label { grid-area: label; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: #8a7a72; }
.contact-value { grid-area: value; font-size: 0.95rem; font-weight: 500; color: var(--ink-strong); transition: color var(--dur); }
.contact-item:hover .contact-value { color: var(--accent-ink); }

.home-contact-form {
  padding: 28px;
  border: 1px solid #ece4dd;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  text-align: left;
}
.home-contact-form-title { margin-bottom: var(--space-4); font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--ink-strong); }
.home-contact-form .form-group { margin-bottom: var(--space-3); }
.home-contact-form .form-group input,
.home-contact-form .form-group textarea { background: var(--surface); }
.home-contact-submit { width: 100%; }
.home-contact-status { min-height: 1.1em; margin-top: var(--space-3); font-size: 0.88rem; text-align: center; color: #6a5f58; }
.home-contact-note { margin-top: var(--space-5); font-size: 0.88rem; color: #8a7a72; }

/* ---- Video modal ---- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(59, 43, 43, 0.85);
}
.video-modal.active { display: flex; }
.video-modal video {
  width: 100%;
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.video-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--dur);
}
.video-modal-close:hover { background: var(--accent); }

/* ---- Home sections responsive ---- */
@media (max-width: 900px) {
  .home-about-inner { grid-template-columns: 1fr; text-align: center; }
  .home-about-text .home-section-text { margin: 0 auto; }
  .home-about-highlights { justify-content: center; }
  .home-contact-grid { grid-template-columns: 1fr; }
  .home-contact-cards { max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 480px) {
  .home-logo-img { height: 36px; }
  .home-about-photo { width: 220px; height: 220px; }
  .home-about-badge { right: auto; left: 50%; bottom: -14px; transform: translateX(-50%); }
  .home-contact-form { padding: 20px; }
  .home-service-card { flex-basis: 240px; }
}

/* Anchored sections stop below the sticky header */
section[id] { scroll-margin-top: 72px; }
.home-contact-text { margin: 0 auto; }

html { scrollbar-gutter: stable; }

.view-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); }

.dialog .form-group > .field-hint { display: block; margin-top: 4px; font-size: 0.78rem; line-height: 1.4; }
.dialog .form-group > .field-hint:empty { display: none; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ========================================
   BOOKINGS LIST — CRM style
   ======================================== */
.crm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }

/* Status tabs: one segmented control instead of a dropdown */
.crm-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-md); background: #ece5dd; }
.crm-tab {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted);
  font: 600 0.84rem/1 'Inter', sans-serif; cursor: pointer;
  transition: background var(--dur), color var(--dur), box-shadow var(--dur);
}
.crm-tab:hover { color: var(--ink-strong); }
.crm-tab.active { background: var(--surface); color: var(--ink-strong); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.crm-count { min-width: 20px; padding: 2px 6px; border-radius: 10px; background: rgba(90, 60, 46, 0.1); color: var(--brand); font-size: 0.72rem; text-align: center; }
.crm-tab.active .crm-count { background: var(--brand); color: #fff; }

.crm-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.crm-search { position: relative; display: block; }
.crm-search .material-icons { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 1.15rem; color: #a39489; pointer-events: none; }
.crm-search input, .crm-date {
  height: 38px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink-strong); font: 0.88rem 'Inter', sans-serif;
}
.crm-search input { width: 270px; padding-left: 36px; }
.crm-search input:focus, .crm-date:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }

/* The list */
.crm-card { border-radius: var(--radius-lg); box-shadow: none; }
.crm-table { border-collapse: separate; border-spacing: 0; }
.crm-table thead { background: transparent; }
.crm-table th {
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: #9a8b80;
}
.crm-table td { padding: 12px 16px; border-bottom: 1px solid #f1ebe4; vertical-align: middle; }
.crm-table tbody tr:last-child td { border-bottom: 0; }
.crm-row { cursor: pointer; transition: background var(--dur); }
.crm-row:hover td, .crm-row:focus-visible td { background: var(--surface-soft); }
.crm-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.crm-row.is-past td:not(.crm-actions):not([data-label="Status"]) { opacity: 0.6; }

.crm-customer { display: flex; align-items: center; gap: 12px; min-width: 0; }
.crm-avatar {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.3px;
}
.tone-0 { background: #f3e6cf; color: #7a5a1c; }
.tone-1 { background: #dfeadf; color: #3d6a43; }
.tone-2 { background: #f3dedb; color: #8a4338; }
.tone-3 { background: #dde6f1; color: #3b5a85; }
.tone-4 { background: #e6e0f0; color: #5d4a85; }

.crm-stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.crm-name, .crm-main { font-size: 0.92rem; font-weight: 600; color: var(--ink-strong); line-height: 1.3; }
.crm-sub { font-size: 0.8rem; color: var(--muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-when { margin-left: 6px; padding: 2px 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.7rem; font-weight: 700; vertical-align: 1px; }

/* Status pill: colour plus a written label (never colour alone) */
.crm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 0.76rem; font-weight: 600; white-space: nowrap; }
.crm-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.crm-pill.pending { background: var(--warn-soft); color: #92400e; }
.crm-pill.confirmed { background: var(--ok-soft); color: #166534; }
.crm-pill.cancelled { background: #fee2e2; color: #991b1b; }

.crm-actions { white-space: nowrap; text-align: right; }
.crm-actions .btn { margin-right: 6px; vertical-align: middle; }
.crm-actions .icon-btn { vertical-align: middle; border-color: transparent; background: transparent; }
.crm-actions .icon-btn:hover { background: var(--admin-bg); color: var(--ink-strong); border-color: transparent; }

.crm-foot { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.crm-foot b { color: var(--ink-strong); }

/* ⋮ menu: floats above the table so rows never clip it */
.row-menu {
  position: fixed; z-index: 9000; min-width: 190px; padding: 6px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); box-shadow: 0 12px 32px rgba(43, 32, 28, 0.18);
}
.row-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px;
  border: 0; border-radius: 6px; background: transparent; color: var(--ink-strong);
  font: 500 0.88rem 'Inter', sans-serif; text-align: left; cursor: pointer;
}
.row-menu-item .material-icons { font-size: 1.1rem; color: var(--muted); }
.row-menu-item:hover, .row-menu-item:focus-visible { background: var(--admin-bg); outline: none; }
.row-menu-item.danger, .row-menu-item.danger .material-icons { color: var(--danger); }
.row-menu-item.danger:hover, .row-menu-item.danger:focus-visible { background: var(--danger-soft); }

@media (max-width: 1240px) {   /* cards instead of a table when the list would not fit (needs about 960px) */
  .crm-toolbar { align-items: stretch; }
  .crm-tabs { display: flex; }
  .crm-tab { flex: 1; justify-content: center; padding: 0 8px; }
  .crm-filters { width: 100%; }
  .crm-search { flex: 1 1 100%; }
  .crm-search input { width: 100%; }
  .crm-date { flex: 1; }

  /* Each booking becomes a small card */
  .crm-card { border: 0; background: transparent; }
  .crm-table thead { display: none; }
  .crm-table tbody tr.crm-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'cust status' 'svc svc' 'when when' 'act act';
    gap: 10px 12px; margin-bottom: 10px; padding: 14px;
    border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
  }
  .crm-table tbody td { display: block; padding: 0; border: 0; background: transparent !important; }
  .crm-table td[data-label="Customer"] { grid-area: cust; }
  .crm-table td[data-label="Status"] { grid-area: status; align-self: start; }
  .crm-table td[data-label="Service"] { grid-area: svc; }
  .crm-table td[data-label="Date & time"] { grid-area: when; }
  .crm-table td.crm-actions { grid-area: act; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 10px; border-top: 1px solid #f1ebe4; }
  .crm-table td[data-label="Service"] .crm-stack, .crm-table td[data-label="Date & time"] .crm-stack { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .crm-actions .btn { margin-right: 0; }
  .crm-actions .icon-btn { margin-left: auto; width: 36px; height: 36px; }
  .crm-actions .btn + .icon-btn { margin-left: 0; }
  .crm-foot { padding: 4px 2px 0; border: 0; }
}

/* Bookings list: steadier column widths so rows keep one height where possible */
.crm-table th:nth-child(1) { width: 27%; }
.crm-table th:nth-child(2) { width: 26%; }
.crm-table th:nth-child(3) { width: 19%; }
.crm-table th:nth-child(4) { width: 12%; }
.crm-table td[data-label="Date & time"] .crm-main { white-space: nowrap; }
@media (max-width: 768px) {
  .crm-table td[data-label="Customer"] { min-width: 0; }
}
.crm-name.is-empty, .crm-main.is-empty { color: var(--muted); font-weight: 500; font-style: italic; }

/* Customer booking form: optional-field hints */
.optional-tag { font-weight: 400; color: #8a7a72; }
.form-note-group { margin: -6px 0 12px; }
.form-note { margin: 0; font-size: 0.8rem; line-height: 1.5; color: #8a7a72; }

.time-range { margin-top: 6px; font-size: 0.82rem; font-weight: 500; line-height: 1.4; color: var(--accent-ink); }
.time-range:empty { display: none; }

/* Payment method (customer booking form) */
.pay-options { margin: 0 0 18px; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pay-options legend { margin-bottom: 8px; padding: 0; font-weight: 500; font-size: 0.85rem; color: #3b2b2b; }
.pay-option { display: block; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-card {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px;
  border: 1.5px solid #e0d8d2; border-radius: 10px; background: #fafafa; transition: border-color 0.15s, background 0.15s;
}
.pay-title { font-size: 0.88rem; font-weight: 600; color: #3b2b2b; }
.pay-sub { font-size: 0.74rem; color: #8a7a72; }
.pay-option:hover .pay-card { border-color: #c8a15a; }
.pay-option input:checked + .pay-card { border-color: #c8a15a; background: #faf3e6; box-shadow: inset 0 0 0 1px #c8a15a; }
.pay-option input:focus-visible + .pay-card { box-shadow: 0 0 0 3px rgba(200,161,90,0.35); }
@media (max-width: 560px) { .pay-options { grid-template-columns: minmax(0, 1fr); } }

/* Admin: segmented radio group (payment method) */
.seg-field { margin: 0 0 var(--space-3); padding: 0; border: 0; }
.seg-field legend { margin-bottom: 4px; padding: 0; font-size: 0.82rem; font-weight: 500; color: var(--text-main); }
.seg-options { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.seg-option { cursor: pointer; }
.seg-option input { position: absolute; opacity: 0; pointer-events: none; }
.seg-option span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  font-size: 0.86rem; font-weight: 500; color: var(--ink-strong); transition: border-color var(--dur), background var(--dur);
}
.seg-option:hover span { border-color: var(--accent); }
.seg-option input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.seg-option input:focus-visible + span { box-shadow: var(--focus-ring); }

/* Download buttons (Excel / PDF) next to the filters */
.export-group { display: inline-flex; gap: var(--space-2); }
.export-group .btn { gap: 6px; }
.export-group .material-icons { font-size: 1.1rem; }
.export-group .btn[aria-busy="true"] { opacity: 0.6; }
#shownTotal { margin-left: 6px; }
#shownTotal:not(:empty)::before, #archiveTotal:not(:empty)::before { content: '· '; }
#shownTotal b, #archiveTotal b { color: var(--ink-strong); }

/* Payment tag in the bookings list */
.crm-pay { align-self: flex-start; margin-top: 3px; padding: 1px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; background: #eee9e3; color: #5a4a40; }
.crm-pay.cash { background: #e3efe3; color: #346237; }
.crm-pay.voucher_pay { background: #e6e0f0; color: #54437d; }
.crm-pay.voucher_buy { background: #f6e8c9; color: #7a5a1c; }

/* Admin → 24-hour time picker (hour : minutes) */
.time-pick { display: flex; align-items: center; gap: 6px; }
.time-pick select { flex: 1; min-width: 0; }
.time-pick-sep { font-weight: 600; color: var(--muted); }

/* ═══════════════ Admin dashboard (CRM style): KPIs, calendar, up next, payment mix ═══════════════ */
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
.kpi { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 1px 2px rgba(60, 40, 30, 0.04); }
.kpi-link { cursor: pointer; transition: border-color var(--dur), box-shadow var(--dur); }
.kpi-link:hover, .kpi-link:focus-visible { border-color: var(--accent); box-shadow: 0 2px 8px rgba(60, 40, 30, 0.08); }
.kpi-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.kpi-icon .material-icons { font-size: 1.25rem; }
.kpi-icon.tone-brand { background: var(--accent-soft); color: var(--accent-ink); }
.kpi-icon.tone-amber { background: #fef3c7; color: #92400e; }
.kpi-icon.tone-green { background: #dcfce7; color: #166534; }
.kpi-icon.tone-blue { background: #e0ecfb; color: #1e4f8f; }
.kpi-body { min-width: 0; }
.kpi-label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted); }
.kpi-value { margin-top: 2px; font-size: 1.65rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.4px; color: var(--ink-strong); }
.kpi-sub { margin-top: 2px; font-size: 0.78rem; color: var(--muted); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-4); align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 16px 18px 0; }
.dash-card-title { font-size: 1rem; font-weight: 600; color: var(--ink-strong); }
.dash-card-note { font-size: 0.74rem; color: var(--muted); }
.dash-cal-nav { display: flex; align-items: center; gap: 6px; }
.dash-cal .calendar-grid { padding: 14px 18px 4px; }
.dash-empty { padding: 18px; font-size: 0.85rem; color: var(--muted); }

.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { gap: 6px; margin-bottom: 6px; }
.calendar-weekday { padding: 4px 6px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.calendar-days { gap: 6px; }
.calendar-day { display: flex; flex-direction: column; gap: 4px; min-height: 104px; padding: 6px; overflow: hidden; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color var(--dur), box-shadow var(--dur), background var(--dur); }
.calendar-day.empty { visibility: hidden; cursor: default; }
.calendar-day.weekend { background: var(--surface-soft); }
.calendar-day:not(.empty):hover, .calendar-day:focus-visible { border-color: var(--accent); box-shadow: 0 2px 8px rgba(60, 40, 30, 0.08); }
.calendar-day.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.calendar-day.closed-day { background: repeating-linear-gradient(135deg, #f6f1ec, #f6f1ec 6px, #efe8e1 6px, #efe8e1 12px); }
.day-top { display: flex; align-items: center; gap: 6px; }
.day-number { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.calendar-day.today .day-number { background: var(--brand); color: #fff; }
.cal-closed { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: #991b1b; }
.cal-count { display: none; margin-left: auto; min-width: 18px; padding: 1px 6px; border-radius: 9px; font-size: 0.68rem; font-weight: 700; text-align: center; background: #dcfce7; color: #166534; }
.cal-count.has-pending { background: #fef3c7; color: #92400e; }
.cal-bookings { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-chip { display: block; padding: 2px 6px; overflow: hidden; font-size: 0.7rem; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; border-left: 3px solid; border-radius: 3px; }
.cal-chip b { font-weight: 700; }
.cal-chip.pending { background: #fef9e7; border-color: #f59e0b; color: #7c4a03; }
.cal-chip.confirmed { background: #effaf2; border-color: #22a653; color: #14532d; }
.cal-chip.cancelled { background: #fef2f2; border-color: #ef4444; color: #991b1b; text-decoration: line-through; }
.cal-more { padding: 0 6px; font-size: 0.68rem; font-weight: 600; color: var(--muted); }
.dash-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 18px 16px; font-size: 0.76rem; color: var(--muted); }
.dash-legend .lg { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.lg.pending { background: #f59e0b; }
.lg.confirmed { background: #22a653; }
.lg.closed { background: #d9cfc6; }

.upnext { padding: 8px 8px 10px; }
.upnext-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--dur); }
.upnext-item:hover, .upnext-item:focus-visible { background: var(--surface-soft); }
.upnext-item .crm-stack { flex: 1; min-width: 0; }
.upnext-item .crm-sub, .upnext-item .crm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upnext-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 46px; flex-shrink: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.66rem; font-weight: 600; text-transform: uppercase; line-height: 1.1; }
.upnext-date b { font-size: 1.1rem; color: var(--ink-strong); }

.paymix { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 18px; }
.paymix-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 24px; align-items: center; gap: 10px; font-size: 0.82rem; }
.paymix-label { color: var(--ink); }
.paymix-bar { height: 8px; overflow: hidden; border-radius: 4px; background: #f1ebe4; }
.paymix-bar i { display: block; height: 100%; border-radius: 4px; background: #c8a15a; }
.paymix-bar i.voucher_pay { background: #7aa7d9; }
.paymix-bar i.voucher_buy { background: #8cc5a0; }
.paymix-bar i.none { background: #cfc4ba; }
.paymix-n { font-weight: 600; text-align: right; color: var(--ink-strong); }

@media (max-width: 1240px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .dash-side { grid-template-columns: minmax(0, 1fr); }
  .dash-cal .calendar-grid { padding: 12px 10px 4px; }
  .calendar-weekdays, .calendar-days { gap: 3px; }
  .calendar-weekday { padding: 4px 0; text-align: center; font-size: 0.64rem; letter-spacing: 0; }
  .calendar-day { align-items: center; min-height: 52px; padding: 4px 2px; gap: 2px; }
  .day-top { flex-direction: column; gap: 3px; }
  .cal-bookings, .cal-closed { display: none; }
  .cal-count { display: block; margin-left: 0; }
  .calendar-day.closed-day .day-number { text-decoration: line-through; color: #a89d94; }
}
@media (max-width: 420px) {
  .kpi { padding: 12px; gap: 10px; }
  .kpi-icon { width: 34px; height: 34px; }
  .kpi-value { font-size: 1.35rem; }
  .kpi-sub { font-size: 0.72rem; }
  .paymix-row { grid-template-columns: 96px minmax(0, 1fr) 22px; }
}
