/**
 * CicalengkaGO Official Compact Mobile Design System
 * High Density, Modern, Space-Efficient UI
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --gojek-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Official CicalengkaGO Red Theme Color System */
  --gojek-green: #EE2737;
  --gojek-green-dark: #C61524;
  --gojek-green-light: #FEE2E2;
  --gojek-green-gradient: linear-gradient(135deg, #FF3848, #C61524);
  --gojek-green-glow: rgba(238, 39, 55, 0.25);
  
  /* GoPay Colors */
  --gopay-blue: #0081A0;
  --gopay-blue-dark: #00647D;
  --gopay-blue-light: #E6F7FA;
  --gopay-gradient: linear-gradient(135deg, #0081A0, #00647D);
  --gopay-coins-gold: #F7A800;
  
  /* Service Brand Colors */
  --gofood-red: #EE2737;
  --gofood-gradient: linear-gradient(135deg, #EE2737, #C61524);
  
  --gomart-orange: #F06400;
  --gomart-gradient: linear-gradient(135deg, #F06400, #C95300);
  
  --gosend-green: #EE2737;
  --gosend-gradient: linear-gradient(135deg, #EE2737, #C61524);
  
  --gomed-cyan: #00AED6;
  --gomed-gradient: linear-gradient(135deg, #00AED6, #0081A0);
  
  --goshop-purple: #8B5CF6;
  --goshop-gradient: linear-gradient(135deg, #8B5CF6, #6D28D9);
  
  --goride-green: #EE2737;
  
  /* Neutrals & Surfaces */
  --gojek-charcoal: #101820;
  --gojek-dark: #0C1014;
  --gojek-gray: #64748B;
  --gojek-gray-light: #F8FAFC;
  --gojek-border: #E2E8F0;
  --gojek-card-bg: #FFFFFF;
  
  /* Compact Radii & Shadows */
  --gojek-radius-xs: 6px;
  --gojek-radius-sm: 8px;
  --gojek-radius: 12px;
  --gojek-radius-lg: 16px;
  --gojek-radius-pill: 9999px;
  
  --gojek-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --gojek-shadow-sm: 0 2px 6px rgba(16, 24, 32, 0.05);
  --gojek-shadow: 0 4px 14px rgba(16, 24, 32, 0.06);
  --gojek-shadow-lg: 0 10px 24px rgba(16, 24, 32, 0.09);
  
  --bottom-nav-height: 44px;
}

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

body {
  background-color: #F1F5F9;
  color: var(--gojek-charcoal);
  font-family: var(--gojek-font);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ensure Bootstrap Icons font rendering & alignment */
i.bi, [class^="bi-"], [class*=" bi-"] {
  display: inline-block;
  font-family: 'bootstrap-icons' !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -0.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Compact Mobile Frame Wrapper */
.mobile-app-wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #FFFFFF;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box;
}

/* =========================================================================
 * Super App Top Header & Subpage Sticky Header Styling (Spacious & Modern)
 * ========================================================================= */
.gojek-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid var(--gojek-border);
  padding: 8px 12px 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.gojek-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  width: 100%;
}

.gojek-location-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: var(--gojek-gray-light);
  padding: 3px 8px;
  border-radius: var(--gojek-radius-pill);
  border: 1px solid var(--gojek-border);
  max-width: 105px;
  height: 28px;
  transition: all 0.2s ease;
  flex-shrink: 1;
  min-width: 0;
}

.gojek-location-btn:hover {
  background: #E2E8F0;
}

.gojek-location-icon {
  color: var(--gojek-green);
  font-size: 11px;
  flex-shrink: 0;
}

.gojek-location-text {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gojek-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
}

.gojek-header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.gojek-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gojek-gray-light);
  border: 1px solid var(--gojek-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gojek-charcoal);
  font-size: 13.5px;
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gojek-icon-btn:active {
  transform: scale(0.92);
}

/* Modern Search Bar in Header */
.gojek-search-box {
  display: flex;
  align-items: center;
  background: var(--gojek-gray-light);
  border: 1px solid var(--gojek-border);
  border-radius: var(--gojek-radius-pill);
  padding: 5px 12px;
  gap: 6px;
  height: 34px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1px;
}

.gojek-search-box:hover, .gojek-search-box:focus-within {
  border-color: #EE2737;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(238, 39, 55, 0.12);
}

.gojek-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  outline: none;
  color: var(--gojek-charcoal);
}

.gojek-search-box i {
  color: var(--gojek-gray);
  font-size: 13px;
}

/* Sticky Subpage Header Bar (For Orders, Wallet, Cart, Profile, Notifications, etc.) */
.app-subpage-header {
  padding: 8px 12px !important;
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  z-index: 1020 !important;
}

.app-subpage-header h6 {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  letter-spacing: -0.3px !important;
  margin: 0 !important;
}

.app-subpage-header .badge {
  font-size: 9.5px !important;
  padding: 3px 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1px !important;
}

.app-subpage-header .btn-light {
  width: 30px !important;
  height: 30px !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* =========================================================================
 * Compact CicalengkaPay Wallet Card (Super App Style)
 * ========================================================================= */
.gopay-super-card {
  margin: 8px 10px 14px !important;
  background: linear-gradient(135deg, #EE2737 0%, #B91C1C 100%) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 12px rgba(238, 39, 55, 0.22) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  overflow: hidden !important;
}

.gopay-super-card::after {
  content: '';
  position: absolute;
  top: -18px;
  right: -18px;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.gopay-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gopay-logo-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #FFFFFF;
}

.gopay-logo-badge span.gopay-text {
  color: #FFFFFF;
  font-weight: 900;
}

.gopay-logo-badge span.pay-text {
  color: #FFE4E6;
  font-weight: 900;
}

.gopay-balance-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 1px;
}

.gopay-amount {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.gopay-coins-row {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: #FFE4E6;
  font-weight: 600;
  margin-top: 1px;
}

.gopay-coins-row i {
  color: var(--gopay-coins-gold);
}

.gopay-actions-grid {
  display: flex;
  gap: 8px;
}

.gopay-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #FFFFFF;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.gopay-action-btn:active {
  transform: scale(0.9);
}

.gopay-action-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gopay-action-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

/* =========================================================================
 * Compact 8-Icon Service Launcher Grid (4x2)
 * ========================================================================= */
.gojek-services-section {
  padding: 4px 10px 10px !important;
  margin-bottom: 2px !important;
}

.gojek-services-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px 6px !important;
}

.gojek-service-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
  text-decoration: none !important;
  color: var(--gojek-charcoal) !important;
  transition: all 0.2s ease !important;
}

.gojek-service-item:active {
  transform: scale(0.92) !important;
}

.gojek-service-squircle {
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  color: #FFFFFF !important;
  position: relative !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.2s ease !important;
}

.gojek-service-squircle.gofood {
  background: var(--gofood-gradient);
  box-shadow: 0 2px 6px rgba(238, 39, 55, 0.2);
}

.gojek-service-squircle.gosend {
  background: var(--gosend-gradient);
  box-shadow: 0 2px 6px rgba(238, 39, 55, 0.2);
}

.gojek-service-squircle.gomart {
  background: var(--gomart-gradient);
  box-shadow: 0 2px 6px rgba(240, 100, 0, 0.2);
}

.gojek-service-squircle.gomed {
  background: var(--gomed-gradient);
  box-shadow: 0 2px 6px rgba(0, 174, 214, 0.2);
}

.gojek-service-squircle.goshop {
  background: var(--goshop-gradient);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

.gojek-service-squircle.goride {
  background: var(--gosend-gradient);
  box-shadow: 0 2px 6px rgba(238, 39, 55, 0.2);
}

.gojek-service-squircle.promo {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

.gojek-service-squircle.more {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid var(--gojek-border);
  box-shadow: none;
}

.gojek-service-squircle.ayam {
  background: linear-gradient(135deg, #EF4444, #B91C1C);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.gojek-service-squircle.seblak {
  background: linear-gradient(135deg, #F97316, #C2410C);
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.2);
}

.gojek-service-squircle.bakso {
  background: linear-gradient(135deg, #F59E0B, #B45309);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

.gojek-service-squircle.sunda {
  background: linear-gradient(135deg, #10B981, #047857);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.gojek-service-squircle.martabak {
  background: linear-gradient(135deg, #EC4899, #BE185D);
  box-shadow: 0 2px 6px rgba(236, 72, 153, 0.2);
}

.gojek-service-squircle.kopi {
  background: linear-gradient(135deg, #0D9488, #115E59);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.2);
}

.gojek-service-squircle.sembako {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.gojek-service-squircle.sate {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

.gojek-service-label {
  font-size: 8.5px !important;
  font-weight: 700 !important;
  color: var(--gojek-charcoal) !important;
  text-align: center !important;
  letter-spacing: -0.15px !important;
  line-height: 1.1 !important;
}

/* =========================================================================
 * Compact Promo Carousel Section
 * ========================================================================= */
.gojek-promo-section {
  padding: 4px 10px 10px !important;
  margin-bottom: 2px !important;
}

.gojek-carousel-container {
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: var(--gojek-shadow-xs) !important;
  position: relative !important;
}

.gojek-banner-img,
.gojek-carousel-container img {
  width: 100% !important;
  height: 95px !important;
  object-fit: cover !important;
  border-radius: 14px !important;
}

/* Compact Section Titles */
.gojek-section-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 10px 4px !important;
}

.gojek-section-title {
  font-size: 12px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  color: var(--gojek-charcoal) !important;
  letter-spacing: -0.2px !important;
}

.gojek-section-subtitle {
  font-size: 9px !important;
  color: var(--gojek-gray) !important;
  margin-top: 1px !important;
}

.gojek-section-link {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--gojek-green) !important;
  text-decoration: none !important;
}

/* Compact Horizontal Store Scroll (GoFood Style) */
.gofood-stores-scroll {
  display: flex !important;
  gap: 10px !important;
  padding: 0 10px 10px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

.gofood-stores-scroll::-webkit-scrollbar {
  display: none !important;
}

.gofood-store-card {
  min-width: 135px !important;
  max-width: 135px !important;
  background: #FFFFFF !important;
  border-radius: 14px !important;
  border: 1px solid #E2E8F0 !important;
  overflow: hidden !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  text-decoration: none !important;
  color: inherit !important;
  display: block !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.gofood-store-card:active {
  transform: scale(0.98) !important;
}

.gofood-store-img-box {
  position: relative !important;
  width: 100% !important;
  height: 74px !important;
}

.gofood-store-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.gofood-open-tag {
  position: absolute !important;
  top: 5px !important;
  left: 5px !important;
  background: #10B981 !important;
  color: #FFFFFF !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  padding: 2px 5px !important;
  border-radius: 5px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.gofood-closed-tag {
  position: absolute !important;
  top: 5px !important;
  left: 5px !important;
  background: #E02424 !important;
  color: #FFFFFF !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  padding: 2px 5px !important;
  border-radius: 5px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.gofood-store-body {
  padding: 8px 9px 9px !important;
}

.gofood-store-name {
  font-size: 11px !important;
  font-weight: 700 !important;
  margin-bottom: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #0F172A !important;
}

.gofood-store-meta {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 9px !important;
  color: #64748B !important;
  font-weight: 600 !important;
}

.gofood-rating {
  color: #F59E0B !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
}

/* Compact GoFood Product Cards Grid */
.gofood-products-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  padding: 0 10px 16px !important;
}

.gofood-product-card {
  background: #FFFFFF !important;
  border-radius: 14px !important;
  border: 1px solid #E2E8F0 !important;
  overflow: hidden !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.gofood-product-card:active {
  transform: scale(0.98) !important;
}

.gofood-prod-img {
  width: 100% !important;
  height: 85px !important;
  object-fit: cover !important;
  background: #F8FAFC !important;
}

.gofood-discount-tag {
  position: absolute !important;
  top: 5px !important;
  left: 5px !important;
  background: linear-gradient(135deg, #EE2737, #C61524) !important;
  color: #FFFFFF !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  padding: 2px 5px !important;
  border-radius: 5px !important;
  box-shadow: 0 2px 4px rgba(238, 39, 55, 0.25) !important;
  letter-spacing: 0.2px !important;
}

.gofood-prod-body {
  padding: 8px 9px 9px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

.gofood-prod-store {
  font-size: 9px !important;
  font-weight: 600 !important;
  color: #64748B !important;
  margin-bottom: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.gofood-prod-name {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  margin-bottom: 4px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 28px !important;
  line-height: 1.3 !important;
}

.gofood-price-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: auto !important;
  padding-top: 2px !important;
}

.gofood-price {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  line-height: 1.2 !important;
}

.gofood-btn-add {
  width: 25px !important;
  height: 25px !important;
  border-radius: 50% !important;
  background: #EE2737 !important;
  color: #FFFFFF !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 5px rgba(238, 39, 55, 0.3) !important;
  transition: transform 0.15s ease !important;
  flex-shrink: 0 !important;
}

.gofood-btn-add:active {
  transform: scale(0.88) !important;
}

.gofood-btn-add-block {
  width: 100% !important;
  height: 28px !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #EE2737, #C61524) !important;
  color: #FFFFFF !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(238, 39, 55, 0.25) !important;
  transition: transform 0.15s ease, background 0.2s ease !important;
  margin-top: 6px !important;
  text-decoration: none !important;
}

.gofood-btn-add-block:active {
  transform: scale(0.96) !important;
}

/* =========================================================================
 * Compact 5-Tab Bottom Navigation Bar
 * ========================================================================= */
.gojek-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 480px !important;
  height: calc(44px + env(safe-area-inset-bottom, 0px)) !important;
  min-height: calc(44px + env(safe-area-inset-bottom, 0px)) !important;
  background: #FFFFFF !important;
  border-top: 1px solid #E2E8F0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  z-index: 1040 !important;
  padding: 0 2px !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
}

.gojek-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  color: #94A3B8 !important;
  text-decoration: none !important;
  font-size: 8.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  gap: 2px !important;
  flex: 1 !important;
  min-width: 0 !important;
  height: 40px !important;
  max-height: 40px !important;
  transition: color 0.15s ease !important;
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gojek-nav-item i {
  font-size: 16px !important;
  line-height: 1 !important;
  height: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gojek-nav-item span {
  font-size: 8.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  display: block !important;
  text-align: center !important;
  white-space: nowrap !important;
  letter-spacing: -0.15px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gojek-nav-item.active {
  color: #EE2737 !important;
}

.gojek-nav-item.active span {
  font-weight: 700 !important;
  color: #EE2737 !important;
}

.gojek-nav-item.active i {
  color: #EE2737 !important;
}

/* Compact Primary Action Buttons */
.btn-gojek-green,
.btn-cicalengka-red {
  background: #EE2737 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: var(--gojek-radius-pill) !important;
  padding: 9px 16px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  font-family: inherit;
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(238, 39, 55, 0.25) !important;
  transition: all 0.2s ease;
}

.btn-gojek-green:hover,
.btn-cicalengka-red:hover {
  background: #C61524 !important;
  color: #FFFFFF !important;
}

.btn-gojek-green:active,
.btn-cicalengka-red:active {
  transform: scale(0.98);
}

/* =========================================================================
 * Super App Master Card Design System (Ultra-Compact + Aesthetic Breathing Room)
 * ========================================================================= */
.card,
.merchant-card,
.driver-card,
.order-card-item,
.payment-option,
.gofood-store-card,
.gofood-product-card,
.gopay-super-card,
[class*="shadow-2xs"],
[class*="shadow-xs"],
div[style*="border-radius: 16px"],
div[style*="border-radius: 18px"],
div[style*="border-radius: 14px"],
div[style*="border-radius: 12px"] {
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.card, 
.merchant-card, 
.driver-card {
  border-radius: 16px !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  background-color: #FFFFFF;
}

.card-body,
.merchant-card-body,
.driver-card-body {
  padding: 14px 16px !important;
}

.card-header {
  padding: 12px 16px !important;
  background: transparent !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

.card-footer {
  padding: 12px 16px !important;
  background: transparent !important;
  border-top: 1px solid #E2E8F0 !important;
}

.gofood-store-body {
  padding: 12px 14px 14px !important;
}

.gofood-prod-body {
  padding: 12px 14px 14px !important;
}

.order-card-item {
  padding: 14px 16px !important;
  border-radius: 16px !important;
  border: 1px solid #E2E8F0 !important;
}

/* Enforce min-width 0 on card flex rows to prevent text bleeding outside card borders */
.card > .d-flex,
.merchant-card > .d-flex,
.driver-card > .d-flex,
.order-card-item,
div[style*="border-radius: 16px"] > .d-flex {
  min-width: 0 !important;
}

/* =========================================================================
 * Missing Utility Classes — Shadows, Hover Effects, Typography
 * ========================================================================= */

/* Shadow utilities tidak ada di Bootstrap 5 defaults */
.shadow-2xs { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important; }
.shadow-xs   { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important; }

/* Hover card effect — merah subtle untuk vendor & customer */
.hover-red-card {
  transition: box-shadow 0.18s ease, transform 0.18s ease !important;
}
.hover-red-card:active {
  transform: scale(0.985) !important;
  box-shadow: 0 2px 10px rgba(238, 39, 55, 0.12) !important;
}

/* Font weight extrabold (800+) */
.fw-extrabold { font-weight: 800 !important; }
.fw-black     { font-weight: 900 !important; }

/* Custom Fractional Spacing Utilities for Ultra-Precise Card Padding */
/* Padding */
.p-1\.5, .p-1.5 { padding: 6px !important; }
.p-2\.5, .p-2.5 { padding: 10px 12px !important; }
.p-3\.5, .p-3.5 { padding: 14px 16px !important; }
.px-1\.5, .px-1.5 { padding-left: 6px !important; padding-right: 6px !important; }
.px-2\.5, .px-2.5 { padding-left: 10px !important; padding-right: 10px !important; }
.px-3\.5, .px-3.5 { padding-left: 14px !important; padding-right: 14px !important; }
.py-0\.5, .py-0.5 { padding-top: 2px !important; padding-bottom: 2px !important; }
.py-1\.5, .py-1.5 { padding-top: 6px !important; padding-bottom: 6px !important; }
.py-2\.5, .py-2.5 { padding-top: 10px !important; padding-bottom: 10px !important; }
.py-3\.5, .py-3.5 { padding-top: 14px !important; padding-bottom: 14px !important; }

/* Margin */
.mb-0\.5, .mb-0.5 { margin-bottom: 2px !important; }
.mb-1\.5, .mb-1.5 { margin-bottom: 6px !important; }
.mb-2\.5, .mb-2.5 { margin-bottom: 10px !important; }
.mb-3\.5, .mb-3.5 { margin-bottom: 14px !important; }
.mt-0\.5, .mt-0.5 { margin-top: 2px !important; }
.mt-1\.5, .mt-1.5 { margin-top: 6px !important; }
.mt-2\.5, .mt-2.5 { margin-top: 10px !important; }
.mt-3\.5, .mt-3.5 { margin-top: 14px !important; }
.me-0\.5, .me-0.5 { margin-right: 2px !important; }
.ms-0\.5, .ms-0.5 { margin-left: 2px !important; }

/* Row Gutter */
.g-1\.5, .g-1.5 { --bs-gutter-x: 6px; --bs-gutter-y: 6px; }
.g-2\.5, .g-2.5 { --bs-gutter-x: 10px; --bs-gutter-y: 10px; }
.g-3\.5, .g-3.5 { --bs-gutter-x: 14px; --bs-gutter-y: 14px; }

/* Gap for flex/grid containers */
.gap-0\.5, .gap-0.5 { gap: 2px !important; }
.gap-1\.5, .gap-1.5 { gap: 6px !important; }
.gap-2\.5, .gap-2.5 { gap: 10px !important; }
.gap-3\.5, .gap-3.5 { gap: 14px !important; }

/* Compact Aesthetic Input Controls Inside Cards */
.form-control,
.form-select {
  border-radius: 10px !important;
  border-color: #E2E8F0 !important;
  font-size: 11.5px !important;
  padding: 8px 12px !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #EE2737 !important;
  box-shadow: 0 0 0 3px rgba(238, 39, 55, 0.12) !important;
}

/* =========================================================================
 * Compact Floating Cart Sticky Pill & Cart Badges
 * ========================================================================= */
.floating-cart-pill {
  position: fixed !important;
  bottom: calc(52px + env(safe-area-inset-bottom, 0px)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 24px) !important;
  max-width: 440px !important;
  background: #0F172A !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  z-index: 1030 !important;
  border-radius: 9999px !important;
  padding: 5px 12px !important;
  height: 38px !important;
  display: flex;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box !important;
}

.floating-cart-pill.d-none {
  display: none !important;
}

.floating-cart-pill:hover,
.floating-cart-pill:focus,
.floating-cart-pill:active {
  color: #FFFFFF !important;
  text-decoration: none !important;
  transform: translateX(-50%) scale(0.99);
}

.floating-cart-left {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
}

.cart-qty-badge {
  background: linear-gradient(135deg, #EE2737, #C61524) !important;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 9px !important;
  padding: 2px 7px !important;
  border-radius: 9999px !important;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 5px rgba(238, 39, 55, 0.35);
  letter-spacing: 0.2px;
}

.floating-cart-price {
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 11.5px !important;
  letter-spacing: -0.2px;
}

.floating-cart-right {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 10px !important;
  text-decoration: none !important;
}

.floating-cart-right span {
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 10px !important;
}

.floating-cart-right i {
  color: #EE2737 !important;
  font-size: 12px !important;
  background: #FFFFFF;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Compact Delivery Stepper Component */
.stepper-container {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 2px 0 2px 2px;
}

.step-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  padding-bottom: 14px;
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: #E2E8F0;
}

.step-item.completed:not(:last-child)::before {
  background: #EE2737;
}

.step-dot {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  background: #F1F5F9;
  border: 2px solid #CBD5E1;
  color: #64748B;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  z-index: 2;
  transition: all 0.2s ease;
}

.step-dot i {
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item.completed .step-dot {
  background: #EE2737 !important;
  border-color: #EE2737 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(238, 39, 55, 0.3);
}

.step-item.active .step-dot {
  background: #FFFFFF !important;
  border-color: #EE2737 !important;
  color: #EE2737 !important;
  box-shadow: 0 0 0 3px rgba(238, 39, 55, 0.15);
}

/* =========================================================================
 * Compact Driver PWA Specific Styles
 * ========================================================================= */
.mobile-header,
.driver-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: #101820;
  color: #FFFFFF;
  padding: 8px 12px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.driver-avatar-box {
  position: relative;
  display: inline-block;
}

.driver-avatar-box .driver-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #101820;
}

.driver-status-dot.online {
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.driver-status-dot.offline {
  background-color: #ef4444;
}

.mobile-bottom-nav,
.driver-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 480px !important;
  height: calc(44px + env(safe-area-inset-bottom, 0px)) !important;
  min-height: calc(44px + env(safe-area-inset-bottom, 0px)) !important;
  background: #FFFFFF !important;
  border-top: 1px solid #E2E8F0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  z-index: 1040 !important;
  padding: 0 2px !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
}

.mobile-bottom-nav .nav-tab-item,
.driver-bottom-nav .nav-tab-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-size: 8.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  gap: 2px !important;
  flex: 1 !important;
  min-width: 0 !important;
  height: 40px !important;
  max-height: 40px !important;
  transition: color 0.15s ease !important;
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mobile-bottom-nav .nav-tab-item i,
.driver-bottom-nav .nav-tab-item i {
  font-size: 16px !important;
  line-height: 1 !important;
  height: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mobile-bottom-nav .nav-tab-item span,
.driver-bottom-nav .nav-tab-item span {
  font-size: 8.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  display: block !important;
  text-align: center !important;
  white-space: nowrap !important;
  letter-spacing: -0.15px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mobile-bottom-nav .nav-tab-item:hover,
.mobile-bottom-nav .nav-tab-item.active,
.driver-bottom-nav .nav-tab-item.active {
  color: #EE2737 !important;
}

.mobile-bottom-nav .nav-tab-item.active span,
.driver-bottom-nav .nav-tab-item.active span {
  font-weight: 700 !important;
  color: #EE2737 !important;
}

.mobile-bottom-nav .nav-tab-item.active i,
.driver-bottom-nav .nav-tab-item.active i {
  color: #EE2737 !important;
}

/* Radar Pulse Animations */
@keyframes driver-radar-pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

.driver-marker-pulse-wrapper {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.driver-marker-pulse-wrapper .pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(238, 39, 55, 0.4);
  animation: driver-radar-pulse 2s infinite ease-out;
  pointer-events: none;
}

.driver-marker-pulse-wrapper .pulse-ring-delayed {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(238, 39, 55, 0.25);
  animation: driver-radar-pulse 2s infinite ease-out;
  animation-delay: 0.7s;
  pointer-events: none;
}

.driver-marker-pulse-wrapper .marker-core {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EE2737, #C61524);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(238, 39, 55, 0.4);
  font-size: 14px;
}

/* Custom Pin Styling for Map */
.custom-pin {
  transition: transform 0.2s ease;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  padding: 4px 6px !important;
  box-shadow: 0 4px 16px rgba(16, 24, 32, 0.15) !important;
  font-family: inherit !important;
  min-width: 140px !important;
  max-width: 220px !important;
  width: auto !important;
}

.leaflet-popup-content {
  margin: 6px 8px !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  width: auto !important;
  min-width: 120px !important;
  word-break: normal !important;
  white-space: normal !important;
}

/* Compact Driver Switch iOS Style */
.driver-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.driver-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.driver-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .25s ease;
  border-radius: 24px;
}

.driver-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s ease;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

input:checked + .driver-toggle-slider {
  background-color: #10b981;
}

input:checked + .driver-toggle-slider:before {
  transform: translateX(20px);
}

.radar-scan-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: radial-gradient(circle, rgba(238, 39, 55, 0.15) 0%, rgba(238, 39, 55, 0) 70%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-scan-box::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(238, 39, 55, 0.4);
  animation: driver-radar-pulse 2s infinite linear;
}

.radar-scan-box::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  border: 1px dashed rgba(238, 39, 55, 0.6);
  animation: spin 6s infinite linear;
}

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

/* =========================================================================
 * Compact In-App Chat Design System
 * ========================================================================= */
.ccg-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ccg-chat-modal.show {
  opacity: 1;
  visibility: visible;
}

.ccg-chat-card {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  height: 85vh;
  max-height: 650px;
  background: #F8FAFC;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.ccg-chat-modal.show .ccg-chat-card {
  transform: translateY(0);
}

.ccg-chat-header {
  background: #FFFFFF;
  padding: 8px 12px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  z-index: 10;
}

.ccg-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #EE2737;
  flex-shrink: 0;
}

.ccg-chat-body {
  flex: 1;
  padding: 10px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #F8FAFC;
  scroll-behavior: smooth;
}

.ccg-chat-row {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  width: fit-content;
}

.ccg-chat-row.outgoing {
  align-self: flex-end;
  align-items: flex-end;
}

.ccg-chat-row.incoming {
  align-self: flex-start;
  align-items: flex-start;
}

.ccg-chat-bubble {
  padding: 5px 9px;
  font-size: 11.5px;
  line-height: 1.35;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  min-width: 55px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
}

.ccg-chat-row.outgoing .ccg-chat-bubble {
  background: linear-gradient(135deg, #EE2737 0%, #DC2626 100%);
  color: #FFFFFF;
  border-radius: 12px 12px 2px 12px;
}

.ccg-chat-row.incoming .ccg-chat-bubble {
  background: #FFFFFF;
  color: #1E293B;
  border: 1px solid #E2E8F0;
  border-radius: 12px 12px 12px 2px;
}

.ccg-chat-time {
  font-size: 8.5px;
  opacity: 0.8;
  white-space: nowrap;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.ccg-chat-row.outgoing .ccg-chat-time {
  color: rgba(255, 255, 255, 0.85);
}

.ccg-chat-row.incoming .ccg-chat-time {
  color: #94A3B8;
}

.ccg-chat-quick-chips {
  padding: 5px 10px;
  background: #FFFFFF;
  border-top: 1px solid #F1F5F9;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.ccg-chat-quick-chips::-webkit-scrollbar {
  display: none;
}

.ccg-chip-btn {
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.ccg-chip-btn:active {
  transform: scale(0.95);
  background: #EE2737;
  color: #FFFFFF;
  border-color: #EE2737;
}

.ccg-chat-input-bar {
  background: #FFFFFF;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ccg-chat-input {
  flex: 1;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-family: inherit;
  outline: none;
  background: #F8FAFC;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ccg-chat-input:focus {
  border-color: #EE2737;
  background: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(238, 39, 55, 0.15);
}

.ccg-chat-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #EE2737;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(238, 39, 55, 0.25);
  transition: transform 0.15s ease;
}

.ccg-chat-send-btn:active {
  transform: scale(0.9);
}

.ccg-chat-send-btn:disabled {
  background: #CBD5E1;
  box-shadow: none;
  cursor: not-allowed;
}

.ccg-unread-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: #EF4444;
  border: 1.5px solid #FFFFFF;
  border-radius: 50%;
}

/* ============================================================
   MERCHANT / STORE MOBILE PWA (GOBIZ STYLE) DESIGN SYSTEM
   ============================================================ */
:root {
  --merchant-navy: #0f172a;
  --merchant-slate: #1e293b;
  --merchant-card-border: #e2e8f0;
  --merchant-green: #00aa13;
  --merchant-orange: #ff6b00;
  --merchant-red: #ee2737;
}

.merchant-pwa-body {
  background-color: #0b1320;
  color: #1e293b;
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.merchant-app-wrapper {
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box;
}

/* Merchant Header */
.merchant-top-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 2px solid var(--merchant-red);
  padding: 8px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.merchant-avatar-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--merchant-red);
  background-color: #ffffff;
}

.merchant-store-status-pill {
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.merchant-store-status-pill.open {
  background-color: rgba(0, 200, 23, 0.15);
  color: #00c817;
  border: 1px solid rgba(0, 200, 23, 0.3);
}

.merchant-store-status-pill.closed {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Status Hero Switch Banner */
.merchant-hero-status {
  background: #ffffff;
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid var(--merchant-card-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.merchant-status-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.merchant-status-indicator.online {
  background-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulseGreen 2s infinite;
}

.merchant-status-indicator.offline {
  background-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Merchant Quick Stat Cards */
.merchant-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.merchant-stat-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid var(--merchant-card-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.merchant-stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 4px;
}

.merchant-stat-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.merchant-stat-lbl {
  font-size: 9.5px;
  font-weight: 600;
  color: #64748b;
  margin-top: 1px;
}

/* Horizontal Scroll Tabs */
.merchant-tab-scroll {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 2px 0 8px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.merchant-tab-scroll::-webkit-scrollbar {
  display: none;
}

.merchant-tab-chip {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 18px;
  font-size: 10.5px;
  font-weight: 700;
  background-color: #ffffff;
  color: #64748b;
  border: 1px solid var(--merchant-card-border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.merchant-tab-chip.active {
  background-color: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.merchant-tab-chip .badge-count {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 8.5px;
  padding: 1px 5px;
  border-radius: 8px;
}

/* Merchant Order Cards */
.merchant-order-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--merchant-card-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  padding: 10px;
  margin-bottom: 8px;
  transition: transform 0.15s ease;
}

.merchant-order-card:active {
  transform: scale(0.99);
}

.merchant-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.merchant-order-items {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 6px 8px;
  margin-bottom: 8px;
  font-size: 10.5px;
}

.merchant-order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}

.merchant-order-item-row:not(:last-child) {
  border-bottom: 1px dashed #e2e8f0;
}

.merchant-notes-box {
  background-color: #fffbeb;
  border: 1px dashed #fde68a;
  color: #92400e;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 9.5px;
  margin-bottom: 8px;
}

.merchant-btn-action {
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.merchant-btn-action:active {
  transform: scale(0.98);
}

/* Merchant Product List Item */
.merchant-product-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--merchant-card-border);
  padding: 8px;
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.merchant-product-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.merchant-product-info {
  flex-grow: 1;
  min-width: 0;
}

.merchant-fab {
  position: fixed !important;
  bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
  right: calc(50% - 220px) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #EE2737 0%, #C61524 100%) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  box-shadow: 0 3px 10px rgba(238, 39, 55, 0.35) !important;
  z-index: 1025 !important;
  text-decoration: none !important;
  transition: transform 0.2s ease !important;
}

@media (max-width: 480px) {
  .merchant-fab {
    right: 12px !important;
  }
}

.merchant-fab:active {
  transform: scale(0.92) !important;
}

/* Merchant Bottom Navigation Bar */
.merchant-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 480px !important;
  height: calc(44px + env(safe-area-inset-bottom, 0px)) !important;
  min-height: calc(44px + env(safe-area-inset-bottom, 0px)) !important;
  background-color: #ffffff !important;
  border-top: 1px solid var(--merchant-card-border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  z-index: 1040 !important;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.04) !important;
  padding: 0 2px !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  box-sizing: border-box !important;
}

.merchant-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
  min-width: 0 !important;
  height: 40px !important;
  max-height: 40px !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-size: 8.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  position: relative !important;
  transition: color 0.15s ease !important;
  gap: 2px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.merchant-nav-item i {
  font-size: 16px !important;
  line-height: 1 !important;
  height: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.merchant-nav-item span {
  font-size: 8.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  display: block !important;
  text-align: center !important;
  white-space: nowrap !important;
  letter-spacing: -0.15px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.merchant-nav-item.active {
  color: var(--merchant-red) !important;
}

.merchant-nav-item.active span {
  font-weight: 700 !important;
  color: var(--merchant-red) !important;
}

.merchant-nav-item.active i {
  color: var(--merchant-red) !important;
}

.merchant-nav-item .nav-badge {
  position: absolute !important;
  top: 2px !important;
  right: calc(50% - 14px) !important;
  background-color: #ef4444 !important;
  color: #ffffff !important;
  font-size: 7.5px !important;
  font-weight: 800 !important;
  padding: 1px 3px !important;
  line-height: 1 !important;
  border-radius: 6px !important;
  border: 1px solid #ffffff !important;
}

/* =========================================================================
 * Mobile Compact Alert Boxes & SweetAlert2 Custom Styling
 * ========================================================================= */
.swal2-popup {
  width: 90% !important;
  max-width: 330px !important;
  border-radius: 18px !important;
  padding: 16px 18px !important;
  font-family: inherit !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25) !important;
}

.swal2-icon {
  width: 46px !important;
  height: 46px !important;
  margin: 8px auto 12px !important;
  transform: scale(0.85);
}

.swal2-title {
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px !important;
  color: #0F172A !important;
  padding: 0 !important;
  margin-bottom: 6px !important;
}

.swal2-html-container {
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  color: #475569 !important;
  margin: 4px 0 14px !important;
}

.swal2-actions {
  gap: 8px !important;
  margin-top: 10px !important;
  width: 100% !important;
}

.swal2-confirm,
.swal2-cancel {
  border-radius: 9999px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  padding: 8px 18px !important;
  box-shadow: none !important;
}

.swal2-confirm {
  background: linear-gradient(135deg, #EE2737, #C61524) !important;
}

/* Bootstrap Alert Component - Mobile Compact Styling */
.alert {
  border-radius: 14px !important;
  padding: 10px 14px !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  margin-bottom: 12px !important;
  border-width: 1px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

.alert .btn-close {
  padding: 10px !important;
  font-size: 10px !important;
}

/* =========================================================================
 * Universal Card Content Overflow Protection & Tight Mobile Bounds
 * ========================================================================= */
.card,
.gopay-super-card,
.order-card-item,
.gofood-product-card,
.gofood-store-card,
div[style*="border-radius: 16px"],
div[style*="border-radius: 18px"],
div[style*="border-radius: 14px"] {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.card *,
.gopay-super-card *,
.order-card-item *,
.gofood-product-card *,
.gofood-store-card * {
  max-width: 100% !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.card .d-flex,
.gopay-super-card .d-flex,
.order-card-item .d-flex,
.gofood-product-card .d-flex,
.gofood-store-card .d-flex,
div[style*="border-radius: 16px"] .d-flex,
div[style*="border-radius: 18px"] .d-flex {
  min-width: 0 !important;
}

.gofood-product-card .fw-extrabold,
.gofood-product-card .fw-bold,
.order-card-item .fw-extrabold,
.order-card-item .fw-bold {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* =========================================================================
 * Payment Method Selection Cards (Checkout & Parcel)
 * Spaced out, clean padding, no dempet/sticking borders
 * ========================================================================= */
.payment-option-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 4px !important;
}

.payment-option {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 14px !important;
  margin-bottom: 0 !important;
  border-radius: 12px !important;
  border: 1.5px solid #E2E8F0 !important;
  background-color: #FFFFFF !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.payment-option:hover {
  border-color: #CBD5E1 !important;
  background-color: #F8FAFC !important;
}

.payment-option.active,
.payment-option.selected,
.payment-option.border-danger {
  border-color: #EE2737 !important;
  background-color: #FFF5F5 !important;
  box-shadow: 0 2px 8px rgba(238, 39, 55, 0.08) !important;
}

.payment-option input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: #EE2737 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  margin: 0 10px 0 0 !important;
}

.payment-option .badge {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
}

/* =========================================================================
 * Vendor Dashboard — Compact Content Area Overrides
 * ========================================================================= */

/* Main padding for vendor/delivery content wrapper */
.merchant-app-wrapper > main.flex-grow-1.p-3 {
  padding: 14px 12px !important;
}

/* Vendor Hero Status Switch Card */
.merchant-hero-switch-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Stat Grid Cards — Compact Number + Label */
.merchant-stat-grid .p-3\.5,
.row.g-2\.5 .col-6 > [class*="p-3"] {
  padding: 10px 12px !important;
}

.merchant-stat-grid .fw-bold,
.row.g-2\.5 .col-6 .fw-bold[style*="font-size: 16px"] {
  font-size: 14px !important;
  letter-spacing: -0.3px;
}

/* Order Status Pipeline Minibars */
.merchant-pipeline-bar {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
  margin-bottom: 10px;
}

.merchant-pipeline-bar .col-3 > div {
  border-radius: 10px !important;
  padding: 6px 4px !important;
}

.merchant-pipeline-bar .fw-bold.fs-6 {
  font-size: 15px !important;
  font-weight: 800 !important;
}

.merchant-pipeline-bar div[style*="font-size: 9.5px"] {
  font-size: 8.5px !important;
}

/* Quick Action Strip Buttons */
.merchant-quick-action-strip .btn {
  font-size: 11px !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
}

/* Merchant Order Card — Compact Inner Spacing */
.merchant-order-card {
  padding: 10px 12px !important;
  border-radius: 14px !important;
  margin-bottom: 8px !important;
}

.merchant-order-header {
  padding-bottom: 7px !important;
  margin-bottom: 8px !important;
}

.merchant-order-items {
  padding: 6px 10px !important;
  border-radius: 10px !important;
  margin-bottom: 7px !important;
  font-size: 10.5px !important;
}

.merchant-btn-action {
  padding: 8px 12px !important;
  border-radius: 12px !important;
  font-size: 11px !important;
}

/* Customer Reviews Section */
.merchant-review-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #E2E8F0;
  margin-bottom: 6px;
}

/* Prevent overflow on product name + price row inside product cards */
.merchant-product-card {
  padding: 10px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.merchant-product-card .merchant-product-info {
  min-width: 0;
  overflow: hidden;
}

.merchant-product-card h6 {
  font-size: 12.5px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 70px) !important;
}

.merchant-product-card .fw-extrabold {
  font-size: 12.5px !important;
}

.merchant-product-img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 10px !important;
  flex-shrink: 0 !important;
}

/* Rating badge in vendor header — real data display */
.merchant-top-header .text-white-50 {
  font-size: 10px !important;
}

/* =========================================================================
 * Delivery Driver Dashboard — Compact Styling
 * ========================================================================= */

/* Delivery content wrapper main */
.mobile-app-wrapper > main.flex-grow-1 > .p-3 {
  padding: 14px 12px !important;
}

/* Driver status toggle card */
.driver-status-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Driver Quick Stat Cards */
.driver-quick-stat {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

/* Delivery Active Order Card — Step Progression */
.driver-active-order-card {
  border-radius: 16px !important;
  padding: 12px !important;
  margin-bottom: 12px !important;
}

.driver-active-order-card .bg-white.text-dark.p-3.rounded-4 {
  padding: 10px 12px !important;
  border-radius: 14px !important;
}

/* Driver delivery action button */
.driver-active-order-card .btn.w-100.fw-bold {
  font-size: 11.5px !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
}

/* Driver radar map card */
.card.border-0.shadow-sm.rounded-4.overflow-hidden {
  border-radius: 16px !important;
  margin-bottom: 12px !important;
}

.card.border-0.shadow-sm.rounded-4.overflow-hidden .p-3.bg-white {
  padding: 10px 14px !important;
}

/* Driver delivery step progress bar */
.driver-step-bar {
  border-radius: 10px !important;
  padding: 6px 10px !important;
  font-size: 10.5px !important;
  margin-bottom: 10px !important;
}

/* Order Info Box inside delivery card */
.driver-order-info-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #E2E8F0;
  font-size: 11px;
  margin-bottom: 8px;
}

/* Driver toggle switch */
.driver-toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.driver-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.driver-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  border-radius: 999px;
  transition: 0.3s;
}

.driver-toggle-slider:before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.driver-toggle-switch input:checked + .driver-toggle-slider {
  background-color: #10b981;
}

.driver-toggle-switch input:checked + .driver-toggle-slider:before {
  transform: translateX(22px);
}

/* Driver header status dot */
.driver-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
}

.driver-status-dot.online {
  background-color: #10b981;
  animation: pulseGreen 2s infinite;
}

.driver-status-dot.offline {
  background-color: #94a3b8;
}

/* Chat unread dot */
.ccg-unread-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: #EE2737;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
}

/* =========================================================================
 * Mobile delivery nav tab items (driver bottom bar)
 * ========================================================================= */
.mobile-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 480px !important;
  height: calc(48px + env(safe-area-inset-bottom, 0px)) !important;
  background-color: #ffffff !important;
  border-top: 1px solid #E2E8F0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  z-index: 1040 !important;
  box-shadow: 0 -1px 6px rgba(0,0,0,0.04) !important;
  padding: 0 4px !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  box-sizing: border-box !important;
}

.nav-tab-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
  min-width: 0 !important;
  height: 44px !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-size: 8.5px !important;
  font-weight: 600 !important;
  gap: 2px !important;
  padding: 0 !important;
  transition: color 0.15s ease !important;
}

.nav-tab-item i {
  font-size: 17px !important;
  line-height: 1 !important;
}

.nav-tab-item span {
  font-size: 8.5px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.nav-tab-item.active,
.nav-tab-item:not(.text-danger).active {
  color: #EE2737 !important;
  font-weight: 700 !important;
}


/* Mobile Native Bottom Sheet Dialog & Toast */
.mobile-app-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-app-sheet-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-app-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 16px 20px 24px 20px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
  z-index: 2010;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}
.mobile-app-sheet.active {
  transform: translateX(-50%) translateY(0);
}

.mobile-sheet-drag-handle {
  width: 38px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 4px;
  margin: 0 auto 16px auto;
}

.mobile-sheet-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}
.mobile-sheet-icon-box.info { background: #EFF6FF; color: #3B82F6; }
.mobile-sheet-icon-box.success { background: #F0FDF4; color: #16A34A; }
.mobile-sheet-icon-box.warning { background: #FEF3C7; color: #D97706; }
.mobile-sheet-icon-box.danger,
.mobile-sheet-icon-box.error { background: #FEE2E2; color: #EE2737; }

.mobile-sheet-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.mobile-sheet-message {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 20px;
}

.mobile-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-mobile-sheet-primary {
  width: 100%;
  background: linear-gradient(135deg, #EE2737 0%, #C61524 100%);
  color: #FFFFFF;
  border: none;
  padding: 11px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(238, 39, 55, 0.25);
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn-mobile-sheet-primary:active {
  opacity: 0.9;
}

.btn-mobile-sheet-secondary {
  width: 100%;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
  padding: 10px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Mobile App Floating Toast */
.mobile-app-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 2020;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90%;
  pointer-events: none;
}
.mobile-app-toast.active {
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Driver Radar Leaflet Map & Marker Styling Fixes
   ============================================================ */
#driver-radar-map {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  overflow: hidden;
  background-color: #E2E8F0;
}

.leaflet-container {
  font-family: inherit !important;
}

/* Custom Driver Radar Pulse Marker */
.driver-radar-marker {
  background: transparent !important;
  border: none !important;
}

.driver-marker-pulse-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.driver-marker-pulse-wrapper .pulse-ring,
.driver-marker-pulse-wrapper .pulse-ring-delayed {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(238, 39, 55, 0.35);
  animation: driverPulse 2s infinite ease-out;
  pointer-events: none;
}

.driver-marker-pulse-wrapper .pulse-ring-delayed {
  animation-delay: 0.8s;
}

@keyframes driverPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.driver-marker-pulse-wrapper .marker-core {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EE2737 0%, #B91C1C 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(238, 39, 55, 0.4);
}

/* ============================================================
   Leaflet Map — Minimal CSS Fixes Only
   ============================================================ */

/* Prevent tile distortion */
.leaflet-container img.leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}

/* Hide default shadow image */
.leaflet-shadow-pane,
.leaflet-marker-shadow,
img.leaflet-marker-shadow {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Ensure SVG L.icon() img tags maintain natural Leaflet inline width/height */
img.leaflet-marker-icon {
  max-width: none !important;
  max-height: none !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* CRITICAL: Remove Leaflet's default white background on divIcon containers */
div.leaflet-div-icon,
div.leaflet-marker-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ============================================================
   Leaflet Map — Premium Modern Popup Card Styling
   ============================================================ */
.leaflet-popup-content-wrapper {
  border-radius: 16px !important;
  padding: 8px 12px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  background: #FFFFFF !important;
  font-family: inherit !important;
}

.leaflet-popup-content {
  margin: 4px 6px !important;
  padding-right: 18px !important; /* Prevents close button overlapping title text */
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #0f172a !important;
  min-width: 150px !important;
  max-width: 260px !important;
  white-space: normal !important;
  word-break: break-word !important;
}

/* Styled Close Button (X) */
.leaflet-container a.leaflet-popup-close-button {
  top: 6px !important;
  right: 6px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  line-height: 1 !important;
  padding: 0 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.ccg-map-popup {
  padding: 2px 0;
  text-align: left;
}

.ccg-map-popup .popup-title {
  font-weight: 700;
  font-size: 12.5px;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 3px;
}

/* Driver Page Layout Padding Fix (Mencegah konten terpotong Bottom Nav) */
.driver-page-container {
  padding-bottom: 85px !important;
}

/* ============================================================
   RESPONSIVE LAYOUT FIXES FOR SMALLER MOBILE DEVICES (< 380px)
   Mencegah UI gepeng, teks terpotong, & elemen menumpuk
   ============================================================ */

/* Global Anti-Overflow Rules */
.mobile-app-wrapper {
  overflow-x: hidden !important;
}
.mobile-app-wrapper *,
.mobile-app-wrapper *::before,
.mobile-app-wrapper *::after {
  max-width: 100%;
}

@media (max-width: 380px) {
  /* Header adjustments for small mobile screens */
  .gojek-header {
    padding: 6px 10px 8px !important;
  }
  .gojek-top-row {
    gap: 4px !important;
  }
  .gojek-location-btn {
    max-width: 80px !important;
    padding: 2px 6px !important;
    height: 26px !important;
  }
  .gojek-location-text {
    max-width: 48px !important;
    font-size: 9.5px !important;
  }
  .gojek-icon-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
  }

  /* Subpage Header */
  .app-subpage-header {
    padding: 10px 12px !important;
    min-height: 50px !important;
  }
  .app-subpage-header h6 {
    font-size: 13.5px !important;
  }

  /* CicalengkaPay Card */
  .gopay-super-card {
    margin: 8px 10px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
  }
  .gopay-amount {
    font-size: 14px !important;
  }
  .gopay-actions-grid {
    gap: 6px !important;
  }
  .gopay-action-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 11.5px !important;
    border-radius: 8px !important;
  }
  .gopay-action-label {
    font-size: 8.5px !important;
  }

  /* Grid Layanan Kategori 4 Kolom */
  .gojek-services-grid {
    gap: 10px 4px !important;
  }
  .gojek-service-squircle {
    width: 38px !important;
    height: 38px !important;
    font-size: 16px !important;
    border-radius: 11px !important;
  }
  .gojek-service-label {
    font-size: 8.5px !important;
  }

  /* Product Cards Grid */
  .gofood-products-grid {
    gap: 10px !important;
    padding: 0 10px 16px !important;
  }
  .gofood-prod-img {
    height: 84px !important;
  }
  .gofood-prod-body {
    padding: 8px 10px 10px !important;
  }
  .gofood-prod-name {
    font-size: 11px !important;
    min-height: 28px !important;
  }

  /* Store Cards */
  .gofood-store-card {
    min-width: 135px !important;
    max-width: 135px !important;
  }
  .gofood-store-img-box {
    height: 76px !important;
  }
  .gofood-store-body {
    padding: 8px 10px 10px !important;
  }

  /* Store detail product row */
  div[style*="border-radius: 14px"] img[style*="width: 70px"] {
    width: 56px !important;
    height: 56px !important;
  }

  /* Floating Cart Pill */
  .floating-cart-pill {
    width: calc(100% - 16px) !important;
    max-width: calc(480px - 16px) !important;
    padding: 6px 12px !important;
    bottom: calc(50px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .floating-cart-price {
    font-size: 11.5px !important;
  }
  .cart-qty-badge {
    font-size: 8.5px !important;
    padding: 2px 6px !important;
  }

  /* Bottom Navigation */
  .gojek-bottom-nav,
  .mobile-bottom-nav,
  .driver-bottom-nav {
    height: calc(42px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(42px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .gojek-nav-item i,
  .nav-tab-item i {
    font-size: 15px !important;
  }
  .gojek-nav-item span,
  .nav-tab-item span {
    font-size: 8px !important;
  }
}

@media (max-width: 340px) {
  /* Extra compact for 320px devices */
  .gojek-location-btn {
    display: none !important;
  }
  .gofood-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .payment-option {
    padding: 8px 10px !important;
  }
}






