/* ===== FAQ Page ===== */

.faq-page { display: flex; flex-direction: column; min-height: 100vh; }

/* Header */
.faq-header {
  padding: clamp(16px, 3vw, 24px) var(--page-px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.faq-header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.faq-header-nav { display: flex; align-items: center; gap: 16px; }
.faq-header-nav a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1); transition: border-color 0.2s;
}
.faq-header-nav a:hover { border-color: var(--brand); }
.faq-header-breadcrumb { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 4px; text-transform: uppercase; }

/* Lang menu */
.faq-lang-wrap { position: relative; }
.faq-lang-trigger {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--brand); letter-spacing: 4px; text-transform: uppercase;
  padding: 8px; cursor: pointer;
}
.faq-lang-trigger:hover { opacity: 0.8; }
.faq-lang-menu {
  display: none; position: absolute; right: 0; top: 100%; margin-top: 8px;
  width: 224px; background: rgba(0,0,0,0.95); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5); z-index: 220;
}
.faq-lang-menu.open { display: block; }
.lang-menu-item {
  display: block; width: 100%; text-align: left;
  padding: 12px 16px; color: rgba(255,255,255,0.7);
  font-size: 13px; transition: all 0.2s;
}
.lang-menu-item:hover { background: rgba(255,255,255,0.05); color: #fff; }

.faq-header-bottom { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.faq-header h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900; font-style: italic;
  letter-spacing: -0.03em; text-transform: uppercase;
}
.faq-header h1 span { color: var(--brand); }
.faq-header-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Risk trigger button */
.faq-risk-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(var(--brand-rgb), 0.1);
  border: 1px solid rgba(var(--brand-rgb), 0.4);
  font-family: var(--font-mono); font-size: 10px;
  color: var(--brand); letter-spacing: 4px; text-transform: uppercase;
  transition: all 0.2s; cursor: pointer;
}
.faq-risk-btn:hover { border-color: var(--brand); background: rgba(var(--brand-rgb), 0.15); }
.faq-new-badge {
  margin-left: 4px; padding: 2px 8px;
  font-size: 8px; letter-spacing: 3px;
  border: 1px solid rgba(var(--brand-rgb), 0.3);
  color: rgba(var(--brand-rgb), 0.8);
  background: rgba(var(--brand-rgb), 0.05);
}

/* Search */
.faq-search-wrap { position: relative; width: min(100%, 384px); }
.faq-search-input {
  width: 100%; padding: 12px 40px 12px 16px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); font-size: 14px; font-style: italic;
  outline: none; transition: border-color 0.2s;
}
.faq-search-input:focus { border-color: var(--brand); }

/* Body */
.faq-body { display: flex; flex: 1; min-height: 0; }

/* Category sidebar */
.faq-aside {
  width: 280px; flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 32px; display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.faq-aside-label {
  font-family: var(--font-mono); font-size: 9px;
  color: rgba(255,255,255,0.2); letter-spacing: 5px;
  text-transform: uppercase; margin-bottom: 24px; margin-left: 16px;
}
.category-item {
  position: relative; padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; margin-left: 16px;
  transition: all 0.3s;
}
.category-item:hover { border-color: rgba(var(--brand-rgb), 0.4); }
.category-item.active {
  background: linear-gradient(0deg, rgba(var(--brand-rgb),0.10), rgba(var(--brand-rgb),0.10)), rgba(15,15,15,0.6);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), 0.85), 0 0 0 1px rgba(var(--brand-rgb), 0.20), 0 0 22px rgba(var(--brand-rgb), 0.10);
}
.category-item.active::before {
  content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 1px;
  background: var(--brand);
}
.category-name { font-weight: 900; font-style: italic; font-size: 14px; }
.category-item i { opacity: 0.4; transition: opacity 0.2s; }
.category-item:hover i { opacity: 1; }
.category-item.active i { opacity: 1; color: var(--brand); }

.faq-aside-status {
  margin-top: auto; margin-left: 16px;
  padding: 24px; background: rgba(var(--brand-rgb), 0.05);
  border: 1px solid rgba(var(--brand-rgb), 0.1);
}

/* Mobile category tabs */
.faq-mobile-tabs {
  display: none; /* shown on mobile */
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 12px var(--page-px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  gap: 8px; white-space: nowrap;
}
.faq-mobile-tabs::-webkit-scrollbar { display: none; }
.faq-tab {
  display: inline-block; padding: 8px 16px;
  font-size: 13px; font-weight: 700; font-style: italic;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  transition: all 0.2s; cursor: pointer; white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.faq-tab.active {
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 12px rgba(var(--brand-rgb), 0.15);
}

/* FAQ main */
.faq-main {
  flex: 1; padding: clamp(24px, 4vw, 48px); overflow-y: auto; min-height: 0;
}
.faq-stream-label {
  display: flex; align-items: center; gap: 16px; margin-bottom: 48px;
}
.faq-stream-label .line { height: 1px; flex: 1; background: rgba(255,255,255,0.05); }
.faq-stream-label span {
  font-family: var(--font-mono); font-size: 10px;
  color: rgba(255,255,255,0.2); text-transform: uppercase;
}

/* FAQ card */
.faq-card {
  padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s;
}
.faq-card:hover { background: rgba(255,255,255,0.02); }
.faq-card-inner { display: flex; align-items: flex-start; gap: 24px; }
.faq-card-num {
  display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
}
.faq-card-num span {
  font-family: var(--font-mono); font-size: 18px; color: var(--brand); margin-bottom: 8px;
}
.faq-card-num .line { width: 1px; height: 48px; background: rgba(255,255,255,0.1); transition: background 0.3s; }
.faq-card:hover .faq-card-num .line { background: rgba(var(--brand-rgb), 0.4); }
.faq-card-body { flex: 1; min-width: 0; }
.faq-card-q {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 900; font-style: italic;
  margin-bottom: 16px; transition: color 0.3s;
}
.faq-card:hover .faq-card-q { color: var(--brand); }
.faq-card-a {
  padding: 24px; background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.5); font-size: 16px;
  line-height: 1.6; font-style: italic;
}

/* Risk overlay & drawer */
.faq-risk-overlay {
  position: fixed; inset: 0; z-index: 180;
  background: rgba(0,0,0,0.18); backdrop-filter: blur(0);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, backdrop-filter 0.25s ease;
}
.faq-risk-overlay.active {
  opacity: 1; visibility: visible;
  backdrop-filter: blur(10px); background: rgba(0,0,0,0.35);
}
.faq-risk-drawer {
  position: fixed; top: 0; right: 0; height: 100%;
  width: min(520px, 90vw); z-index: 200;
  background: #050505; border-left: 1px solid rgba(255,255,255,0.1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  transform: translateX(calc(100% + 40px));
  opacity: 0; pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.77,0,0.175,1), opacity 0.2s ease;
}
.faq-risk-drawer.active {
  transform: translateX(0); opacity: 1; pointer-events: auto;
}
.faq-risk-drawer-header {
  padding: clamp(24px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.faq-risk-drawer-body {
  flex: 1; overflow-y: auto; padding: 40px; display: flex; flex-direction: column; gap: 24px;
}
.faq-risk-item { padding: 24px; background: rgba(255,255,255,0.02); }
.faq-risk-item-title {
  font-family: var(--font-mono); font-size: 10px; color: var(--brand);
  text-transform: uppercase; letter-spacing: 4px; margin-bottom: 12px;
}
.faq-risk-item-desc { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.6; font-style: italic; }
.faq-risk-drawer-footer {
  padding: 32px 40px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 10px; color: rgba(255,255,255,0.35); font-style: italic; line-height: 1.6;
}
.faq-risk-close {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; cursor: pointer;
}
.faq-risk-close:hover { border-color: rgba(var(--brand-rgb), 0.6); background: rgba(255,255,255,0.05); }

/* Footer */
.faq-footer {
  padding: 0 clamp(24px, 3vw, 48px) clamp(16px, 2vw, 24px);
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; opacity: 0.3; flex-shrink: 0;
}
.faq-footer-cert { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 4px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .faq-aside { display: none; }
  .faq-mobile-tabs { display: flex; }
  .faq-header-bottom { flex-direction: column; align-items: flex-start; }
  .faq-header-actions { width: 100%; flex-direction: column; }
  .faq-search-wrap { width: 100%; }
  .faq-header h1 { font-size: 28px; }
  .faq-card-inner { gap: 16px; }
  .faq-card-num span { font-size: 14px; }
  .faq-card-a { padding: 16px; }
}
