/* ==================== АНИМАЦИИ КНОПОК С СИНИМ ЗЕРКАЛЬНЫМ ЭФФЕКТОМ ==================== */

button,
.btn,
.pricing-btn,
.cta-btn,
.action-btn,
.copy-btn,
.extend-btn,
.delete-btn,
.logout-btn,
input[type="submit"],
.nav-item,
.nav-item.featured-nav,
a[href*="tariffs"],
.topup-btn {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Зеркальный блик СИНИЙ */
button::before,
.btn::before,
.pricing-btn::before,
.cta-btn::before,
.action-btn::before,
.copy-btn::before,
.extend-btn::before,
.delete-btn::before,
input[type="submit"]::before,
.nav-item::before,
.nav-item.featured-nav::before,
.topup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(135, 206, 250, 0.4),
        rgba(70, 130, 255, 0.6),
        rgba(135, 206, 250, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

/* Активация зеркального эффекта при наведении */
button:hover::before,
.btn:hover::before,
.pricing-btn:hover::before,
.cta-btn:hover::before,
.action-btn:hover::before,
.copy-btn:hover::before,
.extend-btn:hover::before,
.delete-btn:hover::before,
input[type="submit"]:hover::before,
.nav-item:hover::before,
.nav-item.featured-nav:hover::before,
.topup-btn:hover::before {
    left: 100%;
}

/* СИНЕЕ свечение при наведении */
button:hover,
.btn:hover,
.pricing-btn:hover,
.cta-btn:hover,
.action-btn:hover,
.copy-btn:hover,
.extend-btn:hover,
input[type="submit"]:hover,
.nav-item:hover,
.topup-btn:hover {
    box-shadow: 
        0 0 25px rgba(70, 130, 255, 0.6),
        0 0 50px rgba(70, 130, 255, 0.4),
        0 10px 40px rgba(70, 130, 255, 0.5) !important;
    transform: translateY(-2px) scale(1.02) !important;
    filter: brightness(1.15);
}

/* Специальная анимация для активной nav-item */
.nav-item.active {
    animation: pulse-glow-active 3s ease-in-out infinite;
}

@keyframes pulse-glow-active {
    0%, 100% {
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(102, 126, 234, 0.7);
    }
}

/* Красное свечение для кнопок удаления */
.delete-btn:hover,
.logout-btn:hover {
    box-shadow: 
        0 0 25px rgba(255, 50, 50, 0.6),
        0 0 50px rgba(255, 50, 50, 0.4),
        0 10px 40px rgba(255, 50, 50, 0.5) !important;
}

.delete-btn::before,
.logout-btn::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 70, 70, 0.4),
        rgba(255, 50, 50, 0.6),
        rgba(255, 70, 70, 0.4),
        transparent
    ) !important;
}

/* Эффект нажатия */
button:active,
.btn:active,
.pricing-btn:active,
.action-btn:active,
.nav-item:active,
.topup-btn:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 
        0 0 15px rgba(70, 130, 255, 0.5),
        0 4px 20px rgba(70, 130, 255, 0.4) !important;
}

/* Анимация пульсации для главных кнопок */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(70, 130, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(70, 130, 255, 0.6);
    }
}

.pricing-btn,
.cta-btn,
.nav-item.featured-nav,
.topup-btn {
    animation: pulse-glow 3s ease-in-out infinite;
}

.pricing-btn:hover,
.cta-btn:hover,
.nav-item.featured-nav:hover,
.topup-btn:hover {
    animation: none;
}

/* Эффект рипплов для мобильных */
@media (hover: none) {
    button:active::after,
    .btn:active::after,
    .pricing-btn:active::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(70, 130, 255, 0.5);
        transform: translate(-50%, -50%);
        animation: ripple 0.6s ease-out;
        pointer-events: none;
    }
}

@keyframes ripple {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Дополнительное свечение текста */
button:hover,
.btn:hover,
.pricing-btn:hover,
.nav-item:hover,
.topup-btn:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Иконки в nav-item увеличиваются при наведении */
.nav-item:hover i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

