/* Стили для pop-up окон */
.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.custom-popup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: slideUp 0.3s ease-out;
}

.promo-popup {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    border: 3px solid #d1ff00;
    min-width: 340px;
    box-shadow: 0 10px 30px rgba(209, 255, 0, 0.2);
}

.popup-content {
    position: relative;
}

.popup-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: #d1ff00;
    border: 2px solid #d1ff00;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    font-weight: bold;
}

.popup-close:hover {
    background: #d1ff00;
    color: #000000;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(209, 255, 0, 0.6);
}

.popup-header {
    background: #000000;
    padding: 25px 20px;
    border-bottom: 3px solid #d1ff00;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.popup-header h3 {
    margin: 0;
    color: #d1ff00;
    font-size: 1.6em;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 4px rgba(209, 255, 0, 0.3);
    letter-spacing: 0.5px;
}

.popup-body {
    padding: 30px 25px;
    text-align: center;
    background: #0a0a0a;
	border-radius: 12px;
}

.popup-body p {
    margin-bottom: 25px;
    font-size: 1.15em;
    color: #ffffff;
    line-height: 1.5;
    font-weight: 500;
}

.promocode-field {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.promocode-text {
    background: rgba(209, 255, 0, 0.1);
    border: 2px solid #d1ff00;
    padding: 15px 25px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.4em;
    font-weight: bold;
    color: #d1ff00;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(209, 255, 0, 0.5);
    box-shadow: 0 0 20px rgba(209, 255, 0, 0.2);
    transition: all 0.3s ease;
}

.promocode-text:hover {
    box-shadow: 0 0 25px rgba(209, 255, 0, 0.4);
    transform: translateY(-2px);
}

.btn-copy {
    background: linear-gradient(135deg, #d1ff00, #b8e600);
    color: #000000;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(209, 255, 0, 0.3);
    border: 2px solid transparent;
}

.btn-copy:hover {
    background: linear-gradient(135deg, #b8e600, #9ccc00);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(209, 255, 0, 0.5);
    border: 2px solid #d1ff00;
}

.btn-copy:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(209, 255, 0, 0.4);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(209, 255, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(209, 255, 0, 0.6);
    }
}

.promo-popup {
    animation: glow 3s ease-in-out infinite;
}


.popup-header h3 {
	paddind-inline: 2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .custom-popup {
        max-width: 95%;
        margin: 15px;
    }
    
    .promo-popup {
        min-width: 300px;
    }
    
    .promocode-field {
        flex-direction: column;
        gap: 12px;
    }
    
    .popup-header h3 {
        font-size: 1.4em;
    }
    
    .popup-body {
        padding: 25px 20px;
    }
    
    .popup-header {
        padding: 20px 15px;
    }
    
    .promocode-text {
        font-size: 1.2em;
        padding: 12px 20px;
        letter-spacing: 2px;
    }
    
    .btn-copy {
        padding: 12px 25px;
        font-size: 1em;
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .popup-header {
        padding: 18px 12px;
    }
    
    .popup-header h3 {
        font-size: 1.3em;
    }
    
    .popup-body {
        padding: 20px 15px;
    }
    
    .popup-body p {
        font-size: 1.05em;
    }
    
    .promocode-text {
        font-size: 1.1em;
        padding: 10px 18px;
        letter-spacing: 1px;
    }
    
    .btn-copy {
        padding: 12px 20px;
        font-size: 0.95em;
    }
    
    .popup-close {
        width: 28px;
        height: 28px;
        font-size: 16px;
        top: 8px;
        right: 10px;
    }
}

/* Стили для отключенной кнопки закрытия */
.popup-close:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.5);
    border-color: #666;
    color: #666;
}

.popup-close:disabled:hover {
    background: rgba(0, 0, 0, 0.5);
    color: #666;
    border-color: #666;
    transform: none;
    box-shadow: none;
}

/* Дополнительные эффекты для лучшего визуального восприятия */
.promo-popup::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d1ff00, transparent, #d1ff00);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.1;
    animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
}