﻿body.popup-open {
    overflow: hidden;
    height: 100vh;
    touch-action: none;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2147483647;
    /* Prevent background scroll */
    overflow: hidden;
}

.popup {
    width: 400px;
    max-width: 90%;
    background: #000000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: popupShow 0.3s ease;
    height: 95vh;
    
   
}

@keyframes popupShow {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-header {
    padding: 16px 20px;
    background: #000000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.popup-content {
    height: 80vh;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
    /* IMPORTANT */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background-color: #000000;
    color: #ffffff;
    padding-bottom: 100px;
}

.item {
    padding: 14px;
    margin-bottom: 12px;
    background: #000000;
    border-radius: 10px;
    border-left: 4px solid #2563eb;
    color: #ffffff;
}
