/* --- Welcome Popup Styles --- */
.welcome-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11000; /* Above Bootstrap modals and header */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.welcome-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.welcome-popup-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(140, 29, 203, 0.2), 0 2px 8px rgba(0,0,0,0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    width: 90%;
    max-width: 600px;
    padding: 0;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.welcome-popup-overlay.visible .welcome-popup-content {
    transform: scale(1);
}

.welcome-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(140, 29, 203, 0.1);
    background: linear-gradient(135deg, rgba(140, 29, 203, 0.05), rgba(255, 255, 255, 0.1));
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.welcome-popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.close-popup-btn {
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: 300;
    color: var(--gray-500);
    cursor: pointer;
    line-height: 1;
    padding: 0 0.5rem;
    transition: color 0.2s ease;
}

.close-popup-btn:hover {
    color: var(--primary-color-dark);
}

.welcome-popup-body {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
}

.welcome-popup-body .tagline {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    background: var(--primary-transparent);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.popup-cta {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .welcome-popup-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    .welcome-popup-body {
        padding: 1.5rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
