/* Стили оверлея */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-out;
  z-index: 1000;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Само модальное окно */
.modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 32px;
  max-width: 480px;
  width: 90%;
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

/* Кнопка закрытия */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close::before,
.modal-close::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #94a3b8;
  left: 50%;
  top: 50%;
  transition: all 0.2s ease;
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-close:hover::before,
.modal-close:hover::after {
  background: #64748b;
  transform: translate(-50%, -50%) rotate(0deg);
}

/* Контент модального окна */
.modal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
}

.modal-text {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Кнопки действий */
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.modal-button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-button.primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.modal-button.secondary {
  background: #f1f5f9;
  color: #64748b;
}

.modal-button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 12px -2px rgba(99, 102, 241, 0.2);
}

.modal-button.secondary:hover {
  background: #e2e8f0;
}

/* Адаптивность */
@media (max-width: 600px) {
  .modal {
    width: 95%;
    padding: 24px;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-button {
    width: 100%;
  }
}







/*mobile modal*/
.mobile_modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
        
.mobile_modal_container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 80vh;
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
        
.mobile_modal_header {
  padding: 24px 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
        
.mobile_modal_drag_indicator {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
}
        
.mobile_modal_title {
  font-size: 18px;
  font-weight: 600;
  color: #212121;
  width: 100%;
  text-align: center;
  padding-top: 8px;
}
        
.mobile_modal_close {
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}
        
.mobile_modal_close svg {
  width: 24px;
  height: 24px;
  stroke: #7cc440;
  stroke-width: 2;
  transition: all 0.3s ease;
}
        
.mobile_modal_close:hover {
  background: rgba(124, 196, 64, 0.1);
}
        
.mobile_modal_close:hover svg {
  stroke: #5a9e2c;
  transform: rotate(90deg);
}
        
.mobile_modal_content {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 30px;
  max-height: calc(80vh - 70px);
}
        
/* Пример контента */
.mobile_modal_item {
  padding: 16px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}
        
.mobile_modal_item:last-child {
  border-bottom: none;
}
        
.mobile_modal_item:hover {
  color: #7cc440;
}
        
.mobile_modal_item.selected {
  color: #7cc440;
  font-weight: 600;
}
        
.mobile_modal_item.selected::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #7cc440;
  border-radius: 50%;
  margin-left: auto;
  position: relative;
}
        
.mobile_modal_item.selected::before {
  content: "✓";
  position: absolute;
  right: 28px;
  color: white;
  font-size: 12px;
  z-index: 2;
}
        
/* Открытое состояние */
.mobile_modal_overlay.active {
  display: block;
  opacity: 1;
}
        
.mobile_modal_container.active {
  transform: translateY(0);
}
        
/* Акцентный цвет */
.mobile_modal_accent {
  color: #7cc440;
}




























