/* ==========================================================================
   Vgorode Driver Workstation (Driver Cockpit, Radar, Tariffs, Driver Chat, Orders Board)
   ========================================================================== */

/* ==========================================================================
   4. Кабинет водителя & Тарифы
   ========================================================================== */
.panel-h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
}

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

.online-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-online {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-green);
}

.status-offline {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border-light);
  transition: 0.2s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--accent-green);
}
input:checked + .slider:before {
  transform: translateX(16px);
}


/* -------------------------------------------------------------------------- */

/* ==========================================================================
   8. Стили для Профилей водителя/пассажира и Регистрации водителя
   ========================================================================== */
.btn-register-header {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px var(--accent-orange-glow);
}

.btn-register-header:hover {
  background: var(--accent-lime-hover);
}

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

.btn-text-link {
  font-size: 0.88rem;
  color: var(--accent-blue);
  font-weight: 500;
  text-decoration: underline;
  padding: 0;
}

.btn-passenger-profile-badge {
  font-size: 0.88rem;
  padding: 3px 8px;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-passenger-profile-badge:hover {
  background: var(--bg-hover);
}

/* Герой модального окна профиля */
.driver-profile-card, .passenger-profile-card {
  max-width: 440px;
}

.driver-modal-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 6px;
}

.driver-modal-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 500;
  flex-shrink: 0;
}

.driver-modal-avatar.passenger-avatar {
  background: #2563eb;
}

.driver-modal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.driver-modal-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
}

.driver-modal-car {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.driver-modal-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.badge-rating {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-amber);
}

.badge-verified {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 2px 7px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border-radius: var(--radius-pill);
}

/* Мета-информация в модалке */
.driver-modal-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 10px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.meta-val {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
}

.meta-val.highlight {
  color: var(--accent-green);
}

/* Блок отзывов */
.driver-reviews-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
}

.reviews-count-tag {
  font-size: 0.84rem;
  color: var(--text-muted);
}

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

.review-item {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-author {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
}

.review-stars {
  font-size: 0.88rem;
  color: var(--accent-amber);
  font-weight: 500;
}

.review-text {
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.review-date {
  font-size: 0.82rem;
  color: var(--text-subtle);
  align-self: flex-end;
}

/* Кнопка действия в модалке */
.btn-modal-primary {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px var(--accent-orange-glow);
  transition: all 0.15s ease;
}

.btn-modal-primary:hover {
  background: var(--accent-lime-hover);
}

/* Регистрация водителя */
.register-promo-note {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}


/* -------------------------------------------------------------------------- */

/* ==========================================================================
   10. Чат водителя с пассажиром (по системе ОргСовет / MoneyControl)
   ========================================================================== */
.chat-modal-card {
  max-width: 440px;
  height: 580px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.chat-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.chat-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.chat-header-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-header-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
}

.chat-header-status {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.btn-chat-call {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.btn-chat-call:hover {
  background: var(--bg-hover);
  border-color: #cbd5e1;
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

.chat-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.chat-msg-row.own {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-msg-row.other {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-msg-row.system {
  align-self: center;
  align-items: center;
  max-width: 92%;
}

.chat-msg-author {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 3px;
  padding: 0 4px;
  font-weight: 500;
}

.chat-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.4;
  word-break: break-word;
}

.chat-msg-row.own .chat-bubble {
  background: #0f172a;
  color: #ffffff;
  border-bottom-right-radius: 3px;
}

.chat-msg-row.other .chat-bubble {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chat-msg-row.system .chat-bubble {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  font-size: 0.88rem;
  border-radius: 10px;
  text-align: center;
  padding: 6px 12px;
}

.chat-msg-time {
  font-size: 0.80rem;
  color: var(--text-subtle);
  margin-top: 2px;
  padding: 0 4px;
}

.chat-quick-chips {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  overflow-x: auto;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  scrollbar-width: none;
}

.chat-chip {
  padding: 5px 11px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-chip:hover {
  background: var(--bg-hover);
  border-color: #cbd5e1;
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  outline: none;
  background: var(--bg-input);
  transition: all 0.15s ease;
}

.chat-input:focus {
  background: #ffffff;
  border-color: #94a3b8;
}

.btn-chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--accent-orange-glow);
  transition: all 0.15s ease;
}

.btn-chat-send:hover {
  background: var(--accent-orange-hover);
}

.btn-trip-chat {
  flex: 1;
  padding: 10px 0;
  background: var(--accent-orange);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px var(--accent-orange-glow);
  transition: all 0.15s ease;
}

.btn-trip-chat:hover {
  background: var(--accent-orange-hover);
}


/* -------------------------------------------------------------------------- */

/* ==========================================================================
   23. Категория водителя: Легковое такси vs Грузоперевозчик
   ========================================================================== */
.driver-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 14px;
}
.btn-type-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.btn-type-tab.active {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.type-tab-icon {
  font-size: 1.25rem;
}
.type-tab-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  display: block;
}
.type-tab-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
}


/* -------------------------------------------------------------------------- */

/* ==========================================================================
   24. Редизайн Кабинета Водителя (Driver Cockpit)
   ========================================================================== */
.driver-cockpit-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
}
.driver-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-driver-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 0.90rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-driver-back:hover {
  background: #e2e8f0;
}
.driver-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  color: var(--text-muted);
}
.driver-online-pill.active {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.online-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}
.driver-online-pill.active .online-indicator-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulseDot 2s infinite;
}
.driver-profile-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 12px;
}
.driver-hero-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.driver-hero-avatar-pic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.driver-status-badge-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
}
.driver-hero-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.driver-hero-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}
.driver-hero-vehicle {
  font-size: 0.90rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.driver-hero-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.driver-rating-chip {
  font-size: 0.84rem;
  padding: 2px 8px;
  background: #fef3c7;
  color: #b45309;
  border-radius: var(--radius-pill);
  font-weight: 500;
}
.driver-cat-chip {
  font-size: 0.84rem;
  padding: 2px 8px;
  background: #f1f5f9;
  color: #334155;
  border-radius: var(--radius-pill);
  font-weight: 500;
}
.driver-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.driver-profile-select {
  flex: 1;
}
.driver-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.driver-stat-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}
.stat-val {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}
.stat-val.highlight-green {
  color: #059669;
}
.stat-val.highlight-lime {
  color: #15803d;
}
.stat-sub {
  font-size: 0.80rem;
  color: var(--text-muted);
}
.driver-sub-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sub-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sub-box-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
}
.sub-box-status {
  font-size: 0.84rem;
  color: #10b981;
  font-weight: 500;
}
.sub-price-pill {
  font-size: 0.8rem;
  font-weight: 500;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.btn-driver-sub-pay {
  padding: 8px 0;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.driver-tariffs-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tariffs-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tariffs-title {
  font-size: 0.82rem;
  font-weight: 500;
}
.tariffs-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.tariffs-steppers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tariff-stepper-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tariff-step-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}
.btn-save-tariffs-modern {
  padding: 8px 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-save-tariffs-modern:hover {
  background: #f1f5f9;
}
.driver-radar-card {
  background: #f8fafc;
  border: 1.5px solid #a7f3d0;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.radar-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.radar-pulse-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #065f46;
  position: relative;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
}
.pulse-ring {
  position: absolute;
  left: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: pulseRing 1.8s infinite;
}
.radar-route-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.radar-point-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.radar-point-text {
  font-size: 0.90rem;
  color: var(--text-main);
}
.radar-income-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.radar-income-sum {
  color: #059669;
}
.radar-actions-row {
  display: flex;
  gap: 6px;
}
.btn-radar-accept-modern {
  flex: 1.5;
  padding: 9px 0;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-radar-accept-modern:hover {
  background: #059669;
}
.btn-radar-chat-modern,
.btn-radar-info-modern {
  flex: 1;
  padding: 9px 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.90rem;
  font-weight: 500;
  cursor: pointer;
}

/* Быстрые направления под строкой поиска в начальном состоянии */
.initial-quick-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 2px 2px;
  margin-top: -2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.initial-quick-chips::-webkit-scrollbar {
  display: none;
}

.init-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  font-size: 0.90rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.init-chip:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}
.init-chip:active {
  transform: scale(0.97);
}


/* -------------------------------------------------------------------------- */

/* ==========================================================================
   Разделение режимов (как в inDrive): пассажир / водитель — интерфейсы не смешиваются
   ========================================================================== */
body.app-mode-driver .pm-only { display: none !important; }
body.app-mode-passenger .dm-only { display: none !important; }

.btn-theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  transition: transform 0.2s ease, background 0.15s ease;
  flex-shrink: 0;
}
.btn-theme-toggle:hover { background: var(--bg-hover); transform: rotate(-12deg); }

.driver-section-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Пустые состояния доски объявлений */
.board-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 36px 20px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  margin: 8px 0;
}
.board-empty-icon { font-size: 2rem; line-height: 1; margin-bottom: 4px; }
.board-empty-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 500; color: var(--text-main); }
.board-empty-sub { font-size: 0.85rem; color: var(--text-muted); max-width: 300px; line-height: 1.45; }
.board-empty-btn { margin-top: 10px; width: auto !important; padding: 10px 22px !important; }

/* Мои заявки (пассажир) */
.my-requests-container { display: flex; flex-direction: column; gap: 12px; padding-bottom: 90px; }
.my-req-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  animation: myReqIn 0.25s ease both;
}
@keyframes myReqIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.my-req-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.my-req-status {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  color: var(--text-muted);
}
.my-req-status.st-pending { background: rgba(255, 107, 0, 0.12); color: var(--accent-orange); }
.my-req-status.st-accepted { background: rgba(16, 185, 129, 0.14); color: var(--accent-green); }
.my-req-status.st-done { background: rgba(37, 99, 235, 0.12); color: var(--accent-blue); }
.my-req-status.st-cancelled { background: rgba(239, 68, 68, 0.12); color: var(--accent-red); }
.my-req-price { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 500; color: var(--text-main); }
.my-req-route { display: flex; flex-direction: column; gap: 6px; }
.my-req-meta { font-size: 0.8rem; color: var(--text-muted); }
.my-req-waiting {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  line-height: 1.4;
}
.my-req-driver {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.my-req-driver-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.my-req-driver-name { font-weight: 500; color: var(--text-main); font-size: 0.9rem; }
.my-req-driver-car { font-size: 0.90rem; color: var(--text-muted); }
.my-req-driver-actions { display: flex; gap: 8px; }


/* -------------------------------------------------------------------------- */

/* ==========================================================================
   Поиск водителя: радар и живые встречные предложения
   ========================================================================== */
.search-radar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.10), rgba(255, 107, 0, 0.02));
  border: 1px solid rgba(255, 107, 0, 0.22);
  transition: padding 0.3s ease;
}
.radar-visual {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.10) 0%, transparent 70%);
  transition: width 0.3s ease, height 0.3s ease;
}
.radar-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 107, 0, 0.55);
  width: 20%;
  height: 20%;
  opacity: 0;
  animation: radarPing 2.4s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
.radar-ring.r2 { animation-delay: 0.8s; }
.radar-ring.r3 { animation-delay: 1.6s; }
@keyframes radarPing {
  0% { width: 20%; height: 20%; opacity: 0.9; }
  100% { width: 100%; height: 100%; opacity: 0; }
}
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 107, 0, 0.45), rgba(255, 107, 0, 0) 70deg, transparent 360deg);
  animation: radarSweep 2.2s linear infinite;
}
@keyframes radarSweep { to { transform: rotate(360deg); } }
.radar-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%);
  font-size: 1.25rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.radar-car {
  position: absolute;
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0;
  animation: radarCar 4.4s ease-in-out infinite;
}
.radar-car.c1 { left: 14%; top: 22%; animation-delay: 0.3s; }
.radar-car.c2 { right: 12%; top: 30%; animation-delay: 1.4s; }
.radar-car.c3 { left: 22%; bottom: 14%; animation-delay: 2.5s; }
.radar-car.c4 { right: 20%; bottom: 18%; animation-delay: 3.4s; }
@keyframes radarCar {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  20%, 60% { opacity: 1; transform: scale(1); }
}
.radar-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.radar-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 500; color: var(--text-main); }
.radar-sub { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.radar-elapsed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.90rem;
  color: var(--accent-orange);
  font-variant-numeric: tabular-nums;
}
.search-radar.compact { padding: 10px 12px; gap: 12px; }
.search-radar.compact .radar-visual { width: 52px; height: 52px; }
.search-radar.compact .radar-center { font-size: 0.95rem; }
.search-radar.compact .radar-car { display: none; }

.radar-raise-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 4px;
}
.radar-raise-lbl { font-size: 0.82rem; color: var(--text-muted); }
.radar-raise-lbl strong { color: var(--text-main); font-weight: 500; font-size: 0.95rem; margin-left: 4px; }
.radar-raise-chips { display: flex; gap: 6px; }

/* Живые карточки откликов */
.search-offer-card.offer-enter { animation: offerEnter 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes offerEnter {
  0% { opacity: 0; transform: translateY(-14px) scale(0.96); }
  100% { opacity: 1; transform: none; }
}
.search-offer-card.offer-leave {
  opacity: 0 !important;
  transform: translateX(40px) scale(0.96) !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}
.search-offer-card.offer-updated { animation: offerFlash 0.9s ease; }
@keyframes offerFlash {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(255, 107, 0, 0); }
}
.offer-delta-row { display: flex; margin-top: -4px; }
.offer-delta {
  font-size: 0.86rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.offer-delta.delta-same { background: rgba(16, 185, 129, 0.12); color: var(--accent-green); }
.offer-delta.delta-up { background: rgba(255, 107, 0, 0.12); color: var(--accent-orange); }
.offer-delta.delta-down { background: rgba(37, 99, 235, 0.12); color: var(--accent-blue); }
.search-offer-row-2 { gap: 8px; }
.btn-offer-decline {
  flex: 0 0 auto;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-offer-decline:hover { background: var(--bg-hover); color: var(--text-main); }
.offer-ttl-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
}
.offer-ttl-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-orange), #ffb066);
  transition: width 1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .radar-ring, .radar-sweep, .radar-car, .search-offer-card.offer-enter { animation: none !important; }
}

/* Пилюля статуса «На линии» не переносится на две строки */
.driver-online-pill { white-space: nowrap; flex-shrink: 0; }

/* ==========================================================================
   Driver Info Form (Анкета водителя и автомобиля в кабинете)
   ========================================================================== */
.driver-info-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 16px;
  margin-top: 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.dif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 2px;
}

.dif-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: #0f172a;
}

.dif-hint {
  font-size: 0.76rem;
  font-weight: 500;
  color: #059669;
  background: #ecfdf5;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
}

.dif-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #475569;
  display: block;
  margin-bottom: 4px;
}

.dif-muted {
  font-size: 0.76rem;
  font-weight: 400;
  color: #94a3b8;
}

.dif-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.90rem;
  font-weight: 400;
  color: #0f172a;
  box-sizing: border-box;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.dif-input:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.dif-textarea {
  height: auto;
  min-height: 72px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.4;
  font-family: inherit;
}

.dif-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 12px;
}

@media (max-width: 480px) {
  .dif-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 10px;
  }
}

.dif-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.dif-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.dif-chip input[type="checkbox"] {
  display: none;
}

.dif-chip:has(input:checked) {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.12);
}

.dif-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.dif-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.dif-photo {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  background: #f1f5f9;
  box-sizing: border-box;
}

.dif-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dif-photo-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: none;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dif-photo-del:hover {
  background: #ef4444;
}

.dif-photo-add {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dif-photo-add:hover {
  border-color: #3b82f6;
  color: #2563eb;
  background: #eff6ff;
}

#btn-save-driver-info {
  width: 100%;
  height: 46px;
  min-height: 46px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 6px;
  cursor: pointer;
}



