:root {
    --faq-bg: #0b0b0b;
    --faq-panel: #151515;
    --faq-panel-light: #1a1a1a;
    --faq-line: #2a2a2a;
    --faq-text: #ffffff;
    --faq-muted: #a8a8a8;
    --faq-orange: #f97316;
    --faq-orange-light: #ff9a50;
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: var(--faq-bg); color: var(--faq-text); font-family: Inter, sans-serif; display: flex; flex-direction: column; }
body > main.faq-page { flex: 1 0 auto; width: 100%; min-height: auto; margin: 0; padding-bottom: 80px; background: radial-gradient(circle at 8% 38%, rgba(249,115,22,.07), transparent 24%), var(--faq-bg); }
body > .main-footer { position: relative; z-index: 2; flex: 0 0 auto; clear: both; width: 100%; margin-top: 0; }
.faq-shell { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }

.faq-hero { position: relative; overflow: hidden; padding: 105px 0 95px; border-bottom: 1px solid var(--faq-line); text-align: center; background: linear-gradient(145deg, #090909, #18110d 55%, #101010); }
.faq-hero::before { content: ''; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent); }
.faq-hero .faq-shell { position: relative; }
.faq-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 15px; border: 1px solid rgba(249,115,22,.35); border-radius: 999px; color: var(--faq-orange-light); background: rgba(249,115,22,.09); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.faq-hero h1 { margin: 0 0 16px; font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: 1.08; letter-spacing: -.045em; }
.faq-hero > .faq-shell > p { max-width: 680px; margin: 0 auto 30px; color: var(--faq-muted); font-size: 1.04rem; line-height: 1.7; }
.faq-search { display: flex; align-items: center; gap: 12px; width: min(660px, 100%); min-height: 58px; margin: auto; padding: 0 18px; border: 1px solid #363636; border-radius: 15px; background: rgba(16,16,16,.9); box-shadow: 0 18px 45px rgba(0,0,0,.25); }
.faq-search:focus-within { border-color: var(--faq-orange); box-shadow: 0 0 0 3px rgba(249,115,22,.12), 0 18px 45px rgba(0,0,0,.25); }
.faq-search > i { color: var(--faq-orange); }
.faq-search input { flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; color: white; background: transparent; font: inherit; }
.faq-search input::placeholder { color: #737373; }
.faq-search button { width: 34px; height: 34px; border: 0; border-radius: 8px; color: #aaa; background: #222; cursor: pointer; }

.faq-content { margin-top: -32px; position: relative; }
.category-tabs { display: flex; gap: 9px; padding: 12px; border: 1px solid var(--faq-line); border-radius: 16px; background: rgba(20,20,20,.96); box-shadow: 0 16px 45px rgba(0,0,0,.25); overflow-x: auto; scrollbar-width: thin; }
.category-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 14px; border: 1px solid transparent; border-radius: 10px; color: #bcbcbc; background: transparent; cursor: pointer; font: 700 .84rem Inter, sans-serif; transition: .2s ease; }
.category-tab:hover { color: white; background: #202020; }
.category-tab.active { border-color: rgba(249,115,22,.35); color: var(--faq-orange-light); background: rgba(249,115,22,.12); }
.category-tab i { color: var(--faq-orange); }

.faq-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 34px 0 20px; }
.faq-toolbar span { color: white; font-size: 1.15rem; font-weight: 800; }
.faq-toolbar p { margin: 5px 0 0; color: var(--faq-muted); font-size: .88rem; }
.faq-toolbar button { padding: 10px 13px; border: 1px solid var(--faq-line); border-radius: 9px; color: #bbb; background: #151515; cursor: pointer; font-weight: 700; }
.faq-toolbar button:hover { border-color: var(--faq-orange); color: var(--faq-orange-light); }

.faq-sections { display: grid; gap: 25px; }
.faq-category { padding: clamp(20px, 4vw, 31px); border: 1px solid var(--faq-line); border-radius: 18px; background: linear-gradient(145deg, #171717, #131313); }
.category-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 21px; }
.category-icon { display: grid; place-items: center; flex: 0 0 45px; height: 45px; border: 1px solid rgba(249,115,22,.3); border-radius: 12px; color: var(--faq-orange); background: rgba(249,115,22,.1); }
.category-heading h2 { margin: 0 0 4px; font-size: 1.25rem; }
.category-heading p { margin: 0; color: var(--faq-muted); font-size: .83rem; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid #2c2c2c; border-radius: 11px; background: #101010; overflow: hidden; transition: border-color .2s ease; }
.faq-item.open { border-color: rgba(249,115,22,.48); }
.faq-question { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 15px 17px; border: 0; color: #ededed; background: transparent; cursor: pointer; text-align: left; font: 700 .93rem/1.5 Inter, sans-serif; }
.question-number { flex: 0 0 27px; color: var(--faq-orange); font-size: .76rem; }
.question-text { flex: 1; }
.faq-question > i { flex: 0 0 auto; color: #777; transition: transform .22s ease, color .22s ease; }
.faq-item.open .faq-question > i { color: var(--faq-orange); transform: rotate(180deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { min-height: 0; overflow: hidden; }
.faq-answer p { margin: 0; padding: 0 18px 18px 58px; color: var(--faq-muted); font-size: .9rem; line-height: 1.75; }
mark { padding: 1px 2px; border-radius: 3px; color: #fff; background: rgba(249,115,22,.45); }

.empty-state { padding: 70px 20px; border: 1px dashed #343434; border-radius: 18px; text-align: center; background: #121212; }
.empty-state > i { margin-bottom: 17px; color: var(--faq-orange); font-size: 2.3rem; }
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { margin: 0 0 22px; color: var(--faq-muted); }
.empty-state button { padding: 11px 18px; border: 0; border-radius: 9px; color: white; background: var(--faq-orange); cursor: pointer; font-weight: 800; }

.faq-help { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 28px; padding: 25px; border: 1px solid rgba(37,211,102,.25); border-radius: 16px; background: linear-gradient(135deg, rgba(37,211,102,.08), #141414); }
.help-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; color: #4ade80; background: rgba(37,211,102,.12); font-size: 1.6rem; }
.faq-help h2 { margin: 0 0 5px; font-size: 1.13rem; }
.faq-help p { margin: 0; color: var(--faq-muted); font-size: .87rem; line-height: 1.55; }
.faq-help a { display: inline-flex; align-items: center; gap: 9px; padding: 12px 17px; border-radius: 9px; color: white; background: #178a45; text-decoration: none; font-weight: 800; font-size: .85rem; }

@media (max-width: 1180px) { body > main.faq-page { padding-top: 0 !important; } .faq-hero { padding-top: 85px; } }
@media (max-width: 720px) {
    .faq-hero { padding: 70px 0 76px; }
    .faq-content { margin-top: -25px; }
    .faq-toolbar { align-items: flex-start; }
    .faq-toolbar button { font-size: 0; }
    .faq-toolbar button i { font-size: .85rem; }
    .faq-answer p { padding-left: 17px; }
    .faq-help { grid-template-columns: auto 1fr; }
    .faq-help a { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 480px) {
    .faq-shell { width: min(100% - 24px, 1120px); }
    .faq-hero h1 { font-size: 2.25rem; }
    .faq-category { padding: 18px 14px; }
    .faq-question { padding: 14px 13px; font-size: .88rem; }
    .question-number { display: none; }
}
