/* ==========================================================================
   FuelPulse Modern Dark Glassmorphic Design System
   ========================================================================== */

:root {
  /* High-Contrast Modern Light Theme Palette */
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-header: rgba(255, 255, 255, 0.95);
  --border-color: #cbd5e1;
  --border-color-glow: rgba(234, 88, 12, 0.4);

  --accent-orange: #ea580c; /* Deep vivid orange */
  --accent-orange-glow: rgba(234, 88, 12, 0.25);
  --accent-amber: #d97706;
  --accent-green: #059669; /* Deep emerald green */
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;

  --text-primary: #0f172a; /* High contrast dark text */
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* Glassmorphism Light */
  --backdrop-blur: blur(16px);
  --shadow-main: 0 10px 30px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 4px 18px rgba(234, 88, 12, 0.3);

  /* Typography */
  --font-heading: 'Cairo', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* App Layout */
.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  position: relative;
}

/* App Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 20px;
  background: var(--bg-header);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ff6b00 0%, #ff9e00 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: var(--shadow-glow);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 2px 0;
}

.brand-text .tagline {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: block;
  line-height: 1.4;
  padding-bottom: 2px;
}

/* Search Box */
.search-box {
  position: relative;
  flex: 1;
  max-width: 460px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  pointer-events: none;
}

#location-search {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 40px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  color: #0f172a;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

#location-search:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px var(--accent-orange-glow);
}

#location-search::placeholder {
  color: var(--text-muted);
}

.icon-btn-ghost {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* Search Results Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-main);
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
  z-index: 200;
  backdrop-filter: var(--backdrop-blur);
}

.search-results-dropdown li {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #1e293b;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s ease;
}

.search-results-dropdown li:hover {
  background: #fff7ed;
}

.search-group-header {
  padding: 8px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.sitem-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffedd5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-item .sitem-icon {
  background: #dbeafe;
}

.sitem-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.sitem-title {
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sitem-sub {
  font-size: 0.76rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sbadge {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
}
.sbadge.avail { background: #d1fae5; color: #065f46; }
.sbadge.unavail { background: #fee2e2; color: #991b1b; }
.sbadge.unrep { background: #f1f5f9; color: #475569; }

.search-empty {
  padding: 14px;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

/* Theme Selector Dropdown */
.theme-selector-wrapper {
  position: relative;
}

.theme-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-main);
  list-style: none;
  width: 210px;
  overflow: hidden;
  z-index: 250;
  backdrop-filter: var(--backdrop-blur);
}

.theme-dropdown-menu li {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.theme-dropdown-menu li:hover {
  background: rgba(255, 107, 0, 0.15);
  color: var(--text-primary);
}

.theme-dropdown-menu li i {
  color: var(--accent-orange);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ff8c00 100%);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 107, 0, 0.5);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: var(--radius-md);
}

.btn-icon:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Main Layout */
.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: 380px;
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: var(--transition-normal);
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sidebar-title h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.count-badge {
  background: rgba(234, 88, 12, 0.1);
  color: var(--accent-orange);
  border: 1px solid rgba(234, 88, 12, 0.3);
}

/* Fuel Filter Chips */
.filter-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.chip.active {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.3);
}

/* Station List */
.station-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Distance source indicator */
.dist-source-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.dist-source-label i {
  color: #ea580c;
  font-size: 0.8rem;
}


/* Custom Scrollbar */
.station-list::-webkit-scrollbar,
.search-results-dropdown::-webkit-scrollbar {
  width: 6px;
}
.station-list::-webkit-scrollbar-thumb,
.search-results-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* EV Sub-filters */
.ev-chips {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-sublabel {
  font-size: 0.72rem;
  color: var(--accent-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chip-sm {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.chip-sm.active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

/* EV Connector Badges */
.ev-connectors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.plug-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 600;
}

.plug-badge i {
  margin-right: 3px;
}

.btn-get-directions {
  margin-top: 8px;
  width: 100%;
  height: 34px;
  font-size: 0.8rem;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.4);
  color: var(--accent-orange);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-get-directions:hover {
  background: var(--accent-orange);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

/* Route Panel */
.route-panel {
  padding: 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.route-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.route-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.route-title h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
}

.text-orange {
  color: var(--accent-orange);
}

.route-summary-text {
  font-size: 0.78rem;
  color: var(--accent-amber);
  font-weight: 500;
}

.route-steps-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.route-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: #334155;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-orange);
}

.route-step-item i {
  color: var(--accent-orange);
  margin-top: 2px;
}

.route-step-dist {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Station Cards (Light Mode) */
.station-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: visible;
  height: auto;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.station-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--accent-orange);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: var(--transition-fast);
}

.station-card:hover {
  background: #ffffff;
  border-color: var(--accent-orange);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.station-card.active, .station-card:hover::before {
  opacity: 1;
}

.station-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.station-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #000000;
  line-height: 1.25;
}

.station-brand {
  font-size: 0.82rem;
  color: #b45309;
  font-weight: 700;
}

.station-distance {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  border: 1.5px solid #94a3b8;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  line-height: 1.2;
}

.station-distance i {
  color: #ea580c;
  font-size: 0.78rem;
}

.station-distance .sdist-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
}

.station-distance .sdist-val {
  font-weight: 800;
  color: #0f172a;
}

.gmaps-rating-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #d97706;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.text-amber {
  color: #d97706;
}

.gmaps-verified {
  font-size: 0.68rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.fuel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.fuel-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.fuel-tag.Diesel { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.fuel-tag.Petrol { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.fuel-tag.EV     { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.fuel-tag.LPG    { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.fuel-tag.CNG    { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; }
.fuel-tag\.98    { background: #fce7f3; color: #9d174d; border: 1px solid #f9a8d4; }


.station-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  gap: 12px;
}

.empty-state i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.15);
}

.empty-state p {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Map View */
.map-view {
  flex: 1;
  position: relative;
  background: #111;
  z-index: 1;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
}

/* Floating Controls */
.floating-controls {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Status Toast Notification — Top Level Viewport Overlay, Never Covered */
.status-toast {
  position: fixed !important;
  top: 74px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: auto !important;
  right: auto !important;
  z-index: 999999 !important; /* Always on top of everything on the page */
  background: #0f172a !important; /* High contrast deep slate */
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  padding: 11px 22px !important;
  border-radius: 999px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(234, 88, 12, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  max-width: min(92vw, 580px) !important;
  text-align: center !important;
  pointer-events: auto !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  animation: toastSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  direction: rtl;
  box-sizing: border-box !important;
}

.status-toast[hidden] {
  display: none !important;
}

.toast-close-btn {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.toast-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@media (max-width: 768px) {
  .status-toast {
    top: 66px !important;
    font-size: 0.82rem !important;
    padding: 9px 16px !important;
    max-width: 95vw !important;
  }
}

/* Custom Marker Popup (Light Mode) */
.maplibregl-popup-content {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius-md) !important;
  color: #0f172a !important;
  padding: 16px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18) !important;
}

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: #ffffff !important;
}
.maplibregl-popup-anchor-top .maplibregl-popup-tip {
  border-bottom-color: #ffffff !important;
}
.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: #ffffff !important;
}
.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: #ffffff !important;
}

.marker-popup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-body);
}

.marker-popup strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.marker-popup .popup-info {
  font-size: 0.82rem;
  color: #334155;
}

/* Modal Card (Light Mode) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop[hidden], [hidden] {
  display: none !important;
}

.modal-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #0f172a;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.1rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  font-size: 1.5rem;
  color: var(--accent-orange);
}

.modal-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #0f172a;
}

.modal-desc {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
}

.modal-desc a {
  color: var(--accent-orange);
  text-decoration: none;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
}

.form-group input {
  height: 42px;
  padding: 0 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: #0f172a;
  font-size: 0.9rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-orange);
  background: #ffffff;
}

/* Custom Geographically Locked Station Markers (Exact Centered Pin Circle) */
.custom-station-marker {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  z-index: 100;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.custom-station-marker:hover {
  transform: scale(1.25);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.6);
  z-index: 999 !important;
}

/* Petrol / Fuel Station Marker (Vibrant Orange) */
.custom-station-marker.fuel-petrol {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

/* Diesel Station Marker (Royal Blue) */
.custom-station-marker.fuel-diesel {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* EV Charger Marker (Emerald Green) */
.custom-station-marker.is-ev {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

/* User Location Pulsating Marker & Bubble */
.user-location-marker {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  z-index: 25 !important;
  pointer-events: auto !important;
  will-change: transform !important;
}

.user-location-marker .dot {
  width: 20px;
  height: 20px;
  background: #2563eb;
  border: 3px solid #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 16px rgba(37, 99, 235, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.user-location-marker.is-default .dot {
  background: #ea580c;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 16px rgba(234, 88, 12, 0.95);
}

.user-location-marker .inner-core {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
}

.user-location-marker .pulse-ring {
  position: absolute;
  width: 48px;
  height: 48px;
  left: -10px;
  top: -10px;
  border: 3px solid rgba(37, 99, 235, 0.85);
  border-radius: 50%;
  animation: pulseScale 2s infinite ease-out;
  z-index: 2;
  pointer-events: none;
}

.user-location-marker.is-default .pulse-ring {
  border-color: rgba(234, 88, 12, 0.85);
}

.user-location-marker .pulse-ring-outer {
  position: absolute;
  width: 72px;
  height: 72px;
  left: -22px;
  top: -22px;
  background: rgba(37, 99, 235, 0.25);
  border-radius: 50%;
  animation: pulseScaleOuter 2s infinite ease-out 0.4s;
  z-index: 1;
  pointer-events: none;
}

.user-location-marker.is-default .pulse-ring-outer {
  background: rgba(234, 88, 12, 0.25);
}

.user-bubble-callout {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
  animation: bubbleFloat 2.2s ease-in-out infinite alternate;
  user-select: none;
  direction: rtl;
}

.user-bubble-callout:hover {
  background: #ea580c;
  border-color: #ffffff;
}

.user-bubble-callout::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.94) transparent transparent transparent;
}

@keyframes pulseScale {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes pulseScaleOuter {
  0% { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes bubbleFloat {
  0% { transform: translate(-50%, 0); }
  100% { transform: translate(-50%, -4px); }
}

/* Nav links & App launchers */
.nav-links {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.nav-links-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.nav-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.nav-btn.gmaps {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.nav-btn.gmaps:hover {
  background: #2563eb;
  color: #ffffff;
}

.nav-btn.waze {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.nav-btn.waze:hover {
  background: #059669;
  color: #ffffff;
}

.nav-btn.apple {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.nav-btn.apple:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Mobile Responsiveness */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: inline-flex;
  }

  .brand-text .tagline {
    display: block;
    font-size: 0.64rem;
    color: var(--text-secondary);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }
}

/* Supabase Auth & Reports Styles */
.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-align: center;
}

.phone-input-row {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 12px;
}

.phone-flag {
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 8px; /* RTL layout */
  padding-left: 8px;
  border-left: 1px solid #cbd5e1;
}

#phone-input, .otp-input, .report-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  width: 100%;
}

.otp-input {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  letter-spacing: 4px;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.btn-auth-primary {
  width: 100%;
  padding: 12px;
  background: var(--accent-orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.btn-auth-primary:hover { background: #d94d07; }

.btn-auth-secondary {
  width: 100%;
  padding: 10px;
  background: #f1f5f9;
  color: var(--text-primary);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.btn-auth-link {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 8px;
  display: block;
  width: 100%;
}

.auth-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-bottom: 12px;
  text-align: center;
}

.user-info-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.user-phone {
  font-weight: 700;
  font-size: 1.1rem;
  direction: ltr;
}

.role-badge {
  background: rgba(5, 150, 105, 0.1);
  color: var(--accent-green);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
  gap: 16px;
  margin-top: 8px;
}

.stab {
  background: none;
  border: none;
  padding: 10px 0;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.stab.active {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

.popup-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.fav-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #cbd5e1;
  cursor: pointer;
}

.fav-btn.active {
  color: #eab308; /* yellow star */
}

.popup-reports {
  margin-top: 12px;
  border-top: 2px solid #cbd5e1;
  padding-top: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.report-item {
  background: #ffffff;
  border: 1.5px solid #059669;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.report-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  align-items: center;
}

.badge-open {
  background: #059669;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.3);
}

.badge-closed {
  background: #dc2626;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
}

.badge-wait {
  background: #d97706;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.78rem;
}

.badge-price {
  background: #0284c7;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.78rem;
}

.report-age {
  color: #1e293b;
  background: #e2e8f0;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: auto;
}

.freshness-bar {
  height: 5px;
  background: #cbd5e1;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.freshness-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
}

.vote-row {
  display: flex;
  gap: 8px;
}

.vote-btn {
  background: rgba(0,0,0,0.05);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vote-btn:hover { background: rgba(0,0,0,0.1); }
.vote-btn.voted { cursor: not-allowed; }
.vote-btn.voted-up.active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
  font-weight: 700;
}
.vote-btn.voted-dn.active {
  background: #fef2f2;
  border-color: #ef4444;
  color: #b91c1c;
  font-weight: 700;
}
.vote-btn.disabled,
.vote-btn.voted:not(.active) {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.btn-report-open {
  width: 100%;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}
.btn-report-open:hover { background: #fff7ed; }

.no-reports, .reports-loading {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 8px;
}

.report-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.report-input {
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 10px;
  border-radius: var(--radius-md);
  margin-bottom: 4px;
}

.report-chips {
  display: flex;
  gap: 8px;
}

.rchip {
  flex: 1;
  padding: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
}
.rchip.active {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
}


/* ── Username/Password Auth Modal ─────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  border-bottom: 2px solid #e2e8f0;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.auth-tab.active {
  color: #ea580c;
  border-bottom-color: #ea580c;
}
.auth-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: #f8fafc;
  color: #0f172a;
  margin-bottom: 10px;
  outline: none;
  transition: border-color .2s;
}
.auth-input:focus {
  border-color: #ea580c;
  background: #fff;
}

/* ── High Contrast Station Card Statuses & Banners ─────────── */
.station-card.card-status-available {
  border: 2px solid #16a34a !important;
  border-right: 6px solid #16a34a !important;
  background: #ffffff !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.16) !important;
}

.station-card.card-status-unavailable {
  border: 2px solid #dc2626 !important;
  border-right: 6px solid #dc2626 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.16) !important;
}

.station-status-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.station-status-banner.banner-available {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35);
}

.station-status-banner.banner-unavailable {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}

/* ── Station Card — Latest Report Summary (Ultra High Contrast) ─── */
.card-report-summary {
  margin: 8px 0 6px;
  min-height: 0;
}

.card-report-summary.active {
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin: 10px 0 8px;
}

.card-report-summary.active.is-open {
  background: #ffffff;
  border: 2px solid #059669;
}

.card-report-summary.active.is-closed {
  background: #ffffff;
  border: 2px solid #dc2626;
}

.crs-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  font-size: 0.78rem;
}

.crs-box-title {
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.crs-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.crs-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.crs-badge.open {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.35);
}

.crs-badge.closed {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.35);
}

.crs-badge.fuel {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.3);
}

.crs-badge.wait {
  background: #d97706;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(217, 119, 6, 0.3);
}

.crs-badge.notes {
  background: #334155;
  color: #f8fafc;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.crs-age {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.crs-bar {
  height: 6px;
  background: #cbd5e1;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.crs-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .4s;
}

.crs-fill.fill-open {
  background: linear-gradient(90deg, #10b981, #059669);
}

.crs-fill.fill-closed {
  background: linear-gradient(90deg, #f87171, #dc2626);
}

/* ── Station Card — Quick Report Panel (High Contrast) ────── */
.card-quick-report {
  margin: 10px 0 4px;
  padding: 12px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
}

.qr-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.qr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.qrchip {
  padding: 5px 11px;
  border: 1.5px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all .15s ease;
}

.qrchip:hover {
  border-color: #ea580c;
  color: #ea580c;
}

.qrchip.selected {
  background: #ea580c;
  border-color: #c2410c;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

.qrchip.status-chip.avail {
  border-color: #059669;
  color: #059669;
}

.qrchip.status-chip.avail.selected {
  background: #059669;
  border-color: #047857;
  color: #ffffff;
}

.qrchip.status-chip.unavail {
  border-color: #dc2626;
  color: #dc2626;
}

.qrchip.status-chip.unavail.selected {
  background: #dc2626;
  border-color: #b91c1c;
  color: #ffffff;
}

.qr-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 0;
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35);
  transition: all .15s ease;
}

.qr-submit-btn:hover { background: #047857; }
.qr-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

.gps-link-btn {
  background: #ecfdf5;
  border: 1.5px solid #059669;
  color: #059669;
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all .15s ease;
}

.gps-link-btn:hover {
  background: #059669;
  color: #ffffff;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsiveness System
   ========================================================================== */

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1200 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  /* Prevent iOS automatic zoom on focus */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Compact Header */
  .app-header {
    height: 58px;
    padding: 0 10px;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
    gap: 6px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
  }

  .brand {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  .logo-icon {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .brand-text {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: visible !important;
    padding: 2px 0 !important;
  }

  .brand-text h1 {
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    line-height: 1.25 !important;
    margin: 0 0 1px 0 !important;
  }

  .brand-text .tagline {
    display: block !important;
    font-size: 0.56rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 135px !important;
    padding-bottom: 2px !important;
    margin-top: 1px !important;
  }

  .search-box {
    max-width: 100%;
  }

  #location-search {
    height: 36px;
    padding: 0 32px 0 32px;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }

  .btn-text {
    display: none !important;
  }

  /* All mobile action buttons unified as sleek 33px circular touch targets */
  .header-actions .btn-header-icon,
  .header-actions .search-trigger-btn,
  .header-actions .btn-header-account,
  .header-actions .btn-header-locate,
  .header-actions .btn-header-list,
  .header-actions #locate-me-btn,
  .header-actions #toggle-sidebar-btn {
    width: 33px !important;
    min-width: 33px !important;
    max-width: 33px !important;
    height: 33px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 0.85rem !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  }

  .header-actions #locate-me-btn {
    background: #ea580c !important;
    border: 1px solid #ea580c !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3) !important;
  }

  .header-actions #locate-me-btn i {
    font-size: 0.9rem !important;
    color: #ffffff !important;
  }

  .header-actions #toggle-sidebar-btn {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
  }

  .header-actions #toggle-sidebar-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
  }

  .header-actions .search-trigger-btn {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
  }

  .header-actions .btn-header-account {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
  }

  .header-actions .btn-header-account #auth-header-icon {
    font-size: 1.15rem !important;
  }

  .header-actions .account-points-pill {
    height: 33px !important;
    padding: 0 7px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    gap: 3px !important;
    border-radius: 17px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #f59e0b !important;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2) !important;
  }

  .header-actions .account-points-pill .pts-val {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
  }

  .header-actions .account-points-pill .pts-unit {
    display: none !important;
  }

  @media (max-width: 375px) {
    .app-header {
      padding: 0 6px !important;
      gap: 4px !important;
    }

    .brand {
      gap: 5px !important;
    }

    .logo-icon {
      width: 28px !important;
      min-width: 28px !important;
      height: 28px !important;
      font-size: 0.85rem !important;
    }

    .brand-text h1 {
      font-size: 0.88rem !important;
    }

    .brand-text .tagline {
      max-width: 105px !important;
      font-size: 0.5rem !important;
    }

    .header-actions {
      gap: 3px !important;
    }

    .header-actions .btn-header-icon,
    .header-actions .search-trigger-btn,
    .header-actions .btn-header-account,
    .header-actions .btn-header-locate,
    .header-actions .btn-header-list,
    .header-actions #locate-me-btn,
    .header-actions #toggle-sidebar-btn {
      width: 30px !important;
      min-width: 30px !important;
      max-width: 30px !important;
      height: 30px !important;
      font-size: 0.78rem !important;
    }

    .header-actions .account-points-pill {
      height: 30px !important;
      padding: 0 5px !important;
      gap: 2px !important;
    }

    .header-actions .account-points-pill i {
      font-size: 0.75rem !important;
    }

    .header-actions .account-points-pill .pts-val {
      font-size: 0.75rem !important;
    }
  }

  @media (max-width: 330px) {
    .brand-text .tagline {
      display: none !important;
    }
  }

  /* Mobile Slide-Out Drawer (RTL preferred: slide from right, elegant scale & aspect) */
  .sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(92vw, 395px) !important;
    max-width: 395px !important;
    height: 100vh !important;
    transform: translateX(100%) !important;
    z-index: 1300 !important;
    background: #ffffff !important;
    border-top-left-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
    border-left: 1.5px solid #e2e8f0 !important;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.22) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .sidebar.open {
    transform: translateX(0) !important;
  }

  /* When sidebar is open on mobile, ensure location bubble & marker never bleed through */
  body.sidebar-open .user-location-marker,
  body.sidebar-open .user-bubble-callout {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Mobile Sticky Header */
  .sidebar-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .sidebar-title h2 {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
  }

  .sidebar-title-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .sidebar-title-actions .count-badge {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 2.5px 8px !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
  }

  .btn-close-sidebar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #334155 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
  }

  .btn-close-sidebar:hover,
  .btn-close-sidebar:active {
    background: #e2e8f0 !important;
    color: #0f172a !important;
  }

  /* Mobile Segmented Pill Tabs */
  .sidebar-tabs {
    display: flex !important;
    background: #f1f5f9 !important;
    padding: 3px !important;
    border-radius: 11px !important;
    margin: 8px 12px 4px 12px !important;
    gap: 3px !important;
    border-bottom: none !important;
  }

  .stab {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 7px 3px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    border-radius: 8px !important;
    border: none !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    transition: all 0.18s ease !important;
    cursor: pointer !important;
  }

  .stab.active {
    background: #ffffff !important;
    color: #ea580c !important;
    font-weight: 800 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08) !important;
    border-bottom: none !important;
  }

  .stab .tab-badge {
    font-size: 0.65rem !important;
    padding: 1px 5px !important;
    border-radius: 999px !important;
    background: #dcfce7 !important;
    color: #15803d !important;
  }

  /* Mobile Distance Scale Section */
  .distance-scale-section {
    padding: 8px 12px !important;
    gap: 6px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .scale-title {
    font-size: 0.76rem !important;
    gap: 4px !important;
    font-weight: 700 !important;
  }

  .scale-badge {
    font-size: 0.7rem !important;
    padding: 1.5px 8px !important;
    border-radius: 999px !important;
  }

  .scale-slider-wrapper {
    gap: 4px !important;
  }

  .scale-slider {
    height: 5px !important;
  }

  .scale-slider::-webkit-slider-thumb {
    width: 18px !important;
    height: 18px !important;
  }

  .scale-ticks {
    font-size: 0.64rem !important;
    color: #64748b !important;
  }

  .scale-quick-chips {
    gap: 4px !important;
    padding-bottom: 1px !important;
    scrollbar-width: none !important;
  }

  .scale-quick-chips::-webkit-scrollbar {
    display: none !important;
  }

  .schip {
    font-size: 0.7rem !important;
    padding: 2.5px 8px !important;
    border-radius: 999px !important;
  }

  /* Mobile Station List & Cards */
  .station-list {
    padding: 10px 12px !important;
    gap: 9px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .station-list .empty-state {
    padding: 28px 14px !important;
    gap: 8px !important;
  }

  .station-list .empty-state i {
    font-size: 2rem !important;
  }

  .station-list .empty-state p {
    font-size: 0.8rem !important;
  }

  .station-card {
    padding: 10px 11px !important;
    gap: 6px !important;
    border-radius: 12px !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.05) !important;
    transition: background 0.15s ease !important;
  }

  .station-card:hover,
  .station-card:active {
    transform: none !important;
  }

  .station-card-header {
    gap: 6px !important;
  }

  .station-name {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #000000 !important;
    line-height: 1.25 !important;
  }

  .station-distance {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background: #f1f5f9 !important;
    border: 1.5px solid #94a3b8 !important;
    padding: 2.5px 6px !important;
    border-radius: 6px !important;
    line-height: 1.2 !important;
  }

  .station-distance i {
    color: #ea580c !important;
    font-size: 0.72rem !important;
  }

  .station-distance .sdist-label {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
  }

  .station-distance .sdist-val {
    font-weight: 800 !important;
    color: #0f172a !important;
  }

  .btn-exit-card,
  .btn-expand-card {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }

  /* Mobile Hero Availability Box */
  .sc-hero-box {
    padding: 7px 9px !important;
    border-radius: 10px !important;
    gap: 5px !important;
    margin: 2px 0 5px 0 !important;
  }

  .sc-hero-main-row {
    gap: 6px !important;
  }

  .sc-badge-avail {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    padding: 3.5px 10px !important;
    border-radius: 999px !important;
    gap: 4px !important;
    line-height: 1.15 !important;
  }

  .sc-badge-wait {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    padding: 2.5px 8px !important;
    border-radius: 999px !important;
    gap: 4px !important;
    line-height: 1.15 !important;
  }

  .sc-hero-sub-row {
    gap: 6px !important;
  }

  .sc-pill-fuel {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    gap: 5px !important;
  }

  .sc-pill-fuel i {
    font-size: 0.88rem !important;
  }

  /* Mobile Directions Row & Buttons */
  .station-card-directions {
    gap: 6px !important;
    margin-bottom: 5px !important;
  }

  .sc-dir-btn {
    height: 36px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    gap: 6px !important;
    padding: 0 6px !important;
  }

  .sc-dir-btn .dir-btn-logo {
    width: 19px !important;
    height: 19px !important;
    border-radius: 4.5px !important;
  }

  /* Mobile Report Button */
  .sc-btn-report {
    height: 35px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    gap: 6px !important;
  }

  .sc-btn-report i {
    font-size: 0.85rem !important;
  }

  /* Mobile Historical Accordion Dropdown */
  .btn-toggle-sc-history {
    padding: 5px 8px !important;
    font-size: 0.74rem !important;
    border-radius: 7px !important;
  }

  .sc-history-content {
    font-size: 0.72rem !important;
    padding: 6px 8px !important;
    border-radius: 7px !important;
  }

  .btn-card-action {
    height: 34px !important;
    font-size: 0.76rem !important;
    padding: 0 7px !important;
  }

  .card-icon-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.85rem !important;
  }

  /* Extra-small screens fine tuning */
  @media (max-width: 380px) {
    .sidebar {
      width: 95vw !important;
    }
    .station-name {
      font-size: 0.9rem !important;
    }
    .sc-badge-avail {
      font-size: 0.75rem !important;
      padding: 3px 8px !important;
    }
    .sc-badge-wait {
      font-size: 0.7rem !important;
      padding: 2px 6px !important;
    }
    .sc-dir-btn {
      font-size: 0.74rem !important;
      padding: 0 4px !important;
      gap: 4px !important;
    }
    .sc-dir-btn .dir-btn-logo {
      width: 17px !important;
      height: 17px !important;
    }
    .sc-btn-report {
      font-size: 0.75rem !important;
    }
    .station-distance {
      font-size: 0.68rem !important;
      padding: 2px 4px !important;
      gap: 2px !important;
    }
    .station-distance .sdist-label {
      font-size: 0.62rem !important;
    }
  }

  /* Map Popups on Mobile */
  .maplibregl-popup {
    max-width: 90vw !important;
    width: 320px;
  }

  .maplibregl-popup-content {
    padding: 12px !important;
    border-radius: 14px !important;
    max-height: 75vh;
    overflow-y: auto;
  }

  /* Touch-friendly Quick Report Chips */
  .qrchips {
    gap: 6px;
  }

  .qrchip {
    padding: 6px 12px;
    font-size: 13px;
    min-height: 34px;
  }

  .qr-submit-btn {
    padding: 10px 0;
    font-size: 14px;
    min-height: 40px;
  }

  /* Modals on Mobile */
  .modal-box {
    width: 92vw;
    max-width: 400px;
    padding: 20px 16px;
    border-radius: 16px;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Floating Map Buttons */
  .map-controls {
    right: 10px;
    bottom: 20px;
  }

  .locate-btn {
    right: 10px;
    bottom: 110px;
  }
}

/* ── Mobile Station Bottom Sheet (1-Tap Instant Reporting) ──── */
.mobile-station-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.25);
  border: 1px solid #cbd5e1;
  border-bottom: none;
  z-index: 1200;
  padding: 12px 16px 20px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  overflow-y: auto;
  font-family: var(--font-body);
}

.mobile-station-sheet.open {
  transform: translateY(0);
}

.mss-handle {
  width: 36px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin: 0 auto 10px;
}

.mss-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.mss-title-group {
  flex: 1;
}

.mss-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.mss-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.mss-close-btn {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #64748b;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mss-close-btn:hover { background: #e2e8f0; color: #0f172a; }

.mss-status-summary {
  margin-bottom: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
}

.mss-quick-report {
  margin-bottom: 12px;
  padding: 10px 12px 12px;
  background: #fff7ed;
  border: 1.5px solid #ffedd5;
  border-radius: 12px;
}

.mss-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Status Chip Selection Colors */
.qrchip.status-chip.avail.selected {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}
.qrchip.status-chip.unavail.selected {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
}

/* Available Stations Tab & Location Required Card */
.stab .tab-badge {
  background: #059669;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
  margin-inline-start: 4px;
}

.location-required-card {
  padding: 28px 20px;
  margin: 16px 12px;
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lrc-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffedd5;
  color: #ea580c;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.location-required-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}
.location-required-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
}
.lrc-btn {
  margin-top: 6px;
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ea580c;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.lrc-btn:hover {
  background: #c2410c;
}
.lrc-error {
  font-size: 0.8rem;
  color: #dc2626;
  background: #fee2e2;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 4px;
}

/* Floating Quick Access Pill */
.floating-avail-pill {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #10b981;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.28);
  cursor: pointer;
  transition: all 0.2s ease;
}
.floating-avail-pill:hover {
  background: #f0fdf4;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.38);
}
.fap-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #059669;
  animation: pulse-green 2s infinite;
}
.fap-badge {
  background: #059669;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}
@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}
@media (max-width: 768px) {
  .floating-avail-pill {
    bottom: max(34px, calc(16px + env(safe-area-inset-bottom, 16px))) !important;
    padding: 8px 16px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35) !important;
  }
}

/* Distance Scale Section */
.distance-scale-section {
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.scale-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.scale-badge {
  background: #ea580c;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(234, 88, 12, 0.25);
}

.scale-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scale-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #cbd5e1;
  outline: none;
  -webkit-appearance: none;
  accent-color: #ea580c;
  cursor: pointer;
}

.scale-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ea580c;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.scale-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

.scale-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
  padding: 0 2px;
}

.scale-quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.schip {
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.schip:hover {
  border-color: #ea580c;
  color: #ea580c;
}

.schip.active {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

/* ── Go Back Feature Styles ────────────────────────────────── */
.modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-back-btn {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
}

.modal-back-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.mss-back-btn {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .15s ease;
  flex-shrink: 0;
}

.mss-back-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.mss-return-list-btn {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  transition: all .15s ease;
}

.mss-return-list-btn:hover {
  background: #f1f5f9;
  border-color: #ea580c;
  color: #ea580c;
}

.btn-back-to-list {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-bottom: 8px;
  transition: all .15s ease;
}

.btn-back-to-list:hover {
  background: #f1f5f9;
  border-color: #ea580c;
  color: #ea580c;
}

/* ── Multi-report Consensus & Pending Status Styles ────────── */
.station-card.card-status-pending {
  border: 2px dashed #f59e0b !important;
  border-right: 6px solid #f59e0b !important;
  background: #fffbeb !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12) !important;
}

.station-status-banner.banner-pending {
  background: #d97706;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

.card-report-summary.active.is-pending {
  background: #ffffff;
  border: 2px dashed #d97706;
}

.crs-badge.pending {
  background: #d97706;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(217, 119, 6, 0.35);
}

.crs-fill.fill-pending {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.popup-status-headline {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.popup-status-headline.open {
  background: #059669;
  color: #ffffff;
}

.popup-status-headline.closed {
  background: #dc2626;
  color: #ffffff;
}

.popup-status-headline.pending {
  background: #d97706;
  color: #ffffff;
}

.user-active-report-banner {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qr-submit-btn.disabled-active,
.qr-submit-btn:disabled {
  background: #64748b !important;
  color: #f8fafc !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: 0.85 !important;
}

/* ── Fuel Status Confirm / Correct Block ──────────────────── */
.fuel-status-block {
  margin-top: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.fuel-status-block.status-avail {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.fuel-status-block.status-unavail {
  background: #fef2f2;
  border-color: #fecaca;
}

.fuel-status-block.status-pending {
  background: #fffbeb;
  border-color: #fde68a;
}

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

.fs-label-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fs-consensus-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fs-consensus-pill.confirmed {
  background: #059669;
  color: #ffffff;
}

.fs-consensus-pill.pending {
  background: #d97706;
  color: #ffffff;
}

.fs-consensus-pill.neutral {
  background: #64748b;
  color: #ffffff;
}

.fs-main-status-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.fs-status-title {
  font-size: 0.98rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fs-status-title.avail {
  color: #15803d;
}

.fs-status-title.unavail {
  color: #b91c1c;
}

.fs-status-title.unreported {
  color: #475569;
}

.fs-time-ago {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fs-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.fs-meta-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fs-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-fs-action {
  flex: 1;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.btn-fs-confirm-unavail {
  background: #ffffff;
  border: 1.5px solid #dc2626;
  color: #dc2626;
}
.btn-fs-confirm-unavail:hover {
  background: #dc2626;
  color: #ffffff;
}

.btn-fs-correct-avail {
  background: #059669;
  border: 1.5px solid #059669;
  color: #ffffff;
}
.btn-fs-correct-avail:hover {
  background: #047857;
  border-color: #047857;
}

.btn-fs-confirm-avail {
  background: #ffffff;
  border: 1.5px solid #059669;
  color: #059669;
}
.btn-fs-confirm-avail:hover {
  background: #059669;
  color: #ffffff;
}

.btn-fs-correct-unavail {
  background: #dc2626;
  border: 1.5px solid #dc2626;
  color: #ffffff;
}
.btn-fs-correct-unavail:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.btn-fs-init-avail {
  background: #059669;
  border: 1.5px solid #059669;
  color: #ffffff;
}
.btn-fs-init-avail:hover {
  background: #047857;
}

.btn-fs-init-unavail {
  background: #dc2626;
  border: 1.5px solid #dc2626;
  color: #ffffff;
}
.btn-fs-init-unavail:hover {
  background: #b91c1c;
}

.fs-toggle-details-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0 2px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
.fs-toggle-details-btn:hover {
  color: #ea580c;
}

.fs-extra-panel {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

.fs-extra-panel .qr-label {
  font-size: 0.72rem;
  margin-bottom: 4px;
  color: #475569;
}

/* ── What did you observe? Reporting UI ──────────────────── */
.observe-section {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.observe-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #f1f5f9;
}

.observe-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.observe-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 5px;
}

.observe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ob-chip {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ob-chip:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.ob-chip.active {
  border-color: #ea580c;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 800;
}

.ob-chip.status-avail {
  border-color: #86efac;
  color: #166534;
  background: #f0fdf4;
  flex: 1;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px 12px;
  min-height: 40px;
}

.ob-chip.status-avail.active {
  border-color: #16a34a;
  background: #16a34a;
  color: #ffffff;
}

.ob-chip.status-unavail {
  border-color: #fca5a5;
  color: #991b1b;
  background: #fef2f2;
  flex: 1;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px 12px;
  min-height: 40px;
}

.ob-chip.status-unavail.active {
  border-color: #dc2626;
  background: #dc2626;
  color: #ffffff;
}

.observe-radios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

@media (min-width: 480px) {
  .observe-radios {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ob-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  transition: all 0.15s ease;
}

.ob-radio-label:hover {
  background: #f1f5f9;
}

.ob-radio-label.selected {
  background: #fff7ed;
  border-color: #ea580c;
  color: #c2410c;
  font-weight: 800;
}

.ob-radio-label input[type="radio"] {
  accent-color: #ea580c;
  cursor: pointer;
  width: 15px;
  height: 15px;
  margin: 0;
}

.btn-submit-observation {
  width: 100%;
  min-height: 44px;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.28);
  margin-top: 6px;
}

.btn-submit-observation:hover {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.35);
}

.btn-submit-observation.disabled,
.btn-submit-observation:disabled {
  background: #64748b !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: 0.85 !important;
}

/* ── Current Fuel Status Bar (Above observe form) ────────── */
.cfs-box {
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}

.cfs-box.avail {
  background: #f0fdf4;
  border-color: #86efac;
}

.cfs-box.unavail {
  background: #fef2f2;
  border-color: #fca5a5;
}

.cfs-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.cfs-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
}

.cfs-badge {
  font-size: 0.84rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.cfs-box.avail .cfs-badge {
  background: #dcfce7;
  color: #166534;
}

.cfs-box.unavail .cfs-badge {
  background: #fee2e2;
  color: #991b1b;
}

.cfs-meta {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 4px;
}

.btn-quick-confirm {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 6px;
  background: #ffffff;
  border: 1.5px solid #64748b;
  color: #334155;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cfs-box.avail .btn-quick-confirm {
  border-color: #16a34a;
  color: #166534;
}

.cfs-box.avail .btn-quick-confirm:hover {
  background: #16a34a;
  color: #ffffff;
}

.cfs-box.unavail .btn-quick-confirm {
  border-color: #dc2626;
  color: #991b1b;
}

.cfs-box.unavail .btn-quick-confirm:hover {
  background: #dc2626;
  color: #ffffff;
}

/* ──────────────────────────────────────────────────────────
   USER PROFILE, REPUTATION & LEADERBOARD STYLES
   ────────────────────────────────────────────────────────── */

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
}

.user-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.trusted-badge {
  position: absolute;
  bottom: -2px;
  left: -2px;
  background: #10b981;
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.user-meta {
  flex: 1;
  min-width: 0;
}

.user-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.user-profile-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-level-pill {
  display: inline-block;
  background: #ffedd5;
  color: #9a3412;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 9999px;
  border: 1px solid #fed7aa;
}

/* Stats Grid */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.profile-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  transition: transform 0.15s ease;
}

.profile-stat-card:hover {
  transform: translateY(-2px);
}

.profile-stat-card.highlight-gold {
  border-color: #fef08a;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.profile-stat-card.highlight-blue {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.profile-stat-card.highlight-purple {
  border-color: #e9d5ff;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
}

.stat-icon {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 2px;
}

/* Secondary Counts Row */
.profile-counts-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.count-pill {
  flex: 1;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.count-icon {
  font-size: 0.88rem;
}

.count-num {
  font-weight: 900;
  color: #0f172a;
}

/* Leaderboard Button */
.btn-leaderboard {
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1.5px solid #fde047;
  border-radius: 10px;
  color: #854d0e;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: all 0.15s ease;
}

.btn-leaderboard:hover {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  transform: translateY(-1px);
}

/* Contact Info Section (Privacy Protected) */
.profile-contact-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

.contact-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e293b;
}

.privacy-lock-tag {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.contact-privacy-note {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.35;
  margin-bottom: 10px;
}

.profile-field {
  margin-bottom: 8px;
}

.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

.btn-auth-save {
  width: 100%;
  padding: 7px 12px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
  margin-top: 6px;
}

.btn-auth-save:hover {
  background: #0369a1;
}

.profile-feedback {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 6px;
  font-weight: 700;
  text-align: center;
}
.profile-feedback.success {
  background: #dcfce7;
  color: #15803d;
}
.profile-feedback.error {
  background: #fee2e2;
  color: #b91c1c;
}

.profile-actions-row {
  display: flex;
  gap: 8px;
}

/* Leaderboard Modal Styles */
.leaderboard-list-wrap {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leaderboard-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.leaderboard-row-item:hover {
  background: #f1f5f9;
}

.leaderboard-row-item.rank-1 {
  background: linear-gradient(90deg, #fffbeb, #ffffff);
  border-color: #fde047;
}
.leaderboard-row-item.rank-2 {
  background: linear-gradient(90deg, #f8fafc, #ffffff);
  border-color: #cbd5e1;
}
.leaderboard-row-item.rank-3 {
  background: linear-gradient(90deg, #fff7ed, #ffffff);
  border-color: #fed7aa;
}

.lb-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lb-rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  background: #e2e8f0;
  color: #334155;
  flex-shrink: 0;
}

.rank-1 .lb-rank-badge {
  background: #eab308;
  color: #ffffff;
}
.rank-2 .lb-rank-badge {
  background: #94a3b8;
  color: #ffffff;
}
.rank-3 .lb-rank-badge {
  background: #f97316;
  color: #ffffff;
}

.lb-user-details {
  display: flex;
  flex-direction: column;
}

.lb-username-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lb-username {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.lb-level-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
}

.lb-score-col {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.lb-points-txt {
  font-size: 0.92rem;
  font-weight: 900;
  color: #ea580c;
}

.lb-rel-txt {
  font-size: 0.68rem;
  font-weight: 700;
  color: #059669;
}

/* Header Buttons: Admin & Leaderboard */
.btn-header-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff !important;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-header-admin:hover {
  background: linear-gradient(135deg, #c2410c, #9a3412);
  transform: translateY(-1px);
}

/* ── Modal Pop-up Dialog System ────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
  animation: modalBackdropFade 0.2s ease-out;
}

.modal[hidden] {
  display: none !important;
}

.modal-box {
  position: relative;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 20px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes modalBackdropFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.modal-close-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(90deg);
}

/* ── Upper Row Signed-In Account & Points Indicator ─────────── */
.btn-header-account {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-header-account:hover {
  border-color: #ea580c;
  background: #fff7ed;
  transform: translateY(-1px);
}

.btn-header-account.authenticated {
  background: #fffdfa;
  border-color: #fdba74;
  padding: 0 12px 0 8px;
}

.account-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-name {
  font-weight: 800;
  color: #0f172a;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-points-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  border: 1.5px solid #f59e0b;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2);
  user-select: none;
  text-decoration: none;
}

.account-points-pill:hover {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
}

.account-points-pill i {
  color: #f59e0b;
  font-size: 0.88rem;
  filter: drop-shadow(0 1px 1px rgba(180, 83, 9, 0.25));
}

.account-points-pill .pts-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #78350f;
}

.account-points-pill .pts-unit {
  font-size: 0.72rem;
  color: #92400e;
  font-weight: 600;
}

.account-points-pill.points-bounce {
  animation: pointsBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pointsBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); box-shadow: 0 0 14px rgba(245, 158, 11, 0.5); }
  100% { transform: scale(1); }
}

.guest-device-points-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.guest-device-points-banner .gdp-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.guest-device-points-banner .gdp-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
  color: #92400e;
}

.guest-device-points-banner .gdp-text strong {
  font-weight: 800;
  color: #78350f;
}

.guest-device-points-banner .gdp-text small {
  font-size: 0.72rem;
  color: #b45309;
}

/* ── Auth Tabs & Forms in Pop-up ────────────────────────────── */
.auth-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid #e2e8f0;
}

.auth-tab {
  flex: 1;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: #ffffff;
  color: #ea580c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.auth-optional-divider {
  display: flex;
  align-items: center;
  margin: 14px 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
}
.auth-optional-divider::before,
.auth-optional-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px dashed #cbd5e1;
}
.auth-optional-divider span {
  padding: 0 8px;
}

.auth-field {
  margin-bottom: 14px;
  text-align: right;
}

.auth-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field-icon {
  position: absolute;
  right: 12px;
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 36px 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.auth-input:focus {
  border-color: #ea580c;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.auth-field-hint {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 4px;
}

.auth-switch-link {
  margin-top: 14px;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-inline-link {
  background: none;
  border: none;
  color: #ea580c;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-inline-link:hover {
  color: #c2410c;
}

/* ── Two-Card Profile Grid (Points & Reliability) ──────────── */
.profile-stats-grid.two-cards {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-stats-grid.two-cards .profile-stat-card {
  padding: 14px 10px;
}

.profile-stats-grid.two-cards .stat-value {
  font-size: 1.5rem;
  margin: 4px 0 2px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .btn-header-account {
    height: 36px;
    padding: 0 8px;
    font-size: 0.78rem;
  }
  .account-name {
    max-width: 85px;
  }
  .pts-word {
    display: none;
  }
  .modal-box {
    padding: 20px 14px;
  }
}

/* ── Redesigned Station Cards & Instant Fuel Situation Block ────────── */
.station-card-title-group {
  flex: 1;
  min-width: 0;
}

.station-card-situation {
  margin: 3px 0;
}

/* ── Simplified Eye-Catching Station Card Hero Box ───────── */
.sc-hero-box {
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  margin: 4px 0 8px 0;
}

.sc-hero-box.avail {
  background: #f0fdf4;
  border: 2px solid #16a34a;
}

.sc-hero-box.unavail {
  background: #fef2f2;
  border: 2px solid #dc2626;
}

.sc-hero-box.none {
  background: #f8fafc;
  border: 2px solid #94a3b8;
}

.sc-hero-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.sc-badge-avail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 5px 14px;
  border-radius: 20px;
  line-height: 1.2;
}

.sc-badge-avail.avail {
  background: #15803d;
  color: #ffffff;
  border: 1.5px solid #166534;
  box-shadow: 0 2px 5px rgba(21, 128, 61, 0.28);
}

.sc-badge-avail.unavail {
  background: #b91c1c;
  color: #ffffff;
  border: 1.5px solid #991b1b;
  box-shadow: 0 2px 5px rgba(185, 28, 28, 0.28);
}

.sc-badge-avail.none {
  background: #334155;
  color: #ffffff;
  border: 1.5px solid #1e293b;
  box-shadow: 0 2px 5px rgba(51, 65, 85, 0.2);
}

.sc-badge-wait {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  line-height: 1.2;
}

.sc-badge-wait.fast {
  background: #047857;
  color: #ffffff;
  border: 1.5px solid #065f46;
  box-shadow: 0 1px 3px rgba(4, 120, 87, 0.25);
}

.sc-badge-wait.med {
  background: #d97706;
  color: #ffffff;
  border: 1.5px solid #b45309;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.25);
}

.sc-badge-wait.long {
  background: #c2410c;
  color: #ffffff;
  border: 1.5px solid #9a3412;
  box-shadow: 0 1px 3px rgba(194, 65, 12, 0.25);
}

.sc-hero-sub-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-pill-fuel {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sc-pill-fuel i {
  color: #ea580c;
  font-size: 1.05rem;
}

/* ── Station Card Directions Row ─────────────────────────── */
.station-card-directions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

/* Authentic Direction Brand Logos */
.dir-btn-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  vertical-align: middle;
}

.sc-dir-btn:hover .dir-btn-logo,
.sm-nav-btn:hover .dir-btn-logo,
.nav-btn:hover .dir-btn-logo {
  transform: scale(1.12);
}

.sc-dir-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 1.5px 4px rgba(15, 23, 42, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.sc-dir-btn.gmaps {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

.sc-dir-btn.gmaps:hover, .sc-dir-btn.gmaps:active {
  background: #f8fafc;
  color: #1d4ed8;
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.18);
  transform: translateY(-1.5px);
}

.sc-dir-btn.waze {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

.sc-dir-btn.waze:hover, .sc-dir-btn.waze:active {
  background: #f0fdfa;
  color: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.18);
  transform: translateY(-1.5px);
}

.sc-dir-btn:active {
  transform: scale(0.98);
}

/* ── Station Card Footer / Report Button ─────────────────── */
.station-card-footer {
  width: 100%;
}

.sc-btn-report {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1.5px solid #ea580c;
  background: #fff7ed;
  color: #9a3412;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(234, 88, 12, 0.1);
}

.sc-btn-report:hover, .sc-btn-report:active {
  background: #ea580c;
  color: #ffffff;
  border-color: #c2410c;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
  transform: translateY(-1px);
}

/* Modal Form Pulse Animation when opened via Direct Report button */
.report-form-focus-pulse {
  animation: reportPulse 1.6s ease-out;
  border-radius: 8px;
}

@keyframes reportPulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(234, 88, 12, 0.18); }
  100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

/* Station Details Modal Box */
.station-modal-box {
  max-width: 540px !important;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.station-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.sm-header-info {
  flex: 1;
}

.sm-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sm-station-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.sm-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 0.84rem;
  color: #64748b;
}

.sm-brand {
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  color: #475569;
}

.sm-dist {
  font-weight: 700;
  color: #ea580c;
}

.sm-opening {
  color: #64748b;
}

.sm-nav-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.sm-nav-btn {
  flex: 1;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sm-nav-btn.gmaps:hover {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.sm-nav-btn.waze:hover {
  background: #f0fdfa;
  color: #0f766e;
  border-color: #99f6e4;
}

.sm-nav-btn.focus-map:hover {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.sm-status-card {
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
}

.sm-status-card.avail {
  background: #f0fdf4;
  border-color: #86efac;
}

.sm-status-card.unavail {
  background: #fef2f2;
  border-color: #fca5a5;
}

.sm-status-card.none {
  background: #f8fafc;
  border-color: #e2e8f0;
}

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

.sm-status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 800;
}

.sm-status-badge.avail {
  background: #dcfce7;
  color: #15803d;
}

.sm-status-badge.unavail {
  background: #fee2e2;
  color: #b91c1c;
}

.sm-status-badge.none {
  background: #f1f5f9;
  color: #64748b;
}

.sm-status-meta {
  font-size: 0.8rem;
  color: #64748b;
}

.sm-status-sub {
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 8px;
  line-height: 1.4;
}

.sm-status-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #475569;
  margin: 8px 0;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

.sm-confirm-btn {
  margin-top: 8px;
  width: 100%;
  height: 38px;
  font-size: 0.88rem;
  font-weight: 700;
}

.sm-report-action-wrapper {
  margin-bottom: 12px;
}

.sm-btn-toggle-report {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #fed7aa;
  background: linear-gradient(135deg, #fffaf5 0%, #fff7ed 100%);
  color: #c2410c;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(234, 88, 12, 0.08);
}

.sm-btn-toggle-report:hover {
  background: #ffedd5;
  border-color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.15);
}

.sm-btn-toggle-report.active {
  background: #fff1e6;
  border-color: #ea580c;
  color: #9a3412;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12);
}

.sm-btn-toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sm-btn-toggle-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sm-points-badge {
  background: #ea580c;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.sm-chevron-icon {
  font-size: 0.85rem;
  color: #9a3412;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sm-report-section {
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 14px;
  background: #fffaf5;
  margin-bottom: 16px;
}

.sm-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sm-section-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sm-points-reward {
  background: #ea580c;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 800;
}

.sm-history-section {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.sm-history-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sm-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.sm-empty-history {
  padding: 14px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.84rem;
}

.sm-history-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
}

.sm-history-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.sm-history-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.sm-history-badge.open {
  background: #dcfce7;
  color: #166534;
}

.sm-history-badge.closed {
  background: #fee2e2;
  color: #991b1b;
}

.sm-history-fuel {
  font-weight: 600;
  color: #334155;
}

.sm-history-wait {
  color: #64748b;
}

.sm-history-time {
  margin-right: auto;
  color: #94a3b8;
  font-size: 0.74rem;
}

.sm-history-notes {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.3;
}

.sm-history-votes {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.sm-vote-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.74rem;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s ease;
}

.sm-vote-btn:hover {
  background: #f1f5f9;
}

.sm-vote-btn.voted {
  cursor: not-allowed;
}

.sm-vote-btn.voted-up.active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15);
}

.sm-vote-btn.voted-dn.active {
  background: #fef2f2;
  border-color: #ef4444;
  color: #b91c1c;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.15);
}

.sm-vote-btn.disabled,
.sm-vote-btn.voted:not(.active) {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
  background: #f8fafc;
}

/* ── Dynamic Station Tags & Historical Waiting Time ──────── */
.station-tags-row,
.sm-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 4px 0;
}

.fuel-tag.fuel-verified {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(22, 101, 52, 0.08);
}

.verified-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  margin-left: 3px;
}

.station-stat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.tag-wait-fast {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.tag-wait-med {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.tag-wait-long {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.tag-wait-none {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.tag-activity {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

/* Long-Term Historical Insights Card (Modal) */
.sm-historical-card {
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1.5px solid #fed7aa;
  background: #fffaf5;
}

.sm-hist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sm-hist-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sm-hist-badge {
  background: #ea580c;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 800;
}

.sm-hist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sm-hist-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sm-hist-label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sm-hist-val {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
}

.sm-hist-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

.sm-hist-fuels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.sm-hist-fuel-pill {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.sm-hist-fuel-pill.verified {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.sm-history-live-tag {
  background: #16a34a;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.sm-history-item.is-active-report {
  border-color: #86efac;
  background: #f0fdf4;
}

@media (max-width: 480px) {
  .sm-hist-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Map Station Wait Time Floating Badges (Zero-Offset Aligned) ── */
.map-station-wait-container {
  position: absolute;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  pointer-events: none !important;
  overflow: visible !important;
}

.map-station-wait-container .mwm-badge {
  position: absolute;
  bottom: var(--pin-h, 46px);
  left: 0;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  pointer-events: auto;
  z-index: 10;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28));
  transition: transform 0.15s ease;
  animation: waitBadgePop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.map-station-wait-container .mwm-badge:hover {
  z-index: 60;
  transform: translateX(-50%) translateY(-2px) scale(1.08);
}

@keyframes waitBadgePop {
  0% { opacity: 0; transform: translateX(-50%) scale(0.6); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

.map-station-wait-container .mwm-pill {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  height: 20px;
  padding: 0 7px 0 6px;
  border-radius: 999px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  color: #ffffff;
  direction: rtl;
  border: 1.5px solid #ffffff;
}

.map-station-wait-container .mwm-icon {
  font-size: 9.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-station-wait-container .mwm-val {
  font-size: 10.5px;
  letter-spacing: -0.2px;
}

.map-station-wait-container .mwm-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--badge-bg, #059669);
  margin-top: -1px;
}

/* Color Variants */
/* Fast (0 min / Quick line) */
.map-station-wait-container .mwm-badge.mwm-fast .mwm-pill {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --badge-bg: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}
.map-station-wait-container .mwm-badge.mwm-fast .mwm-icon {
  color: #fef08a; /* Golden spark */
}
.map-station-wait-container .mwm-badge.mwm-fast .mwm-arrow {
  border-top-color: #059669;
}

/* Light wait (1-10 min) */
.map-station-wait-container .mwm-badge.mwm-light .mwm-pill {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  --badge-bg: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}
.map-station-wait-container .mwm-badge.mwm-light .mwm-arrow {
  border-top-color: #0284c7;
}

/* Moderate wait (11-25 min) */
.map-station-wait-container .mwm-badge.mwm-med .mwm-pill {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  --badge-bg: #d97706;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}
.map-station-wait-container .mwm-badge.mwm-med .mwm-arrow {
  border-top-color: #d97706;
}

/* Long wait (>25 min) */
.map-station-wait-container .mwm-badge.mwm-long .mwm-pill {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  --badge-bg: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}
.map-station-wait-container .mwm-badge.mwm-long .mwm-arrow {
  border-top-color: #dc2626;
}

/* Fuel out (نفد) */
.map-station-wait-container .mwm-badge.mwm-out .mwm-pill {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
  --badge-bg: #334155;
  box-shadow: 0 2px 8px rgba(51, 65, 85, 0.4);
}
.map-station-wait-container .mwm-badge.mwm-out .mwm-icon {
  color: #fca5a5;
}
.map-station-wait-container .mwm-badge.mwm-out .mwm-arrow {
  border-top-color: #334155;
}

/* Available fallback (متوفر) */
.map-station-wait-container .mwm-badge.mwm-avail .mwm-pill {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --badge-bg: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}
.map-station-wait-container .mwm-badge.mwm-avail .mwm-arrow {
  border-top-color: #059669;
}

/* ==========================================================================
   Station Name & Card Exit Icon Alignment (No Overlay Guarantee)
   ========================================================================== */
.station-modal-top {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  gap: 12px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  margin-bottom: 14px !important;
}

.station-modal-top .sm-header-info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.station-modal-top .sm-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.station-modal-top .sm-station-name {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.modal-top-bar .modal-close-btn,
.station-modal-top .modal-close-btn,
#close-station-modal-btn,
#close-auth-btn {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  margin-inline-start: 10px !important;
  z-index: 1 !important;
}

.mss-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  position: relative !important;
}

.mss-title-group {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.mss-title-group h3 {
  word-break: break-word !important;
  margin: 0 !important;
}

.mss-close-btn {
  position: static !important;
  flex: 0 0 32px !important;
  margin: 0 !important;
}

/* ==========================================================================
   Pop-Style Search Function (Icon Trigger & Popover Modal)
   ========================================================================== */
.search-trigger-btn {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-size: 0.95rem !important;
}

.search-trigger-btn:hover {
  background: #ea580c !important;
  border-color: #ea580c !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3) !important;
}

.search-popover {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 64px;
}

.search-popover-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}

.search-popover-panel {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  animation: popoverScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.search-popover-input-bar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.search-pop-icon {
  font-size: 1.1rem;
  color: #ea580c;
  flex-shrink: 0;
}

.search-popover-input-bar #location-search {
  flex: 1;
  height: 40px;
  padding: 0 6px;
  border: none !important;
  background: transparent !important;
  font-size: 0.96rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  box-shadow: none !important;
}

.search-pop-clear {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.search-pop-clear:hover {
  color: #0f172a;
}

.search-pop-close-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.search-pop-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

.search-popover .search-results-dropdown {
  position: static;
  width: 100%;
  box-shadow: none;
  border: none;
  border-radius: 0;
  max-height: 55vh;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
}

/* ==========================================================================
   Header Auth Button: Icon Only
   ========================================================================== */
.btn-header-account {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.btn-header-account .account-inner {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-header-account #auth-header-icon {
  font-size: 1.25rem !important;
}

.btn-header-account .account-name {
  display: none !important;
}

.btn-header-account:hover {
  border-color: #ea580c !important;
  background: #fff7ed !important;
  transform: translateY(-1px) !important;
}

.btn-header-account.authenticated {
  border-color: #ea580c !important;
  background: #fff7ed !important;
  color: #ea580c !important;
}

/* ==========================================================================
   Station Card Historical Data Dropdown
   ========================================================================== */
.station-card-history-section {
  margin: 6px 0 4px 0;
  border-top: 1px dashed #e2e8f0;
  padding-top: 6px;
}

.sc-history-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sc-history-toggle-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.sc-hist-btn-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sc-hist-btn-title i {
  color: #ea580c;
  font-size: 0.85rem;
}

.sc-hist-chevron {
  font-size: 0.72rem;
  color: #94a3b8;
  transition: transform 0.25s ease;
}

.sc-history-toggle-btn.open .sc-hist-chevron {
  transform: rotate(180deg);
  color: #ea580c;
}

.sc-history-dropdown-panel {
  margin-top: 6px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.8rem;
  animation: slideDownFade 0.2s ease;
}

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

.sc-hist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.sc-hist-stat-item {
  background: #ffffff;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
}

.sc-hist-stat-label {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sc-hist-stat-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
}

.sc-hist-fuel-row {
  background: #ffffff;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sc-hist-fuel-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ea580c;
}

.sc-hist-reports-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  margin: 6px 0 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sc-hist-rep-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 150px;
  overflow-y: auto;
}

.sc-hist-rep-item {
  background: #ffffff;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  font-size: 0.75rem;
}

.sc-hist-rep-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.sc-hist-badge-open {
  color: #16a34a;
  font-weight: 800;
}

.sc-hist-badge-closed {
  color: #dc2626;
  font-weight: 800;
}

.sc-hist-rep-time {
  font-size: 0.68rem;
  color: #94a3b8;
}

.sc-hist-rep-details {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #475569;
  font-size: 0.72rem;
}

.sc-hist-rep-notes {
  margin-top: 3px;
  color: #64748b;
  font-style: italic;
  font-size: 0.72rem;
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 4px;
}

.sc-hist-empty {
  text-align: center;
  padding: 12px 6px;
  color: #94a3b8;
  font-size: 0.78rem;
}

/* Modal Historical Dropdown Wrapper */
.sm-history-dropdown-wrapper {
  margin-top: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.sm-history-collapsible {
  margin-top: 8px;
  animation: slideDownFade 0.2s ease;
}

/* ==========================================================================
   Mobile Header Layout & Perfect Alignment for All Aspect Ratios (19.5:9, 20:9, etc.)
   ========================================================================== */
@media (max-width: 768px) {
  .app-header {
    height: 58px !important;
    padding: 0 10px !important;
    padding-left: max(10px, env(safe-area-inset-left)) !important;
    padding-right: max(10px, env(safe-area-inset-right)) !important;
    gap: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .brand {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  .logo-icon {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .brand-text {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: visible !important;
    padding: 2px 0 !important;
  }

  .brand-text h1 {
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    line-height: 1.25 !important;
    margin: 0 0 1px 0 !important;
  }

  .brand-text .tagline {
    display: block !important;
    font-size: 0.56rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 135px !important;
    padding-bottom: 2px !important;
    margin-top: 1px !important;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }

  .btn-text {
    display: none !important;
  }

  /* Unified mobile circular action buttons: 33px diameter */
  .header-actions .btn-header-icon,
  .header-actions .search-trigger-btn,
  .header-actions .btn-header-account,
  .header-actions .btn-header-locate,
  .header-actions .btn-header-list,
  .header-actions #locate-me-btn,
  .header-actions #toggle-sidebar-btn {
    width: 33px !important;
    min-width: 33px !important;
    max-width: 33px !important;
    height: 33px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 0.85rem !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    margin: 0 !important;
  }

  .header-actions #locate-me-btn {
    background: #ea580c !important;
    border: 1px solid #ea580c !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3) !important;
  }

  .header-actions #locate-me-btn i {
    font-size: 0.88rem !important;
    color: #ffffff !important;
  }

  .header-actions #toggle-sidebar-btn {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
  }

  .header-actions #toggle-sidebar-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
  }

  .header-actions .search-trigger-btn {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
  }

  .header-actions .btn-header-account {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
  }

  .header-actions .btn-header-account #auth-header-icon {
    font-size: 1.15rem !important;
  }

  /* Compact Gamification Points Badge */
  .header-actions .account-points-pill {
    height: 33px !important;
    padding: 0 7px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    gap: 3px !important;
    border-radius: 17px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #f59e0b !important;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2) !important;
    margin: 0 !important;
  }

  .header-actions .account-points-pill .pts-val {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
  }

  .header-actions .account-points-pill .pts-unit {
    display: none !important;
  }
}

@media (max-width: 375px) {
  .app-header {
    padding: 0 6px !important;
    gap: 4px !important;
  }

  .brand {
    gap: 5px !important;
  }

  .logo-icon {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }

  .brand-text h1 {
    font-size: 0.88rem !important;
  }

  .brand-text .tagline {
    max-width: 105px !important;
    font-size: 0.5rem !important;
  }

  .header-actions {
    gap: 3px !important;
  }

  .header-actions .btn-header-icon,
  .header-actions .search-trigger-btn,
  .header-actions .btn-header-account,
  .header-actions .btn-header-locate,
  .header-actions .btn-header-list,
  .header-actions #locate-me-btn,
  .header-actions #toggle-sidebar-btn {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    font-size: 0.78rem !important;
  }

  .header-actions .account-points-pill {
    height: 30px !important;
    padding: 0 5px !important;
    gap: 2px !important;
  }

  .header-actions .account-points-pill i {
    font-size: 0.75rem !important;
  }

  .header-actions .account-points-pill .pts-val {
    font-size: 0.75rem !important;
  }
}

@media (max-width: 330px) {
  .brand-text .tagline {
    display: none !important;
  }
}

/* ==========================================================================
   Sidebar Pull-to-Center Edge Tab & Gesture Cue (Mobile Only)
   ========================================================================== */
.sidebar-edge-tab {
  position: absolute;
  top: 48%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1050;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid #fed7aa;
  border-right: none;
  border-radius: 999px 0 0 999px;
  padding: 8px 10px 8px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: -4px 6px 18px rgba(234, 88, 12, 0.18);
  cursor: pointer;
  color: #0f172a;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  direction: rtl;
  user-select: none;
  touch-action: pan-y;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, box-shadow 0.2s ease;
}

.sidebar-edge-tab:hover,
.sidebar-edge-tab:active {
  background: #fff7ed;
  border-color: #ea580c;
  box-shadow: -5px 8px 22px rgba(234, 88, 12, 0.26);
}

.edge-tab-arrow {
  color: #ea580c;
  font-size: 0.85rem;
  animation: nudgeLeft 1.4s infinite ease-in-out;
}

.edge-tab-icon {
  color: #ea580c;
  font-size: 0.82rem;
}

.edge-tab-text {
  color: #1e293b;
  font-weight: 800;
  letter-spacing: -0.01em;
}

@keyframes nudgeLeft {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-4px);
  }
}

/* Hide edge tab cleanly when sidebar drawer is open or after timeout */
.sidebar-edge-tab.retracted,
body.sidebar-open .sidebar-edge-tab,
.sidebar.open ~ .map-view .sidebar-edge-tab {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-50%) translateX(100%) !important;
}

@media (min-width: 769px) {
  .sidebar-edge-tab {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .floating-avail-pill {
    bottom: max(34px, calc(16px + env(safe-area-inset-bottom, 16px))) !important;
  }
}



