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

:root {
  /* Clean Lime & Black palette */
  --primary-blue: #FF4B33;
  /* яркий лайм */
  --secondary-blue: #FF8A7A;
  /* светлый лайм */
  --dark-green: #E8E8EC;
  /* чистый черный */
  --icon-blue: #FF4B33;
  --light-blue-bg: #000000;
  /* светлый фон под карточки */
  --light-blue-nav: #000000;
  --card-bg: #1E1E22;
  --white: #000000;
  --progress-bar-bg: rgba(255, 75, 51, 0.2);
  --accent-yellow: #FFC93C;
  --text-dark: #E8E8EC;
  --text-light: #ffffff;
  --graphite: #E8E8EC;
  --lime-soft: #2A2520;
  /* Reserve space for header when title is hidden */
  --no-brand-header-space: 56px;
  /* Layout helpers */
  /* Используем content-safe inset от Telegram, чтобы контент начинался под кнопками Close/⋯ */
  --app-top-offset: var(--tg-content-safe-area-inset-top, var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)));
  --safe-bottom: var(--tg-content-safe-area-inset-bottom, var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  /* Runtime-safe bottom inset (JS can override) */
  --safe-bottom-js: var(--safe-bottom);
  --safe-bottom-final: var(--safe-bottom-js);
  --nav-gap: 6px;
  --nav-offset: calc(var(--nav-gap) + var(--safe-bottom-final));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* iOS PWA full height fix */
html {
  height: 100%;
  height: -webkit-fill-available;
  /* Prevent iOS elastic bounce */
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: "Montserrat", "Roboto", system-ui, -apple-system, sans-serif;
  background-color: var(--light-blue-bg);
  display: flex;
  justify-content: center;
  align-items: stretch;
  /* iOS Safari viewport fix */
  min-height: 100%;
  min-height: -webkit-fill-available;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.app-screen {
  width: 100%;
  max-width: 100%;
  background-color: var(--light-blue-bg);
  border-radius: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  /* iOS PWA height fix */
  height: 100%;
  min-height: 100%;
  min-height: -webkit-fill-available;
  padding-top: var(--app-top-offset);
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 auto;
}

.app-content,
.map-page-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  padding-bottom: calc(140px + var(--safe-bottom-final));
  gap: 4px;
  overflow: hidden;
  height: 100%;
}

/* Общие стили */
.app-header {
  display: none !important;
}

.app-header h1 {
  display: none !important;
}

.app-header.header-centered h1 {
  display: none !important;
}

/* Hide brand title on pages with no-brand */
body.no-brand .app-header h1 {
  display: none !important;
}

body.no-brand .app-header {
  display: none !important;
}

/* Center the secondary title on Telegram WebApp */
body.tg-webapp .app-main h2,
.app-main h2.tg-centered-title {
  text-align: center;
}

.app-title {
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  /* Уменьшили с 1.5rem */
  font-weight: 900;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 4px 0 8px;
  /* Уменьшили отступы */
}

/* Стили для главной */
.bike-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease-in-out;
}


/* Картинка - теперь реально гибкая обертка */
.bike-image-wrapper {
  position: relative;
  margin: 0 -20px;
  flex: 1 1 auto;
  display: block;
  min-height: 100px;
  max-height: 38vh;
  overflow: hidden;
}

.bike-image-wrapper::before {
  content: "";
}


/* Стилизуем подпись на багажнике велосипеда. Этот блок отображает либо номер велосипеда, либо выбранный тариф (Бронза, Серебро, Золото). */
.bike-label {
  position: absolute;
  /* Располагаем текст примерно в левом верхнем углу багажника */
  top: 12px;
  left: 20px;
  padding: 2px 8px;
  background-color: #0d0d0d;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
  /* чтобы клики проходили сквозь */
}

.progress-section {
  width: 100%;
}

.progress-bar-container {
  background-color: var(--progress-bar-bg);
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
}

.progress-bar {
  width: 100%;
  height: 100%;
  background-color: #FF6B35;
  /* Lime base - App color */
  border-radius: 10px;
  transition: width 1s linear, background-color 0.5s ease;
}

.progress-bar.warning {
  background-color: #ffd600 !important;
  /* Yellow-ish orange */
  box-shadow: 0 0 8px rgba(255, 214, 0, 0.3);
}

.progress-bar.urgent {
  background-color: #ff4d4d !important;
  /* Urgent Red */
  box-shadow: 0 0 12px rgba(255, 77, 77, 0.6);
  animation: bar-pulse 1.5s infinite alternate;
}

@keyframes bar-pulse {
  from {
    filter: brightness(1) drop-shadow(0 0 2px #e53e3e);
  }

  to {
    filter: brightness(1.3) drop-shadow(0 0 12px #e53e3e);
  }
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-green);
}

.app-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 4px;
}

.app-main h2 {
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-green);
  line-height: 1.15;
  margin: 8px 0;
  text-align: center;
}

.info-cards {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.card {
  flex: 1;
  background-color: var(--light-blue-bg);
  border-radius: 12px;
  padding: 10px 12px;
  /* Уменьшили с 15px */
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--progress-bar-bg);
  transition: all 0.2s ease;
}

.card:hover {
  border-color: rgba(255,255,255,0.12);
}

.icon-wrapper {
  width: 40px;
  /* Уменьшили с 45px */
  height: 40px;
  border-radius: 50%;
  background: var(--primary-blue);
  display: flex;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.12);
  align-items: center;
  flex-shrink: 0;
}

.icon-wrapper svg {
  color: var(--dark-green);
  width: 20px;
  /* Уменьшили с 24px */
  height: 20px;
}

.icon-wrapper.dollar svg {
  width: 18px;
  height: 18px;
}

.text-content {
  display: flex;
  flex-direction: column;
}

.text-content span {
  font-size: 0.8rem;
  /* Уменьшили с 0.9rem */
  font-weight: 500;
  color: var(--dark-green);
}

.text-content strong {
  font-size: 1.1rem;
  /* Уменьшили с 1.2rem */
  font-weight: 700;
  color: var(--dark-green);
}

.action-buttons {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.btn {
  border-radius: 10px;
  font-family: "Montserrat", "Roboto", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  padding: 14px 10px;
  /* Уменьшили с 16px */
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.97);
  /* Легкое нажатие */
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--dark-green);
  font-size: 1.15rem;
  font-weight: 800;
  width: 100%;
  border: none;
  padding: 16px 12px;
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* Специальный класс для акцентных кнопок */
.btn-primary.btn-accent {
  background: var(--accent-yellow) !important;
  color: #1a1a1a !important;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(255, 75, 51, 0.4) !important;
}

.btn-primary.btn-accent:hover {
  background: #c4ef00 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 75, 51, 0.5) !important;
}

.secondary-actions {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 15px;
}

/* Кнопки Проблема и Сдать - на всю ширину, Сдать шире */
.secondary-actions-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

.secondary-actions-split .btn {
  width: 100%;
}

.btn-secondary {
  background-color: #2A2A30;
  color: var(--primary-blue);
  font-size: 1rem;
  font-weight: 800;
  border: 2px solid rgba(255,255,255,0.12);
  padding: 18px 10px;
}

.btn-secondary:hover {
  background-color: #1a1a1a;
  transform: translateY(-1px);
}

.btn-secondary:first-child {
  padding: 18px 22px;
}

.btn-danger {
  background-color: var(--light-blue-bg);
  /* Белый фон */
  color: #e53e3e;
  /* Красный текст */
  font-size: 1rem;
  border: 2px solid #e53e3e;
  /* Красная рамка */
}

.btn-secondary svg {
  color: var(--primary-blue);
  width: 22px;
  height: 22px;
  display: block;
  margin: 0 auto;
}

/* Стили для страницы статистики */
.stats-graph {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  justify-content: space-around;
  align-items: flex-end;
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  background-color: var(--light-blue-bg);
  border-radius: 20px;
  padding: 20px 15px;
  margin-top: 10px;
  flex-shrink: 0;
  overflow: visible;
}

.graph-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
  justify-content: flex-end;
  flex: 1;
}

.bar {
  width: 25px;
  min-height: 5px;
  /* Ensure bars are visible even with 0 data */
  height: 5%;
  /* Default height before JS sets it */
  background-color: #2A2A30;
  border-radius: 6px;
  transition: height 0.25s ease-out;
  will-change: height;
  transform: translateZ(0);
  /* Force GPU acceleration */
}

.bar.active {
  background-color: var(--icon-blue);
  box-shadow: 0 2px 8px rgba(74, 123, 167, 0.4);
}

.bar.zero-value {
  opacity: 0.3;
}

.day {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-green);
}

.history-list {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 100px;
  /* Space for pagination above bottom nav */
  /* Reduced gap between items */
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--light-blue-bg);
  padding: 12px 15px;
  /* Adjusted padding */
  border-radius: 20px;
  border: 1px solid var(--progress-bar-bg);
  /* Lighter border */
  gap: 10px;
  /* Gap between info and cost */
}

.history-info {
  display: flex;
  align-items: center;
  gap: 15px;
  /* Space between icon and text */
  flex-grow: 1;
  min-width: 0;
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.history-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.history-icon-wrapper.trip {
  background-color: var(--icon-blue);
}

.history-icon-wrapper.repair {
  background-color: #f5a623;
}

.history-icon-wrapper.topup,
.history-icon-wrapper.top-up {
  background-color: #23a2f5;
  /* Синий цвет для пополнений */
}

.history-icon-wrapper.rental,
.history-icon-wrapper.initial {
  background-color: var(--icon-blue);
  /* Синий для аренды */
}

.history-icon-wrapper.renewal {
  background-color: #7c3aed;
  /* Фиолетовый для продления */
}

.history-icon-wrapper.booking {
  background-color: #f59e0b;
  /* Оранжевый для бронирования */
}

.history-icon-wrapper.balance_debit {
  background-color: #ef4444;
  /* Красный для списания */
}

.history-icon-wrapper.refund_to_balance {
  background-color: #40A4DF;
  /* Лазурный для возврата */
}

.history-icon-wrapper.adjustment {
  background-color: #6b7280;
  /* Серый для корректировки */
}

.history-icon-wrapper.bonus {
  background-color: #FF4B33;
  /* Жёлтый для бонусов */
}

.history-icon-wrapper.bonus svg {
  color: var(--dark-green);
  /* Тёмно-зелёный цвет иконки для контраста с жёлтым фоном */
}

.history-icon-wrapper svg {
  color: #ffffff;
  width: 26px;
  height: 26px;
}

.history-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-title {
  font-weight: 600;
  color: var(--dark-green);
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-subtitle {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  white-space: normal;
  line-height: 1.2;
}

.history-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  width: max-content;
}

.history-status.success {
  background: #e6fffa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.history-status.warning {
  background: #2A2520;
  color: #8a5a00;
  border: 1px solid #ffd89a;
}

.history-status.error {
  background: #ffe4e6;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.history-status.neutral {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.history-cost {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark-green);
  white-space: nowrap;
  /* Prevent wrapping */
  flex-shrink: 0;
  /* Prevent shrinking in flex container */
}

.history-cost.positive {
  color: var(--icon-blue);
}

.empty-history {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  padding: 40px 20px;
}

/* Стили для страницы карты */
.map-page-container {
  position: relative;
  padding: 0;
  overflow: hidden;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Full screen map for map.html */
body:has(.map-page-container) .app-screen {
  border-radius: 0 !important;
  max-width: 100% !important;
  /* iOS PWA fix: fill via fixed inset to avoid bottom gaps */
  height: auto !important;
  max-height: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

body:has(.map-page-container) .map-page-container {
  /* iOS PWA fix: fill via absolute inset to avoid bottom gaps */
  height: auto !important;
  position: absolute !important;
  inset: 0 !important;
}

body:has(.map-page-container) #map {
  /* Карта заполняет контейнер */
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}


/* Более агрессивный и надежный способ скрыть панель с копирайтами и ссылками Яндекса */
[class*="copyrights-pane"],
[class*="gotoymaps"],
[class*="ymaps-2"][class*="-copyrights"] {
  display: none !important;
}

.recenter-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--light-blue-bg);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.recenter-btn svg {
  color: var(--dark-green);
}

.info-card {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  background: #000 !important;
  padding: 32px 24px;
  padding-bottom: calc(110px + var(--safe-bottom-final));
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.9);
  z-index: 1600;
  transition: bottom 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  border-top: 3px solid var(--primary-blue);
  text-align: center;
}

.info-card.visible {
  bottom: 0;
}

.card-handle {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background-color: #333;
  border-radius: 2px;
}

.close-card-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: background 0.2s;
  padding: 0;
}

.close-card-btn:active {
  background: rgba(255, 255, 255, 0.2);
}

.close-card-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5px;
}

/* Header с изображением и названием */
.info-card-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.info-card-image {
  display: none !important;
}

.info-card-title {
  width: 100%;
}

.info-card-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  /* Серый цвет для лейбла */
  margin-bottom: 6px;
}

.info-card h3,
.info-card-title h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  /* Белый цвет для заголовка */
  margin: 0;
  line-height: 1.2;
}

/* Статистика в карточках */
/* Статистика в карточках */
.info-card-stats {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 12px;
  margin: 12px 0 24px 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.stat-separator {
  display: none;
}

.info-stat-card {
  flex: 1;
  display: flex;
  flex-direction: row;
  /* Горизонтальное расположение */
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  /* Фон отдельной карточки */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px;
  text-align: left;
}

.info-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #FF4B33;
  /* Яркий лайм */
  color: #000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  opacity: 1 !important;
  box-shadow: 0 2px 8px rgba(255, 75, 51, 0.4);
}

.info-stat-icon svg {
  width: 20px;
  height: 20px;
  stroke: #000 !important;
  /* Черный цвет */
  stroke-width: 2.5px;
  opacity: 1 !important;
}

.info-stat-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Выравнивание влево */
  gap: 2px;
  min-width: 0;
}

.info-stat-label {
  font-size: 10px;
  color: #999;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-stat-value {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Специальный стиль для длинного текста значений */
.info-stat-card:last-child .info-stat-value {
  white-space: normal;
  font-size: 11px;
  line-height: 1.1;
  word-break: break-word;
}

#route-button {
  width: 100%;
  height: 56px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 800;
  background: var(--primary-blue);
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 25px rgba(255, 75, 51, 0.5);
  cursor: pointer;
  transition: transform 0.2s ease;
}

#route-button:active {
  transform: scale(0.98);
}

#route-button svg {
  stroke-width: 3px;
}

/* --- CUSTOM MAP BALLOON --- */
.custom-balloon {
  background: #1a1a1a;
  border: 2px solid var(--primary-blue);
  border-radius: 14px;
  padding: 12px 18px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  min-width: 160px;
  position: relative;
  transform: translateY(-8px);
}

/* Стрелочка снизу баллуна */
.custom-balloon::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #1a1a1a;
  border-right: 2px solid var(--primary-blue);
  border-bottom: 2px solid var(--primary-blue);
}

.custom-balloon-address {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 6px;
  color: #fff;
  line-height: 1.4;
}

.custom-balloon-bikes {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-blue);
}

.ymaps-2-1-79-balloon {
  box-shadow: none !important;
  background: transparent !important;
}

.ymaps-2-1-79-balloon__content {
  background: transparent !important;
  padding: 0 !important;
}

.ymaps-2-1-79-balloon__layout {
  background: transparent !important;
  border: none !important;
}

.ymaps-2-1-79-balloon__tail {
  display: none !important;
}

.ymaps-2-1-79-balloon__close-button {
  display: none !important;
}

/* Статистика в карточках */
.info-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1.5px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.info-stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255, 75, 51, 0.3);
}

.info-stat-icon svg {
  color: var(--dark-green);
}

.info-stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.info-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #8a9a96;
}

.info-stat-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark-green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Кнопка маршрута с иконкой */
.info-card .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 4px;
}

.info-card .btn-primary svg {
  flex-shrink: 0;
}

/* Старые стили (для обратной совместимости) */
.card-stats {
  display: flex;
  justify-content: space-around;
  gap: 15px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
}

.stat-item strong {
  color: var(--dark-green);
  font-weight: 600;
}

.stat-item svg {
  color: var(--icon-blue);
}

/* Стили для страницы профиля */
.app-main.profile-main {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--card-bg);
  object-fit: cover;
}

.user-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-top: 10px;
}

.user-id {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.profile-menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 20px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  text-decoration: none;
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-item-icon {
  color: var(--dark-green);
}

.menu-item-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-green);
}

.menu-item-chevron {
  color: #c8d3d1;
}

.menu-divider {
  border: none;
  height: 1px;
  background-color: #eaf0f0;
  margin: 0;
}

.logout-button {
  margin-top: auto;
  padding: 20px;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #e53e3e;
  cursor: pointer;
  width: 100%;
}

/* Общая навигация */
/* Общая навигация */
.bottom-nav {
  background: rgba(27, 27, 31, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-shrink: 0;
  position: fixed;
  z-index: 12;
  left: 20px;
  right: 20px;
  bottom: var(--nav-offset);
  width: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* stats.html bar chart zero value */
.stats-graph .bar.zero-value {
  background-color: var(--progress-bar-bg);
}

/* stats.html calendar */
.period-picker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.period-picker input[type="date"] {
  width: 100%;
  padding: 16px;
  background-color: var(--light-blue-bg);
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 1rem;
  color: var(--dark-green);
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.period-picker input[type="date"]:focus {
  outline: none;
  border-color: var(--icon-blue);
  background-color: var(--light-blue-bg);
  box-shadow: 0 0 0 3px rgba(74, 123, 167, 0.2);
}

.period-separator {
  font-weight: 600;
  color: var(--dark-green);
}


/* Анимация колокольчика */


.nav-item {
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 14px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: 2px solid transparent;
}

.nav-item.active {
  background: rgba(255, 75, 51, 0.12);
  border: 2px solid rgba(255, 75, 51, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 12px rgba(255, 75, 51, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-item svg {
  color: rgba(255, 255, 255, 0.4);
  width: 28px;
  height: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active svg {
  color: #FF6B35;
  filter: drop-shadow(0 0 6px rgba(255, 75, 51, 0.4));
}

.nav-item:hover svg {
  color: rgba(255, 255, 255, 0.75);
}

.nav-item.active:hover svg {
  color: #FF6B35;
}

.nav-item a {
  text-decoration: none;
  display: flex;
}

.nav-item.bell-animation {
  animation: bellAnimation 0.5s ease-in-out;
}

@keyframes bellAnimation {
  0% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(15deg);
  }

  50% {
    transform: rotate(-15deg);
  }

  75% {
    transform: rotate(15deg);
  }

  100% {
    transform: rotate(0);
  }
}

.app-main.registration-main {
  gap: 0;
}

#registration-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  gap: 20px;
  margin-top: 20px;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-green);
  margin-bottom: 8px;
}

#registration-form input[type="text"],
#registration-form input[type="tel"] {
  width: 100%;
  padding: 16px;
  background-color: var(--light-blue-bg);
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 1rem;
  color: var(--dark-green);
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

#registration-form input::placeholder {
  color: #a0b5b1;
}

#registration-form input:focus {
  outline: none;
  border-color: var(--icon-blue);
  background-color: var(--light-blue-bg);
  box-shadow: 0 0 0 3px rgba(74, 123, 167, 0.2);
}

#registration-form input.error {
  border-color: #e53e3e !important;
}

.options-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.option-btn {
  padding: 14px 5px;
  background-color: var(--light-blue-bg);
  color: var(--dark-green);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.option-btn.selected {
  background-color: #2A2A30;
  color: #ffffff;
  border-color: rgba(255,255,255,0.12);
}

.option-btn.error-border {
  border-color: #e53e3e !important;
}

.form-divider {
  border: none;
  height: 1px;
  background-color: #eaf0f0;
  margin: 10px 0;
}

.validation-message {
  color: #e53e3e;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 15px;
  display: none;
  font-weight: 500;
}

/* === СТИЛИ ДЛЯ КНОПОК ВХОДА ЧЕРЕЗ СТОРОННИЕ СЕРВИСЫ (SSO) === */
.sso-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: #a0b5b1;
  margin: 10px 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #eaf0f0;
}

.separator:not(:empty)::before {
  margin-right: .75em;
}

.separator:not(:empty)::after {
  margin-left: .75em;
}

.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s ease;
  border: none;
}

.sso-btn:hover {
  opacity: 0.9;
}

.sso-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  height: 24px;
}

.sso-icon svg {
  height: 100%;
  width: auto;
}

.sso-text {
  line-height: 1;
}

/* --- Фирменные стили для каждой кнопки --- */

/* 1. Госуслуги */
.sso-btn--gosuslugi {
  background-color: #0d4cd3;
  color: white;
}

.sso-btn--gosuslugi .sso-icon svg {
  height: 28px;
}

/* 2. Яндекс ID */
.sso-btn--yandex {
  background-color: #000000;
  color: white;
}

/* 3. Tinkoff ID */
.sso-btn--tinkoff {
  background-color: #ffdd2d;
  color: #333333;
}

.sso-btn--tinkoff .sso-icon svg {
  height: 26px;
  width: 50px;
}

/* === СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА QR-КОДА === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background-color: var(--light-blue-bg);
  padding: 25px;
  border-radius: 24px;
  width: 90%;
  max-width: 380px;
  /* Вернули ближе к оригиналу, но с отступами */
  text-align: center;
  position: relative;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
  transform: scale(0.9);
}

.modal-content h2 {
  color: var(--dark-green);
  font-size: 1.5rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

/* ОБНОВЛЕННЫЕ СТИЛИ */
.bike-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  text-align: left;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--progress-bar-bg);
}

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

.spec-label {
  color: rgba(255, 255, 255, 0.5);
}

.spec-value {
  color: var(--dark-green);
  font-weight: 600;
}

/* КОНЕЦ ОБНОВЛЕНИЯ */

.modal-info {
  display: flex;
  justify-content: space-around;
  background-color: var(--light-blue-bg);
  padding: 15px;
  border-radius: 16px;
  margin-bottom: 25px;
}

.modal-info span {
  font-size: 1rem;
  color: var(--dark-green);
}

.modal-info span strong {
  font-weight: 700;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #c8d3d1;
  cursor: pointer;
}

.modal-content .btn-primary {
  width: 100%;
  padding: 18px;
}

/* === СТИЛИ ДЛЯ УВЕДОМЛЕНИЯ (ТОСТА) === */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  /* Вернули оригинал, полный размер */
  background-color: #2A2A30;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 1;
}

.toast-container.hidden {
  opacity: 0;
  transform: translate(-50%, 100px);
  pointer-events: none;
}

.toast-container.toast-success {
  background-color: var(--icon-blue);
  /* Используем фирменный синий цвет */
}

.toast-message {
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
}

.toast-message strong {
  font-weight: 700;
}

/* === СТИЛИ ДЛЯ КЛИКАБЕЛЬНОЙ КАРТОЧКИ БАЛАНСА === */
#balance-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#balance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

/* === СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ПОПОЛНЕНИЯ === */
.modal-content .modal-form-group {
  text-align: left;
  margin-bottom: 25px;
  margin-top: 10px;
}

.modal-content .modal-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-green);
  margin-bottom: 8px;
}

.modal-content input[type="number"] {
  width: 100%;
  padding: 16px;
  background-color: var(--light-blue-bg);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark-green);
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  appearance: textfield;
  -moz-appearance: textfield;
  text-align: center;
}

.modal-content input::-webkit-outer-spin-button,
.modal-content input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.modal-content input[type="number"]::placeholder {
  color: #a0b5b1;
  text-align: center;
}

.modal-content input[type="number"]:focus {
  outline: none;
  border-color: rgba(255,255,255,0.12);
  background-color: var(--light-blue-bg);
}

/* === СТИЛИ ДЛЯ МОДАЛКИ ПОДТВЕРЖДЕНИЯ ОПЛАТЫ === */
.payment-info-card {
  background: #f6fafb;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.payment-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--dark-green);
}

.payment-info-row:not(:last-child) {
  border-bottom: 1px solid rgba(13, 115, 119, 0.08);
}

.payment-info-row span {
  font-weight: 500;
}

.payment-info-row strong {
  font-weight: 700;
  font-size: 1.05rem;
}

.bonus-input-section {
  text-align: center;
  margin: 24px 0;
}

.bonus-input-section label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark-green);
  margin-bottom: 12px;
}

.bonus-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  max-width: 280px;
  margin: 0 auto;
}

.bonus-input-wrapper input {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  font-size: 1.1rem;
  text-align: center;
  font-weight: 600;
  color: var(--dark-green);
  background: #1E1E22;
  transition: all 0.2s ease;
}

.bonus-input-wrapper input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.12);
}

.bonus-input-wrapper .btn {
  padding: 14px 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.bonus-input-section small {
  display: block;
  margin-top: 8px;
  color: #0d7377;
  font-size: 0.85rem;
}

.payment-final-card {
  background: #2A2A30;
  border: none;
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.final-label {
  font-size: 0.9rem;
  color: var(--primary-blue);
  margin: 0 0 8px 0;
  font-weight: 500;
}

.final-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin: 0;
  line-height: 1;
}

.final-method {
  font-size: 0.85rem;
  color: var(--primary-blue);
  margin: 10px 0 0 0;
  font-weight: 500;
}

#payment-confirm-modal .btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
}

/* === СТИЛИ ДЛЯ ВЫБОРА ГОРОДА === */
.city-selection-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.city-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.city-option:hover {
  background: rgba(255,107,53,0.12);
  transform: translateX(4px);
}

.city-option.selected {
  background: rgba(255,107,53,0.12);
  border-color: var(--icon-blue);
}

.city-option svg:first-child {
  color: var(--icon-blue);
  flex-shrink: 0;
}

.city-option span {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark-green);
}

.city-option .city-check {
  color: var(--icon-blue);
  flex-shrink: 0;
}

.city-option .city-check.hidden {
  display: none;
}

.btn-sbp {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
}

.btn-sbp svg {
  width: 85px;
  /* Размер логотипа */
  height: auto;
}

.btn-sbp span {
  font-size: 1.1rem;
  line-height: 1;
}

/* === СТИЛИ ДЛЯ ТЕКСТА-ДИСКЛЕЙМЕРА В МОДАЛКЕ === */
.disclaimer-text {
  font-size: 0.8rem;
  color: #889996;
  /* Слегка приглушенный цвет */
  margin-top: -5px;
  /* Чуть ближе к блоку "Цена/Срок" */
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.4;
}

/* === СТИЛИ ДЛЯ ВТОРИЧНЫХ ДЕЙСТВИЙ === */

/* Стили для модального окна ввода ID */
#id-input-modal input[type="text"] {
  width: 100%;
  padding: 16px;
  background-color: var(--light-blue-bg);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark-green);
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  text-align: center;
}

#id-input-modal input[type="text"]::placeholder {
  color: #a0b5b1;
}

#id-input-modal input[type="text"]:focus {
  outline: none;
  border-color: rgba(255,255,255,0.12);
  background-color: var(--light-blue-bg);
}

/* Стили для модального окна списка бронирования */
.bike-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

.bike-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: var(--primary-blue);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.bike-list-item:hover {
  background-color: #FF4B33;
  transform: scale(1.03);
}

.bike-list-item strong {
  font-weight: 600;
  color: var(--dark-green);
}

.bike-list-item span {
  font-weight: 500;
  color: var(--icon-blue);
}

/* === СТИЛИ ДЛЯ ДИНАМИЧЕСКОЙ СТРАНИЦЫ ИСТОРИИ === */

/* Специальный отступ для списка тарифов PRIZMATIC */
#tariff-modal .bike-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: stretch;
}

#tariff-modal .disclaimer-text {
  margin-top: 12px;
}

/* ===== СТИЛИ ДЛЯ ЭКРАНА ВЕРИФИКАЦИИ ===== */

/* Добавляем класс для центрирования заголовка */
.header-centered {
  text-align: center;
}


/* Ключевое изменение: сетка действий */


.verification-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 20px;
  gap: 20px;
  width: 100%;
}


.verification-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 4px;
}

.verification-header {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-green);
}

.verification-status-card {
  background: rgba(27, 27, 31, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 22px;
  padding: 28px 24px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.verification-status-info {
  text-align: left;
  width: 100%;
}

.verification-status-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.verification-status-info .progress-bar-container {
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.verification-status-info .progress-bar {
  width: 66%;
  background: linear-gradient(90deg, #FF6B35, #FF4B33);
  box-shadow: 0 0 12px rgba(255, 75, 51, 0.4);
}

.verification-status-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.verification-animation {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.verification-loader {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verification-loader span {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(255, 75, 51, 0.25);
  animation: verification-pulse 1.9s infinite;
}

.verification-loader span.delay {
  animation-delay: 0.25s;
}

.verification-loader span.delay-2 {
  animation-delay: 0.5s;
}

.verification-loader.warning span {
  border-color: rgba(229, 62, 62, 0.28);
}

.verification-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 75, 51, 0.15);
  border: 2px solid rgba(255, 75, 51, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF6B35;
  box-shadow: 0 0 20px rgba(255, 75, 51, 0.25);
  position: relative;
  z-index: 1;
}

.verification-loader.warning .verification-icon {
  background: rgba(229, 62, 62, 0.15);
  border-color: rgba(229, 62, 62, 0.5);
  color: #e53e3e;
  box-shadow: 0 0 20px rgba(229, 62, 62, 0.2);
}

@keyframes verification-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  50% {
    transform: scale(1);
    opacity: 0.15;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.action-card {
  background: rgba(27, 27, 31, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 1 / 0.75;
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 75, 51, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.action-card:active {
  transform: translateY(-1px);
}

.action-card .icon-wrapper {
  background: rgba(255, 75, 51, 0.12);
  border: 2px solid rgba(255, 75, 51, 0.4);
  color: #FF6B35;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-card .icon-wrapper svg {
  color: #FF6B35;
}


/* ===== НОВЫЕ СТИЛИ ДЛЯ КРАСИВОЙ ФОРМЫ РЕГИСТРАЦИИ ===== */

.client-photo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background-color: var(--light-blue-bg);
  border-radius: 16px;
}

.client-photo-thumb {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.client-photo-caption {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}


/* 1. Стилизация выпадающих списков (select) */
select.form-control {
  width: 100%;
  padding: 16px;
  background-color: var(--light-blue-bg);
  border: 2px solid var(--card-bg);
  border-radius: 16px;
  font-size: 1rem;
  color: var(--dark-green);
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  /* Убираем стандартную стрелку в Chrome/Safari */
  -moz-appearance: none;
  /* Убираем стандартную стрелку в Firefox */
  appearance: none;
  /* Убираем стандартную стрелку в современных браузерах */
  /* Добавляем свою кастомную стрелку */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23083830' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 1.2em;
  cursor: pointer;
}

select.form-control:focus {
  outline: none;
  border-color: var(--icon-blue);
  background-color: var(--light-blue-bg);
}

/* 2. Стилизация кнопок выбора файла (input[type="file"]) */
.file-upload-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.file-upload-label {
  display: inline-block;
  padding: 10px 16px;
  background-color: var(--icon-blue);
  color: #ffffff;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.file-upload-label:hover {
  background-color: #2A2A30;
}

.file-upload-input {
  /* Полностью прячем стандартный инпут */
  display: none;
}

.file-name {
  margin-left: 15px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3. Стилизация чекбокса */
.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
  /* Прячем стандартный чекбокс */
}

.custom-checkbox .checkbox-visual {
  display: inline-block;
  width: 22px;
  height: 22px;
  background-color: var(--light-blue-bg);
  border: 2px solid var(--card-bg);
  border-radius: 6px;
  margin-right: 12px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

/* Галочка внутри чекбокса (появляется при выборе) */
.custom-checkbox .checkbox-visual::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 12px;
  border: solid var(--white);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Стили для выбранного состояния */
.custom-checkbox input[type="checkbox"]:checked+.checkbox-visual {
  background-color: var(--icon-blue);
  border-color: var(--icon-blue);
}

.custom-checkbox input[type="checkbox"]:checked+.checkbox-visual::after {
  opacity: 1;
}

/* 4. Более красивый разделитель */
.form-separator {
  text-align: center;
  color: #a0b5b1;
  font-weight: 500;
  margin: 20px 0 10px;
  border: 0;
  border-top: 1px solid #eaf0f0;
}

.form-separator p {
  background: var(--white);
  padding: 0 10px;
  transform: translateY(-50%);
  display: inline-block;
}

/* ------------------------------------------------------------------ PRIZMATIC Main Menu Overlay При выборе провайдера PRIZMATIC отображается полноэкранное меню‑оверлей. Оно фиксируется поверх всего контента, затемняет фон и размывает его, а само меню выезжает снизу. Используются существующие переменные для цветов, чтобы сохранить фирменный стиль. Кнопки имеют два состояния: primary (главная — «Тарифы PRIZMATIC») и secondary для остальных действий. Активное нажатие смещает элемент на пару пикселей вниз, создавая ощущение нажатия. */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 2000;
  padding: 20px;
}

.menu-overlay.hidden {
  display: none;
}

.menu-container {
  width: 100%;
  max-width: 420px;
  /* Вернули полный размер */
  background: var(--white);
  border-radius: 30px 30px 0 0;
  padding: 24px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--dark-green);
  cursor: pointer;
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.menu-item-btn {
  width: 100%;
  border: none;
  border-radius: 20px;
  padding: 18px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: transform 0.2s;
}

.menu-item-btn.primary {
  background: var(--primary-blue);
  color: var(--dark-green);
  border: 2px solid rgba(255,255,255,0.12);
}

.menu-item-btn.secondary {
  background: var(--card-bg);
  color: var(--dark-green);
}

.menu-item-btn:active {
  transform: translateY(2px);
}

/* === Продления и списки вариантов для тарифов === */
.tariff-detail-ext-list,
.extend-options-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.tariff-detail-ext-list li,
.extend-options-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.extend-options-list li {
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(64, 164, 223, 0.06);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.extend-options-list li.selected {
  border: 1.5px solid var(--icon-blue);
  background: rgba(64, 164, 223, 0.16);
}

.tariff-detail-ext-list input[type="radio"],
.extend-options-list input[type="radio"] {
  margin-right: 8px;
  accent-color: var(--dark-green);
}

.extend-options-list label {
  width: 100%;
  cursor: pointer;
}

/* Контейнер для кнопки продления аренды на главной странице */
.extend-container {
  margin-top: 20px;
  text-align: center;
}

.extend-container.hidden {
  display: none;
}

/* Плавное исчезновение/появление главного изображения */
.bike-image.fade-out {
  opacity: 0;
  /* Вспомогательный класс для JS */
}

/* Текст-соглашение в модальном окне аренды */
.disclaimer-text {
  font-size: 0.8rem;
  color: #889996;
  margin-top: -5px;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.4;
}

/* Media для компактных экранов (мобильные браузеры) */
@media (max-width: 480px) {
  .bike-image-wrapper .bike-image {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
}

.app-content {
  padding: 20px;
  padding-bottom: 100px;
  /* Account for fixed bottom nav */
}

/* (duplicate .bottom-nav block removed to keep single source of truth) */

@media (min-height: 850px) and (min-width: 420px) {
  .app-screen {
    height: 850px;
    /* Фиксированная высота для больших экранов */
  }

  body {
    padding: 0;
    /* Убираем отступы, так как теперь в app-screen */
    align-items: center;
    /* Возвращаем центрирование для десктопа */
  }
}

@media (min-width: 421px) {

  /* Для экранов больше мобильных (планшеты, десктоп) — возвращаем оригинал */
  .app-screen {
    max-width: 420px;
    height: 100vh;
    max-height: 850px;
    border-radius: 40px;
    padding-top: var(--app-top-offset);
  }
}

/* Убираем лишний верхний отступ на странице с картой */
body:has(.map-page-container) .app-screen {
  padding-top: 0 !important;
}

.user-greeting {
  display: none;
}

.bike-display {
  margin-top: 0;
}

/* --- Стили для нового окна деталей тарифа --- */

#tariff-detail-modal .modal-content {
  max-width: 380px;
}

.tariff-description {
  font-size: 0.95rem;
  color: var(--text-secondary, #556f6b);
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.5;
}

.tariff-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.tariff-option-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: #2A2A30;
  color: var(--primary-blue);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  margin-bottom: 10px;
  gap: 6px;
  text-align: center;
}

.tariff-option-item:hover {
  background: #111;
}

/* Скрываем стандартный радио-кружок */
.tariff-option-item input[type="radio"] {
  display: none;
}

.tariff-option-item .option-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.tariff-option-item .option-duration {
  font-weight: 600;
  font-size: 1rem;
  color: currentColor;
}

.tariff-option-item .option-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: currentColor;
  margin-left: 0;
  text-align: center;
}

/* Стиль для ВЫБРАННОГО элемента */
.tariff-option-item.selected {
  border-color: transparent;
  background-color: var(--primary-blue);
  color: var(--dark-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stats-graph .bar {
  /* Скругляем только верхние углы, а нижние оставляем прямыми (0) */
  border-radius: 6px 6px 0 0;

}

/* Бейдж с кодом велосипеда (на фото) */
.bike-code-badge {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 24px;
  border: 2px solid var(--primary-blue);
  box-shadow:
    0 4px 16px rgba(255, 75, 51, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 10;
  animation: batteryPulse 4s ease-in-out infinite;
}

.bike-code-badge:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 24px rgba(255, 75, 51, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: #FFF8E7;
}

.bike-icon-svg {
  width: 24px;
  height: 24px;
  color: var(--primary-blue);
  filter: drop-shadow(0 0 4px rgba(255, 75, 51, 0.4));
}

.bike-code-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-shadow: 0 0 8px rgba(255, 75, 51, 0.4);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Карточка с кодом велосипеда (в info-cards) */
.card.bike-code-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid var(--primary-blue);
  box-shadow: 0 4px 16px rgba(255, 75, 51, 0.1);
}

.card.bike-code-card .text-content span {
  color: rgba(255, 75, 51, 0.7);
}

.card.bike-code-card .text-content strong {
  color: var(--primary-blue);
  text-shadow: 0 0 6px rgba(255, 75, 51, 0.3);
}

.card.bike-code-card .icon-wrapper.bike-icon-wrapper {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

.card.bike-code-card .icon-wrapper.bike-icon-wrapper svg {
  color: var(--dark-green);
}

/* Блок с АКБ - анимированный виджет */
.battery-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 8px 0 16px 0;
}

/* Контейнер виджета батареи */
.battery-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 24px;
  border: 2px solid var(--primary-blue);
  box-shadow:
    0 4px 16px rgba(255, 75, 51, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  animation: batteryPulse 4s ease-in-out infinite;
}

.battery-widget:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 24px rgba(255, 75, 51, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: #FFF8E7;
}

/* SVG батарея */
.battery-svg {
  width: 56px;
  height: 26px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Анимация заполнения */
.battery-fill {
  transform-origin: left center;
}

/* Номер батареи */
.battery-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-shadow: 0 0 8px rgba(255, 75, 51, 0.4);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Пульсация виджета */
@keyframes batteryPulse {

  0%,
  100% {
    box-shadow:
      0 4px 16px rgba(255, 75, 51, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  50% {
    box-shadow:
      0 4px 20px rgba(255, 75, 51, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

/* Сообщение когда АКБ нет */
.battery-chips .empty-message {
  color: #7a9a95;
  font-size: 0.8125rem;
  font-style: italic;
  padding: 4px 0;
}

/* Старые стили (для обратной совместимости) */
.battery-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--white);
  border: 1.5px solid var(--icon-blue);
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dark-green);
  box-shadow: 0 2px 6px rgba(74, 123, 167, 0.12);
  transition: all 0.2s ease;
}

.battery-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(74, 123, 167, 0.18);
}

.battery-chip svg {
  width: 16px;
  height: 16px;
  color: var(--icon-blue);
  flex-shrink: 0;
}

/* Стили для экрана подписания договора */
.contract-signing-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
}

.contract-content h2 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1.5rem;
  color: var(--dark-green);
}

.contract-content p {
  color: #3f4d49;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto 20px auto;
}

.contract-animation {
  position: relative;
  width: 120px;
  height: 160px;
  margin: 0 auto 20px;
}

.contract-document {
  width: 100%;
  height: 100%;
  background: var(--card-bg);
  border: 2px solid var(--icon-blue);
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contract-document::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 8px;
  background-color: var(--icon-blue);
  border-radius: 4px;
}

.contract-document::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 10px;
  right: 10px;
  height: 4px;
  background-color: var(--icon-blue);
  border-radius: 2px;
}

.signature-animation {
  position: absolute;
  bottom: 20px;
  left: 10px;
  right: 10px;
}

/* === QR SCANNER MODAL === */
#qr-scanner-modal .modal-content {
  padding: 26px 24px 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #2A2A30;
  color: var(--primary-blue);
  width: min(92vw, 420px);
  max-width: 420px;
  border: 2px solid var(--primary-blue);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.qr-scanner-container {
  position: relative;
  width: 100%;
  height: clamp(300px, 60vh, 560px);
  background-color: #000;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

#qr-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
}

.qr-scanner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  pointer-events: none;
  border: 3px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 24px rgba(28, 181, 224, 0.25);
}

#qr-scanner-modal h2 {
  position: static;
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
  text-align: center;
  letter-spacing: 0.01em;
}

#qr-scanner-modal .disclaimer-text {
  position: static;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  text-align: center;
}

#qr-scanner-close-btn {
  z-index: 3;
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(5, 28, 66, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

#qr-scanner-close-btn:hover {
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-1px);
}

.secondary-actions-split {
  display: flex;
  gap: 15px;
  width: 100%;
}

.secondary-actions-split #id-input-btn {
  flex: 0 0 auto;
  /* Don't grow, don't shrink, base size on content */
}

.secondary-actions-split #scan-btn {
  flex: 1 1 auto;
  /* Grow to fill space */
}

.signature-line {
  height: 3px;
  background-color: #2A2A30;
  border-radius: 2px;
  width: 0;
  animation: signatureDraw 2.5s infinite;
}

@keyframes signatureDraw {
  0% {
    width: 0;
  }

  50% {
    width: 100%;
  }

  70% {
    width: 100%;
  }

  100% {
    width: 100%;
  }
}

/* Стили для уведомлений с анимированным колокольчиком */
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background-color: var(--light-blue-bg);
  border-radius: 16px;
  margin-bottom: 12px;
}

/* Стили для уведомлений без анимации */
.notification-item-alt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background-color: var(--light-blue-bg);
  border-radius: 16px;
  margin-bottom: 12px;
}

/* Анимация только для иконки колокольчика в элементах с уведомлениями подписания */
.notification-item .notification-bell-icon {
  animation: bellShake 3s infinite;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Убедимся, что иконка в элементах без анимации не анимируется */
.notification-item-alt .notification-bell-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

@keyframes bellShake {

  0%,
  100% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(-15deg);
  }

  20% {
    transform: rotate(15deg);
  }

  30% {
    transform: rotate(-15deg);
  }

  40% {
    transform: rotate(15deg);
  }

  50% {
    transform: rotate(-5deg);
  }

  60% {
    transform: rotate(5deg);
  }

  70% {
    transform: rotate(-2deg);
  }

  80% {
    transform: rotate(2deg);
  }

  90% {
    transform: rotate(0deg);
  }
}

.notification-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-content p {
  margin: 0;
  color: var(--dark-green);
  font-weight: 500;
  text-align: left;
}

.notification-content .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.notifications-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 10px 0;
}

.notifications-content .icon-wrapper {
  background: var(--primary-blue);
  border: 2px solid rgba(255,255,255,0.12);
  color: var(--dark-green);
  width: 54px;
  height: 54px;
}

.notifications-content .icon-wrapper svg {
  color: var(--dark-green);
  width: 28px;
  height: 28px;
}


.tariff-option-item.selected .option-duration,
.tariff-option-item.selected .option-price,
.tariff-option-item.selected strong {
  color: var(--dark-green);
}

.tariff-option-item strong {
  color: currentColor;
  font-size: 1rem;
}

#select-tariff-btn,
#tariff-modal .btn-primary {
  background: var(--primary-blue);
  color: var(--dark-green);
  border: 2px solid rgba(255,255,255,0.12);
}

#select-tariff-btn:hover,
#tariff-modal .btn-primary:hover {
  background: #FF4B33;
  color: var(--dark-green);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}


/* === SPLASH SCREEN === */
#app-splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#app-splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.splash-logo {
  font-size: 2.2rem;
  font-weight: 900;
  color: #FF6B35;
  /* Яркий лайм из переменных */
  text-shadow: 0 0 20px rgba(255, 75, 51, 0.2);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.splash-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #FF6B35;
  border-radius: 50%;
  animation: splash-spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.splash-text {
  font-size: 0.85rem;
  color: #666;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

@keyframes splash-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* === TARIFF SELECTION MODAL REDESIGN === */
.tariff-option {
  justify-content: center !important;
  text-align: center !important;
  padding: 18px 20px !important;
  margin-bottom: 12px;
  background-color: var(--accent) !important;
  /* Lime green */
  color: #2a2e38 !important;
  /* Dark text for contrast */
  box-shadow: 0 4px 12px rgba(255, 75, 51, 0.25);
  border: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tariff-option:hover,
.tariff-option:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(255, 75, 51, 0.15);
}

.tariff-option strong {
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  width: 100%;
}


/* === TARIFF SELECTION MODAL REDESIGN (FINAL) === */
.tariff-option {
  justify-content: center !important;
  text-align: center !important;
  padding: 20px 20px !important;
  margin-bottom: 12px;
  background-color: #000000 !important;
  /* Pure Black Request */
  color: #FF6B35 !important;
  /* Lime Text Request */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent !important;
  /* Clean border */
  border-radius: 16px !important;
  transition: all 0.2s ease;
}

.tariff-option:hover,
.tariff-option:active {
  transform: scale(0.98);
  background-color: #1a1a1a !important;
  /* Slightly lighter on hover */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border-color: #FF6B35 !important;
  /* Green border on hover */
}

.tariff-option strong {
  font-size: 1.15rem;
  font-weight: 700;
  display: block;
  width: 100%;
  letter-spacing: 0.5px;
}


/* === FIX INVISIBLE TEXT === */
.tariff-option strong {
  color: #FF6B35 !important;
  /* Force Lime Color on text */
  fill: #FF6B35 !important;
  opacity: 1 !important;
  z-index: 10;
  position: relative;
}

.tariff-option * {
  color: #FF6B35 !important;
}


/* === TARIFF DETAIL OPTIONS - COMPACT MOBILE DESIGN === */
.tariff-option-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 16px !important;
  margin-bottom: 10px !important;
  border-radius: 12px !important;
  background-color: #f0f0f0 !important;
  border: 2px solid transparent !important;
  transition: all 0.2s ease;
}

.tariff-option-item.selected {
  background-color: #000000 !important;
  border-color: #FF6B35 !important;
}

.tariff-option-item.selected .option-duration,
.tariff-option-item.selected .option-price {
  color: #FF6B35 !important;
}

.tariff-option-item .option-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tariff-option-item .option-duration {
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
}

.tariff-option-item .option-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #000000;
}

.tariff-option-item input[type="radio"] {
  display: none;
}

/* Stats page scrollable content fix for iOS */
/* (Block removed as it was empty) */

/* EXPERIMENT: Map page - remove safe-area from bottom-nav */
body:has(.map-page-container) .bottom-nav {
  bottom: 6px !important;
}

/* --- LOYALTY MODAL PREMIUM DESIGN (FIX) --- */
#loyalty-modal .modal-content {
  background-color: #000000 !important;
  border: 2px solid #000000 !important;
  padding: 32px 24px !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
  max-width: 90vw !important;
  margin: 20px auto !important;
  color: #000000 !important;
}

#loyalty-modal h2 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.8rem !important;
  color: #000000 !important;
  text-transform: uppercase !important;
  letter-spacing: -1px !important;
  margin-bottom: 24px !important;
  text-align: center !important;
}

.loyalty-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.loyalty-row span {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #666 !important;
}

.loyalty-row strong {
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: #000000 !important;
}

#loyalty-balance {
  color: #000000 !important;
}

#loyalty-next {
  background: #f4f4f4 !important;
  border-radius: 16px !important;
  padding: 16px !important;
  margin: 20px 0 !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #000000 !important;
  border: 2px dashed #000000 !important;
  text-align: center !important;
}

.referral-section {
  background: #000000 !important;
  border: 3px solid #FF6B35 !important;
  /* LIME BORDER */
  border-radius: 24px !important;
  padding: 24px !important;
  margin: 24px 0 !important;
  box-shadow: 0 10px 25px rgba(255, 75, 51, 0.15) !important;
  text-align: center !important;
}

.referral-section p:first-of-type {
  font-weight: 900 !important;
  color: #000000 !important;
  text-transform: uppercase !important;
  font-size: 0.8rem !important;
  letter-spacing: 1.5px !important;
  margin-bottom: 12px !important;
}

#my-referral-code {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: 2rem !important;
  color: #000000 !important;
  letter-spacing: 3px !important;
}

#copy-ref-btn {
  background: #FF6B35 !important;
  /* LIME */
  color: #000000 !important;
  padding: 12px !important;
  border-radius: 14px !important;
  margin-left: 14px !important;
  border: 2.5px solid #000000 !important;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#copy-ref-btn:active {
  transform: scale(0.85) !important;
}

.loyalty-conditions {
  margin-top: 30px !important;
}

.loyalty-conditions p {
  font-weight: 900 !important;
  color: #000000 !important;
  font-size: 1.1rem !important;
  margin-bottom: 20px !important;
  text-align: center !important;
}

.loyalty-conditions ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.loyalty-conditions ul li {
  background: #000000 !important;
  border: 2.5px solid #000000 !important;
  border-radius: 18px !important;
  padding: 16px 20px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  transition: all 0.2s ease !important;
}

.loyalty-conditions ul li.done {
  background: #FF6B35 !important;
  /* LIME FOR DONE */
  border-color: #000000 !important;
}

.loyalty-conditions ul li .check {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  border: 2px solid #000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  color: transparent !important;
  flex-shrink: 0 !important;
  background: #000000 !important;
}

.loyalty-conditions ul li.done .check {
  background: #000000 !important;
  color: #FF6B35 !important;
  /* Lime check on black circle */
  border: none !important;
}

.loyalty-conditions ul li span:last-child {
  font-weight: 800 !important;
  color: #000000 !important;
  font-size: 1rem !important;
}

.loyalty-conditions ul li[data-threshold="ref"] {
  background: #000000 !important;
  /* BLACK FOR REFERRAL PROMO */
  border-color: #FF6B35 !important;
  margin-top: 24px !important;
}

.loyalty-conditions ul li[data-threshold="ref"] span:last-child {
  color: #FF6B35 !important;
  /* Lime text on black */
  font-weight: 900 !important;
}

.loyalty-conditions ul li[data-threshold="ref"] .check {
  background: #FF6B35 !important;
  color: #000000 !important;
  border: none !important;
}

/* ===== GLOBAL DARK THEME TEXT: WHITE & BOLD ===== */
body, 
.app-screen,
.app-main,
h1, h2, h3, h4, h5, h6,
p, span, label, li, td, th, dt, dd,
.menu-item, .menu-item-text,
.user-name, .user-id,
.verification-status-info h3,
.verification-status-info p,
.action-card span,
.stat-label, .stat-value, .stat-card,
.period-picker, .period-separator,
.history-empty h3, .history-empty p,
.section-title,
.card-title, .card-subtitle,
.info-text, .info-label, .info-value,
.profile-menu .menu-item-left,
.profile-menu span,
.modal-content h2, .modal-content h3, .modal-content p,
.modal-content label, .modal-content span,
input, select, textarea,
button {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Subtle text - slightly dimmer but still readable */
.user-id,
.verification-status-info p,
.history-empty p,
.info-text,
.card-subtitle,
small,
.hint,
.form-group .hint {
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 500 !important;
}

/* Orange accents stay orange */
.primary-text,
.accent-text,
a.accent {
  color: #FF6B35 !important;
}

/* Keep button text on orange backgrounds dark for contrast */
.btn-primary,
.cta-btn,
.btn-submit,
button[style*="background: #FF6B35"],
button[style*="background-color: #FF6B35"],
button[style*="background: var(--primary-blue)"] {
  color: #1B1B1F !important;
  font-weight: 700 !important;
}

/* Map info card - white text on orange bg */
.info-card, .info-card * {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.info-card .btn-navigate,
.info-card button {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Fix icon wrappers - keep icons colored, not white */
.icon-wrapper svg,
.menu-item-icon,
.history-icon-wrapper svg,
.nav-item svg {
  font-weight: normal !important;
}

/* Separators/dividers subtle */
.menu-item-divider,
.divider,
hr {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Stats page bars - keep as is */
.stats-graph .bar {
  font-weight: normal !important;
}

/* Notification modal */
.push-prompt, .push-prompt * {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.push-prompt p {
  color: rgba(255, 255, 255, 0.75) !important;
}
