/* ==========================================================================
   HouseSpa Booking Plugin — Dark Luxury Identity
   Matches housespa.mx: #050505 bg · #FAF9F6 ivory · #B76E79 rose
   ========================================================================== */

:root {
  /* Brand tokens — in sync with theme's housespa-theme.css */
  --hs-bg:           #050505;
  --hs-bg-card:      #0D0D0D;
  --hs-bg-surface:   #161616;
  --hs-bg-muted:     #262626;
  --hs-ivory:        #FAF9F6;
  --hs-ivory-warm:   #F4F1EA;
  --hs-ivory-muted:  #B5B0A7;
  --hs-rose:         #B76E79;
  --hs-rose-light:   #D29FA6;
  --hs-rose-dark:    #9E5562;
  --hs-border:       rgba(255, 255, 255, 0.07);
  --hs-border-rose:  rgba(183, 110, 121, 0.35);
  --hs-radius:       14px;
  --hs-radius-sm:    8px;
  --hs-radius-pill:  100px;
  --hs-shadow:       0 4px 24px rgba(0,0,0,.5);
  --hs-shadow-lg:    0 12px 48px rgba(0,0,0,.7);
  --hs-glow:         0 0 24px rgba(183,110,121,.12);
  --hs-transition:   .22s cubic-bezier(0.16, 1, 0.3, 1);
  --hs-font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --hs-font-serif:   'Playfair Display', Georgia, serif;
}

/* ─── Base wrappers ──────────────────────────────────────────────────────── */
.hs-booking,
.hs-therapist-dashboard,
.hs-customer-dashboard {
  font-family: var(--hs-font-sans);
  color: var(--hs-ivory);
  background: var(--hs-bg);
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 64px;
  -webkit-font-smoothing: antialiased;
}

/* ─── Progress indicator ─────────────────────────────────────────────────── */
.hs-progress {
  margin: 40px 0 48px;
  position: relative;
}

.hs-progress-bar {
  height: 1px;
  background: var(--hs-border);
  margin: 0 40px;
  position: relative;
  top: 22px;
  z-index: 0;
}

.hs-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hs-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.hs-step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hs-bg-surface);
  border: 1px solid var(--hs-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 14px;
  color: var(--hs-ivory-muted);
  transition: var(--hs-transition);
}

.hs-step.active .hs-step-circle {
  background: var(--hs-rose);
  border-color: var(--hs-rose);
  color: var(--hs-ivory);
  box-shadow: 0 0 20px rgba(183,110,121,.3);
}

.hs-step.completed .hs-step-circle {
  background: var(--hs-bg-surface);
  border-color: var(--hs-rose);
  color: var(--hs-rose);
}

.hs-step-label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--hs-ivory-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hs-step.active .hs-step-label  { color: var(--hs-rose-light); }
.hs-step.completed .hs-step-label { color: var(--hs-rose); }

/* ─── Step headings ──────────────────────────────────────────────────────── */
.hs-step-heading {
  font-family: var(--hs-font-serif);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 400;
  color: var(--hs-ivory);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hs-step-sub {
  color: var(--hs-ivory-muted);
  margin: 0 0 36px;
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Services grid ──────────────────────────────────────────────────────── */
.hs-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.hs-service-card {
  background: var(--hs-bg-card);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 24px;
  cursor: pointer;
  transition: var(--hs-transition);
  position: relative;
  overflow: hidden;
}

.hs-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(183,110,121,.06) 0%, transparent 60%);
  opacity: 0;
  transition: var(--hs-transition);
}

.hs-service-card:hover {
  border-color: var(--hs-border-rose);
  box-shadow: var(--hs-glow);
  transform: translateY(-2px);
}

.hs-service-card:hover::before { opacity: 1; }

.hs-service-card.selected {
  border-color: var(--hs-rose);
  background: var(--hs-bg-surface);
}

.hs-service-card.selected::before { opacity: 1; }

.hs-service-card.selected::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: var(--hs-rose);
  border-radius: 50%;
  color: var(--hs-ivory);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hs-service-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--hs-radius-sm);
  margin-bottom: 16px;
  opacity: .85;
}

.hs-service-name {
  font-family: var(--hs-font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--hs-ivory);
  margin: 0 0 6px;
}

.hs-service-desc {
  font-size: 13px;
  color: var(--hs-ivory-muted);
  margin: 0 0 14px;
  line-height: 1.55;
}

.hs-service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.hs-service-duration {
  font-size: 12px;
  color: var(--hs-ivory-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hs-service-price {
  font-size: 19px;
  font-weight: 600;
  color: var(--hs-rose-light);
  letter-spacing: -0.01em;
}

/* ─── Add-ons ─────────────────────────────────────────────────────────────── */
.hs-addons-section h3 {
  font-family: var(--hs-font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--hs-ivory);
  margin: 0 0 16px;
  letter-spacing: .5px;
}

.hs-addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.hs-addon-card {
  background: var(--hs-bg-card);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: var(--hs-transition);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hs-addon-card:hover { border-color: var(--hs-border-rose); }

.hs-addon-card.selected {
  border-color: var(--hs-rose);
  background: var(--hs-bg-surface);
}

.hs-addon-check {
  width: 20px;
  height: 20px;
  border: 1px solid var(--hs-border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: var(--hs-transition);
  background: var(--hs-bg-surface);
}

.hs-addon-card.selected .hs-addon-check {
  background: var(--hs-rose);
  border-color: var(--hs-rose);
  color: var(--hs-ivory);
}

.hs-addon-check::after {
  content: '✓';
  font-size: 11px;
  opacity: 0;
  color: var(--hs-ivory);
  transition: opacity .15s;
}

.hs-addon-card.selected .hs-addon-check::after { opacity: 1; }

.hs-addon-info { flex: 1; }

.hs-addon-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--hs-ivory);
  margin: 0 0 2px;
}

.hs-addon-meta {
  font-size: 12px;
  color: var(--hs-ivory-muted);
}

/* ─── Price summary ──────────────────────────────────────────────────────── */
.hs-price-summary {
  background: var(--hs-bg-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 20px 24px;
  margin-top: 8px;
}

.hs-price-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
  color: var(--hs-ivory-muted);
  border-bottom: 1px solid var(--hs-border);
}

.hs-price-row:last-child { border-bottom: none; }

.hs-price-total {
  font-size: 18px;
  font-weight: 600;
  color: var(--hs-ivory) !important;
  padding-top: 14px !important;
}

.hs-price-total span:last-child { color: var(--hs-rose-light); }

.hs-duration-display {
  margin-top: 10px;
  font-size: 12px;
  color: var(--hs-ivory-muted);
  display: flex;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* ─── Form fields ─────────────────────────────────────────────────────────── */
.hs-form-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.hs-form-grid--2 { grid-template-columns: repeat(2, 1fr); }

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

.hs-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hs-field--full { grid-column: 1 / -1; }

.hs-field label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--hs-ivory-muted);
}

.hs-field label span { color: var(--hs-rose); }

.hs-field input,
.hs-field textarea,
.hs-field select,
.hs-select,
.hs-input {
  background: var(--hs-bg-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--hs-ivory);
  font-family: var(--hs-font-sans);
  transition: var(--hs-transition);
  width: 100%;
  box-sizing: border-box;
}

.hs-field input::placeholder,
.hs-field textarea::placeholder {
  color: rgba(181, 176, 167, 0.4);
}

.hs-field input:focus,
.hs-field textarea:focus,
.hs-field select:focus,
.hs-input:focus {
  outline: none;
  border-color: var(--hs-rose);
  box-shadow: 0 0 0 3px rgba(183,110,121,.12);
  background: var(--hs-bg-muted);
}

/* Select arrow */
.hs-field select,
.hs-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23B5B0A7' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Select option dark */
.hs-field select option,
.hs-select option {
  background: var(--hs-bg-surface);
  color: var(--hs-ivory);
}

.hs-field--checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.hs-field--checkbox label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--hs-ivory-muted);
}

.hs-field--checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--hs-rose);
  cursor: pointer;
}

/* Account section */
.hs-account-section {
  margin-top: 32px;
  padding: 24px;
  background: var(--hs-bg-surface);
  border-radius: var(--hs-radius);
  border: 1px solid var(--hs-border);
}

.hs-section-heading {
  font-family: var(--hs-font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--hs-ivory);
  margin: 0 0 4px;
}

/* ─── Map ─────────────────────────────────────────────────────────────────── */
.hs-map {
  width: 100%;
  height: 260px;
  border-radius: var(--hs-radius);
  border: 1px solid var(--hs-border);
  margin: 12px 0 20px;
  overflow: hidden;
}

/* ─── Calendar ───────────────────────────────────────────────────────────── */
.hs-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hs-month-label {
  font-family: var(--hs-font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--hs-ivory);
  letter-spacing: -0.01em;
}

.hs-cal-nav {
  background: var(--hs-bg-surface);
  border: 1px solid var(--hs-border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 16px;
  color: var(--hs-ivory-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--hs-transition);
  line-height: 1;
}

.hs-cal-nav:hover {
  border-color: var(--hs-rose);
  color: var(--hs-rose);
  background: var(--hs-bg-muted);
}

.hs-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
}

.hs-cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--hs-ivory-muted);
  padding: 8px 0;
}

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

.hs-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  transition: var(--hs-transition);
  border: 1px solid transparent;
  position: relative;
  color: var(--hs-ivory-muted);
}

.hs-cal-day.available {
  color: var(--hs-ivory);
  font-weight: 500;
  cursor: pointer;
}

.hs-cal-day.available::after {
  content: '';
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hs-rose);
}

.hs-cal-day.available:hover {
  background: var(--hs-bg-surface);
  border-color: var(--hs-border-rose);
}

.hs-cal-day.selected {
  background: var(--hs-rose);
  border-color: var(--hs-rose);
  color: var(--hs-ivory);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(183,110,121,.35);
}

.hs-cal-day.selected::after { display: none; }

.hs-cal-day.unavailable {
  color: rgba(181, 176, 167, 0.2);
  cursor: not-allowed;
}

.hs-cal-day.today {
  border-color: var(--hs-border-rose);
  color: var(--hs-ivory);
}

.hs-cal-day.other-month {
  opacity: .2;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Time slots ─────────────────────────────────────────────────────────── */
.hs-time-slots {
  margin-top: 32px;
}

.hs-slots-heading {
  font-family: var(--hs-font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--hs-ivory);
  margin: 0 0 18px;
}

.hs-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hs-slot {
  background: var(--hs-bg-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-pill);
  padding: 9px 22px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--hs-font-sans);
  color: var(--hs-ivory-muted);
  transition: var(--hs-transition);
  letter-spacing: .03em;
}

.hs-slot:hover {
  border-color: var(--hs-border-rose);
  color: var(--hs-ivory);
  background: var(--hs-bg-muted);
}

.hs-slot.selected {
  background: var(--hs-rose);
  border-color: var(--hs-rose);
  color: var(--hs-ivory);
  box-shadow: 0 0 14px rgba(183,110,121,.3);
}

/* ─── Review card ─────────────────────────────────────────────────────────── */
.hs-review-card {
  background: var(--hs-bg-card);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.hs-review-section { margin-bottom: 22px; }

.hs-review-section h3 {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--hs-rose);
  margin: 0 0 12px;
  border-bottom: 1px solid var(--hs-border);
  padding-bottom: 8px;
}

.hs-review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 5px 0;
  color: var(--hs-ivory-muted);
}

.hs-review-row strong { color: var(--hs-ivory); }
.hs-review-row span:last-child { color: var(--hs-ivory); }

/* ─── Navigation buttons ─────────────────────────────────────────────────── */
.hs-nav-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.hs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--hs-radius-pill);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--hs-font-sans);
  letter-spacing: .08em;
  cursor: pointer;
  transition: var(--hs-transition);
  border: none;
  text-transform: uppercase;
  line-height: 1;
}

.hs-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.hs-btn--primary {
  background: var(--hs-rose);
  color: var(--hs-ivory);
  box-shadow: 0 4px 16px rgba(183,110,121,.25);
}

.hs-btn--primary:hover:not(:disabled) {
  background: var(--hs-rose-dark);
  box-shadow: 0 6px 24px rgba(183,110,121,.4);
  transform: translateY(-1px);
}

.hs-btn--secondary {
  background: transparent;
  color: var(--hs-ivory-muted);
  border: 1px solid var(--hs-border);
}

.hs-btn--secondary:hover {
  border-color: var(--hs-border-rose);
  color: var(--hs-ivory);
  background: var(--hs-bg-surface);
}

.hs-btn--checkout {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 14px;
  letter-spacing: .12em;
  border-radius: var(--hs-radius);
  background: var(--hs-rose);
  color: var(--hs-ivory);
  box-shadow: 0 4px 24px rgba(183,110,121,.3);
}

.hs-btn--checkout:hover:not(:disabled) {
  background: var(--hs-rose-dark);
  box-shadow: 0 8px 32px rgba(183,110,121,.45);
  transform: translateY(-1px);
}

.hs-btn--danger {
  background: rgba(198, 40, 40, 0.15);
  color: #ef9a9a;
  border: 1px solid rgba(198, 40, 40, 0.3);
}

.hs-btn--danger:hover {
  background: rgba(198, 40, 40, 0.25);
}

.hs-btn--xl {
  padding: 18px 48px;
  font-size: 15px;
  letter-spacing: .12em;
  width: 100%;
  justify-content: center;
}

/* Checkout lock icon */
.hs-btn-icon {
  font-size: 14px;
  opacity: .8;
}

/* ─── Alerts ──────────────────────────────────────────────────────────────── */
.hs-alert {
  border-radius: var(--hs-radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 20px;
}

.hs-alert--error {
  background: rgba(183, 28, 28, 0.12);
  border-left: 3px solid #ef5350;
  color: #ef9a9a;
}

.hs-alert--success {
  background: rgba(27, 94, 32, 0.12);
  border-left: 3px solid #66bb6a;
  color: #a5d6a7;
}

/* ─── Terms ───────────────────────────────────────────────────────────────── */
.hs-terms {
  background: var(--hs-bg-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-sm);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--hs-ivory-muted);
}

.hs-terms a { color: var(--hs-rose-light); }
.hs-terms a:hover { color: var(--hs-rose); }

.hs-terms label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--hs-ivory-muted);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ─── Loader ──────────────────────────────────────────────────────────────── */
.hs-loader {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hs-ivory-muted);
  font-size: 14px;
  padding: 40px;
  grid-column: 1 / -1;
}

.hs-loader span {
  width: 20px;
  height: 20px;
  border: 2px solid var(--hs-border);
  border-top-color: var(--hs-rose);
  border-radius: 50%;
  animation: hs-spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes hs-spin { to { transform: rotate(360deg); } }

/* ─── Empty / help states ─────────────────────────────────────────────────── */
.hs-empty {
  color: var(--hs-ivory-muted);
  font-style: italic;
  text-align: center;
  padding: 32px;
}

.hs-help {
  font-size: 13px;
  color: var(--hs-ivory-muted);
  margin: -10px 0 16px;
  line-height: 1.5;
}

/* ─── Panels ──────────────────────────────────────────────────────────────── */
.hs-panel {
  background: var(--hs-bg-card);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.hs-panel h2 {
  font-family: var(--hs-font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--hs-ivory);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hs-border);
  letter-spacing: -0.01em;
}

.hs-panel--hidden { display: none; }
.hs-panel--active { display: block; }

/* ─── Therapist Dashboard ─────────────────────────────────────────────────── */
.hs-dashboard-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 32px 0 40px;
}

.hs-dashboard-header h1 {
  font-family: var(--hs-font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--hs-ivory);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.hs-subtitle {
  color: var(--hs-ivory-muted);
  margin: 0;
  font-size: 14px;
}

.hs-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--hs-rose);
}

.hs-avatar--lg { width: 72px; height: 72px; }

.hs-upcoming-card {
  background: var(--hs-bg-card);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.hs-card--highlight {
  border-color: var(--hs-border-rose);
  background: var(--hs-bg-surface);
  box-shadow: var(--hs-glow);
}

.hs-upcoming-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--hs-rose);
  margin-bottom: 12px;
}

.hs-upcoming-service {
  font-family: var(--hs-font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--hs-ivory);
  margin-bottom: 8px;
}

.hs-upcoming-time {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--hs-ivory-muted);
  margin-bottom: 16px;
}

.hs-in-progress-badge {
  font-size: 14px;
  color: var(--hs-rose-light);
  font-weight: 500;
  padding: 12px;
  text-align: center;
}

.hs-empty-state {
  text-align: center;
  padding: 48px;
  color: var(--hs-ivory-muted);
}

.hs-empty-icon {
  font-size: 32px;
  color: var(--hs-rose);
  margin-bottom: 12px;
  opacity: .5;
}

/* ─── Availability grid ───────────────────────────────────────────────────── */
.hs-availability-grid { margin-bottom: 20px; }

.hs-avail-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hs-border);
}

.hs-avail-row:last-child { border-bottom: none; }

.hs-avail-day {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 130px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--hs-ivory);
}

.hs-avail-times {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.hs-avail-times input {
  background: var(--hs-bg-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  color: var(--hs-ivory);
  transition: var(--hs-transition);
}

.hs-avail-times input:focus {
  outline: none;
  border-color: var(--hs-rose);
}

.hs-avail-times input:disabled { opacity: .3; }

.hs-save-status {
  font-size: 13px;
  color: var(--hs-rose-light);
  margin-left: 12px;
}

/* Block dates */
.hs-block-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.hs-block-form input {
  background: var(--hs-bg-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--hs-ivory);
}

.hs-block-form input:focus {
  outline: none;
  border-color: var(--hs-rose);
}

.hs-btn-icon-delete {
  background: none;
  border: none;
  color: #ef9a9a;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--hs-transition);
}

.hs-btn-icon-delete:hover { background: rgba(198, 40, 40, 0.12); }

/* ─── Tables ──────────────────────────────────────────────────────────────── */
.hs-table-wrapper { overflow-x: auto; }

.hs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--hs-ivory);
}

.hs-table th {
  background: var(--hs-bg-surface);
  color: var(--hs-ivory-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--hs-border);
}

.hs-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hs-border);
  vertical-align: middle;
  color: var(--hs-ivory-muted);
}

.hs-table tr:last-child td { border-bottom: none; }

/* ─── Status badges ───────────────────────────────────────────────────────── */
.hs-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--hs-bg-muted);
  color: var(--hs-ivory-muted);
}

.hs-badge--pending,
.hs-badge--dispatching  { background: rgba(245,124,0,.12);  color: #ffcc80; }
.hs-badge--assigned,
.hs-badge--confirmed    { background: rgba(21,101,192,.15); color: #90caf9; }
.hs-badge--in_progress  { background: rgba(46,125,50,.15);  color: #a5d6a7; }
.hs-badge--completed    { background: rgba(183,110,121,.15);color: var(--hs-rose-light); }
.hs-badge--cancelled    { background: rgba(198,40,40,.12);  color: #ef9a9a; }
.hs-badge--rescheduled  { background: rgba(136,14,79,.15);  color: #f48fb1; }
.hs-badge--active       { background: rgba(46,125,50,.15);  color: #a5d6a7; }

/* ─── Customer Dashboard tabs ─────────────────────────────────────────────── */
.hs-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--hs-border);
  margin: 24px 0 0;
  overflow-x: auto;
}

.hs-tab {
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--hs-font-sans);
  color: var(--hs-ivory-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--hs-transition), border-color var(--hs-transition);
  white-space: nowrap;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.hs-tab:hover { color: var(--hs-ivory); }

.hs-tab--active {
  color: var(--hs-ivory);
  border-bottom-color: var(--hs-rose);
}

.hs-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hs-rose);
  color: var(--hs-ivory);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
}

.hs-actions-cell { white-space: nowrap; }
.hs-actions-cell .hs-btn { margin: 2px 4px 2px 0; }

/* Form rows in customer dashboard */
.hs-form-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .hs-form-row--2col { grid-template-columns: 1fr; }
}

.hs-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

/* ─── Modal ───────────────────────────────────────────────────────────────── */
.hs-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hs-modal[hidden] { display: none; }

.hs-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.hs-modal__dialog {
  position: relative;
  background: var(--hs-bg-card);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 36px 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--hs-shadow-lg);
  z-index: 1;
}

.hs-modal__title {
  font-family: var(--hs-font-serif);
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 400;
  color: var(--hs-ivory);
}

.hs-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ─── Dashboard login page ────────────────────────────────────────────────── */
.hs-dashboard-login {
  padding: 48px;
  text-align: center;
  background: var(--hs-bg-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hs-booking,
  .hs-therapist-dashboard,
  .hs-customer-dashboard {
    padding: 0 12px 48px;
  }

  .hs-services-grid  { grid-template-columns: 1fr; }
  .hs-addons-grid    { grid-template-columns: 1fr; }
  .hs-upcoming-card  { padding: 20px; }
  .hs-panel          { padding: 20px; }
  .hs-review-card    { padding: 20px 20px; }
  .hs-avail-row      { flex-direction: column; align-items: flex-start; }
  .hs-block-form     { flex-direction: column; }
  .hs-block-form input { width: 100%; }
  .hs-modal__dialog  { padding: 28px 24px; }
  .hs-nav-buttons    { flex-wrap: wrap; }
  .hs-btn--checkout  { font-size: 12px; }
}
