/* Mega888 download landing page — purple "app card" theme, shared by EN / BM / 中文.
   Mobile-first single column: gradient background, white cards, coloured download buttons. */

:root {
  --bg-0: #1a0c55;
  --bg-1: #3d1c9e;
  --bg-2: #7a4cf5;
  --bg-3: #9666ff;

  --card: #ffffff;
  --soft: #f6f3ff;
  --soft-2: #ece5ff;
  --line: #e6e0f5;
  --ink: #1f1a3a;
  --ink-2: #48436a;
  --ink-3: #77729a;

  --purple: #7b3fe4;
  --purple-d: #5b25c9;
  --magenta: #a12ad6;
  --gold: #ffc83d;
  --gold-d: #f0a800;
  --gold-ink: #2b1a00;

  --android: #34ad40;
  --android-d: #1f8a2b;
  --ios: #ff8526;
  --ios-d: #e65f00;
  --pc: #3a82ef;
  --pc-d: #1b5bc8;
  --tg: #2aa7ee;
  --tg-d: #0a6bd0;
  --wa: #2bc761;
  --wa-d: #128c3a;

  --link: #2b59c3;
  --ok: #15a34a;
  --warn: #c77700;
  --danger: #d92d2d;
  --footer: #2a1527;

  --r: 14px;
  --shadow: 0 10px 28px -10px rgba(20, 6, 70, .55);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  font: 16px/1.65 var(--font);
  background-color: var(--bg-3);
  background-image:
    radial-gradient(520px 260px at 50% 0, rgba(255, 200, 61, .16), transparent 70%),
    linear-gradient(180deg, var(--bg-0) 0, var(--bg-1) 520px, var(--bg-2) 1200px, var(--bg-3) 1800px);
  background-repeat: no-repeat;
  padding-bottom: 80px; /* room for the mobile sticky bar */
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 200; }
.skip-link:focus { left: 16px; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; border-radius: 8px; font-weight: 700; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 12, 85, .82);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar-inner { display: flex; align-items: center; gap: 12px; height: 56px; }
.menu-btn {
  width: 40px; height: 40px; flex: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px;
  visibility: hidden; /* shown once JS is running */
}
.js .menu-btn { visibility: visible; }
.menu-btn span { display: block; width: 18px; height: 2.5px; border-radius: 3px; background: #fff; }
.topbar-brand {
  margin-right: auto; min-width: 0; display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 16px; color: #fff; text-decoration: none;
}
.topbar-brand img { flex: none; width: 30px; height: 30px; }
.topbar-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-switch {
  display: flex; gap: 2px; padding: 3px; flex: none;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
}
.lang-switch a {
  color: rgba(255, 255, 255, .75); text-decoration: none; font-size: 13px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="page"] { background: #fff; color: var(--purple-d); }
/* Small phones: tighten the bar so the full site name fits next to the language switch */
@media (max-width: 400px) {
  .topbar-inner { gap: 8px; }
  .topbar-brand { font-size: 15px; gap: 7px; }
  .lang-switch a { padding: 4px 8px; }
}

/* ---------- Slide-in menu ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(8, 3, 30, .6);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
}
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  width: 290px; max-width: 86vw; overflow-y: auto;
  padding: 18px 14px 28px;
  background: linear-gradient(180deg, var(--magenta) 0%, var(--purple-d) 100%);
  box-shadow: 10px 0 40px rgba(10, 3, 40, .45);
  transform: translateX(-100%); visibility: hidden;
  transition: transform .3s ease, visibility 0s .3s;
}
.menu-open .overlay { opacity: 1; visibility: visible; transition: opacity .25s; }
.menu-open .sidebar { transform: none; visibility: visible; transition: transform .3s ease; }
.sidebar-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  background: transparent; color: var(--gold); border: 2px solid var(--gold); border-radius: 8px;
}
.sidebar-close .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.sidebar-brand { margin: 4px 48px 20px 8px; font-size: 19px; font-weight: 900; line-height: 1.3; }
.sidebar-label {
  margin: 18px 8px 6px; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; opacity: .7;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 10px; border-radius: 10px;
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 600;
}
.sidebar li a:hover { background: rgba(255, 255, 255, .13); }
.sidebar li a .icon { width: 16px; height: 16px; opacity: .7; }
.sidebar li a[aria-current="page"] { background: rgba(255, 255, 255, .18); }
.sidebar li a .side-link { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.sidebar li a .side-link .icon { width: 18px; height: 18px; opacity: 1; }
.side-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 8px 4px; padding: 11px 14px;
  border-radius: 12px; background: linear-gradient(180deg, var(--gold), var(--gold-d)); color: var(--gold-ink);
  font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.side-cta .icon { width: 18px; height: 18px; stroke-width: 2.4; }

/* ---------- Promo banner (opens WhatsApp) ---------- */
.promo-banner {
  display: block; width: min(440px, 88%); margin: 24px auto 0; border-radius: 16px; overflow: hidden;
  background: #0b0a24; color: #fff; text-decoration: none;
  box-shadow: 0 12px 30px rgba(6, 2, 30, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.promo-banner:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(6, 2, 30, .55); }
.promo-banner:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.promo-banner img { width: 100%; height: auto; }
.promo-banner + .box { margin-top: 24px; } /* help pages: gap between banner and first section */
.promo-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px; font-size: 15px; font-weight: 800; line-height: 1.2;
  background: linear-gradient(135deg, var(--wa), var(--wa-d));
}
.promo-cta .icon { width: 20px; height: 20px; }
.promo-cta .icon:last-child { width: 18px; height: 18px; opacity: .85; }
/* Update line + trust badges, between the banner and the download cards */
.trust-row { text-align: center; margin-top: 16px; }
.trust-row .update-line { margin-top: 0; }
.trust-row + .stack { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 30px 0 4px; }
.hero-brand { display: block; width: min(400px, 90%); margin: 0 auto; }
.hero-logo {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 4px 0 rgba(10, 3, 40, .35)) drop-shadow(0 0 26px rgba(170, 120, 255, .55));
}
h1 { font-size: clamp(21px, 5.4vw, 30px); line-height: 1.25; font-weight: 800; margin: 20px 0 10px; }
h1 .hl { display: block; color: var(--gold); }
.lede { color: rgba(255, 255, 255, .86); font-size: 15px; max-width: 54ch; margin: 0 auto 20px; }

.chat-ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chat-cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 12px 14px;
  border-radius: var(--r); border: 2px solid rgba(255, 255, 255, .5);
  color: #fff; text-decoration: none; text-align: left;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5), inset 0 -3px 0 rgba(0, 0, 0, .15);
  transition: filter .15s, transform .15s;
}
.chat-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.chat-cta.tg { background: linear-gradient(135deg, var(--tg), var(--tg-d)); }
.chat-cta.wa { background: linear-gradient(135deg, var(--wa), var(--wa-d)); }
.chat-cta > .icon { width: 28px; height: 28px; position: relative; z-index: 1; }
.chat-cta > span { position: relative; z-index: 1; min-width: 0; }
.chat-cta strong { display: block; font-size: 17px; line-height: 1.2; }
.chat-cta small { display: block; font-size: 12px; opacity: .92; line-height: 1.3; }
.chat-cta .chat-deco {
  position: absolute; right: -14px; bottom: -18px; width: 84px; height: 84px;
  opacity: .22; transform: rotate(-14deg); stroke-width: 1.5;
}

.update-line { font-size: 12.5px; color: rgba(255, 255, 255, .85); margin: 14px 0 10px; }
.trust-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.trust-pills li {
  display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
}
.trust-pills .icon { width: 14px; height: 14px; color: #8ff0b4; stroke-width: 2.6; }
.trust-pills a { color: #fff; }

/* ---------- Download cards ---------- */
.stack { display: grid; gap: 14px; margin: 24px 0 26px; }
.dl-card {
  background: var(--card); color: var(--ink); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden;
}
.dl-card.is-recommended { box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.dl-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dl-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #fff; }
.dl-icon .icon { width: 20px; height: 20px; }
.dl-icon.android { background: var(--android); }
.dl-icon.ios { background: var(--ios); }
.dl-icon.pc { background: var(--pc); }
.dl-icon.test { background: var(--purple); }
.dl-title { flex: 1; min-width: 0; margin: 0; font-size: 16px; font-weight: 800; line-height: 1.3; }
.dl-meta { font-size: 12.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.dl-body { padding: 14px 16px 16px; }
.rec-tag {
  display: table; margin: 0 auto 10px; padding: 3px 10px; border-radius: 999px;
  background: #e6f8ec; color: var(--ok); border: 1px solid #b8ebc9;
  font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
}
.dl-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 14px 16px; border-radius: 11px;
  color: #fff; font-weight: 800; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2), 0 6px 14px -8px rgba(0, 0, 0, .5);
  transition: filter .15s, transform .15s;
}
.dl-btn:hover { filter: brightness(1.07); transform: translateY(-1px); color: #fff; }
.dl-btn:active { transform: translateY(1px); }
.dl-btn.android { background: linear-gradient(180deg, var(--android), var(--android-d)); }
.dl-btn.ios { background: linear-gradient(180deg, var(--ios), var(--ios-d)); }
.dl-btn.pc { background: linear-gradient(180deg, var(--pc), var(--pc-d)); }
.dl-text { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-2); }
.dl-note { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-3); text-align: center; }
.cred { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.cred-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 12px;
  border-radius: 12px; background: var(--soft); border: 1.5px dashed #c6b0f3; text-align: center;
}
.cred dt { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cred dd { margin: 0; }
.cred-value { font-family: var(--mono); font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--purple-d); word-break: break-all; }
.dl-note a { color: var(--link); font-weight: 600; }
.hash {
  margin: 12px 0 0; padding: 8px 10px; border-radius: 9px;
  background: var(--soft); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--ink-2); word-break: break-all;
}
.hash span {
  display: block; margin-bottom: 2px; font-family: var(--font); font-size: 11px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Content boxes ---------- */
.box {
  background: var(--card); color: var(--ink-2); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 26px 18px; margin: 0 0 18px; font-size: 15.5px; line-height: 1.7;
}
@media (min-width: 640px) { .box { padding: 32px 34px; } }
.box > :last-child { margin-bottom: 0; }
.box h2 {
  margin: 0 0 18px; text-align: center; color: var(--ink);
  font-size: clamp(20px, 4.6vw, 24px); line-height: 1.3; font-weight: 800;
}
.box h2::after {
  content: ""; display: block; width: 48px; height: 4px; margin: 10px auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--purple), var(--magenta));
}
.box h3 { margin: 24px 0 10px; color: var(--ink); font-size: 17px; line-height: 1.35; font-weight: 800; }
.box a { color: var(--link); text-underline-offset: 2px; }
.box strong { color: var(--ink); }
.intro { text-align: center; color: var(--ink-3); max-width: 56ch; margin: -4px auto 20px; font-size: 15px; }
.small { font-size: 13.5px; color: var(--ink-3); }

.answer {
  margin: 0; padding: 14px 16px; border-radius: 10px;
  background: var(--soft); border-left: 4px solid var(--purple); color: var(--ink);
}
.answer strong { color: var(--purple-d); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink); }
tbody tr:last-child > * { border-bottom: 0; }
.info-table th { width: 38%; background: var(--soft); font-weight: 700; }
.info-table tbody tr:nth-child(even) td { background: #fcfbff; }
@media (min-width: 640px) { .info-table th { width: 32%; } }
.mono { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.copy-row { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.copy {
  flex: none; padding: 3px 10px; border-radius: 7px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 800; line-height: 1.4;
  color: var(--purple-d); background: #fff; border: 1px solid var(--line);
}
.copy:hover { border-color: var(--purple); }
.copy.is-copied { color: var(--ok); border-color: #b8ebc9; }
.table-note { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-3); text-align: center; }
.changelog { min-width: 480px; }
.changelog thead th {
  background: linear-gradient(90deg, var(--purple), var(--magenta)); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-bottom: 0;
}
.changelog td:first-child { font-weight: 800; white-space: nowrap; }
.changelog td:nth-child(2) { white-space: nowrap; color: var(--ink-3); }

/* ---------- Tabs ---------- */
.tablist { display: none; gap: 4px; padding: 4px; margin: 0 0 18px; background: var(--soft-2); border-radius: 12px; }
.js .tablist { display: flex; }
.tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 6px; border: 0; border-radius: 9px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 800; color: var(--ink-3); background: transparent;
}
.tab:hover { color: var(--ink); }
.tab .icon { width: 18px; height: 18px; }
.tab[aria-selected="true"] { background: #fff; color: var(--purple-d); box-shadow: 0 2px 8px rgba(60, 20, 140, .16); }
.tabpanel > h3:first-child { margin-top: 0; }
.tabpanel + .tabpanel { margin-top: 32px; }
.js .tabpanel + .tabpanel { margin-top: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.steps li {
  counter-increment: step; position: relative; padding: 12px 14px 12px 54px;
  background: #fbfaff; border: 1px solid var(--line); border-radius: 11px; font-size: 15px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 11px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--magenta)); color: #fff; font-size: 14px; font-weight: 800;
}
.sub-h { margin: 20px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Callouts ---------- */
.callout { display: flex; gap: 12px; margin: 0 0 12px; padding: 13px 15px; border-radius: 11px; border: 1px solid; font-size: 14.5px; color: var(--ink); }
.callout .icon { margin-top: 2px; }
.callout p { margin: 0; }
.callout-warn { background: #fff8e8; border-color: #f4d38c; }
.callout-warn .icon { color: var(--warn); }
.callout-danger { background: #fff2f2; border-color: #f4b8b8; }
.callout-danger .icon { color: var(--danger); }
.callout-info { background: #eef4ff; border-color: #b7cff5; }
.callout-info .icon { color: var(--link); }

/* ---------- Mini cards / lists ---------- */
.mini-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini { background: #fbfaff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.mini h3 { margin: 0 0 8px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.mini > :last-child { margin-bottom: 0; }
.num {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px;
  background: var(--soft-2); color: var(--purple-d); font-size: 14px; font-weight: 900;
}
code {
  font-family: var(--mono); font-size: 12.5px; word-break: break-all; color: #3b2a7a;
  background: #f1eefb; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px;
}
code.cmd { display: block; padding: 8px 10px; margin: 6px 0 12px; }

.redflags { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (min-width: 640px) { .redflags { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.redflags li {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 11px;
  background: #fff5f5; border: 1px solid #f5d0d0; color: var(--ink); font-size: 14.5px;
}
.redflags .icon { width: 18px; height: 18px; color: var(--danger); margin-top: 3px; }

.checklist { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.checklist .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 4px; stroke-width: 2.4; }

.fixes { display: grid; gap: 10px; margin: 0; }
@media (min-width: 640px) { .fixes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fix { background: #fbfaff; border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; }
.fix dt { margin: 0 0 4px; font-weight: 800; color: var(--ink); font-size: 15px; }
.fix dd { margin: 0; font-size: 14.5px; }

.helplines { display: flex; flex-wrap: wrap; gap: 8px; }
.box .helplines a {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 10px;
  background: #fff; border: 1.5px solid var(--purple); color: var(--purple-d);
  font-weight: 800; font-size: 14px; text-decoration: none;
}
.box .helplines a:hover { background: var(--soft); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px;
  display: grid; place-items: center; font-size: 17px; font-weight: 900; line-height: 1;
  background: var(--soft-2); color: var(--purple-d);
}
.faq details[open] > summary { background: var(--soft); border-bottom: 1px solid var(--line); }
.faq details[open] > summary::before { content: "\2212"; background: var(--purple); color: #fff; }
.faq summary h3 { margin: 0; font-size: 15.5px; line-height: 1.5; }
.faq-a { padding: 12px 14px 14px; }
@media (min-width: 640px) { .faq-a { padding-left: 50px; } }
.faq-a > :last-child { margin-bottom: 0; }

/* ---------- Support ---------- */
.support-ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 14px; }
.box .chat-cta { color: #fff; }

/* ---------- Links between pages ---------- */
/* ---------- Cross-page links ---------- */
.panel-help { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-3); }
.fix dd a { font-weight: 700; white-space: nowrap; }
.guide-links { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .guide-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.guide-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fbfaff;
  color: var(--ink); text-decoration: none;
}
.guide-links a:hover { border-color: #a88aff; background: #f4f0ff; }
.guide-links strong { display: block; font-size: 15px; line-height: 1.3; }
.guide-links small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.guide-links .icon { width: 18px; height: 18px; color: var(--link); }

.more-link { margin: 16px 0 0; text-align: center; font-weight: 800; }
.more-link a { text-decoration: none; }
.more-link a:hover { text-decoration: underline; }

/* ---------- Help page ---------- */
.crumbs { padding: 14px 0 0; font-size: 13px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: rgba(255, 255, 255, .72); }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; opacity: .7; }
.crumbs a { color: #fff; font-weight: 700; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero-sub { padding-top: 6px; }
.hero-sub h1 { margin-top: 14px; }

.device-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 6px; }
.device-chip {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px 12px; border-radius: 14px; text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  font-weight: 800; font-size: 14.5px; line-height: 1.2;
}
.device-chip:hover { background: rgba(255, 255, 255, .17); }
.device-chip small { font-size: 11.5px; font-weight: 600; opacity: .78; word-break: keep-all; }
.device-chip.is-yours { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 10px 26px -10px rgba(255, 200, 61, .6); }
.yours-tag {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--gold-ink);
  font-size: 10.5px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
}

.issues { display: grid; gap: 12px; }
.issue { background: #fbfaff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.issue h3 { margin: 0 0 6px; font-size: 16px; display: flex; gap: 10px; align-items: flex-start; }
.issue h3 .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--warn); }
.issue .why { margin: 0 0 10px; font-size: 14.5px; color: var(--ink-3); }
.issue .why strong { color: var(--ink-2); }
.fix-steps { margin: 0; padding-left: 22px; font-size: 14.5px; }
.fix-steps li { margin: 0 0 6px; padding-left: 2px; }
.fix-steps li:last-child { margin-bottom: 0; }
.fix-steps li::marker { color: var(--purple); font-weight: 800; }
.issues + .callout { margin-top: 14px; }
.box .mini p { font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 30px; padding: 26px 0 32px; text-align: center;
  background: var(--footer); border-top: 4px solid #a88aff;
  color: rgba(255, 255, 255, .78); font-size: 13.5px;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 16px; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.disclaimer { display: flex; gap: 12px; align-items: flex-start; justify-content: center; max-width: 640px; margin: 0 auto; text-align: left; }
.disclaimer p { margin: 0; }
.age {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid #ff6b6b; color: #ff8a8a; font-size: 12px; font-weight: 900;
}
.copyright { margin: 16px 0 0; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 18px; z-index: 70;
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  box-shadow: 0 8px 20px rgba(20, 6, 70, .5);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility 0s .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.to-top .icon { width: 22px; height: 22px; stroke-width: 2.4; }
@media (max-width: 767px) { .to-top { bottom: 86px; } }

/* ---------- Mobile sticky bar ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(26, 12, 85, .95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, .12);
  transition: transform .25s, visibility 0s;
}
.sticky-bar.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform .25s, visibility 0s .25s; }
@media (min-width: 768px) { .sticky-bar { display: none; } }
.bar-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 12px; font-weight: 800; font-size: 15px; text-decoration: none;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.bar-btn.primary { flex: 1; background: linear-gradient(180deg, var(--gold), var(--gold-d)); color: var(--gold-ink); }
.bar-btn.chat { background: linear-gradient(180deg, var(--wa), var(--wa-d)); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
