/* ==========================================================================
   HyperBeans GITEX 2026 Homepage Invitation Popup
   ========================================================================== */

.gitex-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(13, 18, 37, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.gitex-popup-overlay.is-visible {
    display: flex;
    opacity: 1;
}

.gitex-popup-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border: 1px solid #d4e9e6;
    border-top: 5px solid #74b143;
    border-radius: 8px;
    padding: 34px 32px 30px;
    box-shadow: 0 24px 60px rgba(13, 18, 37, 0.35);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.28s ease;
    color: #0d1225;
}

.gitex-popup-overlay.is-visible .gitex-popup-card {
    transform: translateY(0) scale(1);
}

.gitex-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #d4e9e6;
    background: #f7f7f7;
    color: #132244;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gitex-popup-close:hover {
    background: #132244;
    border-color: #132244;
    color: #ffffff;
}

.gitex-popup-top {
    margin-bottom: 14px;
}

.gitex-popup-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ebfffb;
    color: #132244;
    border: 1px solid #74b143;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.gitex-popup-tag i {
    color: #74b143;
}

.gitex-popup-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: #0d1225;
    margin: 0 0 12px;
}

.gitex-popup-desc {
    font-size: 16px;
    line-height: 1.65;
    color: #2b3149;
    margin: 0 0 24px;
}

.gitex-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gitex-popup-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    background: #132244;
    color: #ffffff !important;
    border: 1px solid #132244;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
    flex: 1 1 200px;
}

.gitex-popup-btn-primary:hover {
    background: #0d1225;
    border-color: #0d1225;
    color: #ffffff !important;
}

.gitex-popup-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    background: #74b143;
    color: #ffffff !important;
    border: 1px solid #74b143;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
    flex: 1 1 200px;
}

.gitex-popup-btn-secondary:hover {
    background: #619a34;
    border-color: #619a34;
    color: #ffffff !important;
}

/* Dark mode support */
body.dark .gitex-popup-card {
    background: #0f1628;
    border-color: #ffffff2b;
    border-top-color: #7ac143;
    color: #ffffff;
}

body.dark .gitex-popup-title {
    color: #ffffff;
}

body.dark .gitex-popup-desc {
    color: #d8e2e1;
}

body.dark .gitex-popup-tag {
    background: rgba(116, 177, 67, 0.16);
    color: #ffffff;
}

body.dark .gitex-popup-close {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffffff2b;
    color: #ffffff;
}

@media (max-width: 575px) {
    .gitex-popup-card {
        padding: 28px 20px 24px;
    }

    .gitex-popup-title {
        font-size: 22px;
    }

    .gitex-popup-desc {
        font-size: 15px;
    }
}
