/* ============================================================
   Ball76 — стили страницы записи на баскетбол
   ============================================================ */

/* ==== Базовые стили ==== */

body {
  font-family: sans-serif;
  max-width: 600px;
  margin: 20px auto;
  margin-bottom: 40px;

  background-color: #121212;   /* тёмный фон страницы */
  color: #e0e0e0;              /* светлый текст */
}

label, input, button, select {
  margin: 5px 0;
  padding: 10px;
  width: 100%;
  border-radius: 4px;
  border: 1px solid #404040;
  box-sizing: border-box;
  font-size: 16px;

  background-color: #2d2d2d;
  color: #f0f0f0;
}

input:focus, select:focus {
  border-color: #00aaff;
  outline: none;
}

button {
  background-color: #007acc;
  color: #ffffff;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #005ca3;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==== Таблицы (история) ==== */

.players {
  margin-top: 20px;
  padding: 10px;
  background: #252525;
  border-radius: 5px;
  border: 1px solid #404040;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background-color: #222222;
}

th, td {
  padding: 8px;
  text-align: left;
  border: 1px solid #404040;
  color: #e0e0e0;
}

th {
  background: #333333;
}

/* ==== Шапка: дата/время и ближайшая игра ==== */

#currentDateTime {
  margin-bottom: 15px;
  padding: 10px;
  background: #202020;
  border-radius: 5px;
  font-size: 14px;
  color: #d0ffd0;
  border: 1px solid #404040;
}

#nearestGameInfo {
  margin-top: 10px;
  padding: 10px;
  background: #202020;
  border-radius: 5px;
  font-size: 14px;
  color: #a0e0ff;        /* светло‑голубой текст */
  border: 1px solid #404040;
}

/* ==== Формы: строки "подпись + инпут/селект" ==== */

.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  height: 40px;
  max-width: 600px;
}

.form-row label {
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
  width: 163px;
  font-size: 15px;
}

.form-row input,
.form-row select {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #404040;
  border-radius: 4px;
  font-size: 16px;
  background-color: #2d2d2d;
  color: #f0f0f0;
  box-sizing: border-box;
  flex: 1;
  width: auto;
  height: 40px;
  line-height: 1.4;
}

/* ==== Автодополнение ФИО (кастомный dropdown) ==== */

.autocomplete-wrap {
  position: relative;
}

/* Дропдаун подсказок: позиционируется под полем ФИО (label ~163px + gap 12px) */
.autocomplete-box {
  display: none; /* показывается JS, когда есть совпадения */
  position: absolute;
  top: calc(100% + 4px);
  left: 175px;
  right: 0;
  z-index: 500;
  background: #2a2a2a;
  border: 1px solid #4a4a4a;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  max-height: 240px;
  overflow-y: auto;
}

.ac-item {
  padding: 9px 12px;
  font-size: 14px;
  color: #e0e0e0;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-item:hover {
  background: #3a3a3a;
}

.ac-item.active {
  background: #007acc;
  color: #ffffff;
}

/* ==== График игр: сетка недели + карточки зала ==== */

.schedule-block {
  display: none; /* скрыт, пока JS не построит содержимое */
  margin-top: 20px;
}

.schedule-title {
  font-size: 17px;
  font-weight: 600;
  color: #a0e0ff;
  margin-bottom: 10px;
}

.sched-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 12px;
}

.sched-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 3px 9px;
  background: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 6px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sched-day-letter {
  font-size: 15px;
  font-weight: 700;
  color: #808080;
  line-height: 1;
}

.sched-day-name {
  font-size: 10px;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  min-height: 12px;
}

.sched-slot {
  font-size: 11px;
  font-weight: 600;
  color: #a0e0ff;
  background: rgba(0, 170, 255, 0.08);
  border: 1px solid rgba(0, 170, 255, 0.25);
  border-radius: 4px;
  padding: 2px 4px;
  white-space: nowrap;
}

.sched-off {
  font-size: 12px;
  color: #4a4a4a;
}

/* Статистика записей в днях без игры */
.sched-stats {
  font-size: 11px;
  color: #4fc3f7;
  margin-top: 2px;
  font-weight: 600;
}

/* Сегодняшний день */
.sched-cell.today {
  border-color: #ffb347;
  background: #2a2418;
}
.sched-cell.today .sched-day-letter {
  color: #ffb347;
}

/* Ближайшая игра */
.sched-cell.nearest {
  border-color: #2e7d32;
  background: #16281a;
  box-shadow: 0 0 10px rgba(46, 125, 50, 0.25);
}
.sched-cell.nearest .sched-day-letter {
  color: #7ddf8a;
}
.sched-cell.nearest .sched-slot {
  color: #7ddf8a;
  background: rgba(46, 125, 50, 0.15);
  border-color: rgba(46, 125, 50, 0.4);
}

.sched-badge {
  position: absolute;
  top: -7px;
  right: -4px;
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
  background: #2e7d32;
  border-radius: 8px;
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Карточки информации о зале */
.sched-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.sched-info-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 6px;
}

.sched-info-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.sched-info-label {
  font-size: 11px;
  color: #808080;
  margin-bottom: 2px;
}

.sched-info-value {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
}

/* ==== История записей: таймлайн с карточками и чипами ==== */

.hist-title {
  font-size: 16px;
  font-weight: 600;
  color: #a0e0ff;
  margin-top: 14px;
  margin-bottom: 10px;
}

.hist-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  padding-left: 18px;
}

/* Вертикальная линия таймлайна */
.hist-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, #00aaff, #333);
  border-radius: 1px;
}

.hist-card {
  position: relative;
  padding: 10px 12px;
  background: #1e1e1e;
  border: 1px solid #383838;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.hist-card:hover {
  border-color: #505050;
}

/* Точка на линии таймлайна */
.hist-card::before {
  content: '';
  position: absolute;
  left: -17px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00aaff;
  box-shadow: 0 0 6px rgba(0, 170, 255, 0.6);
}

.hist-card:last-child::before {
  background: #555;
  box-shadow: none;
}

.hist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.hist-date-main {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.hist-date-sub {
  font-size: 11px;
  color: #808080;
  margin-left: 8px;
}

.hist-count {
  font-size: 12px;
  font-weight: 600;
  color: #a0e0ff;
  background: rgba(0, 170, 255, 0.1);
  border: 1px solid rgba(0, 170, 255, 0.25);
  border-radius: 10px;
  padding: 2px 10px;
  white-space: nowrap;
}

.hist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.hist-chip {
  font-size: 12px;
  color: #d0d0d0;
  background: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 12px;
  padding: 3px 10px;
  line-height: 1.3;
}

/* ==== Стоимость к оплате ==== */

#pricingRow {
  margin-top: 15px;
  padding: 8px;
  background: #1a4b1a;
  border: 1px solid #006633;
  border-radius: 4px;
  font-size: 14px;
  color: #e0ffe0;
}

/* Пустое состояние: нет участников — блок приглушённый */
.pricing-empty {
  color: #888;
  font-style: italic;
}
#pricingRow:has(.pricing-empty) {
  background: #1e1e1e;
  border-color: #333;
}

.pricing-line {
  font-size: 13px;
  margin-bottom: 4px;
}

/* Режим «меньше минимума»: красная подсветка блока стоимости */
#pricingRow.pricing-warn {
  background: #501010;
  border-color: #a03030;
}

.pricing-amount {
  font-size: 13px;
  margin-top: 4px;
}

/* Баннер «сервер недоступен» */
.api-error-banner {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 5px;
  background: #501010;
  border: 1px solid #a03030;
  color: #ffe0e0;
  font-size: 13px;
}

/* Баннер «нет соединения с БД» */
.db-warning-banner {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 5px;
  background: #4a3a00;
  border: 1px solid #8a6d00;
  color: #fff3c0;
  font-size: 13px;
}

/* Ряд эмодзи в анимации успеха */
.success-anim-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pricing-registered {
  font-size: 13px;
  margin-top: 6px;
  color: #90d090;
}

.pricing-registered.under-min {
  color: #ffb0b0;
  font-weight: 600;
}

/* Блок телефона для оплаты */
.phone-block {
  margin-top: 10px;
  padding: 8px 10px;
  background: #224422;
  border-radius: 4px;
  border: 1px solid #336633;
  font-size: 13px;
  color: #e0ffe0;
}

.phone-block-warn {
  background: #501010;
  border-color: #a03030;
}

.phone-number {
  color: #ffffff;
  font-weight: bold;
  margin: 0 4px;
  cursor: pointer;
  text-decoration: underline dotted;
}

.phone-copy-btn {
  margin-left: 6px;
  padding: 0;
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: #a0e0ff;
  font-size: 15px;
  cursor: pointer;
}

/* Счётчик визитов игрока (справа в строке списка) */
.visit-count {
  color: #a0e0ff;
  font-size: 12px;
  float: right;
  margin-left: auto;
}

.visit-plus {
  color: #90ff90;
}

/* ==== Список участников ==== */

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #404040;
}

.list-header-hall {
  color: #a0e0ff;
}

.teams-icon {
  cursor: pointer;
  color: red;
}

.responsible-line {
  font-size: 13px;
  margin-bottom: 14px;
  color: #b0ffa0;
}

.player-name-edit {
  display: none;
  width: 250px;
  padding: 2px;
}

.icon-btn {
  cursor: pointer;
  margin-right: 6px;
}

.icon-save {
  display: none;
  color: green;
}

.icon-cancel {
  display: none;
  color: gray;
}

.icon-delete {
  color: red;
}

.fill-info {
  margin-top: 12px;
  font-size: 13px;
  color: #b0b0b0;
}

.fill-count {
  color: #ffffff;
}

.fill-bar-track {
  margin-top: 4px;
  height: 8px;
  background: #444;
  border-radius: 4px;
  overflow: hidden;
}

.fill-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Меньше минимума (10) — красная полоса */
.fill-bar-low {
  background: #c62828;
}

/* Нормальная заполненность — зелёная полоса */
.fill-bar-ok {
  background: #2e7d32;
}

/* Игрок сверх лимита — красным */
.player-over-limit {
  color: red;
}

/* Поле ФИО в невалидном состоянии (меньше 3 или больше 5 слов) */
.input-invalid {
  border-color: #ffb347 !important;
  background-color: #3a2f1a !important;
  color: #ffe8c0 !important;
}

/* Ошибка валидации ФИО (под полем ввода) */
.name-error {
  color: red;
  font-size: 12px;
  display: none;
  margin-left: 82px;
  margin-top: 4px;
}

/* Кнопка «Записаться» */
.signup-btn {
  margin-bottom: 15px;
}

/* Мини-анимация после записи (скрыта, пока нет контента) */
#successAnimation {
  display: none;
  text-align: center;
  margin-top: 15px;
}

/* История: скрыта, пока нет данных */
#historyTableContainer {
  margin-top: 12px;
  display: none;
}

/* Модалка удаления */
.delete-modal-content {
  width: 360px;
}

.delete-modal-text {
  margin: 14px 0;
  font-size: 14px;
  line-height: 1.5;
}

.delete-modal-name {
  color: #ff8a80;
}

.playerLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px 0;
  border-bottom: 1px solid #303030;
  padding-bottom: 4px;
}

.playerName {
  flex-grow: 1;
  margin-right: 10px;
  color: #ffffff;
}

.playerName span {
  margin-right: 10px;
}

/* Режим редактирования строки игрока */
.playerLine.editing .icon-edit { display: none; }
.playerLine.editing .icon-save,
.playerLine.editing .icon-cancel { display: inline-block; }

.icons {
  white-space: nowrap;
  text-align: right;
}

.responsible {
  margin-top: 4px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #a0ffa0;
}

/* ==== Анимация после успешной записи ==== */

#successAnimation .smile {
  font-size: 50px;
  display: inline-block;
  margin-left: 10px;
  animation: bounceSmile 1.2s ease-in-out 1 forwards;

  margin-top: 0;
  margin-bottom: 0;
}

@keyframes bounceSmile {
  0%   { transform: translateY(-10px) rotate(0deg); }
  25%  { transform: translateY(0px) rotate(3deg); }
  50%  { transform: translateY(-20px) rotate(-3deg); }
  75%  { transform: translateY(-5px) rotate(1.5deg); }
  100% { transform: translateY(-10px) rotate(0deg); }
}

/* ==== Модальные окна (общие стили) ==== */

.modal-overlay {
  display: none; /* показывается JS через style.display = 'flex' */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  padding: 18px 20px;
  background: #2a2a2a;
  border-radius: 8px;
  border: 1px solid #4a4a4a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  color: #e0e0e0;
  font-size: 14px;
  max-width: 90%;
}

/* Кнопки модалок: единый размер и выравнивание */
.modal-btn {
  padding: 8px 16px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.modal-btn-cancel {
  background: #3a3a3a;
  color: #e0e0e0;
  border-color: #555555;
}

.modal-btn-cancel:hover {
  background: #4a4a4a;
}

.modal-btn-danger {
  background: #c62828;
  color: #ffffff;
}

.modal-btn-danger:hover {
  background: #a02020;
}

.modal-btn-primary {
  background: #007acc;
  color: #ffffff;
}

.modal-btn-primary:hover {
  background: #005ca3;
}

/* ==== Единый стиль шапки модалок (заголовок + кнопка закрытия) ==== */

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
  font-weight: 600;
}

.modal-header strong {
  color: #ffffff;
}

.modal-close-btn {
  cursor: pointer;
  color: #ff6b6b;
  font-size: 22px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 107, 107, 0.15);
}

/* ==== Модальное окно с командами ==== */

#teamsModal {
  display: none;
}

#teamsModal.open {
  display: flex;
}

#teamsModal .modal-content {
  width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#teamsModal .modal-content::-webkit-scrollbar {
  display: none;
}

#teamsModal .teams-list {
  margin-top: 8px;
}

#teamsModal .team-card {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 10px;
  background: rgba(79, 195, 247, 0.04);
  transition: border-color 0.2s, background 0.2s;
}

#teamsModal .team-card:hover {
  border-color: rgba(79, 195, 247, 0.4);
  background: rgba(79, 195, 247, 0.07);
}

#teamsModal .team-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: #4fc3f7;
  font-size: 14px;
  letter-spacing: 0.3px;
}

#teamsModal .team-main {
  margin-bottom: 8px;
}

#teamsModal .team-main-label {
  font-weight: 500;
}

#teamsModal .team-main-item {
  margin-left: 12px;
  margin-top: 2px;
}

#teamsModal .team-sub {
  margin-top: 4px;
}

#teamsModal .team-sub-label {
  font-weight: 500;
}

#teamsModal .team-sub-item {
  margin-left: 12px;
  margin-top: 2px;
  color: #a0ffa0;
}

/* Сводка над командами */
.teams-summary {
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 13px;
  color: #aaa;
}
.teams-summary strong {
  color: #fff;
}

/* Пункт списка команды */
.team-player-item {
  margin: 3px 0;
  font-size: 14px;
  color: #d0d0d0;
}

/* Отступ перед шестым игроком (либеро) */
.team-player-gap {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Нумерованный список игроков команды */
.team-main-ol {
  margin: 0;
  padding-left: 20px;
  list-style-type: decimal;
}
.team-main-ol li::marker {
  color: #4fc3f7;
  font-weight: 600;
}

/* Общий footer модалок: кнопки в ряд, по правому краю */
.modal-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ==== Тосты (уведомления) ==== */

#toastContainer {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}

.toast {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.25s ease-out;
  word-break: break-word;
}

.toast.success {
  background: #1a4b1a;
  border: 1px solid #2e7d32;
  color: #e0ffe0;
}

.toast.error {
  background: #501010;
  border: 1px solid #a03030;
  color: #ffe0e0;
}

.toast.info {
  background: #1a3a5c;
  border: 1px solid #00aaff;
  color: #d0f0ff;
}

.toast.hiding {
  animation: toastOut 0.3s ease-in forwards;
}

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

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

/* ==== Версия приложения (незаметно внизу, кликабельна) ==== */
.app-version {
  text-align: center;
  font-size: 10px;
  color: #555;
  margin-top: 24px;
  padding-bottom: 8px;
  user-select: none;
  cursor: pointer;
  transition: color 0.2s;
}
.app-version:hover {
  color: #888;
  text-decoration: underline;
}

/* ==== Модалка changelog ==== */
.changelog-modal-content {
  max-height: 80vh;
  overflow-y: auto;
  width: 380px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.changelog-modal-content::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.changelog-list {
  padding: 4px 0;
}
.changelog-entry {
  padding: 14px 16px;
  margin: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s, border-color 0.2s;
}
.changelog-entry:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(79, 195, 247, 0.2);
}
.changelog-entry:first-child {
  border-color: rgba(79, 195, 247, 0.3);
  background: rgba(79, 195, 247, 0.04);
}
.changelog-version {
  font-weight: 700;
  color: #4fc3f7;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: inline-block;
  background: rgba(79, 195, 247, 0.1);
  padding: 2px 10px;
  border-radius: 12px;
}
.changelog-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.changelog-items li {
  font-size: 14px;
  color: #d0d0d0;
  padding: 4px 0;
  line-height: 1.4;
}

/* ==== Модальное окно ввода туннеля ==== */
.tunnel-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  padding: 16px;
}

.tunnel-modal-box {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: tunnelModalIn 0.25s ease-out;
}

@keyframes tunnelModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.tunnel-modal-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.tunnel-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #f0f0f0;
  margin: 0 0 8px;
}

.tunnel-modal-text {
  font-size: 14px;
  color: #aaa;
  margin: 0 0 20px;
  line-height: 1.4;
}

.tunnel-modal-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.tunnel-modal-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: monospace;
  background: #121212;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.tunnel-modal-input:focus {
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.tunnel-modal-input::placeholder {
  color: #555;
}

/* Выпадающий список туннелей — наследует стиль .tunnel-modal-input,
   добавляем курсор и отступ под стрелку */
.tunnel-modal-select {
  cursor: pointer;
  appearance: auto;
  padding-right: 36px;
}

.tunnel-modal-btn {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.tunnel-modal-btn:hover {
  background: #357abd;
}

.tunnel-modal-btn:active {
  transform: scale(0.97);
}

.tunnel-modal-hint {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.tunnel-modal-hint code {
  background: #2a2a2a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: #999;
}
