/* --- POPUP OVERLAY --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Dark blur */
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    display: flex;
    opacity: 1;
}

/* --- POPUP CONTENT --- */
.popup-content {
    background: var(--dark-card);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    padding: 2.5rem;
    max-width: 800px;
    width: 90%;
    position: relative;
    display: flex;
    gap: 40px;
    align-items: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-overlay.show .popup-content {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* --- POPUP LEFT (GRAPHIC) --- */
.popup-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Reusing a mini version of browser-mockup */
.popup-mockup {
    width: 100%;
    background: #1e293b;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(-3deg);
    position: relative;
}

.popup-mockup::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
}

.popup-mockup::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
}

.popup-browser-header {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

.popup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.popup-iframe {
    background: var(--dark);
    height: 180px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 15px;
    text-align: center;
}

.popup-iframe i {
    color: var(--primary);
    width: 32px;
    height: 32px;
}

/* --- POPUP RIGHT (TEXT) --- */
.popup-right {
    flex: 1.2;
    text-align: left;
}

.popup-right h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
}

.popup-right p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .popup-content {
        flex-direction: column;
        padding: 2rem;
        gap: 20px;
    }

    .popup-left {
        width: 100%;
        max-width: 250px;
    }

    .popup-right {
        text-align: center;
    }

    .popup-right h2 {
        font-size: 1.5rem;
    }
}