/* ==========================================
   MOBILE MODAL GUIDELINES
   ========================================== */

@media screen and (max-width: 767px) {
    /* Base Overlay - Restricting to space between navbars */
    .neo-modal-overlay {
        position: fixed !important;
        top: 60px !important;    /* Below mobile-top-nav (60px) */
        bottom: 80px !important; /* Above mobile-bottom-nav (80px) */
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: rgba(0, 0, 0, 0.7) !important;
        backdrop-filter: blur(10px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 9999 !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease;
    }

    .neo-modal-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Modal Content Box - Matching Education Modal Height & Feel */
    .neo-modal-content {
        display: flex !important;
        flex-direction: column !important; /* Stacked: Promo (Top) -> Info (Bottom) */
        width: 92% !important;
        height: auto !important;
        max-height: 85% !important;
        background: rgba(255, 255, 255, 0.05) !important;
        backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 20px !important;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
        overflow: hidden !important;
        position: relative !important;
        transform: scale(0.9) translateY(20px);
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        margin: auto !important;
    }

    .neo-modal-overlay.active .neo-modal-content {
        transform: scale(1) translateY(0) !important;
    }

    /* Promo Side (Headers) -> TOP */
    .neo-modal-promo {
        order: 1 !important;
        flex: none !important;
        padding: 1.25rem 1rem !important;
        background: transparent !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Divider */
    }

    .neo-modal-promo .promo-tag {
        display: inline-flex !important;
        padding: 0.35rem 1rem !important;
        border-radius: 100px !important;
        font-size: 0.65rem !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.1em !important;
        color: #fff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
        position: relative !important;
        overflow: hidden !important;
        
        /* Glass Gold Base */
        background: linear-gradient(135deg, rgba(255, 204, 51, 0.4) 0%, rgba(204, 153, 0, 0.3) 100%) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 204, 51, 0.4) !important;
        box-shadow: 0 4px 15px rgba(255, 204, 51, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
        
        margin: 0 auto 0.5rem auto !important;
        width: fit-content !important;
    }

    .neo-modal-promo .promo-tag::before {
        content: '';
        position: absolute;
        top: 15%;
        left: 10%;
        width: 45%;
        height: 30%;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
        filter: blur(2px);
        border-radius: 100px;
        pointer-events: none;
        z-index: 2;
    }

    .neo-modal-promo .promo-tag::after {
        content: '';
        position: absolute;
        bottom: -2px;
        right: 15%;
        width: 10px;
        height: 10px;
        background: #ffcc33;
        border-radius: 50%;
        filter: blur(4px);
        opacity: 0.8;
        box-shadow: 0 0 12px #ffcc33;
        pointer-events: none;
    }

    .neo-modal-promo h1 {
        font-size: 1.5rem !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
        margin-bottom: 0.4rem !important;
        background: linear-gradient(to bottom, #ffffff, #a78bfa) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        font-family: 'Outfit', sans-serif !important;
        text-align: center !important;
    }

    .neo-modal-promo p {
        font-size: 0.85rem !important;
        color: rgba(255, 255, 255, 0.6) !important;
        line-height: 1.6 !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    /* Info Side (Table/Detail Component) -> BOTTOM (Scrollable) */
    .neo-modal-info-side {
        order: 2 !important;
        flex: 1 !important;
        padding: 1rem 1.25rem !important;
        display: flex !important;
        flex-direction: column !important;
        background: rgba(45, 11, 74, 0.3) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        border-bottom: none !important;
        max-height: none !important; /* Let flex take over */
        min-height: 0 !important;
        scrollbar-width: thin !important;
        scrollbar-color: rgba(255, 204, 51, 0.8) transparent !important;
    }

    /* Custom Scrollbar for Modal Content (Matching Education) */
    .neo-modal-info-side::-webkit-scrollbar {
        width: 5px;
    }
    .neo-modal-info-side::-webkit-scrollbar-track {
        background: transparent;
    }
    .neo-modal-info-side::-webkit-scrollbar-thumb {
        background: rgba(255, 204, 51, 0.8);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .neo-modal-info-side::-webkit-scrollbar-thumb:hover {
        background: var(--primary);
    }

    #modal-info-list {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding-right: 0 !important;
    }

    /* Close Button - Top Right of Modal Content */
    .neo-modal-close-icon {
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        left: auto !important;
        background: rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #fff !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        z-index: 100 !important;
        font-size: 1.2rem !important;
    }

    /* Guidelines Table Styling (Education Feel) */
    .neo-guidelines-table thead {
        display: none !important;
    }

    .neo-guidelines-table tbody {
        display: block !important;
        width: 100% !important;
    }

    .neo-guidelines-table tr {
        display: flex !important;
        flex-direction: column !important;
        padding: 1.25rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .neo-guidelines-table tr:last-child {
        border-bottom: none !important;
    }

    .neo-guidelines-table td {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
    }

    .neo-info-label {
        display: block !important;
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        color: #fff !important;
        margin-top: 0.35rem !important;
        margin-bottom: 0.5rem !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }

    .neo-info-tag {
        display: block !important;
        width: fit-content !important;
        font-size: 0.6rem !important;
        padding: 3px 10px !important;
        border-radius: 100px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        color: #fff !important;
        position: relative !important;
        overflow: hidden !important;

        /* Glass Violet Base */
        background: linear-gradient(135deg, rgba(167, 139, 250, 0.35) 0%, rgba(139, 92, 246, 0.25) 100%) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(167, 139, 250, 0.3) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    }

    .neo-info-tag::before {
        content: '';
        position: absolute;
        top: 15%;
        left: 10%;
        width: 45%;
        height: 30%;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
        filter: blur(2px);
        border-radius: 100px;
        pointer-events: none;
        z-index: 2;
    }

    .neo-info-tag::after {
        content: '';
        position: absolute;
        bottom: -2px;
        right: 15%;
        width: 8px;
        height: 8px;
        background: #a78bfa;
        border-radius: 50%;
        filter: blur(4px);
        opacity: 0.7;
        box-shadow: 0 0 10px #a78bfa;
        pointer-events: none;
    }
    .neo-info-desc {
        color: rgba(248, 250, 252, 0.8) !important;
        font-size: 0.8rem !important;
        line-height: 1.6 !important;
        text-align: justify !important;
        hyphens: auto !important;
    }

    /* Utilities */
    .neo-modal-footer {
        display: none !important;
    }
}
