/* Стили для всплывающего окна Telegram */
.telegram-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.telegram-popup-overlay.show {
    display: flex;
}

.telegram-popup {
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 136, 204, 0.4);
    position: relative;
    animation: slideUp 0.4s ease;
    overflow: hidden;
}

.telegram-popup-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px 30px 20px;
    text-align: center;
    position: relative;
}

.telegram-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 20px;
    line-height: 1;
}

.telegram-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.telegram-popup-body {
    padding: 30px;
    text-align: center;
    color: white;
}

.telegram-popup-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.telegram-popup-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.telegram-popup-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.95;
}

.telegram-popup-button {
    background: white;
    color: #0088cc;
    text-decoration: none;
    border-radius: 30px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.telegram-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #005580;
}

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .telegram-popup {
        width: 95%;
        margin: 20px;
    }
    
    .telegram-popup-header {
        padding: 20px 25px 15px;
    }
    
    .telegram-popup-body {
        padding: 25px 20px;
    }
    
    .telegram-popup-title {
        font-size: 22px;
    }
    
    .telegram-popup-text {
        font-size: 15px;
    }
    
    .telegram-popup-button {
        padding: 12px 30px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .telegram-popup {
        width: 98%;
        margin: 10px;
    }
    
    .telegram-popup-header {
        padding: 15px 20px 12px;
    }
    
    .telegram-popup-body {
        padding: 20px 15px;
    }
    
    .telegram-popup-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .telegram-popup-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .telegram-popup-text {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .telegram-popup-button {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .telegram-close-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }
}

/* Для пользователей с motion preferences */
@media (prefers-reduced-motion: reduce) {
    .telegram-popup-overlay,
    .telegram-popup,
    .telegram-close-btn,
    .telegram-popup-button,
    .telegram-popup-icon {
        animation: none;
        transition: none;
    }
}

/* Печать - скрыть всплывающее окно */
@media print {
    .telegram-popup-overlay {
        display: none !important;
    }
}
