/* ─── VARIABLES ──────────────────────────────────────────── */
:root {
  --bg: #f0eef8;
  --bg-card: #ffffff;
  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(142, 45, 226, 0.3);
  --accent: #8e2de2;
  --accent-soft: rgba(142, 45, 226, 0.08);
  --accent-mid: rgba(142, 45, 226, 0.25);
  --accent-light: #9b3cf0;
  --accent-glow: rgba(142, 45, 226, 0.25);
  --text: #1a1425;
  --text-sub: #5a5370;
  --text-muted: #a09ab8;
  --header-bg: #0e0e11;
  --header-text: #f0eef6;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover:
    0 2px 6px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(142, 45, 226, 0.1);
}

/* ─── RESET + BASE ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow: hidden;
}

/* ─── HEADER ─────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  height: 60px;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 100;
}

.header-wordmark {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.home-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.home-btn:hover {
  border-color: rgba(176, 106, 255, 0.4);
  background: rgba(142, 45, 226, 0.15);
  color: #fff;
}

/* ─── TAB NAV ────────────────────────────────────────────── */
.tab-nav-wrap {
  position: sticky;
  top: 60px;
  z-index: 90;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}

.tab-nav {
  display: flex;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: "DM Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.22s;
  position: relative;
  white-space: nowrap;
}
.tab-btn svg {
  opacity: 0.55;
  transition: opacity 0.22s;
}
.tab-btn:hover {
  color: var(--text);
}
.tab-btn:hover svg {
  opacity: 0.8;
}
.tab-btn.active {
  color: var(--accent);
}
.tab-btn.active svg {
  opacity: 1;
  stroke: var(--accent);
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #b06aff);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 8px var(--accent-glow);
  transition:
    left 0.38s var(--ease),
    width 0.38s var(--ease);
  pointer-events: none;
}

/* ─── PAGE AREA ──────────────────────────────────────────── */
.page-area {
  height: calc(100vh - 60px - 49px);
  overflow: hidden;
  position: relative;
}

.pages-track {
  display: flex;
  height: 100%;
  transition: transform 0.42s var(--ease);
}

.page {
  flex: 0 0 100%;
  height: 100%;
  overflow-y: auto;
  padding: 40px 24px 60px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.page::-webkit-scrollbar {
  width: 4px;
}
.page::-webkit-scrollbar-track {
  background: transparent;
}
.page::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.page-inner {
  max-width: 820px;
  margin: 0 auto;
  animation: fadeUp 0.42s var(--ease) both;
}

/* ─── HERO ───────────────────────────────────────────────── */
.page-hero {
  margin-bottom: 42px;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
  opacity: 0.85;
}
.page-eyebrow::before {
  content: "";
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--accent-light);
  border-radius: 1px;
}

.page-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
}

.page-lead {
  font-size: 15.5px;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 540px;
}

/* ─── SECTIONS ───────────────────────────────────────────── */
.section {
  margin-top: 40px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ─── CARDS ──────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  gap: 12px;
}
.cards-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.cards-grid-1 {
  grid-template-columns: 1fr;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s var(--ease);
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(142, 45, 226, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
}
.card-icon svg {
  width: 18px;
  height: 18px;
}

.card-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--text);
}

.card-body {
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ─── BADGE ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-new {
  background: rgba(142, 45, 226, 0.1);
  color: var(--accent);
  border: 1px solid rgba(142, 45, 226, 0.25);
}
.badge-fix {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.badge-imp {
  background: rgba(234, 179, 8, 0.1);
  color: #b45309;
  border: 1px solid rgba(234, 179, 8, 0.25);
}
.badge-ann {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* ─── CHANGELOG ──────────────────────────────────────────── */
.changelog-entry {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.changelog-entry:last-child {
  border-bottom: none;
}

.changelog-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  box-shadow: 0 0 8px var(--accent-glow);
}

.changelog-version {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.changelog-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.changelog-title {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 6px;
}

.changelog-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.changelog-items li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.5;
}
.changelog-items li::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  margin-top: 8px;
}

.changelog-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ─── ANNOUNCEMENT CARD ──────────────────────────────────── */
.ann-card {
  background: var(--bg-card);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-left: 3px solid #3b82f6;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}
.ann-card:hover {
  box-shadow: var(--shadow-hover);
}
.ann-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.ann-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.ann-body {
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.faq-q:hover {
  color: var(--accent);
}

.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  transition: transform 0.28s var(--ease);
  color: var(--text-muted);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-item.open .faq-a {
  max-height: none;
}

.faq-a-inner {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  padding-bottom: 18px;
}

/* ─── TUTORIAL CARDS ─────────────────────────────────────── */
.tutorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.22s var(--ease);
  cursor: pointer;
}
.tutorial-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.tutorial-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a0830 0%, #0e0520 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.tutorial-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(142, 45, 226, 0.2),
    transparent 65%
  );
}

.play-ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(176, 106, 255, 0.5);
  background: rgba(142, 45, 226, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition:
    transform 0.22s var(--ease),
    background 0.2s;
}
.tutorial-card:hover .play-ring {
  transform: scale(1.12);
  background: rgba(142, 45, 226, 0.32);
}
.play-ring svg {
  margin-left: 3px;
}

.tutorial-meta {
  padding: 16px 18px 18px;
}
.tutorial-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: 6px;
}
.tutorial-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
}
.tutorial-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.55;
}
.tutorial-dur {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ─── ABOUT — STAT PILLS ─────────────────────────────────── */
.stat-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.stat-pill {
  flex: 1;
  min-width: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-num {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── ABOUT — TEAM ───────────────────────────────────────── */
.team-member {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.team-member:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #5b0fa8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}
.member-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
}
.member-role {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 2px;
}

/* ─── ABOUT — STACK ──────────────────────────────────────── */
.stack-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.stack-tag {
  padding: 6px 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-sub);
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.stack-tag:hover {
  border-color: var(--border-hover);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ─── ANIMATION ──────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.page-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--header-bg);
  margin-top: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.footer-logo-img {
  height: 26px;
  width: auto;
  image-rendering: crisp-edges;
  object-fit: contain;
}
.footer-name {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
}

.footer-center {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}
.footer-center span {
  color: #ff6b6b;
}
.footer-center a {
  text-decoration: none;
}
.footer-center strong {
  color: rgba(255, 255, 255, 0.6);
}

.footer-right {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  text-align: right;
  letter-spacing: 0.01em;
  line-height: 1.6;
}
.footer-right a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-right a:hover {
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 600px) {
  .page-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }
  .footer-right {
    text-align: center;
  }
}

/* ─── ABOUT — WHO LIST ───────────────────────────────────── */
.who-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.who-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.5;
}
.who-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  margin-top: 5px;
}
.who-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* ─── ABOUT — CALLOUT ────────────────────────────────────── */
.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--text-sub);
  line-height: 1.75;
  font-style: italic;
  margin-top: 14px;
}
.callout strong {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* ─── ABOUT — CREATOR LOGO ───────────────────────────────── */
.member-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1425;
  display: flex;
  align-items: center;
  justify-content: center;
}
.member-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: crisp-edges;
}

/* ─── ABOUT — STORY CARD ─────────────────────────────────── */
.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.story-header {
  background: linear-gradient(135deg, #1a0830 0%, #0e0520 100%);
  padding: 28px 28px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.story-avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(142, 45, 226, 0.25);
  border: 1px solid rgba(176, 106, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: crisp-edges;
}

.story-meta-name {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 2px;
}
.story-meta-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

.story-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.story-body p {
  font-size: 14.5px;
  color: var(--text-sub);
  line-height: 1.8;
}
.story-body p strong {
  color: var(--text);
  font-weight: 600;
}

.story-highlight {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  font-style: italic;
}
.story-highlight strong {
  color: var(--accent);
  font-style: normal;
}

/* ─── HELP — FAQ SEARCH ──────────────────────────────────── */
.faq-search-wrap {
  position: relative;
  margin-bottom: 36px;
}
.faq-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}
.faq-search {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  font-family: "DM Sans", sans-serif;
  font-size: 14.5px;
  color: var(--text);
  box-shadow: var(--shadow);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.faq-search::placeholder {
  color: var(--text-muted);
}
.faq-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(142, 45, 226, 0.1);
}
.faq-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: none;
  padding: 4px;
  border-radius: 50%;
  transition:
    color 0.15s,
    background 0.15s;
}
.faq-search-clear:hover {
  color: var(--text);
  background: var(--border);
}
.faq-search-clear.visible {
  display: flex;
}

/* ─── HELP — FAQ CATEGORY LABEL ─────────────────────────── */
.faq-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 32px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq-category svg {
  opacity: 0.6;
}
.faq-category.hidden {
  display: none;
}

/* ─── HELP — NO RESULTS ──────────────────────────────────── */
.faq-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px;
  text-align: center;
  gap: 10px;
  color: var(--text-muted);
}
.faq-empty.visible {
  display: flex;
}
.faq-empty svg {
  opacity: 0.4;
  margin-bottom: 4px;
}
.faq-empty p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}
.faq-empty strong {
  color: var(--text-sub);
}
.faq-item.hidden {
  display: none;
}

/* ─── HELP — CONTACT STRIP ───────────────────────────────── */
.contact-strip {
  margin-top: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-strip-text h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.contact-strip-text p {
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.5;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(142, 45, 226, 0.35);
  transition:
    filter 0.18s,
    transform 0.15s;
  flex-shrink: 0;
}
.contact-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.contact-btn:active {
  transform: scale(0.97);
}

/* ─── HELP — GUIDE DROPDOWNS ─────────────────────────────── */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.guide-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(142, 45, 226, 0.18);
  border-radius: 10px;
  color: var(--accent);
  font-family: "DM Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.guide-toggle:hover {
  background: rgba(142, 45, 226, 0.14);
  border-color: rgba(142, 45, 226, 0.3);
}
.guide-toggle svg {
  flex-shrink: 0;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.guide-item.open .guide-toggle svg {
  transform: rotate(180deg);
}

.guide-panel {
  height: 0;
  overflow: hidden;
  transition: height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.guide-inner {
  padding: 14px 2px 4px;
}

/* ─── HELP — STEP CARDS (horizontal scroll) ──────────────── */
.steps-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(142, 45, 226, 0.3) transparent;
}
.steps-scroll::-webkit-scrollbar {
  height: 4px;
}
.steps-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.steps-scroll::-webkit-scrollbar-thumb {
  background: rgba(142, 45, 226, 0.3);
  border-radius: 2px;
}

.step-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  background: #0e0e11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.step-img-wrap {
  width: 100%;
  background: #1c1428;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.step-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  cursor: zoom-in;
  transition: opacity 0.18s;
}
.step-img-wrap img:hover {
  opacity: 0.88;
}

.step-num {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(142, 45, 226, 0.92);
  color: white;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.step-body {
  padding: 12px 14px 16px;
  background: #0e0e11;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex: 1;
}
.step-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(176, 106, 255, 0.8);
  margin-bottom: 6px;
}
.step-text {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
}

/* ─── HELP — YOUTUBE SLIDE ───────────────────────────────── */
.step-card.yt-slide .step-img-wrap {
  background: #150808;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.15);
  border: 1.5px solid rgba(255, 80, 80, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b6b;
}
.step-card.yt-slide .step-body {
  text-align: center;
}
.step-card.yt-slide .step-text {
  color: rgba(255, 255, 255, 0.4);
}
.yt-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #ff6b6b;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.18s;
}
.yt-link:hover {
  opacity: 1;
}

/* ─── HELP — LIGHTBOX ────────────────────────────────────── */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 12, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.lb-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.lb-box {
  position: relative;
  max-width: min(92vw, 960px);
  width: 100%;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
  will-change: transform;
}
.lb-overlay.show .lb-box {
  transform: scale(1) translateY(0);
}

.lb-img-wrap {
  width: 100%;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: #1c1428;
  position: relative;
  will-change: transform;
}
.lb-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

.lb-step-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(142, 45, 226, 0.9);
  color: white;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.lb-caption {
  width: 100%;
  background: #0e0e11;
  border-radius: 0 0 14px 14px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  will-change: transform;
}
.lb-caption-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(176, 106, 255, 0.8);
  margin-bottom: 5px;
}
.lb-caption-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}
.lb-counter {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.18s;
  z-index: 1001;
}
.lb-arrow:hover {
  background: rgba(142, 45, 226, 0.4);
  color: #fff;
  border-color: rgba(142, 45, 226, 0.5);
}
.lb-arrow:active {
  transform: translateY(-50%) scale(0.9);
}
.lb-prev {
  left: max(16px, calc(50% - 520px));
}
.lb-next {
  right: max(16px, calc(50% - 520px));
}
.lb-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

.lb-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition:
    background 0.18s,
    color 0.18s;
}
.lb-close:hover {
  background: rgba(255, 80, 80, 0.25);
  color: #fff;
  border-color: rgba(255, 80, 80, 0.35);
}

/* ─── LIGHTBOX SLIDE ANIMATIONS ──────────────────────────── */
@keyframes lbSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(52px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes lbSlideInRight {
  from {
    opacity: 0;
    transform: translateX(-52px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes lbCaptionSlideLeft {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes lbCaptionSlideRight {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.lb-img-wrap.slide-in-left {
  animation: lbSlideInLeft 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lb-img-wrap.slide-in-right {
  animation: lbSlideInRight 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lb-caption.slide-in-left {
  animation: lbCaptionSlideLeft 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
.lb-caption.slide-in-right {
  animation: lbCaptionSlideRight 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

/* ─── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 680px) {
  .page {
    padding: 24px 16px 60px;
  }
  .page-title {
    font-size: clamp(22px, 7vw, 32px);
  }
  .page-lead {
    font-size: 14px;
  }

  /* ── STEP CARDS: row layout (image left, text right) ── */
  .steps-scroll {
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 10px;
    padding-bottom: 4px;
  }

  .step-card {
    flex: 0 0 auto;
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    border-radius: 12px;
  }

  .step-img-wrap {
    width: 110px;
    min-width: 110px;
    flex-shrink: 0;
    border-radius: 12px 0 0 12px;
    min-height: 90px;
  }
  .step-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
  }

  .step-num {
    top: 7px;
    left: 7px;
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .step-body {
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0 12px 12px 0;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .step-text {
    font-size: 12px;
  }

  /* YT slide stays column */
  .step-card.yt-slide {
    flex-direction: column;
  }
  .step-card.yt-slide .step-img-wrap {
    width: 100%;
    min-width: 0;
    border-radius: 12px 12px 0 0;
    min-height: 80px;
  }
  .step-card.yt-slide .step-body {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0 0 12px 12px;
  }

  .contact-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .contact-btn {
    width: 100%;
    justify-content: center;
  }

  .faq-search {
    font-size: 13.5px;
    padding: 11px 14px 11px 40px;
  }

  .lb-arrow {
    width: 38px;
    height: 38px;
  }
  .lb-prev {
    left: 8px;
  }
  .lb-next {
    right: 8px;
  }
  .lb-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 420px) {
  .guide-toggle {
    font-size: 12.5px;
    padding: 10px 12px;
  }
  .lb-arrow {
    width: 32px;
    height: 32px;
  }
}
