/* ============================================
   VARIABLES & BASE
============================================ */
:root {
  --teal:       #018382;
  --teal-dark:  #016b6a;
  --teal-light: #f0fdfa;
  --teal-mid:   #ccfbf1;
  --orange:     #fc8d15;
  --orange-dark:#e07a09;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-600:   #475569;
  --gray-800:   #1e293b;
  --radius:     12px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.15);
  --sidebar-w:  360px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Focus visible accessibility */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   HEADER
============================================ */
.booking-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.clinic-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.clinic-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.clinic-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--gray-800);
  line-height: 1.2;
}

.clinic-sub {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--teal-light);
  color: var(--teal);
  border: 1px solid var(--teal-mid);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.btn-phone:hover { background: var(--teal-mid); color: var(--teal-dark); }

/* ============================================
   PROGRESS STEPS
============================================ */
.step-progress {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 24px;
}

.steps-track {
  display: flex;
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all .3s;
}

.step-item.done .step-badge {
  background: var(--teal);
  color: #fff;
}

.step-item.active .step-badge {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 0 0 4px var(--teal-mid);
}

.step-item.pending .step-badge {
  background: var(--gray-100);
  color: var(--gray-400);
  border: 2px solid var(--gray-200);
}

.step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  white-space: nowrap;
}

.step-item.active .step-label { color: var(--teal); font-weight: 600; }

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  margin: 0 4px;
  border-radius: 2px;
  max-width: 60px;
}

.step-connector.done { background: var(--teal); }

/* ============================================
   MAIN LAYOUT
============================================ */
.booking-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - 128px);
  overflow: hidden;
}

/* ============================================
   SIDEBAR
============================================ */
aside.booking-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-search {
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap .bi-search {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 14px;
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  transition: border-color .2s;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}

.sidebar-filters {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  color: var(--gray-600);
  transition: all .2s;
  user-select: none;
}

.chip:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}

.chip.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

/* Doctor list */
.doctor-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
}

.doctor-list-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 4px 8px;
}

.doctor-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all .2s;
  background: #fff;
}

.doctor-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.doctor-card.selected {
  border-color: var(--teal);
  background: var(--teal-light);
  box-shadow: 0 0 0 3px var(--teal-mid);
}

.doctor-card-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.doctor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.avatar-teal   { background: linear-gradient(135deg,#018382,#016b6a); }
.avatar-purple { background: linear-gradient(135deg,#7c3aed,#5b21b6); }
.avatar-blue   { background: linear-gradient(135deg,#2563eb,#1d4ed8); }

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

.doctor-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.specialty-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid var(--teal-mid);
  margin-bottom: 6px;
}

.next-slot-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gray-600);
}

.next-slot-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* ============================================
   CALENDAR PANEL
============================================ */
main.booking-calendar {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--gray-50);
}

.calendar-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.week-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-600);
  transition: all .2s;
}

.nav-btn:hover {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal);
}

.week-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  min-width: 200px;
  text-align: center;
}

.today-btn {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--teal-light);
  color: var(--teal);
  border: 1.5px solid var(--teal-mid);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.today-btn:hover { background: var(--teal-mid); }

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-600);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

/* Calendar grid */
.calendar-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  min-width: 600px;
}

.day-col {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
}

.day-col.today { border-color: var(--teal); }

.day-header {
  padding: 10px 6px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.day-col.today .day-header { background: var(--teal-light); }

.day-abbr {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.day-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
}

.day-col.today .day-num { color: var(--teal); }

.today-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  background: var(--teal);
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  text-transform: uppercase;
}

.slots-list {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slot-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  width: 100%;
}

.slot-chip.available {
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1.5px solid var(--teal-mid);
}

.slot-chip.available:hover {
  background: var(--teal);
  color: #fff;
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgba(1,131,130,.3);
}

.slot-chip.taken {
  background: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
  border: 1.5px solid var(--gray-200);
}

.slot-chip.closed {
  background: #fef2f2;
  color: #fca5a5;
  cursor: not-allowed;
  border: 1.5px solid #fee2e2;
}

.no-slots {
  text-align: center;
  padding: 12px 6px;
  font-size: 12px;
  color: var(--gray-400);
}

/* Slot summary bar */
.slot-summary-bar {
  background: var(--gray-800);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  transition: all .3s;
}

.slot-summary-bar.hidden { transform: translateY(100%); opacity: 0; }

/* Pulse animation when slot is selected */
@keyframes summaryPulse {
  0% { box-shadow: 0 0 0 0 rgba(1,131,130,.6); }
  50% { box-shadow: 0 0 0 8px rgba(1,131,130,0); }
  100% { box-shadow: 0 0 0 0 rgba(1,131,130,0); }
}
.slot-summary-bar.summary-pulse {
  animation: summaryPulse .6s ease-out;
  background: var(--teal);
}
@media (prefers-reduced-motion: reduce) {
  .slot-summary-bar.summary-pulse { animation: none; }
}

.summary-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-text .label {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  font-weight: 500;
}

.summary-text .value {
  font-size: 14px;
  font-weight: 600;
}

.btn-confirm {
  padding: 10px 22px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-confirm:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(252,141,21,.4);
}

/* ============================================
   MODAL / BOTTOM SHEET
============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.booking-modal {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(.97);
  transition: transform .3s ease, opacity .3s ease;
}

.modal-overlay.visible .booking-modal {
  transform: translateY(0) scale(1);
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title { font-size: 18px; font-weight: 700; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-600);
  transition: all .2s;
}

.modal-close:hover { background: #fee2e2; border-color: #fca5a5; color: #ef4444; }

.modal-doctor-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1.5px solid var(--gray-200);
  margin-bottom: 16px;
}

.modal-slot-info {
  background: var(--teal-light);
  border: 1.5px solid var(--teal-mid);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
}

.slot-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.slot-info-item .s-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
}

.slot-info-item .s-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.btn-book {
  width: 100%;
  padding: 14px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-book:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1,131,130,.35);
}

/* ============================================
   FOOTER
============================================ */
footer {
  background: #fff;
  border-top: 1px solid var(--gray-200);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-400);
}

/* ============================================
   MOBILE — TAB VIEW
============================================ */
.mobile-tabs {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all .2s;
}

.mobile-tab.active { color: var(--teal); border-bottom-color: var(--teal); }

@media (max-width: 768px) {
  .booking-header { padding: 0 16px; }
  .clinic-sub, .clinic-name + .clinic-sub { display: none; }

  .mobile-tabs { display: flex; }

  .booking-layout {
    height: calc(100vh - 170px);
    flex-direction: column;
  }

  aside.booking-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    display: none;
  }

  aside.booking-sidebar.tab-active { display: flex; }

  main.booking-calendar { display: none; }
  main.booking-calendar.tab-active { display: flex; }

  .calendar-legend { display: none; }

  .slot-summary-bar {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .btn-confirm { width: 100%; justify-content: center; }

  .step-progress { padding: 10px 12px; }
  .step-label { display: none; }
}

/* ============================================
   APP-SPECIFIC ADDITIONS
============================================ */

/* Hide x-cloak elements */
[x-cloak] { display: none !important; }

/* OTP boxes */
.otp-box {
  width: 56px;
  height: 64px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  color: var(--gray-800);
  font-family: 'Inter', sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.otp-box:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-mid);
}

/* Form step styles */
.form-step-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px;
}

.form-control-v1 {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: var(--gray-800);
  transition: border-color .2s, box-shadow .2s;
}
.form-control-v1:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-mid);
}
.form-control-v1::placeholder { color: var(--gray-400); }

.form-label-v1 {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.input-group-v1 {
  display: flex;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
  position: relative;
}
.input-group-v1:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-mid);
}
.input-prefix {
  padding: 12px 14px;
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 600;
  border-right: 1.5px solid var(--gray-200);
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.input-group-v1 input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: var(--gray-800);
  min-width: 0;
}
.input-group-v1 input:focus { outline: none; }

.btn-brand-v1 {
  width: 100%;
  padding: 14px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-brand-v1:hover:not(:disabled) {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(1,131,130,.3);
}
.btn-brand-v1:disabled { opacity: .45; cursor: not-allowed; }

/* Selected slot recap card (above form) */
.slot-recap-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--teal-light);
  border: 1.5px solid var(--teal-mid);
  border-radius: 12px;
  margin-bottom: 24px;
}
.slot-recap-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mode toggle inside sidebar */
.sidebar-mode-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 4px;
  margin: 12px 16px;
  gap: 4px;
}
.mode-tab {
  flex: 1;
  padding: 8px 10px;
  border: none;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--gray-400);
  transition: all .2s;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.mode-tab.active {
  background: #fff;
  color: var(--teal);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* Specialty card in sidebar */
.specialty-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  margin-bottom: 6px;
  cursor: pointer;
  transition: all .2s;
  background: #fff;
}
.specialty-card:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}
.specialty-card.selected {
  border-color: var(--teal);
  background: var(--teal-light);
  box-shadow: 0 0 0 3px var(--teal-mid);
}
.specialty-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e9d5ff, #ddd6fe);
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.specialty-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}
.specialty-count {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 1px;
}

/* Empty/placeholder states in calendar */
.calendar-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  color: var(--gray-400);
  text-align: center;
  padding: 40px 20px;
}
.calendar-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: .5;
}
.calendar-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.calendar-empty-sub {
  font-size: 13px;
}

/* Loading skeleton for slots */
.slot-skeleton {
  height: 34px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  margin-bottom: 4px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Operator badge on phone input */
.operator-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}
.operator-badge.orange-op { background: #fff7ed; color: #ea7c0d; }
.operator-badge.moov-op   { background: #eff6ff; color: #2563eb; }

/* Checkbox consent */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--gray-50);
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  cursor: pointer;
}
.consent-check input[type=checkbox] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--teal);
  margin-top: 1px;
  cursor: pointer;
}
.consent-check label {
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   OTP DEDICATED SCREEN STYLES
═══════════════════════════════════════════ */

/* Large OTP boxes for dedicated screen */
.otp-box-lg {
  width: 64px;
  height: 72px;
  font-size: 28px;
  font-weight: 700;
  border-radius: 14px;
}

/* OTP shake animation on error */
.otp-shake {
  animation: otpShake 0.5s ease-in-out;
}
@keyframes otpShake {
  0%, 100% { transform: translateX(0); }
  10%, 50%, 90% { transform: translateX(-6px); }
  30%, 70% { transform: translateX(6px); }
}

/* OTP phone illustration */
.otp-illustration {
  margin-bottom: 24px;
}
.otp-phone-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--teal-light);
  border: 2px solid var(--teal-mid);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}
.otp-phone-icon.verified {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
  transform: scale(1.1);
  animation: otpSuccess 0.6s ease;
}

@keyframes otpSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1.1); }
}

/* OTP success message */
.otp-success-message {
  animation: fadeInUp 0.4s ease;
}

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

/* Mobile responsive for OTP boxes */
@media (max-width: 480px) {
  .otp-box-lg {
    width: 56px;
    height: 64px;
    font-size: 24px;
  }
}

/* ============================================
   P3 — MOBILE VERTICAL LIST CALENDAR VIEW
============================================ */
.mobile-day-list {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.mobile-day-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
}

.mobile-day-row.today {
  border-color: var(--teal);
  background: var(--teal-light);
}

.mobile-day-date {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
}

.mobile-day-date .mday-abbr {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
}

.mobile-day-date .mday-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1.2;
}

.mobile-day-row.today .mday-num { color: var(--teal); }

.mobile-day-date .mday-month {
  font-size: 10px;
  color: var(--gray-400);
  text-transform: uppercase;
}

.mobile-day-slots {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  min-width: 0;
}

.mobile-day-slots .slot-chip {
  width: auto;
  padding: 0 12px;
  height: 36px;
  font-size: 13px;
  min-width: 60px;
}

.mobile-day-empty {
  font-size: 12px;
  color: var(--gray-400);
  padding: 8px 0;
}

@media (max-width: 768px) {
  .mobile-day-list { display: flex; }
  .calendar-grid { display: none !important; }
}

/* ============================================
   P7 — SUMMARY BAR REPLACES MODAL (slot select → summary → continue)
============================================ */
.slot-chip.selected-slot {
  background: var(--teal) !important;
  color: #fff !important;
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px var(--teal-mid);
}

/* ============================================
   P2 — DOCTOR CONTEXT BANNER
============================================ */
.doctor-context-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.doctor-context-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

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

.doctor-context-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.doctor-context-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--gray-600);
}

.doctor-context-fee {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--teal-light);
  border: 1px solid var(--teal-mid);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
}

/* ============================================
   P4 — JUMP TO NEXT AVAILABLE SLOT
============================================ */
.btn-next-slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.btn-next-slot:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(252,141,21,.3);
}

/* ============================================
   P8 — FIXED BOTTOM SUMMARY BAR ON MOBILE
============================================ */
@media (max-width: 768px) {
  .slot-summary-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    box-shadow: 0 -4px 16px rgba(0,0,0,.12);
    flex-direction: row;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
  }

  .slot-summary-bar .summary-info {
    flex: 1;
    min-width: 0;
  }

  .slot-summary-bar .summary-text .label { font-size: 10px; }
  .slot-summary-bar .summary-text .value { font-size: 13px; }
  .slot-summary-bar .summary-text.ms-4 { display: none; }

  .slot-summary-bar .btn-confirm {
    width: auto;
    flex-shrink: 0;
    padding: 10px 18px;
  }

  /* Padding bottom for calendar body so content isn't hidden behind fixed bar */
  .booking-layout { padding-bottom: 80px; }
}

/* ============================================
   P9 — SMOOTH STEP TRANSITIONS
============================================ */
.step-fade-in {
  animation: stepFadeIn .35s ease-out;
}

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

.step-slide-left {
  animation: stepSlideLeft .3s ease-out;
}

@keyframes stepSlideLeft {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .step-fade-in,
  .step-slide-left {
    animation: none !important;
  }
}

/* ============================================
   P12 — FORM VALIDATION STATES
============================================ */
.form-control-v1.has-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.form-control-v1.is-valid {
  border-color: #22c55e;
}

.field-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.note-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.note-chip {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  color: var(--gray-600);
  transition: all .2s;
  font-family: 'Inter', sans-serif;
}

.note-chip:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}

.note-chip.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

/* ============================================
   P15 — FINAL RECAP CARD
============================================ */
.final-recap {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
}

.final-recap-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.final-recap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.final-recap-item .fr-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 2px;
}

.final-recap-item .fr-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

@media (max-width: 480px) {
  .final-recap-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ============================================
   P16 — CLICKABLE STEPPER
============================================ */
.step-item.clickable {
  cursor: pointer;
}

.step-item.clickable:hover .step-badge {
  transform: scale(1.1);
}

.step-item.clickable:hover .step-label {
  color: var(--teal);
}

/* ============================================
   P20 — NETWORK ERROR STATE
============================================ */
.network-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.network-error-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fef2f2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
}

.network-error-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.network-error-sub {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.btn-retry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  transition: all .2s;
  font-family: 'Inter', sans-serif;
}

.btn-retry:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}

/* Ring SVG for OTP countdown */
.ring-wrap {
  position: relative;
  width: 44px;
  height: 44px;
}
.ring-track {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 3;
}
.ring-fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1s linear;
}
.ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
}

/* ═══════════════════════════════════════════
   STEP CARD UI — Étapes 2, 3, 4
═══════════════════════════════════════════ */

.step-card-page {
  min-height: calc(100vh - 64px);
  background-color: #edfcf8;
  background-image: radial-gradient(circle, rgba(1,131,130,.10) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
}

.step-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(1,85,84,.13), 0 4px 16px rgba(1,85,84,.06);
  overflow: hidden;
}
.step-card-bar {
  height: 5px;
  background: linear-gradient(90deg, #015554 0%, #018382 50%, #0fa8a7 100%);
}
.step-card-inner {
  padding: 28px 28px 32px;
}

.step-header-block {
  text-align: center;
  margin-bottom: 24px;
}
.step-header-icon {
  width: 56px;
  height: 56px;
  background: var(--teal-light);
  border: 2px solid var(--teal-mid);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--teal);
  font-size: 24px;
}
.step-header-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-800);
  letter-spacing: -.02em;
  margin-bottom: 5px;
}
.step-header-sub {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Trust pills */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.trust-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #015554;
  background: var(--teal-light);
  border: 1px solid var(--teal-mid);
  border-radius: 50px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* OTP filled state */
.otp-box.filled {
  border-color: var(--teal);
  background: var(--teal-light);
}

/* Step card fade entrance */
.step-fade-in {
  animation: fadeInUp .35s ease both;
}

/* Phone badge (step OTP) */
.step-phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-light);
  border: 1.5px solid var(--teal-mid);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #015554;
}

/* Countdown ring */
.ring-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.ring-wrap svg { transform: rotate(-90deg); display: block; }
.ring-track { fill: none; stroke: var(--gray-100); stroke-width: 3.5; }
.ring-fill  { fill: none; stroke-width: 3.5; stroke-linecap: round; transition: stroke-dashoffset .95s linear, stroke .5s; }
.ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #015554;
  font-variant-numeric: tabular-nums;
}

/* Stepper container above card */
.step-card-stepper {
  width: 100%;
  max-width: 480px;
  margin-bottom: 12px;
}

/* ── Quick confirm : carte identité patient ── */
.quick-patient-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  margin-bottom: 20px;
}
.quick-patient-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #059669;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Modal : bouton 1 clic ── */
.btn-book-quick {
  background: linear-gradient(135deg, #059669, #018382);
}
.btn-book-quick:hover {
  background: linear-gradient(135deg, #047857, #016b6a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5,150,105,.35);
}

@media (max-width: 480px) {
  .step-card-inner { padding: 20px 20px 24px; }
  .step-card { border-radius: 20px; }
}

/* ============================================
   P5 — MINI DATE-PICKER
============================================ */
.date-picker-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all .2s;
  font-family: 'Inter', sans-serif;
  position: relative;
}
.date-picker-toggle:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}

.date-picker-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 12px;
  min-width: 260px;
}

.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dp-header .dp-month {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}

.dp-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-600);
  font-size: 12px;
  transition: all .2s;
}
.dp-nav-btn:hover { background: var(--teal-light); color: var(--teal); border-color: var(--teal); }

.dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.dp-weekday {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  padding: 2px;
}

.dp-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.dp-day {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all .15s;
  font-family: 'Inter', sans-serif;
  margin: 0 auto;
}

.dp-day:hover { background: var(--teal-light); color: var(--teal); }
.dp-day.today { font-weight: 700; color: var(--teal); border: 1.5px solid var(--teal-mid); }
.dp-day.past { color: var(--gray-200); cursor: not-allowed; }
.dp-day.past:hover { background: transparent; color: var(--gray-200); }
.dp-day.selected { background: var(--teal); color: #fff; }
.dp-day.empty { visibility: hidden; }

/* ============================================
   P6 — DIM EMPTY RECURRING DAYS
============================================ */
.day-col.dim-day {
  opacity: .4;
}
.day-col.dim-day .day-header {
  background: var(--gray-50);
}
.mobile-day-row.dim-day {
  opacity: .35;
}

/* ============================================
   P10 — ENHANCED OTP SUCCESS ANIMATION
============================================ */
.otp-success-confetti {
  position: relative;
  display: inline-block;
}

.otp-success-confetti::before,
.otp-success-confetti::after {
  content: '🎉';
  position: absolute;
  top: 50%;
  font-size: 24px;
  animation: confettiPop .6s ease both;
}
.otp-success-confetti::before { left: -32px; animation-delay: .1s; }
.otp-success-confetti::after  { right: -32px; animation-delay: .2s; }

@keyframes confettiPop {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  50%  { opacity: 1; transform: translateY(-12px) scale(1.2); }
  100% { opacity: 1; transform: translateY(-8px) scale(1); }
}

.otp-success-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: otpCheckBounce .6s ease both;
}

@keyframes otpCheckBounce {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.15); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* ============================================
   P13 — TOGGLE SWITCH FOR CONSENT
============================================ */
.consent-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1.5px solid var(--gray-200);
  cursor: pointer;
  transition: all .2s;
}
.consent-toggle:hover {
  border-color: var(--teal-mid);
  background: var(--teal-light);
}
.consent-toggle.active {
  border-color: var(--teal);
  background: var(--teal-light);
}

.toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--gray-200);
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
  margin-top: 1px;
}
.toggle-track.on { background: var(--teal); }

.toggle-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform .2s;
}
.toggle-track.on .toggle-thumb { transform: translateX(20px); }

.consent-toggle-label {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  cursor: pointer;
}
.consent-toggle-label strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 2px;
}

/* ============================================
   P14 — TIME ESTIMATION BADGE
============================================ */
.time-estimate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  padding: 4px 10px;
  background: var(--gray-50);
  border-radius: 50px;
  border: 1px solid var(--gray-200);
}

/* ============================================
   P19 — FAITHFUL CALENDAR SKELETON
============================================ */
.skeleton-day-header {
  padding: 10px 6px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.skeleton-slot {
  height: 36px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  margin-bottom: 4px;
  border: 1.5px solid var(--gray-200);
}

/* Mobile skeleton list */
.skeleton-mobile-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  margin-bottom: 8px;
}
.skeleton-mobile-date {
  width: 52px;
  flex-shrink: 0;
}
.skeleton-mobile-slots {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skeleton-chip {
  width: 60px;
  height: 36px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.mobile-skeleton-list { display: none; }
@media (max-width: 768px) {
  .mobile-skeleton-list { display: block; }
  .desktop-skeleton-grid { display: none !important; }
}

/* ============================================
   P21 — TOUCH TARGETS 44PX MINIMUM ON MOBILE
============================================ */
@media (max-width: 768px) {
  .slot-chip {
    min-height: 44px;
    font-size: 14px;
  }
  .mobile-day-slots .slot-chip {
    min-height: 44px;
    padding: 0 14px;
  }
  .nav-btn {
    width: 44px;
    height: 44px;
  }
  .today-btn {
    min-height: 44px;
    padding: 8px 16px;
  }
  .mode-tab {
    min-height: 44px;
    padding: 10px 12px;
  }
  .chip {
    min-height: 36px;
    padding: 8px 14px;
  }
  .doctor-card {
    padding: 16px;
  }
  .specialty-card {
    padding: 14px 16px;
    min-height: 52px;
  }
}

/* ============================================
   P22 — MICRO-ANIMATION BOUNCE ON SLOT SELECTION
============================================ */
.slot-chip.available:active {
  transform: scale(0.95);
}

.slot-chip.selected-slot {
  animation: slotBounce .25s ease;
}

@keyframes slotBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  70%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .slot-chip.selected-slot,
  .otp-success-check,
  .otp-success-confetti::before,
  .otp-success-confetti::after {
    animation: none !important;
  }
}
