/* ==========================================================================
   Golay Taxi Design System
   Themes:
     - Dark (Черно-желтое): Obsidian Black #0D0F12, Cards #171A21, Accent #FFC700
     - Light (Бело-желтое): Snow White #F4F6F9, Cards #FFFFFF, Accent #F59E0B / #FFC700
   ========================================================================== */

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

:root {
  /* Default: Dark Theme (Черно-желтое) */
  --bg-primary: #0b0d11;
  --bg-secondary: #13171f;
  --bg-card: #181d27;
  --bg-card-hover: #1f2532;
  --bg-elevated: #252c3c;
  --bg-glass: rgba(19, 23, 31, 0.85);

  --accent-yellow: #ffc700;
  --accent-yellow-hover: #e5b200;
  --accent-yellow-light: rgba(255, 199, 0, 0.15);
  --accent-yellow-glow: 0 0 24px rgba(255, 199, 0, 0.35);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-on-accent: #0b0d11;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 199, 0, 0.5);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);

  --status-success: #10b981;
  --status-danger: #ef4444;
  --status-info: #3b82f6;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  /* Light Theme (Бело-желтое) */
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f9fafb;
  --bg-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.92);

  --accent-yellow: #f59e0b;
  --accent-yellow-hover: #d97706;
  --accent-yellow-light: rgba(245, 158, 11, 0.14);
  --accent-yellow-glow: 0 0 20px rgba(245, 158, 11, 0.25);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-on-accent: #0f172a;

  --border-subtle: #e2e8f0;
  --border-active: #f59e0b;

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.12);
}

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

html {
  width: 100%;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* When App Workspace is active (Map View), lock body to viewport */
html.app-active, body.app-active {
  height: 100% !important;
  height: 100dvh !important;
  overflow: hidden !important;
  overscroll-behavior-y: none;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* Universal Touch & Click Responsiveness for Android & iOS */
button,
[role="button"],
.chip-btn,
.cta-button,
.role-btn,
.icon-btn,
.portal-enter-btn,
.portal-reg-btn,
.demo-login-btn,
.pwa-tab-btn,
.tariff-item,
.quick-chip,
.payment-selector,
.sheet-handle {
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 199, 0, 0.25);
}

/* Ensure inner elements (text/icons) do not intercept or split touch hit-tests */
button > *,
[role="button"] > *,
.chip-btn > *,
.cta-button > *,
.role-btn > *,
.demo-login-btn > *,
.pwa-tab-btn > *,
.portal-enter-btn > *,
.portal-reg-btn > * {
  pointer-events: none;
}

/* Instant tactile visual feedback on mobile taps */
button:active,
[role="button"]:active,
.chip-btn:active,
.cta-button:active,
.role-btn:active,
.icon-btn:active,
.demo-login-btn:active,
.pwa-tab-btn:active,
.portal-enter-btn:active,
.portal-reg-btn:active {
  transform: scale(0.97) !important;
  opacity: 0.85 !important;
  transition: transform 0.05s ease, opacity 0.05s ease !important;
}

input,
select,
textarea {
  touch-action: auto;
  user-select: auto;
  -webkit-user-select: auto;
}

/* Top Navigation Bar */
.navbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 64px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

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

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-yellow);
  color: var(--text-on-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  box-shadow: var(--accent-yellow-glow);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand-title span {
  color: var(--accent-yellow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Segmented Role Switcher (Пассажир / Водитель / Монитор) */
.role-switcher {
  display: flex;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.role-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.role-btn:hover {
  color: var(--text-primary);
}

.role-btn.active {
  background: var(--accent-yellow);
  color: var(--text-on-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Theme Toggle Button */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

/* Main App Container */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Map Container */
#map {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: var(--bg-primary);
}

/* Dark Theme Filter for OpenStreetMap Tiles (100% Free - No API key needed) */
[data-theme="dark"] #map .leaflet-tile-pane {
  filter: brightness(0.65) invert(1) contrast(2.5) hue-rotate(200deg) saturate(0.28) brightness(0.75);
}

[data-theme="light"] #map .leaflet-tile-pane {
  filter: none;
}

#map .leaflet-tile-pane {
  transition: filter 0.3s ease;
}

/* Sidebar / Booking Sheet */
.panel-container {
  position: absolute;
  top: 96px;
  left: 20px;
  bottom: 24px;
  width: 430px;
  max-width: calc(100vw - 40px);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.panel-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.surge-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--accent-yellow-light);
  color: var(--accent-yellow);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-active);
}

.panel-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Address Route Inputs */
.route-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  position: relative;
}

.route-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.route-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 10px 0 10px 30px;
  position: relative;
}

.route-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.route-dot.pickup {
  background: var(--accent-yellow);
  box-shadow: 0 0 8px var(--accent-yellow);
}

.route-dot.dropoff {
  background: var(--status-success);
  box-shadow: 0 0 8px var(--status-success);
}

.route-input-group {
  flex: 1;
}

.route-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.route-input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
}

.route-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Popular Destinations Quick Chips */
.quick-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

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

.chip-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-active);
}

/* Compact Single Language Toggle Button */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all var(--transition-fast);
}

.lang-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

.lang-toggle-btn:active {
  transform: scale(0.95);
}

.flag-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
}

/* Tariffs Grid / List */
.section-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tariff-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tariff-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tariff-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 199, 0, 0.3);
  transform: translateY(-1px);
}

.tariff-item.selected {
  background: var(--accent-yellow-light);
  border-color: var(--accent-yellow);
  box-shadow: 0 4px 14px rgba(255, 199, 0, 0.15);
}

.tariff-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tariff-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.tariff-item.selected .tariff-icon-wrap {
  background: var(--accent-yellow);
  color: var(--text-on-accent);
}

.tariff-name {
  font-size: 15px;
  font-weight: 700;
}

.tariff-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.tariff-right {
  text-align: right;
}

.tariff-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.tariff-item.selected .tariff-price {
  color: var(--accent-yellow);
}

.tariff-eta {
  font-size: 11px;
  color: var(--text-muted);
}

/* Sheet Handle for Mobile (hidden on desktop) */
.sheet-handle {
  display: none;
}

/* Booking Footer Action Container */
.booking-footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Payment & Options */
.payment-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

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

/* Big CTA Buttons */
.cta-button {
  width: 100%;
  padding: 16px;
  background: var(--accent-yellow);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--accent-yellow-glow);
  transition: all var(--transition-fast);
}

.cta-button:hover {
  background: var(--accent-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 199, 0, 0.45);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button.danger {
  background: var(--status-danger);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

/* Ride Status Card (Searching / Driver Assigned / In Trip) */
.ride-status-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 18px;
}

/* Radar Search Pulse */
.radar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  text-align: center;
}

.radar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--accent-yellow-light);
  border: 2px solid var(--accent-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}

.radar-circle::after {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 50%;
  border: 2px solid var(--accent-yellow);
  opacity: 0.6;
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.driver-info-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.driver-avatar-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--accent-yellow);
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.driver-meta {
  flex: 1;
}

.driver-name {
  font-size: 16px;
  font-weight: 700;
}

.driver-rating {
  font-size: 13px;
  color: var(--accent-yellow);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.car-badge {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-block;
  margin-top: 4px;
}

/* Driver Mode UI */
.driver-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.driver-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-yellow);
  margin-top: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

/* Shift Switcher Toggle */
.shift-toggle-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.shift-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--status-danger);
  display: inline-block;
  margin-right: 8px;
}

.shift-status-dot.online {
  background: var(--status-success);
  box-shadow: 0 0 10px var(--status-success);
}

/* Custom Leaflet Marker Styling */
.taxi-marker-pin {
  width: 42px;
  height: 42px;
  background: var(--accent-yellow);
  border: 3px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.taxi-marker-pin svg {
  width: 22px;
  height: 22px;
  fill: #000;
}

.point-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

.point-marker.pickup {
  background: #ffc700;
  color: #000;
}

.point-marker.dropoff {
  background: #10b981;
}

/* Toast Notifications */
.toast-box {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none !important;
}

.toast {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-active);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease forwards;
  pointer-events: auto;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Autocomplete Suggestions Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  margin-top: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1500;
  box-shadow: var(--shadow-lg);
  display: none;
}

.autocomplete-item {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: var(--bg-card-hover);
  color: var(--accent-yellow);
}

.route-stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-yellow-light);
  color: var(--accent-yellow);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-active);
}

/* Driver Incoming Order Modal Overlay */
.driver-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: fadeIn 0.2s ease;
}

.driver-modal-card {
  background: var(--bg-card);
  border: 2px solid var(--accent-yellow);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 40px rgba(255, 199, 0, 0.4);
  text-align: center;
  animation: scaleUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

/* ==========================================================================
   Header Profile Dropdown Menu / Popover
   ========================================================================== */
.profile-popover-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 3000;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 82px 24px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: fadeIn 0.15s ease;
}

.profile-dropdown-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--accent-yellow);
  border-radius: var(--radius-lg);
  padding: 22px;
  width: 100%;
  max-width: 410px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 199, 0, 0.25);
  animation: profileMenuSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}

/* Pointer arrow pointing towards the header profile button */
.profile-dropdown-card::before {
  content: '';
  position: absolute;
  top: -9px;
  right: 22px;
  width: 16px;
  height: 16px;
  background: var(--bg-card);
  border-top: 2px solid var(--accent-yellow);
  border-left: 2px solid var(--accent-yellow);
  transform: rotate(45deg);
  z-index: 2;
}

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

@media (max-width: 600px) {
  .profile-popover-overlay {
    padding: 68px 10px 16px;
    justify-content: center;
  }

  .profile-dropdown-card {
    max-width: calc(100vw - 20px);
    padding: 18px;
  }

  .profile-dropdown-card::before {
    right: 18px;
  }
}

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

.order-timer-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-yellow-light);
  border: 2px solid var(--accent-yellow);
  color: var(--accent-yellow);
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.driver-order-price {
  font-size: 36px;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--accent-yellow);
  margin: 6px 0;
}

/* ==========================================================================
   Mobile-First Responsive Adjustments (< 768px and < 480px)
   ========================================================================== */

@media (max-width: 768px) {
  /* Allow natural mobile scrolling on landing page with native momentum and accurate hit-testing */
  html {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }

  /* Lock viewport only when map app workspace is active */
  html.app-active, body.app-active {
    height: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  .app-container {
    height: 100dvh;
    width: 100vw;
  }

  /* Compact Top Navbar for Mobile */
  .navbar {
    top: max(8px, env(safe-area-inset-top));
    left: 8px;
    right: 8px;
    height: 52px;
    padding: 0 10px;
    border-radius: var(--radius-md);
    gap: 6px;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }

  .brand {
    gap: 6px;
    flex-shrink: 0;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 8px;
  }

  .brand-title {
    font-size: 16px;
    letter-spacing: -0.3px;
  }

  /* Role Switcher in Header: compact pills with icons */
  .role-switcher {
    padding: 2px;
    gap: 2px;
    flex-shrink: 0;
  }

  .role-btn {
    padding: 5px 8px;
    font-size: 13px;
    gap: 4px;
    border-radius: var(--radius-full);
  }

  .role-text {
    display: none; /* Hide text, show only 🚕 / 👨‍✈️ / 📡 to preserve space */
  }

  .nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  /* Hide verbose text labels in header badges */
  .ws-text,
  .auth-text,
  .nav-btn-text {
    display: none;
  }

  #ws-badge {
    padding: 4px 7px;
    font-size: 11px;
    border-radius: var(--radius-full);
  }

  #auth-open-btn {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: var(--radius-full);
  }

  #user-profile-badge {
    padding: 3px 8px;
    gap: 5px;
    border-radius: var(--radius-full);
  }

  #user-name-text {
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }

  #user-balance-text {
    display: none; /* Hide balance from header on mobile to prevent squishing */
  }

  .icon-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
    flex-shrink: 0;
  }

  /* Native Mobile Bottom Sheet (.panel-container) */
  .panel-container {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    border-radius: 22px 22px 0 0;
    max-height: 84dvh;
    min-height: 36dvh;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.55);
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border-active);
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease;
  }

  /* Visual Native Drag & Tap Handle */
  .sheet-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 28px;
    margin: 4px 0 0 0;
    cursor: pointer;
    flex-shrink: 0;
    background: transparent;
    border: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .sheet-handle::after {
    content: '';
    display: block;
    width: 50px;
    height: 5px;
    border-radius: 4px;
    background: var(--text-muted);
    opacity: 0.7;
    transition: opacity 0.2s, background-color 0.2s, transform 0.15s;
  }

  .sheet-handle:hover::after,
  .sheet-handle:active::after {
    opacity: 1;
    background: var(--accent-yellow);
    transform: scaleX(1.15);
  }

  .panel-header {
    padding: 8px 16px 8px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(255, 199, 0, 0.15);
  }

  .panel-container.peek #sheet-toggle-chevron {
    transform: rotate(180deg);
  }

  .panel-title {
    font-size: 16px;
  }

  .route-stats-pill {
    font-size: 11px;
    padding: 3px 8px;
  }

  .panel-body {
    padding: 8px 14px 12px;
    gap: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Route Card Inputs - Thumb Friendly & No iOS Safari Auto-Zoom */
  .route-card {
    padding: 10px 12px;
    border-radius: var(--radius-md);
  }

  .route-row {
    gap: 10px;
  }

  .route-divider {
    margin: 6px 0 6px 24px;
  }

  .route-input {
    font-size: 16px; /* Critical: 16px stops iOS Safari auto-zoom on tap */
    padding: 4px 0;
  }

  .route-label {
    font-size: 10px;
  }

  /* Quick Destination Chips */
  .quick-chips {
    gap: 6px;
    padding-bottom: 2px;
  }

  .chip-btn {
    padding: 5px 10px;
    font-size: 12px;
  }

  /* Native Mobile Tariffs Carousel (Horizontal Swipe) */
  .tariff-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding: 2px 2px 8px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tariff-list::-webkit-scrollbar {
    display: none;
  }

  .tariff-item {
    flex: 0 0 104px;
    min-width: 104px;
    scroll-snap-align: start;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px 8px;
    gap: 5px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
  }

  .tariff-left {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .tariff-icon-wrap {
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 10px;
  }

  .tariff-name {
    font-size: 13px;
    font-weight: 700;
  }

  .tariff-desc {
    display: none; /* Hide long description in mobile cards to stay clean */
  }

  .tariff-right {
    text-align: center;
  }

  .tariff-price {
    font-size: 14px;
    font-weight: 800;
  }

  .tariff-eta {
    font-size: 10px;
    color: var(--text-muted);
  }

  /* Sticky Action Footer: Button & Payment Selector Always Within Reach */
  .booking-footer {
    position: sticky;
    bottom: 0;
    background: var(--bg-card);
    padding: 8px 0 2px 0;
    margin-top: 6px;
    z-index: 10;
    border-top: 1px solid var(--border-subtle);
  }

  .booking-footer .payment-selector {
    padding: 8px 12px;
    font-size: 12px;
    margin-bottom: 8px;
  }

  .booking-footer .cta-button {
    padding: 14px;
    font-size: 15px;
    border-radius: var(--radius-md);
  }

  /* Driver Modal Overlay - Slide from Bottom Sheet on Mobile */
  .driver-modal-overlay {
    padding: 8px;
    align-items: flex-end;
  }

  .driver-modal-card {
    max-width: 100%;
    width: 100%;
    max-height: 85dvh;
    overflow-y: auto;
    padding: 18px 14px;
    border-radius: 20px 20px 14px 14px;
  }

  .driver-modal-card .role-switcher {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .driver-modal-card .role-switcher .role-btn {
    font-size: 11px !important;
    padding: 6px 2px !important;
  }

  .driver-order-price {
    font-size: 28px;
  }

  /* Toast notification position for mobile */
  .toast-box {
    top: 64px;
    left: 14px;
    right: 14px;
    align-items: center;
    pointer-events: none !important;
    position: fixed;
    z-index: 9999;
  }

  .toast {
    width: 100%;
    max-width: 380px;
    padding: 10px 14px;
    font-size: 12px;
  }

  /* Leaflet Controls on Mobile - Keep below Top Bar */
  .leaflet-top.leaflet-left,
  .leaflet-top.leaflet-right {
    top: 64px !important;
  }

  .leaflet-control-zoom {
    margin-right: 10px !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 10px !important;
    overflow: hidden;
  }

  .leaflet-control-zoom a {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
  }
}

/* Extra Compact Phones (< 400px width, e.g. iPhone SE) */
@media (max-width: 400px) {
  .brand-title span {
    display: none; /* Show only "Golay" */
  }

  .navbar {
    padding: 0 6px;
    gap: 4px;
  }

  .role-btn {
    padding: 4px 6px;
    font-size: 12px;
  }

  .tariff-item {
    flex: 0 0 96px;
    min-width: 96px;
    padding: 8px 4px;
  }
}

/* ==========================================================================
   Landing & Promotional Page Styles (Unauthenticated)
   ========================================================================== */
.landing-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  overflow: visible;
}

.landing-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 768px) {
  .landing-navbar {
    padding: 8px 12px;
    gap: 8px;
  }
  .landing-navbar .brand {
    gap: 6px;
  }
  .landing-navbar .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .landing-navbar .brand-title {
    font-size: 15px;
  }
  .landing-navbar .nav-actions {
    gap: 6px;
    display: flex;
    align-items: center;
  }
  #landing-pwa-btn {
    padding: 6px 10px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }
  #landing-login-trigger-btn {
    padding: 6px 14px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
}

@media (max-width: 400px) {
  .landing-navbar {
    padding: 6px 8px;
    gap: 6px;
  }
  .landing-navbar .brand-title {
    font-size: 14px;
  }
  #landing-pwa-btn span:last-child {
    display: none; /* Show only 📲 icon on very narrow screens so "Войти" is prominently clickable */
  }
  #landing-pwa-btn {
    padding: 6px 8px !important;
  }
  #landing-login-trigger-btn {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
}

.landing-hero {
  padding: 36px 20px 24px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.landing-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 5.5vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.landing-hero h1 span {
  color: var(--accent-yellow);
}

.landing-hero p {
  font-size: clamp(14px, 3.2vw, 17px);
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.5;
}

/* Inline High-Conversion Auth & Registration Widget */
.landing-auth-section {
  padding: 0 16px 28px;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}

.landing-auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

.auth-switch-bar {
  display: flex;
  background: var(--bg-elevated);
  padding: 3px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.auth-switch-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  user-select: none;
}

.auth-switch-btn.active {
  background: var(--accent-yellow);
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.auth-role-chips {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}

.inline-role-chip {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.inline-role-chip:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.inline-role-chip.active {
  border-color: var(--accent-yellow);
  color: #000;
  background: var(--accent-yellow);
  font-weight: 800;
}

/* Social Auth Buttons (Google & Telegram) */
.social-auth-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  text-decoration: none;
  box-sizing: border-box;
}

.social-btn.google-btn {
  background: #ffffff !important;
  color: #1f1f1f !important;
  border-color: #dadce0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.social-btn.google-btn:hover {
  background: #f8f9fa !important;
  border-color: #c6c9ce !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.social-btn.telegram-btn {
  background: #24a1de !important;
  color: #ffffff !important;
  border-color: #24a1de !important;
  box-shadow: 0 2px 8px rgba(36, 161, 222, 0.25);
}

.social-btn.telegram-btn:hover {
  background: #2093cb !important;
  box-shadow: 0 4px 14px rgba(36, 161, 222, 0.4);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-divider span {
  padding: 0 10px;
}

/* PWA Installation Card */
.pwa-guide-section {
  padding: 0 16px 24px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.pwa-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.pwa-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.pwa-platform-tabs {
  display: flex;
  background: var(--bg-elevated);
  padding: 3px;
  border-radius: var(--radius-full);
  gap: 4px;
}

.pwa-tab-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pwa-tab-btn.active {
  background: var(--accent-yellow);
  color: #000;
}

.ios-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.ios-step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.ios-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-yellow);
  color: #000;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-step-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.ios-step-desc {
  font-size: 13px;
  line-height: 1.4;
}

/* Portals Section (3 Types) */
.portals-section {
  padding: 10px 16px 30px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.section-title-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 800;
  margin-bottom: 6px;
}

.section-title-wrap p {
  font-size: 14px;
  color: var(--text-secondary);
}

.portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  transition: all var(--transition-normal);
}

.portal-card:hover {
  border-color: var(--accent-yellow);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.portal-card.highlight {
  border-color: var(--accent-yellow);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(255, 199, 0, 0.05) 100%);
}

.portal-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent-yellow);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.portal-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.portal-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.portal-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

/* Tariffs Preview Grid */
.tariffs-preview-section {
  padding: 10px 16px 40px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.landing-tariffs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.landing-tariff-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.landing-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
}

/* Role header badges for Authenticated mode */
.header-center-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
}

/* Floating GPS Locate Control on Map */
.leaflet-control-locate {
  margin-right: 12px !important;
  margin-bottom: 12px !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.leaflet-locate-btn {
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
  width: 38px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none !important;
}

.leaflet-locate-btn:hover,
.leaflet-locate-btn:active {
  background-color: var(--accent-yellow) !important;
  color: #000 !important;
  transform: scale(1.05);
}

.leaflet-locate-btn.locating #locate-btn-icon {
  display: inline-block;
  animation: pulse-locate 0.8s infinite alternate ease-in-out;
}

@keyframes pulse-locate {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.25); opacity: 1; }
}

/* Animated User Current Location Radar Pulse */
.user-location-marker-container {
  background: transparent !important;
  border: none !important;
}

.user-location-marker {
  position: relative;
  width: 24px;
  height: 24px;
}

.user-location-dot {
  width: 14px;
  height: 14px;
  background: #2563eb;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.85);
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
}

.user-location-pulse {
  width: 24px;
  height: 24px;
  background: rgba(37, 99, 235, 0.35);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  animation: user-radar 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}

@keyframes user-radar {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Brand Logo Image */
.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

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

/* Route Map Pick Button */
.route-map-pick-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: all 0.2s;
}

.route-map-pick-btn:hover,
.route-map-pick-btn:active {
  opacity: 1;
  background: var(--bg-card);
  transform: scale(1.1);
}

/* Ride Mode Selector (Seat vs Salon) */
.ride-mode-selector {
  display: flex;
  gap: 8px;
}

.ride-mode-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.ride-mode-btn.active {
  border-color: var(--accent-yellow) !important;
  color: #000 !important;
  background: var(--accent-yellow) !important;
  font-weight: 800;
}

/* Panel Peek / Drag States */
.panel-container.peek {
  transform: translateY(calc(100% - 68px)) !important;
}

/* Central Map Pin Overlay (Yandex/Uber style pin-drop) */
.map-center-pin-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 1050;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pin-marker-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pin-marker-badge {
  background: rgba(18, 18, 18, 0.9);
  color: #fff;
  border: 1px solid var(--border-active);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

[data-theme="light"] .pin-marker-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #000;
}

.pin-marker-icon {
  font-size: 38px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  animation: float-pin 1.2s infinite alternate ease-in-out;
}

@keyframes float-pin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.pin-marker-shadow {
  width: 14px;
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  margin-top: -4px;
}

/* Floating Bottom Confirm Bar in Pin Mode */
.pin-confirm-floating-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 1060;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-up {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.pin-confirm-info {
  flex: 1;
  min-width: 0;
}

.pin-confirm-type {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-yellow);
}

.pin-confirm-address {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.pin-confirm-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

