.sp-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}

.sp-popup-overlay.active {
    display: flex;
}

.sp-popup-container {
    background: #3c3c3b;
    color: #e0e0e0;
    border-radius: 20px;
    width: 93vw;
    max-width: 1400px;
    max-height: 75vh;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    animation: sp-popup-in 0.3s ease-out;
}

@keyframes sp-popup-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Close button - thin circle outline */
.sp-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    font-size: 18px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: border-color 0.2s, color 0.2s;
    padding: 0;
    line-height: 1;
}

.sp-popup-close:hover {
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

/* Scrollable content wrapper */
.sp-popup-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 40px 48px;
    padding-right: 80px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sp-popup-scroll::-webkit-scrollbar {
    display: none;
}

/* Title */
.sp-popup-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    margin: 0 0 1.2em 0;
    letter-spacing: -0.02em;
}

/* Content */
.sp-popup-content {
    font-size: 1.15rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85);
}

.sp-popup-content h1,
.sp-popup-content h2,
.sp-popup-content h3,
.sp-popup-content h4 {
    color: #fff;
    margin-top: 0;
}

.sp-popup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.sp-popup-content a {
    color: #aac8ff;
}

/* Fade overlay at bottom */
.sp-popup-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(60,60,59,0) 0%, rgba(60,60,59,1) 100%);
    pointer-events: none;
    border-radius: 0 0 20px 20px;
    transition: opacity 0.3s;
}

/* Scroll navigation buttons - bottom right, thin outline circles */
.sp-popup-nav {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-popup-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s, opacity 0.3s;
    font-size: 14px;
    padding: 0;
}

.sp-popup-nav-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

.sp-popup-nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Chevron SVGs */
.sp-popup-nav-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Responsive */
@media (max-width: 600px) {
    .sp-popup-container {
        width: 95vw;
        max-height: 75vh;
        border-radius: 14px;
    }

    .sp-popup-scroll {
        padding: 28px 24px;
        padding-right: 60px;
    }

    .sp-popup-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .sp-popup-nav {
        right: 14px;
        bottom: 14px;
    }

    .sp-popup-nav-btn {
        width: 32px;
        height: 32px;
    }
}