/* Telegram Popup Banner Styles - Clean KikaSports Theme */
.tpb-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: tpbFadeIn 0.3s ease-out;
}

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

@keyframes tpbFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tpb-popup-container {
    background: var(--tpb-primary-color, #ffffff);
    border-radius: 8px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    margin: 20px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    animation: tpbSlideUp 0.4s ease-out forwards;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
}

@keyframes tpbSlideUp {
    to {
        transform: scale(1) translateY(0);
    }
}

.tpb-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--tpb-text-color, #333333);
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.tpb-popup-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.tpb-popup-icon {
    text-align: center;
    margin-bottom: 20px;
}

.tpb-telegram-icon {
    width: 40px;
    height: 40px;
    fill: #0088cc;
}

.tpb-popup-title {
    color: var(--tpb-text-color, #333333);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.tpb-popup-description {
    color: var(--tpb-text-color, #666666);
    font-size: 15px;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
}

.tpb-popup-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.tpb-popup-button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tpb-join-button {
    background: var(--tpb-button-color, #333333);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tpb-join-button:hover {
    background: var(--tpb-button-color, #000000);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    text-decoration: none;
}

.tpb-maybe-later-button {
    background: transparent;
    color: var(--tpb-text-color, #666666);
    border: 1px solid #ddd;
}

.tpb-maybe-later-button:hover {
    background: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-1px);
}

/* Responsive Design */
/* Tablet screens */
@media (max-width: 1024px) and (min-width: 769px) {
    .tpb-popup-container {
        padding: 35px;
        max-width: 90%;
        box-sizing: border-box;
    }
    
    .tpb-popup-buttons {
        gap: 12px;
    }
    
    .tpb-popup-button {
        min-width: 140px;
        padding: 12px 20px;
        box-sizing: border-box;
    }
}

/* Mobile and small tablet screens */
@media (max-width: 768px) {
    .tpb-popup-container {
        padding: 25px 20px;
        margin: 15px;
        max-width: 95%;
        width: calc(100% - 30px);
        box-sizing: border-box;
    }
    
    .tpb-popup-title {
        font-size: 22px;
    }
    
    .tpb-popup-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .tpb-popup-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .tpb-popup-button {
        width: 100%;
        max-width: 100%;
        padding: 14px 16px;
        font-size: 15px;
        min-width: auto;
        box-sizing: border-box;
    }
    
    .tpb-telegram-icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .tpb-popup-container {
        padding: 20px 15px;
        border-radius: 6px;
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .tpb-popup-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .tpb-popup-description {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .tpb-popup-button {
        padding: 12px 14px;
        font-size: 14px;
        width: 100%;
        max-width: 100%;
    }
}

/* Clean, minimal styling - no extra decorations */
