/* ========================================================
   MRS CRACKERS — MOBILE-FIRST ARCHITECTURAL FESTIVE WEB APP
   UI/UX Design Language matching HOTBURN STUDIOS (hotburnstudios.pages.dev)
   by Bandi Rohan
   
   - Typography: Space Grotesk (Headings), Inter (Body), JetBrains Mono (Tech/Badges)
   - Color Chemistry: Charcoal-950 (#0D0D0C), Warm-50 (#F6F4EF), Ember-500 (#C84B31), Gold (#D98A2B)
   - Architectural Grid (arch-grid-dark)
   - Role-Separated: Customer View, Driver View, Admin View
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@600;700;800&display=swap');

:root {
  /* Festive Dark Theme Palette (MRS Crackers 2026 Reference) */
  --charcoal-950: #080808;
  --charcoal-900: #141414;
  --charcoal-800: #1C1C1C;
  --charcoal-700: #262626;
  --charcoal-600: #333333;
  
  --warm-50: #FFFFFF;
  --warm-100: #F3F4F6;
  --warm-200: #E5E7EB;
  --warm-300: #D1D5DB;
  --warm-400: #9CA3AF;
  --warm-500: #6B7280;
  
  /* Primary Festive Colors: Golden Yellow (#FFB800) & Crimson Red (#DC2626) */
  --ember-400: #FFB800;
  --ember-500: #DC2626;
  --ember-600: #B91C1C;
  --gold-accent: #F59E0B;
  --gold-primary: #FFB800;
  --crimson-primary: #DC2626;
  --green-primary: #22C55E;
  
  /* Semantic Mappings */
  --bg-app: #080808;
  --bg-card: #141414;
  --bg-card-hover: #1A1A1A;
  --bg-surface: #141414;
  --bg-input: #111111;
  --border-color: #262626;
  --border-focus: #FFB800;
  
  --text-primary: #FFFFFF;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --text-gold: #FFB800;
  
  /* Typography Families */
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Shapes & Shadows */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 4px 16px rgba(255, 184, 0, 0.28);
  --shadow-crimson: 0 4px 16px rgba(220, 38, 38, 0.35);
  
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s ease;
  --bottom-nav-height: 64px;
}

/* ========================================================
   LIGHT MODE (HOTBURN STUDIOS ARCHITECTURAL LIGHT PALETTE)
   ======================================================== */
body.theme-light {
  --charcoal-950: #EDEAE2;
  --charcoal-900: #FFFFFF;
  --charcoal-800: #F5F1E8;
  --charcoal-700: #DDD8CC;
  --charcoal-600: #C5BEB0;
  
  --warm-50: #0F172A;
  --warm-100: #1E293B;
  --warm-200: #334155;
  --warm-300: #475569;
  --warm-400: #64748B;
  --warm-500: #94A3B8;

  --ember-400: #EA580C;
  --ember-500: #C2410C;
  --ember-600: #9A3412;
  --gold-primary: #C2410C;
  --gold-accent: #B45309;
  
  --bg-app: #F6F4EF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #EDEAE2;
  --bg-surface: #EDEAE2;
  --bg-input: #FFFFFF;
  --border-color: #DDD8CC;
  --border-focus: #C84B31;

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-gold: #C2410C;

  background-color: #E6E2D8 !important;
  color: #0F172A !important;
}

body.theme-light #sparkle-canvas {
  opacity: 0.2;
}

body.theme-light.arch-grid-dark {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(20, 20, 19, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 20, 19, 0.045) 1px, transparent 1px) !important;
}

body.theme-light .mobile-app-shell {
  background: #F6F4EF !important;
  border-color: #DDD8CC !important;
}

body.theme-light .role-switcher-bar {
  background: #EDEAE2 !important;
  border-bottom: 1px solid #DDD8CC !important;
}

body.theme-light .role-switcher-pills {
  background: #DDD8CC !important;
  border: 1px solid #C5BEB0 !important;
}

body.theme-light .role-pill-btn {
  color: #334155 !important;
  font-weight: 600 !important;
}

body.theme-light .role-pill-btn:hover {
  color: #0F172A !important;
}

body.theme-light .role-pill-btn.active {
  color: #FFFFFF !important;
}

body.theme-light .announcement-bar {
  background: #FEF3C7 !important;
  border-bottom: 1px solid #FCD34D !important;
  color: #78350F !important;
  font-weight: 700 !important;
}

body.theme-light .announcement-bar .ticker-badge {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  border: 1px solid #B91C1C !important;
  font-weight: 800 !important;
}

body.theme-light .app-header {
  background: rgba(246, 244, 239, 0.96) !important;
  border-bottom: 1px solid #DDD8CC !important;
}

body.theme-light .brand-logo-frame {
  background: radial-gradient(circle at 50% 45%, rgba(229, 152, 56, 0.18) 0%, rgba(255, 255, 255, 0.98) 72%) !important;
  border: 1px solid #DDD8CC !important;
}

body.theme-light .brand-title {
  color: #0F172A !important;
}

body.theme-light .brand-title .red-text,
body.theme-light .hero-title-mobile .spark-text,
body.theme-light .spark-text {
  color: #C2410C !important;
  font-weight: 800 !important;
}

body.theme-light .brand-approvers {
  color: #334155 !important;
  font-weight: 700 !important;
}

body.theme-light .header-btn {
  background: #FFFFFF !important;
  border: 1px solid #DDD8CC !important;
  color: #0F172A !important;
}

body.theme-light .header-btn:hover {
  background: #EDEAE2 !important;
  border-color: #C84B31 !important;
}

body.theme-light .header-btn.cart-btn {
  background: var(--ember-500) !important;
  border-color: var(--ember-600) !important;
  color: #FFFFFF !important;
}

body.theme-light .cart-badge {
  background: #FFFFFF !important;
  color: #C84B31 !important;
  border: 1px solid #C84B31 !important;
}

body.theme-light .search-input {
  background: #FFFFFF !important;
  border: 1px solid #DDD8CC !important;
  color: #0F172A !important;
}

body.theme-light .search-input:focus {
  border-color: #C84B31 !important;
  box-shadow: 0 0 0 2px rgba(200, 75, 49, 0.18) !important;
}

body.theme-light .welcoming-vista {
  background: radial-gradient(ellipse at 50% 10%, rgba(234, 88, 12, 0.1) 0%, #FFFFFF 80%) !important;
  border: 1px solid #DDD8CC !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .vista-sparkle-pill {
  color: #C2410C !important;
  background: #FFF7ED !important;
  border-color: #FDBA74 !important;
}

body.theme-light .vista-brand-title {
  color: #C2410C !important;
}

body.theme-light .vista-wishes-text {
  color: #0F172A !important;
}

body.theme-light .vista-subtext {
  color: #475569 !important;
}

body.theme-light .vista-trust-item {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #334155 !important;
}

body.theme-light .category-pill-card {
  background: #FFFFFF !important;
  border-color: #DDD8CC !important;
}

body.theme-light .category-pill-card.active {
  background: #FFF7ED !important;
  border-color: #EA580C !important;
}

body.theme-light .cat-pill-name {
  color: #0F172A !important;
  font-weight: 700 !important;
}

body.theme-light .category-pill-card.active .cat-pill-name {
  color: #C2410C !important;
  font-weight: 800 !important;
}

body.theme-light .product-card-amazon {
  background: #FFFFFF !important;
  border: 1px solid #DDD8CC !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .product-card-amazon:hover {
  border-color: #EA580C !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .prod-card-media {
  background: #FFFFFF !important;
  border-color: #DDD8CC !important;
}

body.theme-light .prod-title-amazon {
  color: #0F172A !important;
}

body.theme-light .prod-meta-amazon {
  color: #475569 !important;
}

body.theme-light .spec-sound {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #1E293B !important;
}

body.theme-light .prod-desc-brief {
  color: #475569 !important;
}

body.theme-light .price-save-badge {
  color: #047857 !important;
}

/* HIGH-CONTRAST DISCOUNT TAGLINE BADGE */
body.theme-light .discount-badge-sm {
  background: #C2410C !important;
  border: 1px solid #9A3412 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 2px 4px rgba(194, 65, 12, 0.25) !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) !important;
}

body.theme-light .prod-name-mobile {
  color: #0F172A !important;
  font-weight: 800 !important;
}

body.theme-light .prod-meta-mobile {
  color: #475569 !important;
  font-weight: 700 !important;
}

body.theme-light .price-main {
  color: #C2410C !important;
  font-weight: 800 !important;
}

body.theme-light .price-mrp {
  color: #64748B !important;
  font-weight: 600 !important;
}

body.theme-light .wishlist-btn-sm {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .wishlist-btn-sm:hover {
  border-color: #EF4444 !important;
  color: #EF4444 !important;
}

body.theme-light .wishlist-btn-sm.active {
  background: #FEF2F2 !important;
  border-color: #EF4444 !important;
  color: #EF4444 !important;
}

body.theme-light .btn-add-cart-amazon {
  background: #C2410C !important;
  border: 1px solid #9A3412 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(194, 65, 12, 0.25) !important;
}

body.theme-light .btn-add-cart-amazon:hover {
  background: #9A3412 !important;
  border-color: #7C2D12 !important;
  color: #FFFFFF !important;
}

body.theme-light .btn-add-cart-mobile {
  background: #F1F5F9 !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #0F172A !important;
  font-weight: 700 !important;
}

body.theme-light .btn-add-cart-mobile:hover {
  background: var(--ember-500) !important;
  border-color: var(--ember-600) !important;
  color: #FFFFFF !important;
}

body.theme-light .mobile-bottom-nav {
  background: rgba(246, 244, 239, 0.98) !important;
  border-top: 1px solid #DDD8CC !important;
}

body.theme-light .nav-tab-btn {
  color: #64748B !important;
}

body.theme-light .nav-tab-btn.active {
  color: #FFFFFF !important;
  background: #C2410C !important;
  border-color: #9A3412 !important;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.3) !important;
}

body.theme-light .account-card-box {
  background: #FFFFFF !important;
  border-color: #DDD8CC !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .auth-tabs {
  background: #EDEAE2 !important;
  border-color: #DDD8CC !important;
}

body.theme-light .auth-tab-btn {
  color: #64748B !important;
}

body.theme-light .auth-tab-btn.active {
  background: #C2410C !important;
  color: #FFFFFF !important;
}

body.theme-light .bottom-sheet {
  background: #FFFFFF !important;
  border: 1px solid #DDD8CC !important;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25) !important;
}

body.theme-light .sheet-drag-handle {
  background: #DDD8CC !important;
}

body.theme-light .sheet-header,
body.theme-light .sheet-footer {
  background: #F9F7F2 !important;
  border-color: #DDD8CC !important;
}

body.theme-light .sheet-title {
  color: #0F172A !important;
}

body.theme-light .form-input,
body.theme-light .form-select,
body.theme-light .form-textarea {
  background: #FFFFFF !important;
  border: 1px solid #DDD8CC !important;
  color: #0F172A !important;
}

body.theme-light .del-opt-card-mobile,
body.theme-light .merchant-card-mobile,
body.theme-light .driver-dashboard-card,
body.theme-light .delivery-order-card,
body.theme-light .admin-kpi-card {
  background: #FFFFFF !important;
  border-color: #DDD8CC !important;
}

body.theme-light .del-opt-card-mobile.active,
body.theme-light .merchant-card-mobile.active,
body.theme-light #cod-option-row.active {
  border-color: #C84B31 !important;
  background: rgba(200, 75, 49, 0.06) !important;
}

body.theme-light .filter-strip-btn,
body.theme-light .driver-secondary-btn {
  background: #FFFFFF !important;
  border-color: #DDD8CC !important;
  color: #0F172A !important;
}

body.theme-light .filter-strip-btn:hover,
body.theme-light .driver-secondary-btn:hover {
  border-color: #C84B31 !important;
  background: #EDEAE2 !important;
}

body.theme-light .filter-strip-btn.active {
  background: var(--ember-500) !important;
  border-color: var(--ember-600) !important;
  color: #FFFFFF !important;
}

/* STATUS BADGES & TAGLINES IN LIGHT MODE */
body.theme-light .status-badge {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border: 1.5px solid #CBD5E1 !important;
  font-weight: 800 !important;
}
body.theme-light .status-badge--amber { color: #9A3412 !important; border-color: #EA580C !important; background: #FFEDD5 !important; font-weight: 800 !important; }
body.theme-light .status-badge--blue { color: #1E40AF !important; border-color: #3B82F6 !important; background: #DBEAFE !important; font-weight: 800 !important; }
body.theme-light .status-badge--green { color: #065F46 !important; border-color: #059669 !important; background: #D1FAE5 !important; font-weight: 800 !important; }
body.theme-light .status-badge--ember { color: #991B1B !important; border-color: #DC2626 !important; background: #FEE2E2 !important; font-weight: 800 !important; }
body.theme-light .status-badge--neutral { color: #1E293B !important; border-color: #94A3B8 !important; background: #F8FAFC !important; font-weight: 800 !important; }

body.theme-light #free-shipping-progress-text {
  color: #9A3412 !important;
  font-weight: 800 !important;
}

body.theme-light #cart-total-weight {
  color: #334155 !important;
  font-weight: 600 !important;
}

body.theme-light #cart-total-savings {
  color: #047857 !important;
  font-weight: 800 !important;
}

body.theme-light #cart-subtotal-amount {
  color: #C84B31 !important;
  font-weight: 800 !important;
}

body.theme-light .admin-kpi-label,
body.theme-light .form-label,
body.theme-light .role-switcher-label {
  color: #475569 !important;
  font-weight: 700 !important;
}

body.theme-light .admin-kpi-value {
  color: #0F172A !important;
  font-weight: 800 !important;
}

body.theme-light #quick-order-tbody td,
body.theme-light #quick-order-tbody div,
body.theme-light #quick-order-tbody span {
  color: #0F172A !important;
}

body.theme-light #quick-order-tbody button {
  color: #0F172A !important;
}

body.theme-light #quick-order-tbody td:nth-child(2) {
  color: #C2410C !important;
  font-weight: 800 !important;
}

body.theme-light .cart-item-name,
body.theme-light #mobile-notifications-list div {
  color: #0F172A !important;
}

body.theme-light .toast {
  background: #FFFFFF !important;
  border-color: #C84B31 !important;
  color: #0F172A !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 12px rgba(200, 75, 49, 0.2) !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: #070707;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-font-smoothing: antialiased;
}

body.sheet-is-open {
  overflow: hidden !important;
}

/* Background Sparkle Particle Canvas */
#sparkle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* ========================================================
   HOTBURN STUDIOS SIGNATURE ARCHITECTURAL GRID OVERLAY
   ======================================================== */
.arch-grid-dark {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(246, 244, 239, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(246, 244, 239, 0.035) 1px, transparent 1px);
}

/* Responsive Web Application Shell */
.mobile-app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-height) + 24px);
}

@media (min-width: 681px) {
  .mobile-app-shell {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.45);
    border-left: 1px solid var(--charcoal-700);
    border-right: 1px solid var(--charcoal-700);
  }
  body.theme-light .mobile-app-shell {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
    border-left: 1px solid #DDD8CC;
    border-right: 1px solid #DDD8CC;
  }
}

/* ========================================================
   ROLE SWITCHER BAR (CUSTOMER | DRIVER | ADMIN)
   Allows seamless testing and instant role switching
   ======================================================== */
.role-switcher-bar {
  background: var(--charcoal-950);
  border-bottom: 1px solid var(--charcoal-700);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  position: sticky;
  top: 0;
  z-index: 102;
}

.role-switcher-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--warm-400);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.role-switcher-pills {
  display: inline-flex;
  background: var(--charcoal-800);
  border: 1px solid var(--charcoal-700);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.role-pill-btn {
  background: transparent;
  border: none;
  color: var(--warm-300);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.role-pill-btn:hover {
  color: var(--warm-50);
}

.role-pill-btn.active {
  background: var(--ember-500);
  color: var(--warm-50);
  box-shadow: 0 2px 8px rgba(200, 75, 49, 0.4);
}

.role-pill-btn.active.admin-pill {
  background: linear-gradient(135deg, #d98a2b 0%, #b45309 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(217, 138, 43, 0.4);
}

.role-pill-btn.active.driver-pill {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

/* Announcement Ticker */
.announcement-bar {
  background: linear-gradient(90deg, #1e1e1c 0%, #2a1612 50%, #1e1e1c 100%);
  border-bottom: 1px solid var(--charcoal-700);
  color: var(--warm-100);
  padding: 5px 12px;
  font-size: 0.72rem;
  font-family: var(--font-sans);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.announcement-bar .ticker-badge {
  background: var(--charcoal-950);
  color: var(--ember-400);
  border: 1px solid var(--charcoal-700);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================================
   HOTBURN STUDIOS SIGNATURE STATUS BADGES
   ======================================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1b1c1a;
  color: #f5f3ed;
  border: 1px solid #64665e;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.035em;
  line-height: 1.4;
  white-space: nowrap;
}
.status-badge--amber { color: #ffd18c; border-color: #8c6c3e; background: rgba(140, 108, 62, 0.2); }
.status-badge--blue { color: #b9defa; border-color: #54768f; background: rgba(84, 118, 143, 0.2); }
.status-badge--green { color: #bde7c9; border-color: #577a62; background: rgba(87, 122, 98, 0.2); }
.status-badge--ember { color: #fca5a5; border-color: #991b1b; background: rgba(200, 75, 49, 0.2); }
.status-badge--neutral { color: #e3e0d7; border-color: #737267; background: rgba(115, 114, 103, 0.2); }

/* Hotburn Studios Emblem Frame */
.hb-emblem-frame {
  background: radial-gradient(circle at 50% 45%, rgba(217, 138, 43, 0.22) 0%, rgba(13, 13, 12, 0.98) 72%);
  box-shadow: 0 8px 24px -6px rgba(200, 75, 49, 0.4), inset 0 0 0 1px rgba(217, 138, 43, 0.35);
  border-radius: var(--radius-md);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 12, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--charcoal-700);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-logo-frame {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 45%, rgba(229, 152, 56, 0.25) 0%, rgba(20, 20, 19, 0.98) 72%);
  border: 1px solid rgba(229, 152, 56, 0.4);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--warm-50);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-title .red-text {
  color: var(--ember-400);
}

.brand-approvers {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--warm-400);
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-btn {
  background: var(--charcoal-800);
  border: 1px solid var(--charcoal-700);
  color: var(--warm-100);
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.header-btn:hover {
  border-color: var(--ember-400);
  background: var(--charcoal-700);
}

.header-btn.cart-btn {
  background: var(--ember-500);
  border-color: var(--ember-600);
  color: var(--warm-50);
  box-shadow: 0 4px 12px rgba(200, 75, 49, 0.35);
}

.cart-badge {
  background: var(--charcoal-950);
  color: var(--ember-400);
  border: 1px solid var(--ember-400);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* Mobile Search Bar */
.search-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  background: var(--bg-input);
  border: 1px solid var(--charcoal-700);
  border-radius: var(--radius-md);
  color: var(--warm-50);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--ember-400);
  box-shadow: 0 0 0 2px rgba(229, 152, 56, 0.2);
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--warm-400);
  font-size: 0.85rem;
}

/* Main Role Views */
.role-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tab-content-area {
  flex: 1;
  padding: 14px 14px 90px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ========================================================
   WELCOMING FESTIVE VISTA (Hotburn Studios Minimalist Style)
   "MRS CRACKERS WISHES U A HAPPY DIPAWALI"
   ======================================================== */
.welcoming-vista {
  background: radial-gradient(ellipse at 50% 15%, rgba(200, 75, 49, 0.22) 0%, rgba(20, 20, 19, 0.98) 75%);
  border: 1px solid var(--charcoal-700);
  border-radius: var(--radius-lg);
  padding: 24px 18px 20px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.welcoming-vista::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 90px;
  background: radial-gradient(circle, rgba(229, 152, 56, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.vista-sparkle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ember-400);
  background: rgba(200, 75, 49, 0.12);
  border: 1px solid rgba(200, 75, 49, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.vista-heading {
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.vista-brand-title {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ember-400);
  line-height: 1.15;
}

.vista-wishes-text {
  display: block;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--warm-50);
  line-height: 1.3;
  margin-top: 3px;
}

.vista-subtext {
  font-size: 0.8rem;
  color: var(--warm-300);
  line-height: 1.5;
  max-width: 440px;
  margin: 0 auto 12px auto;
}

.vista-trust-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.vista-trust-item {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--warm-300);
  background: var(--charcoal-900);
  border: 1px solid var(--charcoal-700);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ========================================================
   CATEGORY HORIZONTAL STRIP
   ======================================================== */
.category-strip-mobile {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.category-strip-mobile::-webkit-scrollbar {
  display: none;
}

.category-pill-card {
  flex-shrink: 0;
  background: var(--charcoal-900);
  border: 1px solid var(--charcoal-700);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.category-pill-card:hover {
  border-color: var(--charcoal-600);
  background: var(--charcoal-800);
}

.category-pill-card.active {
  border-color: var(--ember-500);
  background: var(--ember-500);
  box-shadow: 0 2px 8px rgba(200, 75, 49, 0.35);
}

.cat-pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.cat-pill-name {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--warm-200);
  white-space: nowrap;
}

.category-pill-card.active .cat-pill-name {
  color: #FFFFFF;
  font-weight: 700;
}

/* ========================================================
   SINGLE-COLUMN PRODUCT STREAM (Amazon Mobile Style)
   1 Cracker per Row, Spacious, Clear & Uncluttered
   ======================================================== */
.products-grid-mobile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.product-card-amazon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card-amazon:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 75, 49, 0.45);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(200, 75, 49, 0.2);
}

/* Big Cracker Image Box */
.prod-card-media {
  width: 100%;
  height: 220px;
  background: radial-gradient(circle at 50% 50%, #202020 0%, #111111 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  padding: 10px;
}

@media (max-width: 420px) {
  .prod-card-media {
    height: 195px;
  }
}

.prod-card-media .prod-img-amazon {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card-amazon:hover .prod-img-amazon {
  transform: scale(1.05);
}

.prod-card-media .discount-badge-sm {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.prod-card-media .wishlist-btn-sm {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.discount-badge-sm {
  background: #C2410C;
  border: 1px solid #9A3412;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.wishlist-btn-sm {
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E5E7EB;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.wishlist-btn-sm:hover {
  border-color: #EF4444;
  color: #EF4444;
}

.wishlist-btn-sm.active {
  background: #FEF2F2;
  border-color: #EF4444;
  color: #EF4444;
}

/* Card Body Below Image */
.prod-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.prod-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.prod-title-amazon {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--warm-50);
  line-height: 1.3;
  flex: 1;
}

.prod-price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.price-main {
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ember-400);
  line-height: 1.1;
}

.price-mrp-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
}

.price-mrp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--warm-400);
  text-decoration: line-through;
}

.price-save-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #34D399;
}

/* Add to Cart Button Below Pic */
.btn-add-cart-amazon {
  width: 100%;
  height: 44px;
  background: var(--ember-500);
  border: 1px solid var(--ember-600);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
  box-shadow: 0 3px 10px rgba(200, 75, 49, 0.3);
}

.btn-add-cart-amazon:hover {
  background: var(--ember-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(200, 75, 49, 0.45);
}

.btn-add-cart-amazon:active {
  transform: scale(0.98);
}

.btn-add-cart-mobile:hover {
  background: var(--ember-500);
  border-color: var(--ember-600);
  color: var(--warm-50);
  box-shadow: 0 4px 10px rgba(200, 75, 49, 0.35);
}

.btn-add-cart-mobile:active {
  transform: scale(0.96);
}

/* ========================================================
   FESTIVE EMBER PRIMARY BUTTONS (Fixed Stark White Glitch)
   ======================================================== */
.hero-btn-mobile {
  background: var(--ember-500) !important;
  border: 1px solid var(--ember-600) !important;
  color: #FFFFFF !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(200, 75, 49, 0.35);
  text-decoration: none;
  white-space: nowrap;
}

.hero-btn-mobile:hover {
  background: var(--ember-600) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200, 75, 49, 0.5);
}

.hero-btn-mobile:active {
  transform: scale(0.97);
}

/* Specific button ID overrides ensuring orange theme */
#calc-budget-btn,
#quick-order-cart-btn,
.auth-sheet-box button[type="submit"],
#cart-checkout-btn,
#detail-modal-add-btn {
  background: var(--ember-500) !important;
  border: 1px solid var(--ember-600) !important;
  color: #FFFFFF !important;
}

#calc-budget-btn:hover,
#quick-order-cart-btn:hover,
.auth-sheet-box button[type="submit"]:hover,
#cart-checkout-btn:hover,
#detail-modal-add-btn:hover {
  background: var(--ember-600) !important;
}

/* Header Live Track Button */
.header-track-btn {
  background: var(--ember-500);
  border: 1px solid var(--ember-600);
  color: #FFFFFF !important;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(200, 75, 49, 0.45);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.header-track-btn:hover {
  background: var(--ember-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200, 75, 49, 0.6);
}

.track-pulse-dot {
  width: 7px;
  height: 7px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 6px #34D399;
  animation: trackPulse 1.6s infinite ease-in-out;
  display: inline-block;
}

@keyframes trackPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.4;
  }
}

/* Clickable card hover effect in Account tab */
.account-card-box.clickable-card {
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.account-card-box.clickable-card:hover {
  border-color: var(--ember-500);
  transform: translateY(-1px);
}

body.theme-light .hero-btn-mobile,
body.theme-light #calc-budget-btn,
body.theme-light #quick-order-cart-btn,
body.theme-light .header-track-btn {
  background: var(--ember-500) !important;
  border-color: var(--ember-600) !important;
  color: #FFFFFF !important;
}

/* Floating Mini Cart Bar on Home */
.floating-cart-bar {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 412px;
  background: var(--ember-500);
  border: 1px solid var(--ember-600);
  color: var(--warm-50);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(200, 75, 49, 0.4);
  z-index: 90;
  cursor: pointer;
  animation: slideUpFloat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFloat {
  0% { transform: translate(-50%, 20px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

.floating-cart-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================================================
   BOTTOM NAVIGATION BAR (Mobile Native Sticky Bar - Text Only)
   ======================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 680px;
  min-height: var(--bottom-nav-height);
  background: rgba(13, 13, 12, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--charcoal-700);
  padding: 8px 10px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 101;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 4px;
}

.nav-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  color: var(--warm-400);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: var(--warm-100);
}

.nav-tab-btn:active {
  transform: scale(0.96);
}

.nav-tab-btn.active {
  color: #FFFFFF;
  background: var(--ember-500);
  border-color: var(--ember-600);
  box-shadow: 0 2px 8px rgba(200, 75, 49, 0.35);
}

/* User Profile, Auth & Account Elements */
.user-initial-badge {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ember-500) 0%, #EA580C 100%);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(200, 75, 49, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-custom-dp {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ember-500);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.account-card-box {
  background: var(--charcoal-900);
  border: 1px solid var(--charcoal-700);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-tabs {
  display: flex;
  background: var(--charcoal-900);
  border: 1px solid var(--charcoal-700);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
  margin-bottom: 12px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--warm-400);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-fast);
}

.auth-tab-btn.active {
  background: var(--ember-500);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(200, 75, 49, 0.35);
}

/* ========================================================
   MOBILE BOTTOM SHEET SYSTEM (Slide up from bottom)
   ======================================================== */
.bottom-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.bottom-sheet-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  max-height: 88dvh;
  background: var(--charcoal-900);
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--charcoal-700);
  border-bottom: none;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.bottom-sheet-backdrop.open .bottom-sheet {
  transform: translateY(0);
}

.sheet-drag-handle {
  width: 44px;
  height: 5px;
  background: var(--charcoal-600);
  border-radius: var(--radius-full);
  margin: 10px auto 4px auto;
  flex-shrink: 0;
}

.sheet-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--charcoal-700);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--warm-50);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sheet-body {
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.sheet-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--charcoal-700);
  background: var(--charcoal-950);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.close-sheet-btn {
  background: none;
  border: none;
  color: var(--warm-400);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.close-sheet-btn:hover {
  color: var(--warm-50);
}

/* ========================================================
   FORM CONTROLS (Hotburn Studios aesthetic)
   ======================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--warm-300);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--charcoal-700);
  color: var(--warm-50);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus {
  border-color: var(--ember-400);
  box-shadow: 0 0 0 2px rgba(229, 152, 56, 0.2);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Delivery Options Cards */
.delivery-options-grid-mobile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.del-opt-card-mobile {
  background: var(--charcoal-900);
  border: 2px solid var(--charcoal-700);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
}

.del-opt-card-mobile.active {
  border-color: var(--ember-400);
  background: rgba(229, 152, 56, 0.08);
  box-shadow: 0 0 12px rgba(229, 152, 56, 0.2);
}

/* Payment Dual-Merchant Cards */
.merchants-grid-mobile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.merchant-card-mobile {
  background: var(--charcoal-900);
  border: 2px solid var(--charcoal-700);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.merchant-card-mobile.active {
  border-color: var(--ember-400);
  background: rgba(229, 152, 56, 0.08);
  box-shadow: 0 0 14px rgba(229, 152, 56, 0.25);
}

#cod-option-row.active {
  border-color: var(--ember-400) !important;
  background: rgba(229, 152, 56, 0.08) !important;
  box-shadow: 0 0 14px rgba(229, 152, 56, 0.25);
}

.qr-box-mobile {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box-mobile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ========================================================
   DRIVER VIEW STYLING (Dedicated Mobile Rider Experience)
   ======================================================== */
.driver-dashboard-card {
  background: var(--charcoal-900);
  border: 1px solid var(--charcoal-700);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.driver-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--charcoal-700);
}

.driver-avatar-frame {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--charcoal-800);
  border: 2px solid var(--ember-400);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.driver-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duty-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--charcoal-600);
  background: var(--charcoal-800);
  color: var(--warm-200);
  transition: var(--transition);
}

.duty-toggle-btn.online {
  background: rgba(16, 185, 129, 0.15);
  border-color: #059669;
  color: #34d399;
}

.delivery-order-card {
  background: var(--charcoal-900);
  border: 1px solid var(--charcoal-700);
  border-left: 3px solid var(--ember-400);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.driver-action-btn {
  background: var(--ember-500);
  border: 1px solid var(--ember-600);
  color: var(--warm-50);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  text-decoration: none;
}

.driver-action-btn:hover {
  background: var(--ember-600);
}

.driver-secondary-btn {
  background: var(--charcoal-800);
  border: 1px solid var(--charcoal-700);
  color: var(--warm-100);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.driver-secondary-btn:hover {
  border-color: var(--ember-400);
}

/* ========================================================
   ADMIN VIEW STYLING (Operational Control Hub)
   ======================================================== */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-kpi-card {
  background: var(--charcoal-900);
  border: 1px solid var(--charcoal-700);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-kpi-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--warm-400);
  text-transform: uppercase;
}

.admin-kpi-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--warm-50);
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 380px;
}

.toast {
  background: var(--charcoal-900);
  border: 1px solid var(--ember-500);
  color: var(--warm-50);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 12px rgba(200, 75, 49, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@keyframes slideToast {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Filter Strip Button */
.filter-strip-btn {
  background: var(--charcoal-800);
  border: 1px solid var(--charcoal-700);
  color: var(--warm-200);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.filter-strip-btn:hover {
  border-color: var(--ember-400);
  color: var(--warm-50);
}

.filter-strip-btn.active {
  background: var(--ember-500);
  border-color: var(--ember-600);
  color: var(--warm-50);
}



/* Product Card Category & Pack Pill */
.prod-cat-pill {
  display: inline-block;
  background: var(--charcoal-800);
  border: 1px solid var(--charcoal-700);
  color: var(--gold-primary);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.theme-light .prod-cat-pill {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #C2410C !important;
}

/* Zoomed Category Pill Icon Frame */
.cat-pill-icon-frame {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.cat-pill-img,
.cat-pill-icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.8);
}


/* ========================================================
   MRS CRACKERS — 2026 LUXURY FESTIVE DARK THEME OVERRIDES
   Exact 12-Screen Reference (media_1793804936766_332f6be4.jpg)
   - Golden Yellow (#FFB800) for Add to Cart, Active Nav Tabs, Active Chips, Ratings
   - Crimson Red (#DC2626) for Proceed, Checkout, Continue, Confirm Payment, Cart Badge
   - Deep Black (#080808) Base + Sleek Charcoal (#141414) Surfaces
   ======================================================== */

body {
  background: #080808 !important;
  color: #FFFFFF !important;
}

.mobile-app-shell {
  background: #080808 !important;
  border-color: #222222 !important;
}

.app-header {
  top: 0 !important;
  background: rgba(8, 8, 8, 0.96) !important;
  border-bottom: 1px solid #222222 !important;
  backdrop-filter: blur(14px) !important;
}

.search-container {
  background: #141414 !important;
  border: 1px solid #282828 !important;
}

.search-input {
  background: transparent !important;
  color: #FFFFFF !important;
}

.search-input::placeholder {
  color: #71717A !important;
}

/* Category Pills */
.category-pill-card {
  background: #141414 !important;
  border: 1px solid #282828 !important;
  color: #D1D5DB !important;
}

.category-pill-card:hover {
  background: #1E1E1E !important;
  border-color: #383838 !important;
}

.category-pill-card.active {
  background: #FFB800 !important;
  border-color: #FFB800 !important;
  box-shadow: 0 2px 10px rgba(255, 184, 0, 0.35) !important;
}

.category-pill-card.active .cat-pill-name {
  color: #000000 !important;
  font-weight: 800 !important;
}

/* Add to Cart Button (Bright Gold with Black Bold Text - Screen 8) */
.btn-add-cart-amazon {
  background: #FFB800 !important;
  border: 1px solid #E5A600 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(255, 184, 0, 0.28) !important;
}

.btn-add-cart-amazon:hover {
  background: #F59E0B !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 184, 0, 0.4) !important;
}

.btn-gold-action {
  background: #FFB800 !important;
  border: 1px solid #E5A600 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(255, 184, 0, 0.28) !important;
}

.btn-gold-action:hover {
  background: #F59E0B !important;
  transform: translateY(-1px);
}

/* Primary Action Buttons (Crimson Red with Pure White Text - Screen 2, 7, 9, 10, 11) */
.hero-btn-mobile {
  background: #DC2626 !important;
  border: 1px solid #B91C1C !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35) !important;
}

.hero-btn-mobile:hover {
  background: #B91C1C !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.5) !important;
}

/* Cart Badge & Counter */
.cart-badge {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

/* Bottom Navigation Bar */
.mobile-bottom-nav {
  background: rgba(8, 8, 8, 0.98) !important;
  border-top: 1px solid #222222 !important;
}

.nav-tab-btn {
  color: #9CA3AF !important;
  font-weight: 700 !important;
}

.nav-tab-btn:hover {
  color: #FFFFFF !important;
}

.nav-tab-btn.active {
  background: #FFB800 !important;
  color: #000000 !important;
  border-color: #FFB800 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(255, 184, 0, 0.35) !important;
}

/* Product Cards */
.product-card-amazon {
  background: #141414 !important;
  border: 1px solid #242424 !important;
  border-radius: 14px !important;
}

.prod-card-media {
  background: radial-gradient(circle at 50% 50%, #202020 0%, #111111 100%) !important;
  border: 1px solid #282828 !important;
}

.prod-title-amazon {
  color: #FFFFFF !important;
}

.prod-price-current {
  color: #FFB800 !important;
  font-weight: 800 !important;
}

.discount-badge-sm {
  background: #DC2626 !important;
  border: 1px solid #B91C1C !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

/* Preset Chips */
.filter-strip-btn {
  background: #141414 !important;
  border: 1px solid #282828 !important;
  color: #D1D5DB !important;
  border-radius: 8px !important;
}

.filter-strip-btn:hover {
  border-color: #383838 !important;
}

.filter-strip-btn.active {
  background: #FFB800 !important;
  border-color: #FFB800 !important;
  color: #000000 !important;
  font-weight: 800 !important;
}

/* Account Cards */
.account-card-box {
  background: #141414 !important;
  border: 1px solid #262626 !important;
  border-radius: 14px !important;
}

/* Modals & Slide-out Drawers */
.app-sheet, .app-modal-dialog {
  background: #121212 !important;
  border: 1px solid #282828 !important;
  color: #FFFFFF !important;
}

.app-sheet-header, .modal-header {
  border-bottom: 1px solid #262626 !important;
}

/* Inputs & Forms */
.form-input {
  background: #141414 !important;
  border: 1px solid #282828 !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
}

.form-input:focus {
  border-color: #FFB800 !important;
  box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.2) !important;
}

/* Status Badges */
.status-badge--green {
  background: rgba(34, 197, 94, 0.15) !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  color: #22C55E !important;
}


/* ========================================================
   RESPONSIVE HEADER & QUICK ORDER UI PERFECTION
   - Fixed 38x38 square logo, prevents vertical stretching
   - Header title & subtitle clean single-line text
   - Bottom Nav 38px uniform height across all 4 tabs
   ======================================================== */

.header-top-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
}

.brand-section {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex: 1 !important;
  cursor: pointer !important;
}

.brand-logo-frame {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1/1 !important;
  border-radius: 8px !important;
  background: #141414 !important;
  border: 1px solid #282828 !important;
  padding: 3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.brand-logo-img {
  width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.brand-title {
  font-family: var(--font-display) !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.brand-approvers {
  font-family: var(--font-sans) !important;
  font-size: 0.65rem !important;
  color: #888888 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-top: 1px !important;
}

.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

.header-track-btn {
  background: #DC2626 !important;
  border: 1px solid #B91C1C !important;
  color: #FFFFFF !important;
  font-family: var(--font-sans) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  padding: 5px 9px !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35) !important;
  white-space: nowrap !important;
}

.header-btn.cart-btn {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

/* Bottom Navigation Symmetry */
.mobile-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 680px !important;
  height: 56px !important;
  min-height: 56px !important;
  background: rgba(8, 8, 8, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  border-top: 1px solid #222222 !important;
  padding: 6px 8px !important;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 101 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 6px !important;
  box-sizing: border-box !important;
}

.nav-tab-btn {
  flex: 1 !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #888888 !important;
  font-family: var(--font-sans) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  padding: 0 4px !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.nav-tab-btn:hover {
  color: #FFFFFF !important;
}

.nav-tab-btn.active {
  background: #FFB800 !important;
  color: #000000 !important;
  border-color: #FFB800 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(255, 184, 0, 0.28) !important;
}
