.faq-section {
    position: relative;
    padding: 6rem 1rem;
    background: #000000;
    color: var(--color-white);
    overflow: hidden;
    z-index: 40;
    /* Ensure it stacks correctly above paradise-park */
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.faq-subtitle {
    display: block;
    font-size: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #facc15, #eab308);
    /* Primary to Primary/60 approx */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 500;
}

.faq-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    font-family: var(--font-sans);
    /* Or Montserrat if requested later */
}

/* Galaxy Background Effects */
.faq-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    will-change: contents;
    contain: layout style paint;
}

/* Nebula Gradient Overlays */
.faq-bg-glow::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse at center,
            rgba(250, 204, 21, 0.1) 0%,
            rgba(234, 179, 8, 0.05) 30%,
            transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: nebulaDrift 20s ease-in-out infinite alternate;
}

.faq-bg-glow::after {
    content: "";
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse at center,
            rgba(234, 179, 8, 0.08) 0%,
            rgba(250, 204, 21, 0.05) 30%,
            transparent 70%);
    border-radius: 50%;
    filter: blur(90px);
    animation: nebulaDrift 25s ease-in-out infinite alternate-reverse;
}

@keyframes nebulaDrift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -20px) scale(1.1);
    }
}

/* Individual Stars */
.faq-star {
    position: absolute;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
    opacity: var(--star-opacity, 0.7);
    animation: twinkle var(--star-duration, 3s) var(--star-delay, 0s) ease-in-out infinite;
    will-change: opacity, transform;
}

/* Bright sparkle stars */
.faq-star-bright {
    box-shadow:
        0 0 8px rgba(255, 255, 255, 1),
        0 0 12px rgba(250, 204, 21, 0.4),
        0 0 16px rgba(234, 179, 8, 0.2);
    animation: sparkleTwinkle var(--star-duration, 2s) var(--star-delay, 0s) ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: var(--star-opacity, 0.7);
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

@keyframes sparkleTwinkle {

    0%,
    100% {
        opacity: var(--star-opacity, 0.9);
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.2);
        filter: brightness(1.5);
    }
}

/* ===== MOBILE PERFORMANCE OVERRIDES ===== */
@media (max-width: 768px) {

    /* Remove heavy blur filters on nebula pseudo-elements */
    .faq-bg-glow::before {
        filter: blur(40px);
        animation: none;
        opacity: 0.7;
    }

    .faq-bg-glow::after {
        filter: blur(40px);
        animation: none;
        opacity: 0.7;
    }

    /* Simplify star box-shadows (GPU-expensive on mobile) */
    .faq-star {
        box-shadow: none;
    }

    .faq-star-bright {
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
    }

    /* Use opacity-only twinkle on mobile (no transform, no filter) */
    @keyframes twinkle {

        0%,
        100% {
            opacity: var(--star-opacity, 0.7);
        }

        50% {
            opacity: 0.2;
        }
    }

    @keyframes sparkleTwinkle {

        0%,
        100% {
            opacity: var(--star-opacity, 0.9);
        }

        50% {
            opacity: 0.3;
        }
    }

    /* Faster accordion transition */
    .faq-answer {
        transition: max-height 0.25s ease-out;
        will-change: max-height;
    }

    .faq-block {
        animation-duration: 0.3s;
    }
}

/* Custom Dropdown Container */
.faq-custom-dropdown {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 4rem;
    z-index: 20;
}

/* Dropdown Button (shows selected value) */
.faq-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(250, 204, 21, 0.4);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-white);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.faq-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #facc15;
}

.faq-custom-dropdown.open .faq-dropdown-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: #facc15;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-dropdown-btn-text {
    flex: 1;
    text-align: left;
}

.faq-dropdown-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

.faq-custom-dropdown.open .faq-dropdown-chevron {
    transform: rotate(180deg);
}

/* Dropdown Options List */
.faq-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid rgba(250, 204, 21, 0.4);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.faq-custom-dropdown.open .faq-dropdown-options {
    max-height: 500px;
    opacity: 1;
    overflow-y: auto;
}

/* Individual Option */
.faq-dropdown-option {
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-dropdown-option:last-child {
    border-bottom: none;
}

.faq-dropdown-option:hover {
    background: rgba(250, 204, 21, 0.15);
    color: var(--color-white);
}

.faq-dropdown-option.selected {
    background: rgba(250, 204, 21, 0.25);
    color: var(--color-white);
    font-weight: 500;
}

/* Scrollbar styling for options list */
.faq-dropdown-options::-webkit-scrollbar {
    width: 8px;
}

.faq-dropdown-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.faq-dropdown-options::-webkit-scrollbar-thumb {
    background: rgba(250, 204, 21, 0.4);
    border-radius: 4px;
}

.faq-dropdown-options::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.6);
}

/* Native Select Styling */
.faq-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: var(--color-white);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.faq-select:hover,
.faq-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.faq-select option {
    background-color: #0F0F0F;
    color: var(--color-white);
    padding: 10px;
}

/* Custom Chevron Icon */
.faq-select-chevron {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ List */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.faq-block {
    display: none;
    /* Hidden by default */
    animation: fadeSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.faq-block.active {
    display: block;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    /* bg-card approx */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.faq-item.open {
    background-color: rgba(255, 255, 255, 0.1);
    /* bg-muted/50 approx */
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

.faq-item.open .faq-question {
    color: var(--color-white);
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    /* Ensure SVG centers */
    align-items: center;
    justify-content: center;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    color: var(--color-white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1rem;
}

.faq-answer-inner {
    padding-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Open state handled by JS adjusting max-height or adding a class that sets it to a large value (but transitioning height needs specific value)
   We found JS usually sets style.maxHeight = scrollHeight + 'px'
*/

/* FAQ CTA Box */
.faq-cta-box {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.3s ease;
}

.faq-cta-box:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-cta-text {
    color: var(--color-gray-400);
    margin: 0;
    font-size: 1rem;
}

.faq-cta-link {
    color: #facc15;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.faq-cta-link:hover {
    color: #818cf8;
    gap: 0.75rem;
}