/* ═══════════════════════════════════════════════════════════════════════
   Calenzy Design System
   Replaces Bootstrap. All theming via CSS custom properties.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body { min-height: 100%; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

/* ── Custom Properties ──────────────────────────────────────────────── */
:root {
  --accent: #1c1c1f;
  --accent-fg: #fff;
  --accent-tint: rgba(28,28,31,0.10);
  --danger: #dc2626;
  --danger-tint: rgba(220,38,38,0.10);

  /* Light mode (default) */
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --text: #0a0a0b;
  --text-muted: #71717a;
  --border: rgba(0,0,0,0.08);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --pad: 18px;
  --gap: 18px;
}

[data-theme="dark"] {
  --bg: #111114;
  --surface: #1c1c20;
  --surface-2: #28282d;
  --text: #f4f4f6;
  --text-muted: #9a9aa3;
  --border: rgba(255,255,255,0.12);
}

/* ── Typography ─────────────────────────────────────────────────────── */
body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 22px; }
h5 { font-size: 14.5px; font-weight: 600; }
h6 { font-size: 13.5px; font-weight: 600; }
p { color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* ── Utilities ──────────────────────────────────────────────────────── */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }

/* ── Scrollbars ─────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.18) transparent; }

/* ── Layout ─────────────────────────────────────────────────────────── */
.layout-shell {
  width: 100%;
  min-height: calc(100vh - 72px);
  max-width: 1200px;
  margin: 0 auto;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 72px);
}

.layout-main {
  padding: 32px 20px 140px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.layout-sidebar {
  display: none !important;
}


@media (min-width: 880px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .layout-grid.has-sidebar {
    grid-template-columns: 1fr 380px;
  }
  .layout-main {
    padding: 40px 48px 56px;
    max-width: 780px;
  }
  .layout-sidebar {
    display: block !important;
    padding: 24px 24px 24px 0;
  }
  .layout-sidebar-inner {
    position: sticky;
    top: 90px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px var(--border);
    overflow: hidden;
  }
  .bottom-sheet { display: none !important; }
}

/* ── Topbar ─────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
}
@media (min-width: 880px) {
  .topbar { padding: 20px 40px; }
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.topbar-logo img {
  height: 36px;
  width: auto;
  border-radius: var(--radius-sm);
}
@media (min-width: 880px) {
  .topbar-logo img { height: 40px; }
}
.logo-light { display: block; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.topbar-biz-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-biz-initials {
  width: 36px;
  height: 36px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--accent);
  color: var(--accent-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
[data-theme="dark"] .topbar-biz-initials {
  background: var(--surface-2);
  color: var(--text);
}
@media (min-width: 880px) {
  .topbar-biz-initials { width: 40px; height: 40px; font-size: 15px; }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Step Indicator (Desktop) ───────────────────────────────────────── */
.step-indicator {
  display: none;
  align-items: center;
  gap: 2px;
}
@media (min-width: 880px) {
  .step-indicator { display: flex; }
}

.step-dot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border-radius: 8px;
  background: transparent;
  border: none;
  font-family: inherit;
  flex-shrink: 0;
  cursor: default;
}
.step-dot.clickable { cursor: pointer; }

.step-dot-circle {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s;
  flex-shrink: 0;
}
.step-dot-circle.completed { background: var(--accent); color: var(--accent-fg); }
.step-dot-circle.active { background: var(--accent); color: var(--accent-fg); }
.step-dot-circle.upcoming { background: var(--surface-2); color: var(--text-muted); }
[data-theme="dark"] .step-dot-circle.completed,
[data-theme="dark"] .step-dot-circle.active {
  background: var(--text);
  color: var(--bg);
}

.step-dot-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.step-dot.active .step-dot-label { font-weight: 600; color: var(--text); }

.step-line {
  width: 16px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.25s;
}
.step-line.completed { background: var(--accent); }
[data-theme="dark"] .step-line.completed { background: var(--text-muted); }

/* ── Progress Bar (Mobile) ──────────────────────────────────────────── */
.progress-bar-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px 12px;
}
@media (min-width: 880px) {
  .progress-bar-mobile { display: none; }
}

.progress-track {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px var(--border);
}
.progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.35s cubic-bezier(0.2,0.7,0.3,1);
}
[data-theme="dark"] .progress-fill {
  background: rgba(255,255,255,0.7);
  box-shadow: none;
}
.progress-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* ── Step Header (Mobile) ───────────────────────────────────────────── */
.step-header {
  padding: 0 20px 8px;
}
@media (min-width: 880px) {
  .step-header { display: none; }
}
.step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
}
.step-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Desktop step title (inside main content area) */
.desktop-step-header { display: none; }
@media (min-width: 880px) {
  .desktop-step-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 28px;
  }
  .desktop-step-header h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.025em;
  }
  .desktop-step-header p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.5;
  }
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  appearance: none;
  border: none;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  transition: transform 0.08s, background 0.12s, opacity 0.12s, box-shadow 0.12s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  padding: 13px 18px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}
[data-theme="dark"] .btn-primary {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-outline {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-sm {
  font-size: 13px;
  padding: 8px 12px;
}
.btn-lg {
  font-size: 16px;
  padding: 15px 24px;
}

.btn-icon {
  appearance: none;
  border: none;
  background: var(--surface-2);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.btn-icon:hover { background: var(--surface-2); color: var(--text); }

/* ── Service Cards ──────────────────────────────────────────────────── */
.service-card {
  appearance: none;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: var(--radius);
  padding: var(--pad);
  font-family: inherit;
  transition: box-shadow 0.12s, background 0.12s;
}
.service-card[aria-pressed="true"],
.service-card.selected {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
[data-theme="dark"] .service-card[aria-pressed="true"],
[data-theme="dark"] .service-card.selected {
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.3);
}
.service-card-photo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: calc(var(--radius) - 4px);
  object-fit: cover;
  position: relative;
}
.service-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.service-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.service-card-name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.service-card-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.service-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
.service-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.service-card-duration {
  font-size: 11.5px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-payment {
  font-size: 10.5px;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .badge-payment {
  color: var(--text);
  background: var(--surface-2);
  text-transform: uppercase;
}
.service-card-check {
  display: flex;
  align-items: center;
  padding-left: 4px;
}
.check-ring {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
  opacity: 0.5;
}
.check-ring.checked {
  opacity: 1;
  border-radius: calc(var(--radius) - 6px);
  background: var(--accent);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.15);
}

/* Disabled service (non-bookable) */
.service-card.disabled {
  cursor: default;
  opacity: 0.7;
}

/* ── Summary Card ───────────────────────────────────────────────────── */
.summary-card {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: var(--radius-lg);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.summary-divider {
  height: 1px;
  background: var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.summary-row-label { color: var(--text-muted); }
.summary-row-value { color: var(--text); font-weight: 500; text-align: right; max-width: 60%; }
.summary-row-value.bold { font-weight: 700; }
.summary-row-value.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.summary-row-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}
.summary-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Category Header ────────────────────────────────────────────────── */
.category-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Form Fields ────────────────────────────────────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}
.form-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.form-input {
  appearance: none;
  border: none;
  box-shadow: inset 0 0 0 1px var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  padding: calc(var(--pad) - 4px) 12px;
  border-radius: var(--radius);
  outline: none;
  width: 100%;
  transition: box-shadow 0.12s;
  min-height: 44px;
}
.form-input:focus {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
[data-theme="dark"] .form-input {
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
[data-theme="dark"] .form-input:focus {
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5);
}
.form-input.error {
  box-shadow: inset 0 0 0 1px var(--danger);
}
.form-input.error:focus {
  box-shadow: inset 0 0 0 1.5px var(--danger);
}
.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

textarea.form-input {
  resize: none;
  min-height: 60px;
}

select.form-input {
  cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l3 3 3-3' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-error {
  color: var(--danger);
  font-size: 11.5px;
  font-weight: 500;
}

/* Phone input group */
.phone-group {
  display: flex;
}
.phone-code-btn {
  appearance: none;
  border: none;
  background: var(--surface);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: var(--radius);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding: 0 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 500;
  white-space: nowrap;
}
.phone-input {
  appearance: none;
  border: none;
  flex: 1;
  min-width: 0;
  margin-left: -1px;
  box-shadow: inset 0 0 0 1px var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  padding: 0 12px;
  border-radius: var(--radius);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  outline: none;
  min-height: 44px;
}
.phone-input:focus {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
[data-theme="dark"] .phone-code-btn {
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
[data-theme="dark"] .phone-input {
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
[data-theme="dark"] .phone-input:focus {
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5);
}

/* ── Time Slot Grid ─────────────────────────────────────────────────── */
.time-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.time-slot-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 10px 6px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--surface-2);
  color: var(--text);
  transition: all 0.12s;
  text-align: center;
}
.time-slot-btn:hover:not(:disabled):not(.selected) {
  background: var(--border);
}
.time-slot-btn.selected {
  background: var(--accent);
  color: var(--accent-fg);
}
[data-theme="dark"] .time-slot-btn.selected {
  background: var(--text);
  color: var(--bg);
}
.time-slot-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ── Payment Cards ──────────────────────────────────────────────────── */
.payment-option {
  appearance: none;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: var(--radius);
  padding: var(--pad);
  font-family: inherit;
  width: 100%;
  transition: box-shadow 0.12s;
}
.payment-option.selected {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
[data-theme="dark"] .payment-option.selected {
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.3);
}
.payment-icon {
  width: 36px;
  height: 36px;
  border-radius: calc(var(--radius) - 4px);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.payment-icon img {
  width: 28px;
  height: auto;
}
.payment-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.payment-name { font-size: 14px; font-weight: 600; color: var(--text); }
.payment-desc { font-size: 12px; color: var(--text-muted); }
.payment-radio {
  width: 18px;
  height: 18px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1.5px var(--border);
  transition: all 0.12s;
  flex-shrink: 0;
}
.payment-option.selected .payment-radio {
  box-shadow: inset 0 0 0 5px var(--accent);
}
[data-theme="dark"] .payment-option.selected .payment-radio {
  box-shadow: inset 0 0 0 5px var(--text);
}

/* ── Cart Sidebar ───────────────────────────────────────────────────── */
.sidebar-cart {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  min-height: 0;
  height: 100%;
}
.sidebar-cart-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-cart-header-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sidebar-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}
.sidebar-cart-footer {
  padding: 20px 28px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.sidebar-cart-total-label {
  font-size: 13px;
  color: var(--text-muted);
}
.sidebar-cart-total-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.cart-service-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
}
.cart-service-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cart-service-name { font-weight: 500; color: var(--text); }
.cart-service-duration { font-size: 11.5px; color: var(--text-muted); }
.cart-service-price { font-weight: 500; white-space: nowrap; color: var(--text); }

.cart-date-chip {
  padding: var(--pad);
  border-radius: var(--radius);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-date-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-date-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cart-date-label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.cart-date-sub { font-size: 11.5px; color: var(--text-muted); }

.cart-customer-chip {
  padding: var(--pad);
  border-radius: var(--radius);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cart-customer-name { font-size: 13px; font-weight: 600; color: var(--text); }
.cart-customer-email { font-size: 11.5px; color: var(--text-muted); }

/* Empty cart state */
.cart-empty {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px 20px;
}

/* ── Bottom Sheet (Mobile) ──────────────────────────────────────────── */
.bottom-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--border), 0 -12px 32px -16px rgba(0,0,0,0.2);
  border-top-left-radius: calc(var(--radius-lg) + 4px);
  border-top-right-radius: calc(var(--radius-lg) + 4px);
  max-height: 60%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.2,0.7,0.3,1);
}
@media (min-width: 880px) {
  .bottom-sheet { display: none !important; }
}
.sheet-handle {
  appearance: none;
  border: none;
  background: transparent;
  width: 100%;
  padding: 8px 0 4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
}
.sheet-handle-bar {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
.sheet-summary {
  padding: 4px 16px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sheet-summary-text {
  flex: 1;
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}
.sheet-summary-meta {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 600;
  text-transform: uppercase;
}
.sheet-summary-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.sheet-expanded {
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.sheet-expanded-inner {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

/* Back link in sidebar/sheet */
.back-link {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: none;
  display: inline-block;
}

/* ── Confirmation Screen ────────────────────────────────────────────── */
.confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 4px;
  text-align: center;
}
.confirmation-icon {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirmation-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.confirmation-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 280px;
}
.confirmation-subtitle span { color: var(--text); }

.confirmation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Modal Overlay ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 18px; font-weight: 600; color: var(--text); }
.modal-close {
  appearance: none;
  border: none;
  background: var(--surface-2);
  width: 28px;
  height: 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}

/* ── Alerts ─────────────────────────────────────────────────────────── */
.alert {
  padding: 12px var(--pad);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.5;
}
.alert-success {
  background: var(--accent-tint);
  color: var(--accent);
}
.alert-warning {
  background: rgba(220,38,38,0.08);
  color: var(--danger);
}
.alert-danger {
  background: var(--danger-tint);
  color: var(--danger);
}
.alert-secondary {
  background: var(--surface-2);
  color: var(--text-muted);
}
[data-theme="dark"] .alert-success {
  background: rgba(22,163,74,0.15);
  color: #6ee7a0;
}
[data-theme="dark"] .alert-warning {
  background: rgba(220,38,38,0.15);
  color: #ff8a80;
}
[data-theme="dark"] .alert-danger {
  background: rgba(220,38,38,0.15);
  color: #ff8a80;
}

/* ── Dropdown ───────────────────────────────────────────────────────── */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 60;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), inset 0 0 0 1px var(--border);
  border-radius: var(--radius);
  padding: 4px;
  min-width: 160px;
  display: none;
}
.dropdown-menu.open { display: block; }
.dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: calc(var(--radius) - 2px);
  font-size: 13.5px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
}
.dropdown-item:hover { background: var(--surface-2); }

/* ── Collapsible Section ────────────────────────────────────────────── */
.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.collapsible-header h3 {
  flex: 1;
}
.collapsible-toggle {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.collapsible-toggle svg {
  transition: transform 0.2s;
}
.collapsible-toggle.collapsed svg {
  transform: rotate(180deg);
}
.collapsible-change {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.collapsible-change:hover { color: var(--text); }

.collapsible-body {
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.collapsible-body.collapsed {
  max-height: 0 !important;
  overflow: hidden;
}

/* ── Cancel Page ────────────────────────────────────────────────────── */
.cancel-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cancel-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0,0,0,0.08), inset 0 0 0 1px var(--border);
}
.cancel-card h3 {
  font-weight: 700;
  margin-bottom: 16px;
}
.cancel-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.cancel-info-item h5 {
  margin-bottom: 4px;
}
.cancel-info-item p {
  font-size: 14px;
  color: var(--text-muted);
}
.cancel-success {
  text-align: center;
  padding: 40px;
}
.cancel-success h2 {
  margin-bottom: 8px;
}
.cancel-success p {
  margin-bottom: 32px;
}

/* ── Inactive Overlay ───────────────────────────────────────────────── */
#overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.overlay-content {
  color: white;
  font-size: large;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Spinner ────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  padding: 16px 0;
  text-align: center;
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  opacity: 0.6;
}
.site-footer a:hover { opacity: 1; }

/* ── Section spacing for page content ───────────────────────────────── */
.section { margin-bottom: 32px; }
.section-title { margin-bottom: 12px; }
.services-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.category-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
