/* =====================================================================
   SMARTPHONE APP SIMULATOR STYLES (MOBILE-FIRST UI)
===================================================================== */

.mobile-view-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0 3rem 0;
  width: 100%;
}

/* SMARTPHONE DEVICE FRAME */
.smartphone-device {
  width: 410px;
  height: 854px;
  background: #0f172a;
  border: 4px solid #0284c7;
  border-radius: 54px;
  padding: 12px;
  box-shadow: 
    0 0 0 4px #38bdf8,
    0 25px 60px rgba(2, 132, 199, 0.28);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
}

/* SMARTPHONE SCREEN (LOCKED FRAME - DEFAULT PURE WHITE BACKGROUND) */
.smartphone-screen {
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 44px;
  width: 100%;
  height: 100%;
  overflow: hidden; /* LAYAR UTAMA TIDAK BOLEH SCROLL */
  position: relative;
  display: flex;
  flex-direction: column;
}

/* STATUS BAR & DYNAMIC ISLAND - FIXED TOP */
.phone-status-bar {
  flex-shrink: 0;
  z-index: 110;
  background: rgba(7, 13, 30, 0.95);
  backdrop-filter: blur(16px);
  padding: 10px 22px 6px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dynamic-island {
  width: 105px;
  height: 22px;
  background: #000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.island-camera {
  width: 9px;
  height: 9px;
  background: #111e3b;
  border-radius: 50%;
  border: 1px solid #1e293b;
}

/* ROLE CONTAINER */
.role-mobile-screen {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0; /* PENTING: Mencegah flexbox memanjang melebihi layar */
  overflow: hidden;
  position: relative;
}

.role-mobile-screen.active {
  display: flex;
}

/* FIXED HEADERS FOR SPECIFIC ROLES */
.driver-status-card,
.captain-vessel-card,
.merchant-kitchen-header {
  flex-shrink: 0;
}

/* =====================================================================
   1. CUSTOMER APP UI
===================================================================== */
.mobile-app-header {
  padding: 0.75rem 1.25rem 0.5rem 1.25rem;
}

.mobile-user-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.user-avatar-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d2ff, #3a86ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.mobile-search-bar {
  background: rgba(16, 28, 59, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mobile-wallet-card {
  margin: 0 1.25rem 1rem 1.25rem;
  background: linear-gradient(135deg, #0f1d3f 0%, #152756 100%);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.wallet-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.wallet-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-action-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  transition: var(--transition);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  color: #fde047;
}

.action-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fbbf24;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.quick-action-btn:hover .action-icon-circle {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  transform: scale(1.08);
}

.mobile-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem 0.5rem;
  padding: 0.75rem 1.25rem 1.1rem 1.25rem;
}

.service-item-btn {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 4px;
  border-radius: 14px;
  color: #ffffff;
}

.service-item-btn:hover {
  transform: translateY(-3px);
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.service-icon-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  pointer-events: none;
}

.service-item-btn:hover .service-icon-box {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.modern-service-svg {
  width: 30px;
  height: 30px;
  fill: #ffffff !important;
  color: #ffffff !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
  transition: transform 0.25s ease;
}

.service-item-btn:hover .modern-service-svg {
  transform: scale(1.1);
}

/* GRADIENTS KOTAK ICON MODERN (PALA SUPERAPP) */
.service-icon-box.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}
.service-icon-box.cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}
.service-icon-box.blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}
.service-icon-box.indigo {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}
.service-icon-box.purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}
.service-icon-box.orange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}
.service-icon-box.magenta {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}
.service-icon-box.gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.service-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
  display: block;
}

.mobile-banner-section {
  padding: 0 1.25rem 1rem 1.25rem;
}

.mobile-promo-card {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(58, 134, 255, 0.25));
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
}

/* =====================================================================
   2. DRIVER APP UI (MITRA OJEK / MOBIL)
===================================================================== */
.driver-status-card {
  margin: 0.85rem 1.25rem;
  background: linear-gradient(135deg, #0f1f3d 0%, #112852 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.driver-toggle-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.driver-toggle-btn.online {
  background: #10b981;
  color: #fff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.driver-toggle-btn.offline {
  background: #475569;
  color: #cbd5e1;
}

.driver-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 1.25rem 1rem 1.25rem;
}

.driver-metric-box {
  background: rgba(16, 28, 59, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  text-align: center;
}

.radar-search-container {
  margin: 0.5rem 1.25rem 1.25rem 1.25rem;
  background: rgba(8, 16, 38, 0.9);
  border: 1px dashed rgba(0, 210, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.radar-pulse-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 210, 255, 0.1);
  border: 2px solid #00d2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem auto;
  font-size: 1.8rem;
  animation: radarWave 2s infinite ease-out;
}

@keyframes radarWave {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.6); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 18px rgba(0, 210, 255, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.incoming-order-popup {
  background: linear-gradient(135deg, #162a56 0%, #1a356e 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 0.5rem 1.25rem 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* =====================================================================
   3. CAPTAIN SEA APP UI (NAKHODA KAPAL & DERMAGA)
===================================================================== */
.captain-vessel-card {
  margin: 0.85rem 1.25rem;
  background: linear-gradient(135deg, #0e244d 0%, #0c336b 100%);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.qr-scanner-box {
  margin: 0 1.25rem 1rem 1.25rem;
  background: #000;
  border: 2px dashed #00d2ff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.qr-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #00d2ff;
  box-shadow: 0 0 12px #00d2ff;
  animation: scanLaser 2s infinite alternate ease-in-out;
}

@keyframes scanLaser {
  0% { top: 10%; }
  100% { top: 90%; }
}

.manifest-list-mobile {
  margin: 0 1.25rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.manifest-row-card {
  background: rgba(16, 28, 59, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* =====================================================================
   4. MERCHANT APP UI (WARUNG / RESTORAN MITRA)
===================================================================== */
.merchant-kitchen-header {
  margin: 0.85rem 1.25rem;
  background: linear-gradient(135deg, #2a1b07 0%, #422606 100%);
  border: 1px solid rgba(255, 159, 28, 0.3);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kitchen-orders-list {
  margin: 0 1.25rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kitchen-order-ticket {
  background: rgba(16, 28, 59, 0.85);
  border: 1px solid rgba(255, 159, 28, 0.3);
  border-left: 4px solid #ff9f1c;
  border-radius: var(--radius-sm);
  padding: 1rem;
}

/* BOTTOM NAVIGATION BAR - FIRMLY DOCKED, NEVER SHIFTS ON SCROLL */
.mobile-bottom-nav {
  flex-shrink: 0;
  width: 100%;
  background: rgba(7, 13, 30, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  padding: 8px 1rem 14px 1rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  border-radius: 0 0 44px 44px;
}

.bottom-nav-item {
  background: transparent;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  transition: var(--transition);
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item .nav-icon {
  font-size: 1.25rem;
}

/* HOME INDICATOR */
.phone-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  z-index: 120;
  pointer-events: none;
}

/* BOTTOM SHEETS & BACKDROP */
.sheet-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 8, 20, 0.75);
  backdrop-filter: blur(4px);
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s;
  border-radius: 44px;
}

.sheet-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
}

.mobile-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0c1733;
  border-top: 1.5px solid rgba(0, 210, 255, 0.35);
  border-radius: 28px 28px 0 0;
  padding: 0.85rem 1.25rem 2.25rem 1.25rem;
  z-index: 150;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.32s;
  box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.85);
  max-height: 82%;
  overflow-y: auto;
}

.mobile-sheet.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sheet-handle {
  width: 44px;
  height: 5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  margin: 0 auto 0.75rem auto;
  cursor: pointer;
  transition: background 0.2s;
}

.sheet-handle:hover {
  background: #00d2ff;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.modal-close,
.sheet-close-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 50% !important;
  background: #dc2626 !important;
  border: 2px solid #f87171 !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45) !important;
  outline: none !important;
  z-index: 20 !important;
}

.modal-close:hover,
.sheet-close-btn:hover {
  background: #b91c1c !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: rotate(90deg) scale(1.15) !important;
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.6) !important;
}

.modal-close svg,
.sheet-close-btn svg {
  stroke-width: 2.8 !important;
  stroke: #ffffff !important;
  width: 18px !important;
  height: 18px !important;
}

/* SMARTPHONE ROLE SWITCHER BAR (ABOVE DEVICE) */
.smartphone-role-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 900px;
}

.smartphone-role-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 1rem;
}

.role-switcher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  width: 100%;
  padding: 0 0.5rem;
}

.role-switch-pill {
  background: rgba(13, 20, 33, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.role-switch-pill:hover {
  background: rgba(22, 35, 58, 0.95);
  border-color: var(--pala-gold);
  color: #fff;
  transform: translateY(-2px);
}

.role-switch-pill.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(16, 185, 129, 0.22) 100%);
  border: 1.5px solid var(--pala-gold);
  color: #fff;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.3);
}

.role-switch-pill .pill-icon {
  font-size: 1.35rem;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 3px;
  overflow: hidden;
}

.role-switch-pill .pill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.role-switch-pill.active .pill-icon {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--pala-gold);
}

.role-switch-pill .pill-text {
  display: flex;
  flex-direction: column;
}

.role-switch-pill .pill-text strong {
  font-size: 0.84rem;
  line-height: 1.2;
}

.role-switch-pill .pill-text small {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.role-switch-pill.active .pill-text small {
  color: #fde047;
}

/* BRAND HEADER BAR ON PHONE APPS */
.pala-app-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem 0.5rem 1.25rem;
  background: rgba(7, 11, 18, 0.7);
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
  flex-shrink: 0;
}

.pala-app-brand-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pala-app-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

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

.pala-app-brand-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  font-family: 'Outfit', sans-serif;
}

.pala-app-brand-title span {
  background: linear-gradient(90deg, #fde047, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pala-app-brand-sub {
  font-size: 0.64rem;
  color: var(--text-dim);
}

.pala-app-brand-badge {
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* SUBTAB VIEWS INSIDE PHONE - INI SATU-SATUNYA AREA YANG BERGULIR/SCROLL */
.role-subtab-view {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0; /* PENTING: Mengaktifkan scroll internal di dalam flex container */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 1.25rem;
  animation: fadeIn 0.2s ease-in-out;
}

.role-subtab-view::-webkit-scrollbar {
  display: none;
}

.role-subtab-view.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* TICKET DIGITAL BOARDING PASS CARD */
.boarding-pass-card {
  margin: 0 1.25rem 1rem 1.25rem;
  background: linear-gradient(135deg, #0e1e42 0%, #152c63 100%);
  border: 1.5px solid rgba(0, 210, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.boarding-pass-barcode {
  background: #fff;
  color: #000;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 10px;
  text-align: center;
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 2px;
}

.barcode-lines {
  height: 34px;
  background: repeating-linear-gradient(90deg, #000, #000 2px, transparent 2px, transparent 5px, #000 5px, #000 8px, transparent 8px, transparent 10px, #000 10px, #000 14px, transparent 14px, transparent 16px);
  margin-bottom: 4px;
}

/* DRIVER ROUTE VISUAL */
.driver-route-card {
  margin: 0 1.25rem 1rem 1.25rem;
  background: rgba(16, 28, 59, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.driver-step-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.85rem 0;
  position: relative;
}

.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  z-index: 2;
}

.step-dot.active {
  background: var(--primary);
  border-color: #fff;
  color: #070d1e;
  box-shadow: 0 0 10px var(--primary-glow);
}

.step-dot.completed {
  background: #34d399;
  border-color: #34d399;
  color: #070d1e;
}

/* FULLSCREEN ON REAL SMARTPHONES */
@media (max-width: 768px) {
  .role-switcher-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .mobile-view-wrapper { padding: 0; }
  .smartphone-role-bar-container {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .role-switcher-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  .role-switch-pill {
    padding: 0.5rem 0.6rem;
  }
  .role-switch-pill .pill-text small {
    display: none;
  }
  .smartphone-device {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
  }
  .smartphone-screen { border-radius: 0; }
  .mobile-bottom-nav { border-radius: 0; padding-bottom: 14px; }
  .phone-status-bar { display: none; }
  .phone-home-indicator { display: none; }
}

/* =====================================================================
   CATALOG PRODUCT CARDS (MODE KOTAK / GRID BOX DISPLAY DENGAN PROMO & DISKON)
===================================================================== */
.food-promo-banner {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(245, 158, 11, 0.25) 100%);
  border: 1.5px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: pulseGold 3s infinite;
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.food-promo-banner strong {
  display: block;
  font-size: 0.78rem;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

.food-promo-banner small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-main);
  line-height: 1.25;
}

/* CONTAINER GRID KOTAK UNTUK CUSTOMER & MERCHANT (2 KOLOM RAPI) */
.food-catalog-grid,
.merchant-catalog-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.75rem !important;
  margin-bottom: 1.25rem !important;
}

/* KARTU KOTAK PRODUK (BOX CARD LAYOUT) */
.food-box-card,
.merchant-box-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.food-box-card:hover,
.merchant-box-card:hover {
  transform: translateY(-3px);
  border-color: var(--pala-gold);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

/* GAMBAR KOTAK PRODUK */
.food-box-img-wrap {
  width: 100%;
  height: 110px;
  position: relative;
  background: #0f172a;
  overflow: hidden;
  flex-shrink: 0;
}

.food-box-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.food-box-card:hover .food-box-img-wrap img,
.merchant-box-card:hover .food-box-img-wrap img {
  transform: scale(1.08);
}

/* BADGE PROMO & DISKON MENYALA */
.promo-ribbon-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
  letter-spacing: 0.5px;
}

.category-tag-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.stock-status-pill {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.stock-status-pill.ready {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

.stock-status-pill.empty {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
}

/* KONTEN INFORMASI KOTAK */
.food-box-body {
  padding: 0.65rem 0.65rem 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.food-box-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.1em;
}

.food-box-desc {
  font-size: 0.65rem;
  color: var(--text-dim);
  line-height: 1.25;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* HARGA DISKON & HARGA CORET */
.food-box-price-wrap {
  margin-bottom: 6px;
}

.food-price-struck {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-right: 4px;
}

.food-price-active {
  font-size: 0.92rem;
  font-weight: 800;
  color: #10b981;
}

/* TOMBOL AKSI KOTAK */
.btn-box-action {
  width: 100%;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-box-action.primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070b12;
}

.btn-box-action.primary:hover {
  background: #f59e0b;
  transform: translateY(-1px);
}

.btn-box-action.success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.btn-box-action.outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.merchant-box-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 4px;
}

/* =====================================================================
   BOAT SCHEDULE SELECTOR CARDS (ANTAR DERMAGA)
===================================================================== */
.boat-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.boat-schedule-card {
  background: linear-gradient(135deg, rgba(14, 30, 66, 0.85) 0%, rgba(18, 40, 89, 0.85) 100%);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.boat-schedule-card:hover, .boat-schedule-card.selected {
  border-color: #00d2ff;
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.25);
  transform: translateY(-2px);
}

.schedule-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.schedule-time-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.schedule-depart-time {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.schedule-duration {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.schedule-route-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.schedule-pier-badge {
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #00d2ff;
}

.schedule-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-seats {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.schedule-seats strong {
  color: #34d399;
}

.schedule-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #34d399;
}

/* MODAL KELOLA FORM STYLES */
.custom-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.custom-modal-overlay.active,
.custom-modal-overlay.open {
  display: flex;
}

.custom-modal-box {
  background: #0d1733;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  max-height: 90vh;
  overflow-y: auto;
}

/* 1. TIKET TERUSAN DARAT-LAUT (INTERMODAL CARD & TIMELINE) */
.intermodal-banner-card {
  margin: 0 1.25rem 0.85rem 1.25rem;
  background: linear-gradient(135deg, #093452 0%, #0d5c75 50%, #0f766e 100%);
  border: 1.5px solid #22d3ee;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.2);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.intermodal-banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.35);
}

.intermodal-banner-card:active {
  transform: translateY(0) scale(0.99);
}

.intermodal-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.intermodal-badges-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.intermodal-badge-main {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 211, 238, 0.25);
  border: 1px solid rgba(34, 211, 238, 0.6);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.intermodal-badge-discount {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dc2626;
  border: 1px solid #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.intermodal-action-hint {
  font-size: 0.66rem;
  font-weight: 700;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.intermodal-info-section {
  margin-bottom: 7px;
}

.intermodal-card-title {
  margin: 0 0 3px 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
}

.intermodal-card-desc {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: #bae6fd;
  line-height: 1.4;
}

.intermodal-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 7px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.intermodal-multimodal-tag {
  font-size: 0.66rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.intermodal-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.intermodal-price-old {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: line-through;
}

.intermodal-price-now {
  font-size: 0.96rem;
  font-weight: 800;
  color: #34d399;
}

/* Backward-compatible pill */
.intermodal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Sheet Summary Bar */
.intermodal-sheet-summary-bar {
  background: rgba(16, 28, 59, 0.95);
  border: 1.5px solid #22d3ee;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.intermodal-sheet-label {
  color: var(--text-muted);
  font-size: 0.68rem;
}
.intermodal-sheet-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #34d399;
}
.intermodal-sheet-oldprice {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.intermodal-step-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1rem 0;
  position: relative;
}

.intermodal-step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}

.intermodal-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 210, 255, 0.15);
  border: 1.5px solid #00d2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  z-index: 2;
}

.intermodal-step-line {
  position: absolute;
  top: 32px;
  left: 15px;
  bottom: -10px;
  width: 2px;
  background: rgba(0, 210, 255, 0.3);
  z-index: 1;
}

.intermodal-step-content {
  flex: 1;
  background: rgba(16, 28, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.78rem;
}

/* 2. DOKUMEN MANIFEST RESMI SYAHBANDAR KSOP */
.ksop-official-doc {
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 8px;
  padding: 1.25rem;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.ksop-doc-header {
  text-align: center;
  border-bottom: 2px solid #000;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.ksop-doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  margin: 10px 0;
}

.ksop-doc-table th,
.ksop-doc-table td {
  border: 1px solid #777;
  padding: 5px 6px;
  text-align: left;
}

.ksop-doc-table th {
  background: #f0f0f0;
  font-weight: 700;
}

/* 3. MARINE AIS RADAR & BMKG WIDGET */
.marine-ais-radar-card {
  margin: 0 1.25rem 0.85rem 1.25rem;
  background: #061126;
  border: 1.5px solid #0284c7;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  position: relative;
  overflow: hidden;
}

.radar-scope-circle {
  width: 100%;
  height: 95px;
  border-radius: 8px;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.15) 0%, rgba(2, 6, 23, 0.95) 75%);
  border: 1px solid rgba(14, 165, 233, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
}

.radar-sweep-hand {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(56, 189, 248, 0.4) 0deg, transparent 60deg);
  animation: radarSweepAnim 4s linear infinite;
}

@keyframes radarSweepAnim {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-vessel-blip {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  animation: blipGlow 1.5s infinite alternate;
}

@keyframes blipGlow {
  from { opacity: 0.4; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.3); }
}

/* 4. EMERGENCY SOS MARITIME BUTTON */
.btn-sos-maritime {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #fff;
  border: 1.5px solid #f87171;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
  animation: pulseSos 2s infinite;
}

@keyframes pulseSos {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* 5. GRAB & GO PIER PICKUP TOGGLE */
.delivery-method-switch {
  display: flex;
  background: rgba(16, 28, 59, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 0.75rem;
}

.delivery-method-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.delivery-method-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 210, 255, 0.3);
}

/* 6. CURRENCY & LANGUAGE SWITCH PILL */
.lang-currency-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.68rem;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s ease;
}

.lang-currency-switch:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* =====================================================================
   7. SMARTPHONE LIGHT MODE (MODE SIANG) & DARK MODE (MODE MALAM)
===================================================================== */

/* --- DARK MODE RULES (MODE MALAM: WARNA BIRU DIGANTI MENJADI WARNA HITAM PEKAT) --- */
.mobile-view-wrapper[data-theme="dark"],
[data-theme="dark"] .mobile-view-wrapper,
[data-theme="dark"] #smartphoneAppSection {
  background: #070b12 !important;
  background-color: #070b12 !important;
}

.smartphone-device[data-theme="dark"],
[data-theme="dark"] .smartphone-device {
  background: #000000 !important;
  border: 4px solid #1e293b !important;
  box-shadow: 
    0 0 0 3px #f59e0b,
    0 25px 60px rgba(0, 0, 0, 0.95) !important;
}

/* 1. LAYAR & KONTEN DI BELAKANG CARD DI MODE MALAM: HITAM PEKAT */
.smartphone-screen[data-theme="dark"],
.smartphone-device[data-theme="dark"] .smartphone-screen,
[data-theme="dark"] .smartphone-screen,
.smartphone-screen[data-theme="dark"] .role-mobile-screen,
.smartphone-device[data-theme="dark"] .role-mobile-screen,
[data-theme="dark"] .role-mobile-screen,
.smartphone-screen[data-theme="dark"] .role-subtab-view,
.smartphone-device[data-theme="dark"] .role-subtab-view,
[data-theme="dark"] .role-subtab-view {
  background: #070b12 !important;
  background-color: #070b12 !important;
  color: #f8fafc !important;
}

/* 2. HEADER & BRAND BAR DI MODE MALAM: GANTI BIRU MENJADI HITAM PEKAT */
.smartphone-screen[data-theme="dark"] .phone-status-bar,
.smartphone-device[data-theme="dark"] .phone-status-bar,
[data-theme="dark"] .phone-status-bar {
  background: #000000 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.smartphone-screen[data-theme="dark"] .dynamic-island,
.smartphone-device[data-theme="dark"] .dynamic-island,
[data-theme="dark"] .dynamic-island {
  background: #000000 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.smartphone-screen[data-theme="dark"] .pala-app-brand-bar,
.smartphone-device[data-theme="dark"] .pala-app-brand-bar,
[data-theme="dark"] .pala-app-brand-bar {
  background: #070b12 !important;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.25) !important;
}

.smartphone-screen[data-theme="dark"] .mobile-app-header,
.smartphone-device[data-theme="dark"] .mobile-app-header,
[data-theme="dark"] .mobile-app-header {
  background: #070b12 !important;
  border-bottom: 2.5px solid var(--pala-gold) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.75) !important;
  border-radius: 0 0 24px 24px !important;
  padding: 0.85rem 1.25rem 1.35rem 1.25rem !important;
}

.smartphone-screen[data-theme="dark"] .mobile-search-bar,
.smartphone-device[data-theme="dark"] .mobile-search-bar,
[data-theme="dark"] .mobile-search-bar {
  background: #0d172b !important;
  border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
  color: #f8fafc !important;
}

/* 3. FOOTER (BOTTOM NAVIGATION) DI MODE MALAM: GANTI BIRU MENJADI HITAM PEKAT */
.smartphone-screen[data-theme="dark"] .mobile-bottom-nav,
.smartphone-device[data-theme="dark"] .mobile-bottom-nav,
[data-theme="dark"] .mobile-bottom-nav,
.smartphone-screen[data-theme="dark"] .driver-bottom-nav,
.smartphone-device[data-theme="dark"] .driver-bottom-nav,
[data-theme="dark"] .driver-bottom-nav {
  background: #070b12 !important;
  border-top: 2.5px solid var(--pala-gold) !important;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.85) !important;
}

.smartphone-screen[data-theme="dark"] .bottom-nav-item,
.smartphone-device[data-theme="dark"] .bottom-nav-item,
[data-theme="dark"] .bottom-nav-item {
  color: #94a3b8 !important;
}

.smartphone-screen[data-theme="dark"] .bottom-nav-item span,
.smartphone-device[data-theme="dark"] .bottom-nav-item span,
[data-theme="dark"] .bottom-nav-item span {
  color: #94a3b8 !important;
}

.smartphone-screen[data-theme="dark"] .bottom-nav-item.active,
.smartphone-device[data-theme="dark"] .bottom-nav-item.active,
[data-theme="dark"] .bottom-nav-item.active {
  color: #fbbf24 !important;
}

.smartphone-screen[data-theme="dark"] .bottom-nav-item.active span,
.smartphone-device[data-theme="dark"] .bottom-nav-item.active span,
[data-theme="dark"] .bottom-nav-item.active span {
  color: #fbbf24 !important;
}

.smartphone-screen[data-theme="dark"] .phone-home-indicator,
.smartphone-device[data-theme="dark"] .phone-home-indicator,
[data-theme="dark"] .phone-home-indicator {
  background: rgba(255, 255, 255, 0.4) !important;
}

/* 4. KARTU-KARTU DI MODE MALAM: GANTI BIRU MENJADI HITAM */
.smartphone-screen[data-theme="dark"] .driver-status-card,
.smartphone-device[data-theme="dark"] .driver-status-card,
[data-theme="dark"] .driver-status-card {
  background: #0d172b !important;
  border: 2px solid #10b981 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  color: #f8fafc !important;
}

.smartphone-screen[data-theme="dark"] .captain-vessel-card,
.smartphone-device[data-theme="dark"] .captain-vessel-card,
[data-theme="dark"] .captain-vessel-card {
  background: #0d172b !important;
  border: 2px solid var(--pala-gold) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  color: #f8fafc !important;
}

.smartphone-screen[data-theme="dark"] .merchant-kitchen-header,
.smartphone-device[data-theme="dark"] .merchant-kitchen-header,
[data-theme="dark"] .merchant-kitchen-header {
  background: #0d172b !important;
  border: 2px solid #ea580c !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  color: #f8fafc !important;
}

.smartphone-screen[data-theme="dark"] .mobile-wallet-card,
.smartphone-device[data-theme="dark"] .mobile-wallet-card,
[data-theme="dark"] .mobile-wallet-card {
  background: linear-gradient(135deg, #070b12 0%, #0d172b 100%) !important;
  border: 2px solid var(--pala-gold) !important;
  color: #f8fafc !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

.smartphone-screen[data-theme="dark"] .intermodal-banner-card,
.smartphone-device[data-theme="dark"] .intermodal-banner-card,
[data-theme="dark"] .intermodal-banner-card {
  background: linear-gradient(135deg, #070b12 0%, #0d172b 100%) !important;
  border: 2px solid var(--pala-gold) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .intermodal-badge-main {
  background: #000000 !important;
  color: #f59e0b !important;
  border: 1.5px solid #d97706 !important;
}

[data-theme="dark"] .intermodal-badge-discount {
  background: #991b1b !important;
  color: #ffffff !important;
  border: 1.5px solid #ef4444 !important;
}

[data-theme="dark"] .intermodal-action-hint {
  color: #f59e0b !important;
}

[data-theme="dark"] .intermodal-card-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .intermodal-card-desc {
  color: #94a3b8 !important;
}

[data-theme="dark"] .intermodal-bottom-row {
  border-top: 1px dashed rgba(245, 158, 11, 0.3) !important;
}

[data-theme="dark"] .intermodal-multimodal-tag {
  background: #000000 !important;
  color: #38bdf8 !important;
  border: 1px solid #1e293b !important;
}

[data-theme="dark"] .intermodal-price-old {
  color: #64748b !important;
}

[data-theme="dark"] .intermodal-price-now {
  color: #34d399 !important;
}

.smartphone-screen[data-theme="dark"] .mobile-promo-card,
.smartphone-device[data-theme="dark"] .mobile-promo-card,
[data-theme="dark"] .mobile-promo-card {
  background: linear-gradient(135deg, #070b12 0%, #0d172b 100%) !important;
  border: 2px solid var(--pala-gold) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

.smartphone-screen[data-theme="dark"] .marine-ais-radar-card,
.smartphone-device[data-theme="dark"] .marine-ais-radar-card,
[data-theme="dark"] .marine-ais-radar-card {
  background: #050a14 !important;
  border: 2px solid var(--pala-gold) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7) !important;
  color: #f8fafc !important;
}

.smartphone-screen[data-theme="dark"] .boat-schedule-card,
.smartphone-device[data-theme="dark"] .boat-schedule-card,
[data-theme="dark"] .boat-schedule-card {
  background: #0d172b !important;
  border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5) !important;
}

.smartphone-screen[data-theme="dark"] .driver-metric-box,
.smartphone-device[data-theme="dark"] .driver-metric-box,
[data-theme="dark"] .driver-metric-box {
  background: #0d172b !important;
  border: 1.5px solid #10b981 !important;
}

.smartphone-screen[data-theme="dark"] .radar-search-container,
.smartphone-device[data-theme="dark"] .radar-search-container,
[data-theme="dark"] .radar-search-container {
  background: #070b12 !important;
  border: 2px dashed var(--pala-gold) !important;
  color: #f8fafc !important;
}

.smartphone-screen[data-theme="dark"] .incoming-order-popup,
.smartphone-device[data-theme="dark"] .incoming-order-popup,
[data-theme="dark"] .incoming-order-popup {
  background: #070b12 !important;
  border: 2.5px solid var(--pala-gold) !important;
  color: #f8fafc !important;
}

.smartphone-screen[data-theme="dark"] .food-box-card,
.smartphone-device[data-theme="dark"] .food-box-card,
[data-theme="dark"] .food-box-card,
.smartphone-screen[data-theme="dark"] .merchant-box-card,
.smartphone-device[data-theme="dark"] .merchant-box-card,
[data-theme="dark"] .merchant-box-card {
  background: #0d172b !important;
  border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
}

.smartphone-screen[data-theme="dark"] .boarding-pass-card,
.smartphone-device[data-theme="dark"] .boarding-pass-card,
[data-theme="dark"] .boarding-pass-card {
  background: #0d172b !important;
  border: 2px solid #10b981 !important;
}

.smartphone-screen[data-theme="dark"] .kitchen-order-ticket,
.smartphone-device[data-theme="dark"] .kitchen-order-ticket,
[data-theme="dark"] .kitchen-order-ticket {
  background: #0d172b !important;
  border: 1.5px solid #ea580c !important;
  border-left: 5px solid #ea580c !important;
}

.smartphone-screen[data-theme="dark"] .manifest-row-card,
.smartphone-device[data-theme="dark"] .manifest-row-card,
[data-theme="dark"] .manifest-row-card {
  background: #0d172b !important;
  border: 1.5px solid rgba(245, 158, 11, 0.25) !important;
  color: #f8fafc !important;
}

.smartphone-screen[data-theme="dark"] .mobile-sheet,
.smartphone-device[data-theme="dark"] .mobile-sheet,
[data-theme="dark"] .mobile-sheet {
  background: #070b12 !important;
  border-top: 5px solid var(--pala-gold) !important;
  color: #f8fafc !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9) !important;
}

.smartphone-screen[data-theme="dark"] .sheet-handle,
.smartphone-device[data-theme="dark"] .sheet-handle,
[data-theme="dark"] .sheet-handle {
  background: var(--pala-gold) !important;
}

.smartphone-screen[data-theme="dark"] .smartphone-role-bar-container,
[data-theme="dark"] .smartphone-role-bar-container {
  background: #070b12 !important;
}

.smartphone-screen[data-theme="dark"] .smartphone-role-header div,
[data-theme="dark"] .smartphone-role-header div {
  color: #f8fafc !important;
}

.smartphone-screen[data-theme="dark"] .role-switcher-grid,
[data-theme="dark"] .role-switcher-grid {
  background: #070b12 !important;
  border: 2px solid rgba(245, 158, 11, 0.35) !important;
}

.smartphone-screen[data-theme="dark"] .role-switch-pill,
[data-theme="dark"] .role-switch-pill {
  background: #0d172b !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}

.smartphone-screen[data-theme="dark"] .role-switch-pill strong,
[data-theme="dark"] .role-switch-pill strong {
  color: #f8fafc !important;
}

.smartphone-screen[data-theme="dark"] .service-label {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.76rem !important;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95) !important;
  letter-spacing: 0.2px !important;
}

.smartphone-screen[data-theme="dark"] .quick-action-btn,
.smartphone-device[data-theme="dark"] .quick-action-btn,
[data-theme="dark"] .quick-action-btn,
.smartphone-screen:not([data-theme="light"]) .quick-action-btn {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95) !important;
}

.smartphone-screen[data-theme="dark"] .action-icon-circle,
.smartphone-device[data-theme="dark"] .action-icon-circle,
.smartphone-screen:not([data-theme="light"]) .action-icon-circle {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  color: #fbbf24 !important;
}

.smartphone-screen[data-theme="dark"] .modal-close,
.smartphone-screen[data-theme="dark"] .sheet-close-btn,
.smartphone-device[data-theme="dark"] .modal-close,
.smartphone-device[data-theme="dark"] .sheet-close-btn,
[data-theme="dark"] .modal-close,
[data-theme="dark"] .sheet-close-btn,
.modal-close,
.sheet-close-btn {
  background: #dc2626 !important;
  border: 2px solid #f87171 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.5) !important;
}

/* --- LIGHT MODE RULES (MODE SIANG: HEADER & FOOTER BIRU, BACKGROUND PUTIH, TEKS DISESUAIKAN) --- */
.mobile-view-wrapper[data-theme="light"],
[data-theme="light"] .mobile-view-wrapper,
[data-theme="light"] #smartphoneAppSection {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

.smartphone-device[data-theme="light"],
[data-theme="light"] .smartphone-device {
  background: #ffffff !important;
  border: 4px solid #0284c7 !important;
  box-shadow: 
    0 0 0 3px #0284c7,
    0 0 0 6px #38bdf8,
    0 25px 60px rgba(2, 132, 199, 0.25) !important;
}

/* 1. BACKGROUND LAYAR & KONTEN DI BELAKANG CARD 100% PUTIH BERSIH */
.smartphone-screen[data-theme="light"],
.smartphone-device[data-theme="light"] .smartphone-screen,
[data-theme="light"] .smartphone-screen {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
}

.smartphone-screen[data-theme="light"] .role-mobile-screen,
.smartphone-device[data-theme="light"] .role-mobile-screen,
[data-theme="light"] .role-mobile-screen,
.smartphone-screen[data-theme="light"] .role-subtab-view,
.smartphone-device[data-theme="light"] .role-subtab-view,
[data-theme="light"] .role-subtab-view {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* 2. HEADER WARNA BIRU & TULISAN DISESUAIKAN (PUTIH & EMAS TERANG) */
.smartphone-screen[data-theme="light"] .phone-status-bar,
.smartphone-device[data-theme="light"] .phone-status-bar,
[data-theme="light"] .phone-status-bar {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.25) !important;
}

.smartphone-screen[data-theme="light"] .phone-status-bar span,
.smartphone-device[data-theme="light"] .phone-status-bar span,
[data-theme="light"] .phone-status-bar span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.smartphone-screen[data-theme="light"] .dynamic-island,
.smartphone-device[data-theme="light"] .dynamic-island,
[data-theme="light"] .dynamic-island {
  background: #001e3d !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
}

.smartphone-screen[data-theme="light"] .dynamic-island #dynamicIslandText,
.smartphone-device[data-theme="light"] .dynamic-island #dynamicIslandText,
[data-theme="light"] .dynamic-island #dynamicIslandText {
  color: #fde047 !important;
  font-weight: 800 !important;
}

/* BRAND BAR & APP HEADER (SATU KESATUAN HEADER BIRU SOLID DI MODE SIANG) */
.smartphone-screen[data-theme="light"] .pala-app-brand-bar,
.smartphone-device[data-theme="light"] .pala-app-brand-bar,
[data-theme="light"] .pala-app-brand-bar {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.smartphone-screen[data-theme="light"] .pala-app-brand-title,
.smartphone-device[data-theme="light"] .pala-app-brand-title,
[data-theme="light"] .pala-app-brand-title {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.smartphone-screen[data-theme="light"] .pala-app-brand-title span,
.smartphone-device[data-theme="light"] .pala-app-brand-title span,
[data-theme="light"] .pala-app-brand-title span {
  color: #fde047 !important;
  -webkit-text-fill-color: #fde047 !important;
  background: none !important;
}

.smartphone-screen[data-theme="light"] .pala-app-brand-sub,
.smartphone-device[data-theme="light"] .pala-app-brand-sub,
[data-theme="light"] .pala-app-brand-sub {
  color: #e0f2fe !important;
  font-weight: 600 !important;
  font-size: 0.72rem !important;
}

.smartphone-screen[data-theme="light"] .pala-app-brand-logo,
.smartphone-device[data-theme="light"] .pala-app-brand-logo,
[data-theme="light"] .pala-app-brand-logo {
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
}

.smartphone-screen[data-theme="light"] .pala-app-brand-badge,
.smartphone-device[data-theme="light"] .pala-app-brand-badge,
[data-theme="light"] .pala-app-brand-badge {
  background: #fde047 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  border: 1px solid #f59e0b !important;
}

/* KEPALA APLIKASI CUSTOMER (MOBILE APP HEADER) RESMI WARNA BIRU SOLID MELENGKUNG */
.smartphone-screen[data-theme="light"] .mobile-app-header,
.smartphone-device[data-theme="light"] .mobile-app-header,
[data-theme="light"] .mobile-app-header {
  background: linear-gradient(180deg, #0369a1 0%, #0284c7 100%) !important;
  border-radius: 0 0 24px 24px !important;
  padding: 0.85rem 1.25rem 1.35rem 1.25rem !important;
  margin-bottom: 0.95rem !important;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.32) !important;
}

.smartphone-screen[data-theme="light"] .mobile-app-header .mobile-user-greeting,
.smartphone-device[data-theme="light"] .mobile-app-header .mobile-user-greeting {
  margin-bottom: 0.75rem !important;
}

.smartphone-screen[data-theme="light"] .mobile-user-greeting div:first-child,
.smartphone-device[data-theme="light"] .mobile-user-greeting div:first-child,
[data-theme="light"] .mobile-user-greeting div:first-child {
  color: #e0f2fe !important;
  font-weight: 600 !important;
}

.smartphone-screen[data-theme="light"] #mobileCustName,
.smartphone-device[data-theme="light"] #mobileCustName,
[data-theme="light"] #mobileCustName {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.smartphone-screen[data-theme="light"] .user-avatar-chip .avatar-circle,
.smartphone-device[data-theme="light"] .user-avatar-chip .avatar-circle {
  background: rgba(255, 255, 255, 0.25) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.smartphone-screen[data-theme="light"] .mobile-app-header [style*="background: rgba(0, 210, 255, 0.12)"],
.smartphone-device[data-theme="light"] .mobile-app-header [style*="background: rgba(0, 210, 255, 0.12)"] {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.smartphone-screen[data-theme="light"] .account-theme-btn,
.smartphone-device[data-theme="light"] .account-theme-btn,
[data-theme="light"] .account-theme-btn {
  background: #ffffff !important;
  color: #0284c7 !important;
  border: 2px solid #38bdf8 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.smartphone-screen[data-theme="light"] .lang-currency-switch,
.smartphone-device[data-theme="light"] .lang-currency-switch,
[data-theme="light"] .lang-currency-switch {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* SEARCH BAR PUTIH DI DALAM HEADER BIRU */
.smartphone-screen[data-theme="light"] .mobile-search-bar,
.smartphone-device[data-theme="light"] .mobile-search-bar,
[data-theme="light"] .mobile-search-bar {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 2px solid #bae6fd !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
}

.smartphone-screen[data-theme="light"] .mobile-search-bar span:first-child,
.smartphone-device[data-theme="light"] .mobile-search-bar span:first-child {
  color: #0284c7 !important;
  font-size: 1.05rem !important;
}

.smartphone-screen[data-theme="light"] .mobile-search-bar span:last-child,
.smartphone-device[data-theme="light"] .mobile-search-bar span:last-child {
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
}

/* 3. FOOTER (BOTTOM NAVIGATION) WARNA BIRU & TULISAN DISESUAIKAN */
.smartphone-screen[data-theme="light"] .mobile-bottom-nav,
.smartphone-device[data-theme="light"] .mobile-bottom-nav,
[data-theme="light"] .mobile-bottom-nav,
.smartphone-screen[data-theme="light"] .driver-bottom-nav,
.smartphone-device[data-theme="light"] .driver-bottom-nav,
[data-theme="light"] .driver-bottom-nav {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%) !important;
  border-top: 3px solid #38bdf8 !important;
  box-shadow: 0 -8px 24px rgba(2, 132, 199, 0.35) !important;
}

.smartphone-screen[data-theme="light"] .bottom-nav-item,
.smartphone-device[data-theme="light"] .bottom-nav-item,
[data-theme="light"] .bottom-nav-item {
  color: #e0f2fe !important;
  opacity: 0.92 !important;
}

.smartphone-screen[data-theme="light"] .bottom-nav-item span,
.smartphone-device[data-theme="light"] .bottom-nav-item span,
[data-theme="light"] .bottom-nav-item span {
  color: #e0f2fe !important;
  font-weight: 700 !important;
  font-size: 0.7rem !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

.smartphone-screen[data-theme="light"] .bottom-nav-item.active,
.smartphone-device[data-theme="light"] .bottom-nav-item.active,
[data-theme="light"] .bottom-nav-item.active {
  color: #fde047 !important;
  opacity: 1 !important;
}

.smartphone-screen[data-theme="light"] .bottom-nav-item.active span,
.smartphone-device[data-theme="light"] .bottom-nav-item.active span,
[data-theme="light"] .bottom-nav-item.active span {
  color: #fde047 !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

.smartphone-screen[data-theme="light"] .bottom-nav-item:hover,
.smartphone-device[data-theme="light"] .bottom-nav-item:hover,
[data-theme="light"] .bottom-nav-item:hover {
  color: #ffffff !important;
}

.smartphone-screen[data-theme="light"] .bottom-nav-item:hover span,
.smartphone-device[data-theme="light"] .bottom-nav-item:hover span,
[data-theme="light"] .bottom-nav-item:hover span {
  color: #ffffff !important;
}

.smartphone-screen[data-theme="light"] .phone-home-indicator,
.smartphone-device[data-theme="light"] .phone-home-indicator,
[data-theme="light"] .phone-home-indicator {
  background: rgba(255, 255, 255, 0.85) !important;
}

/* 4. PENYESUAIAN TEKS DI ATAS BACKGROUND PUTIH AGAR SANGAT JELAS KELIHATAN */

.smartphone-screen[data-theme="light"] .role-subtab-view [style*="color:#fff"],
.smartphone-screen[data-theme="light"] .role-subtab-view [style*="color: #fff"],
.smartphone-device[data-theme="light"] .role-subtab-view [style*="color:#fff"],
.smartphone-device[data-theme="light"] .role-subtab-view [style*="color: #fff"] {
  color: #0f172a !important;
}

.smartphone-screen[data-theme="light"] .role-subtab-view strong,
.smartphone-device[data-theme="light"] .role-subtab-view strong,
[data-theme="light"] .role-subtab-view strong {
  color: #0f172a;
}

/* KARTU DOMPET WARNA EMAS AMBER BERCAHAYA DI MODE SIANG */
.smartphone-screen[data-theme="light"] .mobile-wallet-card,
.smartphone-device[data-theme="light"] .mobile-wallet-card,
[data-theme="light"] .mobile-wallet-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 40%, #fde68a 100%) !important;
  border: 2.5px solid #f59e0b !important;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25) !important;
  color: #78350f !important;
}

.smartphone-screen[data-theme="light"] .mobile-wallet-card small,
.smartphone-device[data-theme="light"] .mobile-wallet-card small,
[data-theme="light"] .mobile-wallet-card small {
  color: #92400e !important;
  font-weight: 800 !important;
}

.smartphone-screen[data-theme="light"] #mobileCustWalletBalance,
.smartphone-device[data-theme="light"] #mobileCustWalletBalance,
[data-theme="light"] #mobileCustWalletBalance {
  color: #047857 !important;
  font-weight: 800 !important;
  font-size: 1.45rem !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

/* BANNER FITUR TIKET TERUSAN WARNA BIRU BAHARI SEGAR DI MODE SIANG */
.smartphone-screen[data-theme="light"] .intermodal-banner-card,
.smartphone-device[data-theme="light"] .intermodal-banner-card,
[data-theme="light"] .intermodal-banner-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%) !important;
  border: 2px solid #0284c7 !important;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.18) !important;
}

[data-theme="light"] .intermodal-badge-main {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: 1px solid #0369a1 !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25) !important;
}

[data-theme="light"] .intermodal-badge-discount {
  background: #ef4444 !important;
  color: #ffffff !important;
  border: 1px solid #dc2626 !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25) !important;
}

[data-theme="light"] .intermodal-action-hint {
  color: #0284c7 !important;
}

[data-theme="light"] .intermodal-card-title {
  color: #0c4a6e !important;
  font-weight: 800 !important;
}

[data-theme="light"] .intermodal-card-desc {
  color: #0369a1 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .intermodal-bottom-row {
  border-top: 1px dashed #7dd3fc !important;
}

[data-theme="light"] .intermodal-multimodal-tag {
  background: #ffffff !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .intermodal-price-old {
  color: #64748b !important;
}

[data-theme="light"] .intermodal-price-now {
  color: #047857 !important;
}

.smartphone-screen[data-theme="light"] .intermodal-banner-card strong,
.smartphone-device[data-theme="light"] .intermodal-banner-card strong,
[data-theme="light"] .intermodal-banner-card strong {
  color: #0c4a6e !important;
  font-weight: 800 !important;
}

.smartphone-screen[data-theme="light"] .intermodal-banner-card small,
.smartphone-device[data-theme="light"] .intermodal-banner-card small,
[data-theme="light"] .intermodal-banner-card small {
  color: #0369a1 !important;
  font-weight: 600 !important;
}

.smartphone-screen[data-theme="light"] .intermodal-badge-pill,
.smartphone-device[data-theme="light"] .intermodal-badge-pill,
[data-theme="light"] .intermodal-badge-pill {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: 1px solid #0369a1 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .intermodal-sheet-summary-bar {
  background: #ffffff !important;
  border: 2px solid #0284c7 !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15) !important;
}

[data-theme="light"] .intermodal-sheet-label {
  color: #64748b !important;
}

[data-theme="light"] .intermodal-sheet-price {
  color: #047857 !important;
}

[data-theme="light"] .intermodal-sheet-oldprice {
  color: #94a3b8 !important;
}

/* BANNER PROMO WARNA BIRU ROYAL CERIA DI MODE SIANG */
.smartphone-screen[data-theme="light"] .mobile-promo-card,
.smartphone-device[data-theme="light"] .mobile-promo-card,
[data-theme="light"] .mobile-promo-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%) !important;
  border: 2.5px solid #3b82f6 !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.22) !important;
}

.smartphone-screen[data-theme="light"] .mobile-promo-card strong,
.smartphone-device[data-theme="light"] .mobile-promo-card strong,
[data-theme="light"] .mobile-promo-card strong {
  color: #1e3a8a !important;
  font-weight: 800 !important;
}

.smartphone-screen[data-theme="light"] .mobile-promo-card small,
.smartphone-device[data-theme="light"] .mobile-promo-card small,
[data-theme="light"] .mobile-promo-card small {
  color: #1d4ed8 !important;
  font-weight: 700 !important;
}

/* WALLET QUICK ACTION BUTTONS WARNA-WARNI DI MODE SIANG */
.smartphone-screen[data-theme="light"] .quick-action-btn:nth-child(1) .action-icon-circle,
.smartphone-device[data-theme="light"] .quick-action-btn:nth-child(1) .action-icon-circle,
[data-theme="light"] .quick-action-btn:nth-child(1) .action-icon-circle {
  background: #dcfce7 !important;
  border: 1.5px solid #10b981 !important;
  color: #059669 !important;
}
.smartphone-screen[data-theme="light"] .quick-action-btn:nth-child(1) span,
.smartphone-device[data-theme="light"] .quick-action-btn:nth-child(1) span,
[data-theme="light"] .quick-action-btn:nth-child(1) span {
  color: #059669 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

.smartphone-screen[data-theme="light"] .quick-action-btn:nth-child(2) .action-icon-circle,
.smartphone-device[data-theme="light"] .quick-action-btn:nth-child(2) .action-icon-circle,
[data-theme="light"] .quick-action-btn:nth-child(2) .action-icon-circle {
  background: #e0f2fe !important;
  border: 1.5px solid #0284c7 !important;
  color: #0284c7 !important;
}
.smartphone-screen[data-theme="light"] .quick-action-btn:nth-child(2) span,
.smartphone-device[data-theme="light"] .quick-action-btn:nth-child(2) span,
[data-theme="light"] .quick-action-btn:nth-child(2) span {
  color: #0284c7 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

.smartphone-screen[data-theme="light"] .quick-action-btn:nth-child(3) .action-icon-circle,
.smartphone-device[data-theme="light"] .quick-action-btn:nth-child(3) .action-icon-circle,
[data-theme="light"] .quick-action-btn:nth-child(3) .action-icon-circle {
  background: #fef3c7 !important;
  border: 1.5px solid #f59e0b !important;
  color: #d97706 !important;
}
.smartphone-screen[data-theme="light"] .quick-action-btn:nth-child(3) span,
.smartphone-device[data-theme="light"] .quick-action-btn:nth-child(3) span,
[data-theme="light"] .quick-action-btn:nth-child(3) span {
  color: #d97706 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

.smartphone-screen[data-theme="light"] .quick-action-btn:nth-child(4) .action-icon-circle,
.smartphone-device[data-theme="light"] .quick-action-btn:nth-child(4) .action-icon-circle,
[data-theme="light"] .quick-action-btn:nth-child(4) .action-icon-circle {
  background: #fee2e2 !important;
  border: 1.5px solid #ef4444 !important;
  color: #dc2626 !important;
}
.smartphone-screen[data-theme="light"] .quick-action-btn:nth-child(4) span,
.smartphone-device[data-theme="light"] .quick-action-btn:nth-child(4) span,
[data-theme="light"] .quick-action-btn:nth-child(4) span {
  color: #dc2626 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

/* =====================================================================
   MENU DAN TULISAN WARNA-WARNI DI MODE SIANG (SESUAI REQUEST USER)
===================================================================== */
/* 1. PALA Ride - HIJAU SEGAR EMERALD */
.smartphone-screen[data-theme="light"] .service-item-btn.pala-ride .service-label,
.smartphone-device[data-theme="light"] .service-item-btn.pala-ride .service-label,
[data-theme="light"] .service-item-btn.pala-ride .service-label {
  color: #059669 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

/* 2. PALA Car - BIRU CYAN TERANG */
.smartphone-screen[data-theme="light"] .service-item-btn.pala-car .service-label,
.smartphone-device[data-theme="light"] .service-item-btn.pala-car .service-label,
[data-theme="light"] .service-item-btn.pala-car .service-label {
  color: #0284c7 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

/* 3. Tiket Kapal - BIRU BAHARI OCEAN */
.smartphone-screen[data-theme="light"] .service-item-btn.pala-boat .service-label,
.smartphone-device[data-theme="light"] .service-item-btn.pala-boat .service-label,
[data-theme="light"] .service-item-btn.pala-boat .service-label {
  color: #1d4ed8 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

/* 4. Sewa Carter - ROYAL INDIGO */
.smartphone-screen[data-theme="light"] .service-item-btn.pala-charter .service-label,
.smartphone-device[data-theme="light"] .service-item-btn.pala-charter .service-label,
[data-theme="light"] .service-item-btn.pala-charter .service-label {
  color: #4f46e5 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

/* 5. Kargo Laut - UNGU VIOLET MODERN */
.smartphone-screen[data-theme="light"] .service-item-btn.pala-cargo .service-label,
.smartphone-device[data-theme="light"] .service-item-btn.pala-cargo .service-label,
[data-theme="light"] .service-item-btn.pala-cargo .service-label {
  color: #7c3aed !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

/* 6. PALA Food - ORANYE CABAI PEDAS */
.smartphone-screen[data-theme="light"] .service-item-btn.pala-food .service-label,
.smartphone-device[data-theme="light"] .service-item-btn.pala-food .service-label,
[data-theme="light"] .service-item-btn.pala-food .service-label {
  color: #ea580c !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

/* 7. Pulsa & PLN - PINK FUCHSIA MAGENTA */
.smartphone-screen[data-theme="light"] .service-item-btn.pala-pulsa .service-label,
.smartphone-device[data-theme="light"] .service-item-btn.pala-pulsa .service-label,
[data-theme="light"] .service-item-btn.pala-pulsa .service-label {
  color: #c026d3 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

/* 8. Isi Saldo - KUNING EMAS PALA */
.smartphone-screen[data-theme="light"] .service-item-btn.pala-topup .service-label,
.smartphone-device[data-theme="light"] .service-item-btn.pala-topup .service-label,
[data-theme="light"] .service-item-btn.pala-topup .service-label {
  color: #d97706 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

/* Hover Efek Warna Warni */
.smartphone-screen[data-theme="light"] .service-item-btn:hover,
.smartphone-device[data-theme="light"] .service-item-btn:hover {
  background: rgba(2, 132, 199, 0.08);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

/* TOMBOL CLOSE POPUP DI MODE SIANG: SANGAT MENCOROK MERAH & JELAS */
.smartphone-screen[data-theme="light"] .modal-close,
.smartphone-screen[data-theme="light"] .sheet-close-btn,
.smartphone-device[data-theme="light"] .modal-close,
.smartphone-device[data-theme="light"] .sheet-close-btn,
[data-theme="light"] .modal-close,
[data-theme="light"] .sheet-close-btn {
  background: #fee2e2 !important;
  border: 2px solid #ef4444 !important;
  color: #dc2626 !important;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25) !important;
}

.smartphone-screen[data-theme="light"] .modal-close svg,
.smartphone-screen[data-theme="light"] .sheet-close-btn svg,
[data-theme="light"] .modal-close svg,
[data-theme="light"] .sheet-close-btn svg {
  stroke: #dc2626 !important;
}

.smartphone-screen[data-theme="light"] .modal-close:hover,
.smartphone-screen[data-theme="light"] .sheet-close-btn:hover,
[data-theme="light"] .modal-close:hover,
[data-theme="light"] .sheet-close-btn:hover {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.5) !important;
}

.smartphone-screen[data-theme="light"] .modal-close:hover svg,
.smartphone-screen[data-theme="light"] .sheet-close-btn:hover svg,
[data-theme="light"] .modal-close:hover svg,
[data-theme="light"] .sheet-close-btn:hover svg {
  stroke: #ffffff !important;
}

/* HEADER KARTU DRIVER, NAKHODA & WARUNG RESMI WARNA BIRU DI MODE SIANG */
.smartphone-screen[data-theme="light"] .driver-status-card,
.smartphone-device[data-theme="light"] .driver-status-card,
[data-theme="light"] .driver-status-card {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border: 2.5px solid #38bdf8 !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.28) !important;
  color: #ffffff !important;
}

.smartphone-screen[data-theme="light"] .driver-status-card strong,
.smartphone-device[data-theme="light"] .driver-status-card strong,
[data-theme="light"] .driver-status-card strong {
  color: #ffffff !important;
}

.smartphone-screen[data-theme="light"] .driver-status-card small,
.smartphone-device[data-theme="light"] .driver-status-card small,
[data-theme="light"] .driver-status-card small {
  color: #e0f2fe !important;
}

.smartphone-screen[data-theme="light"] .captain-vessel-card,
.smartphone-device[data-theme="light"] .captain-vessel-card,
[data-theme="light"] .captain-vessel-card {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border: 2.5px solid #38bdf8 !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.28) !important;
  color: #ffffff !important;
}

.smartphone-screen[data-theme="light"] .captain-vessel-card strong,
.smartphone-device[data-theme="light"] .captain-vessel-card strong,
[data-theme="light"] .captain-vessel-card strong {
  color: #ffffff !important;
}

.smartphone-screen[data-theme="light"] .captain-vessel-card small,
.smartphone-device[data-theme="light"] .captain-vessel-card small,
[data-theme="light"] .captain-vessel-card small {
  color: #e0f2fe !important;
}

.smartphone-screen[data-theme="light"] .merchant-kitchen-header,
.smartphone-device[data-theme="light"] .merchant-kitchen-header,
[data-theme="light"] .merchant-kitchen-header {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border: 2.5px solid #38bdf8 !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.28) !important;
  color: #ffffff !important;
}

.smartphone-screen[data-theme="light"] .merchant-kitchen-header strong,
.smartphone-device[data-theme="light"] .merchant-kitchen-header strong,
[data-theme="light"] .merchant-kitchen-header strong {
  color: #ffffff !important;
}

.smartphone-screen[data-theme="light"] .merchant-kitchen-header small,
.smartphone-device[data-theme="light"] .merchant-kitchen-header small,
[data-theme="light"] .merchant-kitchen-header small {
  color: #e0f2fe !important;
}

/* KARTU RIWAYAT PESANAN WARNA-WARNI DI MODE SIANG */
.smartphone-screen[data-theme="light"] .manifest-row-card:nth-child(1),
.smartphone-device[data-theme="light"] .manifest-row-card:nth-child(1),
[data-theme="light"] .manifest-row-card:nth-child(1) {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%) !important;
  border: 2px solid #10b981 !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.18) !important;
  color: #065f46 !important;
}
.smartphone-screen[data-theme="light"] .manifest-row-card:nth-child(1) strong {
  color: #065f46 !important;
}
.smartphone-screen[data-theme="light"] .manifest-row-card:nth-child(1) div {
  color: #047857 !important;
}

.smartphone-screen[data-theme="light"] .manifest-row-card:nth-child(2),
.smartphone-device[data-theme="light"] .manifest-row-card:nth-child(2),
[data-theme="light"] .manifest-row-card:nth-child(2) {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%) !important;
  border: 2px solid #ea580c !important;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.18) !important;
  color: #9a3412 !important;
}
.smartphone-screen[data-theme="light"] .manifest-row-card:nth-child(2) strong {
  color: #9a3412 !important;
}
.smartphone-screen[data-theme="light"] .manifest-row-card:nth-child(2) div {
  color: #c2410c !important;
}

.smartphone-screen[data-theme="light"] .manifest-row-card,
.smartphone-device[data-theme="light"] .manifest-row-card,
[data-theme="light"] .manifest-row-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
  border: 2px solid #10b981 !important;
}

/* KARTU METRIK DRIVER WARNA TOSKA SEGAR DI MODE SIANG */
.smartphone-screen[data-theme="light"] .driver-metric-box,
.smartphone-device[data-theme="light"] .driver-metric-box,
[data-theme="light"] .driver-metric-box {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%, #99f6e4 100%) !important;
  border: 2px solid #14b8a6 !important;
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.18) !important;
}
.smartphone-screen[data-theme="light"] .driver-metric-box small {
  color: #115e59 !important;
  font-weight: 700 !important;
}
.smartphone-screen[data-theme="light"] .driver-metric-box div {
  color: #0f766e !important;
  font-weight: 800 !important;
}

/* KARTU JADWAL KAPAL WARNA BIRU SAMUDRA DI MODE SIANG */
.smartphone-screen[data-theme="light"] .boat-schedule-card,
.smartphone-device[data-theme="light"] .boat-schedule-card,
[data-theme="light"] .boat-schedule-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%) !important;
  border: 2.5px solid #0284c7 !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.2) !important;
}

.smartphone-screen[data-theme="light"] .boat-schedule-card .schedule-depart-time,
.smartphone-device[data-theme="light"] .boat-schedule-card .schedule-depart-time {
  color: #0369a1 !important;
  font-weight: 800 !important;
}
.smartphone-screen[data-theme="light"] .boat-schedule-card strong {
  color: #075985 !important;
}
.smartphone-screen[data-theme="light"] .boat-schedule-card small {
  color: #0284c7 !important;
}

/* KARTU KATALOG KULINER WARNA ORANYE PEACH DI MODE SIANG */
.smartphone-screen[data-theme="light"] .food-catalog-card,
.smartphone-device[data-theme="light"] .food-catalog-card,
[data-theme="light"] .food-catalog-card {
  background: linear-gradient(135deg, #fffbeb 0%, #ffedd5 50%, #fed7aa 100%) !important;
  border: 2px solid #f97316 !important;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.18) !important;
}

.smartphone-screen[data-theme="light"] .food-title,
.smartphone-device[data-theme="light"] .food-title {
  color: #9a3412 !important;
  font-weight: 800 !important;
}
.smartphone-screen[data-theme="light"] .food-desc {
  color: #c2410c !important;
}
.smartphone-screen[data-theme="light"] .food-price {
  color: #ea580c !important;
  font-weight: 800 !important;
}

/* LEMBAR BOTTOM SHEET DI MODE SIANG */
.smartphone-screen[data-theme="light"] .mobile-sheet,
.smartphone-device[data-theme="light"] .mobile-sheet,
[data-theme="light"] .mobile-sheet {
  background: #ffffff !important;
  border-top: 4px solid #0284c7 !important;
  color: #0f172a !important;
}
.smartphone-screen[data-theme="light"] .mobile-sheet strong {
  color: #0f172a !important;
}

/* KARTU BOARDING PASS TIKET WARNA HIJAU ZAMRUD DI MODE SIANG */
.smartphone-screen[data-theme="light"] .boarding-pass-card,
.smartphone-device[data-theme="light"] .boarding-pass-card,
[data-theme="light"] .boarding-pass-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%) !important;
  border: 2.5px solid #059669 !important;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.22) !important;
}
.smartphone-screen[data-theme="light"] .boarding-pass-card strong {
  color: #065f46 !important;
}

/* KARTU TIKET PESANAN DAPUR WARNA KUNING EMAS DAPUR DI MODE SIANG */
.smartphone-screen[data-theme="light"] .kitchen-order-ticket,
.smartphone-device[data-theme="light"] .kitchen-order-ticket,
[data-theme="light"] .kitchen-order-ticket {
  background: linear-gradient(135deg, #fefce8 0%, #fef08a 50%, #fde047 100%) !important;
  border: 2px solid #eab308 !important;
  border-left: 6px solid #ea580c !important;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.2) !important;
}
.smartphone-screen[data-theme="light"] .kitchen-order-ticket strong {
  color: #854d0e !important;
  font-weight: 800 !important;
}
.smartphone-screen[data-theme="light"] .kitchen-order-ticket div {
  color: #713f12 !important;
}

/* KARTU RADAR SEARCH DRIVER DI MODE SIANG */
.smartphone-screen[data-theme="light"] .radar-search-container,
.smartphone-device[data-theme="light"] .radar-search-container,
[data-theme="light"] .radar-search-container {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
  border: 2px dashed #0284c7 !important;
  color: #0369a1 !important;
}

.smartphone-screen[data-theme="light"] .incoming-order-popup,
.smartphone-device[data-theme="light"] .incoming-order-popup,
[data-theme="light"] .incoming-order-popup {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  border: 2.5px solid #0284c7 !important;
  color: #0369a1 !important;
}

/* TOOLBAR PEMILIH APLIKASI WARNA-WARNI DI MODE SIANG */
.smartphone-screen[data-theme="light"] .smartphone-role-bar-container,
[data-theme="light"] .smartphone-role-bar-container {
  background: #ffffff !important;
}
.smartphone-screen[data-theme="light"] .smartphone-role-header div,
[data-theme="light"] .smartphone-role-header div {
  color: #0f172a !important;
}
.smartphone-screen[data-theme="light"] .role-switcher-grid,
[data-theme="light"] .role-switcher-grid {
  background: #ffffff !important;
  border: 2px solid #bae6fd !important;
}
.smartphone-screen[data-theme="light"] .role-switch-pill,
[data-theme="light"] .role-switch-pill {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
}
.smartphone-screen[data-theme="light"] .role-switch-pill strong,
[data-theme="light"] .role-switch-pill strong {
  color: #0f172a !important;
}
.smartphone-screen[data-theme="light"] .role-switch-pill small,
[data-theme="light"] .role-switch-pill small {
  color: #64748b !important;
}

.smartphone-screen[data-theme="light"] .role-switch-pill#pillCustomer.active,
[data-theme="light"] .role-switch-pill#pillCustomer.active {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd) !important;
  border: 2.5px solid #0284c7 !important;
}
.smartphone-screen[data-theme="light"] .role-switch-pill#pillCustomer.active strong,
[data-theme="light"] .role-switch-pill#pillCustomer.active strong {
  color: #0369a1 !important;
}

.smartphone-screen[data-theme="light"] .role-switch-pill#pillDriver.active,
[data-theme="light"] .role-switch-pill#pillDriver.active {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
  border: 2.5px solid #10b981 !important;
}
.smartphone-screen[data-theme="light"] .role-switch-pill#pillDriver.active strong,
[data-theme="light"] .role-switch-pill#pillDriver.active strong {
  color: #065f46 !important;
}

.smartphone-screen[data-theme="light"] .role-switch-pill#pillCaptain.active,
[data-theme="light"] .role-switch-pill#pillCaptain.active {
  background: linear-gradient(135deg, #eff6ff, #bfdbfe) !important;
  border: 2.5px solid #3b82f6 !important;
}
.smartphone-screen[data-theme="light"] .role-switch-pill#pillCaptain.active strong,
[data-theme="light"] .role-switch-pill#pillCaptain.active strong {
  color: #1e3a8a !important;
}

.smartphone-screen[data-theme="light"] .role-switch-pill#pillMerchant.active,
[data-theme="light"] .role-switch-pill#pillMerchant.active {
  background: linear-gradient(135deg, #fff7ed, #ffedd5) !important;
  border: 2.5px solid #ea580c !important;
}
.smartphone-screen[data-theme="light"] .role-switch-pill#pillMerchant.active strong,
[data-theme="light"] .role-switch-pill#pillMerchant.active strong {
  color: #9a3412 !important;
}

/* =====================================================================
   KARTU-KARTU MOBILE LAINNYA WARNA-WARNI DI MODE SIANG
   ===================================================================== */

/* 1. KARTU KOTAK PRODUK MAKANAN / MERCHANT (BOX CARD) */
.smartphone-screen[data-theme="light"] .food-box-card,
.smartphone-device[data-theme="light"] .food-box-card,
[data-theme="light"] .food-box-card {
  background: linear-gradient(135deg, #fffbeb 0%, #ffedd5 50%, #fed7aa 100%) !important;
  border: 2px solid #f97316 !important;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.18) !important;
}

.smartphone-screen[data-theme="light"] .food-box-title,
.smartphone-device[data-theme="light"] .food-box-title,
[data-theme="light"] .food-box-title {
  color: #9a3412 !important;
  font-weight: 800 !important;
}

.smartphone-screen[data-theme="light"] .food-box-desc,
.smartphone-device[data-theme="light"] .food-box-desc,
[data-theme="light"] .food-box-desc {
  color: #c2410c !important;
}

.smartphone-screen[data-theme="light"] .food-price-active,
.smartphone-device[data-theme="light"] .food-price-active,
[data-theme="light"] .food-price-active {
  color: #ea580c !important;
  font-weight: 800 !important;
}

.smartphone-screen[data-theme="light"] .merchant-box-card,
.smartphone-device[data-theme="light"] .merchant-box-card,
[data-theme="light"] .merchant-box-card {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%) !important;
  border: 2px solid #ea580c !important;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.18) !important;
}

/* 2. RADAR AIS MARITIM KAPAL RESMI */
.smartphone-screen[data-theme="light"] .marine-ais-radar-card,
.smartphone-device[data-theme="light"] .marine-ais-radar-card,
[data-theme="light"] .marine-ais-radar-card {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0284c7 100%) !important;
  border: 2.5px solid #38bdf8 !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.3) !important;
  color: #ffffff !important;
}

.smartphone-screen[data-theme="light"] .marine-ais-radar-card strong,
.smartphone-device[data-theme="light"] .marine-ais-radar-card strong,
[data-theme="light"] .marine-ais-radar-card strong {
  color: #ffffff !important;
}

/* 3. BANNER PROMO KULINER & INTERMODAL STEP */
.smartphone-screen[data-theme="light"] .food-promo-banner,
.smartphone-device[data-theme="light"] .food-promo-banner,
[data-theme="light"] .food-promo-banner {
  background: linear-gradient(135deg, #fee2e2 0%, #fef3c7 100%) !important;
  border: 2px solid #f59e0b !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2) !important;
}

.smartphone-screen[data-theme="light"] .food-promo-banner strong,
[data-theme="light"] .food-promo-banner strong {
  color: #b45309 !important;
  font-weight: 800 !important;
}

.smartphone-screen[data-theme="light"] .food-promo-banner small,
[data-theme="light"] .food-promo-banner small {
  color: #78350f !important;
}

.smartphone-screen[data-theme="light"] .intermodal-step-content,
.smartphone-device[data-theme="light"] .intermodal-step-content,
[data-theme="light"] .intermodal-step-content {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  border: 1.5px solid #38bdf8 !important;
  color: #0f172a !important;
}

/* 4. DRIVER ACTIVE CONTROLS & OFFLINE CARD */
.smartphone-screen[data-theme="light"] #driverActiveTripControls,
[data-theme="light"] #driverActiveTripControls {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%) !important;
  border: 2px solid #14b8a6 !important;
  color: #0f172a !important;
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.22) !important;
}

.smartphone-screen[data-theme="light"] #driverActiveTripControls strong,
[data-theme="light"] #driverActiveTripControls strong {
  color: #0f766e !important;
}

.smartphone-screen[data-theme="light"] #driverOfflineNotice,
[data-theme="light"] #driverOfflineNotice {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
  border: 2px solid #dc2626 !important;
  color: #0f172a !important;
}

.smartphone-screen[data-theme="light"] #driverOfflineNotice strong,
[data-theme="light"] #driverOfflineNotice strong {
  color: #991b1b !important;
}

/* 5. METODE PENGANTARAN (DELIVERY METHOD SWITCH) */
.smartphone-screen[data-theme="light"] .delivery-method-switch,
[data-theme="light"] .delivery-method-switch {
  background: #e0f2fe !important;
  border: 1.5px solid #38bdf8 !important;
}

.smartphone-screen[data-theme="light"] .delivery-method-btn,
[data-theme="light"] .delivery-method-btn {
  color: #0369a1 !important;
  font-weight: 700 !important;
}

.smartphone-screen[data-theme="light"] .delivery-method-btn.active,
[data-theme="light"] .delivery-method-btn.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3) !important;
}

/* 6. POPUP BOTTOM SHEET ITEMS (PULSA & FLOATING CART) */
.smartphone-screen[data-theme="light"] #sheet-pulsa .item-row:nth-child(1),
[data-theme="light"] #sheet-pulsa .item-row:nth-child(1) {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border: 2px solid #f59e0b !important;
  color: #78350f !important;
}

.smartphone-screen[data-theme="light"] #sheet-pulsa .item-row:nth-child(2),
[data-theme="light"] #sheet-pulsa .item-row:nth-child(2) {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
  border: 2px solid #10b981 !important;
  color: #065f46 !important;
}

.smartphone-screen[data-theme="light"] .mobile-sheet,
.smartphone-device[data-theme="light"] .mobile-sheet,
[data-theme="light"] .mobile-sheet {
  background: #ffffff !important;
  border-top: 5px solid #0284c7 !important;
  color: #0f172a !important;
}

.smartphone-screen[data-theme="light"] .sheet-handle,
.smartphone-device[data-theme="light"] .sheet-handle,
[data-theme="light"] .sheet-handle {
  background: #0284c7 !important;
}

/* FLOATING CART SUMMARY */
.smartphone-screen[data-theme="light"] #custSubHome ~ * [style*="background: rgba(16, 28, 59, 0.95)"],
.smartphone-screen[data-theme="light"] #sheet-kuliner [style*="background: rgba(16, 28, 59, 0.95)"],
[data-theme="light"] #sheet-kuliner [style*="background: rgba(16, 28, 59, 0.95)"] {
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%) !important;
  border: 2px solid #ea580c !important;
  color: #9a3412 !important;
}

/* =======================================================
   STAR RATING & CUSTOMER TESTIMONIAL STYLES
   ======================================================= */
.star-rating-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 2.3rem;
  line-height: 1;
  user-select: none;
  margin: 10px 0;
}

.star-btn {
  cursor: pointer;
  color: #cbd5e1;
  transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.15s ease;
  display: inline-block;
  padding: 2px;
}

.star-btn:hover {
  transform: scale(1.25);
}

.star-btn.active {
  color: #f59e0b;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.compliment-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: 9999px;
  font-size: 0.74rem;
  cursor: pointer;
  color: var(--text-dim, #64748b);
  transition: all 0.2s ease;
  user-select: none;
}

.compliment-chip:hover {
  background: rgba(2, 132, 199, 0.18);
  border-color: #0284c7;
}

.compliment-chip.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* Mode Siang untuk Rating Modal */
[data-theme="light"] #rideRatingModal .modal-content {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 2px solid #0284c7 !important;
}

[data-theme="light"] .compliment-chip {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

[data-theme="light"] .compliment-chip.active {
  background: #0284c7 !important;
  color: #ffffff !important;
}

/* Pulsing Badge untuk Arrival Confirmation */
@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.pulse-arrival {
  animation: pulseGlow 1.8s infinite;
}






