/* ==========================================================================
   iziTaxi Design System — Tasteful Simplicity (Apple / Uber / Linear aesthetic)
   ========================================================================== */

:root {
  --bg-dark: #090c15;
  --bg-surface: #0e1320;
  --bg-card: rgba(14, 19, 32, 0.85);
  --bg-card-solid: #0e1320;
  --bg-card-hover: rgba(18, 25, 42, 0.92);
  
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(212, 163, 89, 0.35);
  
  /* Приглушенное благородное теплое золото / шампанское */
  --primary: #d4a359;
  --primary-light: #dfb56c;
  --primary-hover: #c49247;
  --primary-gradient: linear-gradient(180deg, #dfb56c 0%, #c89a4b 100%);
  --primary-glow: 0 4px 14px rgba(0, 0, 0, 0.30);
  --primary-glow-lg: 0 8px 24px rgba(0, 0, 0, 0.40);
  
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Мягкие, приглушенные акцентные цвета */
  --green: #34d399;
  --green-glow: none;
  --green-bg: rgba(52, 211, 153, 0.08);
  --red: #f87171;
  --red-bg: rgba(248, 113, 113, 0.08);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 16px 40px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: none;
  
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 9999px;
  
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  background-color: var(--bg-dark);
  color: var(--text);
  background-image: radial-gradient(ellipse 70% 35% at 50% 0%, rgba(255, 255, 255, 0.02) 0%, transparent 65%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
}

/* ================== ШАПКА ПРИЛОЖЕНИЯ (HEADER) ================== */
header {
  background: rgba(9, 12, 21, 0.98);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* По умолчанию (в обычном браузере) - стандартный комфортный отступ */
  padding-top: max(12px, calc(env(safe-area-inset-top, 0px) + 10px));
  padding-bottom: 12px;
  padding-left: max(16px, calc(env(safe-area-inset-left, 0px) + 16px));
  padding-right: max(16px, calc(env(safe-area-inset-right, 0px) + 16px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
  width: 100%;
  transition: all 0.3s var(--ease-out-expo);
}

/* Принудительный безопасный отступ под Dynamic Island / статус-бар iOS ТОЛЬКО в режиме приложения / PWA / WebApp */
@media all and (display-mode: standalone) {
  header, #main-header {
    padding-top: max(54px, calc(env(safe-area-inset-top, 46px) + 12px)) !important;
  }
}

.is-app-mode header,
.is-app-mode #main-header,
.is-pwa-standalone header,
.is-telegram-webapp header,
html.is-pwa-standalone header,
body.is-pwa-standalone header {
  padding-top: max(54px, calc(env(safe-area-inset-top, 46px) + 12px)) !important;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out-expo);
}

.logo:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.logo span {
  color: #ffffff;
  font-weight: 800;
}

.logo img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.logo:hover img {
  transform: scale(1.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Переключатели и кнопки в стиле Apple Pill */
.role-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 40px;
  box-sizing: border-box;
}

.role-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
}

.role-btn:hover {
  color: #ffffff;
}

.role-btn.active {
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-header-secondary {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  min-height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
}

.btn-header-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-header-secondary:active {
  transform: scale(0.97);
}

.user-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 4px 12px 4px 5px;
  min-height: 38px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.user-profile-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.user-avatar-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ================== ОСНОВНОЙ КОНТЕЙНЕР ================== */
main {
  flex: 1;
  padding: 18px 16px 48px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

/* ================== ГЛАВНАЯ КАРТОЧКА ЗАКАЗА (ORDER MAIN CARD) ================== */
.order-main-card {
  background: linear-gradient(180deg, rgba(16, 23, 40, 0.88) 0%, rgba(10, 15, 27, 0.92) 100%);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  margin-bottom: 22px;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 35px -10px rgba(245, 158, 11, 0.12);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: cardFadeInUp 0.5s var(--ease-out-expo);
}

.order-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.60) 50%, transparent 100%);
  opacity: 0.9;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.main-heading {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.15;
}

.main-subheading {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 5px;
  letter-spacing: -0.01em;
}

.badge-discount {
  background: rgba(52, 211, 153, 0.08);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.20);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ================== МАРШРУТНЫЙ БЛОК (ROUTE CONTAINER) ================== */
.route-card-box {
  background: rgba(12, 16, 26, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  gap: 14px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.route-card-box:focus-within {
  border-color: rgba(212, 163, 89, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.route-decor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 10px 0;
  width: 16px;
  position: relative;
}

.route-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.route-dot.start {
  background: #34d399;
}

.route-beacon-ring {
  display: none;
}

.route-dot.end {
  background: #dfb56c;
  border-radius: 2px;
}

.route-connector {
  width: 2px;
  flex: 1;
  margin: 4px 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0, rgba(255, 255, 255, 0.15) 3px, transparent 3px, transparent 6px);
}

.route-inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-input-row {
  position: relative;
  display: flex;
  align-items: center;
}

.route-input-row input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  padding: 8px 36px 8px 0;
  transition: color 0.15s;
  letter-spacing: -0.01em;
}

.route-input-row input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
}

.route-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.btn-route-action {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}

.btn-route-action:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #fff;
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-50%) scale(1.08);
}

.btn-route-action:active {
  transform: translateY(-50%) scale(0.94);
}

/* ================== ЧИПЫ БЫСТРОГО ВЫБОРА (QUICK CHIPS) ================== */
.quick-chips-container {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.quick-chips-container::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--primary-light);
}

/* ================== ЖИВОЙ ПРЕВЬЮ-РАСЧЕТ МАРШРУТА ================== */
.live-estimate-bar {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeIn 0.3s ease;
}

.live-estimate-bar b {
  color: var(--primary-light);
}

/* ================== КНОПКИ ДЕЙСТВИЯ ================== */
.btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #080c14;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s var(--ease-out-expo);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.20);
}

/* Главный CTA заказа */
.btn-cta-main {
  position: relative;
  padding: 15px 22px;
  font-size: 15.5px;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-shimmer-sweep {
  display: none;
}

.btn-cta-text {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light);
}

.btn-secondary:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
}

/* Альтернативные действия (История / Бонусы) */
.alt-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-alt-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-alt-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-alt-pill:active {
  transform: scale(0.98);
}

/* ================== КАРТОЧКИ ОБЩЕГО НАЗНАЧЕНИЯ (CARDS) ================== */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.card h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 14px;
}

/* ================== ПРЕИМУЩЕСТВА СЕРВИСА (BENEFITS) ================== */
.features-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.benefit-item {
  background: linear-gradient(135deg, rgba(14, 21, 37, 0.75) 0%, rgba(9, 14, 25, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.3s var(--ease-out-expo);
}

.benefit-item:hover {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(135deg, rgba(20, 30, 52, 0.85) 0%, rgba(12, 18, 32, 0.92) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5), 0 0 20px -6px rgba(245, 158, 11, 0.15);
}

.benefit-icon {
  font-size: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.benefit-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.benefit-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ================== БАННЕР ДЛЯ ВОДИТЕЛЕЙ ================== */
.driver-cta-card {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08) 0%, rgba(12, 18, 32, 0.85) 100%);
  border: 1px solid rgba(234, 179, 8, 0.18);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  transition: border-color 0.3s ease;
}

.driver-cta-card:hover {
  border-color: rgba(234, 179, 8, 0.30);
}

.driver-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.driver-cta-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-top: 3px;
  letter-spacing: -0.01em;
}

.driver-cta-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

.btn-driver-register {
  background: var(--primary-gradient);
  color: #0a0e16;
  border: none;
  font-weight: 700;
  font-size: 13px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.22);
  transition: all 0.25s var(--ease-out-expo);
}

.btn-driver-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.30);
}

/* ================== КАРТОЧКА АКТИВНОГО ЗАКАЗА ================== */
.active-order-card {
  animation: cardFadeInUp 0.35s var(--ease-out-expo);
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 16px 48px -10px rgba(0, 0, 0, 0.8), 0 0 30px -10px rgba(245, 158, 11, 0.15);
}

.active-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.active-order-status-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.active-radar-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  position: relative;
  flex-shrink: 0;
}

.active-radar-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.6);
  animation: radarPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.active-order-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.active-order-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.active-order-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Компактный предпросмотр маршрута */
.active-route-preview {
  background: rgba(12, 17, 29, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.active-route-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.active-route-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #f1f5f9;
  line-height: 1.35;
}

.route-point-marker {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.route-point-marker.from {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.route-point-marker.to {
  background: #f43f5e;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
}

.route-point-text {
  flex: 1;
  word-break: break-word;
}

.active-route-comment {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: #cbd5e1;
}

.active-route-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.active-route-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.active-route-pill.price {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

/* Блок предложений водителей */
.bids-section-wrap {
  margin-top: 16px;
}

.bids-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.bids-section-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.bids-empty-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-muted);
}

.radar-ping-ring {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  display: inline-block;
  flex-shrink: 0;
  animation: radarPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.radar-box {
  display: none !important;
}

@keyframes radarPing {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.order-timer-chip {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-yellow {
  background: rgba(212, 163, 89, 0.10);
  color: #dfb56c;
  border: 1px solid rgba(212, 163, 89, 0.22);
}

.badge-green {
  background: rgba(52, 211, 153, 0.08);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.20);
}

.badge-red {
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.20);
}

.badge-gray {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

/* Карточки предложений от водителей (Bids) */
.bid-item {
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.bid-item:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(15, 22, 38, 0.85);
  transform: translateY(-1px);
}

.bid-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.02em;
}

.long-wait-alert {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
  animation: fadeIn 0.3s ease;
}

.btn-cancel-order {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-cancel-order:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #ffffff;
}

.pulse-wait {
  animation: pulseWait 2s infinite ease-in-out;
}

@keyframes pulseWait {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* ================== ВЫПАДАЮЩИЙ СПИСОК АДРЕСОВ ================== */
.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #111827;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  z-index: 200;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
  display: none;
}

.suggestion-item {
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover, .suggestion-item:active {
  background: rgba(245, 158, 11, 0.14);
}

.suggestion-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.suggestion-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.suggestion-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.suggestion-badge-airport {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.suggestion-badge-station {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.suggestion-badge-default {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.suggestion-item-hub {
  background: rgba(255, 255, 255, 0.02);
}

.suggestion-item-hub:hover, .suggestion-item-hub:active {
  background: rgba(59, 130, 246, 0.15) !important;
}

.suggestion-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  padding-left: 23px;
}

/* ================== МОДАЛЬНЫЕ ОКНА И ТОСТЫ ================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: modalOverlayIn 0.3s var(--ease-out-expo);
}

.modal-card {
  background: linear-gradient(180deg, #0e1628 0%, #090e1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: 0 28px 70px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 40px -15px rgba(245, 158, 11, 0.2);
  animation: modalCardIn 0.4s var(--ease-spring);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

.form-group {
  margin-bottom: 16px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  background: rgba(6, 10, 18, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  outline: none;
  transition: all 0.25s ease;
}

input:focus {
  border-color: rgba(234, 179, 8, 0.40);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.10);
  background: rgba(10, 16, 28, 0.90);
}

.google-auth-box {
  background: rgba(6, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  margin-bottom: 12px;
}

.btn-google {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-google:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.20);
}

.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  border: 1px solid rgba(234, 179, 8, 0.20);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideUp 0.35s var(--ease-spring);
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.20);
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalCardIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.alert-banner {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.install-pwa-btn {
  background: var(--primary-gradient);
  color: #080b11;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

/* Подвал */
.app-footer {
  text-align: center;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-link-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 12px;
  transition: color 0.2s;
}

.footer-link-btn:hover {
  color: var(--primary);
}

/* ==========================================================================
   АДАПТИВНОСТЬ ДЛЯ СМАРТФОНОВ И УСТРОЙСТВ С УЗКИМ ЭКРАНОМ (MOBILE RESPONSIVE)
   ========================================================================== */
@media (max-width: 640px) {
  header {
    padding-top: max(10px, calc(env(safe-area-inset-top, 0px) + 8px));
    padding-bottom: 10px;
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
    gap: 6px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .is-app-mode header,
  .is-pwa-standalone header,
  .is-telegram-webapp header {
    padding-top: max(54px, calc(env(safe-area-inset-top, 46px) + 12px)) !important;
    padding-bottom: 12px !important;
  }

  .logo {
    font-size: 16px;
    gap: 6px;
    flex-shrink: 0;
  }

  .logo img {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .nav-actions {
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
    display: flex;
    align-items: center;
  }

  .role-switcher {
    padding: 2px;
    min-height: 38px;
    flex-shrink: 0;
  }

  .role-btn {
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 600;
    min-height: 34px;
  }

  #btn-header-admin {
    padding: 7px 11px !important;
    font-size: 12px !important;
    min-height: 34px !important;
    border-radius: var(--radius-pill) !important;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .btn-header-secondary {
    padding: 7px 11px;
    font-size: 12px;
    min-height: 34px;
    flex-shrink: 0;
  }

  .btn-desktop-only {
    display: none !important;
  }

  .user-profile-chip {
    padding: 3px 8px 3px 5px;
    font-size: 12px;
    min-height: 34px;
    max-width: 92px;
    gap: 5px;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-profile-chip span {
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }

  .user-avatar-badge {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  main {
    padding: 10px 10px 70px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden !important;
  }

  .card, .order-main-card {
    padding: 16px 12px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .card h2 {
    font-size: 17px;
  }

  .main-heading {
    font-size: 20px;
  }

  .main-subheading {
    font-size: 12px;
  }

  .driver-cabinet-card h2 {
    font-size: 16px;
  }

  .badge-discount {
    font-size: 10px;
    padding: 3px 8px;
  }

  .quick-chips-container {
    padding-bottom: 4px;
  }

  .chip-btn {
    padding: 6px 10px;
    font-size: 11.5px;
  }

  .modal-overlay {
    padding: 8px;
    padding-bottom: calc(env(safe-area-inset-bottom, 16px) + 16px);
  }

  .modal-card {
    padding: 16px 14px;
    border-radius: 16px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .app-footer {
    padding-bottom: env(safe-area-inset-bottom, 16px);
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .logo span {
    display: none;
  }
  .role-btn {
    padding: 4px 6px;
    font-size: 10.5px;
  }
  .user-profile-chip {
    max-width: 32px;
    padding: 2px;
  }
  .user-profile-chip span {
    display: none;
  }
}

/* ================== РЕФЕРАЛЬНАЯ СИСТЕМА И QR-КОДЫ ================== */
.passenger-referral-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  transition: all 0.2s ease;
}

button.passenger-referral-banner {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  outline: none;
}

.passenger-referral-banner:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.passenger-referral-banner:active {
  transform: scale(0.99);
}

/* ================== УПРАВЛЕНИЕ АВТОМОБИЛЯМИ ВОДИТЕЛЯ ================== */
.driver-car-management-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  margin-bottom: 14px;
}

.driver-car-buttons-grid {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-car-edit {
  flex: 1;
  min-width: 120px;
  font-size: 12px;
  padding: 9px 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #cbd5e1;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.btn-car-edit:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.btn-car-add-new {
  flex: 1.2;
  min-width: 170px;
  font-size: 12px;
  padding: 9px 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.btn-car-add-new:hover, .btn-car-add-new:active {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
}

.driver-other-car-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 12px;
}

.referral-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.referral-banner-icon {
  font-size: 26px;
  line-height: 1;
}

.referral-banner-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.referral-banner-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.referral-banner-arrow {
  color: var(--text-dim);
  font-size: 20px;
  font-weight: 600;
}

.passenger-referral-balance-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 14px;
}

.driver-referral-card {
  border: 1px solid var(--border) !important;
  background: var(--bg-card) !important;
  margin-top: 16px;
}

.referral-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 12px 0 16px;
}

.referral-qr-box {
  background: #ffffff;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.referral-qr-img {
  width: 180px;
  height: 180px;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  image-rendering: pixelated;
}

.btn-download-qr {
  margin-top: 10px;
  font-size: 12px;
  padding: 7px 16px;
  text-decoration: none;
  border-radius: var(--radius-pill);
}

.referral-input-wrapper {
  margin-bottom: 12px;
}

.referral-input-label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.referral-link-row {
  display: flex;
  gap: 8px;
}

.referral-link-row input {
  flex: 1;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  color: #fff;
  font-size: 12.5px;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-link-row button {
  white-space: nowrap;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
}

.messenger-share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.btn-messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-messenger:active {
  transform: scale(0.98);
}

.btn-messenger.tg {
  background: #229ED9;
  color: #fff;
}

.btn-messenger.wa {
  background: #25D366;
  color: #fff;
}

.btn-messenger.native {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-messenger.native:hover {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 420px) {
  .messenger-share-grid {
    grid-template-columns: 1fr 1fr;
  }
  .btn-messenger.native {
    grid-column: span 2;
  }
}

.btn-edit-car-pill {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-edit-car-pill:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
}


/* ================== SKELETON SHIMMER LOADING ================== */
.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
  border-radius: var(--radius-sm);
  display: block;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-circle {
  border-radius: 50% !important;
}

.skeleton-bid-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  animation: cardFadeInUp 0.3s ease;
}

@keyframes cardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
