/* =======================================================
   NLOOP AGENDA — Design System "Obsidian Precision"
   Aesthetic: Luxury Minimal × Precision Functional
   Palette: Obsidian slate + Emerald accent
   Fonts: Plus Jakarta Sans (display) + DM Sans (body)
   DFII Score: 13/15 — Excellent
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500&display=swap');

/* === TOKENS === */
:root {
  /* Surfaces — Dark */
  --bg-base:       #080A0F;
  --bg-surface:    #0F1219;
  --bg-surface-2:  #161B27;
  --bg-surface-3:  #1E2535;
  --bg-hover:      #232C40;

  /* Borders */
  --border:        rgba(255,255,255,0.055);
  --border-strong: rgba(255,255,255,0.12);
  --border-accent: rgba(16,185,129,0.35);

  /* Text */
  --text-primary:   #EEF0F5;
  --text-secondary: #7A8499;
  --text-muted:     #424D62;
  --text-inverse:   #080A0F;

  /* Accent — Emerald */
  --accent:         #10B981;
  --accent-hover:   #0EA572;
  --accent-dim:     rgba(16,185,129,0.12);
  --accent-glow:    rgba(16,185,129,0.22);

  /* Status */
  --danger:    #F87171;
  --warning:   #FBBF24;
  --info:      #60A5FA;

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 40px;

  /* Shadows */
  --shadow-xs: 0 1px 4px rgba(0,0,0,0.45);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.5);
  --shadow-md: 0 6px 32px rgba(0,0,0,0.55);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.6);
  --shadow-accent: 0 4px 24px rgba(16,185,129,0.28);

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:  160ms;
  --dur-base:  240ms;
  --dur-slow:  400ms;
  --dur-step:  360ms;
}

[data-theme="light"] {
  --bg-base:       #F2F4F8;
  --bg-surface:    #FFFFFF;
  --bg-surface-2:  #F0F2F7;
  --bg-surface-3:  #E8EBF2;
  --bg-hover:      #E2E6EF;

  --border:        rgba(0,0,0,0.07);
  --border-strong: rgba(0,0,0,0.14);
  --border-accent: rgba(5,150,105,0.3);

  --text-primary:   #0D1117;
  --text-secondary: #4B5563;
  --text-muted:     #9CA3AF;
  --text-inverse:   #FFFFFF;

  --accent:         #059669;
  --accent-hover:   #047857;
  --accent-dim:     rgba(5,150,105,0.09);
  --accent-glow:    rgba(5,150,105,0.18);

  --shadow-xs: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-md: 0 6px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.14);
  --shadow-accent: 0 4px 24px rgba(5,150,105,0.22);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100dvh;
  line-height: 1.6;
  transition: background var(--dur-base) var(--ease-in-out),
              color var(--dur-base) var(--ease-in-out);
  /* Subtle noise texture */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* === APP SHELL === */
#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === THEME TOGGLE === */
#theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 17px;
  transition: all var(--dur-base) var(--ease-out);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
#theme-toggle:hover {
  background: var(--bg-surface-3);
  color: var(--text-primary);
  transform: scale(1.08);
}

/* === HEADER === */
#app-header {
  padding: 48px 20px 32px;
  text-align: center;
  position: relative;
}

.header-logo {
  width: 250px;
  height: 103px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.header-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.header-company-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
}

.header-tagline {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Skeleton header */
.skeleton-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--r-lg);
  margin: 0 auto 18px;
}
.skeleton-title {
  width: 200px;
  height: 28px;
  border-radius: var(--r-sm);
  margin: 0 auto 10px;
}
.skeleton-sub {
  width: 160px;
  height: 16px;
  border-radius: var(--r-sm);
  margin: 0 auto;
}

/* === STEP PROGRESS === */
#step-indicator {
  padding: 0 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.step-dot-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  z-index: 1;
}

.step-dot.active .step-dot-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.step-dot.done .step-dot-circle {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}

.step-dot-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out);
}
.step-dot.active .step-dot-label { color: var(--accent); }
.step-dot.done .step-dot-label { color: var(--text-secondary); }

.step-line {
  flex: 1;
  height: 1.5px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 22px;
  max-width: 56px;
  transition: background var(--dur-base) var(--ease-out);
}
.step-line.done { background: var(--border-accent); }

/* === STEP PANELS === */
.step-panel {
  display: none;
  animation: stepIn var(--dur-step) var(--ease-out) both;
}
.step-panel.active { display: block; }
.step-panel.slide-out {
  animation: stepOut var(--dur-step) var(--ease-out) both;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes stepOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-16px); }
}

.step-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  padding: 0 20px;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* === SERVICE CARDS === */
#services-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 20px 40px;
}

.service-card {
  width: 100%;
  max-width: 620px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.service-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-surface-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { opacity: 0.03; }
.service-card:active { transform: translateY(0); }

.service-emoji {
  font-size: 2rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--bg-surface-2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-base) var(--ease-out);
}
.service-card:hover .service-emoji { background: var(--bg-surface-3); }

.service-info { flex: 1; min-width: 0; }

.service-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.service-desc {
  margin-top: 3px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg-surface-3);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.service-pill.price {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--border-accent);
}

.service-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.service-card:hover .service-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* === PROFESSIONAL CARDS === */
#prof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
  gap: 12px;
  padding: 0 20px 40px;
  max-width: 920px;
  margin: 0 auto;
}

.prof-card {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.prof-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.prof-card:active { transform: translateY(0); }

.prof-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), var(--bg-surface-3));
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.prof-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* === BACK BUTTON === */
.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 8px 16px 8px 12px;
  margin: 0 auto 20px;
  border-radius: 99px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--dur-fast) var(--ease-out);
}
.back-btn:hover {
  background: var(--bg-surface-3);
  color: var(--text-primary);
}
.back-btn svg { width: 14px; height: 14px; }

/* === SELECTION SUMMARY BADGE === */
.selection-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 16px;
  margin: 0 auto 20px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
}

/* === CALENDAR === */
#calendar-wrapper {
  padding: 0 20px 40px;
  max-width: 500px;
  margin: 0 auto;
}

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

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.cal-month-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

.cal-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease-out);
}
.cal-nav-btn:hover:not(:disabled) {
  background: var(--bg-surface-3);
  color: var(--text-primary);
}
.cal-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.cal-nav-btn svg { width: 14px; height: 14px; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 10px 12px 2px;
}
.cal-weekday {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 0;
}

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

.cal-day {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
  border: 1.5px solid transparent;
}

.cal-day:hover:not(.disabled):not(.empty) {
  background: var(--bg-surface-2);
  color: var(--text-primary);
}

.cal-day.today {
  color: var(--accent);
  font-weight: 700;
}
.cal-day.today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.cal-day.selected {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 700;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}
.cal-day.selected::after { display: none; }

.cal-day.disabled, .cal-day.empty {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

.cal-day.unavailable {
  cursor: default;
  pointer-events: none;
}

.cal-day.unavailable.today::after {
  background: var(--text-muted);
}

.cal-day.other-month {
  opacity: 0.25;
}

/* === SLOTS PANEL === */
#slots-panel {
  padding: 20px 20px 40px;
  max-width: 660px;
  margin: 0 auto;
}

.slots-date-header {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  text-transform: capitalize;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.slot-btn {
  padding: 13px 8px;
  border-radius: var(--r-md);
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--dur-fast) var(--ease-out);
  letter-spacing: 0.01em;
}
.slot-btn:hover:not(.unavailable) {
  border-color: var(--border-accent);
  background: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-1px);
}
.slot-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}
.slot-btn.unavailable {
  opacity: 0.25;
  cursor: not-allowed;
  text-decoration: line-through;
}

.slots-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.slots-empty-icon { font-size: 2rem; margin-bottom: 8px; }

/* === FORM === */
#booking-form-wrap {
  padding: 0 20px 40px;
  max-width: 660px;
  margin: 0 auto;
}

.booking-summary-card {
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.booking-summary-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.booking-summary-rows { display: flex; flex-direction: column; gap: 6px; }
.booking-summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
}
.booking-summary-row .label { color: var(--text-muted); flex-shrink: 0; width: 80px; }
.booking-summary-row .value { color: var(--text-primary); font-weight: 500; }

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: 0.97rem;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--dur-fast) var(--ease-out);
  outline: none;
  appearance: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--border-accent);
  background: var(--bg-surface-2);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(248,113,113,0.15);
}
.form-error-msg {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 5px;
}

/* === BUTTONS === */
.btn-primary {
  width: 100%;
  padding: 15px 24px;
  background: var(--accent);
  border: none;
  border-radius: var(--r-lg);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--dur-base) var(--ease-out);
  box-shadow: var(--shadow-accent);
  cursor: pointer;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 32px rgba(16,185,129,0.38);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-primary.loading .btn-label { opacity: 0.5; }

.submit-feedback {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
}

.submit-feedback[hidden] {
  display: none;
}

.submit-feedback.success {
  color: #065f46;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.24);
}

.submit-feedback.error {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.2);
}

.submit-feedback.info {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.18);
}

/* === SUCCESS SCREEN === */
#step-success .success-wrap {
  padding: 20px 20px 60px;
  text-align: center;
  max-width: 660px;
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.2rem;
  animation: popIn 0.5s var(--ease-out) both;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

.success-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.success-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.success-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  text-align: left;
  margin-bottom: 20px;
}

.success-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.success-row:last-child { border-bottom: none; padding-bottom: 0; }
.success-row:first-child { padding-top: 0; }

.success-row-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.success-row-content { flex: 1; }
.success-row-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin-bottom: 2px; }
.success-row-value { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }

.success-code-card {
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.success-code-label { font-size: 0.78rem; color: var(--accent); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.success-code-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.new-booking-btn {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 99px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}
.new-booking-btn:hover {
  background: var(--bg-surface-3);
  color: var(--text-primary);
}

/* === SKELETON LOADER === */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-surface-2) 25%,
    var(--bg-surface-3) 50%,
    var(--bg-surface-2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

.skeleton-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.skeleton-avatar { width: 52px; height: 52px; border-radius: var(--r-md); flex-shrink: 0; }
.skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line-1 { height: 16px; width: 55%; }
.skeleton-line-2 { height: 12px; width: 80%; }
.skeleton-line-3 { height: 10px; width: 35%; }

.skeleton-slot {
  height: 48px;
  border-radius: var(--r-md);
}

/* === TOAST === */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface-3);
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  padding: 12px 22px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s var(--ease-out) both;
  pointer-events: auto;
  white-space: nowrap;
}
.toast.error { border-color: rgba(248,113,113,0.3); }
.toast.success { border-color: var(--border-accent); color: var(--accent); }
.toast.hiding { animation: toastOut 0.25s var(--ease-in-out) both; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(8px) scale(0.95); }
}

/* === ERROR STATE === */
.error-state {
  text-align: center;
  padding: 60px 24px;
}
.error-state-icon { font-size: 3rem; margin-bottom: 16px; }
.error-state-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.error-state-msg { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 24px; }
.retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-secondary);
  font-size: 0.87rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.retry-btn:hover { background: var(--bg-surface-3); color: var(--text-primary); }

/* === FOOTER === */
#app-footer {
  margin-top: auto;
  padding: 20px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-brand {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.footer-brand a { color: var(--accent); font-weight: 500; }
.footer-brand a:hover { text-decoration: underline; }

/* === LOADING SPINNER === */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.spinner.dark {
  border-color: var(--border-strong);
  border-top-color: var(--accent);
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .header-company-name { font-size: 1.4rem; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
  .step-dot-label { display: none; }
  #step-indicator { gap: 0; }
  .step-line { max-width: 28px; }
}

@media (min-width: 600px) {
  .slots-grid { grid-template-columns: repeat(4, 1fr); }
}
