/* ── Base ─────────────────────────────────────────────── */
[x-cloak] { display: none !important; }

:root {
  --cms-border-radius: .5rem;
}

/* ── Navigation progress bar ─────────────────────────── */
#nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--bs-primary);
  z-index: 9999;
  pointer-events: none;
  transition: none;
}

#nav-progress.active {
  width: 90%;
  transition: width 8s cubic-bezier(.1, .05, 0, 1);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bs-body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  overflow-wrap: break-word;
  word-break: break-word;
}

body > .container {
  flex: 1;
}

/* ── Scrollbar styling ───────────────────────────────── */
.cms-sidebar-wrapper,
.table-responsive,
.cal-scroll,
.offcanvas-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.15) transparent;
}

.cms-sidebar-wrapper::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.cal-scroll::-webkit-scrollbar,
.offcanvas-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.cms-sidebar-wrapper::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.cal-scroll::-webkit-scrollbar-track,
.offcanvas-body::-webkit-scrollbar-track {
  background: transparent;
}

.cms-sidebar-wrapper::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.cal-scroll::-webkit-scrollbar-thumb,
.offcanvas-body::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.15);
  border-radius: 3px;
}

.cms-sidebar-wrapper::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover,
.cal-scroll::-webkit-scrollbar-thumb:hover,
.offcanvas-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,.3);
}

[data-bs-theme="dark"] .cms-sidebar-wrapper,
[data-bs-theme="dark"] .table-responsive,
[data-bs-theme="dark"] .cal-scroll,
[data-bs-theme="dark"] .offcanvas-body {
  scrollbar-color: rgba(255,255,255,.15) transparent;
}

[data-bs-theme="dark"] .cms-sidebar-wrapper::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] .table-responsive::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] .cal-scroll::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] .offcanvas-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.15);
}

[data-bs-theme="dark"] .cms-sidebar-wrapper::-webkit-scrollbar-thumb:hover,
[data-bs-theme="dark"] .table-responsive::-webkit-scrollbar-thumb:hover,
[data-bs-theme="dark"] .cal-scroll::-webkit-scrollbar-thumb:hover,
[data-bs-theme="dark"] .offcanvas-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.3);
}

/* ── Focus rings ──────────────────────────────────────── */
.btn:focus-visible,
.btn-link.nav-link:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), .25);
}

/* ── Typography ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -.01em;
}

.display-6 {
  font-weight: 700;
}

/* ── Navbar ───────────────────────────────────────────── */
.navbar {
  transition: box-shadow .2s ease;
}

.navbar-brand {
  font-size: 1.15rem;
  letter-spacing: -.02em;
}

.navbar .nav-link {
  font-size: .875rem;
  font-weight: 500;
  padding-top: .625rem;
  padding-bottom: .625rem;
  border-radius: var(--cms-border-radius);
  transition: background-color .15s ease, color .15s ease;
}

.navbar .nav-link:hover {
  background-color: rgba(var(--bs-primary-rgb), .08);
}

.navbar .nav-link.active {
  color: var(--bs-primary) !important;
  background-color: rgba(var(--bs-primary-rgb), .1);
}

.navbar .nav-item.active > .nav-link {
  color: var(--bs-primary) !important;
}

.dropdown-menu {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--cms-border-radius);
  padding: .375rem;
}

.dropdown-item {
  border-radius: calc(var(--cms-border-radius) - 2px);
  font-size: .875rem;
  padding: .425rem .75rem;
}

/* ── Cards ────────────────────────────────────────────── */
.card {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--cms-border-radius);
}

.card-header {
  border-bottom: 1px solid var(--bs-border-color);
  font-weight: 600;
  font-size: .875rem;
}

/* ── Tables ───────────────────────────────────────────── */
.table {
  font-size: .875rem;
}

.table thead th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--bs-secondary-color);
  border-bottom-width: 2px;
}

.table > tbody > tr {
  transition: background-color .12s ease;
}

/* Indicate clickable table rows that contain links */
.table > tbody > tr:has(a.stretched-link),
.table > tbody > tr:has(a[asp-page]) {
  cursor: pointer;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  font-weight: 500;
  border-radius: var(--cms-border-radius);
  font-size: .875rem;
  transition: all .15s ease;
}

/* ── Badges ───────────────────────────────────────────── */
.badge {
  font-weight: 500;
  font-size: .75rem;
  padding: .35em .65em;
  border-radius: 50rem;
}

/* ── Forms ─────────────────────────────────────────────── */
.form-control,
.form-select {
  border-radius: var(--cms-border-radius);
  font-size: .875rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-label {
  font-weight: 500;
  font-size: .8125rem;
  margin-bottom: .25rem;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ── Alerts ───────────────────────────────────────────── */
.alert {
  border-radius: var(--cms-border-radius);
  font-size: .875rem;
}

/* ── Toast slide-in ──────────────────────────────────── */
@keyframes cms-toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.toast-container .toast.show {
  animation: cms-toast-in .3s ease forwards;
}

/* ── Skeleton loading placeholders ────────────────────── */
@keyframes cms-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.cms-skeleton {
  background: linear-gradient(90deg,
    var(--bs-tertiary-bg) 25%,
    var(--bs-secondary-bg) 50%,
    var(--bs-tertiary-bg) 75%);
  background-size: 200% 100%;
  animation: cms-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}

.cms-skeleton-row {
  height: 1em;
  margin-bottom: .5rem;
}

.cms-skeleton-row:last-child {
  width: 60%;
}

/* ── HTMX polling indicator ──────────────────────────── */
.htmx-request .cms-poll-indicator {
  visibility: visible !important;
  opacity: 1 !important;
}

.cms-poll-indicator {
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease;
}

/* ── HTMX boost loading state ────────────────────────── */
body.htmx-request .cms-admin-content,
body.htmx-request > .container {
  opacity: .45;
  pointer-events: none;
  transition: opacity .15s ease;
}

/* ── HTMX slot reload dimming ────────────────────────── */
#slots-container.htmx-request > :not(.htmx-indicator) {
  opacity: .35;
  pointer-events: none;
  transition: opacity .15s ease;
}

#staff-container.htmx-request > :not(.htmx-indicator) {
  opacity: .35;
  pointer-events: none;
  transition: opacity .15s ease;
}

/* ── Password strength meter ─────────────────────────── */
.cms-password-strength {
  display: flex;
  gap: 4px;
  margin-top: .375rem;
}

.cms-password-strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--bs-border-color);
  transition: background-color .2s ease;
}

.cms-password-strength-bar.is-weak   { background: var(--bs-danger); }
.cms-password-strength-bar.is-fair   { background: var(--bs-warning); }
.cms-password-strength-bar.is-good   { background: var(--bs-info); }
.cms-password-strength-bar.is-strong { background: var(--bs-success); }

/* ── Password rules checklist ────────────────────────── */
.cms-password-rules li {
  padding: .125rem 0;
  color: var(--bs-body-color);
  transition: color .15s ease;
}

.cms-password-rules li i {
  margin-right: .25rem;
  transition: color .15s ease;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  font-size: .8125rem;
}

/* ── Admin sidebar ────────────────────────────────────── */
.cms-admin-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

.cms-sidebar-wrapper {
  width: 240px;
  flex-shrink: 0;
}

.cms-sidebar {
  width: 240px;
  min-height: 100%;
  background-color: var(--bs-body-bg);
  border-right: 1px solid var(--bs-border-color);
}

.cms-admin-layout .cms-sidebar-wrapper {
  position: sticky;
  top: 57px;          /* navbar height */
  height: calc(100vh - 57px);
  overflow-y: auto;
}

.cms-admin-content {
  flex: 1;
  min-width: 0;
  overflow-x: clip;
}

/* ── Admin hub cards (home page) ─────────────────────── */
.admin-hub-card {
  transition: transform .15s ease, box-shadow .15s ease;
}

.admin-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.1) !important;
}

.cms-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem .75rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--bs-body-color);
  border-radius: var(--cms-border-radius);
  transition: background-color .15s ease, color .15s ease;
  min-height: 38px;
}

.cms-sidebar .nav-link i {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
  opacity: .7;
}

.cms-sidebar .nav-link:hover {
  background-color: rgba(var(--bs-primary-rgb), .08);
  color: var(--bs-primary);
}

.cms-sidebar .nav-link:hover i {
  opacity: 1;
}

.cms-sidebar .nav-link.active {
  background-color: rgba(var(--bs-primary-rgb), .12);
  color: var(--bs-primary);
  font-weight: 600;
}

.cms-sidebar .nav-link.active i {
  opacity: 1;
}

.cms-sidebar-heading {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bs-secondary-color);
  padding: 1rem .75rem .375rem;
  list-style: none;
}

/* Collapsible sidebar toggle */
.cms-sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: none;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bs-secondary-color);
  padding: 1rem .75rem .375rem;
  cursor: pointer;
  transition: color .15s ease;
}

.cms-sidebar-toggle:hover {
  color: var(--bs-primary);
}

.cms-sidebar-chevron {
  font-size: .625rem;
  transition: transform .2s ease;
}

.cms-sidebar-toggle:not(.collapsed) .cms-sidebar-chevron {
  transform: rotate(180deg);
}

.cms-sidebar-toggle.collapsed .cms-sidebar-chevron {
  transform: rotate(0deg);
}

/* Offcanvas sidebar on mobile */
.offcanvas .cms-sidebar {
  width: 100%;
  border-right: none;
}

/* ── Mobile-friendly page headers ─────────────────────── */
@media (max-width: 575.98px) {
  .cms-admin-content h1.h3 {
    font-size: 1.1rem;
  }

  /* Prevent long text from overflowing page headers */
  .cms-admin-content .d-flex h1,
  .cms-admin-content .d-flex h2 {
    word-break: break-word;
  }
}

/* ── Mobile touch targets ─────────────────────────────── */
@media (max-width: 767.98px) {
  .navbar .nav-link,
  .cms-sidebar .nav-link,
  .offcanvas .nav-link {
    min-height: 44px;
  }

  .btn:not(.btn-sm):not(.btn-close):not(.dropdown-item):not(.page-link) {
    min-height: 44px;
  }
}

.table .btn-sm {
  min-height: 36px;
  min-width: 36px;
  justify-content: center;
}

/* Ensure mobile action buttons in staff/service cards meet touch targets */
.staff-mobile-action-btn,
.svc-mobile-action-btn {
  min-height: 44px;
}

/* ── Responsive tables ────────────────────────────────── */
@media (max-width: 767.98px) {
  .table-responsive-auto {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Avatar (replaces external ui-avatars.com) ────────── */
.cms-avatar {
  background-color: var(--bs-primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: .03em;
  flex-shrink: 0;
  user-select: none;
}

.cms-avatar-xs {
  width: 24px;
  height: 24px;
  font-size: .625rem;
}

.cms-avatar-sm {
  width: 32px;
  height: 32px;
  font-size: .625rem;
}

.cms-avatar-md {
  width: 40px;
  height: 40px;
  font-size: .75rem;
}

.cms-avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1rem;
}

/* ── Time-slot grid ───────────────────────────────────── */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
  gap: .5rem;
}

.slot-grid .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  transition: all .15s ease;
}

/* Selected slot emphasis — individual grid */
.slot-grid .btn.btn-primary {
  box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .35);
  transform: scale(1.04);
  font-weight: 600;
}

.slot-grid .btn-primary small,
.slot-grid .btn-primary .text-body-secondary {
  color: rgba(255, 255, 255, .75) !important;
}

/* Selected slot emphasis — group slot list */
.booking-slot-list .btn {
  transition: all .15s ease;
}

.booking-slot-list .btn.btn-primary {
  box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .35);
  transform: scale(1.01);
}

.booking-slot-list .btn-primary small,
.booking-slot-list .btn-primary .text-body-secondary,
.booking-slot-list .btn-primary div[style*="opacity"] {
  color: rgba(255, 255, 255, .75) !important;
  opacity: 1 !important;
}

/* Staff label inside slot buttons */
.slot-staff-label {
  color: var(--bs-secondary-color);
}

.btn-primary .slot-staff-label {
  color: rgba(255, 255, 255, .75);
}

/* ── Landing Page ─────────────────────────────────────── */

/* Hero */
.landing-hero {
  position: relative;
  padding: 5rem 1rem;
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  overflow: hidden;
}

/* Responsive hero heading */
@media (max-width: 575.98px) {
  .landing-hero .display-5 {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .display-md-4 {
    font-size: 3.5rem !important;
  }
}

.landing-hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

@media (min-width: 768px) {
  .landing-hero {
    padding: 7rem 2rem;
  }
}

/* Step icons */
.landing-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), .1);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Service cards */
.landing-service-card {
  border-radius: var(--cms-border-radius) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

.landing-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .1) !important;
}

.landing-service-icon {
  width: 44px;
  height: 44px;
  border-radius: .75rem;
  background: rgba(var(--bs-primary-rgb), .1);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* CTA band */
.landing-cta {
  background: linear-gradient(135deg, #6610f2 0%, #0d6efd 100%);
}

/* Staff cards */
.landing-staff-card {
  border-radius: var(--cms-border-radius) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

.landing-staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .1) !important;
}

/* Staff initials avatar (replaces external ui-avatars.com) */
.landing-staff-avatar {
  width: 100px;
  height: 100px;
  background-color: var(--staff-bg, var(--bs-primary));
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .05em;
}

/* Map placeholder */
.landing-map-placeholder {
  min-height: 320px;
  background: var(--bs-tertiary-bg);
}

/* Map embed */
.landing-map-embed {
  width: 100%;
  min-height: 320px;
  height: 100%;
  border: 0;
  display: block;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* ── Platform Landing Page ────────────────────────────── */

/* Transparent navbar for platform landing */
.platform-navbar {
  background: transparent !important;
  transition: background-color .3s ease, box-shadow .3s ease;
}

.platform-navbar.is-scrolled {
  background: rgba(26, 58, 122, .95) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}

.platform-navbar-logo {
  height: 36px;
  object-fit: contain;
  border-radius: .25rem;
}

.platform-hero {
  padding: 8rem 1rem 5rem;
}

@media (min-width: 768px) {
  .platform-hero {
    padding: 10rem 2rem 6rem;
  }
}

@media (max-width: 575.98px) {
  .platform-hero .display-4 {
    font-size: 1.75rem;
  }
}

.platform-hero {
  background: linear-gradient(135deg, #1a3a7a 0%, #4A7BF7 50%, #6610f2 100%);
  overflow: hidden;
}

.platform-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.platform-hero-logo-card {
  display: inline-block;
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-radius: 1.25rem;
  box-shadow: 0 .75rem 2.5rem rgba(0, 0, 0, .12);
}

[data-bs-theme="dark"] .platform-hero-logo-card {
  background: rgba(30, 30, 40, .85);
}

.platform-hero-logo {
  max-height: 100px;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .platform-hero-logo {
    max-height: 140px;
    max-width: 380px;
  }
}

.platform-footer-logo {
  height: 32px;
  object-fit: contain;
}

.platform-nav-logo {
  height: 30px;
  object-fit: contain;
}

.platform-feature-card {
  border-radius: var(--cms-border-radius) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

.platform-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .1) !important;
}

.platform-feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), .1);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bs-primary);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-cta {
  background: linear-gradient(135deg, #1a3a7a 0%, #4A7BF7 100%);
}

/* ── Platform Pricing ──────────────────────────────────── */
.platform-pricing-card {
  border-radius: var(--cms-border-radius) !important;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}

.platform-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .1) !important;
}

.platform-pricing-card.is-featured {
  border: 2px solid var(--bs-primary) !important;
}

.platform-pricing-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--bs-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-bottom-left-radius: var(--cms-border-radius);
}

.platform-pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bs-primary);
}

.platform-pricing-period {
  font-size: .875rem;
  color: var(--bs-secondary-color);
}

.platform-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.platform-pricing-features li {
  padding: .375rem 0;
  font-size: .875rem;
  color: var(--bs-body-color);
}

.platform-pricing-features li i {
  color: var(--bs-success);
  margin-right: .5rem;
}

/* ── Platform Testimonials ─────────────────────────────── */
.platform-testimonial-card {
  border-radius: var(--cms-border-radius) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

.platform-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .1) !important;
}

.platform-testimonial-quote {
  font-style: italic;
  color: var(--bs-body-color);
  position: relative;
  padding-left: 1.5rem;
}

.platform-testimonial-quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -.25rem;
  font-size: 2rem;
  color: var(--bs-primary);
  line-height: 1;
}

.platform-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), .1);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .8125rem;
  flex-shrink: 0;
}

/* ── Platform FAQ ──────────────────────────────────────── */
.platform-faq .accordion-item {
  border: none;
  border-bottom: 1px solid var(--bs-border-color);
}

.platform-faq .accordion-button {
  font-weight: 600;
  padding: 1rem 0;
  background: transparent !important;
  box-shadow: none !important;
}

.platform-faq .accordion-button:not(.collapsed) {
  color: var(--bs-primary);
}

.platform-faq .accordion-body {
  padding: 0 0 1rem 0;
}

/* ── Platform Footer Links ─────────────────────────────── */
.platform-footer-heading {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
  color: var(--bs-body-color);
}

.platform-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.platform-footer-links li + li {
  margin-top: .25rem;
}

.platform-footer-links a {
  font-size: .875rem;
  color: var(--bs-secondary-color);
  text-decoration: none;
}

.platform-footer-links a:hover {
  color: var(--bs-primary);
}

/* ── Booking Progress ─────────────────────────────────── */
.booking-progress {
  gap: 0;
}

.booking-progress-step {
  display: flex;
  align-items: center;
  gap: .375rem;
}

.booking-progress-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  font-weight: 600;
  transition: all .2s ease;
}

.booking-progress-step.active .booking-progress-circle {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.booking-progress-label {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--bs-secondary-color);
}

.booking-progress-step.active .booking-progress-label {
  color: var(--bs-primary);
}

.booking-progress-line {
  width: 3rem;
  height: 2px;
  background: var(--bs-border-color);
  margin: 0 .25rem;
  transition: background .2s ease;
}

.booking-progress-line.active {
  background: var(--bs-primary);
}

@media (max-width: 575.98px) {
  .booking-progress-line {
    width: 2rem;
  }
}

/* ── Admin Calendar ──────────────────────────────────── */
.cal-wrapper {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--cms-border-radius);
  overflow: hidden;
  background: var(--bs-body-bg);
}

.cal-scroll {
  overflow: auto;
  max-height: calc(100vh - 240px);
}

.cal-flex-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bs-tertiary-bg);
  border-bottom: 2px solid var(--bs-border-color);
}

.cal-flex-body {
  display: flex;
}

.cal-gutter-cell {
  flex: 0 0 56px;
  min-width: 56px;
}

.cal-flex-col {
  flex: 1 0 140px;
  min-width: 140px;
}

.cal-col-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .5rem .25rem;
  font-size: .8125rem;
  font-weight: 600;
  border-left: 1px solid var(--bs-border-color);
}

.cal-gutter-cell.cal-col-header {
  border-left: none;
}

.cal-time-label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
  font-size: .6875rem;
  color: var(--bs-secondary-color);
  font-weight: 500;
  border-bottom: 1px solid var(--bs-border-color);
}

.cal-column {
  position: relative;
  border-left: 1px solid var(--bs-border-color);
}

.cal-hour-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid var(--bs-border-color);
  pointer-events: none;
}

.cal-half-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed var(--bs-border-color);
  opacity: .3;
  pointer-events: none;
}

/* Events (day & week) */
.cal-event {
  position: absolute;
  left: 2px;
  right: 2px;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .6875rem;
  line-height: 1.3;
  overflow: hidden;
  text-decoration: none;
  display: block;
  z-index: 1;
  border-left: 3px solid;
  transition: box-shadow .15s ease;
}

.cal-event:hover {
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.cal-event-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event-time,
.cal-event-staff {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: .8;
  font-size: .625rem;
}

.cal-event-pending {
  background-color: var(--bs-warning-bg-subtle);
  border-left-color: var(--bs-warning);
  color: var(--bs-warning-text-emphasis);
}

.cal-event-confirmed {
  background-color: var(--bs-primary-bg-subtle);
  border-left-color: var(--bs-primary);
  color: var(--bs-primary-text-emphasis);
}

.cal-event-completed {
  background-color: var(--bs-success-bg-subtle);
  border-left-color: var(--bs-success);
  color: var(--bs-success-text-emphasis);
}

.cal-event-noshow {
  background-color: var(--bs-dark-bg-subtle);
  border-left-color: var(--bs-dark);
  color: var(--bs-dark-text-emphasis);
}

.cal-event-other {
  background-color: var(--bs-secondary-bg-subtle);
  border-left-color: var(--bs-secondary);
  color: var(--bs-secondary-text-emphasis);
}

/* Current time indicator */
.cal-now-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px solid var(--bs-danger);
  z-index: 3;
  pointer-events: none;
}

.cal-now-dot {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bs-danger);
}

/* Today highlighting */
.cal-today-header {
  background-color: var(--bs-primary-bg-subtle);
}

.cal-today-badge {
  background: var(--bs-primary);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cal-today-col {
  background-color: rgba(var(--bs-primary-rgb), .03);
}

/* Month view */
.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-right: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
  border-radius: var(--cms-border-radius);
  overflow: hidden;
  background: var(--bs-body-bg);
}

.cal-month-header {
  padding: .5rem;
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bs-secondary-color);
  background: var(--bs-tertiary-bg);
  border-top: 1px solid var(--bs-border-color);
  border-left: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
}

.cal-month-cell {
  min-height: 110px;
  padding: .375rem;
  border-top: 1px solid var(--bs-border-color);
  border-left: 1px solid var(--bs-border-color);
  transition: background-color .12s ease;
}

.cal-month-cell:hover {
  background-color: var(--bs-tertiary-bg);
}

.cal-month-cell.is-other-month {
  opacity: .4;
}

.cal-month-cell.is-today .cal-month-day {
  background: var(--bs-primary);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cal-month-day {
  font-size: .8125rem;
  font-weight: 500;
}

.cal-month-event {
  display: block;
  padding: 1px 4px;
  margin-bottom: 2px;
  border-radius: 3px;
  font-size: .6875rem;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 2px solid;
}

.cal-month-more {
  display: block;
  font-size: .6875rem;
  color: var(--bs-secondary-color);
  padding: 0 4px;
}

.cal-month-more:hover {
  color: var(--bs-primary);
}

/* Time-off blocks (day & week) */
.cal-timeoff {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2px 6px;
  overflow: hidden;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(var(--bs-danger-rgb), .07) 4px,
    rgba(var(--bs-danger-rgb), .07) 8px
  );
  border-left: 3px solid var(--bs-danger);
}

.cal-timeoff-label {
  font-size: .625rem;
  font-weight: 600;
  color: var(--bs-danger-text-emphasis);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-timeoff .cal-timeoff-delete {
  opacity: 0;
  transition: opacity .15s ease;
  flex-shrink: 0;
}

.cal-timeoff:hover .cal-timeoff-delete {
  opacity: 1;
}

/* Time-off in month view */
.cal-month-timeoff {
  display: flex;
  padding: 1px 4px;
  margin-bottom: 2px;
  border-radius: 3px;
  font-size: .625rem;
  line-height: 1.4;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(var(--bs-danger-rgb), .06) 3px,
    rgba(var(--bs-danger-rgb), .06) 6px
  );
  color: var(--bs-danger-text-emphasis);
  border-left: 2px solid var(--bs-danger);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-month-timeoff .cal-month-timeoff-delete {
  opacity: 0;
  transition: opacity .15s ease;
}

.cal-month-timeoff:hover .cal-month-timeoff-delete {
  opacity: 1;
}

/* Mobile month compact day pills */
.cal-mobile-month-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: .25rem .125rem;
  border-radius: .375rem;
  transition: background-color .12s ease;
}

.cal-mobile-month-day:hover {
  background-color: var(--bs-tertiary-bg);
}

.cal-mobile-month-day.is-today {
  background-color: var(--bs-primary-bg-subtle);
}

.cal-mobile-month-day.is-today .cal-mobile-month-num {
  background: var(--bs-primary);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cal-mobile-month-day.has-events::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bs-primary);
  margin-top: 2px;
}

.cal-mobile-month-dow {
  font-size: .5625rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  letter-spacing: .04em;
}

.cal-mobile-month-num {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--bs-body-color);
}

/* Mobile FAB */
.cal-mobile-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bs-success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  z-index: 1040;
  transition: transform .15s ease, box-shadow .15s ease;
}

.cal-mobile-fab:hover {
  transform: scale(1.1);
  color: #fff;
}

/* Desktop month grid display helper */
.d-sm-grid {
  display: none !important;
}

@media (min-width: 576px) {
  .d-sm-grid {
    display: grid !important;
  }
}

@media (max-width: 767.98px) {
  .cal-month-cell {
    min-height: 80px;
    padding: .25rem;
  }

  .cal-month-cell .cal-month-event {
    font-size: .5625rem;
  }
}

/* ── Staff Management ─────────────────────────────────── */

/* ── Schedule Page ────────────────────────────────────── */
.sched-header-card {
  border-radius: var(--cms-border-radius);
  overflow: hidden;
}

.sched-header-body {
  padding: 1.25rem;
}

.sched-header-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bs-border-color);
  flex-shrink: 0;
}

/* Day cards (mobile) */
.sched-day-card {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--bs-border-color);
  transition: background-color .15s ease;
}

.sched-day-card:last-child {
  border-bottom: none;
}

.sched-day-card:hover {
  background-color: var(--bs-tertiary-bg);
}

.sched-day-off {
  opacity: .5;
  background-color: transparent !important;
}

/* Visual timeline */
.sched-visual {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sched-visual-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 28px;
}

.sched-visual-label {
  flex: 0 0 36px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
  text-align: right;
}

.sched-visual-track {
  flex: 1;
  position: relative;
  height: 28px;
  background: var(--bs-tertiary-bg);
  border-radius: 6px;
  overflow: hidden;
}

.sched-visual-bar {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--bs-primary), color-mix(in srgb, var(--bs-primary), var(--bs-info) 40%));
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  transition: opacity .15s ease;
}

.sched-visual-bar:hover {
  opacity: .85;
}

.sched-visual-text {
  font-size: .625rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.sched-visual-break {
  position: absolute;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(var(--bs-warning-rgb), .25) 3px,
    rgba(var(--bs-warning-rgb), .25) 6px
  );
  border-left: 2px solid var(--bs-warning);
  border-right: 2px solid var(--bs-warning);
  z-index: 1;
}

.sched-visual-axis {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  font-size: .625rem;
  color: var(--bs-secondary-color);
  font-weight: 500;
  height: auto;
  padding-top: 2px;
}

/* Time-off entries */
.sched-timeoff-item {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--bs-border-color);
  transition: background-color .12s ease;
}

.sched-timeoff-item:last-child {
  border-bottom: none;
}

.sched-timeoff-item:hover {
  background-color: var(--bs-tertiary-bg);
}

.sched-timeoff-item.is-past {
  opacity: .45;
}

.sched-timeoff-icon {
  width: 36px;
  height: 36px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .875rem;
}

.sched-section-empty {
  padding: 3rem 1rem;
}

.sched-section-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto .75rem;
}

@media (max-width: 575.98px) {
  .sched-header-avatar {
    width: 48px;
    height: 48px;
  }

  .sched-header-body {
    padding: 1rem;
  }

  .sched-day-card {
    padding: .875rem 1rem;
  }

  .sched-visual-label {
    flex: 0 0 28px;
    font-size: .6875rem;
  }
}

/* ── Staff Management Cards ──────────────────────────── */
.staff-card {
  border-radius: var(--cms-border-radius);
  transition: box-shadow .2s ease, transform .2s ease;
  overflow: hidden;
}

.staff-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08) !important;
}

.staff-card-body {
  padding: 1.25rem;
}

.staff-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bs-border-color);
  flex-shrink: 0;
  transition: border-color .15s ease;
}

.staff-card:hover .staff-avatar {
  border-color: var(--bs-primary);
}

.staff-contact-item {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  color: var(--bs-secondary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-contact-item i {
  font-size: .75rem;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.staff-days {
  display: flex;
  gap: 3px;
}

.staff-day-dot {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: .625rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.staff-day-dot.is-on {
  background-color: rgba(var(--bs-success-rgb), .15);
  color: var(--bs-success-text-emphasis);
}

.staff-day-dot.is-off {
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  opacity: .5;
}

.staff-actions {
  display: flex;
  gap: .375rem;
  flex-wrap: wrap;
}

/* ── Clickable KPI Cards ─────────────────────────────── */
.card:has(.stretched-link) {
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:has(.stretched-link):hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08) !important;
}

/* ── Back to top ─────────────────────────────────────── */
.cms-back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  color: var(--bs-secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  transform: translateY(.5rem);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease,
              background-color .15s ease, color .15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  cursor: pointer;
}

.cms-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cms-back-to-top:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

/* ── Reusable empty state ────────────────────────────── */
.cms-empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
}

.cms-empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), .08);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}

/* ── Stat Cards (shared) ─────────────────────────────── */
.cms-stat-card {
  border-radius: var(--cms-border-radius);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.cms-stat-pill {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .875rem;
  border-radius: var(--cms-border-radius);
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  min-width: 0;
}

.cms-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cms-stat-pill .cms-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: .5rem;
  font-size: .875rem;
}

.cms-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.cms-stat-pill .cms-stat-value {
  font-size: 1.125rem;
}

.cms-stat-label {
  font-size: .75rem;
  color: var(--bs-secondary-color);
  font-weight: 500;
}

.cms-stat-pill .cms-stat-label {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

@media (max-width: 575.98px) {
  .cms-stat-pill {
    padding: .375rem .625rem;
  }

  .cms-stat-pill .cms-stat-value {
    font-size: 1rem;
  }
}

.staff-inactive-overlay {
  position: relative;
}

.staff-inactive-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(var(--bs-body-bg-rgb, 255, 255, 255), .5);
  border-radius: var(--cms-border-radius);
  pointer-events: none;
}

.staff-empty-state {
  padding: 4rem 1rem;
}

.staff-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), .1);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

@media (max-width: 575.98px) {
  .staff-card-body {
    padding: 1rem;
  }

  .staff-avatar {
    width: 48px;
    height: 48px;
  }

  .staff-actions .btn {
    flex: 1;
    min-width: 0;
  }
}

/* ── Mobile staff list (< md) ────────────────────────── */
.staff-mobile-card-body {
  padding: .875rem 1rem;
}

.staff-avatar-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bs-border-color);
  flex-shrink: 0;
}

.staff-days-sm {
  display: flex;
  gap: 2px;
}

.staff-day-sm {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  font-size: .5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  opacity: .4;
}

.staff-day-sm.is-on {
  background: rgba(var(--bs-success-rgb), .15);
  color: var(--bs-success-text-emphasis);
  opacity: 1;
}

.staff-mobile-actions {
  display: flex;
  border-top: 1px solid var(--bs-border-color);
}

.staff-mobile-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  border: none;
  background: none;
  color: var(--bs-secondary-color);
  font-size: .875rem;
  text-decoration: none;
  transition: background-color .12s ease, color .12s ease;
  border-right: 1px solid var(--bs-border-color);
  cursor: pointer;
  min-height: 40px;
}

.staff-mobile-action-btn:last-child {
  border-right: none;
}

.staff-mobile-action-btn:hover,
.staff-mobile-action-btn:active {
  background: var(--bs-tertiary-bg);
  color: var(--bs-primary);
}

.staff-mobile-action-btn.text-danger:hover,
.staff-mobile-action-btn.text-danger:active {
  color: var(--bs-danger);
}

/* ── Service Management Cards ────────────────────────── */
.svc-card {
  border-radius: var(--cms-border-radius);
  transition: box-shadow .2s ease, transform .2s ease;
  overflow: hidden;
}

.svc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08) !important;
}

.svc-card-body {
  padding: 1.25rem;
}

.svc-icon {
  width: 48px;
  height: 48px;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.svc-card:hover .svc-icon {
  border-color: var(--bs-primary);
}

.svc-detail-item {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  color: var(--bs-secondary-color);
}

.svc-detail-item i {
  font-size: .75rem;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.svc-actions {
  display: flex;
  gap: .375rem;
  flex-wrap: wrap;
}

.svc-inactive-overlay {
  position: relative;
}

.svc-inactive-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(var(--bs-body-bg-rgb, 255, 255, 255), .5);
  border-radius: var(--cms-border-radius);
  pointer-events: none;
}

.svc-empty-state {
  padding: 4rem 1rem;
}

.svc-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), .1);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

@media (max-width: 575.98px) {
  .svc-card-body {
    padding: 1rem;
  }

  .svc-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .svc-actions .btn {
    flex: 1;
    min-width: 0;
  }
}

/* ── Mobile service list (< md) ──────────────────────── */
.svc-mobile-card-body {
  padding: .875rem 1rem;
}

.svc-mobile-actions {
  display: flex;
  border-top: 1px solid var(--bs-border-color);
}

.svc-mobile-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  border: none;
  background: none;
  color: var(--bs-secondary-color);
  font-size: .875rem;
  text-decoration: none;
  transition: background-color .12s ease, color .12s ease;
  border-right: 1px solid var(--bs-border-color);
  cursor: pointer;
  min-height: 40px;
}

.svc-mobile-action-btn:last-child {
  border-right: none;
}

.svc-mobile-action-btn:hover,
.svc-mobile-action-btn:active {
  background: var(--bs-tertiary-bg);
  color: var(--bs-primary);
}

.svc-mobile-action-btn.text-danger:hover,
.svc-mobile-action-btn.text-danger:active {
  color: var(--bs-danger);
}

/* ── Group Sessions ──────────────────────────────────── */

/* Header card */
.gs-header-card {
  border-radius: var(--cms-border-radius);
  overflow: hidden;
}

.gs-header-body {
  padding: 1.25rem;
}

.gs-header-icon {
  width: 56px;
  height: 56px;
  border-radius: .75rem;
  background: rgba(var(--bs-primary-rgb), .1);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Day section header */
.gs-day-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.5rem 0 .75rem;
}

.gs-day-label {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bs-body-color);
  white-space: nowrap;
}

.gs-day-line {
  flex: 1;
  height: 1px;
  background: var(--bs-border-color);
}

/* Session cards */
.gs-card {
  border-radius: var(--cms-border-radius);
  transition: transform .15s ease, box-shadow .15s ease;
  overflow: hidden;
}

.gs-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08) !important;
}

.gs-card-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--bs-primary), color-mix(in srgb, var(--bs-primary), var(--bs-info) 40%));
}

.gs-inactive {
  opacity: .55;
}

.gs-inactive .gs-card-accent {
  background: var(--bs-secondary-bg);
}

.gs-time-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8125rem;
  padding: .3rem .75rem;
  border-radius: .5rem;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
}

.gs-avatar {
  width: 44px;
  height: 44px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--bs-border-color);
  transition: border-color .15s ease;
}

.gs-card:hover .gs-avatar {
  border-color: var(--bs-primary);
}

.gs-detail {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .75rem;
  color: var(--bs-secondary-color);
  font-weight: 500;
}

.gs-detail i {
  font-size: .7rem;
}

/* Weekly timetable */
.gs-timetable thead th {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .625rem .25rem;
  border-bottom: 2px solid var(--bs-border-color);
}

.gs-tt-slot {
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  padding: .5rem .625rem;
  background: var(--bs-body-bg);
  transition: box-shadow .15s ease, border-color .15s ease;
}

.gs-tt-slot:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), .12);
}

.gs-tt-inactive {
  opacity: .4;
  border-style: dashed;
}

.gs-tt-time {
  font-size: .75rem;
  font-weight: 700;
  color: var(--bs-primary);
  margin-bottom: .25rem;
}

.gs-tt-staff {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .75rem;
  font-weight: 500;
  margin-bottom: .125rem;
}

.gs-tt-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.gs-tt-avatar-ph {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), .1);
  color: var(--bs-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .55rem;
  flex-shrink: 0;
}

.gs-tt-meta {
  font-size: .6875rem;
  color: var(--bs-secondary-color);
}

/* Empty state */
.gs-empty-state {
  padding: 4rem 1rem;
}

.gs-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), .1);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

@media (max-width: 575.98px) {
  .gs-header-body {
    padding: 1rem;
  }

  .gs-header-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .gs-avatar {
    width: 36px;
    height: 36px;
  }

  .gs-card .card-body {
    padding: .75rem !important;
  }
}