/* ═══════════════════════════════════════════════════════════════
   ETEL DELIVERY — Customer App v5.1  |  Premium Metallic Gold Redesign
   Charcoal/black surfaces · restrained metallic gold · glassmorphism
   Palette retoned from vivid #FFD700 -> client-supplied metallic gold
   (#D4AF37/#F0CA58) and charcoal surfaces (#07070A/#101014/#15151B) to
   match the ETEL Delivery premium reference screenshots. All markup,
   class names, and JS hooks are unchanged - visual layer only.
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* ── METALLIC GOLD PALETTE ── */
  --gold:         #D4AF37;          /* metallic gold */
  --gold-2:       #C8960C;          /* warm amber gold */
  --gold-light:   #F0CA58;          /* gold highlight */
  --gold-pale:    #F5DFA0;          /* soft shimmer */
  --gold-dark:    #C8960C;          /* deep rich gold */
  --gold-deeper:  #7A5A10;          /* shadow gold */
  --gold-dim:     rgba(212,175,55,.14);
  --gold-glow:    rgba(212,175,55,.4);
  --gold-glow-2:  rgba(212,175,55,.65);
  --gold-grad:    linear-gradient(135deg,#D4AF37,#C8960C,#A07820);
  --gold-grad-v:  linear-gradient(180deg,#F0CA58,#D4AF37,#C8960C);
  --gold-grad-text: linear-gradient(120deg,#F5DFA0 0%,#D4AF37 40%,#C8960C 70%,#A07820 100%);

  /* ── CHARCOAL / BLACK BACKGROUND ── */
  --dark:         #07070A;
  --dark-2:       #101014;
  --dark-3:       #15151B;
  --glass:        rgba(212,175,55,.04);
  --glass-2:      rgba(212,175,55,.07);
  --glass-border: rgba(212,175,55,.12);
  --glass-gold:   rgba(212,175,55,.18);

  /* ── TEXT ── */
  --text:         #F7F1DF;
  --text-muted:   rgba(247,241,223,.55);
  --text-dim:     rgba(247,241,223,.5);
  --muted:        #9D998D;

  /* ── ACCENT COLORS ── */
  --teal:         #4ECDC4;
  --purple:       #A855F7;
  --red:          #EF4444;
  --green:        #22C55E;
  --success:      #32C875;
  --danger:       #EF4444;

  /* ── RADII & EASING ── */
  /* ── TYPE (one place to change fonts) ── */
  --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Ethiopic', 'Nyala', sans-serif;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --red-solid:    #C81E1E;          /* white text on this passes 4.5:1 (the lighter --red does not) */

  --r:            18px;
  --r-sm:         12px;
  --r-xs:         8px;
  --ease:         cubic-bezier(.4,0,.2,1);
  --spring:       cubic-bezier(.34,1.56,.64,1);
}

html { scroll-behavior: smooth; }
body {
  /* Was 'Poppins' - swapped to the Group's canonical body font (Syne for
     display type below) so the customer app reads as the same product as
     ethelmarket.com instead of a different one. Matching Google Fonts
     <link> update needed in delivery/customer.html. */
  font-family: var(--font-body);
  font-variant-numeric: lining-nums;   /* prices and order codes were drawn with old-style figures (ET-1011 looked like ET-IOII) */
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 90px;
}

/* ── AMBIENT BACKGROUND ─────────────────────────────────────── */
.bg-ambient {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% -5%, rgba(212,175,55,.14) 0%, transparent 65%),
    radial-gradient(ellipse 50% 35% at 100% 100%, rgba(78,205,196,.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 0% 60%, rgba(212,175,55,.06) 0%, transparent 55%),
    linear-gradient(160deg, #07070A 0%, #0A0A12 50%, #07070A 100%);
  pointer-events: none;
}
.bg-orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
  animation: floatOrb 12s ease-in-out infinite;
  pointer-events: none;
}
.bg-orb-1 {
  width: 600px; height: 600px; top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(212,175,55,.1) 0%, transparent 70%);
  animation-duration: 14s;
}
.bg-orb-2 {
  width: 450px; height: 450px; bottom: 20%; right: -120px;
  background: radial-gradient(circle, rgba(78,205,196,.05) 0%, transparent 70%);
  animation-duration: 18s; animation-delay: -6s;
}
.bg-orb-3 {
  width: 350px; height: 350px; top: 45%; left: 25%;
  background: radial-gradient(circle, rgba(212,175,55,.07) 0%, transparent 70%);
  animation-duration: 22s; animation-delay: -10s;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px,-30px) scale(1.05); }
  66% { transform: translate(-15px,20px) scale(.95); }
}

/* ── HEADER ─────────────────────────────────────────────────── */
.app-header {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 48px);
  height: 76px;
  background: rgba(8,8,16,.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}
.header-brand {
  display: flex; align-items: center; gap: 12px;
}
.brand-logo {
  /* Was 38px with object-fit:cover, cropping the circular coin into a
     small square and losing most of its detail - now shown at full
     size with contain, so the whole coin reads clearly instead of a
     cropped fragment of it. */
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1.5px solid rgba(212,175,55,.4);
  box-shadow: 0 0 20px rgba(212,175,55,.25);
  object-fit: contain;
  background: transparent;
}
.brand-name {
  font-size: 15px; font-weight: 800;
  background: var(--gold-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.02em;
  filter: drop-shadow(0 0 8px rgba(212,175,55,.3));
}
.brand-location {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-muted);
  margin-top: 2px; cursor: pointer;
}
.location-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold), 0 0 16px rgba(212,175,55,.5);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-btn {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1.5px solid var(--glass-border);
  background: var(--glass);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  color: var(--text);
  transition: all .2s var(--ease);
}
.header-btn:hover {
  background: var(--glass-2);
  border-color: rgba(212,175,55,.5);
  box-shadow: 0 0 20px rgba(212,175,55,.25);
  transform: translateY(-1px);
}
.cart-btn { background: linear-gradient(135deg, rgba(212,175,55,.22), rgba(212,175,55,.08)); border-color: rgba(212,175,55,.3); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px; border: 2px solid var(--dark);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ── MAIN ─────────────────────────────────────────────────────── */
.app-main {
  position: relative; z-index: 1;
  width: 100%; max-width: 100%;
  padding: 0 0 20px;
}

/* ── SEARCH ───────────────────────────────────────────────────── */
.search-container {
  position: sticky; top: var(--app-header-h, 64px); z-index: 100;
  background: rgba(8,8,16,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px clamp(16px, 3vw, 40px) 10px;
  border-bottom: 1px solid var(--glass-border);
  width: 100%;
}
.search-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--glass-2);
  border: 1.5px solid var(--glass-border);
  border-radius: 14px;
  padding: 0 14px;
  transition: all .25s var(--ease);
}
.search-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.15), 0 8px 40px rgba(212,175,55,.15);
  background: rgba(212,175,55,.06);
}
.search-icon { color: var(--text-muted); flex-shrink: 0; }
.search-input {
  flex: 1; border: none; background: none; outline: none;
  font-family: var(--font-body);
  font-size: 14px; color: var(--text);
  padding: 12px 0;
}
.search-input::placeholder { color: var(--text-dim); }
.search-filter-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--gold-dim); border: 1px solid var(--gold-glow);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gold);
  flex-shrink: 0;
  transition: all .2s;
}
.search-filter-btn:hover { background: rgba(212,175,55,.25); }

/* Filter pills */
.filter-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-pill {
  flex-shrink: 0;
  padding: 6px 14px; border-radius: 20px;
  background: var(--glass); border: 1.5px solid var(--glass-border);
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; white-space: nowrap;
  transition: all .2s var(--ease);
  font-family: var(--font-body);
}
.filter-pill:hover { border-color: rgba(212,175,55,.45); color: var(--gold-light); }
.filter-pill.active {
  background: linear-gradient(135deg, rgba(212,175,55,.22), rgba(212,175,55,.08));
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 2px 16px rgba(212,175,55,.25), inset 0 1px 0 rgba(212,175,55,.2);
  text-shadow: 0 0 12px rgba(212,175,55,.4);
}

/* Category chips */
.category-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 2px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.category-row::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 12px;
  background: var(--glass); border: 1.5px solid var(--glass-border);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; white-space: nowrap;
  transition: all .2s var(--ease);
  font-family: var(--font-body);
}
.cat-chip span { font-size: 16px; }
.cat-chip:hover { transform: translateY(-2px); border-color: rgba(212,175,55,.4); color: var(--text); }
.cat-chip.active {
  background: linear-gradient(135deg, rgba(212,175,55,.2), rgba(212,175,55,.07));
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 4px 20px rgba(212,175,55,.28), inset 0 1px 0 rgba(212,175,55,.25);
  text-shadow: 0 0 10px rgba(212,175,55,.5);
  transform: translateY(-2px);
}

/* ── VIEW SECTIONS ─────────────────────────────────────────── */
.view-section { padding: 20px clamp(16px, 3vw, 40px) 0; animation: fadeIn .35s var(--ease); width: 100%; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── PROMO BANNERS ─────────────────────────────────────────── */
.promo-track {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  width: 100%;
}
.promo-track::-webkit-scrollbar { display: none; }
.promo-card {
  flex-shrink: 0;
  width: min(300px, 82vw);
  border-radius: 20px;
  padding: 22px 22px;
  display: flex; align-items: center; gap: 18px;
  position: relative; overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s var(--spring), box-shadow .3s;
}
.promo-card:hover { transform: translateY(-4px) scale(1.01); }
.promo-gold {
  background: linear-gradient(135deg, #1E1700 0%, #2A2000 50%, #1A1400 100%);
  border-color: rgba(212,175,55,.45);
  box-shadow: 0 8px 48px rgba(212,175,55,.2), 0 0 0 1px rgba(212,175,55,.08), inset 0 1px 0 rgba(212,175,55,.25);
}
.promo-teal {
  background: linear-gradient(135deg, #0D2626 0%, #061616 100%);
  border-color: rgba(78,205,196,.35);
  box-shadow: 0 8px 40px rgba(78,205,196,.12), inset 0 1px 0 rgba(78,205,196,.2);
}
.promo-purple {
  background: linear-gradient(135deg, #1E0D35 0%, #120820 100%);
  border-color: rgba(168,85,247,.35);
  box-shadow: 0 8px 40px rgba(168,85,247,.12), inset 0 1px 0 rgba(168,85,247,.2);
}
.promo-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 6px;
}
.promo-gold .promo-badge { background: rgba(212,175,55,.18); color: var(--gold-light); border: 1px solid rgba(212,175,55,.3); }
.promo-teal .promo-badge { background: rgba(78,205,196,.2); color: var(--teal); }
.promo-purple .promo-badge { background: rgba(168,85,247,.2); color: #C084FC; }
.promo-icon { font-size: 42px; line-height: 1; flex-shrink: 0; }
.promo-body { flex: 1; }
.promo-headline {
  font-family: 'Syne', sans-serif;
  font-size: 24px; font-weight: 700; line-height: 1.1;
  letter-spacing: -.02em;
}
.promo-gold .promo-headline { background: var(--gold-grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 8px rgba(212,175,55,.4)); }
.promo-teal .promo-headline { color: var(--teal); }
.promo-purple .promo-headline { color: #C084FC; }
.promo-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.promo-code-tag {
  display: inline-block; margin-top: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 8px;
  font-family: 'Courier New', monospace;
}
.promo-gold .promo-code-tag { background: rgba(212,175,55,.12); color: var(--gold); border: 1px solid rgba(212,175,55,.35); text-shadow: 0 0 8px rgba(212,175,55,.5); }
.promo-teal .promo-code-tag { background: rgba(78,205,196,.12); color: var(--teal); border: 1px solid rgba(78,205,196,.25); }
.promo-purple .promo-code-tag { background: rgba(168,85,247,.12); color: #C084FC; border: 1px solid rgba(168,85,247,.25); }
.promo-shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, transparent 60%);
  pointer-events: none;
}
.promo-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 20px; }
.dot { width: 6px; height: 6px; border-radius: 3px; background: var(--glass-border); transition: all .3s; }
.dot.active { width: 20px; background: var(--gold); }

/* ── QUICK ACCESS ───────────────────────────────────────────── */
.quick-access {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px;
  margin-bottom: 28px;
}
.quick-card {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 16px;
  text-decoration: none;
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  transition: all .25s var(--ease);
  position: relative; overflow: hidden;
}
.quick-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.04), transparent);
  pointer-events: none;
}
.quick-card:hover { transform: translateY(-3px); }
.quick-ride {
  background: linear-gradient(135deg, rgba(212,175,55,.12), rgba(212,175,55,.04));
  border-color: rgba(212,175,55,.3);
}
.quick-ride:hover { box-shadow: 0 8px 32px rgba(212,175,55,.2); border-color: rgba(212,175,55,.5); }
.quick-hail {
  background: linear-gradient(135deg, rgba(78,205,196,.1), rgba(78,205,196,.03));
  border-color: rgba(78,205,196,.25);
}
.quick-hail:hover { box-shadow: 0 8px 32px rgba(78,205,196,.15); }
.quick-driver {
  background: linear-gradient(135deg, rgba(168,85,247,.1), rgba(168,85,247,.03));
  border-color: rgba(168,85,247,.25);
}
.quick-driver:hover { box-shadow: 0 8px 32px rgba(168,85,247,.15); }
.quick-icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.quick-title { font-size: 13px; font-weight: 700; color: var(--text); }
.quick-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.quick-arrow { margin-left: auto; font-size: 18px; color: var(--gold-light); font-weight: 700; }

/* ── SECTION HEADER ─────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.section-title-wrap { display: flex; align-items: center; gap: 8px; }
.section-title { font-size: 17px; font-weight: 700; color: var(--text); }
.section-count {
  font-size: 12px; color: var(--text-dim);
  background: var(--glass); border: 1px solid var(--glass-border);
  padding: 2px 8px; border-radius: 8px;
}
.see-all-btn {
  font-size: 12px; font-weight: 700; color: var(--gold);
  background: none; border: 1px solid rgba(212,175,55,.2); cursor: pointer;
  font-family: var(--font-body);
  padding: 5px 12px; border-radius: 20px;
  transition: all .2s;
  text-shadow: 0 0 8px rgba(212,175,55,.4);
}
.see-all-btn:hover { background: rgba(212,175,55,.1); border-color: rgba(212,175,55,.4); box-shadow: 0 0 12px rgba(212,175,55,.2); }

/* ── SHOPS HORIZONTAL SCROLL ────────────────────────────────── */
.shops-scroll {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 20px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.shops-scroll::-webkit-scrollbar { display: none; }

/* restaurant-card is generated by customer.js — make it beautiful */
.restaurant-card {
  flex-shrink: 0;
  width: 160px;
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: all .3s var(--spring);
}
.restaurant-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(212,175,55,.4);
  box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(212,175,55,.15);
}
.restaurant-card-image {
  width: 100%; height: 100px;
  display: flex; align-items: center; justify-content: center;
  font-size: 46px; line-height: 1;
  position: relative; overflow: hidden;
}
.restaurant-card-body {
  padding: 10px 12px 12px;
}
.restaurant-card-name {
  font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.restaurant-card-meta {
  font-size: 12px; color: var(--text-muted);
}
.restaurant-card-info {
  font-size: 12px; color: var(--gold);
  margin-top: 4px;
}

/* ── ITEMS GRID ─────────────────────────────────────────────── */
.items-grid, .offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

/* offer-card is generated by customer.js */
.offer-card {
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: all .3s var(--spring);
  position: relative;
}
.offer-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,175,55,.4);
  box-shadow: 0 14px 36px rgba(0,0,0,.4);
}
.offer-card-image {
  width: 100%; height: 120px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; background: var(--glass);
  position: relative;
}
.offer-card-body { padding: 12px; }
.offer-card-name {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 4px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.offer-card-shop { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.offer-card-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.offer-card-price {
  font-size: 15px; font-weight: 800;
  background: var(--gold-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(212,175,55,.3));
}
.add-btn {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-2));
  border: none; cursor: pointer; font-size: 20px; font-weight: 700; color: #0A0800;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s var(--spring);
  box-shadow: 0 3px 12px rgba(212,175,55,.4);
}
.add-btn:hover { transform: scale(1.18); box-shadow: 0 6px 20px rgba(212,175,55,.55); }

/* ── SKELETONS ──────────────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-base {
  background: linear-gradient(90deg, var(--glass) 25%, rgba(255,255,255,.08) 50%, var(--glass) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: var(--r);
}
.skeleton-card {
  flex-shrink: 0; width: 160px; height: 165px;
  background: linear-gradient(90deg, var(--glass) 25%, rgba(255,255,255,.07) 50%, var(--glass) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: var(--r);
  border: 1px solid var(--glass-border);
}
.skeleton-item {
  height: 200px;
  background: linear-gradient(90deg, var(--glass) 25%, rgba(255,255,255,.07) 50%, var(--glass) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: var(--r);
  border: 1px solid var(--glass-border);
}

/* ── BOTTOM NAV ─────────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center;
  height: 72px; padding: 0 8px 8px;
  background: rgba(8,8,16,.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--glass-border);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  height: 100%; border: none; background: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600; color: var(--text-dim);
  border-radius: 14px;
  transition: all .25s var(--ease);
  position: relative;
}
.nav-item svg { transition: all .25s var(--ease); }
.nav-item span { transition: all .25s; }
.nav-item:hover { color: var(--text-muted); }
.nav-item.active {
  color: var(--gold-light);
}
.nav-item.active svg { stroke: var(--gold); filter: drop-shadow(0 0 8px rgba(212,175,55,.7)); }
.nav-item.active::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 3px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--gold-light));
  border-radius: 0 0 8px 8px;
  box-shadow: 0 0 16px rgba(212,175,55,.8), 0 0 32px rgba(212,175,55,.3);
}

/* Center nav item (Orders) */
.nav-center { flex: 1.2; }
.nav-center-btn {
  width: 50px; height: 50px; border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 28px rgba(212,175,55,.5), 0 0 0 1px rgba(212,175,55,.2);
  margin-bottom: 2px;
  transition: all .3s var(--spring);
}
.nav-center:hover .nav-center-btn { transform: scale(1.08) translateY(-2px); }
.nav-center.active .nav-center-btn { box-shadow: 0 8px 32px rgba(212,175,55,.5); }
.nav-center svg { stroke: #1a1a00; }
.nav-center.active::before { display: none; }

/* ── CART DRAWER ─────────────────────────────────────────────── */
.cart-drawer {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(400px, 100vw);
  background: rgba(12,12,22,.97);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  display: flex; flex-direction: column;
  animation: slideLeft .3s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
@keyframes slideLeft { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; z-index: 2;
  background: rgba(12,12,22,.97);
  backdrop-filter: blur(20px);
  flex-shrink: 0;
}
.cart-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--text);
}
.cart-close {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-muted); cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.cart-close:hover { background: var(--glass-2); color: var(--text); }

/* ── PROFILE PANEL ──────────────────────────────────────────── */
.profile-panel {
  position: absolute; top: 72px; right: 12px;
  width: min(280px, calc(100vw - 24px));
  background: rgba(14,14,26,.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: scaleIn .2s var(--spring);
}
@keyframes scaleIn { from { opacity: 0; transform: scale(.95) translateY(-8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.profile-panel-header {
  font-size: 16px; font-weight: 700; color: var(--gold-light);
  margin-bottom: 14px;
}
.logout-btn {
  width: 100%; padding: 12px;
  background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3);
  border-radius: 12px; font-size: 14px; font-weight: 600;
  color: #FCA5A5; cursor: pointer; margin-top: 16px;
  font-family: var(--font-body);
  transition: all .2s;
}
.logout-btn:hover { background: rgba(239,68,68,.25); }

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 60px 20px;
}
.empty-icon { font-size: 52px; margin-bottom: 16px; opacity: .5; }
.empty-text { font-size: 15px; color: var(--text-muted); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.app-footer {
  margin-top: 40px; padding: 28px 20px 20px;
  border-top: 1px solid var(--glass-border);
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.footer-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.footer-chips span {
  font-size: 12px; padding: 4px 10px; border-radius: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-muted);
}
.footer-links {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
}
.footer-links a {
  font-size: 12px; color: var(--text-dim); text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-size: 12px; color: var(--text-dim);
}

/* ── ORDER CARDS (from customer.js) ─────────────────────────── */
.order-card {
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 12px;
  transition: all .2s;
}
.order-card:hover { border-color: rgba(212,175,55,.3); }

/* ── STATUS BADGES ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.badge-pending   { background: rgba(234,179,8,.15); color: #FDE047; }
.badge-active    { background: rgba(34,197,94,.15); color: #86EFAC; }
.badge-delivered { background: rgba(78,205,196,.15); color: var(--teal); }
.badge-cancelled { background: rgba(239,68,68,.15); color: #FCA5A5; }

/* ── MODAL OVERLAY ──────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7); z-index: 500;
  backdrop-filter: blur(8px);
}

/* ── REAL MODAL (shared openModal()/closeModal() from core.js) ──
   #modal itself has no box styling - it's just a positioning root;
   openModal() injects .modal-bg (backdrop) and .modal-box (content)
   into it, then toggles the .open class here to show/hide. */
#modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  align-items: center; justify-content: center; padding: 20px;
}
#modal.open { display: flex; }
#modal .modal-bg {
  position: absolute; inset: 0;
  background: rgba(5,5,10,.7); backdrop-filter: blur(4px);
}
#modal .modal-box {
  position: relative; z-index: 1;
  width: min(440px, 100%); max-height: 85vh; overflow-y: auto;
  background: linear-gradient(180deg, #171006, #0a0703);
  border: 1px solid rgba(212,175,55,.25); border-radius: 18px;
  padding: 22px; color: #F5EDD8;
  animation: modalSheetIn .22s cubic-bezier(.22,1,.36,1);
}
#modal .modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: rgba(245,237,216,.5);
  font-size: 20px; cursor: pointer; line-height: 1;
}
@keyframes modalSheetIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,175,55,.3); }

/* ══════════════════════════════════════════════════════════════
   FULL-SCREEN RESPONSIVE — fills every screen automatically
   ══════════════════════════════════════════════════════════════ */

/* ── Base: fluid widths for everything ── */
.app-header,
.search-container,
.app-main,
.bottom-nav { width: 100%; }

/* ── Promo cards: always fill track width proportionally ── */
.promo-card { width: clamp(260px, 78vw, 380px); }

/* ── Items & offers grid: fluid auto-fill ── */
.items-grid, .offers-grid {
  grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 22vw, 200px), 1fr));
}

/* ── Shops scroll cards: fluid width ── */
.restaurant-card { width: clamp(140px, 20vw, 180px); }

/* ── Quick access: always fills row ── */
.quick-access { width: 100%; }

/* ─────────────── PHONE (≤ 480px) ─────────────── */
@media (max-width: 480px) {
  .quick-access { grid-template-columns: 1fr 1fr; }
  .quick-ride   { grid-column: 1 / -1; }
  .items-grid, .offers-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .restaurant-card { width: clamp(140px, 42vw, 180px); }
  .promo-card { width: 84vw; }
  .offer-card-image { height: 100px; }
  .promo-headline { font-size: 20px; }
}

/* ─────────────── SMALL TABLET (481px – 767px) ─────────────── */
@media (min-width: 481px) and (max-width: 767px) {
  .items-grid, .offers-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-access { grid-template-columns: 2fr 1fr 1fr; }
  .restaurant-card { width: 165px; }
}

/* ─────────────── TABLET (768px – 1023px) ─────────────── */
@media (min-width: 768px) {
  .items-grid, .offers-grid { grid-template-columns: repeat(4, 1fr); }
  .restaurant-card { width: 180px; }
  .promo-card { width: clamp(280px, 30vw, 360px); }
  .promo-track { padding-bottom: 16px; }
  .offer-card-image { height: 130px; }
}

/* ─────────────── LAPTOP (1024px – 1439px) ─────────────── */
@media (min-width: 1024px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
  .items-grid, .offers-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .restaurant-card { width: 190px; }
  .restaurant-card-image { height: 110px; }
  .promo-card { width: clamp(300px, 26vw, 380px); }
  .quick-access { grid-template-columns: 2.5fr 1fr 1fr; }
}

/* ─────────────── FULL HD / WIDE (1440px +) ─────────────── */
@media (min-width: 1440px) {
  .items-grid, .offers-grid { grid-template-columns: repeat(6, 1fr); gap: 18px; }
  .restaurant-card { width: 200px; }
  .promo-card { width: 340px; }
  .section-title { font-size: 20px; }
  .search-container { padding: 16px 48px 12px; }
  .view-section { padding: 24px 48px 0; }
  .quick-access { grid-template-columns: 3fr 1fr 1fr; }
}

/* ─────────────── 4K / ULTRA-WIDE (2560px +) ─────────────── */
@media (min-width: 2560px) {
  .items-grid, .offers-grid { grid-template-columns: repeat(8, 1fr); gap: 20px; }
  .restaurant-card { width: 220px; }
  .search-container { padding: 18px 80px 14px; }
  .view-section { padding: 28px 80px 0; }
  .app-header { padding: 0 80px; }
  .section-title { font-size: 22px; }
}

/* ── UTILITY ANIMATIONS ─────────────────────────────────────── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(212,175,55,.2); }
  50% { box-shadow: 0 0 40px rgba(212,175,55,.4); }
}

/* ── RESTAURANT CARD GRADIENT BACKGROUNDS ─────────────────────
   Applied by JS based on service_type                         */
.sg-bg-restaurant { background: linear-gradient(135deg, #1a0d00, #2d1a08); }
.sg-bg-grocery    { background: linear-gradient(135deg, #001a0d, #082d1a); }
.sg-bg-pharmacy   { background: linear-gradient(135deg, #001020, #08182d); }
.sg-bg-cafe       { background: linear-gradient(135deg, #1a0800, #2d1408); }
.sg-bg-fastfood   { background: linear-gradient(135deg, #1a0600, #2d1000); }
.sg-bg-laundry    { background: linear-gradient(135deg, #00101a, #081828); }
.sg-bg-default    { background: linear-gradient(135deg, #100a1a, #180d28); }

/* ══════════════════════════════════════════════════════════════
   LIGHT MODE — activates when body.dark-theme is REMOVED
   (customer page defaults dark; toggle removes the class)
   ══════════════════════════════════════════════════════════════ */
body:not(.dark-theme) {
  background: #FFFFFF !important;
  color: #1A1200 !important;
}
body:not(.dark-theme) .bg-ambient { background: #FFFFFF !important; }
body:not(.dark-theme) .bg-orb-1 { background: none !important; }
body:not(.dark-theme) .bg-orb-2 { background: none !important; }
body:not(.dark-theme) .bg-orb-3 { background: none !important; }

/* Light-mode tokens: every var(--text*) / glass rule below the fold follows
   these, so anything not explicitly overridden is still readable. */
body:not(.dark-theme) {
  --text:         #1A1200;
  --text-muted:   rgba(26,18,0,.68);
  --text-dim:     rgba(26,18,0,.58);
  --muted:        #6B5F45;
  --glass:        rgba(255,255,255,.7);
  --glass-2:      rgba(255,255,255,.85);
  --glass-border: rgba(160,120,20,.28);
  --gold-light:   #8A6500;
  --gold-pale:    #7A5500;
  --gold-grad-text: linear-gradient(120deg,#8A6500 0%,#B8860B 45%,#8A6500 100%);
  color-scheme: light;
}
body.dark-theme { color-scheme: dark; }
body:not(.dark-theme) .search-container {
  background: rgba(255,255,255,.98) !important;
}
body:not(.dark-theme) .header-btn,
body:not(.dark-theme) .app-header .brand-name,
body:not(.dark-theme) .app-header span,
body:not(.dark-theme) .app-header #current-location {
  color: #1A1200 !important;
}
body:not(.dark-theme) .app-header .brand-name {
  background: none !important;
  -webkit-text-fill-color: #8A6500 !important;
  color: #8A6500 !important;
}
body:not(.dark-theme) .filter-pill.active,
body:not(.dark-theme) .cat-chip.active {
  color: #5C4000 !important;
  border-color: rgba(160,120,20,.55) !important;
}
body:not(.dark-theme) .quick-arrow { color: #7A5500 !important; }
body:not(.dark-theme) .footer-links a,
body:not(.dark-theme) .footer-copy { color: rgba(26,18,0,.68) !important; }
body:not(.dark-theme) .footer-links a:hover { color: #7A5500 !important; }
/* gold text generated inline by customer.js (shop cards, prices, favourites) */
body:not(.dark-theme) [style*="color:#FFD700"],
body:not(.dark-theme) [style*="color: #FFD700"],
body:not(.dark-theme) [style*="color:#D4AF37"],
body:not(.dark-theme) [style*="color: #D4AF37"],
body:not(.dark-theme) [style*="color:#F0CA58"],
body:not(.dark-theme) [style*="color: #F0CA58"] {
  color: #8A6500 !important;
}
body:not(.dark-theme) .restaurant-card-price,
body:not(.dark-theme) .offer-card-price { color: #8A6500 !important; }

body:not(.dark-theme) .app-header {
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid rgba(212,175,55,.25) !important;
  box-shadow: 0 2px 20px rgba(212,175,55,.1) !important;
}
body:not(.dark-theme) .search-wrap {
  background: rgba(255,255,255,.9) !important;
  border-color: rgba(212,175,55,.25) !important;
  box-shadow: 0 2px 16px rgba(212,175,55,.08) !important;
}
body:not(.dark-theme) .search-input { color: #1A1200 !important; }
body:not(.dark-theme) .search-input::placeholder { color: rgba(26,18,0,.4) !important; }
body:not(.dark-theme) .search-icon { stroke: rgba(26,18,0,.4) !important; }
body:not(.dark-theme) .search-filter-btn { color: rgba(26,18,0,.5) !important; }

body:not(.dark-theme) .filter-pill {
  background: rgba(255,255,255,.8) !important;
  border-color: rgba(212,175,55,.3) !important;
  color: #3A2800 !important;
}
body:not(.dark-theme) .filter-pill.active {
  background: linear-gradient(135deg,rgba(212,175,55,.25),rgba(212,175,55,.1)) !important;
  color: #7A5500 !important;
}
body:not(.dark-theme) .cat-chip {
  background: rgba(255,255,255,.8) !important;
  border-color: rgba(212,175,55,.25) !important;
  color: #3A2800 !important;
}
body:not(.dark-theme) .cat-chip.active {
  background: linear-gradient(135deg,rgba(212,175,55,.22),rgba(212,175,55,.08)) !important;
  color: #7A5500 !important;
}

body:not(.dark-theme) .quick-card {
  background: rgba(255,255,255,.85) !important;
  border-color: rgba(212,175,55,.25) !important;
  color: #1A1200 !important;
}
body:not(.dark-theme) .quick-title { color: #1A1200 !important; }
body:not(.dark-theme) .quick-sub { color: rgba(26,18,0,.5) !important; }

body:not(.dark-theme) .section-title { color: #1A1200 !important; }
body:not(.dark-theme) .section-count { color: rgba(26,18,0,.45) !important; }

body:not(.dark-theme) .restaurant-card {
  background: #FFFFFF !important;
  border-color: rgba(212,175,55,.2) !important;
  box-shadow: 0 4px 20px rgba(212,175,55,.1) !important;
}
body:not(.dark-theme) .sg-bg-restaurant { background: linear-gradient(135deg,#FFF8E1,#FFF0C0) !important; }
body:not(.dark-theme) .sg-bg-grocery    { background: linear-gradient(135deg,#E8F5E9,#C8E6C9) !important; }
body:not(.dark-theme) .sg-bg-pharmacy   { background: linear-gradient(135deg,#E0F7FA,#B2EBF2) !important; }
body:not(.dark-theme) .sg-bg-cafe       { background: linear-gradient(135deg,#FFF3E0,#FFE0B2) !important; }
body:not(.dark-theme) .sg-bg-fastfood   { background: linear-gradient(135deg,#FFF8E1,#FFECB3) !important; }
body:not(.dark-theme) .sg-bg-laundry    { background: linear-gradient(135deg,#E3F2FD,#BBDEFB) !important; }
body:not(.dark-theme) .sg-bg-default    { background: linear-gradient(135deg,#F3E5F5,#E1BEE7) !important; }
body:not(.dark-theme) .restaurant-card-name { color: #1A1200 !important; }
body:not(.dark-theme) .restaurant-card-meta { color: rgba(26,18,0,.5) !important; }

body:not(.dark-theme) .offer-card {
  background: #FFFFFF !important;
  border-color: rgba(212,175,55,.2) !important;
  box-shadow: 0 4px 16px rgba(212,175,55,.08) !important;
}
body:not(.dark-theme) .offer-card-name { color: #1A1200 !important; }
body:not(.dark-theme) .offer-card-shop { color: rgba(26,18,0,.5) !important; }

body:not(.dark-theme) .bottom-nav {
  background: rgba(255,255,255,.98) !important;
  border-top: 1px solid rgba(212,175,55,.2) !important;
  box-shadow: 0 -4px 24px rgba(212,175,55,.1) !important;
}
body:not(.dark-theme) .nav-item { color: rgba(26,18,0,.5) !important; }
body:not(.dark-theme) .nav-item.active { color: #B8860B !important; }
body:not(.dark-theme) .nav-item span { color: rgba(26,18,0,.5) !important; }
body:not(.dark-theme) .nav-item.active span { color: #B8860B !important; }

body:not(.dark-theme) .promo-gold {
  background: linear-gradient(135deg,#2D2410,#1A1508) !important;
}
body:not(.dark-theme) .promo-teal {
  background: linear-gradient(135deg,#0D2420,#081A16) !important;
}
body:not(.dark-theme) .promo-purple {
  background: linear-gradient(135deg,#1A0D2E,#110820) !important;
}
/* ── Light mode = clean white. Gold stays as an accent (text, active outline,
   buttons) but no gold-tinted fills, borders or glows, which read as cream. ── */
body:not(.dark-theme) .app-header {
  background: #FFFFFF !important;
  border-bottom: 1px solid rgba(0,0,0,.09) !important;
  box-shadow: 0 1px 8px rgba(0,0,0,.06) !important;
}
body:not(.dark-theme) .search-container { background: #FFFFFF !important; border-bottom: 1px solid rgba(0,0,0,.06) !important; }
body:not(.dark-theme) .brand-logo { filter: none !important; box-shadow: none !important; }
body:not(.dark-theme) .header-btn,
body:not(.dark-theme) .search-filter-btn,
body:not(.dark-theme) .search-wrap,
body:not(.dark-theme) .filter-pill,
body:not(.dark-theme) .cat-chip,
body:not(.dark-theme) .quick-card,
body:not(.dark-theme) .restaurant-card,
body:not(.dark-theme) .offer-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  box-shadow: 0 1px 6px rgba(0,0,0,.06) !important;
}
body:not(.dark-theme) .filter-pill.active,
body:not(.dark-theme) .cat-chip.active {
  background: #FFFFFF !important;
  border: 1.5px solid #C8960C !important;
  color: #5C4000 !important;
  box-shadow: 0 1px 6px rgba(0,0,0,.08) !important;
}
body:not(.dark-theme) .bottom-nav {
  background: #FFFFFF !important;
  border-top: 1px solid rgba(0,0,0,.09) !important;
  box-shadow: 0 -2px 10px rgba(0,0,0,.06) !important;
}
body:not(.dark-theme) .app-footer { background: #FFFFFF !important; border-top: 1px solid rgba(0,0,0,.09) !important; }
body:not(.dark-theme) .promo-card { box-shadow: 0 6px 18px rgba(0,0,0,.18) !important; }
body:not(.dark-theme) .promo-track, body:not(.dark-theme) .promo-wrap { background: transparent !important; }

/* promo cards stay dark in light mode -> keep their own light text/gold */
body:not(.dark-theme) .promo-card { color: #F7F1DF !important; }
body:not(.dark-theme) .promo-card .promo-sub { color: rgba(247,241,223,.75) !important; }
body:not(.dark-theme) .promo-gold .promo-badge,
body:not(.dark-theme) .promo-gold .promo-code-tag { color: #F0CA58 !important; }
body:not(.dark-theme) .promo-gold .promo-headline {
  background: linear-gradient(120deg,#F5DFA0 0%,#D4AF37 40%,#C8960C 70%,#A07820 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
/* floating theme toggle sits above the bottom nav, never over a tab */
#dark-theme-toggle { bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; right: 14px !important; width: 44px !important; height: 44px !important; font-size: 20px !important; }
body:not(.dark-theme) .app-footer {
  background: rgba(255,255,255,.6) !important;
  border-top: 1px solid rgba(212,175,55,.15) !important;
}

/* ── PROFILE PANEL ─────────────────────────────────────────── */
.profile-panel-drawer {
  position: absolute; top: 0; right: 0;
  width: 360px; max-width: 100vw; height: 100vh;
  overflow-y: auto; overflow-x: hidden;
  background: #080800;
  border-left: 1px solid rgba(212,175,55,.14);
  box-shadow: -24px 0 64px rgba(0,0,0,.7);
  animation: slideInRight .28s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,.15) transparent;
}
.profile-panel-drawer::-webkit-scrollbar { width: 4px; }
.profile-panel-drawer::-webkit-scrollbar-thumb { background: rgba(212,175,55,.15); border-radius: 4px; }
.profile-close-btn {
  position: sticky; top: 12px; float: right; margin: 12px 14px 0 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,248,231,.5); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: all .2s; flex-shrink: 0;
  line-height: 1;
}
.profile-close-btn:hover { background: rgba(255,255,255,.12); color: #F7F1DF; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Google Places Autocomplete - see etel-design-v4.css for the full explanation:
   Google's .pac-container inherits this page's light --text color on its own
   white background, making suggestions nearly invisible. Restyled to match. */
.pac-container{
  background:#151016 !important;border:1px solid rgba(212,175,55,.35) !important;
  border-radius:12px !important;margin-top:6px !important;
  box-shadow:0 16px 40px -12px rgba(0,0,0,.6) !important;
  font-family:inherit !important;overflow:hidden !important;z-index:10000 !important;
}
.pac-item{
  padding:10px 14px !important;border-top:1px solid rgba(255,255,255,.06) !important;
  color:#F7F1DF !important;font-size:13px !important;cursor:pointer !important;
}
.pac-item:first-child{border-top:none !important}
.pac-item:hover,.pac-item-selected{background:rgba(212,175,55,.14) !important}
.pac-item-query{color:#F7F1DF !important;font-weight:700 !important;font-size:13.5px !important}
.pac-matched{color:#D4AF37 !important;font-weight:700 !important}
.pac-icon{filter:invert(1) brightness(1.6) !important;opacity:.7 !important}
.pac-logo:after{filter:invert(1) brightness(1.8) !important;opacity:.5 !important}

/* ══ STEP 1 REDESIGN: greeting, service grid, photo shop cards ══════════ */
.home-greeting { padding: 4px 2px 14px; }
.home-greeting-hi { font-family: 'Syne','Cormorant Garamond',serif; font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.home-greeting-sub { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.svc-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 6px 12px; border-radius: 18px; cursor: pointer; text-decoration: none; font: inherit;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text);
  transition: transform .2s var(--spring), border-color .2s, box-shadow .2s;
}
.svc-tile:hover, .svc-tile:active { transform: translateY(-3px); border-color: rgba(212,175,55,.45); box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.svc-ico {
  width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; line-height: 1;
}
.svc-ico-food  { background: linear-gradient(135deg, rgba(212,175,55,.28), rgba(212,175,55,.08)); }
.svc-ico-groc  { background: linear-gradient(135deg, rgba(34,197,94,.26),  rgba(34,197,94,.07)); }
.svc-ico-pharm { background: linear-gradient(135deg, rgba(78,205,196,.26), rgba(78,205,196,.07)); }
.svc-ico-ride  { background: linear-gradient(135deg, rgba(96,165,250,.26), rgba(96,165,250,.07)); }
.svc-label { font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }
.svc-more { display: flex; justify-content: center; gap: 8px; font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }
.svc-more a { color: var(--gold-light); text-decoration: none; font-weight: 600; }

/* shop card: photo cover, rating + ETA pills, facts row */
.restaurant-card { width: 250px; border-radius: 20px; }
.restaurant-card-image { height: 140px; background-size: cover; }
.restaurant-card-image .rc-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.restaurant-card:hover .rc-cover { transform: scale(1.06); }
.rc-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; opacity: .35; }
.rc-ph-solo { font-size: 60px; opacity: .9; filter: drop-shadow(0 6px 16px rgba(212,175,55,.45)); }
.rc-shade { position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.6)); pointer-events: none; }
.rc-fav {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(10,7,3,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.rc-rate, .rc-eta {
  position: absolute; bottom: 10px; z-index: 2; font-size: 12px; font-weight: 800; line-height: 1;
  padding: 6px 9px; border-radius: 999px; color: #fff; background: rgba(10,7,3,.62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.18);
}
.rc-rate { left: 10px; color: #F5D76E; }
.rc-rate-new { color: #fff; background: linear-gradient(135deg,#D4AF37,#B8860B); border-color: transparent; }
.rc-eta { right: 10px; }
.restaurant-card-body { padding: 12px 14px 14px; }
.restaurant-card-name { font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.restaurant-card-meta { font-size: 12px; text-transform: capitalize; }
.restaurant-card-info { font-size: 12px; font-weight: 600; color: var(--gold-light); margin-top: 6px; }
@media (max-width: 480px) { .restaurant-card { width: min(78vw, 260px); } }

body:not(.dark-theme) .svc-tile { background: #FFFFFF !important; border: 1px solid rgba(0,0,0,.1) !important; box-shadow: 0 1px 6px rgba(0,0,0,.06) !important; color: #1A1200 !important; }
body:not(.dark-theme) .svc-label { color: #1A1200 !important; }
body:not(.dark-theme) .svc-more a { color: #7A5500 !important; }
body:not(.dark-theme) .home-greeting-hi { color: #1A1200 !important; }
body:not(.dark-theme) .restaurant-card-info { color: #8A6500 !important; }
body:not(.dark-theme) .restaurant-card-meta { color: rgba(26,18,0,.6) !important; }
body:not(.dark-theme) .restaurant-card { border-radius: 20px !important; }

/* ══ STEP 2: one filter row, live order tracker, skeletons, cart bar ═════ */
.chip-row {
  display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 10px 0 6px;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-row .filter-pill, .chip-row .cat-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1;
}
.chip-row .cat-chip span { font-size: 15px; }
.chip-row .cat-chip:hover { transform: none; }
.chip-sep { flex-shrink: 0; width: 1px; height: 22px; background: var(--glass-border); margin: 0 4px; }
.filter-empty { grid-column: 1 / -1; padding: 28px 12px; text-align: center; color: var(--text-muted); font-size: 14px; }
.filter-empty button { margin-left: 8px; background: none; border: 1px solid var(--gold); color: var(--gold-light); border-radius: 999px; padding: 6px 12px; font-weight: 700; cursor: pointer; }

/* live order tracker */
.order-tracker {
  margin: 0 0 16px; padding: 14px 14px 12px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(212,175,55,.2), rgba(212,175,55,.06));
  border: 1px solid rgba(212,175,55,.45);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.trk-top { display: flex; align-items: center; gap: 12px; }
.trk-ico { font-size: 28px; line-height: 1; animation: trkBob 1.8s ease-in-out infinite; }
@keyframes trkBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.trk-text { flex: 1; min-width: 0; }
.trk-title { font-size: 12px; font-weight: 700; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-status { font-size: 17px; font-weight: 800; color: var(--text); margin-top: 2px; }
.trk-btn {
  flex-shrink: 0; border: none; cursor: pointer; padding: 9px 16px; border-radius: 999px;
  background: linear-gradient(135deg, #E8C84A, #C8960C); color: #1A1200; font-weight: 800; font-size: 13px;
}
.trk-bar { height: 5px; border-radius: 99px; background: rgba(128,128,128,.25); margin-top: 12px; overflow: hidden; }
.trk-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #D4AF37, #F0CA58); transition: width .6s var(--ease); }

/* skeleton shop card (matches the new photo card) */
.skeleton-shop {
  flex-shrink: 0; width: 250px; height: 228px; border-radius: 20px;
  background: linear-gradient(90deg, var(--glass) 25%, rgba(255,255,255,.08) 50%, var(--glass) 75%);
  background-size: 800px 100%; animation: shimmer 1.6s linear infinite;
  border: 1px solid var(--glass-border);
}
@media (max-width: 480px) { .skeleton-shop { width: min(78vw, 260px); } }

/* floating cart bar */
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 290;
  max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border: none; cursor: pointer; border-radius: 18px;
  background: linear-gradient(135deg, #E8C84A, #C8960C); color: #1A1200; font: inherit; text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.25) inset;
  animation: cartBarIn .35s var(--spring);
}
.cart-bar[hidden] { display: none; }
.cart-bar.bump { animation: cartBarBump .3s var(--spring); }
@keyframes cartBarIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cartBarBump { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
.cart-bar-count { flex-shrink: 0; min-width: 28px; height: 28px; border-radius: 50%; background: #1A1200; color: #F0CA58; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.cart-bar-label { flex: 1; font-size: 14px; font-weight: 600; }
.cart-bar-label b { font-weight: 800; }
.cart-bar-go { font-weight: 800; font-size: 14px; }
body.has-cartbar { padding-bottom: 150px; }
body.has-cartbar #dark-theme-toggle { bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important; }
@media (min-width: 1024px) { .cart-bar { bottom: 20px; left: auto; right: 24px; margin: 0; min-width: 340px; } body.has-cartbar { padding-bottom: 0; } body.has-cartbar #dark-theme-toggle { bottom: 90px !important; } }

body:not(.dark-theme) .order-tracker { background: #FFFFFF !important; border: 1.5px solid #C8960C !important; box-shadow: 0 4px 16px rgba(0,0,0,.08) !important; }
body:not(.dark-theme) .trk-status { color: #1A1200 !important; }
body:not(.dark-theme) .trk-title { color: rgba(26,18,0,.6) !important; }
body:not(.dark-theme) .chip-sep { background: rgba(0,0,0,.15); }
body:not(.dark-theme) .cart-bar { box-shadow: 0 8px 24px rgba(0,0,0,.25) !important; }
body:not(.dark-theme) .skeleton-shop { background: linear-gradient(90deg,#F3F3F3 25%,#FAFAFA 50%,#F3F3F3 75%) !important; background-size: 800px 100% !important; border: 1px solid rgba(0,0,0,.08) !important; }

/* ══ STEP 3: light-mode polish — white, but designed ════════════════════
   Depth from soft shadows instead of gold outlines; neutral chip fills; a
   deeper, richer gold for text and accents (AA on white); stronger type
   hierarchy; calmer desktop layout. Dark mode is untouched. */
body:not(.dark-theme) {
  --lt-ink: #141108;
  --lt-ink-2: #4A4536;
  --lt-ink-3: #77705E;
  --lt-gold: #8A6500;
  --lt-gold-2: #B8860B;
  --lt-shadow-1: 0 1px 2px rgba(20,17,8,.05), 0 2px 10px rgba(20,17,8,.06);
  --lt-shadow-2: 0 2px 4px rgba(20,17,8,.05), 0 10px 28px rgba(20,17,8,.10);
}
/* header: no hairline, a soft lift */
body:not(.dark-theme) .app-header { border-bottom: none !important; box-shadow: 0 1px 0 rgba(20,17,8,.06), 0 6px 18px rgba(20,17,8,.05) !important; }
body:not(.dark-theme) .brand-name { color: var(--lt-gold) !important; -webkit-text-fill-color: var(--lt-gold) !important; font-weight: 800 !important; }
body:not(.dark-theme) .brand-location, body:not(.dark-theme) #current-location { color: var(--lt-ink-2) !important; }
body:not(.dark-theme) .search-container { box-shadow: 0 6px 16px rgba(20,17,8,.04) !important; border-bottom: none !important; }
body:not(.dark-theme) .search-wrap { border: none !important; background: #F4F3EF !important; box-shadow: inset 0 0 0 1px rgba(20,17,8,.06) !important; }
body:not(.dark-theme) .search-input { color: var(--lt-ink) !important; }
body:not(.dark-theme) .search-input::placeholder { color: var(--lt-ink-3) !important; }

/* chips: neutral fill, active = solid gold with dark text */
body:not(.dark-theme) .chip-row .filter-pill,
body:not(.dark-theme) .chip-row .cat-chip {
  background: #F4F3EF !important; border: 1px solid transparent !important; box-shadow: none !important;
  color: var(--lt-ink-2) !important; font-weight: 700 !important;
}
body:not(.dark-theme) .chip-row .filter-pill:hover,
body:not(.dark-theme) .chip-row .cat-chip:hover { background: #EBE9E2 !important; color: var(--lt-ink) !important; }
body:not(.dark-theme) .chip-row .filter-pill.active,
body:not(.dark-theme) .chip-row .cat-chip.active {
  background: linear-gradient(135deg, #E8C84A, #C8960C) !important; border-color: transparent !important;
  color: #1A1200 !important; box-shadow: 0 4px 12px rgba(184,134,11,.35) !important;
}

/* typography hierarchy */
body:not(.dark-theme) .home-greeting-hi { color: var(--lt-ink) !important; font-size: 24px; }
body:not(.dark-theme) .home-greeting-sub { color: var(--lt-ink-3) !important; }
body:not(.dark-theme) .section-title { color: var(--lt-ink) !important; font-size: 20px !important; font-weight: 800 !important; letter-spacing: -.01em; }
body:not(.dark-theme) .section-count { background: #F4F3EF !important; border: none !important; color: var(--lt-ink-2) !important; }
body:not(.dark-theme) .see-all-btn { background: transparent !important; border: none !important; color: var(--lt-gold) !important; font-weight: 800 !important; box-shadow: none !important; }

/* service tiles + tracker: shadow depth, no outline */
body:not(.dark-theme) .svc-tile { border: none !important; box-shadow: var(--lt-shadow-1) !important; }
body:not(.dark-theme) .svc-tile:hover { box-shadow: var(--lt-shadow-2) !important; }
body:not(.dark-theme) .svc-label { font-weight: 800 !important; }
body:not(.dark-theme) .order-tracker { border: none !important; box-shadow: var(--lt-shadow-2) !important; background: linear-gradient(180deg,#FFFFFF,#FFFBEF) !important; }
body:not(.dark-theme) .trk-btn { box-shadow: 0 4px 12px rgba(184,134,11,.35); }

/* promos: room for their shadow so no clipped band */
body:not(.dark-theme) .promo-track { padding-bottom: 26px !important; }
body:not(.dark-theme) .promo-card { box-shadow: 0 10px 16px -8px rgba(20,17,8,.35) !important; }
body:not(.dark-theme) .promo-dots { margin-top: -10px; }

/* shop + item cards: soft shadow, no border, neutral photo well */
body:not(.dark-theme) .restaurant-card,
body:not(.dark-theme) .offer-card { border: none !important; box-shadow: var(--lt-shadow-1) !important; }
body:not(.dark-theme) .restaurant-card:hover,
body:not(.dark-theme) .offer-card:hover { box-shadow: var(--lt-shadow-2) !important; }
body:not(.dark-theme) .offer-card-image { background: #F7F6F2 !important; }
body:not(.dark-theme) .restaurant-card-name, body:not(.dark-theme) .offer-card-name { color: var(--lt-ink) !important; font-weight: 800 !important; }
body:not(.dark-theme) .restaurant-card-meta, body:not(.dark-theme) .offer-card-shop { color: var(--lt-ink-3) !important; }
body:not(.dark-theme) .offer-card-price { color: var(--lt-gold) !important; font-weight: 800 !important; font-size: 17px !important; }
body:not(.dark-theme) .restaurant-card-info { color: var(--lt-gold) !important; font-weight: 700 !important; }
body:not(.dark-theme) .add-btn { box-shadow: 0 4px 10px rgba(184,134,11,.4) !important; color: #1A1200 !important; }

/* bottom nav + cart bar */
body:not(.dark-theme) .bottom-nav { border-top: none !important; box-shadow: 0 -1px 0 rgba(20,17,8,.06), 0 -8px 24px rgba(20,17,8,.06) !important; }
body:not(.dark-theme) .nav-item.active, body:not(.dark-theme) .nav-item.active span { color: var(--lt-gold) !important; }

/* footer */
body:not(.dark-theme) .app-footer { background: #F7F6F2 !important; border-top: none !important; }
body:not(.dark-theme) .footer-links a, body:not(.dark-theme) .footer-copy { color: var(--lt-ink-2) !important; }

/* desktop: tidy service tiles into compact horizontal cards */
@media (min-width: 1024px) {
  .svc-grid { gap: 14px; }
  .svc-tile { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 14px 18px; }
  .svc-ico { width: 48px; height: 48px; font-size: 26px; }
  .svc-label { font-size: 15px; }
  .svc-more { justify-content: flex-start; margin-left: 4px; }
}
body:not(.dark-theme) .chip-row { padding: 10px 6px 14px !important; margin: 0 -6px; }

/* ══ SHOP BRANDING: logo badge on cards + cover/logo on the shop page ═══ */
.restaurant-card-body { position: relative; }
.restaurant-card-body.has-logo { padding-top: 26px; }
.rc-logo {
  position: absolute; left: 14px; top: -24px; width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; background: #fff; border: 3px solid var(--dark-2, #101014);
  box-shadow: 0 4px 12px rgba(0,0,0,.35); z-index: 3;
}
body:not(.dark-theme) .rc-logo { border-color: #FFFFFF; box-shadow: 0 4px 12px rgba(20,17,8,.18); }
#shop-detail-hero { height: 150px !important; }
#shop-detail-hero .rc-shade { position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); pointer-events: none; }
.hero-logo {
  position: absolute; left: 16px; bottom: 12px; width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; background: #fff; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.4); z-index: 2;
}
/* shop page + category storefront are hard-coded to --dark inline; follow the theme (track/delivered screens have their own light text, left as is) */
body:not(.dark-theme) #view-shop-detail,
body:not(.dark-theme) #view-category { background: #FFFFFF !important; }

/* ══ OPEN / CLOSED badge + delivery fee on shop cards ═══════════════════ */
.rc-status {
  position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 12px; font-weight: 800; line-height: 1;
  padding: 6px 9px; border-radius: 999px; color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.rc-status-open { background: rgba(22,163,74,.88); }
.rc-status-closed { background: rgba(60,60,66,.85); }
.restaurant-card.rc-closed .rc-cover, .restaurant-card.rc-closed .rc-ph { filter: grayscale(.85) brightness(.75); }
.restaurant-card.rc-closed .restaurant-card-name { opacity: .75; }
.restaurant-card-fee { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-top: 4px; }
body:not(.dark-theme) .restaurant-card-fee { color: var(--lt-ink-2, #4A4536) !important; }

/* ═══ LIGHT MODE — overlays, drawers & sub-screens (option 2) ═══
   These surfaces read var(--dark*)/var(--text*) tokens (or hard-coded dark
   colours), so in light mode we re-scope the tokens to a white palette. */
body:not(.dark-theme) #item-detail-overlay > div,
body:not(.dark-theme) #cart-overlay .cart-drawer,
body:not(.dark-theme) .profile-panel-drawer,
body:not(.dark-theme) #modal,
body:not(.dark-theme) #view-payments,
body:not(.dark-theme) #view-orders,
body:not(.dark-theme) #view-favorites,
body:not(.dark-theme) #view-messages,
body:not(.dark-theme) #view-addresses,
body:not(.dark-theme) #view-referrals,
body:not(.dark-theme) #view-settings,
body:not(.dark-theme) #view-notifications {
  --dark: #FFFFFF; --dark-2: #FFFFFF; --dark-3: #F4F1E8;
  --text: var(--lt-ink); --text-muted: var(--lt-ink-2); --text-dim: var(--lt-ink-3);
  --glass: rgba(20,17,8,.04); --glass-2: rgba(20,17,8,.06);
  --glass-border: rgba(20,17,8,.12);
  --gold: #8A6500;
  color: var(--lt-ink);
}
body:not(.dark-theme) #item-detail-overlay > div,
body:not(.dark-theme) #cart-overlay .cart-drawer,
body:not(.dark-theme) .profile-panel-drawer { background: #FFFFFF !important; box-shadow: 0 -8px 40px rgba(20,17,8,.18); }
body:not(.dark-theme) .profile-panel-drawer { border-left: 1px solid rgba(20,17,8,.1); }
body:not(.dark-theme) .profile-close-btn { background: rgba(20,17,8,.06); border-color: rgba(20,17,8,.12); color: var(--lt-ink-2); }
body:not(.dark-theme) #cart-overlay .cart-title,
body:not(.dark-theme) #cart-overlay .cart-close { color: var(--lt-ink) !important; }
/* Cart / checkout / profile content uses light cream inline text */
body:not(.dark-theme) #cart-overlay .cart-drawer *:not(button):not(.ok-keep),
body:not(.dark-theme) #profile-info *:not(button):not(.prof-hero):not(.prof-hero *) { color: var(--lt-ink) !important; }
body:not(.dark-theme) #profile-info .prof-logout { color: #B42318 !important; background: rgba(239,68,68,.08) !important; border-color: rgba(180,35,24,.3) !important; }
body:not(.dark-theme) #cart-overlay .cart-header { background: #FFFFFF !important; }
body:not(.dark-theme) #cart-overlay .cart-drawer input,
body:not(.dark-theme) #cart-overlay .cart-drawer select,
body:not(.dark-theme) #cart-overlay .cart-drawer textarea {
  background: #FFFFFF !important; color: var(--lt-ink) !important; border: 1px solid rgba(20,17,8,.22) !important;
}
body:not(.dark-theme) #cart-overlay .cart-drawer [style*="rgba(255,255,255"] { background: rgba(20,17,8,.04) !important; border-color: rgba(20,17,8,.14) !important; }
body:not(.dark-theme) #profile-info [style*="rgba(212,175,55"] { background: rgba(212,175,55,.12) !important; border-color: rgba(160,120,20,.3) !important; }
body:not(.dark-theme) #profile-info [style*="color:#C8960C"], body:not(.dark-theme) #profile-info [style*="color: #C8960C"] { color: #8A6500 !important; }
/* Sub-view headings / empty states / cards with hard-coded cream text */
body:not(.dark-theme) .view-section [style*="color:#F7F1DF"],
body:not(.dark-theme) .view-section [style*="color:#fff8e7"],
body:not(.dark-theme) .view-section [style*="color: #F7F1DF"] { color: var(--lt-ink) !important; }
body:not(.dark-theme) .view-section [style*="rgba(247,241,223"] { color: var(--lt-ink-3) !important; }
body:not(.dark-theme) .view-section [style*="rgba(255,255,255,.06)"] { border-color: rgba(20,17,8,.1) !important; }

/* ═══ ORDER TRACKING + DELIVERED — ETA banner & light mode ═══ */
.trk-eta { padding: 14px 16px; border-radius: 16px; margin-bottom: 14px; text-align: center;
  background: linear-gradient(135deg, rgba(212,175,55,.16), rgba(212,175,55,.06)); border: 1px solid rgba(212,175,55,.3); }
.trk-eta:empty { display: none; }
.trk-eta-main { font-size: 16px; font-weight: 800; color: var(--text); }
.trk-eta-sub { font-size: 12px; margin-top: 3px; color: var(--text-muted); }
body:not(.dark-theme) #view-track-order,
body:not(.dark-theme) #view-order-delivered {
  --dark: #FFFFFF; --dark-2: #F7F5EE; --dark-3: #F4F1E8;
  --text: var(--lt-ink); --text-muted: var(--lt-ink-2); --text-dim: var(--lt-ink-3);
  --glass: rgba(20,17,8,.04); --glass-2: rgba(20,17,8,.05); --glass-border: rgba(20,17,8,.12);
  background: #FFFFFF !important; color: var(--lt-ink);
}
body:not(.dark-theme) #view-track-order .trk-eta { background: linear-gradient(135deg, rgba(212,175,55,.2), rgba(212,175,55,.08)); border-color: rgba(160,120,20,.35); }
body:not(.dark-theme) #view-order-delivered #order-delivered-summary * { color: var(--lt-ink) !important; }
body:not(.dark-theme) #view-order-delivered button[onclick^="closeOrderDeliveredScreen();switchCategory"] { background: rgba(20,17,8,.05) !important; }

/* ═══ SHOP PAGE POLISH — sticky tabs + menu chips, Popular badge ═══ */
.shop-toolbar { position: sticky; top: var(--app-header-h, 64px); z-index: 20; margin: 0 calc(-1 * clamp(16px,3vw,40px)) 14px;
  padding: 8px clamp(16px,3vw,40px) 10px; background: var(--dark); border-bottom: 1px solid var(--glass-border); }
.shop-menu-chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; scrollbar-width: none; }
.shop-menu-chips::-webkit-scrollbar { display: none; }
.shop-chip { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  background: var(--glass); color: var(--text-muted); border: 1px solid var(--glass-border); white-space: nowrap; }
.shop-chip.active { background: var(--gold-grad); color: #1a1400; border-color: transparent; }
.pop-badge { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(20,17,8,.78); color: #FFD76A;
  font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
body:not(.dark-theme) #view-shop-detail .shop-toolbar { background: #FFFFFF; border-bottom-color: rgba(20,17,8,.1); }
body:not(.dark-theme) .shop-chip { background: #F4F1E8; color: var(--lt-ink-2); border-color: rgba(20,17,8,.12); }
body:not(.dark-theme) .shop-chip.active { background: linear-gradient(135deg,#F0CA58,#D4AF37); color: #1a1400; }

/* Checkout: promo code discount row stays green in light mode */
body:not(.dark-theme) #cart-overlay .cart-drawer .co-discount:not(.x),
body:not(.dark-theme) #cart-overlay .cart-drawer .co-discount *:not(.x) { color: #178A4A !important; }
body:not(.dark-theme) #cart-overlay .cart-drawer .co-promo input { background: #FFFFFF !important; }

/* Order alerts opt-in button inside the home order tracker */
.trk-push { display: block; width: 100%; margin-top: 10px; padding: 9px; border-radius: 10px; font-size: 12.5px; font-weight: 800; cursor: pointer;
  background: rgba(212,175,55,.14); border: 1.5px solid rgba(212,175,55,.45); color: #F0CA58; }
body:not(.dark-theme) .trk-push { color: #7A5500; background: rgba(212,175,55,.2); border-color: rgba(160,120,20,.45); }

/* Rating / issue pop-ups in light mode: light card (the dark card stayed dark with dark text) */
body:not(.dark-theme) #modal .modal-box { background: #FFFFFF !important; border-color: rgba(20,17,8,.14) !important; box-shadow: 0 20px 60px rgba(20,17,8,.25) !important; color: var(--lt-ink); }
body:not(.dark-theme) #modal .modal-box textarea, body:not(.dark-theme) #modal .modal-box select { background: #FFFFFF !important; color: var(--lt-ink) !important; border-color: rgba(20,17,8,.22) !important; }
body:not(.dark-theme) #modal .modal-box [style*="color:#F7F1DF"], body:not(.dark-theme) #modal .modal-box h3 { color: var(--lt-ink) !important; }
body:not(.dark-theme) #modal .modal-box [style*="rgba(247,241,223"] { color: var(--lt-ink-3) !important; }
body:not(.dark-theme) #modal .modal-close { color: var(--lt-ink-2) !important; }

/* Order chat entry on the tracking screen */
.trk-chat { width: 100%; padding: 12px; border-radius: 14px; font-size: 14px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(212,175,55,.14); border: 1.5px solid rgba(212,175,55,.45); color: #F0CA58; }
.trk-chat-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #E63946; color: #fff; font-size: 12px; font-weight: 800; align-items: center; justify-content: center; }
body:not(.dark-theme) .trk-chat { color: #7A5500; background: rgba(212,175,55,.2); border-color: rgba(160,120,20,.5); }
body:not(.dark-theme) #orders-list button[onclick^="EtelOrderChat"] { color: #7A5500 !important; border-color: rgba(160,120,20,.5) !important; }

/* ══ PREMIUM SLICE 1: line icons, calmer gold ═══════════════════════════ */
.svc-ico svg { width: 26px; height: 26px; }
.svc-ico { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.08); }
.svc-ico-food  { color: #E4C25A; }
.svc-ico-groc  { color: #5ED08A; }
.svc-ico-pharm { color: #5CD6CC; }
.svc-ico-ride  { color: #7DB5FA; }
.svc-tile:hover, .svc-tile:active { border-color: rgba(255,255,255,.22); box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.promo-icon { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); color: #fff; }
.promo-icon svg { width: 30px; height: 30px; }
.filter-pill { letter-spacing: .01em; }
body:not(.dark-theme) .svc-ico { background: #F5F1E8 !important; border: 1px solid rgba(0,0,0,.05); }
body:not(.dark-theme) .svc-ico-food  { color: #9A7410; }
body:not(.dark-theme) .svc-ico-groc  { color: #15803D; }
body:not(.dark-theme) .svc-ico-pharm { color: #0F766E; }
body:not(.dark-theme) .svc-ico-ride  { color: #1D4ED8; }
/* ══ PREMIUM SLICE 2: shop cards ═══════════════════════════════════════ */
.restaurant-card-image { height: 150px; }
.rc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rc-top .restaurant-card-name { margin-bottom: 2px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-rating { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 800; line-height: 1;
  padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text); }
.rc-rating svg { color: #F5C542; }
.rc-rating-new { color: var(--text-muted); font-weight: 700; }
.rc-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.rc-fact { display: inline-flex; align-items: center; gap: 4px; }
.rc-fact svg { opacity: .8; }
.restaurant-card-info { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-top: 5px; }
.rc-fav svg { display: block; }
.rc-fav.on { background: #fff; color: #E11D48; }
.rc-fav.on svg { fill: currentColor; }
.rc-closed-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2; padding: 7px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(15,15,18,.78);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.2); }
body:not(.dark-theme) .rc-rating { background: #F3EFE6; color: var(--lt-ink, #1A1200); }
body:not(.dark-theme) .rc-facts, body:not(.dark-theme) .rc-rating-new, body:not(.dark-theme) .restaurant-card-info { color: var(--lt-ink-3, #6B6350) !important; }
body:not(.dark-theme) .rc-fav { background: rgba(255,255,255,.9); color: #1A1200; border-color: rgba(0,0,0,.08); }

/* Branded placeholder for shops / items without a photo (see shopPlaceholder / itemPlaceholder in customer.js) */
.ph-brand { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #f6c22b; overflow: hidden; }
.ph-brand::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 55%, rgba(246,194,43,.16)); pointer-events: none; }
.ph-v0 { background: radial-gradient(circle at 25% 20%, #1f4fb0 0, #0a1d4d 60%, #061230 100%); }
.ph-v1 { background: radial-gradient(circle at 75% 20%, #12337a 0, #0a1d4d 55%, #061230 100%); }
.ph-v2 { background: linear-gradient(135deg, #0a1d4d, #12337a); }
.ph-v3 { background: radial-gradient(circle at 50% 0, #2a3f78 0, #0a1d4d 60%, #061230 100%); }
.ph-ring { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(246,194,43,.8);
  display: flex; align-items: center; justify-content: center; font: 800 30px/1 'Syne', system-ui, sans-serif; box-shadow: 0 0 24px rgba(246,194,43,.25); }
.ph-ico { width: 46px; height: 46px; }
.offer-card-image .ph-ico { width: 40px; height: 40px; }
.restaurant-card.rc-closed .ph-brand { filter: grayscale(.85) brightness(.8); }


/* Home rate prompt: delivered order with no rating yet */
.rate-card { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin:0 0 16px; padding:14px 16px; border-radius:18px; background:#FFFFFF; border:1.5px solid #C8960C; box-shadow:0 4px 16px rgba(0,0,0,.08); }
.rate-card-text { flex:1 1 160px; min-width:0; }
.rate-card-q { font-weight:800; font-size:15px; color:#1a1a1a; }
.rate-card-sub { font-size:12px; color:#555; margin-top:2px; }
.rate-card-stars { display:flex; gap:2px; }
.rate-card .rate-card-star { background:none !important; border:0; padding:4px 5px; font-size:28px; line-height:1; color:#946A00 !important; cursor:pointer; min-width:44px; min-height:44px; }
.rate-card-later { background:none; border:0; color:#555; font-size:12px; text-decoration:underline; cursor:pointer; padding:8px; min-height:44px; }
body.dark-theme .rate-card { background:rgba(255,255,255,.06); border-color:rgba(212,175,55,.4); box-shadow:none; }
body.dark-theme .rate-card-q { color:#F7F1DF; }
body.dark-theme .rate-card-sub, body.dark-theme .rate-card-later { color:rgba(247,241,223,.7); }
body.dark-theme .rate-card .rate-card-star { color:#F0CA58 !important; }
body:not(.dark-theme) .rate-card .rate-card-star { color: #946A00 !important; }
body:not(.dark-theme) .rate-card .rate-card-later { color: #555 !important; }
.trk-eta-paused { color: #B45309; font-weight: 700; }
body.dark-theme .trk-eta-paused { color: #F0CA58; }
.sold-chip { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(0,0,0,.08); color: #6B5A00; border: 1px solid rgba(160,120,20,.4); }
body.dark-theme .sold-chip { background: rgba(255,255,255,.08); color: #F0CA58; border-color: rgba(212,175,55,.4); }

/* ── SHARED TYPE: big section headings keep the brand serif, everything else is the plain body font ── */
.section-title { font-family: var(--font-serif); font-variant-numeric: lining-nums; }
.offer-card-price, .restaurant-card-info, .trk-eta-main, .trk-title { font-variant-numeric: lining-nums tabular-nums; }
/* The four service tiles must never be wider than their column (the plain body font is wider than the old serif). */
.svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-tile { min-width: 0; }
.svc-label { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
@media (max-width: 340px) {
  .svc-grid { gap: 6px; }
  .svc-tile { padding-left: 2px; padding-right: 2px; }
  .svc-label { font-size: 12px; letter-spacing: 0; }
}
/* Cancel order (tracking screen) */
.trk-cancel { width: 100%; min-height: 44px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid #B42318; background: transparent; color: #B42318; font-size: 14px; font-weight: 700; cursor: pointer; }
body.dark-theme .trk-cancel { border-color: #F87171; color: #F87171; }
.cancel-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 4px; font-size: 14px; color: var(--text); cursor: pointer; }
.cancel-opt input { width: 20px; height: 20px; accent-color: #B42318; }
.trk-cancel-go { width: 100%; min-height: 46px; margin-bottom: 8px; border: 0; border-radius: 12px; background: #B42318; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.trk-cancel-go:disabled { opacity: .6; cursor: default; }
.trk-cancel-keep { width: 100%; min-height: 44px; border-radius: 12px; border: 1.5px solid rgba(212,175,55,.5); background: transparent; color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; }
.sp-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text); opacity: .75; margin: 0 0 6px; }
.sp-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.sp-chip { flex: 0 0 auto; min-height: 40px; max-width: 70vw; padding: 8px 14px; border-radius: 20px; border: 1.5px solid rgba(212,175,55,.5); background: transparent; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-chip.on { background: rgba(212,175,55,.22); border-color: #946A00; }
body.dark-theme .sp-chip.on { border-color: #F0CA58; }
.sp-save { min-height: 40px; margin: 0 0 8px; padding: 6px 2px; background: none; border: 0; color: #946A00; font-size: 13px; font-weight: 700; cursor: pointer; }
body.dark-theme .sp-save { color: #F0CA58; }

/* ── SEND A PACKAGE (js/customer-package.js) ───────────────────────── */
.pkg-banner { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; margin: 0 0 12px; padding: 12px 16px; border-radius: 16px; border: 1.5px solid rgba(212,175,55,.45); background: linear-gradient(135deg, rgba(212,175,55,.16), rgba(212,175,55,.05)); color: var(--text); text-align: left; cursor: pointer; font-family: inherit; }
.pkg-banner:active { transform: scale(.99); }
.pkg-banner-ico { flex-shrink: 0; }
.pkg-banner-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pkg-banner-title { font-size: 15px; font-weight: 800; color: var(--text); }
.pkg-banner-sub { font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.pkg-view { position: fixed; inset: 0; z-index: 360; background: var(--dark); display: none; flex-direction: column; }
.pkg-head { position: static; flex-shrink: 0; }
.pkg-head .header-brand { flex: 1; min-width: 0; }
.pkg-head { display: flex; align-items: center; gap: 8px; }
.pkg-head-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; color: var(--gold-light); background: var(--glass-2); border: 1px solid var(--glass-border); flex-shrink: 0; }
.pkg-head-title { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
body:not(.dark-theme) .pkg-head-ico { color: #946A00; }
.pkg-theme { flex-shrink: 0; margin-left: auto; }
.pkg-scroll { flex: 1; overflow-y: auto; padding: 8px clamp(16px,3vw,40px) 16px; max-width: 640px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.pkg-foot { flex-shrink: 0; padding: 10px clamp(16px,3vw,40px) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--glass-border); background: var(--dark); max-width: 640px; width: 100%; margin: 0 auto; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; }
.pkg-steps { display: flex; list-style: none; margin: 4px 0 14px; padding: 0; gap: 6px; }
.pkg-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--text); opacity: .8; }
.pkg-step-n { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; border: 1.5px solid rgba(212,175,55,.5); }
.pkg-step.now { font-weight: 700; opacity: 1; }
.pkg-step.now .pkg-step-n { background: var(--gold-grad); color: #1a1400; border-color: transparent; }
.pkg-step.done .pkg-step-n { background: rgba(34,197,94,.18); color: #15803D; border-color: rgba(34,197,94,.5); }
body.dark-theme .pkg-step.done .pkg-step-n { color: #4ADE80; }
.pkg-card { background: var(--glass-2); border: 1px solid var(--glass-border); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.pkg-h { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--text); }
.pkg-lbl { display: block; margin: 10px 0 5px; font-size: 12px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--text-muted); }
.pkg-input { width: 100%; min-height: 44px; padding: 10px 12px; box-sizing: border-box; border: 1.5px solid rgba(212,175,55,.35); border-radius: 10px; background: rgba(255,255,255,.04); color: var(--text); font-size: 15px; font-family: inherit; }
.pkg-input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
select.pkg-input { appearance: auto; }
.pkg-row { display: flex; gap: 8px; }
.pkg-row .pkg-input { flex: 1; min-width: 0; }
.pkg-gps { flex-shrink: 0; width: 46px; min-height: 44px; border-radius: 10px; border: 0; background: var(--gold); color: #1a1400; font-size: 18px; cursor: pointer; }
.pkg-ok { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: #15803D; }
body.dark-theme .pkg-ok { color: #4ADE80; }
.pkg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.pkg-chip { min-height: 40px; max-width: 100%; padding: 8px 14px; border-radius: 20px; border: 1.5px solid rgba(212,175,55,.5); background: transparent; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkg-chip.on { background: rgba(212,175,55,.22); border-color: #946A00; }
body.dark-theme .pkg-chip.on { border-color: #F0CA58; }
.pkg-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pkg-size { min-height: 84px; padding: 10px 8px; border-radius: 14px; border: 1.5px solid var(--glass-border); background: transparent; color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 600; text-align: center; cursor: pointer; font-family: inherit; }
.pkg-size-ico { font-size: 26px; }
.pkg-size.on, .pkg-veh.on, .pkg-pay.on { border-color: var(--gold); background: rgba(212,175,55,.16); box-shadow: 0 0 0 1px var(--gold) inset; }
.pkg-ack { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--text); cursor: pointer; }
.pkg-ack input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; accent-color: #946A00; }
.pkg-trip { margin: 4px 0 12px; font-size: 13px; font-weight: 600; color: var(--text-muted); text-align: center; }
.pkg-vehicles, .pkg-pays { display: flex; flex-direction: column; gap: 10px; }
.pkg-veh { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--glass-border); background: var(--glass-2); color: var(--text); text-align: left; cursor: pointer; font-family: inherit; }
.pkg-veh-ico { font-size: 28px; flex-shrink: 0; }
.pkg-veh-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pkg-veh-name { font-size: 15px; font-weight: 700; }
.pkg-veh-sub { font-size: 12px; color: var(--text-muted); }
.pkg-veh-price { font-size: 16px; font-weight: 800; white-space: nowrap; }
.pkg-pay { display: flex; flex-direction: column; gap: 2px; min-height: 58px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--glass-border); background: transparent; color: var(--text); text-align: left; cursor: pointer; font-family: inherit; }
.pkg-pay-t { font-size: 14.5px; font-weight: 700; }
.pkg-pay-s { font-size: 12px; color: var(--text-muted); }
.pkg-sum { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 13.5px; color: var(--text); line-height: 1.4; }
.pkg-sum > span:first-child { flex-shrink: 0; width: 28px; text-align: center; font-size: 19px; line-height: 1.2; }
.pkg-total { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--glass-border); font-size: 16px; font-weight: 800; color: var(--text); }
.pkg-primary { width: 100%; min-height: 50px; border: 0; border-radius: 14px; background: var(--gold-grad); color: #1a1400; font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit; }
.pkg-primary:disabled { opacity: .6; cursor: default; }
.pkg-secondary { width: 100%; min-height: 46px; border-radius: 14px; border: 1.5px solid rgba(212,175,55,.5); background: transparent; color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.pkg-err { min-height: 18px; font-size: 13px; font-weight: 600; color: #B42318; }
body.dark-theme .pkg-err { color: #F87171; }
.pkg-loading { padding: 60px 20px; text-align: center; color: var(--text-muted); font-size: 14px; }
.pkg-done { text-align: center; padding: 36px 8px 8px; }
.pkg-done-ico { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; background: rgba(34,197,94,.14); border: 2px solid #22C55E; color: #15803D; }
body.dark-theme .pkg-done-ico { color: #4ADE80; }
.pkg-done-t { margin: 0 0 6px; font-size: 22px; color: var(--text); }
.pkg-done-s { margin: 0 0 18px; font-size: 14px; color: var(--text-muted); }
.pkg-code { display: inline-block; padding: 8px 18px; border-radius: 12px; border: 1.5px dashed rgba(212,175,55,.6); font-size: 18px; font-weight: 800; letter-spacing: 1px; color: var(--text); margin-bottom: 12px; }
.pkg-trk { margin-top: 12px; }
.pkg-pin { margin: 8px 0 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--gold, #D4AF37); background: var(--glass-2, rgba(212,175,55,.08)); text-align: center; }
.pkg-pin-k { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.pkg-pin-v { font-size: 30px; font-weight: 800; letter-spacing: .35em; padding-left: .35em; color: var(--text); font-variant-numeric: tabular-nums; }
.pkg-pin-h { font-size: 12px; color: var(--text-muted); }
/* Delivery journey (tracking screen): hero timer + the four moments with clock times and how long each part took */
.pkg-journey { padding: 0; overflow: hidden; margin-top: 12px; }
.pkg-j-hero { padding: 18px 16px 16px; text-align: center; background: linear-gradient(160deg, rgba(212, 175, 55, .24), rgba(212, 175, 55, .05)); border-bottom: 1px solid var(--glass-border); }
.pkg-journey.is-delivered .pkg-j-hero { background: linear-gradient(160deg, rgba(46, 204, 113, .22), rgba(46, 204, 113, .05)); }
.pkg-journey.is-cancelled .pkg-j-hero { background: linear-gradient(160deg, rgba(150, 150, 160, .2), rgba(150, 150, 160, .04)); }
.pkg-j-k { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold, #D4AF37); }
.pkg-journey.is-delivered .pkg-j-k { color: #2ECC71; }
.pkg-j-timer { font-size: 40px; font-weight: 800; letter-spacing: .02em; line-height: 1.15; margin: 4px 0 2px; color: var(--text); font-variant-numeric: tabular-nums; }
.pkg-j-sub { font-size: 12px; color: var(--text-muted); }
.pkg-j-h { margin: 14px 16px 2px; }
.pkg-j-steps { list-style: none; margin: 0; padding: 6px 16px 10px; }
.pkg-j-step { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 8px 0 14px; }
.pkg-j-step::before { content: ''; position: absolute; left: 11px; top: 32px; bottom: -4px; width: 2px; background: var(--glass-border); }
.pkg-j-step:last-child { padding-bottom: 6px; }
.pkg-j-step:last-child::before { display: none; }
.pkg-j-step.is-done::before { background: var(--gold, #D4AF37); }
.pkg-j-dot { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #1a1200; box-sizing: border-box; }
.pkg-j-step.is-done .pkg-j-dot { background: var(--gold, #D4AF37); border-color: var(--gold, #D4AF37); }
.pkg-j-step.is-active .pkg-j-dot { border-color: var(--gold, #D4AF37); animation: pkgJPulse 1.8s ease-out infinite; }
@keyframes pkgJPulse { 0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); } }
@media (prefers-reduced-motion: reduce) { .pkg-j-step.is-active .pkg-j-dot { animation: none; } }
.pkg-j-body { flex: 1; min-width: 0; }
.pkg-j-name { font-size: 14px; font-weight: 700; color: var(--text); }
.pkg-j-step:not(.is-done):not(.is-active) .pkg-j-name { color: var(--text-muted); font-weight: 500; }
.pkg-j-dur { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pkg-j-clock { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pkg-j-live { color: var(--gold, #D4AF37); }
body:not(.dark-theme) .pkg-j-k, body:not(.dark-theme) .pkg-j-live { color: #7a5f00; }
body:not(.dark-theme) .pkg-journey.is-delivered .pkg-j-k { color: #1b7f46; }
/* the PIN as four boxes */
.pkg-pin-v { display: flex; justify-content: center; gap: 8px; padding: 8px 0 6px; letter-spacing: 0; }
.pkg-pin-d { width: 46px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1.5px solid var(--gold, #D4AF37); background: var(--glass-2); font-size: 30px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.pkg-trk-ic { flex: 0 0 20px; text-align: center; }
.pkg-trk-row { display: flex; gap: 10px; padding: 5px 0; font-size: 13px; }
.pkg-trk-k { flex: 0 0 64px; color: var(--text-muted); }
.pkg-trk-v { flex: 1; min-width: 0; color: var(--text); overflow-wrap: anywhere; }
body:not(.dark-theme) .pkg-view, body:not(.dark-theme) .pkg-foot { background: #FFFFFF; }
body:not(.dark-theme) .pkg-input { background: #FFFFFF; border-color: rgba(0,0,0,.25); }
body:not(.dark-theme) .pkg-card { background: #FBF8EF; }
body:not(.dark-theme) .pkg-banner { background: #FFF8E1; }
body:not(.dark-theme) .pkg-size.on, body:not(.dark-theme) .pkg-veh.on, body:not(.dark-theme) .pkg-pay.on { background: #FFF1C2; }
body:has(#view-package[style*="flex"]) #etel-refresh-btn { display: none !important; }
/* Emoji inside gold gradient heading text lose their colour (the text is painted transparent over a clipped gradient, so the emoji turned into a flat gold blob). Give them their own paint. */
.brand-name .brand-emoji, .brand-name #category-icon { -webkit-text-fill-color: initial; background: none; filter: none; }

/* profile sheet: the hover colours used to be set by onmouseover/onmouseout attributes in the markup (not allowed under a strict
   Content-Security-Policy). !important is needed because the rows carry an inline background. */
#profile-info .prof-row:hover, #profile-info .prof-row:focus-visible { background: rgba(255, 215, 0, .07) !important; }
#profile-info .prof-logout:hover, #profile-info .prof-logout:focus-visible { background: rgba(239, 68, 68, .16) !important; }

/* ── SEND A PACKAGE · premium form (v7.19) ─────────────────────────── */
.pkg-lang { display: inline-flex; flex-shrink: 0; margin-left: auto; padding: 3px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--glass-border); }
.pkg-lang-b { min-width: 40px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--text-muted); font-size: 12.5px; font-weight: 800; font-family: inherit; cursor: pointer; }
.pkg-lang-b.on { background: var(--gold-grad); color: #1a1400; box-shadow: 0 2px 8px rgba(212,175,55,.35); }
.pkg-lang + .pkg-theme { margin-left: 6px; }
.pkg-head .header-brand { min-width: 0; }
@media (max-width: 380px) { .pkg-head-ico { display: none; } }
.pkg-steps { position: relative; counter-reset: s; margin: 6px 0 16px; }
.pkg-step { position: relative; }
.pkg-step:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; border-radius: 2px; background: var(--glass-border); }
.pkg-step.done:not(:last-child)::after { background: #22C55E; }
.pkg-step.now .pkg-step-n { box-shadow: 0 0 0 4px rgba(212,175,55,.22); }
.pkg-card { border-radius: 18px; box-shadow: 0 6px 22px rgba(0,0,0,.12); }
body:not(.dark-theme) .pkg-card { box-shadow: 0 4px 16px rgba(60,40,0,.08); background: #fff; }
.pkg-input { border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.pkg-input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.28); }
.pkg-bad, .pkg-input.pkg-bad { border-color: #E5484D !important; box-shadow: 0 0 0 3px rgba(229,72,77,.22) !important; }
.pkg-sizes.pkg-bad, .pkg-ack.pkg-bad { border-radius: 14px; }
/* route card: two stops joined by a line */
.pkg-route { padding: 6px 14px 14px; }
.pkg-stop { display: flex; gap: 12px; padding-top: 12px; }
.pkg-rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 28px; }
.pkg-dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.pkg-dot.a { background: var(--gold-grad); color: #1a1400; }
.pkg-dot.b { background: #1F2937; color: #fff; border: 2px solid var(--gold); }
body:not(.dark-theme) .pkg-dot.b { background: #1F2937; }
.pkg-line { flex: 1; width: 2px; margin: 4px 0 -12px; border-radius: 2px; background: repeating-linear-gradient(to bottom, rgba(212,175,55,.7) 0 5px, transparent 5px 9px); }
.pkg-stop-drop .pkg-line { display: none; }
.pkg-stop-main { flex: 1; min-width: 0; padding-bottom: 6px; }
.pkg-stop-k { margin: 3px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.pkg-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 2px; }
.pkg-act { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1.5px solid rgba(212,175,55,.5); background: transparent; color: var(--text); font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; }
.pkg-act-map { background: var(--gold-grad); border-color: transparent; color: #1a1400; box-shadow: 0 3px 10px rgba(212,175,55,.3); }
.pkg-more { margin: 8px 0 0; }
.pkg-more summary { min-height: 36px; display: flex; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.pkg-more .pkg-input { margin-top: 4px; }
.pkg-who { margin: 14px 0 0; }
.pkg-who-k { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(212,175,55,.16); font-size: 12px; font-weight: 800; color: var(--text); }
.pkg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pkg-grid2 .pkg-fld { min-width: 0; }
@media (max-width: 420px) { .pkg-grid2 { grid-template-columns: 1fr; gap: 0; } }
.pkg-dist { margin: 6px 0 0 40px; display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(34,197,94,.14); color: #15803D; font-size: 12.5px; font-weight: 800; }
body.dark-theme .pkg-dist { color: #4ADE80; }
/* package step */
.pkg-size { border-radius: 16px; transition: transform .12s, border-color .12s; }
.pkg-size:active { transform: scale(.97); }
.pkg-stepper { display: flex; align-items: center; gap: 10px; }
.pkg-pm { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; border: 1.5px solid rgba(212,175,55,.55); background: transparent; color: var(--text); font-size: 24px; font-weight: 700; font-family: inherit; cursor: pointer; }
.pkg-wval { text-align: center; font-size: 20px; font-weight: 800; }
.pkg-ack { padding: 12px 14px; border-radius: 14px; border: 1.5px solid rgba(245,158,11,.5); background: rgba(245,158,11,.1); margin-top: 0; margin-bottom: 12px; }
/* vehicle step */
.pkg-hero { padding: 12px 14px; }
.pkg-mini { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.pkg-mini .pkg-dot { width: 24px; height: 24px; font-size: 12px; }
.pkg-mini-t { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkg-hero .pkg-trip { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--glass-border); text-align: left; }
.pkg-veh { border-radius: 16px; position: relative; }
.pkg-badge { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(34,197,94,.16); color: #15803D; font-size: 12px; font-style: normal; font-weight: 800; vertical-align: middle; }
body.dark-theme .pkg-badge { color: #4ADE80; }
.pkg-check { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--glass-border); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #1a1400; }
.pkg-veh.on .pkg-check, .pkg-pay.on .pkg-check { background: var(--gold); border-color: var(--gold); }
/* pay step */
.pkg-pay { flex-direction: row; align-items: center; gap: 12px; border-radius: 16px; }
.pkg-pay-ico { font-size: 24px; flex-shrink: 0; }
.pkg-pay-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pkg-safe { display: flex; gap: 12px; align-items: flex-start; border-color: rgba(212,175,55,.45); }
.pkg-safe-ico { font-size: 26px; flex-shrink: 0; }
.pkg-safe-t { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.pkg-safe-s { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.pkg-btns { display: flex; gap: 10px; }
.pkg-btns .pkg-back { width: auto; flex: 0 0 34%; }
.pkg-btns .pkg-primary { flex: 1; min-width: 0; }
.pkg-primary { box-shadow: 0 6px 18px rgba(212,175,55,.35); }
/* done */
.pkg-done-ico { animation: pkgPop .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pkgPop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pkg-done-ico { animation: none; } }
.pkg-done-total { justify-content: center; gap: 10px; border-top: 0; }
.pkg-next-l { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.6; color: var(--text); }
/* map picker */
.pkg-mapview { position: fixed; inset: 0; z-index: 380; background: var(--dark); display: none; flex-direction: column; }
.pkg-map-head { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--glass-border); }
.pkg-map-title { font-size: 16px; font-weight: 800; color: var(--text); }
.pkg-map-body { position: relative; flex: 1; min-height: 0; }
.pkg-map-canvas { position: absolute; inset: 0; background: var(--glass-2); }
.pkg-map-search { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3; }
.pkg-map-search .pkg-input { background: var(--dark); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.pkg-mappin { position: absolute; left: 50%; top: 50%; z-index: 2; width: 0; height: 0; pointer-events: none; }
.pkg-mappin-h { position: absolute; left: -17px; top: -48px; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; font-size: 0; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.pkg-mappin-h.a { background: #D4AF37; }
.pkg-mappin-h.b { background: #1F2937; border: 2px solid #D4AF37; }
.pkg-mappin-s { position: absolute; left: -5px; top: -3px; width: 10px; height: 5px; border-radius: 50%; background: rgba(0,0,0,.35); }
.pkg-map-loc { position: absolute; right: 12px; bottom: 14px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--dark); color: var(--text); font-size: 24px; box-shadow: 0 4px 14px rgba(0,0,0,.3); cursor: pointer; }
.pkg-map-load { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; font-size: 14px; color: var(--text-muted); }
.pkg-map-load.fail { color: #E5484D; font-weight: 700; }
.pkg-map-sheet { flex-shrink: 0; padding: 14px clamp(16px,3vw,40px) calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--glass-border); background: var(--dark); display: flex; flex-direction: column; gap: 10px; }
.pkg-map-addr { min-height: 40px; display: flex; align-items: center; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--text); }
.pkg-map-addr.bad { color: #E5484D; }
.pac-container { z-index: 400; }
.pkg-more summary::after { content: '▾'; margin-left: 8px; font-size: 12px; }
.pkg-more[open] summary::after { content: '▴'; }

/* Send a package: every vehicle with its real picture (greyed out when it cannot take the package), and the payment choices */
.pkg-veh-pic { width: 64px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.pkg-veh-pic img { max-width: 64px; max-height: 48px; object-fit: contain; }
.pkg-veh.off, .pkg-pay.off { opacity: .55; cursor: not-allowed; filter: grayscale(.8); }
.pkg-veh.off .pkg-veh-sub { color: #B45309; font-weight: 600; }
.pkg-payx { margin-top: 12px; padding: 12px; border-radius: 14px; border: 1px dashed var(--glass-border); }
.pkg-payx-n { margin: 8px 0 0; font-size: 12px; color: var(--text-muted); }
.pkg-acct { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(212,175,55,.12); font-size: 13px; }
.pkg-acct b { font-size: 18px; letter-spacing: .5px; }
.pkg-done-pay { font-weight: 700; }
body:not(.dark-theme) .pkg-veh.off .pkg-veh-sub { color: #92400E; }

/* Send a package: the premium waybill on the booking confirmation (Etel navy + gold) */
.pkgw { margin: 4px 0 14px; border-radius: 20px; overflow: hidden; border: 1.5px solid #0B1530; background: #fff; color: #0B1530; text-align: left; box-shadow: 0 10px 30px rgba(11,21,48,.18); }
.pkgw-top { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; background-color: #0B1530; background-image: linear-gradient(135deg, #0B1530, #14275A); color: #D4AF37; font-weight: 800; letter-spacing: .1em; font-size: 12px; }
.pkgw-tag { color: #fff; font-weight: 600; letter-spacing: .04em; opacity: .85; }
.pkgw-id { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1.5px dashed #C9A93A; }
.pkgw-k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #5B6478; font-weight: 700; }
.pkgw-code { font-size: 22px; font-weight: 800; letter-spacing: 1px; color: #0B1530; word-break: break-all; }
.pkgw-qr { width: 84px; height: 84px; flex-shrink: 0; background: #fff; }
.pkgw-qr img, .pkgw-qr canvas { width: 84px !important; height: 84px !important; }
.pkgw-body { padding: 12px 16px; }
.pkgw-route { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.pkgw-pt { display: flex; gap: 10px; align-items: flex-start; }
.pkgw-d { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; background: #D4AF37; color: #0B1530; }
.pkgw-d.b { background: #0B1530; color: #D4AF37; }
.pkgw-addr { font-size: 14px; font-weight: 600; color: #0B1530; overflow-wrap: anywhere; }
.pkgw-veh { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #E6E8EE; border-bottom: 1px solid #E6E8EE; margin-bottom: 4px; }
.pkgw-vp { width: 56px; height: 42px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.pkgw-vp img { max-width: 56px; max-height: 42px; object-fit: contain; }
.pkgw-vn { font-size: 15px; font-weight: 800; }
.pkgw-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; border-bottom: 1px solid #F0F1F5; }
.pkgw-v { font-weight: 700; text-align: right; overflow-wrap: anywhere; color: #0B1530; }
.pkgw-total { display: flex; justify-content: space-between; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #FFF1C2; font-size: 19px; font-weight: 800; color: #0B1530; }
.pkgw-sec { padding: 4px 16px 6px; }
.pkgw-h { margin: 8px 0; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #5B6478; }
.pkgw-tl { list-style: none; margin: 0; padding: 0; }
.pkgw-st { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 13px; color: #5B6478; }
.pkgw-st:not(:last-child)::after { content: ''; position: absolute; left: 10px; top: 28px; width: 2px; height: 14px; background: #D9DCE5; }
.pkgw-st.done { color: #0B1530; font-weight: 700; }
.pkgw-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C5C9D6; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; background: #fff; }
.pkgw-st.done .pkgw-dot { background: #15803D; border-color: #15803D; color: #fff; }
.pkgw-btns { display: flex; gap: 8px; padding: 8px 16px 4px; }
.pkgw-b { flex: 1; min-height: 44px; border-radius: 12px; border: 1.5px solid #0B1530; background: #fff; color: #0B1530; font-weight: 700; font-size: 13px; cursor: pointer; }
.pkgw-b:active { background: #FFF1C2; }
.pkgw-note { margin: 8px 16px 14px; font-size: 12px; color: #5B6478; }

/* Send a package: delivery speed choice and the price breakdown lines */
.pkg-speed { margin-top: 12px; }
.pkg-bd { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; color: var(--text-muted); }
.pkg-bd span:last-child { font-weight: 700; color: var(--text); }

/* Send a package: report a problem sheet */
.pkgw-prob { flex: 1; color: #B91C1C; border-color: #B91C1C; }
.pkgw-sheet { position: fixed; inset: 0; z-index: 100000; background: rgba(11,21,48,.55); display: flex; align-items: flex-end; justify-content: center; }
.pkgw-sheet-in { width: 100%; max-width: 480px; box-sizing: border-box; background: #fff; color: #0B1530; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.pkgw-sheet-t { margin: 0 0 12px; font-size: 17px; color: #0B1530; }
.pkgw-sl { display: block; margin: 10px 0 4px; font-size: 13px; font-weight: 700; color: #0B1530; }
.pkgw-sel, .pkgw-ta { width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 12px; border: 1.5px solid #C5C9D6; background: #fff; color: #0B1530; font-size: 15px; font-family: inherit; }
.pkgw-msg { min-height: 18px; margin-top: 6px; font-size: 13px; color: #B91C1C; }
.pkgw-sheet-b { display: flex; gap: 8px; margin-top: 8px; }
.pkgw-go { background: #0B1530; color: #D4AF37; }
.pkgw-sheet .pkgw-b { color: #0B1530; }
.pkgw-sheet .pkgw-go { color: #D4AF37; }

/* Send a package: Send again strip and the My packages list */
.pkgh-strip { margin-bottom: 12px; }
.pkgh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pkgh-h { margin: 0 0 2px; }
.pkgh-sub { font-size: 12px; color: var(--text-muted); }
.pkgh-all { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--gold, #D4AF37); background: transparent; color: var(--text); font-weight: 700; font-size: 12px; cursor: pointer; white-space: nowrap; }
.pkgh-chips { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.pkgh-chip { flex: 0 0 auto; min-width: 120px; max-width: 170px; text-align: left; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--glass-border); background: var(--glass-2, rgba(212,175,55,.08)); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.pkgh-chip-n { font-weight: 800; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkgh-chip-s { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkgh-view { position: fixed; inset: 0; z-index: 100000; background: #F6F7FB; color: #0B1530; overflow-y: auto; }
.pkgh-in { max-width: 520px; margin: 0 auto; padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); }
.pkgh-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pkgh-t { margin: 0; font-size: 20px; color: #0B1530; }
.pkgh-x { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #0B1530; background: #fff; color: #0B1530; font-size: 16px; cursor: pointer; }
.pkgh-filters { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.pkgh-f { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #C5C9D6; background: #fff; color: #0B1530; font-weight: 700; font-size: 13px; cursor: pointer; }
.pkgh-f.on { background: #0B1530; border-color: #0B1530; color: #D4AF37; }
.pkgh-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pkgh-item { background: #fff; border: 1.5px solid #E1E4EC; border-radius: 16px; padding: 12px 14px; }
.pkgh-row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pkgh-code { font-size: 15px; color: #0B1530; }
.pkgh-st { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #FFF1C2; color: #7A5B00; }
.pkgh-st.g-delivered { background: #DCFCE7; color: #166534; }
.pkgh-st.g-cancelled { background: #FEE2E2; color: #991B1B; }
.pkgh-route { margin: 6px 0 2px; font-size: 13px; color: #0B1530; overflow-wrap: anywhere; }
.pkgh-meta { font-size: 12px; color: #5B6478; }
.pkgh-btns { display: flex; gap: 8px; margin-top: 10px; }
.pkgh-b { flex: 1; min-height: 42px; border-radius: 12px; border: 1.5px solid #0B1530; background: #fff; color: #0B1530; font-weight: 700; font-size: 13px; cursor: pointer; }
.pkgh-go { background: #0B1530; color: #D4AF37; }
.pkgh-empty { text-align: center; padding: 30px 10px; color: #5B6478; font-size: 14px; }

/* Send a package: the courier's photo on the tracking screen */
.pkgp { margin-top: 12px; }
.pkgp-s { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); }
.pkgp-b { width: 100%; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--gold, #D4AF37); background: transparent; color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; }
.pkgp-img { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 12px; background: #0B1530; }
.pkgp-msg { min-height: 16px; margin-top: 6px; font-size: 12.5px; color: var(--text-muted); }

/* Send a package: the address book */
.pkgc-acts { margin-top: 8px; }
.pkgc-view { position: fixed; inset: 0; z-index: 100000; background: #F6F7FB; color: #0B1530; overflow-y: auto; }
.pkgc-in { max-width: 520px; margin: 0 auto; padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); }
.pkgc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.pkgc-h { margin: 0; font-size: 20px; color: #0B1530; }
.pkgc-x { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #0B1530; background: #fff; color: #0B1530; font-size: 16px; cursor: pointer; }
.pkgc-s { margin: 0 0 12px; font-size: 13px; color: #5B6478; }
.pkgc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pkgc-item { background: #fff; border: 1.5px solid #E1E4EC; border-radius: 16px; padding: 12px 14px; }
.pkgc-t { font-size: 15px; font-weight: 800; color: #0B1530; }
.pkgc-p { font-size: 13px; color: #0B1530; margin-top: 2px; }
.pkgc-a { font-size: 13px; color: #5B6478; margin-top: 2px; overflow-wrap: anywhere; }
.pkgc-btns { display: flex; gap: 8px; margin-top: 10px; }
.pkgc-b { flex: 1; min-height: 42px; border-radius: 12px; border: 1.5px solid #0B1530; background: #fff; color: #0B1530; font-weight: 700; font-size: 13px; cursor: pointer; }
.pkgc-go { background: #0B1530; color: #D4AF37; }
.pkgc-del.armed { background: #B91C1C; border-color: #B91C1C; color: #fff; }
.pkgc-empty { text-align: center; padding: 30px 10px; color: #5B6478; font-size: 14px; }

/* Send a package: share the public tracking link from the tracking screen */
.pkgw-trk { margin-top: 12px; }
.pkgw-trk-s { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); }
.pkgw-trk-b { width: 100%; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--gold, #D4AF37); background: transparent; color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; }
