/* Overlay */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 36, 0.85);
    /* Deep dark semi-transparent */
    backdrop-filter: blur(8px);
    /* Blur effect */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

/* Modal Content Container */
.popup-box {
    background: linear-gradient(135deg, #16213e 0%, #0f172a 100%);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 12px;
    position: relative;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    color: #f8fafc;
    animation: popupScaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animations */
@keyframes popupScaleUp {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Scrollbar Styling */
.popup-box::-webkit-scrollbar {
    width: 8px;
}

.popup-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.popup-box::-webkit-scrollbar-thumb {
    background: #f5c542;
    border-radius: 10px;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: rgba(245, 197, 66, 0.2);
    color: #f5c542;
    transform: rotate(90deg);
}

/* Header */
.popup-box h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(to right, #f5c542, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.popup-text {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 30px;
}

.popup-text strong {
    color: #f5c542;
}

/* Info Grid */
.popup-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
    text-align: left;
}

.city-popup strong {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.city-popup p {
    font-size: 13px;
    line-height: 1.5;
    color: #e2e8f0;
    margin: 0;
}

.city-popup .time {
    display: block;
    margin-top: 6px;
    color: #f5c542;
    font-weight: 700;
    font-size: 12px;
}

/* QR Section */
.popup-qr {
    margin-bottom: 35px;
}

.popup-qr h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f8fafc;
}

#qrCodeContainer {
    background: #fff;
    padding: 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Download Button styled as a Link/Button */
#qrDownload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    background: #f5c542;
    color: #0f172a;
    text-decoration: none !important;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245, 197, 66, 0.3);
}

#qrDownload:hover {
    background: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 197, 66, 0.4);
}

#qrDownload i {
    font-size: 18px;
}

/* Secondary Confirm Button */
.popup-confirm {
    width: 100%;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 14px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.popup-confirm:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

/* Responsive */
@media (max-width: 480px) {
    .popup-box {
        padding: 30px 20px;
    }

    .popup-info {
        grid-template-columns: 1fr;
    }

    .popup-box h2 {
        font-size: 24px;
    }
}