.faq-page {
    padding-bottom: 3.5rem;
}

.faq-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(1, 119, 255, 0.35), transparent 42%),
        radial-gradient(circle at 88% 10%, rgba(15, 23, 42, 0.45), transparent 40%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0b1220 100%);
    color: #fff;
    padding: 3.25rem 0 3rem;
}

.faq-hero--compact {
    padding: 2.25rem 0 2rem;
}

.faq-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.faq-hero h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.6rem, 3.5vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.faq-search {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.45rem 0.45rem 1rem;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.faq-search i {
    color: #94a3b8;
}

.faq-search input {
    border: 0;
    outline: none;
    font: inherit;
    font-size: 1rem;
    min-width: 0;
    background: transparent;
    color: #0f172a;
}

.faq-search .btn {
    border-radius: 999px;
    padding-inline: 1.15rem;
}

.faq-body {
    margin-top: 1.5rem;
}

.faq-section-head {
    margin: 0.5rem 0 1.25rem;
}

.faq-section-head--center {
    text-align: center;
}

.faq-section-head h2 {
    margin: 0.35rem 0 0;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.faq-section-head--center h2 {
    justify-content: center;
}

.faq-section-lead {
    margin: 0.45rem 0 0;
    color: var(--text-secondary);
}

.faq-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
}

.faq-back:hover {
    color: var(--primary-hover);
}

.faq-categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.faq-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    padding: 1.6rem 1.1rem 1.35rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.faq-cat-card:hover {
    border-color: #bfd8ff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.faq-cat-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.45rem;
}

.faq-cat-card strong {
    font-size: 1.05rem;
}

.faq-cat-hint {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.faq-topic-list {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-topic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.faq-topic-row:last-child {
    border-bottom: 0;
}

.faq-topic-row:hover {
    background: var(--primary-light);
    color: var(--text);
}

.faq-topic-row strong {
    display: block;
    font-size: 1rem;
}

.faq-topic-row small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.faq-topic-row > i {
    color: var(--primary);
    font-size: 0.85rem;
}

.faq-role-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.faq-role-tab {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.faq-role-tab.is-active,
.faq-role-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.75rem;
    align-items: center;
    padding: 1rem 1.15rem;
    position: relative;
    padding-right: 2.75rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item-q {
    font-weight: 700;
    line-height: 1.35;
}

.faq-item-meta {
    grid-column: 1 / -1;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.faq-role-badge {
    justify-self: end;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
}

.faq-role-badge--seller {
    background: #ecfdf5;
    color: #047857;
}

.faq-item-a {
    padding: 0 1.15rem 1.1rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.faq-item-a p {
    margin: 0;
}

.faq-item-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.faq-empty {
    color: var(--text-muted);
    padding: 1rem 0;
}

.faq-support {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-light), #fff);
    border: 1px solid #d6e7ff;
}

.faq-support h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.faq-support p {
    margin: 0;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .faq-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-support {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .faq-search {
        grid-template-columns: auto 1fr;
        border-radius: 16px;
        padding: 0.65rem 0.75rem;
    }

    .faq-search .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .faq-categories {
        grid-template-columns: 1fr;
    }

    .faq-item summary {
        grid-template-columns: 1fr;
    }

    .faq-role-badge {
        justify-self: start;
    }
}
