/* ─────────────────────────────────────────
   SOLWORXS · FAQ DRAWER · FAQ.CSS
   Matches dark sci-fi theme of index.html
───────────────────────────────────────── */

/* ══════════════════════════════════════════
   OVERLAY
══════════════════════════════════════════ */
.faq-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(5, 8, 15, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.faq-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ══════════════════════════════════════════
   DRAWER
══════════════════════════════════════════ */
.faq-drawer {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1300;
    width: min(520px, calc(100vw - 32px));
    max-height: min(88vh, 780px);
    background: var(--surface, #0b1120);
    border: 1px solid rgba(59, 130, 246, .18);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    /* start: centered but invisible + scaled down */
    transform: translate(-50%, -50%) scale(.92);
    opacity: 0;
    pointer-events: none;
    transition:
        transform .38s cubic-bezier(.34, 1.3, .64, 1),
        opacity .28s ease;

    box-shadow:
        0 0 0 1px rgba(59, 130, 246, .1),
        0 32px 80px rgba(0, 0, 0, .7),
        0 0 60px rgba(59, 130, 246, .07);
}

.faq-drawer.open {
    transform: translateX(0);
}

/* Accent line on left edge */
.faq-drawer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, .6) 30%,
            rgba(34, 197, 94, .4) 70%,
            transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.faq-drawer.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* ══════════════════════════════════════════
   DRAWER HEADER
══════════════════════════════════════════ */
.faq-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    flex-shrink: 0;
    background: var(--surface2, #0f1929);
}

.faq-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Mini Sol in header */
.faq-sol-mini {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, #1e3a8a, #2563eb);
    border-radius: 13px;
    border: 2px solid rgba(59, 130, 246, .5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(59, 130, 246, .3);
    animation: fsolBob 2.5s ease-in-out infinite;
}

@keyframes fsolBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.fsol-antenna {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: #3b82f6;
}

.fsol-antenna::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 6px #3b82f6;
    animation: antG 1.2s ease-in-out infinite alternate;
}

@keyframes antG {
    from {
        box-shadow: 0 0 4px #3b82f6;
    }

    to {
        box-shadow: 0 0 12px #3b82f6, 0 0 20px rgba(59, 130, 246, .4);
    }
}

.fsol-eyes {
    display: flex;
    gap: 5px;
}

.fsol-mouth {
    width: 14px;
    height: 3px;
    border-radius: 0 0 6px 6px;
    border: 1.5px solid #3b82f6;
    border-top: none;
}

.faq-header-text h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e8eaf0;
    margin: 0;
}

.faq-header-text p {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0;
}

.faq-close-btn {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 9px;
    color: #64748b;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s, background .2s, border-color .2s;
    flex-shrink: 0;
}

.faq-close-btn:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, .3);
    background: rgba(239, 68, 68, .07);
}

/* ══════════════════════════════════════════
   SEARCH
══════════════════════════════════════════ */
.faq-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 18px 0;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 10px 14px;
    transition: border-color .2s, box-shadow .2s;
    flex-shrink: 0;
}

.faq-search-wrap:focus-within {
    border-color: rgba(59, 130, 246, .4);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .08);
}

.faq-search-wrap i {
    color: #64748b;
    font-size: 13px;
    flex-shrink: 0;
}

.faq-search-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #e8eaf0;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
}

.faq-search-wrap input::placeholder {
    color: #64748b;
}

.faq-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 13px;
    padding: 0;
    transition: color .2s;
}

.faq-search-clear:hover {
    color: #e8eaf0;
}

/* ══════════════════════════════════════════
   CATEGORY TABS
══════════════════════════════════════════ */
.faq-category-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 14px 18px 0;
    scrollbar-width: none;
    flex-shrink: 0;
}

.faq-category-tabs::-webkit-scrollbar {
    display: none;
}

.faq-cat-btn {
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, .08);
    background: transparent;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 12.5px;
    color: #64748b;
    transition: all .2s ease;
    flex-shrink: 0;
}

.faq-cat-btn:hover {
    border-color: rgba(59, 130, 246, .35);
    color: #3b82f6;
}

.faq-cat-btn.active {
    background: rgba(59, 130, 246, .15);
    border-color: rgba(59, 130, 246, .4);
    color: #3b82f6;
}

/* ══════════════════════════════════════════
   LOADING
══════════════════════════════════════════ */
.faq-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 24px;
    color: #64748b;
    font-size: 13.5px;
}

.faq-loading-dots {
    display: flex;
    gap: 6px;
}

.faq-loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    opacity: .4;
    animation: ldot 1.4s ease-in-out infinite;
}

.faq-loading-dots span:nth-child(2) {
    animation-delay: .2s;
}

.faq-loading-dots span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes ldot {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: .4;
    }

    40% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* skeleton bars */
.faq-skeleton {
    width: 100%;
    height: 52px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, .04) 25%,
            rgba(255, 255, 255, .08) 50%,
            rgba(255, 255, 255, .04) 75%);
    background-size: 200% 100%;
    border-radius: 12px;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

/* ══════════════════════════════════════════
   ERROR
══════════════════════════════════════════ */
.faq-error {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 24px;
    text-align: center;
    color: #64748b;
}

.faq-error i {
    font-size: 2rem;
    color: #ef4444;
    opacity: .7;
}

.faq-error p {
    font-size: 14px;
}

.faq-error button {
    margin-top: 8px;
    padding: 8px 20px;
    background: rgba(59, 130, 246, .1);
    border: 1px solid rgba(59, 130, 246, .3);
    border-radius: 999px;
    color: #3b82f6;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s;
}

.faq-error button:hover {
    background: rgba(59, 130, 246, .2);
}

/* ══════════════════════════════════════════
   FAQ CONTENT (scrollable)
══════════════════════════════════════════ */
.faq-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .08) transparent;
}

/* Category group */
.faq-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #64748b;
    padding: 0 2px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.faq-group-label i {
    color: #3b82f6;
    font-size: 10px;
}

/* Individual FAQ item */
.faq-item {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .25s;
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, .2);
}

.faq-item.open {
    border-color: rgba(59, 130, 246, .3);
}

.faq-question {
    width: 100%;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-question-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #c4cad8;
    line-height: 1.5;
    flex: 1;
    transition: color .2s;
}

.faq-item.open .faq-question-text {
    color: #3b82f6;
}

.faq-chevron {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 10px;
    flex-shrink: 0;
    transition: transform .3s ease, border-color .25s,
        background .25s, color .25s;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    border-color: rgba(59, 130, 246, .4);
    background: rgba(59, 130, 246, .15);
    color: #3b82f6;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .38s cubic-bezier(.4, 0, .2, 1);
    padding: 0 16px;
}

.faq-item.open .faq-answer {
    max-height: 600px;
}

.faq-answer-inner {
    padding: 4px 0 16px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.faq-answer-inner p {
    font-size: 13.5px;
    color: #8892a4;
    line-height: 1.75;
    margin: 0;
    padding-top: 12px;
}

.faq-answer-inner p+p {
    margin-top: 8px;
}

/* Search highlight */
.faq-highlight {
    background: rgba(59, 130, 246, .25);
    color: #93c5fd;
    border-radius: 2px;
    padding: 0 1px;
}

/* ══════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════ */
.faq-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 24px;
    text-align: center;
}

.faq-empty i {
    font-size: 2rem;
    color: #64748b;
}

.faq-empty p {
    font-size: 14px;
    color: #64748b;
}

.faq-empty small {
    font-size: 12px;
    color: #3d4e63;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.faq-drawer-footer {
    padding: 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, .02),
            rgba(59, 130, 246, .04));

    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

.faq-footer-text h4 {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #e8eaf0;
    margin-bottom: 6px;
}

.faq-footer-text p {
    font-size: 12.5px;
    line-height: 1.6;
    color: #64748b;
}

.faq-footer-actions {
    display: flex;
    gap: 10px;
}

.faq-secondary-btn,
.faq-primary-btn {
    flex: 1;
    height: 46px;
    border-radius: 14px;
    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;

    transition:
        transform .18s,
        filter .2s,
        border-color .2s;
}

.faq-secondary-btn {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #cbd5e1;
}

.faq-secondary-btn:hover {
    border-color: rgba(59, 130, 246, .35);
    color: #3b82f6;
}

.faq-primary-btn {
    background:
        linear-gradient(135deg,
            #2563eb,
            #3b82f6);

    color: white;

    box-shadow:
        0 8px 24px rgba(59, 130, 246, .28);
}

.faq-primary-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.faq-drawer-footer p {
    font-size: 12.5px;
    color: #64748b;
}

.faq-footer-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    transition: filter .2s, transform .15s;
    box-shadow: 0 4px 14px rgba(59, 130, 246, .3);
}

.faq-footer-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   SOL FAQ HINT BUBBLE
   (appears near Sol after modal closes)
══════════════════════════════════════════ */
.sol-faq-hint {
    position: fixed;
    z-index: 1100;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    padding: 8px 14px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(.9);
    transition: opacity .4s ease, transform .4s ease;
    box-shadow: 0 6px 20px rgba(59, 130, 246, .4);
}

.sol-faq-hint.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hint-tail {
    position: absolute;
    bottom: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #3b82f6;
    transform: rotate(45deg);
    border-radius: 2px;
}

/* ══════════════════════════════════════════
   CONTINUE FAQs DROPDOWN
══════════════════════════════════════════ */
.faq-continue-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s cubic-bezier(.4, 0, .2, 1);
    border-top: 0px solid transparent;
}

.faq-continue-dropdown.open {
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .08) transparent;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

/* ══════════════════════════════════════════
   STICKY SEARCH + FILTER HEADER
══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   STICKY SEARCH + FILTER HEADER
══════════════════════════════════════════ */
.faq-sticky-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface, #0b1120);
    box-shadow: 0 4px 20px rgba(5, 8, 15, .7);
    flex-shrink: 0;
}

.faq-continue-inner {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    position: static;
    top: unset;
    z-index: unset;
}

.faq-continue-inner i {
    color: #64748b;
    font-size: 13px;
    flex-shrink: 0;
}

.faq-continue-inner input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #e8eaf0;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
}

.faq-continue-inner input::placeholder {
    color: #64748b;
}

.faq-continue-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 13px;
    padding: 0;
    transition: color .2s;
    display: none;
}

.faq-continue-clear:hover {
    color: #e8eaf0;
}

/* ── Tabs row with arrow buttons ── */
.faq-tabs-row {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: var(--surface, #0b1120);
    position: relative;
}

.faq-tabs-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 100%;
    min-height: 42px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s, background .2s;
    z-index: 1;
}

.faq-tabs-arrow:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, .06);
}

.faq-tabs-arrow-left {
    border-right: 1px solid rgba(255, 255, 255, .06);
}

.faq-tabs-arrow-right {
    border-left: 1px solid rgba(255, 255, 255, .06);
}

.faq-tabs-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.faq-category-tabs {
    flex: 1;
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 12px;
    scrollbar-width: none;
    flex-shrink: 0;
    scroll-behavior: smooth;
}

.faq-category-tabs::-webkit-scrollbar {
    display: none;
}

.faq-cat-btn {
    padding: 5px 13px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, .08);
    background: transparent;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 12.5px;
    color: #64748b;
    transition: all .2s ease;
    flex-shrink: 0;
}

.faq-cat-btn:hover {
    border-color: rgba(59, 130, 246, .35);
    color: #3b82f6;
}

.faq-cat-btn.active {
    background: rgba(59, 130, 246, .15);
    border-color: rgba(59, 130, 246, .4);
    color: #3b82f6;
}

.faq-continue-inner i {
    color: var(--muted);
    font-size: 13px;
    flex-shrink: 0;
}

.faq-continue-inner input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
}

.faq-continue-inner input::placeholder {
    color: var(--muted);
}

.faq-continue-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 13px;
    padding: 0;
    transition: color .2s;
    display: none;
}

.faq-continue-clear:hover {
    color: var(--text);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 520px) {
    /* .faq-drawer {
        width: 100vw;
        border-left: none;
        border-radius: 0;
    } */

    .faq-drawer {
        width: calc(100vw - 24px);
        max-height: 92vh;
        border-radius: 18px;
    }

    .faq-drawer::before {
        display: none;
    }
}

/* ══════════════════════════════════════════
   SETTINGS MODAL & BUTTON
══════════════════════════════════════════ */

/* Settings Button */
.faq-settings-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all .2s ease;
}

.faq-settings-btn:hover {
    border-color: rgba(59, 130, 246, .35);
    color: #3b82f6;
    background: rgba(59, 130, 246, .1);
    transform: rotate(45deg);
}

.faq-settings-btn:active {
    transform: rotate(45deg) scale(0.95);
}

/* Settings Overlay */
.settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(5, 8, 15, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.settings-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1410;
    width: min(480px, calc(100vw - 32px));
    max-height: min(85vh, 700px);
    background: var(--surface, #0b1120);
    border: 1px solid rgba(59, 130, 246, .18);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    
    transform: translate(-50%, -50%) scale(.92);
    opacity: 0;
    pointer-events: none;
    transition:
        transform .38s cubic-bezier(.34, 1.3, .64, 1),
        opacity .28s ease;
    
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, .1),
        0 32px 80px rgba(0, 0, 0, .7),
        0 0 60px rgba(59, 130, 246, .07);
}

.settings-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, .6) 30%,
            rgba(34, 197, 94, .4) 70%,
            transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.settings-modal.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Modal Header */
.settings-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    flex-shrink: 0;
    background: var(--surface2, #0f1929);
}

.settings-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #e8eaf0;
    margin: 0;
}

.settings-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all .2s ease;
}

.settings-close-btn:hover {
    background: rgba(255, 255, 255, .05);
    color: #3b82f6;
}

/* Modal Content */
.settings-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #e8eaf0;
    font-size: 14px;
}

.settings-group label i {
    color: #3b82f6;
}

/* Speed Control */
.speed-display {
    background: rgba(59, 130, 246, .1);
    border: 1px solid rgba(59, 130, 246, .2);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    font-size: 13px;
    color: #3b82f6;
    font-weight: 600;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(59, 130, 246, .2));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(59, 130, 246, .5);
    border: 2px solid rgba(59, 130, 246, .8);
    transition: box-shadow .2s;
}

.slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, .8);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(59, 130, 246, .5);
    border: 2px solid rgba(59, 130, 246, .8);
    transition: box-shadow .2s;
}

.slider::-moz-range-thumb:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, .8);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

/* Color Presets */
.color-presets {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.color-preset {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, .1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    position: relative;
}

.color-preset:hover {
    border-color: rgba(255, 255, 255, .3);
    transform: scale(1.05);
}

.color-preset.active {
    border-color: rgba(255, 255, 255, .8);
    box-shadow: 0 0 16px currentColor;
}

.color-preset i {
    color: white;
    font-size: 14px;
    text-shadow: 0 0 4px rgba(0, 0, 0, .5);
}

/* Custom Color Picker */
.custom-color-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(59, 130, 246, .08);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, .15);
}

#botColorPicker {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.custom-color-row label {
    flex: 1;
    margin: 0;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 13px;
}

/* Font Selector */
#faqFontSelector {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
}

#faqFontSelector:hover {
    border-color: rgba(59, 130, 246, .35);
    background: rgba(59, 130, 246, .05);
}

#faqFontSelector:focus {
    outline: none;
    border-color: rgba(59, 130, 246, .5);
    background: rgba(59, 130, 246, .1);
}

#faqFontSelector option {
    background: #0b1120;
    color: #cbd5e1;
}

/* Modal Footer */
.settings-modal-footer {
    padding: 16px 22px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, .01),
            rgba(59, 130, 246, .02));
    flex-shrink: 0;
}

.settings-reset-btn {
    width: 100%;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    background: rgba(220, 38, 38, .1);
    color: #ef4444;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s ease;
}

.settings-reset-btn:hover {
    background: rgba(220, 38, 38, .2);
    border-color: rgba(220, 38, 38, .3);
    transform: translateY(-1px);
}

/* Scrollbar Styling for Modal Content */
.settings-modal-content::-webkit-scrollbar {
    width: 6px;
}

.settings-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.settings-modal-content::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, .3);
    border-radius: 3px;
}

.settings-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, .5);
}

/* Responsive Settings Modal */
@media (max-width: 520px) {
    .settings-modal {
        width: calc(100vw - 24px);
        max-height: 90vh;
        border-radius: 18px;
    }

    .settings-modal::before {
        display: none;
    }

    .color-presets {
        grid-template-columns: repeat(5, 1fr);
    }

    .settings-modal-content {
        padding: 16px;
        gap: 20px;
    }
}
