/* ========================================
   СОВРЕМЕННЫЙ ДИЗАЙН ПРОМОКОДОВ
   ======================================== */

/* Промокод на пополнение (главная страница) */
.promocode-donate {
    position: relative;
    max-width: 480px;
    margin: 20px auto;
    padding: 0;
    background: linear-gradient(135deg, #8B1538 0%, #C85A6E 50%, #B8838A 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(139, 21, 56, 0.4);
    overflow: visible;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float 6s ease-in-out infinite;
}

.promocode-donate:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 40px rgba(139, 21, 56, 0.5);
}



@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}



.promocode__title-donate {
    padding: 18px 25px 15px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.promocode__title-donate span {
    display: inline-block;
    padding: 4px 12px;
    margin-left: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.promocode__section-donate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px 25px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    gap: 12px;
}

.promocode__label-donate {
    flex-shrink: 0;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.promocode__label-donate span {
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promocode__code-donate {
    position: relative;
    flex-grow: 1;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    color: #8B1538;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-align: center;
    letter-spacing: 2px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.promocode__code-donate:hover {
    background: #ffffff;
    transform: scale(1.03);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(139, 21, 56, 0.3);
}

.promocode__code-donate::after {
    content: '📋 Нажмите для копирования';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.promocode-donate:hover .promocode__code-donate::after {
    opacity: 1;
}

.promocode__info-donate {
    flex-shrink: 0;
    text-align: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.promocode__info-title-donate {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.promocode__info-limit-donate {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.promocode__info-limit-donate span {
    color: #FFD700;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}



/* Адаптивность */
@media (max-width: 768px) {
    .promocode-donate {
        max-width: calc(100% - 20px);
        margin: 15px 10px;
    }
    
    .promocode__section-donate {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px 15px;
    }
    
    .promocode__code-donate {
        font-size: 16px;
        letter-spacing: 1.5px;
        width: 100%;
    }
    
    .promocode__copy-donate {
        position: static;
        transform: none;
        border-radius: 8px;
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   ПРОМОКОД В ПРОФИЛЕ
   ======================================== */

.profile__balance.promik {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #8B1538 0%, #C85A6E 50%, #B8838A 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.3);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.profile__balance.promik:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(139, 21, 56, 0.4);
}

.profile__balance.promik::before {
    content: '';
    font-size: 24px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile__balance-val--promo {
    flex-grow: 1;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.profile__balance-val--promo::placeholder {
    color: #999;
    font-weight: 400;
}

.profile__balance-val--promo:focus {
    background: #ffffff;
    border-color: #8B1538;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.2);
}

.profile__balance-btn.profile__balance-val--promo {
    flex-shrink: 0;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile__balance-btn.profile__balance-val--promo:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.03);
}

.profile__balance-btn.profile__balance-val--promo:active {
    transform: scale(0.97);
}

/* ========================================
   ПРОМОКОД В МОДАЛЬНОМ ОКНЕ ПОПОЛНЕНИЯ
   ======================================== */

.en-refill__amount-input-wrapper.promik {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #8B1538 0%, #C85A6E 50%, #B8838A 100%);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.3);
}

.en-refill__amount-input.en-refill__amount-input--address {
    flex-grow: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.en-refill__amount-input--address::placeholder {
    color: #999;
}

.en-refill__amount-input--address:focus {
    background: #ffffff;
    border-color: #8B1538;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.2);
}

.promocode-donete-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promocode-donete-check:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.08) rotate(5deg);
}

.promocode-donete-check:active {
    transform: scale(0.92);
}

/* Анимация успешной активации */
@keyframes success {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.promocode-donete-check.success {
    background: #4caf50;
    border-color: #4caf50;
    animation: success 0.5s ease;
}

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ
   ======================================== */

/* Эффект копирования */
@keyframes copied {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.copied-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 18px 35px;
    background: linear-gradient(135deg, #8B1538 0%, #C85A6E 50%, #B8838A 100%);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 15px 50px rgba(139, 21, 56, 0.6);
    z-index: 10000;
    animation: copied 2s ease;
    pointer-events: none;
    min-width: 280px;
}

/* Градиентная рамка */
.promo-gradient-border {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3px;
    border-radius: 15px;
}

.promo-gradient-border-inner {
    background: #1a1a1f;
    border-radius: 12px;
    padding: 20px;
}

/* Светящийся текст */
.promo-glow-text {
    color: #ffd700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 30px rgba(255, 215, 0, 0.4);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(255, 215, 0, 1),
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.6);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .promocode-donate {
        max-width: calc(100% - 16px);
        margin: 12px 8px;
    }
    
    .promocode__title-donate {
        font-size: 13px;
        padding: 15px 20px 12px;
    }
    
    .promocode__title-donate span {
        font-size: 16px;
        padding: 3px 10px;
    }
    
    .profile__balance.promik {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .profile__balance-btn.profile__balance-val--promo {
        width: 100%;
    }
    
    .en-refill__amount-input-wrapper.promik {
        flex-direction: column;
        gap: 8px;
    }
    
    .promocode-donete-check {
        width: 100%;
        height: 40px;
    }
    
    .copied-notification {
        min-width: 260px;
        padding: 15px 25px;
        font-size: 14px;
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .profile__balance-val--promo,
    .en-refill__amount-input--address {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .profile__balance-val--promo::placeholder,
    .en-refill__amount-input--address::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }
}
