/* Модальные окна public/arena (VSModal) */

.vs-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vs-modal--open {
  display: flex;
}

.vs-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  animation: arenaModalFadeIn 0.2s ease-out;
}

.vs-modal__content {
  position: relative;
  z-index: 1;
  background: var(--bg-panel-strong, rgba(5, 5, 20, 0.98));
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-strong, 0 18px 46px rgba(0, 0, 0, 0.65));
  animation: arenaModalSlideUp 0.3s ease-out;
}

.vs-modal__header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.1));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vs-modal__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--text-main, #f5f6ff);
}

.vs-modal__close {
  background: none;
  border: none;
  color: var(--text-muted, #aeb5ff);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
  line-height: 1;
}

.vs-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main, #f5f6ff);
}

.vs-modal__body {
  padding: 24px;
}

.vs-modal__footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border-soft, rgba(255, 255, 255, 0.1));
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@keyframes arenaModalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes arenaModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .vs-modal__header,
  .vs-modal__body,
  .vs-modal__footer {
    padding: 20px;
  }
}
