@charset "UTF-8";
/* КОМЕНТАРИИ СТАВИТЬ ТАК (ctrl+shift+/)  */
/* блоки, страницы */
@media (max-width: 767px) {
  .footer {
    position: relative;
    left: 0;
    bottom: 50px;
  }
}

.dark-theme .service-card .service-content h4 {
  color: #b0b4c1;
}
.dark-theme .modal-content {
  background-color: #393535;
}
.dark-theme #addPaymentMethodModal .modal-header .modal-title {
  color: #b0b4c1;
}
.dark-theme .radio-card-group .radio-card label {
  background-color: #dfdfdf;
}

/* Базовые стили для автогенерируемого расписания */
/* Переменные */
:root {
  --schedule-primary: #2f2cd8;
  --schedule-secondary: #667eea;
  --schedule-success: #22c55e;
  --schedule-warning: #eab308;
  --schedule-danger: #ff8a8a;
  --schedule-info: #8b5cf6;
  --schedule-pink: #ec4899;
  --schedule-orange: #f97316;
  --schedule-gray-50: #f8fafc;
  --schedule-gray-100: #f1f5f9;
  --schedule-gray-200: #e2e8f0;
  --schedule-gray-300: #cbd5e1;
  --schedule-gray-400: #94a3b8;
  --schedule-gray-500: #64748b;
  --schedule-gray-600: #475569;
  --schedule-gray-700: #334155;
  --schedule-gray-800: #1e293b;
  --schedule-border-radius: 8px;
  --schedule-border-radius-lg: 12px;
  --schedule-border-radius-xl: 16px;
  --schedule-transition: all 0.2s ease;
  /* Цвета дней недели (можно переопределить через CSS переменные) */
  --day-0-color: var(--schedule-primary);
  --day-1-color: var(--schedule-primary);
  --day-2-color: var(--schedule-primary);
  --day-3-color: var(--schedule-primary);
  --day-4-color: var(--schedule-primary);
  --day-5-color: var(--schedule-danger);
  --day-6-color: var(--schedule-danger);
  /* Основные переменные для светлой темы */
  --schedule-bg: #fff;
  --schedule-border: #e2e8f0;
  --schedule-text: #1a202c;
  --schedule-hover: #f7fafc;
  --schedule-selected: #3b82f6;
  --schedule-selected-hover: #2563eb;
  --schedule-controls-bg: #f8fafc;
  --schedule-controls-border: #e2e8f0;
  --schedule-stats-bg: #f8fafc;
  --schedule-stats-border: #e2e8f0;
  --schedule-toggle-bg: #cbd5e0;
  --schedule-toggle-active: #3b82f6;
  --schedule-toggle-handle: #fff;
  --schedule-grid-border: #e2e8f0;
  --schedule-time-label-bg: #f8fafc;
  --schedule-day-label-bg: #f8fafc;
  --schedule-time-slot-bg: #fff;
  --schedule-time-slot-hover: #f7fafc;
  --schedule-time-slot-selected: #3b82f6;
  --schedule-time-slot-selected-hover: #2563eb;
  --schedule-control-btn-bg: #fff;
  --schedule-control-btn-hover: #f7fafc;
  --schedule-control-btn-active: #3b82f6;
  --schedule-control-btn-text: #1a202c;
  --schedule-stat-value: #3b82f6;
  --schedule-stat-label: #4a5568;
}

.dark-theme {
  --schedule-bg: #181828;
  --schedule-border: #333;
  --schedule-text: #e0e0e0;
  --schedule-hover: #23233a;
  --schedule-selected: #3b82f6;
  --schedule-selected-hover: #2563eb;
  --schedule-controls-bg: #23233a;
  --schedule-controls-border: #333;
  --schedule-stats-bg: #23233a;
  --schedule-stats-border: #333;
  --schedule-toggle-bg: #333;
  --schedule-toggle-active: #3b82f6;
  --schedule-toggle-handle: #fff;
  --schedule-grid-border: #333;
  --schedule-time-label-bg: #23233a;
  --schedule-day-label-bg: #23233a;
  --schedule-time-slot-bg: #181828;
  --schedule-time-slot-hover: #23233a;
  --schedule-time-slot-selected: #3b82f6;
  --schedule-time-slot-selected-hover: #2563eb;
  --schedule-control-btn-bg: #23233a;
  --schedule-control-btn-hover: #333;
  --schedule-control-btn-active: #3b82f6;
  --schedule-control-btn-text: #e0e0e0;
  --schedule-stat-value: #3b82f6;
  --schedule-stat-label: #a0a0a0;
}

/* Анимации */
@keyframes schedule-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes schedule-bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: scale(1);
  }
  40%, 43% {
    transform: scale(1.1);
  }
}
/* Основной контейнер */
.schedule-container {
  margin: 0 auto;
  background: white;
  border-radius: var(--schedule-border-radius-xl);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Темы */
.schedule-container[data-theme=compact] {
  border-radius: var(--schedule-border-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.schedule-container[data-theme=minimal] {
  border: 1px solid var(--schedule-gray-200);
  box-shadow: none;
}

/* Размеры ячеек */
.schedule-container[data-size=small] .schedule-time-slot {
  height: 30px;
}

.schedule-container[data-size=large] .schedule-time-slot {
  height: 50px;
}

/* Заголовок */
.schedule-header {
  padding: 20px 20px 0;
  background: #ffffff;
  color: #161616;
}

.schedule-container[data-theme=compact] .schedule-header {
  padding: 16px;
}

.schedule-container[data-theme=minimal] .schedule-header {
  background: var(--schedule-gray-100);
  color: var(--schedule-gray-800);
}

.schedule-header h4 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 16px 0;
}

.schedule-container[data-theme=compact] .schedule-header h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

/* Переключатель */
.schedule-toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.schedule-toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.schedule-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.schedule-toggle input:checked + .schedule-slider {
  background-color: #2F2CD8;
}

.schedule-toggle input:checked + .schedule-slider:before {
  transform: translateX(16px);
}

.schedule-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ebf1f8;
  transition: 0.3s;
  border-radius: 28px;
  width: 38px;
  height: 20px;
}

.schedule-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.schedule-toggle-label {
  font-size: 16px;
  font-weight: 500;
}

/* Контент расписания */
.schedule-content {
  padding: 24px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.schedule-content.active {
  opacity: 1;
}

.schedule-container[data-theme=compact] .schedule-content {
  padding: 16px;
}

/* Кнопки управления */
.schedule-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.schedule-control-btn {
  padding: 8px 16px;
  background: var(--schedule-gray-100);
  border: 1px solid var(--schedule-gray-200);
  border-radius: var(--schedule-border-radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--schedule-gray-600);
  transition: var(--schedule-transition);
}

.schedule-control-btn:hover {
  background: var(--schedule-gray-200);
  transform: translateY(-1px);
}

.schedule-control-btn:active {
  animation: schedule-bounce 0.6s;
}

/* Сетка расписания - полный режим */
.schedule-grid {
  background: var(--schedule-gray-50);
  border-radius: var(--schedule-border-radius-lg);
  padding: 16px;
  position: relative;
  overflow-x: auto;
}

.schedule-time-header {
  display: grid;
  grid-template-columns: 60px repeat(24, 45px);
  gap: 2px;
  margin-bottom: 8px;
  min-width: max-content;
}

.schedule-time-label {
  font-size: 10px;
  color: var(--schedule-gray-500);
  text-align: center;
  padding: 8px 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--schedule-transition);
  user-select: none;
}

.schedule-time-label:hover {
  background: var(--schedule-gray-200);
}

.schedule-time-label:first-child {
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-day-row {
  display: grid;
  grid-template-columns: 60px repeat(24, 45px);
  gap: 2px;
  margin-bottom: 4px;
  min-width: max-content;
}

.schedule-day-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--schedule-gray-700);
  background: var(--schedule-gray-300);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--schedule-transition);
  user-select: none;
}

.schedule-day-label:hover {
  background: var(--schedule-gray-400);
  transform: scale(1.02);
}

.schedule-time-slot {
  height: 40px;
  background: white;
  border: 2px solid var(--schedule-gray-300);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--schedule-transition);
  position: relative;
  overflow: hidden;
  min-width: 40px;
  flex-shrink: 0;
}

.schedule-time-slot:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.schedule-time-slot.selected {
  background: linear-gradient(135deg, var(--schedule-primary), var(--schedule-primary));
  border-color: var(--schedule-primary);
  box-shadow: 0 4px 12px rgba(var(--schedule-primary), 0.4);
}

.schedule-time-slot.selected::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: schedule-shimmer 2s infinite;
}

/* Цвета для разных дней */
.schedule-time-slot[data-day="0"].selected {
  background: linear-gradient(135deg, var(--schedule-primary), var(--schedule-primary));
  border-color: var(--schedule-primary);
}

.schedule-time-slot[data-day="1"].selected {
  background: linear-gradient(135deg, var(--schedule-primary), var(--schedule-primary));
  border-color: var(--schedule-primary);
}

.schedule-time-slot[data-day="2"].selected {
  background: linear-gradient(135deg, var(--schedule-primary), var(--schedule-primary));
  border-color: var(--schedule-primary);
}

.schedule-time-slot[data-day="3"].selected {
  background: linear-gradient(135deg, var(--schedule-primary), var(--schedule-primary));
  border-color: var(--schedule-primary);
}

.schedule-time-slot[data-day="4"].selected {
  background: linear-gradient(135deg, var(--schedule-primary), var(--schedule-primary));
  border-color: var(--schedule-primary);
}

.schedule-time-slot[data-day="5"].selected {
  background: linear-gradient(135deg, var(--schedule-danger), var(--schedule-danger));
  border-color: var(--schedule-danger);
}

.schedule-time-slot[data-day="6"].selected {
  background: linear-gradient(135deg, var(--schedule-danger), var(--schedule-danger));
  border-color: var(--schedule-danger);
}

/* Режим "только дни" */
.schedule-days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  padding: 16px;
}

.schedule-day-only-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: white;
  border: 2px solid var(--schedule-gray-300);
  border-radius: var(--schedule-border-radius-lg);
  cursor: pointer;
  transition: var(--schedule-transition);
}

.schedule-day-only-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.schedule-day-only-item.selected {
  background: var(--schedule-primary);
  color: white;
  border-color: var(--schedule-primary);
}

.schedule-day-name {
  font-weight: 600;
  font-size: 16px;
}

.schedule-day-toggle {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.schedule-day-only-item.selected .schedule-day-toggle::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: white;
}

/* Режим "только часы" */
.schedule-hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding: 16px;
}

.schedule-hour-only-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: white;
  border: 2px solid var(--schedule-gray-300);
  border-radius: var(--schedule-border-radius);
  cursor: pointer;
  transition: var(--schedule-transition);
}

.schedule-hour-only-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.schedule-hour-only-item.selected {
  background: var(--schedule-success);
  color: white;
  border-color: var(--schedule-success);
}

.schedule-hour-name {
  font-weight: 500;
  font-size: 14px;
}

.schedule-hour-toggle {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 3px;
  position: relative;
}

.schedule-hour-only-item.selected .schedule-hour-toggle::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: white;
}

/* Статистика */
.schedule-stats {
  margin-top: 16px;
  padding: 16px;
  background: var(--schedule-gray-100);
  border-radius: var(--schedule-border-radius);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.schedule-stat-item {
  text-align: center;
}

.schedule-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--schedule-gray-800);
}

.schedule-container[data-theme=compact] .schedule-stat-value {
  font-size: 20px;
}

.schedule-stat-label {
  font-size: 12px;
  color: var(--schedule-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .schedule-time-header,
  .schedule-day-row {
    font-size: 10px;
  }
  .schedule-time-slot {
    height: 24px;
    font-size: 10px;
  }
  .schedule-controls {
    justify-content: center;
  }
  .schedule-stats {
    justify-content: center;
  }
  .schedule-container {
    margin: 0 10px;
  }
  .schedule-header {
    padding: 16px;
  }
  .schedule-header h2 {
    font-size: 20px;
  }
  .schedule-content {
    padding: 16px;
  }
  .schedule-days-grid {
    grid-template-columns: 1fr;
  }
  .schedule-hours-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .schedule-day-label {
    position: sticky;
    left: -14px;
    z-index: 8;
  }
}
/* Состояния загрузки */
.schedule-container.loading {
  opacity: 0.6;
  pointer-events: none;
}

.schedule-container.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-container.no-animations .schedule-time-slot,
.schedule-container.no-animations .schedule-day-label,
.schedule-container.no-animations .schedule-control-btn {
  transition: none;
}

.schedule-container.no-animations .schedule-time-slot.selected::before {
  animation: none;
}

/* --- Явные стили для темной темы --- */
.dark-theme .schedule-container {
  background: #181828;
  color: #e0e0e0;
}

.dark-theme .schedule-header {
  background: #23233a;
  color: #e0e0e0;
  padding: 20px;
}

.dark-theme .schedule-control-btn {
  background: #23233a;
  color: #e0e0e0;
  border-color: #333;
}

.dark-theme .schedule-control-btn:hover {
  background: #333;
}

.dark-theme .schedule-control-btn:active {
  background: #3b82f6;
  color: #fff;
}

.dark-theme .schedule-content {
  background: transparent;
  color: #e0e0e0;
}

.dark-theme .schedule-grid {
  background: #23233a;
}

.dark-theme .schedule-time-label {
  color: #a0a0a0;
}

.dark-theme .schedule-time-label:hover {
  background: #333;
}

.dark-theme .schedule-day-label {
  background: #23233a;
  color: #e0e0e0;
}

.dark-theme .schedule-day-label:hover {
  background: #333;
}

.dark-theme .schedule-time-slot {
  background: #181828;
  border-color: #333;
}

.dark-theme .schedule-time-slot.selected {
  background: #3b82f6;
  border-color: #3b82f6;
}

.dark-theme .schedule-time-slot:hover {
  background: #23233a;
}

.dark-theme .schedule-days-grid,
.dark-theme .schedule-hours-grid {
  background: #23233a;
}

.dark-theme .schedule-day-only-item,
.dark-theme .schedule-hour-only-item {
  background: #181828;
  border-color: #333;
  color: #e0e0e0;
}

.dark-theme .schedule-day-only-item.selected {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.dark-theme .schedule-hour-only-item.selected {
  background: #22c55e;
  color: #fff;
  border-color: #22c55e;
}

.dark-theme .schedule-time-slot[data-day="5"].selected {
  background: linear-gradient(135deg, var(--schedule-danger), var(--schedule-danger));
  border-color: var(--schedule-danger);
}

.dark-theme .schedule-time-slot[data-day="6"].selected {
  background: linear-gradient(135deg, var(--schedule-danger), var(--schedule-danger));
  border-color: var(--schedule-danger);
}

.dark-theme .schedule-stats {
  background: #23233a;
  color: #e0e0e0;
  border-color: #333;
}

.dark-theme .schedule-stat-value {
  color: #3b82f6;
}

.dark-theme .schedule-stat-label {
  color: #a0a0a0;
}

.dark-theme .schedule-toggle {
  background: none;
}

.dark-theme .schedule-slider {
  background: #333;
}

.dark-theme .schedule-toggle input:checked + .schedule-slider {
  background: #3b82f6;
}

.dark-theme .schedule-slider:before {
  background: #fff;
}

* {
  transition: all 0.2s ease-in-out !important;
}

.hover-scale:hover {
  transform: scale(1.1);
}

.table .btn {
  display: inline-flex;
  align-items: center;
  padding: 12px;
}
.table .btn i {
  font-size: 18px;
}

.pay-img {
  width: 100%;
  height: 30px;
  object-fit: cover;
}

.min-h-400 {
  min-height: 400px !important;
}

.radio-card-group {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.radio-card-group .radio-card {
  flex: 0 1 calc(25% - 18px);
  max-width: calc(25% - 18px);
}
.radio-card-group .radio-card input[type=radio] {
  display: none;
}
.radio-card-group .radio-card input[type=radio]:checked + label {
  border-color: #0d6efd;
  background-color: #eaf1ff;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}
.radio-card-group .radio-card label {
  display: block;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  background-color: #fff;
  padding: 16px;
  text-align: center;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.radio-card-group .radio-card label:hover {
  background-color: #f9f9f9;
}
.radio-card-group .radio-card label svg,
.radio-card-group .radio-card label img {
  display: block;
  margin: 0 auto 10px;
  width: 64px;
  height: 64px;
  color: #161616;
}
.radio-card-group .radio-card label .label-title {
  font-size: 16px;
  font-weight: 500;
  color: #161616;
}
@media (max-width: 768px) {
  .radio-card-group .radio-card {
    flex: 0 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}
@media (max-width: 480px) {
  .radio-card-group .radio-card {
    flex: 0 1 100%;
    max-width: 100%;
  }
}

.cell.selected {
  background-color: #cfe8ff;
  transition: background-color 0.2s;
}

.schedule-active .cell.selected {
  background-color: #91cdff;
}

.img-80 {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 2px 16px 0 rgba(31, 41, 55, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
}
.service-card .model-icon-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(31, 41, 55, 0.07);
}
.service-card .model-icon-circle img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.service-card .model-icon-circle.gpt {
  background: #e1e1f9;
}
.service-card .model-icon-circle.gigachat {
  background: #e0f7fa;
}
.service-card .service-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.service-card .service-content h4 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 2px 0;
  color: #1a237e;
  line-height: 1.2;
}
.service-card .service-content .agent-services-label {
  font-size: 13px;
  color: #b0b4c1;
  font-weight: 400;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}
.service-card .service-content .agent-services {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}
.service-card .service-content .agent-services .service-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #c1c1c1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px 0 rgba(31, 41, 55, 0.07);
}
.service-card .service-content .agent-services .service-circle i {
  font-size: 20px;
  color: #fff;
}
.service-card .service-content .agent-services .service-circle.whatsapp {
  background: #25d366;
}
.service-card .service-content .agent-services .service-circle.telegram {
  background: #229ed9;
}
.service-card .service-content .agent-services .service-circle.instagram {
  background: #e1306c;
}
.service-card .service-content .service-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  justify-content: center;
}
.service-card .service-content .service-actions .btn-action {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #f3f4f6;
  color: #1a237e;
  box-shadow: 0 1px 4px 0 rgba(31, 41, 55, 0.07);
  transition: background 0.2s, color 0.2s;
}
.service-card .service-content .service-actions .btn-action.edit {
  background: #ffe082;
  color: #b28704;
}
.service-card .service-content .service-actions .btn-action.view {
  background: #b3e5fc;
  color: #0277bd;
}
.service-card .service-content .service-actions .btn-action.delete {
  background: #ffcdd2;
  color: #c62828;
}
.service-card .service-content .service-actions .btn-action:hover {
  filter: brightness(0.95);
}
@media (max-width: 1024px) {
  .service-card .service-content .service-actions {
    gap: 10px;
    opacity: 1;
  }
}
.service-card:hover {
  box-shadow: 0 6px 32px 0 rgba(31, 41, 55, 0.12);
}
.service-card:hover .service-actions {
  opacity: 1;
  pointer-events: all;
}

.payment-method-selector .payment-method-option {
  border: 2px solid #e5e9f2;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.payment-method-selector .payment-method-option i {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
  color: #6c757d;
}
.payment-method-selector .payment-method-option span {
  display: block;
  font-weight: 500;
  color: #6c757d;
}
.payment-method-selector .payment-method-option:hover {
  border-color: #007bff;
  background-color: rgba(0, 123, 255, 0.05);
}
.payment-method-selector .payment-method-option.active {
  border-color: #007bff;
  background-color: rgba(0, 123, 255, 0.05);
}
.payment-method-selector .payment-method-option.active i, .payment-method-selector .payment-method-option.active span {
  color: #007bff;
}

#addPaymentMethodModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
#addPaymentMethodModal .modal-header {
  border-bottom: 1px solid #e5e9f2;
  padding: 20px;
}
#addPaymentMethodModal .modal-header .modal-title {
  font-weight: 600;
  color: #2c323f;
}
#addPaymentMethodModal .modal-body {
  padding: 20px;
}
#addPaymentMethodModal .modal-footer {
  border-top: 1px solid #e5e9f2;
  padding: 20px;
}
#addPaymentMethodModal .form-control {
  border-radius: 6px;
  border: 1px solid #e5e9f2;
  padding: 10px 15px;
}
#addPaymentMethodModal .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
#addPaymentMethodModal .form-label {
  font-weight: 500;
  color: #2c323f;
  margin-bottom: 8px;
}

.dropdown .btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dropdown .btn-primary .fi {
  font-size: 14px;
}

#addServiceDropdown[aria-expanded=true] .fi {
  transform: rotate(180deg) !important;
}

#addServiceDropdown .fi {
  transition: transform 0.2s ease !important;
}

.form-control.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

#knowledgeBaseContent {
  min-height: 380px;
}

/* дефолтная карточка если не подключен сервис/база и т.п. */
.empty-state-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 24px;
  box-shadow: 0 2px 16px 0 rgba(31, 41, 55, 0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-height: 300px;
  justify-content: center;
}
.empty-state-card .empty-state-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  margin-bottom: 16px;
}
.empty-state-card .empty-state-icon i {
  font-size: 48px;
  color: #9ca3af;
}
.empty-state-card .empty-state-content {
  max-width: 100%;
  margin: 0 auto;
}
.empty-state-card .empty-state-content h3 {
  font-size: 24px;
  font-weight: 500;
  color: #1a237e;
  margin-bottom: 12px;
}
.empty-state-card .empty-state-content p {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.5;
}
.empty-state-card .empty-state-action .btn-primary {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
}

.sms-code-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
  position: relative;
}
.sms-code-inputs input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 24px;
  border: 2px solid #e5e9f2;
  border-radius: 8px;
  padding: 0;
}
.sms-code-inputs input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}
.sms-code-inputs input.is-invalid {
  border-color: #dc3545;
}
.sms-code-inputs + .error-message {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.resend-code {
  text-align: center;
  margin-top: 15px;
}
.resend-code button {
  background: none;
  border: none;
  color: #0d6efd;
  padding: 0;
  font-size: 14px;
}
.resend-code button:disabled {
  color: #6c757d;
  cursor: not-allowed;
}

.error-message {
  color: #dc3545;
  font-size: 11px;
  margin-top: 5px;
  min-height: 20px;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
  visibility: hidden;
}

.form-control.is-invalid {
  border-color: #dc3545;
}
.form-control.is-invalid + .error-message {
  opacity: 1;
  visibility: visible;
}

.phone-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.phone-input-group .custom-country-select {
  position: relative;
  width: max-content; /* Ширина по содержимому */
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid #e5e9f2;
  border-radius: 8px;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.phone-input-group .custom-country-select:focus-within {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}
.phone-input-group .custom-country-select .selected-country-display {
  display: flex;
  align-items: center;
  padding: 8px; /* Добавляем отступ для стрелки */
  font-size: 14px;
  color: #2c323f;
  min-height: 38px; /* Соответствие высоте input */
  box-sizing: border-box;
}
.phone-input-group .custom-country-select .selected-country-display .flag-icon {
  width: 24px;
  height: 24px;
  border-radius: 3px;
}
.phone-input-group .custom-country-select .selected-country-display .country-code {
  font-weight: 500;
}
.phone-input-group .custom-country-select .country-options-dropdown {
  width: max-content;
  position: absolute;
  top: 100%;
  left: -1px; /* Компенсация border */
  right: -1px; /* Компенсация border */
  background-color: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  display: none; /* Скрыто по умолчанию */
}
.phone-input-group .custom-country-select .country-options-dropdown .country-option {
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.phone-input-group .custom-country-select .country-options-dropdown .country-option:hover {
  background-color: #f0f0f0;
}
.phone-input-group .custom-country-select .country-options-dropdown .country-option.selected {
  background-color: #eaf1ff; /* Выделенный элемент */
}
.phone-input-group .custom-country-select .country-options-dropdown .country-option .flag-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 3px;
}
.phone-input-group .custom-country-select .country-options-dropdown .country-option .country-name {
  flex-grow: 1;
  font-size: 14px;
}
.phone-input-group .custom-country-select .country-options-dropdown .country-option .country-code {
  font-weight: 500;
  font-size: 14px;
  color: #6c757d;
}
.phone-input-group .custom-country-select.active .country-options-dropdown {
  display: block; /* Показать, когда активен */
}
.phone-input-group input[name=phone] {
  flex-grow: 1;
}
@media (max-width: 767px) {
  .phone-input-group {
    flex-direction: column;
    gap: 8px;
  }
  .phone-input-group .custom-country-select {
    width: 100%;
  }
}

.privacy-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}
.privacy-content h1, .privacy-content h2, .privacy-content h3, .privacy-content h4, .privacy-content h5, .privacy-content h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.privacy-content h1 {
  font-size: 2rem;
}
.privacy-content h2 {
  font-size: 1.75rem;
}
.privacy-content h3 {
  font-size: 1.5rem;
}
.privacy-content h4 {
  font-size: 1.25rem;
}
.privacy-content h5 {
  font-size: 1.125rem;
}
.privacy-content h6 {
  font-size: 1rem;
}
.privacy-content ul, .privacy-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}
.privacy-content ul li, .privacy-content ol li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
  list-style: inherit;
  display: list-item;
}
.privacy-content ul {
  list-style-type: disc;
}
.privacy-content ol {
  list-style-type: decimal;
}
.privacy-content strong, .privacy-content b {
  font-weight: 600;
}
.privacy-content em, .privacy-content i {
  font-style: italic;
}
.privacy-content a {
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.2s ease;
}
.privacy-content a:hover {
  color: #0a58ca;
  text-decoration: underline;
}
.privacy-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid #e5e9f2;
  background-color: #f8f9fa;
  font-style: italic;
  color: #6c757d;
}
.privacy-content code {
  padding: 0.2rem 0.4rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}
.privacy-content pre {
  margin: 1rem 0;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  overflow-x: auto;
}
.privacy-content pre code {
  padding: 0;
  background-color: transparent;
}
.privacy-content table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}
.privacy-content table th, .privacy-content table td {
  padding: 0.75rem;
  border: 1px solid #e5e9f2;
}
.privacy-content table th {
  background-color: #f8f9fa;
  font-weight: 600;
}
.privacy-content hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #e5e9f2;
}
.privacy-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}
.privacy-content dl {
  margin: 1rem 0;
}
.privacy-content dl dt {
  font-weight: 600;
  margin-top: 1rem;
}
.privacy-content dl dd {
  margin-left: 1rem;
  margin-bottom: 0.5rem;
}