/* DoctorNumber - Clean Patient-Focused UI */

:root {
  --primary: #EA580C;
  --primary-light: #FB923C;
  --primary-dark: #C2410C;
  --primary-gradient: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  --secondary: #10B981;
  --secondary-light: #34D399;
  --accent: #F97316;
  --warning: #F59E0B;
  --danger: #EF4444;
  --success: #22C55E;

  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(180deg, #FFF7ED 0%, #F9FAFB 100%);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== APP CONTAINER ===== */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: white;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.page {
  display: none;
  padding: 20px;
  padding-bottom: 120px;
  animation: fadeIn 0.3s ease;
  overflow-x: hidden;
  overflow-y: auto;
}

.page.active {
  display: block;
}

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

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

/* ===== HEADER ===== */
.header {
  background: var(--primary-gradient);
  color: white;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
}

/* ===== BRAND WORDMARK ===== */
.brand {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.brand-f {
  font-family: 'Fredoka One', cursive;
  font-size: 25px;
  font-weight: 400;
  color: white;
  letter-spacing: 0.2px;
  line-height: 1;
}

.brand-h {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.4px;
  margin-left: 1px;
  line-height: 1;
  align-self: flex-end;
  margin-bottom: 0px;
}

/* Hindi wordmark variants */
.brand-f--hi {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: 0;
}

.brand-h--hi {
  font-family: 'Baloo 2', cursive;
  font-style: normal;
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0;
}

.header-back {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.back-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* Language toggle */
.lang-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  margin-right: 4px;
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.35);
}

.header-menu-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-menu-btn:hover {
  background: rgba(255,255,255,0.25);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 16px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 150;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(8px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--gray-50);
}

.dropdown-item .icon {
  font-size: 18px;
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 4px 0;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: white;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-around;
  padding: 8px 16px 12px;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: var(--gray-600);
  background: var(--gray-50);
}

.nav-item.active {
  color: var(--primary);
  background: rgba(8, 145, 178, 0.1);
}

.nav-item .icon {
  font-size: 24px;
  line-height: 1;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: var(--gray-300);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

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

.btn-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.btn-lg {
  padding: 18px 32px;
  font-size: 18px;
  border-radius: var(--radius-xl);
}

.btn-icon {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: var(--radius-full);
  font-size: 22px;
}

/* ===== HOME ACTION CARDS ===== */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.action-card {
  background: white;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.action-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.action-card:hover::before {
  transform: scaleX(1);
}

.action-card .icon {
  font-size: 44px;
  line-height: 1;
}

.action-card .label {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  text-align: center;
}

/* 4-card 2x2 grid variant */
.action-grid-4 .action-card {
  padding: 20px 12px;
  gap: 10px;
}

.action-grid-4 .action-card img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.action-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Hero card variant — Book Appointment */
.action-card-hero {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #FFF7ED;
  border: 3px solid #EA580C;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.15);
}

.action-card-hero::before {
  display: none;
}

.action-card-hero:hover {
  border-color: #C2410C;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(234, 88, 12, 0.25);
}

/* Baloo 2 for Hindi hero banner title only */
body.lang-hi [data-i18n-html="hero_title"] {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
}

/* ===== HOME HERO BANNER ===== */

/* Header on home page — non-sticky, seamlessly blends into hero body */
#app.at-home .header {
  position: relative;
  background: linear-gradient(180deg, #C2410C 0%, #EA580C 100%);
  box-shadow: none;
  padding-bottom: 0;
}

/* Solid white menu button on home page */
#app.at-home .header-menu-btn {
  background: white;
  color: #111827;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

#app.at-home .header-menu-btn:hover {
  background: #F9FAFB;
}

/* Home hero gradient body — continues from header, fades to white */
.home-hero-body {
  display: none;
  margin: -20px -20px 20px;
  padding: 16px 20px 28px;
  background: linear-gradient(180deg, #EA580C 0%, #F97316 22%, #FDBA74 58%, #FFF7ED 85%, white 100%);
  border-radius: 0 0 32px 32px;
}

#app.at-home .home-hero-body {
  display: block;
}

/* ===== STEPS CYCLING (below hero subtitle) ===== */
.steps-cycle {
  position: relative;
  height: 58px;
  margin: 14px 0 4px;
}

.step-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  opacity: 0;
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-fill-mode: both;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.step-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.35);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  color: #EA580C;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-family: 'Baloo 2', cursive;
  font-size: 15px;
  font-weight: 800;
  color: white;
  white-space: nowrap;
}

.step-desc {
  font-family: 'Baloo 2', cursive;
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  text-align: center;
  line-height: 1.3;
}

.step-1 { animation-name: step1Cycle; }
.step-2 { animation-name: step2Cycle; }
.step-3 { animation-name: step3Cycle; }

/* Each step visible for 3s out of 9s total cycle */
@keyframes step1Cycle {
  0%          { opacity: 0; transform: translateX(14px); }
  8%          { opacity: 1; transform: translateX(0); }
  27%         { opacity: 1; transform: translateX(0); }
  35%, 100%   { opacity: 0; transform: translateX(-10px); }
}
@keyframes step2Cycle {
  0%, 33%     { opacity: 0; transform: translateX(14px); }
  41%         { opacity: 1; transform: translateX(0); }
  60%         { opacity: 1; transform: translateX(0); }
  68%, 100%   { opacity: 0; transform: translateX(-10px); }
}
@keyframes step3Cycle {
  0%, 66%     { opacity: 0; transform: translateX(14px); }
  74%         { opacity: 1; transform: translateX(0); }
  92%         { opacity: 1; transform: translateX(0); }
  100%        { opacity: 0; transform: translateX(-10px); }
}

/* ===== HERO TITLE ===== */
.hero-title-main {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
  animation: heroTitleIn 0.6s ease-out both;
}

body.lang-hi .hero-title-main {
  font-family: 'Baloo 2', cursive;
}

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

/* My Token full-width row */
.my-token-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 2px solid #FED7AA;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s ease;
}

.my-token-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== DOCTOR CARDS ===== */
.doctor-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doctor-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  gap: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.doctor-card::after {
  content: '→';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-300);
  font-size: 20px;
  transition: all 0.3s ease;
}

.doctor-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.doctor-card:hover::after {
  color: var(--primary);
  transform: translateY(-50%) translateX(4px);
}

.doctor-photo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  flex-shrink: 0;
}

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

.doctor-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 30px;
}

.doctor-specialization {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}

.doctor-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
}

.doctor-rating .stars {
  color: var(--warning);
  letter-spacing: -2px;
}

.doctor-queue {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 8px;
}

.doctor-queue .waiting {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(8, 145, 178, 0.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 12px;
}

.doctor-queue .fee {
  font-weight: 600;
  color: var(--secondary);
}

/* ===== TOKEN DISPLAY ===== */
.token-display {
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius-xl);
  padding: 36px;
  text-align: center;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(8, 145, 178, 0.3);
}

.token-display::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
}

.token-label {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.token-number {
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.token-status {
  display: inline-block;
  font-size: 14px;
  margin-top: 20px;
  padding: 10px 28px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

/* Queue Position */
.queue-position {
  text-align: center;
  padding: 28px;
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border-radius: var(--radius-xl);
  margin: 20px 0;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.queue-position .number {
  font-size: 56px;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
}

.queue-position .label {
  font-size: 15px;
  color: var(--gray-600);
  margin-top: 8px;
}

/* Status Colors */
.status-waiting { background: linear-gradient(135deg, var(--warning), #D97706) !important; }
.status-called { background: linear-gradient(135deg, var(--success), #16A34A) !important; animation: pulse 1.5s ease infinite; }
.status-done { background: var(--gray-400) !important; }
.status-no_show { background: linear-gradient(135deg, var(--danger), #DC2626) !important; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gray-700);
}

.form-input {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 16px;
  transition: all 0.25s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

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

/* Phone Input */
.phone-input-group {
  display: flex;
  gap: 10px;
}

.country-code {
  width: 80px;
  text-align: center;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-50);
}

/* ===== TIME SLOTS ===== */
.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.time-slot {
  padding: 14px 22px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.time-slot:hover {
  border-color: var(--primary-light);
  background: rgba(8, 145, 178, 0.05);
}

.time-slot.selected {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.4);
}

.time-slot.disabled {
  background: var(--gray-50);
  color: var(--gray-400);
  cursor: not-allowed;
  border-color: var(--gray-200);
  opacity: 0.7;
}

.time-slot.full {
  background: #FEF2F2;
  border-color: #FECACA;
}

/* ===== DATE PICKER ===== */
.date-picker {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.date-picker::-webkit-scrollbar {
  display: none;
}

.date-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  min-width: 70px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: white;
  cursor: pointer;
  transition: all 0.25s ease;
}

.date-option:hover {
  border-color: var(--primary-light);
  background: rgba(8, 145, 178, 0.05);
}

.date-option.selected {
  background: var(--primary-gradient);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.4);
}

.date-option .day-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-option.selected .day-name {
  color: rgba(255, 255, 255, 0.8);
}

.date-option .date-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
  margin: 4px 0 2px;
}

.date-option.selected .date-num {
  color: white;
}

.date-option .month {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-500);
}

.date-option.selected .month {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== QUEUE LIST ===== */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
}

.queue-item.current {
  border-color: var(--success);
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.queue-token {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius);
  font-size: 20px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.queue-patient {
  flex: 1;
  min-width: 0;
}

.queue-patient-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-patient-phone {
  color: var(--gray-500);
  font-size: 13px;
  margin-top: 2px;
}

.queue-actions {
  display: flex;
  gap: 10px;
}

.btn-call {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-call:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

.btn-call:active {
  transform: scale(0.95);
}

.btn-call svg {
  width: 18px;
  height: 18px;
}

.btn-call.notified {
  background: var(--success);
  cursor: default;
}

.btn-call.notified:hover {
  background: var(--success);
  transform: none;
}

/* ===== SCHEDULE MANAGEMENT ===== */
.location-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.location-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.schedule-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.schedule-grid::-webkit-scrollbar {
  height: 4px;
}

.schedule-grid::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

.schedule-grid::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

.day-card {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
  min-height: 120px;
  min-width: 90px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.day-card.has-slots {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border-color: #FED7AA;
}

.day-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

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

.slot-count {
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
}

.day-slots {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.slot-item {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slot-item:hover {
  border-color: var(--primary);
  background: rgba(8, 145, 178, 0.05);
}

.slot-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-800);
}

.slot-location {
  font-size: 9px;
  color: var(--primary);
  margin-top: 2px;
}

.add-slot-btn {
  font-size: 11px !important;
  padding: 4px 8px !important;
  opacity: 0.7;
}

.day-card:hover .add-slot-btn {
  opacity: 1;
}

.btn-sm {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.stats-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.stat-box {
  flex: 1;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1px solid #FED7AA;
  border-radius: var(--radius);
  padding: 14px 6px;
  text-align: center;
  min-width: 0;
}

.stat-box-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.stat-box-label {
  font-size: 10px;
  color: var(--gray-600);
  margin-top: 6px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.stat-box.open {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border-color: #86EFAC;
}

.stat-box.open .stat-box-value {
  color: var(--success);
}

.stat-box.closed {
  background: linear-gradient(135deg, #FEF2F2 0%, #FECACA 100%);
  border-color: #FCA5A5;
}

.stat-box.closed .stat-box-value {
  color: var(--danger);
}

/* ===== LOCATION TABS ===== */
.location-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.location-tab {
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  background: white;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.location-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.location-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.stat-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: all 0.25s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
  font-weight: 500;
}

/* ===== REVIEWS ===== */
.review-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  transition: all 0.25s ease;
}

.review-card:hover {
  box-shadow: var(--shadow);
}

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

.review-header strong {
  color: var(--gray-800);
}

.review-rating {
  color: var(--warning);
  font-size: 16px;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.review-date {
  color: var(--gray-400);
  font-size: 12px;
}

.review-comment {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

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

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

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
}

.modal-close {
  background: var(--gray-100);
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--gray-500);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

/* ===== ALERTS ===== */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.3s ease;
}

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

.alert-success {
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  color: #065F46;
}

.alert-error {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  color: #991B1B;
}

.alert-warning {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #92400E;
}

/* ===== LOADING ===== */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--gray-400);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--gray-100);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-400);
}

.empty-state .icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 15px;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.tab:hover {
  color: var(--gray-700);
}

.tab.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ===== SEARCH ===== */
.search-box {
  position: relative;
  margin-bottom: 20px;
}

.search-box input {
  width: 100%;
  padding: 16px 16px 16px 52px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-lg);
  font-size: 15px;
  background: var(--gray-50);
  transition: all 0.25s ease;
}

.search-box input:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
  outline: none;
}

.search-box .icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 18px;
  line-height: 0;
}

.search-box .icon svg {
  display: block;
}

/* ===== FILTER CHIPS ===== */
.filter-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  padding: 10px 18px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--gray-600);
}

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

.chip.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.3);
}

/* ===== INFO CARD ===== */
.info-card {
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 20px 0;
}

.info-card p {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}

.info-card p:last-child {
  border-bottom: none;
}

.info-card strong {
  color: var(--gray-500);
  font-weight: 500;
}

/* ===== INSTALL BANNER ===== */
.install-banner {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 16px;
  right: 16px;
  max-width: 448px;
  margin: 0 auto;
  background: var(--primary-gradient);
  color: white;
  padding: 18px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 90;
}

.install-banner.show {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: slideUp 0.4s ease;
}

.install-banner-text {
  flex: 1;
}

.install-banner-text strong {
  display: block;
  font-size: 15px;
}

.install-banner-text p {
  font-size: 12px;
  opacity: 0.9;
  margin: 0;
}

.install-banner-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 380px) {
  .action-grid {
    gap: 12px;
  }

  .action-card {
    padding: 22px 16px;
  }

  .action-card .icon {
    font-size: 36px;
  }

  .token-number {
    font-size: 64px;
  }

  .doctor-photo {
    width: 60px;
    height: 60px;
  }
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 24px 0 20px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--gray-500);
  font-size: 15px;
  margin-top: -12px;
  margin-bottom: 24px;
}

/* ===== SUCCESS ANIMATION ===== */
.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--success), #16A34A);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 40px;
  color: white;
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.4);
  animation: bounceIn 0.5s ease;
}

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

/* ===== PROFILE HEADER ===== */
.profile-header {
  text-align: center;
  padding: 20px 0 30px;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 4px solid white;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.profile-specialty {
  color: var(--primary);
  font-size: 15px;
  font-weight: 500;
}

/* Details tag for collapsible */
details {
  margin-top: 24px;
}

details summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  color: var(--gray-500);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: '▶';
  font-size: 10px;
  transition: transform 0.2s;
}

details[open] summary::before {
  transform: rotate(90deg);
}

/* ===== SLOTS OVERVIEW (Queue Tab) ===== */
.slots-overview {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.slots-overview::-webkit-scrollbar {
  display: none;
}

.slot-card {
  min-width: 100px;
  padding: 14px 12px;
  border-radius: var(--radius);
  text-align: center;
  flex-shrink: 0;
  border: 2px solid;
  transition: all 0.25s ease;
}

.slot-card.empty {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border-color: #86EFAC;
}

.slot-card.partial {
  background: linear-gradient(135deg, #FEF9C3 0%, #FEF08A 100%);
  border-color: #FDE047;
}

.slot-card.full {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  border-color: #FCA5A5;
}

.slot-card-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.slot-card-location {
  font-size: 10px;
  color: var(--primary);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-card-status {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.slot-booked {
  color: var(--gray-800);
}

.slot-card.full .slot-booked {
  color: var(--danger);
}

.slot-card.partial .slot-booked {
  color: var(--warning);
}

.slot-card.empty .slot-booked {
  color: var(--success);
}

.slot-max {
  color: var(--gray-500);
}

.slot-card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slot-card.empty .slot-card-label {
  color: #16A34A;
}

.slot-card.partial .slot-card-label {
  color: #CA8A04;
}

.slot-card.full .slot-card-label {
  color: #DC2626;
}

/* ===== QUEUE LIST ENHANCED ===== */
.queue-patient-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
  flex-wrap: wrap;
}

.queue-slot-badge {
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.queue-slot-badge.walkin {
  background: var(--gray-400);
}

.queue-et-badge {
  background: #FEF3C7;
  color: #92400E;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.queue-est-time {
  color: var(--gray-400);
  font-style: italic;
}

.queue-position {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-400);
  min-width: 36px;
  text-align: center;
}

.queue-item.done {
  opacity: 0.6;
}

.queue-item.done .queue-token {
  background: var(--gray-400);
}

.status-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.status-badge.done {
  background: #D1FAE5;
  color: #065F46;
}

.status-badge.no_show {
  background: #FEE2E2;
  color: #991B1B;
}

/* ===== NAV ICONS ===== */
.nav-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item .icon svg {
  width: 24px;
  height: 24px;
}

/* ===== NOTIFICATION PERMISSION MODAL ===== */
.notification-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.notification-modal {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

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

.notification-modal-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #FFEDD5 0%, #FED7AA 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
}

.notification-modal h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.notification-modal > p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.notification-modal-features {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}

.notification-modal-features .feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--gray-700);
  font-size: 14px;
}

.notification-modal-features .feature-item svg {
  color: var(--success);
  flex-shrink: 0;
}

.notification-modal-note {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 16px;
}

/* ===== AD BANNERS ===== */
.ad-banner {
  position: relative;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 20px 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ad-banner:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.ad-banner-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.ad-banner-content {
  display: block;
  width: 100%;
}

.ad-banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Banner Style - Full Width */
.ad-banner.ad-banner-full {
  border-radius: var(--radius-xl);
}

.ad-banner.ad-banner-full .ad-banner-image {
  min-height: 100px;
  max-height: 150px;
}

/* Card Style - Smaller Inline */
.ad-banner.ad-banner-card {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 14px;
  background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
}

.ad-banner.ad-banner-card .ad-banner-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  flex-shrink: 0;
  object-fit: cover;
}

.ad-banner.ad-banner-card .ad-banner-text {
  flex: 1;
  min-width: 0;
}

.ad-banner.ad-banner-card .ad-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-banner.ad-banner-card .ad-description {
  font-size: 12px;
  color: var(--gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-banner.ad-banner-card .ad-cta {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius);
  margin-top: 8px;
  display: inline-block;
}

.ad-banner.ad-banner-card .ad-banner-label {
  top: 6px;
  left: 6px;
  font-size: 8px;
  padding: 2px 6px;
}

/* Placeholder Ad */
.ad-banner.ad-placeholder {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 2px dashed var(--gray-300);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--gray-400);
}

.ad-banner.ad-placeholder:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.ad-banner.ad-placeholder .ad-placeholder-icon {
  font-size: 28px;
  opacity: 0.6;
}

.ad-banner.ad-placeholder .ad-placeholder-text {
  font-size: 12px;
  font-weight: 500;
}

/* Doctor List Ad - Between Cards */
.doctor-list .ad-banner {
  margin: 8px 0;
}

/* =====================
   HOW IT WORKS — TIMELINE
   ===================== */
.hiw-section {
  margin: 28px 0;
}

.hiw-title {
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  margin: 0 0 20px;
  text-align: center;
}

.hiw-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Each row: left column (node + line) + right column (text) */
.hiw-item {
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.hiw-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 52px;
}

/* Icon node */
.hiw-node {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1;
}

.hiw-node--1 { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); border: 1.5px solid #FED7AA; }
.hiw-node--2 { background: linear-gradient(135deg, #F5F3FF, #EDE9FE); border: 1.5px solid #C4B5FD; }
.hiw-node--3 { background: linear-gradient(135deg, #F0FDF4, #DCFCE7); border: 1.5px solid #86EFAC; }

/* Connecting line segment between steps */
.hiw-line {
  flex: 1;
  width: 2px;
  min-height: 24px;
  border-radius: 2px;
  margin: 2px 0;
}

.hiw-line--12 { background: linear-gradient(to bottom, #EA580C, #7C3AED); }
.hiw-line--23 { background: linear-gradient(to bottom, #7C3AED, #16A34A); }

/* Text content */
.hiw-body {
  flex: 1;
  padding: 6px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hiw-step-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  border-radius: 4px;
  padding: 2px 6px;
  align-self: flex-start;
}

.hiw-tag--1 { background: #FFF7ED; color: #EA580C; }
.hiw-tag--2 { background: #F5F3FF; color: #7C3AED; }
.hiw-tag--3 { background: #F0FDF4; color: #16A34A; }

.hiw-step-title {
  font-size: 15px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.3;
}

.hiw-step-desc {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
}

/* =====================
   WHY DOCTORNUMBER SECTION
   ===================== */
@keyframes whyCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.why-section {
  padding: 8px 0 4px;
}

.why-title {
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  margin: 0 0 12px;
  text-align: center;
  letter-spacing: -0.2px;
}

.why-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.why-slider::-webkit-scrollbar {
  display: none;
}

.why-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.why-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D1D5DB;
  transition: all 0.3s ease;
  cursor: pointer;
}

.why-dot.active {
  width: 20px;
  border-radius: 3px;
  background: #EA580C;
}

.why-card {
  position: relative;
  border-radius: 18px;
  padding: 20px 16px 18px;
  overflow: hidden;
  animation: whyCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  cursor: default;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  /* Slider item sizing */
  flex: 0 0 58%;
  scroll-snap-align: center;
  min-width: 0;
}

.why-card:active {
  transform: scale(0.97);
}

/* Colour variants */
.why-card--orange {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.12);
}
.why-card--blue {
  background: linear-gradient(135deg, #E0F7FA 0%, #B2EBF2 100%);
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.12);
}
.why-card--purple {
  background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
  box-shadow: 0 4px 16px rgba(126, 34, 206, 0.12);
}
.why-card--green {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.12);
}

/* Large decorative circle behind content */
.why-card-bg-circle {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  bottom: -22px;
  right: -18px;
  opacity: 0.18;
}
.why-card--orange .why-card-bg-circle { background: #EA580C; }
.why-card--blue   .why-card-bg-circle { background: #0891B2; }
.why-card--purple .why-card-bg-circle { background: #7C3AED; }
.why-card--green  .why-card-bg-circle { background: #15803D; }

/* Big stat number */
.why-stat {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}
.why-card--orange .why-stat { color: #C2410C; }
.why-card--blue   .why-stat { color: #0369A1; }
.why-card--purple .why-stat { color: #6D28D9; }
.why-card--green  .why-stat { color: #15803D; }

/* Icon wrapper */
.why-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.why-card--orange .why-icon-wrap { background: rgba(234, 88, 12, 0.12); }
.why-card--blue   .why-icon-wrap { background: rgba(8, 145, 178, 0.12); }
.why-card--purple .why-icon-wrap { background: rgba(124, 58, 237, 0.12); }
.why-card--green  .why-icon-wrap { background: rgba(21, 128, 61, 0.12); }

.why-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 2px;
}

.why-card-sub {
  font-size: 11px;
  font-weight: 400;
  color: #6B7280;
  line-height: 1.4;
}
