/* ═══════════════════════════════════════════════════════════════════════════
   PhantomCart — DoorDash/UberEats Inspired Skin
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────────────── */
[data-skin="phantomcart"] {
  --brand-primary:       #FF3008;
  --brand-primary-h:     #E62800;
  --brand-primary-glow:  0 0 24px rgba(255, 48, 8, 0.25);
  --brand-primary-soft:  rgba(255, 48, 8, 0.06);
  --brand-bg:            #FFFFFF;
  --brand-surface:       #F7F7F7;
  --brand-surface-2:     #EEEEEE;
  --brand-text:          #191919;
  --brand-text-soft:     #3D3D3D;
  --brand-muted:         #6B6B6B;
  --brand-muted-light:   #9E9E9E;
  --brand-border:        #EEEEEE;
  --brand-border-strong: #DDDDDD;
  --brand-success:       #00895A;
  --brand-success-soft:  #E6F7F0;
  --brand-star:          #F5B800;

  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    20px;
  --radius-xl:    24px;
  --radius-pill:  9999px;

  --shadow-xs:    0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl:    0 12px 48px rgba(0,0,0,0.16);

  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition:   all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background: var(--brand-bg);
  color: var(--brand-text);
  line-height: 1.5;
  min-height: 100dvh;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ── Top Shell (sticky container for header + HUD + categories) ────────── */
.top-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-bg);
}

/* ── Site Header ─────────────────────────────────────────────────────── */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--brand-border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
}

/* Left group: logo + address */
.header-left-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* PhantomCart logo in header */
.header-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
}
.header-logo-icon {
  font-size: 1.3rem;
  line-height: 1;
}
.header-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-text);
  letter-spacing: -0.03em;
}
.header-logo-highlight {
  color: var(--brand-primary);
}

/* Address selector */
.header-address {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  flex-shrink: 0;
  border-left: 1.5px solid var(--brand-border);
  margin-left: 4px;
}
.header-address:hover { background: var(--brand-surface); }

.header-address-pin {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.header-address-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-address-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-address-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-text);
  letter-spacing: -0.02em;
}

.header-address-chevron {
  font-size: 0.65rem;
  color: var(--brand-muted);
  margin-left: -2px;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  flex-shrink: 0;
}
.header-icon-btn:hover { background: var(--brand-surface); }

/* Cart pill button */
.cart-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--brand-primary-glow);
  white-space: nowrap;
  margin-left: 4px;
}
.cart-pill-btn:hover {
  background: var(--brand-primary-h);
  box-shadow: 0 0 32px rgba(255, 48, 8, 0.35);
  transform: translateY(-1px);
}
.cart-pill-btn:active { transform: scale(0.97); }

.cart-pill-icon { font-size: 0.95rem; }

.cart-pill-count {
  background: rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  min-width: 22px;
  text-align: center;
}

.cart-pill-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.3);
}

.cart-pill-total {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Disclaimer bar */
.header-disclaimer {
  background: #FFF8E7;
  border-top: 1px solid #F5D87A;
  color: #7A5C00;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  padding: 3px 16px;
  letter-spacing: 0.02em;
}

/* ── Category Carousel Strip ───────────────────────────────────────────── */
.category-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  display: flex;
  gap: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.category-strip::-webkit-scrollbar { display: none; }

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  background: var(--brand-surface);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-text-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.category-pill:hover {
  background: #FFF;
  border-color: var(--brand-border-strong);
}
.category-pill--active {
  background: var(--brand-text);
  color: #fff;
  border-color: var(--brand-text);
}
.category-pill--active:hover {
  background: var(--brand-text);
  color: #fff;
}

.category-pill-emoji { font-size: 0.9rem; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 11px 22px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(255, 48, 8, 0.25);
}
.btn-primary:hover {
  background: var(--brand-primary-h);
  box-shadow: 0 4px 20px rgba(255, 48, 8, 0.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover { background: var(--brand-primary); color: #fff; }
.btn-secondary:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--brand-muted);
  border: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 4px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover { color: var(--brand-text); }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--brand-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--brand-border);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── Restaurant Feed Cards ─────────────────────────────────────────────── */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.restaurant-card {
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: none;
  box-shadow: var(--shadow-sm);
}
.restaurant-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Hero image — 60% of card height, edge-to-edge */
.restaurant-hero {
  width: 100%;
  height: 180px;
  background: var(--brand-surface);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.restaurant-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.restaurant-card:hover .restaurant-hero img { transform: scale(1.04); }

.restaurant-hero-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  background: linear-gradient(135deg, #FFF2F0 0%, #FFF0EE 100%);
}

/* Logo badge overlaid on hero */
.restaurant-logo-badge {
  position: absolute;
  bottom: 12px;
  left: 14px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 2.5px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.restaurant-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lock overlay */
.lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.lock-icon { font-size: 1.5rem; }
.lock-xp {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.restaurant-locked { opacity: 0.7; }

/* Card body below image */
.restaurant-card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.restaurant-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--brand-text);
  line-height: 1.2;
}

.restaurant-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.restaurant-card-footer {
  margin-top: auto;
  padding-top: 10px;
}

/* Order button */
.btn-order {
  display: block;
  width: 100%;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 11px 16px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.01em;
  text-align: center;
  box-shadow: 0 2px 10px rgba(255, 48, 8, 0.2);
}
.btn-order:hover { background: var(--brand-primary-h); }
.btn-order:disabled {
  background: var(--brand-surface-2);
  color: var(--brand-muted-light);
  cursor: not-allowed;
  box-shadow: none;
}

/* Badge */
.badge {
  display: inline-block;
  background: var(--brand-surface);
  color: var(--brand-text-soft);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  letter-spacing: 0.02em;
}

/* Rating */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-text);
}
.rating::before { content: "★"; color: var(--brand-star); font-size: 0.85rem; }

/* Delivery time */
.delivery-time {
  font-size: 0.78rem;
  color: var(--brand-muted);
  font-weight: 500;
}

/* ── HUD (XP bar) ──────────────────────────────────────────────────────── */
.hud {
  background: var(--brand-bg);
  border-bottom: 1px solid var(--brand-border);
  padding: 8px 20px;
}
.hud.hud-hidden { display: none; }
.hud-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hud-left { flex: 1; min-width: 0; }
.hud-level {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-text);
  margin-bottom: 4px;
}
.hud-level-name { color: var(--brand-primary); font-weight: 800; }
.hud-xp-bar-wrap {
  height: 5px;
  background: var(--brand-surface-2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 3px;
}
.hud-xp-bar {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 3px;
  transition: width 0.6s ease;
}
.hud-xp-label { font-size: 0.68rem; color: var(--brand-muted); }
.hud-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.hud-streak {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
}
.hud-streak-val { font-variant-numeric: tabular-nums; }
.hud-vouchers {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 3px;
}
.hud-voucher-count {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--brand-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 1px 7px;
}
.hud-voucher-label { font-size: 0.65rem; color: var(--brand-muted); }
.hud-shields { font-size: 0.75rem; color: var(--brand-muted); font-weight: 600; }

/* Bite Coins HUD (in header) */
.bite-coins-display {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--brand-surface);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  color: var(--brand-text);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Bag badge */
.bag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0 5px;
  position: absolute;
  top: -2px;
  right: -4px;
  box-shadow: 0 2px 6px rgba(255,48,8,0.3);
}

/* ── Menu View ─────────────────────────────────────────────────────────── */
.menu-back { margin-bottom: 16px; }

.menu-hero-banner {
  width: 100%;
  height: 200px;
  background: var(--brand-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}
.menu-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-hero-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, #FFF2F0 0%, #FFF0EE 100%);
}

.menu-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--brand-border);
}
.menu-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu-header-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}
.menu-header-logo img { width: 100%; height: 100%; object-fit: cover; }
.menu-restaurant-name {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--brand-text);
}
.menu-restaurant-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* Menu items list */
.menu-items-list {
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}

/* DoorDash-style row: text left, photo right, + button */
.menu-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--brand-border);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
}
.menu-item-card:first-child { border-top: 1px solid var(--brand-border); }
.menu-item-card:hover { background: #FAFAFA; }

.menu-item-info { flex: 1; min-width: 0; }
.menu-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--brand-text);
  letter-spacing: -0.015em;
}
.menu-item-description {
  font-size: 0.78rem;
  color: var(--brand-muted);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.menu-item-details {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-text);
}
.menu-item-calories {
  font-size: 0.72rem;
  color: var(--brand-muted);
}

/* Photo */
.menu-item-photo-wrap {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--brand-surface);
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-item-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.menu-item-photo-wrap.photo-missing .menu-item-photo-fallback {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-item-photo-wrap:not(.photo-missing) .menu-item-photo-fallback { display: none; }

/* + Add button */
.menu-item-action { position: relative; }
.btn-add-item {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 3px 12px rgba(255,48,8,0.3);
  flex-shrink: 0;
  font-family: var(--font-body);
}
.btn-add-item:hover { background: var(--brand-primary-h); transform: scale(1.08); }
.btn-add-item:active { transform: scale(0.92); }
.btn-add-item.added { background: var(--brand-success); box-shadow: 0 2px 8px rgba(0,137,90,0.35); }

/* ── Cart Sidebar ──────────────────────────────────────────────────────── */
.cart-sidebar {
  width: 330px;
  flex-shrink: 0;
  position: sticky;
  top: 84px;
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  background: var(--brand-bg);
}
.cart-sidebar.hidden { display: none; }

.cart-inner { padding: 20px; }
.cart-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--brand-border);
  letter-spacing: -0.02em;
}
.cart-empty {
  color: var(--brand-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 32px 0;
  line-height: 1.7;
}

.cart-items { list-style: none; margin-bottom: 14px; }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--brand-surface-2);
  gap: 8px;
  font-size: 0.84rem;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-name { flex: 1; font-weight: 600; line-height: 1.3; }
.cart-item-qty  { color: var(--brand-muted); font-size: 0.76rem; }
.cart-item-price { font-weight: 700; white-space: nowrap; }

.cart-item-remove {
  background: none;
  border: none;
  color: var(--brand-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
  min-width: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  font-family: var(--font-body);
}
.cart-item-remove:hover { background: var(--brand-surface-2); color: var(--brand-primary); }

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 0 16px;
  border-top: 1.5px solid var(--brand-border-strong);
}
.cart-checkout-btn { width: 100%; }

.cart-cust-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.cart-cust-tag {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.cart-cust-tag--add { background: var(--brand-success-soft); color: var(--brand-success); }
.cart-cust-tag--rem { background: var(--brand-surface-2); color: var(--brand-muted); text-decoration: line-through; }
.cart-item-info { flex: 1; min-width: 0; }

/* ── Mobile Cart Bar ───────────────────────────────────────────────────── */
.mobile-cart-bar {
  display: none;
}
.mobile-cart-bar.hidden { display: none; }

.cart-sheet-overlay { display: none; }
.cart-sheet-overlay.open { display: block; }

.cart-sheet { display: none; }
.cart-sheet.open { display: block; }

/* ── Countdown Screen ──────────────────────────────────────────────────── */
.countdown-screen { display: flex; justify-content: center; padding: 20px 0; }
.countdown-card {
  background: var(--brand-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-md);
}
.countdown-card--wide { max-width: 560px; }
.countdown-heading {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.countdown-sub {
  font-size: 0.85rem;
  color: var(--brand-muted);
  margin-bottom: 24px;
}
.countdown-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--brand-surface);
  border-radius: var(--radius-lg);
}
.countdown-digits {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 6px;
}
.countdown-label {
  font-size: 0.75rem;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.countdown-voucher-section { display: flex; flex-direction: column; gap: 12px; }
.voucher-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--brand-muted);
}
.countdown-bag-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--brand-primary-soft);
  border: 1px dashed rgba(255, 48, 8, 0.25);
  border-radius: var(--radius-sm);
  margin: 12px 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-primary);
}

/* ── Delivery Map ──────────────────────────────────────────────────────── */
.delivery-map-wrap {
  margin-bottom: 20px;
  background: #FAFAFA;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 10px 10px 6px;
}
.delivery-map { display: block; width: 100%; height: auto; }
.map-driver-dot { filter: drop-shadow(0 0 5px rgba(255,48,8,0.6)); }
.map-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.68rem;
  color: var(--brand-muted);
  margin-top: 4px;
  font-weight: 500;
}
.map-legend-item { display: flex; align-items: center; gap: 4px; }
.map-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.map-legend-dot--rest { background: var(--brand-primary); }
.map-legend-dot--home { background: var(--brand-success); }
.map-driver-status {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-top: 4px;
}

/* ── Receipt Screen ────────────────────────────────────────────────────── */
.receipt-screen {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 0;
}
.receipt-panel {
  background: var(--brand-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.receipt-heading {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--brand-text);
  margin-bottom: 4px;
}
.receipt-sub {
  font-size: 0.85rem;
  color: var(--brand-muted);
  margin-bottom: 20px;
}
.line-items { list-style: none; margin-bottom: 18px; }
.line-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--brand-border);
  font-size: 0.88rem;
  gap: 12px;
}
.line-item:last-child { border-bottom: none; }
.line-item-name { flex: 1; font-weight: 500; }
.line-item-qty { color: var(--brand-muted); font-size: 0.78rem; }
.line-item-price { font-weight: 700; white-space: nowrap; }
.fee-breakdown { margin-bottom: 18px; }
.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 0.85rem;
  color: var(--brand-muted);
}
.fee-row.grand {
  border-top: 2px solid var(--brand-text);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-text);
}
.fee-row.calories {
  border-top: 1px dashed var(--brand-border);
  margin-top: 4px;
  padding-top: 10px;
  color: var(--brand-success);
  font-weight: 600;
}
.saved-callout {
  background: var(--brand-success-soft);
  border: 1px solid #A8DFC0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--brand-success);
  font-weight: 600;
  margin-bottom: 18px;
  text-align: center;
}

/* Receipt savings banner */
.receipt-savings-banner {
  background: var(--brand-success-soft);
  border: 1px solid rgba(0, 137, 90, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 14px;
}
.receipt-savings-this {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-success);
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}
.receipt-savings-total {
  font-size: 0.78rem;
  color: #15803d;
  font-weight: 600;
}
.receipt-milestone-banner {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.12));
  border: 1.5px solid rgba(255, 152, 0, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: bounceIn 0.6s ease;
}
.receipt-milestone-emoji { font-size: 2rem; }
.receipt-milestone-text { font-size: 0.88rem; font-weight: 700; color: #b45309; }
.xp-gain-row {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 14px;
  padding: 10px;
  background: var(--brand-primary-soft);
  border-radius: var(--radius-sm);
}
.receipt-game-section {
  background: var(--brand-surface);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.receipt-coins-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.receipt-coins-label { color: var(--brand-muted); }
.receipt-coins-value { font-weight: 700; }
.receipt-coins-positive { color: var(--brand-success); }
.receipt-bags-callout {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: #FFF8E7;
  border: 1px solid #F5D87A;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: #7A5C00;
  margin-top: 4px;
}

/* ── Onboarding ─────────────────────────────────────────────────────────── */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.onboarding-card {
  background: var(--brand-bg);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}
.onboarding-logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-primary);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.onboarding-logo span { color: var(--brand-text); }
.onboarding-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.onboarding-sub {
  font-size: 0.85rem;
  color: var(--brand-muted);
  margin-bottom: 16px;
  line-height: 1.55;
}
.onboarding-disclaimer {
  background: #FFF8E7;
  border: 1px solid #F5D87A;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: #7A5C00;
  padding: 8px 12px;
  margin-bottom: 24px;
  font-weight: 500;
}
.onboarding-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 6px;
  color: var(--brand-muted);
}
.onboarding-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--brand-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.15s;
  font-weight: 500;
}
.onboarding-input:focus { border-color: var(--brand-primary); }
.onboarding-btn { width: 100%; }

/* Onboarding reveal */
.onboarding-reveal-headline {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.4rem;
  color: var(--brand-primary);
  letter-spacing: -0.03em;
}
.onboarding-reveal-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  padding: 0.75rem 1rem;
  background: var(--brand-surface);
  border-radius: var(--radius-md);
  text-align: left;
}
.onboarding-reveal-icon { font-size: 1.5rem; flex-shrink: 0; }
.onboarding-reveal-label { font-weight: 700; font-size: 0.9rem; }
.onboarding-reveal-desc { font-size: 0.78rem; color: var(--brand-muted); margin-top: 2px; }

/* ── Illusion Screen ───────────────────────────────────────────────────── */
.illusion-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 60px 20px;
  gap: 20px;
}
.illusion-spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid var(--brand-surface-2);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.illusion-stage {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-text);
  letter-spacing: -0.02em;
  opacity: 0;
}
.illusion-stage.illusion-fade {
  animation: illusionFade 0.35s ease forwards;
}
.illusion-sub {
  font-size: 0.78rem;
  color: var(--brand-muted);
}

/* ── Level-Up Overlay ──────────────────────────────────────────────────── */
.levelup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
.levelup-card {
  background: var(--brand-bg);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  animation: levelUpPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.levelup-burst { font-size: 3.5rem; margin-bottom: 12px; }
.levelup-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.levelup-level {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--brand-primary);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.levelup-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--brand-text);
}
.levelup-unlock {
  font-size: 0.82rem;
  color: var(--brand-success);
  background: var(--brand-success-soft);
  border: 1px solid var(--brand-success);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 14px;
  animation: bounceIn 0.5s ease;
}

/* ── Daily Quests Widget ───────────────────────────────────────────────── */
.daily-quests-widget {
  background: var(--brand-surface);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.daily-quests-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.daily-quests-reward { font-size: 0.7rem; color: var(--brand-muted); font-weight: 600; }
.daily-quest {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--brand-border);
}
.daily-quest:last-child { border-bottom: 0; }
.daily-quest--done { opacity: 0.5; }
.daily-quest-icon { font-size: 1rem; flex-shrink: 0; }
.daily-quest-info { flex: 1; min-width: 0; }
.daily-quest-desc { font-size: 0.72rem; font-weight: 600; line-height: 1.3; }
.daily-quest-progress-wrap {
  height: 5px;
  background: var(--brand-surface-2);
  border-radius: 3px;
  margin-top: 5px;
  overflow: hidden;
}
.daily-quest-progress-bar {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.daily-quest-progress-label {
  font-size: 0.62rem;
  color: var(--brand-muted);
  margin-top: 2px;
}
.daily-quests-claim-btn { width: 100%; margin-top: 10px; padding: 9px; font-size: 0.8rem; }
.daily-quests-widget--done {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-success);
  padding: 8px;
}

/* ── Quests Reminder Widget (Phase 4) ────────────────────────────────────── */
.quests-reminder {
  background: var(--brand-surface);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  margin-bottom: 14px;
  transition: var(--transition);
}
.quests-reminder:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
}
.quests-reminder-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--brand-text-soft);
  flex-wrap: wrap;
}
.quests-reminder-icon {
  font-size: 1rem;
}
.quests-reminder-text strong {
  color: var(--brand-primary);
  font-weight: 800;
}
.quests-reminder-divider {
  color: var(--brand-border-strong);
  font-weight: 300;
}

/* ── Quests Screen (Phase 4) ─────────────────────────────────────────────── */
.quests-screen {
  max-width: 680px;
  margin: 0 auto;
}
.quests-status-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  padding: 10px 16px;
  background: var(--brand-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-border);
  font-size: 0.78rem;
  font-weight: 600;
}
.quests-status-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.quests-status-icon { font-size: 1.1rem; }
.quest-section {
  margin-bottom: 24px;
}
.quest-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.quest-section-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--brand-surface-2);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  color: var(--brand-muted);
}
.quest-cards-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quest-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--brand-surface);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.quest-card--done {
  opacity: 0.55;
  border-color: var(--brand-success);
  background: var(--brand-success-soft);
}
.quest-card--weekly {
  border-color: rgba(245, 166, 35, 0.3);
  background: rgba(245, 166, 35, 0.05);
}
.quest-card-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.quest-card-info {
  flex: 1;
  min-width: 0;
}
.quest-card-desc {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 5px;
}
.quest-card-progress-wrap {
  height: 5px;
  background: var(--brand-surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.quest-card-progress-bar {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.quest-card-progress-label {
  font-size: 0.64rem;
  color: var(--brand-muted);
  margin-top: 3px;
}
.quest-reward-row {
  font-size: 0.75rem;
  color: var(--brand-muted);
  margin-top: 8px;
  font-weight: 600;
}
.quest-claim-btn {
  width: 100%;
  margin-top: 10px;
}
.quest-claimed-banner {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-success);
  padding: 10px;
  background: var(--brand-success-soft);
  border-radius: var(--radius-md);
  margin-top: 8px;
}

/* ── Check-in Banner ───────────────────────────────────────────────────── */
.checkin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(135deg, rgba(255,48,8,0.08), rgba(255,140,0,0.06));
  border: 1.5px solid rgba(255, 48, 8, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: 1.2rem;
}
.checkin-banner-left { display: flex; align-items: center; gap: 0.75rem; }
.checkin-fire { font-size: 1.8rem; }
.checkin-banner-title { font-weight: 700; font-size: 0.9rem; }
.checkin-banner-sub { font-size: 0.76rem; opacity: 0.6; }
.checkin-banner-btn { padding: 9px 20px; font-size: 0.82rem; flex-shrink: 0; }

/* ── Streak Milestone ──────────────────────────────────────────────────── */
.streak-milestone-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
}
.streak-milestone-card {
  background: var(--brand-bg);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.streak-milestone-emoji { font-size: 3rem; margin-bottom: 0.5rem; }
.streak-milestone-label { font-size: 0.8rem; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.streak-milestone-number { font-size: 4rem; font-weight: 900; color: var(--brand-primary); }
.streak-milestone-sub { font-size: 0.95rem; margin-top: 0.3rem; font-weight: 600; }

/* ── Active Order Widget ───────────────────────────────────────────────── */
.active-order-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 160;
  background: var(--brand-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(255, 48, 8, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  max-width: 560px;
  margin: 0 auto;
  animation: aowSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.active-order-widget:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(255, 48, 8, 0.5); }
.aow-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; }
.aow-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.aow-icon { font-size: 1.8rem; }
.aow-title { font-size: 0.8rem; font-weight: 700; opacity: 0.9; }
.aow-timer { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.aow-right { flex: 1; min-width: 60px; }
.aow-progress-wrap { height: 6px; background: rgba(255, 255, 255, 0.3); border-radius: 3px; overflow: hidden; }
.aow-progress-bar { height: 100%; background: #fff; border-radius: 3px; transition: width 0.9s linear; min-width: 0; }

/* ── Shop ──────────────────────────────────────────────────────────────── */
.shop-section { margin-bottom: 28px; }
.shop-section-title {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--brand-border);
  letter-spacing: -0.02em;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.shop-item-card {
  background: var(--brand-surface);
  border: 2px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.shop-item-card:hover { border-color: var(--brand-border-strong); background: #FFF; }
.shop-item--owned { opacity: 0.55; }
.shop-item--equipped { border-color: var(--brand-primary) !important; opacity: 1; box-shadow: 0 0 0 3px rgba(255,48,8,0.08); }
.shop-item-emoji { font-size: 2rem; margin-bottom: 2px; }
.shop-item-name { font-size: 0.75rem; font-weight: 700; line-height: 1.2; }
.shop-item-desc { font-size: 0.65rem; color: var(--brand-muted); line-height: 1.3; }
.shop-item-cost { font-size: 0.72rem; font-weight: 700; margin-top: 4px; color: var(--brand-text); }

/* ── Bag Inbox ─────────────────────────────────────────────────────────── */
.bag-inbox-screen { max-width: 620px; }
.bag-inbox-header { margin-bottom: 20px; }
.bag-inbox-list { display: flex; flex-direction: column; gap: 10px; }
.bag-inbox-empty { color: var(--brand-muted); font-size: 0.85rem; padding: 32px 0; text-align: center; }
.bag-inbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-lg);
  background: var(--brand-bg);
  gap: 12px;
  transition: var(--transition);
}
.bag-inbox-item:hover { border-color: var(--brand-border-strong); }
.bag-inbox-item--great {
  border-color: var(--brand-star);
  background: #FFFEFA;
  animation: greatPulse 2.5s ease-in-out infinite;
}
.bag-inbox-item-left { display: flex; align-items: center; gap: 12px; }
.bag-inbox-icon { font-size: 1.8rem; }
.bag-inbox-name { font-size: 0.95rem; font-weight: 700; }
.bag-inbox-source { font-size: 0.72rem; color: var(--brand-muted); }

.bag-result-overlay-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.bag-result-card {
  background: var(--brand-bg);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.bag-result-card--great { border: 2px solid var(--brand-star); }
.bag-result-icon { font-size: 2.8rem; }
.bag-result-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.bag-result-mascot-name { font-size: 1rem; font-weight: 700; }
.bag-result-flavor { font-size: 0.8rem; color: var(--brand-muted); font-style: italic; }
.bag-result-duplicate { font-size: 0.8rem; color: var(--brand-muted); }
.bag-result-new { font-size: 0.8rem; color: var(--brand-success); font-weight: 700; }
.bag-result-coins { font-size: 0.95rem; font-weight: 700; color: var(--brand-primary); }
.bag-result-balance { font-size: 0.76rem; color: var(--brand-muted); }

/* ── Profile ───────────────────────────────────────────────────────────── */
.profile-screen { max-width: 860px; }
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--brand-surface);
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  border: 1.5px solid var(--brand-border);
}
.avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.04em;
}
.profile-header-info { flex: 1; }
.profile-display-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.profile-meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.level-badge {
  background: var(--brand-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
}
.foodie-score-badge {
  background: #FEF3C7;
  color: #92400E;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  transition: var(--transition);
}
.foodie-score-badge:hover {
  background: #FDE68A;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* Foodie Score Tooltip */
.foodie-tooltip {
  background: var(--brand-text);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  max-width: 300px;
  z-index: 400;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: bounceIn 0.25s ease;
  font-size: 0.8rem;
  line-height: 1.5;
}
.foodie-tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}
.foodie-tooltip-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-family: var(--font-body);
}
.foodie-tooltip-close:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.foodie-tooltip-body {
  opacity: 0.85;
}
.streak-counter {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
}
.profile-coins-row { margin-top: 4px; font-size: 0.85rem; font-weight: 600; }
.profile-xp-section { margin-bottom: 20px; }
.profile-section { margin-bottom: 28px; }
.profile-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--brand-border);
}
.featured-mascot-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--brand-surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--brand-border);
  width: fit-content;
}
.featured-mascot-emoji { font-size: 2.2rem; }
.featured-mascot-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.featured-mascot-empty { color: var(--brand-muted); font-size: 0.85rem; }

/* ── Mascot Collection ─────────────────────────────────────────────────── */
.mascot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.mascot-card {
  position: relative;
  background: var(--brand-surface);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 16px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.mascot-card:hover { background: #FFF; border-color: var(--brand-border-strong); }
.mascot-card__emoji { font-size: 2.5rem; line-height: 1; }
.mascot-card__name { font-size: 0.72rem; font-weight: 700; line-height: 1.2; }
.mascot-rarity-badge {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mascot-rarity-badge--common    { background: var(--brand-surface-2); color: var(--brand-muted); }
.mascot-rarity-badge--uncommon  { background: #dcfce7; color: #166534; }
.mascot-rarity-badge--rare      { background: #dbeafe; color: #1d4ed8; }
.mascot-rarity-badge--epic      { background: #f3e8ff; color: #7e22ce; }
.mascot-rarity-badge--legendary { background: #fef3c7; color: #92400e; }
.mascot-duplicate-count {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
}
.mascot-collection-empty { color: var(--brand-muted); font-size: 0.85rem; padding: 16px 0; }

/* ── Achievements ──────────────────────────────────────────────────────── */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.achievement-card {
  background: var(--brand-surface);
  border: 2px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  transition: var(--transition);
}
.achievement-card:hover { background: #FFF; }
.achievement-card--unlocked { border-color: var(--brand-success); background: var(--brand-success-soft); }
.achievement-card--claimed  { opacity: 0.55; }
.achievement-card--locked   { opacity: 0.4; }
.achievement-card--progress { opacity: 0.7; }
.achievement-card-icon { font-size: 1.6rem; }
.achievement-card-name { font-size: 0.73rem; font-weight: 700; line-height: 1.2; }
.achievement-card-desc { font-size: 0.6rem; color: var(--brand-muted); line-height: 1.3; margin-top: 2px; }
.achievement-lock-icon { font-size: 0.85rem; margin-top: 2px; }
.achievement-category { margin-bottom: 18px; }
.achievement-category-header {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-muted);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--brand-border);
}
.achievement-progress-bar {
  width: 100%;
  height: 5px;
  background: var(--brand-surface-2);
  border-radius: 3px;
  overflow: hidden;
  margin: 3px 0;
}
.achievement-progress-bar__fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.achievement-progress-label { font-size: 0.62rem; color: var(--brand-muted); }
.achievement-claimed-label { font-size: 0.68rem; color: var(--brand-success); font-weight: 700; }

/* Tier badges */
.tier-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tier-badge--bronze   { background: #FDE8D0; color: #92400E; }
.tier-badge--silver   { background: #E8E8F0; color: #4B5563; }
.tier-badge--gold     { background: #FEF3C7; color: #92400E; }
.tier-badge--platinum { background: #EDE9FE; color: #5B21B6; }

/* ── Order History ─────────────────────────────────────────────────────── */
.history-order-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--brand-border);
}
.history-order-row:last-child { border-bottom: 0; }
.history-order-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.history-order-rest { font-size: 0.85rem; font-weight: 700; }
.history-order-total { font-size: 0.85rem; font-weight: 700; color: var(--brand-primary); }
.history-order-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3px;
  font-size: 0.7rem;
  color: var(--brand-muted);
  font-weight: 500;
}
.history-savings-total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--brand-border-strong);
  font-size: 0.78rem;
  text-align: center;
  color: var(--brand-success);
  font-weight: 700;
}

/* ── Count Badge ───────────────────────────────────────────────────────── */
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-surface-2);
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  color: var(--brand-muted);
  margin-left: 6px;
}

/* ── Customization Modal ───────────────────────────────────────────────── */
.cust-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.cust-modal {
  background: var(--brand-bg);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: custSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cust-modal-header { padding: 20px 20px 0; position: relative; }
.cust-modal-item-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-text);
  padding-right: 30px;
}
.cust-modal-base { font-size: 0.76rem; color: var(--brand-muted); margin-top: 2px; }
.cust-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--brand-surface);
  color: var(--brand-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-family: var(--font-body);
}
.cust-close-btn:hover { background: var(--brand-surface-2); color: var(--brand-text); }
.cust-body { padding: 16px 20px; }
.cust-section { margin-bottom: 18px; }
.cust-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-muted);
  margin-bottom: 10px;
}
.cust-size-options { display: flex; gap: 8px; }
.cust-size-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 8px;
  border: 2px solid var(--brand-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  background: var(--brand-bg);
}
.cust-size-option input { display: none; }
.cust-size-option--active { border-color: var(--brand-primary); background: var(--brand-primary-soft); }
.cust-size-option:hover { border-color: var(--brand-primary); }
.cust-size-label  { font-size: 0.8rem; font-weight: 700; color: var(--brand-text); }
.cust-size-price  { font-size: 0.78rem; font-weight: 600; color: var(--brand-text); }
.cust-size-cal    { font-size: 0.66rem; color: var(--brand-muted); }
.cust-ing-toggle-hint {
  font-size: 0.65rem;
  color: var(--brand-muted);
  margin-bottom: 8px;
  font-style: italic;
}
.cust-ing-grid { display: flex; flex-direction: column; gap: 6px; }
.cust-ing-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--brand-border);
  border-radius: var(--radius-md);
  background: var(--brand-bg);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-align: left;
  font-weight: 500;
}
.cust-ing-toggle:hover { border-color: var(--brand-primary); }
.cust-ing-toggle.cust-ing--added { border-color: var(--brand-success); background: var(--brand-success-soft); }
.cust-ing-toggle.cust-ing--removed { border-color: var(--brand-muted-light); background: var(--brand-surface); opacity: 0.55; text-decoration: line-through; }
.cust-ing-emoji { font-size: 1.1rem; flex-shrink: 0; }
.cust-ing-label { flex: 1; font-weight: 600; }
.cust-ing-delta  { font-size: 0.68rem; color: var(--brand-muted); white-space: nowrap; }
.cust-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--brand-border);
  background: var(--brand-surface);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.cust-live-totals { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.cust-live-row { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--brand-muted); }
.cust-live-row--add { color: var(--brand-success); font-weight: 600; }
.cust-live-row--total {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-text);
  padding-top: 6px;
  border-top: 1px solid var(--brand-border);
}
.cust-live-row--cal { font-size: 0.72rem; color: var(--brand-muted); }
.cust-add-btn { width: 100%; }

/* ── Achievement Badge Drop ────────────────────────────────────────────── */
.phantom-badge {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100vh) scale(0.8);
  z-index: 9999;
  pointer-events: none;
}
.phantom-badge-inner {
  background: var(--brand-text);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 14px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
}
.phantom-badge-title { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-star); margin-bottom: 4px; }
.phantom-badge-slug { font-size: 0.95rem; font-weight: 700; text-transform: capitalize; }

/* ── Section headers ───────────────────────────────────────────────────── */
.section-header { margin-bottom: 20px; }
.section-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
  color: var(--brand-text);
}
.section-subtitle {
  font-size: 0.85rem;
  color: var(--brand-muted);
  font-weight: 500;
}

/* ── Restaurant List HUD ───────────────────────────────────────────────── */
.restaurant-list-hud {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--brand-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-border);
}
.rlh-level { display: flex; align-items: center; gap: 8px; }
.rlh-level-badge {
  background: var(--brand-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
}
.rlh-level-name { font-size: 0.82rem; font-weight: 700; color: var(--brand-text); }
.rlh-xp-wrap { height: 6px; background: var(--brand-surface-2); border-radius: 3px; overflow: hidden; }
.rlh-xp-bar { height: 100%; background: var(--brand-primary); border-radius: 3px; transition: width 0.6s ease; }
.rlh-xp-label { font-size: 0.68rem; color: var(--brand-muted); }

/* ── Admin Panel ─────────────────────────────────────────────────────────── */
.admin-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: #1a1a2e;
  color: #e0e0e0;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  width: 280px;
  font-size: 0.78rem;
  animation: aowSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.admin-panel-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-body);
}
.admin-panel-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.admin-panel-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-row label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
}
.admin-input-group {
  display: flex;
  gap: 4px;
  align-items: center;
}
.admin-input-group input {
  flex: 1;
  width: 60px;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.78rem;
  font-family: var(--font-body);
  outline: none;
}
.admin-input-group input:focus { border-color: var(--brand-primary); }
.admin-btn {
  padding: 5px 10px;
  border-radius: 6px;
  border: none;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
  transition: var(--transition);
}
.admin-btn--add { background: #10b981; color: #fff; }
.admin-btn--add:hover { background: #059669; }
.admin-btn--rem { background: #ef4444; color: #fff; }
.admin-btn--rem:hover { background: #dc2626; }
.admin-status { font-size: 0.7rem; font-weight: 600; text-align: center; padding: 4px; border-radius: 4px; }
.admin-status--ok  { color: #10b981; background: rgba(16,185,129,0.1); }
.admin-status--err { color: #ef4444; background: rgba(239,68,68,0.1); }
.admin-status--info { color: #60a5fa; background: rgba(96,165,250,0.1); }

/* ── Danger Zone / Delete Profile ────────────────────────────────────────── */
.profile-danger-zone {
  border: 1.5px dashed var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(255, 48, 8, 0.03);
}
.danger-zone-desc {
  font-size: 0.75rem;
  color: var(--brand-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.01em;
  box-shadow: 0 2px 10px rgba(255, 48, 8, 0.3);
}
.btn-danger:hover {
  background: #cc2000;
  box-shadow: 0 4px 16px rgba(255, 48, 8, 0.45);
  transform: translateY(-1px);
}
.btn-danger:active { transform: scale(0.97); }
.btn-danger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Loading / Error ───────────────────────────────────────────────────── */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 14px;
  color: var(--brand-muted);
  font-size: 0.88rem;
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--brand-surface-2);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.error-state {
  padding: 40px;
  text-align: center;
  color: var(--brand-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Animations ────────────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bounceIn { 0% { transform: scale(0.8); opacity: 0; } 60% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
@keyframes illusionFade { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes levelUpPop { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes custSlideIn { from { transform: translateY(40px) scale(0.95); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes aowSlideUp { from { transform: translateY(80px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes greatPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 184, 0, 0); } 50% { box-shadow: 0 0 0 6px rgba(245, 184, 0, 0.15); } }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner { padding: 8px 12px; gap: 8px; }
  .header-left-group { gap: 4px; }
  .header-logo-text { font-size: 0.9rem; }
  .header-logo-icon { font-size: 1.1rem; }
  .header-address-text { display: none; }
  .header-address-chevron { display: none; }
  .header-address { border-left: none; margin-left: 0; padding: 6px 4px; }
  .header-address-pin { font-size: 1.2rem; }
  .header-icon-btn { width: 34px; height: 34px; font-size: 0.95rem; }
  .cart-pill-btn { padding: 8px 12px; gap: 4px; font-size: 0.76rem; }
  .cart-pill-divider, .cart-pill-total { display: none; }
  .category-strip { padding: 8px 12px 4px; gap: 6px; }
  .category-pill { padding: 7px 14px; font-size: 0.72rem; }
  .page-shell { padding: 12px 10px 100px; gap: 0; }
  .cart-sidebar { display: none !important; }
  .restaurant-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .restaurant-hero { height: 120px; }
  .restaurant-card-name { font-size: 0.85rem; }
  .restaurant-card-body { padding: 10px 12px 14px; }
  .section-title { font-size: 1.3rem; }
  .menu-hero-banner { height: 140px; }
  .menu-restaurant-name { font-size: 1.3rem; }
  .menu-item-photo-wrap { width: 80px; height: 80px; }
  .receipt-panel { border-radius: var(--radius-lg); padding: 20px 16px; }
  .receipt-heading { font-size: 1.4rem; }
  .countdown-card { padding: 20px 16px; }
  .countdown-digits { font-size: 2.5rem; }
  .profile-header { flex-direction: column; gap: 12px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .achievement-grid { grid-template-columns: repeat(2, 1fr); }
  .mascot-grid { grid-template-columns: repeat(3, 1fr); }

  /* Mobile cart bar */
  .mobile-cart-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 150;
    background: var(--brand-primary);
    color: #fff;
    padding: 14px 18px;
    gap: 12px;
    box-shadow: 0 6px 28px rgba(255,48,8,0.4);
    cursor: pointer;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    transition: var(--transition);
  }
  .mobile-cart-bar:hover { background: var(--brand-primary-h); }
  .mobile-cart-bar-left { display: flex; align-items: center; gap: 10px; }
  .mobile-cart-count {
    background: rgba(255,255,255,0.25);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    min-width: 26px;
    text-align: center;
  }
  .mobile-cart-label { font-size: 0.9rem; font-weight: 700; }
  .mobile-cart-total { font-size: 0.95rem; font-weight: 700; }

  /* Cart sheet */
  .cart-sheet-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 200;
  }
  .cart-sheet-overlay.open { display: block; animation: fadeIn 0.2s ease; }
  .cart-sheet {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--brand-bg);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 201;
    max-height: 82dvh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .cart-sheet.open { transform: translateY(0); }
  .cart-sheet-handle {
    width: 38px; height: 4px;
    background: var(--brand-surface-2);
    border-radius: 2px;
    margin: 12px auto 0;
  }
  .cart-sheet-inner { padding: 14px 20px 32px; }
  .cart-sheet-title {
    font-size: 1.05rem; font-weight: 800;
    margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 1px solid var(--brand-border);
  }

  .active-order-widget { bottom: 12px; left: 12px; right: 12px; border-radius: var(--radius-lg); }
  .admin-panel { width: 260px; bottom: 12px; right: 8px; font-size: 0.72rem; }
  .admin-panel-body { padding: 10px; gap: 8px; }
  .aow-inner { padding: 10px 14px; }
  .aow-icon { font-size: 1.4rem; }
  .aow-title { font-size: 0.7rem; }
  .aow-timer { font-size: 1.1rem; }
}

@media (max-width: 400px) {
  .restaurant-grid { grid-template-columns: 1fr; }
  .mascot-grid { grid-template-columns: repeat(2, 1fr); }
  .achievement-grid { grid-template-columns: 1fr; }
}
