:root {
  --bg: #12100e;
  --bg-card: #1c1916;
  --bg-elevated: #262220;
  --bg-input: #1f1c19;
  --border: #3d3832;
  --border-light: #4a443c;
  --text: #faf7f2;
  --text-muted: #a89f94;
  --text-subtle: #7a7268;
  --gold: #d4a24a;
  --gold-hover: #e4b85c;
  --gold-dim: rgba(212, 162, 74, 0.14);
  --gold-glow: rgba(212, 162, 74, 0.25);
  --danger: #e05a4f;
  --success: #3dba6d;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
  --touch-min: 48px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.booking-page {
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(212, 162, 74, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(212, 162, 74, 0.04), transparent),
    var(--bg);
}

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

.container {
  max-width: 680px;
  margin: 0 auto;
  padding-left: max(1.375rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.375rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 768px) {
  .container {
    max-width: 760px;
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(28, 25, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.brand:hover { opacity: 0.85; }
.brand h1 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem; }
.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold-dim), rgba(212, 162, 74, 0.06));
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  color: var(--gold);
}

.center-brand { text-align: center; flex-direction: column; margin-bottom: 1.5rem; }
.center-brand .brand-icon { margin: 0 auto 0.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.35rem;
  min-height: var(--touch-min);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #c4923a);
  color: #1a1208;
  box-shadow: 0 2px 12px var(--gold-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-hover), var(--gold));
  color: #1a1208;
  box-shadow: 0 4px 16px var(--gold-glow);
}
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c94a40; color: #fff; }

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; min-height: 36px; }
.btn-block { width: 100%; }
.btn-icon { font-size: 1rem; line-height: 1; }

/* Wizard */
.main-content {
  padding: 1.25rem 0 calc(2.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .main-content { padding: 2rem 0 3.5rem; }
}

.wizard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .wizard { padding: 2rem 2rem 2.25rem; }
}

/* Step progress */
.wizard-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 2rem;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-indicator {
  flex: 1;
  text-align: center;
  padding: 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-subtle);
  position: relative;
  z-index: 1;
  transition: color 0.2s;
}

.step-indicator span {
  display: flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 auto 0.5rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.step-indicator.active { color: var(--gold); }
.step-indicator.active span {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1208;
  box-shadow: 0 0 0 4px var(--gold-dim);
}

.step-indicator.done { color: var(--text-muted); }
.step-indicator.done span {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

.wizard-panel { display: none; animation: fadeIn 0.3s ease; }
.wizard-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-panel h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.panel-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.wizard-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  justify-content: flex-start;
}

.wizard-actions--form {
  margin-top: 1.5rem;
}

.wizard-actions--form .btn-primary { flex: 1; }

@media (max-width: 600px) {
  .wizard-actions--form {
    position: sticky;
    bottom: 0;
    margin: 1.5rem -1.25rem -1.75rem;
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, var(--bg-card) 70%, transparent);
    border-top: 1px solid var(--border);
    z-index: 10;
  }
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.selected-service-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 162, 74, 0.35);
  border-radius: 999px;
  padding: 0.45rem 1rem 0.45rem 0.7rem;
  margin-bottom: 1.25rem;
  font-size: 0.84rem;
}

.pill-icon { font-size: 0.9rem; color: var(--gold); }
.pill-icon--staff {
  display: inline-flex;
  align-items: center;
  color: #fff;
}
.pill-icon--staff svg {
  width: 0.9rem;
  height: 0.9rem;
}
.pill-text { font-weight: 600; color: var(--text); }

/* Service grid */
.service-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
}

.service-card {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.15rem;
  min-height: var(--touch-min);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.service-card:hover {
  border-color: rgba(212, 162, 74, 0.55);
  background: rgba(212, 162, 74, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-card:active { transform: scale(0.99); }

.service-card.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(212, 162, 74, 0.12);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold-dim), transparent);
  border: 1px solid rgba(212, 162, 74, 0.3);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--gold);
}

.service-card-body { flex: 1; min-width: 0; }
.service-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

.service-card-arrow {
  color: var(--text-subtle);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.service-card:hover .service-card-arrow,
.service-card.selected .service-card-arrow {
  color: var(--gold);
  transform: translateX(3px);
}

/* Staff grid */
.staff-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
}

.staff-card {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.15rem;
  min-height: var(--touch-min);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.staff-card:hover {
  border-color: rgba(212, 162, 74, 0.55);
  background: rgba(212, 162, 74, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.staff-card:active { transform: scale(0.99); }

.staff-card.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(212, 162, 74, 0.12);
}

.staff-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-dim), transparent);
  border: 1.5px solid rgba(212, 162, 74, 0.35);
}

.staff-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-card-initials {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.staff-card-body { flex: 1; min-width: 0; }

.staff-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

.staff-card-bio {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.staff-card-arrow {
  color: var(--text-subtle);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.staff-card:hover .staff-card-arrow,
.staff-card.selected .staff-card-arrow {
  color: var(--gold);
  transform: translateX(3px);
}

.selection-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.selection-pills .selected-service-pill,
.selection-pills .selected-staff-pill {
  margin-bottom: 0;
}

.selected-staff-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem 0.45rem 0.7rem;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 162, 74, 0.35);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--text);
}

/* Date & slots */
.date-section { margin-bottom: 1.75rem; }

.date-chips {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.75rem;
  margin-bottom: 0.75rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.date-chips::-webkit-scrollbar { display: none; }

.date-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 0.65rem 0.7rem;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}

.date-chip:hover {
  border-color: rgba(212, 162, 74, 0.45);
  color: var(--text);
}

.date-chip.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1208;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.date-chip-day {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.date-chip-num {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.15rem 0;
}

.date-chip-month {
  font-size: 0.65rem;
  font-weight: 600;
}

.date-chip.selected .date-chip-day,
.date-chip.selected .date-chip-month {
  color: rgba(26, 18, 8, 0.6);
}

.date-picker-wrap { position: relative; }

.date-picker-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a89f94' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
  background-size: contain;
  pointer-events: none;
  opacity: 0.7;
}

.date-input {
  width: 100%;
  padding: 0.85rem 2.75rem 0.85rem 1rem;
  min-height: var(--touch-min);
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  color-scheme: dark;
}

.date-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.slots-section { animation: fadeIn 0.35s ease; }

.slot-date-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: -0.35rem 0 1rem;
  font-weight: 500;
}

.slot-loading {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.slot-skeleton {
  height: 56px;
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--border) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.slot-group { margin-bottom: 1.35rem; }

.slot-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.65rem;
}

.slot-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.55rem;
}

.slot-grid { display: block; }

.slot-btn {
  padding: 0.75rem 0.5rem;
  min-height: var(--touch-min);
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s, box-shadow 0.2s;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.slot-btn:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.slot-btn:active { transform: scale(0.97); }

.slot-btn.selected {
  background: var(--gold);
  color: #1a1208;
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.slot-time { display: block; font-weight: 600; }
.slot-count { display: block; font-size: 0.65rem; color: var(--text-muted); margin-top: 0.2rem; font-weight: 500; }
.slot-btn.selected .slot-count { color: rgba(26, 18, 8, 0.55); }

/* Forms */
.form-stack { display: flex; flex-direction: column; gap: 0.85rem; }
.form-stack label {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: -0.35rem;
}

.form-stack input,
.form-stack textarea,
.form-stack select {
  padding: 0.8rem 1rem;
  min-height: var(--touch-min);
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-stack textarea {
  min-height: auto;
  resize: vertical;
}

.form-stack input::placeholder,
.form-stack textarea::placeholder {
  color: var(--text-subtle);
}

.input-uppercase { text-transform: uppercase; }

.form-stack input:focus,
.form-stack textarea:focus,
.form-stack select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text) !important;
}

.form-errors {
  background: rgba(224, 90, 79, 0.1);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  color: #f5a8a2;
  line-height: 1.45;
}

.form-errors.hidden, .empty-msg.hidden, .hidden { display: none !important; }

/* Summary */
.summary-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(61, 56, 50, 0.5);
}

.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.summary-row span:last-child { font-weight: 600; text-align: right; }

/* Success */
.success-card { text-align: center; padding: 1.5rem 0 0.5rem; }

.success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--gold-dim), rgba(61, 186, 109, 0.1));
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--success);
  margin: 0 auto 1.25rem;
}

.success-card h2 { margin-bottom: 0.5rem; }

.success-code { margin: 1.25rem 0; font-size: 1.05rem; }
.success-code strong {
  display: block;
  color: var(--gold);
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  margin-top: 0.35rem;
  font-weight: 700;
}

.success-hint { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 1.5rem; line-height: 1.5; }

.success-card .btn { margin: 0.3rem; }

#success-details { text-align: left; max-width: 400px; margin: 0 auto 1rem; }

/* Lookup */
.lookup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .lookup-card { padding: 2rem; }
}

.lookup-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.lookup-result { margin-top: 1.5rem; }

/* Auth */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: max(1.5rem, env(safe-area-inset-top, 0px)) max(1.5rem, env(safe-area-inset-right, 0px)) max(1.5rem, env(safe-area-inset-bottom, 0px)) max(1.5rem, env(safe-area-inset-left, 0px));
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.auth-card .subtitle { color: var(--text-muted); font-size: 0.9rem; }
.auth-footer { text-align: center; margin-top: 1rem; font-size: 0.85rem; }

.login-staff-banner {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.login-staff-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.login-staff-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.login-staff-chip {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 162, 74, 0.35);
  color: var(--gold-hover);
  font-size: 0.8rem;
  font-weight: 500;
}

.temp-password-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 1rem 0;
}
.temp-password-box code {
  color: var(--gold-hover);
  font-size: 0.95rem;
}

.badge-super-admin {
  background: rgba(212, 162, 74, 0.18);
  color: var(--gold-hover);
  border: 1px solid rgba(212, 162, 74, 0.4);
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-user-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.5rem;
}
.topbar-user-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.alert-error { background: rgba(224, 90, 79, 0.1); border: 1px solid var(--danger); color: #f5a8a2; }
.alert-success { background: rgba(61, 186, 109, 0.1); border: 1px solid var(--success); color: #7ee2a0; }

fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 0.5rem; }
legend { padding: 0 0.5rem; font-size: 0.85rem; color: var(--text-muted); }

.empty-msg {
  color: var(--text-muted);
  text-align: center;
  padding: 1.75rem 1.25rem;
  font-size: 0.9rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border);
  line-height: 1.5;
}

/* Mobile refinements */
@media (max-width: 480px) {
  .container {
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }

  .main-content { padding-top: 1.5rem; }

  .wizard,
  .lookup-card {
    padding: 1.35rem 1.15rem 1.5rem;
    border-radius: 14px;
  }

  .step-indicator { font-size: 0.68rem; }
  .step-indicator span { width: 28px; height: 28px; font-size: 0.72rem; }

  .wizard-panel h2 { font-size: 1.25rem; }

  .slot-group-grid { grid-template-columns: repeat(3, 1fr); }

  .header-inner .btn-sm {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
  }

  .brand h1 { font-size: 0.95rem; }
  .brand-icon { width: 38px; height: 38px; font-size: 1rem; border-radius: 10px; }

  .wizard-actions--form {
    margin: 1.5rem -1.15rem -1.5rem;
    padding: 1rem 1.15rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 900px) {
  .service-grid { gap: 1rem; }
  .slot-group-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer a {
  font-weight: 600;
  font-size: 1.05rem;
}

/* Admin */
.admin-page { background: var(--bg); }

.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-brand {
  padding: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.sidebar-nav { flex: 1; padding: 0.75rem; }

.sidebar-nav a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.sidebar-nav a:hover { background: var(--bg-elevated); color: var(--text); }
.sidebar-nav a.active { background: var(--gold-dim); color: var(--gold); }

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sidebar-user { font-size: 0.8rem; color: var(--text-muted); }

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.admin-topbar h1 { font-size: 1.1rem; flex: 1; }

.sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
}

.admin-content { padding: 1.5rem; flex: 1; }

.page-actions { margin-bottom: 1rem; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.card-header h2 { font-size: 1rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat-value { display: block; font-size: 2rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 0.82rem; color: var(--text-muted); }

.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th,
.data-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th { color: var(--text-muted); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-elevated); }

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-confirmed { background: var(--gold-dim); color: var(--gold); }
.badge-completed { background: rgba(61, 186, 109, 0.15); color: var(--success); }
.badge-cancelled { background: rgba(224, 90, 79, 0.15); color: var(--danger); }
.badge-no_show { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.badge-pending { background: rgba(255, 193, 7, 0.15); color: #ffc107; }

.table-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
  justify-content: space-between;
}

.filters-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.filters-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.filters-form input,
.filters-form select {
  padding: 0.45rem 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
}

.form-max { max-width: 520px; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.hidden { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-wide { max-width: 560px; }

.modal-content h2 { font-size: 1.1rem; margin-bottom: 1rem; }

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.confirm-modal-content {
  max-width: 400px;
  text-align: center;
}

.confirm-message {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0.25rem 0 0.5rem;
}

.confirm-modal-content .modal-actions {
  justify-content: center;
  margin-top: 1.25rem;
}

.hours-grid { display: flex; flex-direction: column; gap: 0.5rem; }

.hours-row {
  display: grid;
  grid-template-columns: 100px 40px 1fr 1fr;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
}

.hours-row input[type="time"] {
  padding: 0.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
}

.hours-row.disabled input[type="time"] { opacity: 0.4; pointer-events: none; }

.hours-grid-settings .hours-row {
  grid-template-columns: 90px 70px 1fr 1fr;
}

.hours-day { font-weight: 500; font-size: 0.88rem; }

.hours-open-label {
  font-size: 0.82rem !important;
  white-space: nowrap;
}

.fieldset-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: -0.25rem 0 1rem;
}

/* Settings page */
.settings-page,
.settings-sections {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-sections--security {
  margin-top: 1rem;
}

.settings-section-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.settings-section-header h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.settings-section-desc {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.settings-section-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-section-body--flush {
  padding: 0.75rem 1.25rem 1.25rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.form-field label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 0.7rem 0.9rem;
  min-height: var(--touch-min);
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.form-field textarea {
  min-height: auto;
  resize: vertical;
  line-height: 1.45;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.form-field--spacer { display: none; }

.field-hint {
  font-size: 0.75rem;
  color: var(--text-subtle);
  line-height: 1.35;
}

.input-with-suffix {
  display: flex;
  align-items: stretch;
}

.input-with-suffix input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  min-width: 0;
}

.input-suffix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.input-with-suffix:focus-within input {
  border-color: var(--gold);
}

.input-with-suffix:focus-within .input-suffix {
  border-color: var(--gold);
}

.input-with-suffix:focus-within input {
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.hours-table {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hours-table-head,
.hours-table .hours-row {
  display: grid;
  grid-template-columns: 7rem 5.5rem 1fr 1fr;
  gap: 0.75rem;
  align-items: center;
}

.hours-table-head {
  padding: 0 0.25rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.hours-table .hours-row {
  padding: 0.55rem 0.25rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.hours-table .hours-row:hover {
  background: var(--bg-elevated);
}

.hours-table .hours-row.disabled {
  opacity: 0.55;
}

.hours-table .hours-row.disabled .hours-day {
  color: var(--text-muted);
}

.hours-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text);
  user-select: none;
}

.hours-toggle input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold);
  cursor: pointer;
}

.hours-time-field input[type="time"] {
  width: 100%;
  padding: 0.55rem 0.65rem;
  min-height: 2.5rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hours-time-field input[type="time"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.hours-row.disabled .hours-time-field input[type="time"] {
  opacity: 0.45;
  pointer-events: none;
}

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

.settings-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  align-items: flex-start;
}

.settings-footer .alert,
.settings-footer .form-errors {
  width: 100%;
  margin: 0;
}

.security-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.security-block--divider {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

.security-block-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.reset-link-box {
  margin-top: 0.25rem;
}

.reset-link-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.reset-link-row input {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 150;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }

  .admin-sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: block; }

  .hours-row { grid-template-columns: 1fr; gap: 0.25rem; }

  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  .hours-table-head {
    display: none;
  }

  .hours-table .hours-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "day toggle"
      "start end";
    gap: 0.5rem 0.75rem;
    padding: 0.85rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    margin-bottom: 0.35rem;
  }

  .hours-table .hours-day { grid-area: day; }
  .hours-table .hours-toggle { grid-area: toggle; justify-self: end; }
  .hours-table .hours-time-field:first-of-type { grid-area: start; }
  .hours-table .hours-time-field:last-of-type { grid-area: end; }

  .form-field--spacer { display: none; }

  .reset-link-row {
    flex-direction: column;
  }

  .reset-link-row .btn {
    width: 100%;
  }
}
