/* ================================================================
   INSCAPERS Booking Suite — Public Frontend Styles v2.0
   ================================================================ */

:root {
  --ibs-primary:   #0f172a;
  --ibs-accent:    #6366f1;
  --ibs-secondary: #f59e0b;
  --ibs-font:      'Inter', system-ui, -apple-system, sans-serif;
  --ibs-radius:    10px;
  --ibs-bg:        #f1f5f9;
  --ibs-surface:   #ffffff;
  --ibs-border:    #e2e8f0;
  --ibs-text:      #0f172a;
  --ibs-muted:     #64748b;
  --ibs-shadow:    0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
  --ibs-shadow-md: 0 4px 6px -1px rgba(0,0,0,.08),0 2px 4px rgba(0,0,0,.04);
  --ibs-shadow-lg: 0 20px 40px rgba(0,0,0,.10);
  --ibs-transition:all .18s ease;
  --ibs-green:  #10b981;
  --ibs-red:    #ef4444;
  --ibs-amber:  #f59e0b;
}

/* ── Global reset within IBS scope ─────────────────────────────── */
.ibs-scope *,
.ibs-scope *::before,
.ibs-scope *::after { box-sizing: border-box; }

.ibs-scope {
  font-family: var(--ibs-font);
  font-size: 15px;
  color: var(--ibs-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

/* ================================================================
   BOOKING WIZARD
   ================================================================ */

.ibs-wizard {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* ── Progress bar ───────────────────────────────────────────────── */
.ibs-progress {
  margin-bottom: 32px;
  padding: 0 4px;
}
.ibs-progress-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.ibs-progress-track::before {
  content: '';
  position: absolute;
  top: 16px; left: 0; right: 0;
  height: 2px;
  background: var(--ibs-border);
  z-index: 0;
}
.ibs-progress-fill {
  position: absolute;
  top: 16px; left: 0;
  height: 2px;
  background: var(--ibs-accent);
  transition: width .4s ease;
  z-index: 1;
}
.ibs-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.ibs-step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--ibs-border);
  background: var(--ibs-surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: var(--ibs-muted);
  transition: var(--ibs-transition);
}
.ibs-progress-step.completed .ibs-step-dot {
  background: var(--ibs-accent);
  border-color: var(--ibs-accent);
  color: #fff;
}
.ibs-progress-step.active .ibs-step-dot {
  border-color: var(--ibs-accent);
  color: var(--ibs-accent);
  box-shadow: 0 0 0 4px rgba(99,102,241,.15);
}
.ibs-step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ibs-muted);
  white-space: nowrap;
}
.ibs-progress-step.active .ibs-step-label { color: var(--ibs-accent); font-weight: 600; }

/* ── Wizard card ────────────────────────────────────────────────── */
.ibs-wizard-card {
  background: var(--ibs-surface);
  border-radius: 16px;
  box-shadow: var(--ibs-shadow-md);
  border: 1px solid var(--ibs-border);
  overflow: hidden;
  min-height: 420px;
}
.ibs-wizard-card-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--ibs-border);
  background: linear-gradient(to right, #f8fafc, #f1f5f9);
}
.ibs-wizard-card-header h2 {
  font-size: 20px; font-weight: 700;
  margin: 0 0 4px;
  color: var(--ibs-text);
}
.ibs-wizard-card-header p {
  font-size: 13px; color: var(--ibs-muted);
  margin: 0;
}
.ibs-wizard-panel { display: none; padding: 28px; }
.ibs-wizard-panel.active { display: block; }

/* ── Booking summary sidebar ────────────────────────────────────── */
.ibs-wizard-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.ibs-booking-summary-card {
  background: var(--ibs-surface);
  border: 1px solid var(--ibs-border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--ibs-shadow);
  position: sticky;
  top: 20px;
}
.ibs-booking-summary-card h4 {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--ibs-muted);
  margin: 0 0 16px;
}
.ibs-summary-row {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 6px 0;
  border-bottom: 1px solid #f8fafc;
}
.ibs-summary-row:last-child { border: none; }
.ibs-summary-row.total {
  font-weight: 700; font-size: 15px;
  border-top: 2px solid var(--ibs-border);
  padding-top: 10px; margin-top: 4px;
  color: var(--ibs-accent);
}
.ibs-summary-deposit {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 12px;
  color: #1e40af;
}

/* ── Service cards ──────────────────────────────────────────────── */
.ibs-categories-pills {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.ibs-pill {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--ibs-border);
  background: var(--ibs-surface);
  color: var(--ibs-muted);
  cursor: pointer;
  transition: var(--ibs-transition);
}
.ibs-pill:hover,
.ibs-pill.active {
  background: var(--ibs-accent);
  border-color: var(--ibs-accent);
  color: #fff;
}

.ibs-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}
.ibs-services-grid::-webkit-scrollbar { width: 5px; }
.ibs-services-grid::-webkit-scrollbar-track { background: transparent; }
.ibs-services-grid::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }
.ibs-service-card {
  border: 2px solid var(--ibs-border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: var(--ibs-transition);
  position: relative;
  background: var(--ibs-surface);
}
.ibs-service-card:hover { border-color: var(--ibs-accent); box-shadow: var(--ibs-shadow-md); }
.ibs-service-card.selected {
  border-color: var(--ibs-accent);
  background: rgba(99,102,241,.04);
}
.ibs-service-card.selected::after {
  content: '✓';
  position: absolute; top: 10px; right: 12px;
  width: 22px; height: 22px;
  background: var(--ibs-accent); color: #fff;
  border-radius: 50%; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  line-height: 22px; text-align: center;
}
.ibs-service-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--ibs-text); }
.ibs-service-meta {
  display: flex; gap: 10px;
  font-size: 12px; color: var(--ibs-muted);
  margin-bottom: 8px;
}
.ibs-service-meta span { display: flex; align-items: center; gap: 3px; }
.ibs-service-price { font-size: 16px; font-weight: 700; color: var(--ibs-accent); }
.ibs-service-consultation { font-size: 11px; color: var(--ibs-amber); font-weight: 600; }

/* ── Add-ons ────────────────────────────────────────────────────── */
.ibs-addons-list {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--ibs-border);
}
.ibs-addon-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 4px 0;
  cursor: pointer;
}
.ibs-addon-item input[type="checkbox"] { accent-color: var(--ibs-accent); width: 15px; height: 15px; }
.ibs-addon-price { margin-left: auto; color: var(--ibs-accent); font-weight: 600; font-size: 12px; }

/* ── Staff cards ────────────────────────────────────────────────── */
.ibs-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.ibs-staff-card {
  border: 2px solid var(--ibs-border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--ibs-transition);
  background: var(--ibs-surface);
}
.ibs-staff-card:hover { border-color: var(--ibs-accent); transform: translateY(-2px); }
.ibs-staff-card.selected { border-color: var(--ibs-accent); background: rgba(99,102,241,.04); }
.ibs-staff-photo {
  width: 70px; height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 3px solid var(--ibs-border);
}
.ibs-staff-initials {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--ibs-accent);
  color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.ibs-staff-name { font-size: 14px; font-weight: 600; color: var(--ibs-text); }
.ibs-staff-role { font-size: 12px; color: var(--ibs-muted); margin-top: 3px; }

/* ── Calendar ───────────────────────────────────────────────────── */
.ibs-calendar {
  user-select: none;
}
.ibs-cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.ibs-cal-nav h3 { font-size: 16px; font-weight: 700; }
.ibs-cal-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--ibs-border);
  background: var(--ibs-surface);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: var(--ibs-transition);
}
.ibs-cal-btn:hover { background: var(--ibs-accent); color: #fff; border-color: var(--ibs-accent); }
.ibs-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.ibs-cal-day-label {
  text-align: center; font-size: 11px; font-weight: 700;
  color: var(--ibs-muted); padding: 6px 0;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.ibs-cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  cursor: default;
  transition: var(--ibs-transition);
}
.ibs-cal-day.empty  { background: transparent; }
.ibs-cal-day.past   { color: #cbd5e1; }
.ibs-cal-day.unavailable {
  color: #cbd5e1;
  cursor: pointer;
  position: relative;
}
.ibs-cal-day.unavailable:hover {
  background: #fef2f2;
  color: #dc2626;
}
.ibs-cal-day.unavailable:hover::after {
  content: '🔔';
  position: absolute;
  bottom: 1px; right: 2px;
  font-size: 8px;
}
.ibs-cal-day.available {
  background: rgba(99,102,241,.08);
  color: var(--ibs-accent);
  cursor: pointer;
  font-weight: 600;
}
.ibs-cal-day.available:hover { background: var(--ibs-accent); color: #fff; }
.ibs-cal-day.selected { background: var(--ibs-accent); color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,.4); }
.ibs-cal-day.today { border: 2px solid var(--ibs-accent); }
.ibs-cal-loading { display: flex; align-items: center; justify-content: center; height: 180px; color: var(--ibs-muted); }

/* ── Time slots ─────────────────────────────────────────────────── */
.ibs-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.ibs-slot {
  padding: 10px;
  border: 2px solid var(--ibs-border);
  border-radius: 10px;
  text-align: center;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: var(--ibs-transition);
  color: var(--ibs-text);
}
.ibs-slot:hover { border-color: var(--ibs-accent); color: var(--ibs-accent); background: rgba(99,102,241,.05); }
.ibs-slot.selected { background: var(--ibs-accent); border-color: var(--ibs-accent); color: #fff; }
.ibs-no-slots { color: var(--ibs-muted); font-size: 14px; text-align: center; padding: 40px 0; }

/* ── Customer info form ─────────────────────────────────────────── */
.ibs-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ibs-field { display: flex; flex-direction: column; gap: 6px; }
.ibs-field.full { grid-column: 1 / -1; }
.ibs-field label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--ibs-text);
}
.ibs-field input,
.ibs-field textarea,
.ibs-field select {
  padding: 11px 14px;
  border: 1.5px solid var(--ibs-border);
  border-radius: var(--ibs-radius);
  font-size: 14px;
  font-family: var(--ibs-font);
  color: var(--ibs-text);
  background: var(--ibs-surface);
  transition: var(--ibs-transition);
  outline: none;
  width: 100%;
}
.ibs-field input:focus,
.ibs-field textarea:focus,
.ibs-field select:focus {
  border-color: var(--ibs-accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.ibs-field input.error { border-color: var(--ibs-red); }
.ibs-field-error { font-size: 12px; color: var(--ibs-red); }
.ibs-gdpr-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--ibs-muted);
  margin-top: 4px;
}
.ibs-gdpr-check input {
  margin-top: 2px; accent-color: var(--ibs-accent);
  flex-shrink: 0; width: 16px; height: 16px;
}
.ibs-gdpr-check span {
  min-width: 0; /* allow the text to wrap instead of overflowing sideways */
  overflow-wrap: break-word;
  line-height: 1.5;
}

/* ── Payment section ────────────────────────────────────────────── */
.ibs-payment-methods { display: flex; flex-direction: column; gap: 12px; }
.ibs-payment-method {
  border: 2px solid var(--ibs-border);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  transition: var(--ibs-transition);
  background: var(--ibs-surface);
}
.ibs-payment-method:hover { border-color: var(--ibs-accent); }
.ibs-payment-method.selected { border-color: var(--ibs-accent); background: rgba(99,102,241,.04); }
.ibs-payment-method-icon { font-size: 24px; }
.ibs-payment-method-info strong { display: block; font-size: 14px; font-weight: 600; }
.ibs-payment-method-info span   { font-size: 12px; color: var(--ibs-muted); }
.ibs-payment-method-radio { margin-left: auto; accent-color: var(--ibs-accent); width: 18px; height: 18px; }
.ibs-stripe-element {
  border: 1.5px solid var(--ibs-border);
  border-radius: var(--ibs-radius);
  padding: 12px 14px;
  margin-top: 12px;
  background: var(--ibs-surface);
  transition: var(--ibs-transition);
}
.ibs-stripe-element.StripeElement--focus { border-color: var(--ibs-accent); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.ibs-bank-details {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
  margin-top: 12px;
}
.ibs-bank-details p { margin: 4px 0; }
.ibs-bank-details strong { color: var(--ibs-text); }

/* ── Confirmation step ──────────────────────────────────────────── */
.ibs-confirmation {
  text-align: center;
  padding: 40px 20px;
}
.ibs-confirmation-icon {
  width: 72px; height: 72px;
  background: rgba(16,185,129,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin: 0 auto 20px;
}
.ibs-confirmation h2 {
  font-size: 24px; font-weight: 800;
  margin: 0 0 8px;
}
.ibs-confirmation p { font-size: 15px; color: var(--ibs-muted); max-width: 420px; margin: 0 auto 24px; }
.ibs-confirmation-card {
  background: var(--ibs-surface);
  border: 1px solid var(--ibs-border);
  border-radius: 14px;
  padding: 24px;
  text-align: left;
  max-width: 440px;
  margin: 0 auto 24px;
  box-shadow: var(--ibs-shadow);
}
.ibs-booking-ref {
  font-family: 'SF Mono','Fira Code',monospace;
  font-size: 18px; font-weight: 700;
  color: var(--ibs-accent);
  display: inline-block;
  background: rgba(99,102,241,.08);
  padding: 4px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.ibs-detail-row {
  display: flex; justify-content: space-between;
  font-size: 14px; padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
}
.ibs-detail-row:last-child { border: none; }
.ibs-detail-label { color: var(--ibs-muted); }
.ibs-detail-value { font-weight: 600; }

/* ── Navigation buttons ─────────────────────────────────────────── */
.ibs-wizard-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px;
  border-top: 1px solid var(--ibs-border);
  background: var(--ibs-subtle);
}
.ibs-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: var(--ibs-transition);
  font-family: var(--ibs-font);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.ibs-btn-primary  { background: var(--ibs-accent); color: #fff; }
.ibs-btn-primary:hover { background: #4f46e5; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,.3); }
.ibs-btn-outline  { background: transparent; color: var(--ibs-text); border: 1.5px solid var(--ibs-border); }
.ibs-btn-outline:hover { border-color: var(--ibs-accent); color: var(--ibs-accent); }
.ibs-btn-accent   { background: var(--ibs-secondary); color: var(--ibs-primary); }
.ibs-btn-danger   { background: var(--ibs-red); color: #fff; }
.ibs-btn-ghost    { background: transparent; color: var(--ibs-accent); }
.ibs-btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.ibs-btn:disabled { opacity: .5; pointer-events: none; }
.ibs-btn .ibs-spinner { border-color: rgba(255,255,255,.3); border-top-color: #fff; }

/* ── Spinner ────────────────────────────────────────────────────── */
.ibs-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(99,102,241,.2);
  border-top-color: var(--ibs-accent);
  border-radius: 50%;
  animation: ibs-spin .6s linear infinite;
}
@keyframes ibs-spin { to { transform: rotate(360deg); } }
.ibs-loading-overlay {
  display: flex; align-items: center; justify-content: center;
  padding: 60px; color: var(--ibs-muted); gap: 12px; font-size: 14px;
}

/* ================================================================
   CLIENT PORTAL — Full-width SaaS layout
   ================================================================ */

.ibs-portal-canvas {
  display: flex;
  min-height: 100vh;
  background: var(--ibs-bg);
  font-family: var(--ibs-font);
}

/* ── Sidebar ────────────────────────────────────────────────────── */
.ibs-portal-sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--ibs-primary);
  color: rgba(255,255,255,.75);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
}
.ibs-portal-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ibs-portal-brand h2 {
  font-size: 16px; font-weight: 800;
  color: #fff; margin: 0 0 2px;
}
.ibs-portal-brand p { font-size: 12px; opacity: .5; margin: 0; }
.ibs-portal-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}
.ibs-portal-nav-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; padding: 10px 20px 4px;
  color: rgba(255,255,255,.35);
}
.ibs-portal-nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 20px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--ibs-transition);
  cursor: pointer;
}
.ibs-portal-nav-link:hover  { color: #fff; background: rgba(255,255,255,.06); }
.ibs-portal-nav-link.active { color: #fff; border-left-color: var(--ibs-accent); background: rgba(255,255,255,.08); font-weight: 600; }
.ibs-portal-nav-link .nav-icon { font-size: 16px; min-width: 20px; }
.ibs-portal-user-bar {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; gap: 10px; align-items: center;
}
.ibs-portal-user-bar .ibs-avatar { background: var(--ibs-accent); width: 34px; height: 34px; font-size: 13px; }
.ibs-portal-user-bar .name { font-size: 13px; font-weight: 600; color: #fff; }
.ibs-portal-user-bar .email { font-size: 11px; color: rgba(255,255,255,.45); }
.ibs-portal-user-bar a { font-size: 12px; color: rgba(255,255,255,.4); text-decoration: none; margin-left: auto; }

/* ── Portal main ────────────────────────────────────────────────── */
.ibs-portal-main {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.ibs-portal-topbar {
  background: var(--ibs-surface);
  border-bottom: 1px solid var(--ibs-border);
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.ibs-portal-topbar h1 { font-size: 17px; font-weight: 700; margin: 0; }
.ibs-portal-content { padding: 28px; flex: 1; }

/* ── Portal KPIs ────────────────────────────────────────────────── */
.ibs-portal-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.ibs-portal-kpi {
  background: var(--ibs-surface);
  border: 1px solid var(--ibs-border);
  border-radius: var(--ibs-radius);
  padding: 20px;
  border-top: 3px solid var(--ibs-accent);
}
.ibs-portal-kpi-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ibs-muted); }
.ibs-portal-kpi-value { font-size: 28px; font-weight: 800; color: var(--ibs-text); margin: 6px 0 0; }

/* ── Appointment rows ───────────────────────────────────────────── */
.ibs-appt-card {
  background: var(--ibs-surface);
  border: 1px solid var(--ibs-border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--ibs-transition);
  box-shadow: var(--ibs-shadow);
}
.ibs-appt-card:hover { box-shadow: var(--ibs-shadow-md); }
.ibs-appt-date-block {
  background: rgba(99,102,241,.08);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  min-width: 60px;
}
.ibs-appt-date-block .day   { font-size: 22px; font-weight: 800; color: var(--ibs-accent); line-height: 1; }
.ibs-appt-date-block .month { font-size: 11px; font-weight: 600; color: var(--ibs-muted); text-transform: uppercase; }
.ibs-appt-info { flex: 1; }
.ibs-appt-info h4 { font-size: 14px; font-weight: 700; margin: 0 0 3px; }
.ibs-appt-info p  { font-size: 13px; color: var(--ibs-muted); margin: 0; }
.ibs-appt-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ── Membership card ────────────────────────────────────────────── */
.ibs-membership-card {
  background: var(--ibs-surface);
  border: 2px solid var(--ibs-border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: var(--ibs-transition);
}
.ibs-membership-card:hover { border-color: var(--ibs-accent); transform: translateY(-2px); box-shadow: var(--ibs-shadow-lg); }
.ibs-membership-card.featured {
  border-color: var(--ibs-accent);
  background: linear-gradient(135deg, rgba(99,102,241,.04), rgba(99,102,241,.02));
}
.ibs-membership-icon   { font-size: 36px; margin-bottom: 12px; }
.ibs-membership-name   { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.ibs-membership-price  { font-size: 28px; font-weight: 800; color: var(--ibs-accent); }
.ibs-membership-price small { font-size: 14px; font-weight: 400; color: var(--ibs-muted); }
.ibs-membership-benefits {
  list-style: none; margin: 16px 0; padding: 0;
  text-align: left;
}
.ibs-membership-benefits li {
  font-size: 13px; padding: 5px 0;
  color: var(--ibs-muted);
  display: flex; align-items: flex-start; gap: 8px;
}
.ibs-membership-benefits li::before {
  content: '✓';
  color: var(--ibs-green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Toast ──────────────────────────────────────────────────────── */
#ibs-public-toast {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 99999;
  display: flex; flex-direction: column; gap: 8px;
}
.ibs-public-toast {
  background: var(--ibs-primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  max-width: 340px;
  box-shadow: var(--ibs-shadow-lg);
  display: flex; align-items: center; gap: 10px;
  animation: ibs-fadein .25s ease;
}
.ibs-public-toast.success { background: var(--ibs-green); }
.ibs-public-toast.error   { background: var(--ibs-red); }
@keyframes ibs-fadein { from { transform: translateX(20px); opacity: 0; } to { opacity: 1; transform: none; } }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ibs-wizard-layout { grid-template-columns: 1fr; }
  /* Summary card first on mobile — otherwise it sits below the entire
     step card and customers have to scroll past the whole form (services,
     staff, calendar, etc.) just to see what they're paying. */
  .ibs-booking-summary-card { position: static; order: -1; margin-bottom: 4px; }
  .ibs-wizard-card { order: 0; }
  .ibs-portal-sidebar { display: none; }
  .ibs-portal-main { margin-left: 0; }
  .ibs-portal-kpis { grid-template-columns: 1fr; }
  .ibs-form-grid { grid-template-columns: 1fr; }
  .ibs-services-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-height: 320px; }
  .ibs-slots-grid { grid-template-columns: repeat(3,1fr); }
  .ibs-wizard-card-header { padding: 20px; }
  .ibs-wizard-panel { padding: 18px; }
}
@media (max-width: 480px) {
  .ibs-staff-grid { grid-template-columns: repeat(2,1fr); }
  .ibs-progress-step .ibs-step-label { display: none; }
  .ibs-wizard-card-header { padding: 18px; }
  .ibs-wizard-panel { padding: 18px; }
  .ibs-wizard-nav { padding: 16px 18px; }
}

/* ── Print ──────────────────────────────────────────────────────── */

/* ── Service badges in wizard ── */
.ibs-svc-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
}
.svc-badge-blue   { background: rgba(59,130,246,.12); color: #1d4ed8; }
.svc-badge-purple { background: rgba(139,92,246,.12); color: #6d28d9; }
.svc-badge-amber  { background: rgba(245,158,11,.12); color: #92400e; }

/* Compact service card for 3-col layout */
.ibs-service-card {
  cursor: pointer;
  background: var(--ibs-surface, #fff);
  border: 2px solid var(--ibs-border, #e2e8f0);
  border-radius: var(--ibs-radius, 12px);
  padding: 12px;
  transition: border-color .15s, background .15s, transform .15s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ibs-service-card:hover {
  border-color: var(--ibs-accent, #6366f1);
  background: rgba(99,102,241,.04);
  transform: translateY(-1px);
}
.ibs-service-card.selected {
  border-color: var(--ibs-accent, #6366f1);
  background: rgba(99,102,241,.06);
}
.ibs-service-card.selected::after {
  content: '✓';
  position: absolute;
  top: 7px;
  right: 9px;
  width: 18px;
  height: 18px;
  background: var(--ibs-accent, #6366f1);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 18px;
  text-align: center;
}
.ibs-service-card.consultation-required {
  border-color: var(--ibs-amber, #f59e0b);
}
.ibs-service-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ibs-text, #0f172a);
  line-height: 1.3;
  padding-right: 20px; /* space for checkmark */
}
.ibs-service-meta {
  font-size: 11px;
  color: var(--ibs-muted, #64748b);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.ibs-service-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--ibs-accent, #6366f1);
  margin-top: auto;
}
.ibs-service-consultation {
  font-size: 11px;
  color: #92400e;
  background: rgba(245,158,11,.1);
  border-radius: 6px;
  padding: 3px 7px;
  margin-top: auto;
}

@media print {
  .ibs-portal-sidebar, .ibs-portal-topbar,
  .ibs-wizard-nav, .ibs-btn { display: none !important; }
}
