/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
    border: 2px solid rgba(42, 171, 238, 0.3);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    max-width: 550px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 80px rgba(42, 171, 238, 0.2), 0 0 100px rgba(42, 171, 238, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    animation: modalBounce 0.5s ease;
}

@keyframes modalBounce {
    0% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
}

.telegram-logo-wrapper {
    position: relative;
    display: inline-block;
}

.telegram-logo-wrapper svg {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 30px rgba(42, 171, 238, 0.5));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 3px solid rgba(42, 171, 238, 0.6);
    border-radius: 50%;
    animation: pulsate 2s ease-out infinite;
}

.pulse-ring-delay {
    animation-delay: 1s;
}

@keyframes pulsate {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

.modal-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.modal-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-description strong {
    color: var(--text-primary);
    font-size: 1.25rem;
    display: block;
    margin-bottom: 0.5rem;
}

.modal-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(42, 171, 238, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(42, 171, 238, 0.2);
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.benefit-icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 2px 8px rgba(42, 171, 238, 0.3));
}

.btn-telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(42, 171, 238, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-telegram::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-telegram:hover::before {
    left: 100%;
}

.btn-telegram:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(42, 171, 238, 0.6);
    background: linear-gradient(135deg, #3BBBFF 0%, #33AEE9 100%);
}

.btn-telegram:active {
    transform: translateY(-1px);
}

.modal-footer-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    line-height: 1.6;
}

.highlight {
    color: #2AABEE;
    font-weight: 700;
}

/* Modal responsive */
@media (max-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-title {
        font-size: 1.75rem;
    }

    .modal-description {
        font-size: 1rem;
    }

    .modal-description strong {
        font-size: 1.125rem;
    }

    .telegram-logo-wrapper svg {
        width: 100px;
        height: 100px;
    }

    .pulse-ring {
        width: 100px;
        height: 100px;
    }

    .modal-benefits {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .btn-telegram {
        font-size: 1.125rem;
        padding: 1rem 1.5rem;
    }
}