/* ============================================
   PAY MODAL — модалка для быстрых покупок (39₽)
   ============================================ */

.pay-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
}
.pay-modal-overlay.open {
  display: flex;
  animation: pay-modal-fade-in 0.25s ease;
}
@keyframes pay-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pay-modal-card {
  background: #14101e;
  border-radius: 18px;
  border: 1px solid rgba(167, 139, 250, 0.4);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(167, 139, 250, 0.08);
  animation: pay-modal-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pay-modal-slide {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 540px) {
  .pay-modal-card {
    padding: 22px 18px;
    border-radius: 14px;
  }
}

.pay-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 0;
  border-radius: 9px;
  width: 32px;
  height: 32px;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.pay-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pay-modal-illustration {
  text-align: center;
  padding: 8px 0 16px;
}

.pay-modal-card-vis {
  width: 110px;
  height: 165px;
  margin: 0 auto;
  border-radius: 14px;
  background: linear-gradient(145deg, #312e81, #4c1d95, #1e1b4b);
  border: 1px solid rgba(167, 139, 250, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.3);
}
.pay-modal-card-vis::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 8px;
}
.pay-modal-card-vis svg {
  width: 42px;
  height: 42px;
  opacity: 0.92;
}

.pay-modal-title {
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.1;
  color: #fff;
}
.pay-modal-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  margin: 0 0 18px;
  line-height: 1.5;
}

.pay-modal-summary {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 12px;
  padding: 16px 18px;
}
.pay-modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}
.pay-modal-row.pay-modal-tot {
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 9px;
  font-weight: 600;
}
.pay-modal-price {
  color: #fcd34d;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.pay-modal-form {
  margin-top: 14px;
}
.pay-modal-fields {
  display: flex;
  flex-direction: column;
}
.pay-modal-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 10px 0 6px;
}
.pay-modal-label:first-child {
  margin-top: 0;
}
.pay-modal-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.pay-modal-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.pay-modal-input:focus {
  border-color: rgba(139, 92, 246, 0.5);
}

.pay-modal-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
}

.pay-modal-cta {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
  transition: filter 0.15s;
}
.pay-modal-cta:hover {
  filter: brightness(1.1);
}
.pay-modal-cta:active {
  transform: translateY(1px);
}

.pay-modal-methods {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  margin: 10px 0 0;
}
