/* ===== MODAL STYLES (в стиле modalka.html) ===== */

/* Popup overlay */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup.show {
  opacity: 1;
  visibility: visible;
}

.popup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
}

/* Popup container */
.popup-container {
  position: relative;
  width: 100%;
  height: auto;
  max-width: 550px;
  z-index: 1;
  animation: modalZoomIn 0.3s ease;
}

@keyframes modalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.popup-container .in {
  position: relative;
  background: linear-gradient(135deg, #1A1A1F 0%, #25252A 100%);
  border-radius: 18px;
  padding: 50px 50px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Close button */
.popup-container .close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.popup-container .close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.popup-container .close::before,
.popup-container .close::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 1px;
}

.popup-container .close::before {
  transform: rotate(45deg);
}

.popup-container .close::after {
  transform: rotate(-45deg);
}

/* Guest Modal container */
.guestModal {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 32px;
  /* align-items: flex-start; */
  flex-direction: column;
}

.guestModal--left {
  flex: 0 0 auto;
  min-width: 200px;
}

.guestModal--right {
  flex: 1;
  min-width: 0;
}

/* Заголовки */
.guestModal--h1 {
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.guestModal--h2 {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #FF0054 0%, #FF3366 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.guestModal--text {
  font-size: 14px;
  color: #B8B8B8;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Блоки шагов */
.guestModal--block {
  background: rgba(255, 255, 255, 0.03);
  /* border: 1px solid rgba(255, 255, 255, 0.08); */
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.guestModal--block:last-child {
  margin-bottom: 0;
}

.guestModal--block:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 0, 84, 0.2);
}

/* Шаг выполнен */
.guestModal--block.step-done {
  background: rgba(0, 200, 81, 0.08);
  border-color: rgba(0, 200, 81, 0.3);
}

.guestModal--block.step-done .guestModal--step-title {
  color: #00C851;
}

.guestModal--block.step-done .guestModal--step-num {
  background: #00C851;
}

.guestModal--block.step-done .step-num-text {
  display: none;
}

.guestModal--block.step-done .step-check-icon {
  display: block;
}

.guestModal--block.step-done .guestModal--step-content {
  display: none;
}

/* Заголовок шага */
.guestModal--step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  /* margin-bottom: 12px; */
}

.guestModal--step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary, #FF0054);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: background 0.3s ease;
}

.step-num-text {
  font-weight: 700;
  font-size: 16px;
  color: #FFFFFF;
  line-height: 1;
}

.step-check-icon {
  display: none;
  color: #FFFFFF;
  width: 20px;
  height: 20px;
}

.guestModal--step-title {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.3;
}

/* Контент шага */
.guestModal--step-content {
  padding-left: 48px;
}

.guestModal--step-content .guestModal--text {
  margin-bottom: 20px;
}

/* Статус верификации */
.guestModal--status {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 0, 84, 0.1);
  border: 1px solid rgba(255, 0, 84, 0.2);
  border-radius: 8px;
  text-align: center;
}

.guestModal--status p {
  margin: 0;
  font-size: 13px;
  color: var(--primary, #FF0054);
  font-weight: 500;
}

/* Кнопки */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.dflex-c {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn.w-100 {
  width: 100%;
}

.btn.text-center {
  text-align: center;
}

.btn.mt-10 {
  margin-top: 10px;
}

.btn.mt-20 {
  margin-top: 20px;
}

/* Telegram button */
.btn.modal-btn--telegram {
  background: #0088cc14;
  color: #4b9aff;
}

.btn.modal-btn--telegram:hover:not(:disabled) {
  background: #006699;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Primary button (pink) */
.btn.modal-btn--primary {
  background: var(--primary, #FF0054);
  color: #FFFFFF;
  /* box-shadow: 0 4px 12px rgba(255, 0, 84, 0.2); */
  height: 55px;
}

.btn.modal-btn--primary:hover:not(:disabled) {
  background: #FF3366;
  transform: translateY(-1px);
  /* box-shadow: 0 6px 16px rgba(255, 0, 84, 0.3); */
}

/* Success button */
.btn.modal-btn--success {
  background: var(--success, #00C851);
  color: #FFFFFF;
  height: 55px;
}

.btn.modal-btn--success:hover:not(:disabled) {
  background: #00B844;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 200, 81, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .popup-container .in {
    padding: 32px 24px;
  }

  .guestModal {
    flex-direction: column;
    gap: 24px;
  }

  .guestModal--left {
    min-width: 100%;
    text-align: center;
  }

  .guestModal--h1 {
    font-size: 24px;
  }

  .guestModal--h2 {
    font-size: 28px;
  }

  .guestModal--step-content {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .popup-container .in {
    padding: 24px 16px;
  }

  .guestModal--h1 {
    font-size: 20px;
  }

  .guestModal--h2 {
    font-size: 24px;
  }

  .guestModal--block {
    padding: 16px;
  }
}
