.faq-section {
    position: relative;
    overflow: hidden;
    padding: 140px 0;
    border-top: 1px solid var(--border);
    background:
        linear-gradient(
            180deg,
            rgba(4, 9, 18, 0.98),
            rgba(7, 17, 31, 0.76)
        );
}

.faq-glow {
    position: absolute;
    top: 10%;
    left: -180px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    filter: blur(130px);
    pointer-events: none;
}

.faq-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
    align-items: start;
    gap: 76px;
}

.faq-heading {
    position: sticky;
    top: 120px;
}

.faq-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.058em;
}

.faq-heading h2 span {
    display: block;
    background:
        linear-gradient(
            90deg,
            #ffffff,
            #60a5fa 62%
        );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.faq-heading > p {
    max-width: 560px;
    margin: 26px 0 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.faq-support-card {
    margin-top: 34px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background:
        linear-gradient(
            145deg,
            rgba(15, 27, 46, 0.76),
            rgba(5, 13, 25, 0.84)
        );
}

.faq-support-card span,
.faq-support-card strong {
    display: block;
}

.faq-support-card span {
    color: var(--text-soft);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.faq-support-card strong {
    margin: 10px 0 20px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.45;
}

.faq-support-card .button {
    width: 100%;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background:
        linear-gradient(
            150deg,
            rgba(15, 27, 46, 0.78),
            rgba(5, 13, 25, 0.86)
        );
    transition:
        border-color 200ms ease,
        transform 200ms ease;
}

.faq-item:hover {
    border-color: var(--border-bright);
}

.faq-item[open] {
    border-color: rgba(94, 234, 212, 0.22);
}

.faq-item summary {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 0 22px;
    cursor: pointer;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary > .faq-toggle {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1rem;
    transition: transform 200ms ease;
}

.faq-item[open] summary > .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 22px 22px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
}

.security-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 28px;
    padding: 24px;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: var(--radius-large);
    background: rgba(30, 64, 175, 0.08);
}

.security-disclaimer-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
    font-weight: 900;
}

.security-disclaimer span {
    display: block;
    margin-bottom: 7px;
    color: #93c5fd;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.security-disclaimer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.7;
}

@media (max-width: 950px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .faq-heading {
        position: static;
    }
}

@media (max-width: 640px) {
    .faq-section {
        padding: 95px 0;
    }

    .faq-item summary {
        min-height: 70px;
        padding: 0 18px;
        font-size: 0.92rem;
    }

    .faq-answer {
        padding: 0 18px 18px;
    }

    .security-disclaimer {
        padding: 20px;
    }
}

/* =======================================================
   FAQ FINAL POLISH
======================================================= */

.faq-item summary {
    transition:
        color 180ms ease,
        background 180ms ease;
}

.faq-item summary:hover {
    background: rgba(255, 255, 255, 0.018);
}

.faq-item[open] summary {
    color: #ffffff;
}

.faq-answer {
    animation: faqAnswerIn 220ms ease both;
}

.faq-support-card {
    box-shadow:
        0 24px 65px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@keyframes faqAnswerIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

@media (max-width: 640px) {
    .faq-heading h2 {
        font-size: clamp(2.8rem, 13vw, 4.2rem);
    }

    .faq-support-card {
        padding: 20px;
    }

    .faq-item summary {
        min-height: 68px;
        gap: 14px;
    }

    .faq-item summary > .faq-toggle {
        width: 29px;
        height: 29px;
    }
}

/* =======================================================
   FAQ PREMIUM V2
======================================================= */

.faq-heading-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.02);
}

.faq-heading-note p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.7rem;
}

.faq-note-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 13px rgba(94, 234, 212, 0.7);
}

.faq-item {
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    transform: scaleY(0);
    transform-origin: center;
    border-radius: 999px;
    background:
        linear-gradient(
            to bottom,
            var(--accent),
            var(--primary-bright)
        );
    transition: transform 220ms ease;
}

.faq-item[open]::before {
    transform: scaleY(1);
}

.faq-item summary {
    min-height: 88px;
    padding: 18px 22px 18px 25px;
    user-select: none;
}

.faq-question-copy {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
}

.faq-question-copy small {
    color: var(--text-soft);
    font-family: var(--font-body);
    font-size: 0.57rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.faq-item[open] .faq-question-copy small {
    color: var(--accent);
}

.faq-toggle {
    width: 38px;
    height: 38px;
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
    transition:
        transform 240ms ease,
        border-color 240ms ease,
        background 240ms ease,
        box-shadow 240ms ease;
}

.faq-toggle i,
.faq-toggle b {
    width: 13px;
    height: 2px;
    position: absolute;
    border-radius: 999px;
    background: var(--accent);
    transition:
        opacity 220ms ease,
        transform 220ms ease;
}

.faq-toggle b {
    transform: rotate(90deg);
}

.faq-item[open] .faq-toggle {
    transform: rotate(180deg);
    border-color: rgba(94, 234, 212, 0.3);
    background: rgba(20, 184, 166, 0.1);
    box-shadow: 0 0 25px rgba(20, 184, 166, 0.08);
}

.faq-item[open] .faq-toggle b {
    opacity: 0;
    transform: rotate(90deg) scaleX(0);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    padding: 0 25px;
    animation: none;
    transition:
        grid-template-rows 280ms ease,
        padding-bottom 280ms ease;
}

.faq-item[open] .faq-answer {
    grid-template-rows: 1fr;
    padding-bottom: 24px;
}

.faq-answer-inner {
    min-height: 0;
    overflow: hidden;
}

.faq-answer-inner p {
    max-width: 720px;
    padding-top: 3px;
}

.faq-help {
    margin-top: 85px;
}

.faq-help-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
}

.faq-help-heading span {
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.faq-help-heading h3 {
    max-width: 620px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.faq-help-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.faq-help-card {
    width: 100%;
    min-height: 245px;
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background:
        linear-gradient(
            150deg,
            rgba(15, 27, 46, 0.8),
            rgba(5, 13, 25, 0.88)
        );
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.faq-help-card::before {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -100px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    filter: blur(65px);
    opacity: 0;
    transition: opacity 220ms ease;
}

.faq-help-docs::before {
    background: rgba(37, 99, 235, 0.35);
}

.faq-help-contact::before {
    background: rgba(20, 184, 166, 0.32);
}

.faq-help-report::before {
    background: rgba(245, 158, 11, 0.25);
}

.faq-help-card:hover {
    transform: translateY(-7px);
    border-color: var(--border-bright);
    box-shadow:
        0 34px 85px rgba(0, 0, 0, 0.34),
        0 0 45px rgba(37, 99, 235, 0.05);
}

.faq-help-card:hover::before {
    opacity: 1;
}

.faq-help-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    margin-bottom: 30px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
}

.faq-help-card div {
    position: relative;
    z-index: 1;
}

.faq-help-card small,
.faq-help-card strong,
.faq-help-card p {
    display: block;
}

.faq-help-card small {
    color: var(--text-soft);
    font-size: 0.57rem;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.faq-help-card strong {
    margin-top: 9px;
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.faq-help-card p {
    margin: 13px 0 0;
    color: var(--text-secondary);
    font-size: 0.79rem;
    line-height: 1.65;
}

.faq-help-arrow {
    position: relative;
    z-index: 1;
    margin-top: auto;
    align-self: flex-end;
    color: var(--accent);
    font-size: 1.25rem;
    transition: transform 180ms ease;
}

.faq-help-card:hover .faq-help-arrow {
    transform: translateX(5px);
}

.security-disclaimer {
    margin-top: 24px;
}

@media (max-width: 900px) {
    .faq-help-grid {
        grid-template-columns: 1fr;
    }

    .faq-help-card {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .faq-help {
        margin-top: 60px;
    }

    .faq-help-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .faq-item summary {
        min-height: 82px;
        padding: 16px 17px 16px 20px;
    }

    .faq-toggle {
        width: 34px;
        height: 34px;
    }

    .faq-answer {
        padding-inline: 20px;
    }

    .faq-help-card {
        padding: 21px;
    }
}

/* =======================================================
   FAQ QUESTION TEXT ROTATION FIX
======================================================= */

.faq-item summary .faq-question-copy,
.faq-item[open] summary .faq-question-copy {
    width: auto;
    height: auto;
    display: flex;
    align-items: flex-start;
    flex: 1;
    flex-direction: column;
    gap: 7px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-primary);
    transform: none !important;
    transition: color 180ms ease;
}

.faq-item summary .faq-question-copy small,
.faq-item[open] summary .faq-question-copy small {
    width: auto;
    height: auto;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    transform: none !important;
}

.faq-item summary > .faq-toggle,
.faq-item[open] summary > .faq-toggle {
    display: grid;
    flex: 0 0 auto;
}
