* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    color: var(--text-dark);
}

#desktop {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #4b1a8a 0%, #1e3c72 100%);
    position: relative;
    display: flex;
    flex-direction: column;
}

#popups-container {
    flex-grow: 1;
    position: relative;
    pointer-events: none; /* Let clicks pass through desktop */
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

/* Base Popup Styles */
.popup {
    position: absolute;
    bottom: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden;
    pointer-events: auto; /* Re-enable pointer events for popups */
    color: var(--bg-white);
    overflow: hidden;
}

.popup.active {
    opacity: 1;
    transform: scale(1.0);
    visibility: visible;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.popup-header h2 {
    font-size: 1.25rem;
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    color: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
