/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:        #f97316;
  --brand-dark:   #ea6c0a;
  --brand-light:  #fff7ed;
  --bg:           #f8fafc;
  --surface:      #ffffff;
  --border:       #e2e8f0;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --success:      #22c55e;
  --danger:       #ef4444;
  --warning:      #f59e0b;
  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 10px 40px rgba(0,0,0,.14);
  --nav-h:        72px;
  --topbar-h:     60px;
  --max-w:        480px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

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

/* ── App Shell ────────────────────────────────── */
.app-shell {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--surface);
  position: relative;
  box-shadow: var(--shadow-lg);
}

/* Full desktop — centered phone-frame look */
@media (min-width: 520px) {
  body {
    background: #cbd5e1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
  }
  .app-shell {
    width: var(--max-w);
    flex-shrink: 0;
    min-height: 100vh;
    box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 20px 60px rgba(0,0,0,.18);
  }
}

/* ── Top Bar ──────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  flex: 1;
}
.topbar-logo .logo-dot { color: var(--brand); }
.topbar-back {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  font-size: .9rem;
  flex-shrink: 0;
}
.topbar-title { font-weight: 700; font-size: 1rem; flex: 1; }
.topbar-action {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  font-size: .9rem;
}

/* ── Orange Hero Topbar ───────────────────────── */
.topbar-orange {
  background: var(--brand);
  border-bottom: none;
}
.topbar-orange .topbar-logo,
.topbar-orange .topbar-title,
.topbar-orange .topbar-back,
.topbar-orange .topbar-action { color: #fff; }
.topbar-orange .topbar-back,
.topbar-orange .topbar-action { background: rgba(255,255,255,.2); }

/* ── Page Content ─────────────────────────────── */
.page-content {
  padding: 0 0 calc(var(--nav-h) + 8px);
}
.page-content.no-nav { padding-bottom: 24px; }
.section { padding: 16px 16px 0; }
.section:last-child { padding-bottom: 16px; }

/* ── Bottom Nav ───────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: var(--max-w);
  height: var(--nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 200;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-light);
  font-size: .7rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-item.active { color: var(--brand); }
.nav-item i { font-size: 1.3rem; }
.nav-item.active i { font-weight: 900; }
.nav-book {
  position: relative;
  top: -14px;
}
.nav-book-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(249,115,22,.4);
  color: #fff;
  font-size: 1.4rem;
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, #fb923c 100%);
  padding: 28px 20px 32px;
  color: #fff;
}
.hero-greeting { font-size: .85rem; opacity: .85; margin-bottom: 4px; }
.hero-name { font-size: 1.5rem; font-weight: 800; }
.hero-sub { font-size: .85rem; opacity: .8; margin-top: 4px; }
.hero-search {
  margin-top: 20px;
  background: rgba(255,255,255,.2);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 10px;
  backdrop-filter: blur(8px);
}
.hero-search input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  flex: 1;
  font-size: .9rem;
}
.hero-search input::placeholder { color: rgba(255,255,255,.65); }
.hero-search i { color: rgba(255,255,255,.75); }

/* ── Stats Strip ──────────────────────────────── */
.stats-strip {
  display: flex;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.stat-chip {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid var(--border);
}
.stat-chip:last-child { border-right: none; }
.stat-chip-val { font-size: 1.2rem; font-weight: 800; color: var(--brand); }
.stat-chip-lbl { font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

/* ── Section Header ───────────────────────────── */
.sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sec-title { font-size: 1rem; font-weight: 700; }
.sec-link { font-size: .8rem; color: var(--brand); font-weight: 600; }

/* ── Category Cards ───────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cat-card {
  background: var(--brand-light);
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: all .15s;
}
.cat-card:hover, .cat-card:active { background: #ffedd5; transform: scale(.98); }
.cat-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.cat-card-name { font-weight: 700; font-size: .9rem; color: var(--text); }
.cat-card-arrow { color: var(--brand); font-size: .8rem; margin-top: auto; }

/* ── Chef Cards (Horizontal Scroll) ──────────── */
.chefs-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.chefs-scroll::-webkit-scrollbar { display: none; }
.chef-card {
  flex-shrink: 0;
  width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.chef-card-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: var(--border);
}
.chef-card-img-placeholder {
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 2rem;
}
.chef-card-body { padding: 10px 10px 12px; }
.chef-card-name { font-weight: 700; font-size: .8rem; line-height: 1.3; }
.chef-card-spec { font-size: .7rem; color: var(--text-muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chef-card-exp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 50px;
}

/* ── List Items ───────────────────────────────── */
.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .1s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--bg); }
.list-item-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  font-size: 1rem;
  flex-shrink: 0;
}
.list-item-body { flex: 1; min-width: 0; }
.list-item-title { font-weight: 600; font-size: .9rem; }
.list-item-sub { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.list-item-right { color: var(--text-light); font-size: .85rem; }

/* ── Card ─────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-body { padding: 20px; }

/* ── Booking Step Wizard ──────────────────────── */
.step-progress {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all .2s;
}
.step-dot.done { background: var(--success); color: #fff; }
.step-dot.active { background: var(--brand); color: #fff; box-shadow: 0 0 0 3px rgba(249,115,22,.2); }
.step-line { flex: 1; height: 2px; background: var(--border); }
.step-line.done { background: var(--success); }

/* ── Form ─────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: .9rem;
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.form-control:focus { border-color: var(--brand); background: #fff; }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; }
.input-group { position: relative; }
.input-group .form-control { padding-left: 42px; }
.input-group-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .9rem;
  pointer-events: none;
}
.input-group-icon.right {
  left: auto;
  right: 14px;
  pointer-events: auto;
  cursor: pointer;
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all .15s;
  border: none;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(249,115,22,.3);
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:active { transform: scale(.97); }
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost { background: transparent; color: var(--brand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Selection Cards ──────────────────────────── */
.select-grid { display: flex; flex-direction: column; gap: 10px; }
.select-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s;
  background: var(--surface);
}
.select-card:hover { border-color: var(--brand); background: var(--brand-light); }
.select-card.selected { border-color: var(--brand); background: var(--brand-light); }
.select-card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  font-size: 1rem;
  flex-shrink: 0;
}
.select-card.selected .select-card-icon { background: var(--brand); color: #fff; }
.select-card-body { flex: 1; }
.select-card-title { font-weight: 700; font-size: .9rem; }
.select-card-sub { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.select-card-check { color: var(--text-light); font-size: 1rem; }
.select-card.selected .select-card-check { color: var(--brand); }

/* ── Auth Pages ───────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth-hero {
  background: linear-gradient(135deg, var(--brand) 0%, #fb923c 100%);
  padding: 48px 28px 36px;
  color: #fff;
  text-align: center;
}
.auth-hero-logo { font-size: 2rem; font-weight: 900; letter-spacing: -.02em; }
.auth-hero-logo span { opacity: .7; }
.auth-hero-tagline { font-size: .88rem; opacity: .8; margin-top: 6px; }
.auth-body { flex: 1; padding: 28px 24px; }
.auth-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.auth-sub { font-size: .85rem; color: var(--text-muted); margin-bottom: 24px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: .85rem; color: var(--text-muted); }
.auth-switch a { color: var(--brand); font-weight: 700; }
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-light);
  font-size: .8rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Alert ────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Badge ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-pending  { background: #fef9c3; color: #854d0e; }
.badge-accepted { background: #dcfce7; color: #166534; }
.badge-declined { background: #fee2e2; color: #991b1b; }
.badge-completed{ background: #e0f2fe; color: #0c4a6e; }
.badge-orange   { background: var(--brand-light); color: var(--brand); }

/* ── Booking Card ─────────────────────────────── */
.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.booking-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.booking-card-num { font-size: .75rem; color: var(--text-muted); }
.booking-card-title { font-weight: 700; font-size: .95rem; margin-top: 2px; }
.booking-card-meta { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.booking-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
}
.booking-meta-row i { width: 14px; color: var(--brand); font-size: .8rem; }

/* ── Summary Box ──────────────────────────────── */
.summary-box {
  background: var(--brand-light);
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius);
  padding: 18px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #fed7aa;
  font-size: .85rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-row-label { color: var(--text-muted); }
.summary-row-value { font-weight: 700; color: var(--text); }
.summary-total { font-size: 1rem !important; }
.summary-total .summary-row-value { color: var(--brand); font-size: 1.1rem; }

/* ── Profile ──────────────────────────────────── */
.profile-hero {
  background: linear-gradient(135deg, var(--brand), #fb923c);
  padding: 36px 20px 28px;
  text-align: center;
  color: #fff;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,.4);
}
.profile-name { font-size: 1.2rem; font-weight: 800; }
.profile-email { font-size: .82rem; opacity: .8; margin-top: 3px; }

/* ── Empty State ──────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 30px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: .4; }
.empty-state-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-state-sub { font-size: .85rem; margin-bottom: 20px; }

/* ── Confirm Section ──────────────────────────── */
.confirm-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.confirm-item:last-child { border-bottom: none; }
.confirm-item-label {
  width: 110px;
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}
.confirm-item-value { font-size: .88rem; font-weight: 600; color: var(--text); flex: 1; }

/* ── Utility ──────────────────────────────────── */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-0  { margin-bottom: 0; }
.gap-8 { gap: 8px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-brand { color: var(--brand); }
.fw-bold { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.small { font-size: .82rem; }
.spacer { flex: 1; }

/* ── Skeleton Loader ──────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Floating Bottom CTA ──────────────────────── */
.bottom-cta {
  position: sticky;
  bottom: var(--nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 50;
}

/* Price Tag ── */
.price-tag {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand);
}
.price-old {
  font-size: .78rem;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 400;
}

/* ── Date Input Wrapper ───────────────────────── */
.date-row { display: flex; gap: 10px; }
.date-row .form-group { flex: 1; }
