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

:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #EFF6FF;
  --green: #16A34A;
  --green-light: #F0FDF4;
  --red: #DC2626;
  --red-light: #FEF2F2;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.08), 0 8px 10px rgba(0,0,0,0.04);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 10px 20px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-button: 0 1px 2px rgba(37,99,235,0.2), 0 2px 4px rgba(37,99,235,0.1);
  --shadow-float: 0 12px 28px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.06);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #F0F4F8 0%, var(--gray-100) 100%);
  color: var(--gray-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ==================== PAGES ==================== */
.page {
  display: none;
  min-height: 100vh;
  background: var(--white);
  padding-bottom: 120px;
}
.page.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

/* ==================== MODAL ==================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal.open {
  display: block;
  animation: fadeIn 0.2s ease-out;
}
.modal-content {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 430px;
  height: 75vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
  /* Stay above keyboard */
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}
.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-500);
}
.modal-close:hover {
  background: var(--gray-200);
}
.modal-search {
  display: flex;
  align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0 16px;
  height: 44px;
  margin: 16px 20px 0;
}
.modal-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--gray-900);
  margin-left: 12px;
  outline: none;
}
.modal-search input::placeholder {
  color: var(--gray-400);
}
.location-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 20px 0;
  padding: 10px 16px;
  background: var(--blue-light);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--radius-md);
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  width: calc(100% - 40px);
}
.location-btn:hover {
  background: #DBEAFE;
}
.city-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 20px;
}
.city-region-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 16px 20px 6px;
}
.city-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--gray-900);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.city-option:hover {
  background: var(--gray-50);
}
.city-option.selected {
  color: var(--blue);
  font-weight: 600;
  background: var(--blue-light);
}
.city-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-400);
  font-size: 14px;
}

/* ==================== DATE MODAL ==================== */
.date-modal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
}
.date-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-700);
}
.date-nav-btn:hover {
  background: var(--gray-200);
}
.date-nav-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px 20px 4px;
}
.calendar-weekdays span {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 4px 20px 24px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cal-day:hover:not(.disabled):not(.selected) {
  background: var(--gray-100);
}
.cal-day.empty {
  cursor: default;
}
.cal-day.disabled {
  color: var(--gray-300);
  cursor: not-allowed;
}
.cal-day.today {
  border: 2px solid var(--blue);
  font-weight: 700;
}
.cal-day.selected {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
}
.cal-day.selected.today {
  border-color: var(--blue);
}

/* ==================== RESERVATION BANNER ==================== */
.reservation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green-light);
  border: 1px solid rgba(22,163,74,0.15);
  border-radius: var(--radius-xl);
  padding: 12px 16px;
  margin: 0 0 -20px;
  position: relative;
  z-index: 3;
}
.banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.banner-content svg {
  color: var(--green);
  flex-shrink: 0;
}
.banner-content strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}
.banner-content span {
  font-size: 13px;
  color: var(--gray-500);
}
.banner-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.banner-actions button {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
}
.banner-actions button:first-child {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* ==================== PHONE LOOKUP ==================== */
.section-lookup {
  padding: 24px 20px 0;
}
.btn-lookup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}
.btn-lookup:hover {
  background: var(--blue-light);
  border-color: rgba(37,99,235,0.2);
}
.lookup-body {
  padding: 16px 20px 24px;
}
.lookup-desc {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.5;
}
.lookup-results {
  margin-top: 16px;
}
.lookup-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin: 16px 0 8px;
}
.lookup-card {
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.lookup-card:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}
.lookup-card.active {
  border-color: var(--green);
  background: var(--green-light);
}
.lookup-card strong {
  display: block;
  font-size: 14px;
  font-family: 'SF Mono', monospace;
  margin-bottom: 2px;
}
.lookup-card span {
  font-size: 13px;
  color: var(--gray-500);
}
.lookup-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}
.lookup-status.confirmed, .lookup-status.checked_in {
  background: var(--green-light);
  color: var(--green);
}
.lookup-status.completed {
  background: var(--gray-100);
  color: var(--gray-500);
}
.lookup-status.cancelled {
  background: var(--red-light);
  color: var(--red);
}
.lookup-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 8px;
}
.lookup-empty {
  color: var(--gray-400);
  font-size: 14px;
  text-align: center;
  padding: 24px 0;
}

/* Cancel button */
.btn-cancel-res {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% - 40px);
  margin: 0 20px 12px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--red);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cancel-res:hover {
  background: var(--red-light);
}

/* ==================== HERO (PAGE 1) ==================== */
.hero {
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #3B82F6 100%);
  padding: 0 20px 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
}

.hero-brand svg,
.hero-nav .icon-globe {
  color: var(--white);
}

.hero-content {
  padding-top: 16px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.12);
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  max-width: 300px;
}

/* ==================== SEARCH CARD ==================== */
.search-card {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  margin: -36px 0 0;
  padding: 28px 20px 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.08);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.input-group {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0 16px;
  height: 50px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.input-group:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.input-group:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.input-group.compact {
  margin: 16px;
}

.input-icon {
  color: var(--gray-400);
  flex-shrink: 0;
}

.input-icon.blue {
  color: var(--blue);
}

.input-value {
  flex: 1;
  margin-left: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-900);
}

.input-chevron {
  color: var(--gray-400);
  flex-shrink: 0;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  background: linear-gradient(180deg, #3B82F6 0%, var(--blue) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover:not(.disabled):not(:disabled) {
  background: linear-gradient(180deg, #2563EB 0%, var(--blue-dark) 100%);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3), 0 2px 4px rgba(37,99,235,0.15);
  transform: translateY(-1px);
}

.btn-primary:active:not(.disabled):not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary.disabled,
.btn-primary:disabled {
  background: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  background: var(--white);
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: var(--gray-50);
}

/* ==================== HOW IT WORKS ==================== */
.section-how {
  padding: 32px 20px 0;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-icon-circle.blue-light {
  background: var(--blue-light);
}

.step-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.step-text p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.4;
}

/* ==================== PRICING CARD ==================== */
.pricing-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--green-light);
  border: 1px solid rgba(22,163,74,0.1);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  margin: 32px 20px 0;
  box-shadow: var(--shadow-sm);
}

.pricing-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(22,163,74,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pricing-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.pricing-text p {
  font-size: 14px;
  color: var(--gray-500);
}

/* ==================== CITIES ==================== */
.section-cities {
  padding: 32px 20px 0;
}

.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-tag {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}
.city-tag:hover {
  background: var(--blue-light);
  color: var(--blue);
  border-color: rgba(37,99,235,0.2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* ==================== TOP NAV (PAGES 2-4) ==================== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}

.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  color: var(--gray-900);
  flex-shrink: 0;
  vertical-align: middle;
  text-align: center;
  line-height: 36px;
  padding: 0;
}

.back-btn:hover {
  background: var(--gray-200);
}

.nav-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
}

/* ==================== TOP BAR ==================== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.top-bar svg {
  margin-right: 6px;
}

.nav-spacer {
  width: 36px;
}

/* ==================== STEPPER ==================== */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 24px 8px;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-400);
  flex-shrink: 0;
  transition: all 0.3s;
}

.step-circle.active {
  background: var(--blue);
  color: var(--white);
}

.step-circle.completed {
  background: var(--green);
  color: var(--white);
}

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

.step-line.completed {
  background: var(--green);
}

.stepper-labels {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0 24px 16px;
}

.stepper-label {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  flex: 1;
  max-width: 80px;
}

.stepper-label.active {
  color: var(--blue);
  font-weight: 600;
}

.stepper-label.completed {
  color: var(--green);
}

/* ==================== VIEW TOGGLE ==================== */
.view-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  margin: 0 16px 12px;
  overflow: hidden;
}

.toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn.active {
  background: var(--white);
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
}

/* ==================== SEARCH INPUT ==================== */
.search-input-group {
  display: flex;
  align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0 16px;
  height: 44px;
  margin: 0 16px 8px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--gray-900);
  margin-left: 12px;
  outline: none;
}

.search-input::placeholder {
  color: var(--gray-400);
}

.results-count {
  font-size: 13px;
  color: var(--gray-500);
  padding: 0 16px;
  margin-bottom: 12px;
}

/* ==================== CENTRE CARDS ==================== */
.centre-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}

.centre-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
}

.centre-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.centre-card.selected {
  border: 2px solid var(--blue);
  background: var(--blue-light);
  box-shadow: 0 4px 12px rgba(37,99,235,0.15), 0 2px 4px rgba(37,99,235,0.08);
}

.centre-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.centre-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
}

.centre-name.blue {
  color: var(--blue);
}

.centre-addr {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

.check-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-circle.small {
  width: 24px;
  height: 24px;
}

.centre-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--gray-500);
}

.meta-item.green {
  color: var(--green);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--gray-500);
  gap: 16px;
}
.loading-state p {
  font-size: 14px;
  font-weight: 500;
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.empty-state svg {
  margin-bottom: 16px;
}
.empty-state p {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.empty-state span {
  font-size: 14px;
}

/* ==================== BOTTOM BAR ==================== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--gray-200);
  padding: 12px 16px 16px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0.3s;
}

.bottom-bar.visible {
  opacity: 1;
  visibility: visible;
}

.bottom-bar.single {
  border-top: none;
  box-shadow: none;
  background: transparent;
  position: relative;
  left: auto;
  right: auto;
  max-width: 100%;
  padding: 20px 16px;
  opacity: 1;
  visibility: visible;
}

.bottom-bar-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.bottom-bar-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  display: block;
}

.bottom-bar-detail {
  font-size: 13px;
  color: var(--gray-500);
  display: block;
}

.bottom-bar-label {
  font-size: 12px;
  color: var(--gray-400);
  display: block;
}

.bottom-bar-right {
  position: absolute;
  right: 16px;
  top: 12px;
  text-align: right;
}

.bottom-bar-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
}

/* ==================== PICKER SECTIONS ==================== */
.picker-section {
  padding: 20px 16px;
}

.picker-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 14px;
}

/* Date chips */
.date-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.date-chip {
  width: 64px;
  height: 72px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.date-chip:hover:not(.disabled) {
  border-color: var(--gray-300);
}

.date-chip.selected {
  background: var(--blue);
  border-color: var(--blue);
}

.date-chip.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.day-name {
  font-size: 13px;
  color: var(--gray-500);
}

.day-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.date-chip.selected .day-name,
.date-chip.selected .day-num {
  color: var(--white);
}

.month-label {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 8px;
}

/* Time grid */
.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.time-slot {
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  cursor: pointer;
  transition: all 0.2s;
}

.time-slot:hover:not(.disabled) {
  border-color: var(--blue);
}

.time-slot.selected {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.time-slot.disabled {
  background: var(--gray-100);
  color: var(--gray-300);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Time legend */
.time-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

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

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
}

.legend-dot.selected {
  background: var(--blue);
  border-color: var(--blue);
}

.legend-dot.disabled {
  background: var(--gray-300);
  border-color: var(--gray-300);
}

/* ==================== LANE-BASED SYSTEM ==================== */
.lane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.lane-card {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
}
.lane-card:hover:not(.full) {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.lane-card.selected {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 4px 12px rgba(37,99,235,0.15);
}
.lane-card.full {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--gray-50);
}
.lane-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 2px;
}
.lane-card.selected .lane-number {
  color: var(--blue);
}
.lane-card.full .lane-number {
  color: var(--gray-400);
}
.lane-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
}
.lane-spots {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  margin-top: 4px;
}
.lane-card.full .lane-spots {
  color: var(--red);
}
.lane-card.selected .lane-spots {
  color: var(--blue);
}

/* Position selector */
.position-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.position-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 56px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}
.position-item:hover:not(.taken):not(.past) {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.position-item.selected {
  background: linear-gradient(180deg, #3B82F6 0%, var(--blue) 100%);
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.position-item.selected .position-num,
.position-item.selected .position-time {
  color: var(--white);
}
.position-item.taken {
  background: var(--gray-50);
  cursor: not-allowed;
  opacity: 0.4;
  box-shadow: none;
}
.position-item.past {
  background: var(--gray-50);
  cursor: not-allowed;
  opacity: 0.3;
  border-style: dashed;
  box-shadow: none;
}
.position-item .position-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
}
.position-item .position-time {
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-500);
}
.position-item.past .position-num,
.position-item.past .position-time {
  color: var(--gray-400);
}
.position-status {
  font-size: 9px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==================== FORM FIELDS ==================== */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: 6px;
  margin-top: 16px;
}

.field-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.plate-input {
  display: flex;
  align-items: center;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  height: 52px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.plate-input:focus-within {
  border-color: var(--blue);
}

.plate-input.error {
  border-color: var(--red);
  background: var(--red-light);
}

.plate-badge {
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
}

.plate-value {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  padding: 0 16px;
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
  letter-spacing: 2px;
  background: transparent;
}

.phone-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  height: 52px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.phone-input:focus-within {
  border-color: var(--blue);
}

.phone-input.error {
  border-color: var(--red);
  background: var(--red-light);
}

.phone-prefix {
  padding: 0 16px;
  font-size: 16px;
  color: var(--gray-400);
  flex-shrink: 0;
}

.phone-divider {
  width: 1px;
  height: 24px;
  background: var(--gray-200);
}

.phone-value {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--gray-900);
  padding: 0 16px;
  background: transparent;
}

/* Vehicle types */
.vehicle-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.vehicle-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 80px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
}

.vehicle-type:hover {
  border-color: var(--gray-300);
}

.vehicle-type.selected {
  border: 2px solid var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}

.vehicle-type.selected svg {
  stroke: var(--blue);
}

/* ==================== QUEUE STATUS (Glovo-style) ==================== */
.queue-status-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin: 0 20px 16px;
  padding: 20px;
}
.queue-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}
.queue-status-header svg { color: var(--blue); }
.queue-progress {
  height: 6px;
  background: var(--gray-100);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}
.queue-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #60A5FA);
  border-radius: 3px;
  width: 0%;
  transition: width 1s ease;
}
.queue-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.queue-info span:last-child { font-weight: 600; color: var(--blue); }

.queue-cycle { display: flex; justify-content: center; }
.cycle-ring { position: relative; width: 80px; height: 80px; }
.cycle-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cycle-bg { fill: none; stroke: var(--gray-100); stroke-width: 3; }
.cycle-fill {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0, 100;
  transition: stroke-dasharray 1s ease;
}
.cycle-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
}

/* ==================== MAP VIEW ==================== */
#centres-map-view {
  position: relative;
}
#map-container {
  width: 100%;
  height: calc(100vh - 200px);
  min-height: 400px;
}

/* ==================== MAP MARKERS ==================== */
.custom-marker {
  background: none !important;
  border: none !important;
}
.marker-pin {
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-md);
}
.marker-pin.selected {
  background: var(--green);
  transform: scale(1.2);
}
.user-location-marker {
  background: none !important;
  border: none !important;
}
.user-dot {
  width: 16px;
  height: 16px;
  background: #3B82F6;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.3), 0 0 12px rgba(59,130,246,0.4);
}

/* ==================== PAYMENT (PAGE 4) ==================== */
.recap-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  margin: 16px;
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.recap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.recap-label {
  font-size: 14px;
  color: var(--gray-500);
}

.recap-label.bold {
  font-weight: 700;
  color: var(--gray-900);
}

.recap-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
}

.recap-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 8px 0;
}

.recap-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
}

.payment-section {
  padding: 20px 16px;
}

.payment-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.payment-option:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.payment-option.selected {
  border: 2px solid var(--blue);
  background: var(--blue-light);
}

.payment-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-icon.blue-bg {
  background: var(--blue);
}

.payment-icon.gray-bg {
  background: var(--gray-100);
}

.payment-text {
  flex: 1;
}

.payment-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}

.payment-text span {
  font-size: 13px;
  color: var(--gray-500);
}

/* Card form */
.card-form {
  padding: 0 16px;
}
#ycpay-container {
  min-height: 200px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--gray-50);
  margin-top: 8px;
}
#ycpay-container iframe {
  width: 100%;
  border: none;
  min-height: 180px;
}

.card-input {
  display: flex;
  align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0 16px;
  height: 52px;
}

.card-number {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--gray-900);
  margin-left: 12px;
  outline: none;
  letter-spacing: 2px;
}

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-field {
  width: 100%;
  height: 52px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0 16px;
  font-size: 16px;
  color: var(--gray-900);
  outline: none;
  background: var(--gray-50);
}

.card-field:focus {
  border-color: var(--blue);
}

/* Security badge */
.security-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 16px;
}

.security-badge span {
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
}

.disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 12px;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.spinner-sm {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(37,99,235,0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* ==================== CONFIRMATION (PAGE 5) ==================== */
.confirm-header {
  background: var(--green);
  padding: 60px 20px 80px;
  text-align: center;
}

.confirm-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.confirm-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.confirm-header p {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}

/* QR Card */
.qr-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  margin: -40px 20px 20px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-float);
  position: relative;
  z-index: 2;
}

.qr-code {
  margin: 0 auto 16px;
  display: inline-block;
  border: 8px solid var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
}

.qr-label {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.qr-ref {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.confirm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Details Card */
.details-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  margin: 0 20px 20px;
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.detail-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
}

.detail-row:not(:last-child) {
  border-bottom: 1px solid var(--gray-100);
}

.detail-row .blue {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-row div {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 2px;
}

.detail-row strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}

.detail-sub {
  font-size: 13px;
  color: var(--gray-500);
}

/* SMS Banner */
.sms-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-light);
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  margin: 0 20px 20px;
  box-shadow: var(--shadow-xs);
}

.sms-banner span {
  font-size: 14px;
  color: var(--blue);
  line-height: 1.4;
}

/* Confirm Actions */
.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px 16px;
}

.new-reservation-link {
  display: block;
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
  text-decoration: none;
  padding: 12px 20px 40px;
}

.new-reservation-link:hover {
  color: var(--blue);
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 431px) {
  body {
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page.active,
  .modal,
  .modal-content {
    animation: none;
  }
}
