:root {
  color-scheme: light;
  --blue: #3964fe;
  --blue-hover: #2851e6;
  --ink: #20232b;
  --muted: #656b78;
  --line: #e5e9f2;
  --wash: #f6f8ff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.6; }
::selection { color: #18358d; background: #dce5ff; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
a:hover { color: var(--blue); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.wrap { width: calc(100% - 96px); max-width: 1040px; margin: 0 auto; }
.header { height: 96px; display: flex; align-items: center; justify-content: space-between; }
.brand, .hero-brand { display: flex; align-items: center; color: var(--blue); white-space: nowrap; }
.brand { gap: 8px; }
.brand img { width: 30px; height: 30px; }
.brand strong { font-size: 21px; font-weight: 700; line-height: 1; letter-spacing: .01em; }
.brand span { font-size: 16px; font-weight: 500; line-height: 1; opacity: .82; letter-spacing: -.01em; }
.header nav { display: flex; gap: 32px; align-items: center; font-size: 14px; }
.header nav > a { padding: 10px 0; }
.header nav .nav-chat { border: 1px solid var(--line); border-radius: 10px; padding: 9px 18px; }
.nav-chat:hover { background: var(--wash); color: var(--blue-hover); }
.hero { text-align: center; padding: 76px 0 86px; }
.hero-brand { justify-content: center; gap: 12px; margin: 0 auto 24px; }
.hero-brand img { width: 50px; height: 50px; }
.hero-brand strong { font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: .01em; }
.hero-brand span { font-size: 28px; line-height: 1; font-weight: 500; opacity: .84; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 550; line-height: 1.4; letter-spacing: .035em; text-wrap: balance; }
.hero-actions { display: flex; justify-content: center; gap: 14px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 28px; font-size: 16px; font-weight: 500; border: 1px solid transparent; border-radius: 12px; transition: background-color .18s ease-out, border-color .18s ease-out; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.primary { color: #fff; background: var(--blue); }
.primary:hover { color: #fff; background: var(--blue-hover); }
.secondary { color: var(--ink); background: #fff; border-color: #dfe4ee; }
.secondary:hover { color: var(--blue-hover); background: var(--wash); border-color: #b9c9ff; }
.hero-actions .button { min-width: 174px; }
.capabilities { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 28px; color: var(--muted); font-size: 14px; }
.capabilities span + span::before { content: "·"; padding: 0 16px; color: #8b91a0; }
.download-section { padding: 46px 0 62px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
h2 { font-size: 28px; line-height: 1.5; letter-spacing: .015em; font-weight: 550; }
.platform-note { color: var(--muted); font-size: 13px; padding-bottom: 4px; }
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.download-card { padding: 30px 28px 26px; border-radius: 16px; border: 1px solid var(--line); }
.download-card.stable { background: var(--wash); border-color: #e2e9ff; }
.download-card.ios.recommended { background: var(--wash); border-color: #cddbff; }
.download-card .button { cursor: pointer; }
.download-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h3 { font-size: 21px; line-height: 1.5; font-weight: 550; }
.version-info { display: flex; gap: 18px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; margin: 12px 0 25px; }
.download-card .button { min-width: 174px; justify-content: space-between; }
.text-link:hover, .save-qr:hover, .copy-link:hover { text-decoration: underline; }
.contact-section { border-top: 1px solid var(--line); padding: 64px 0 68px; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 32px; align-items: start; }
.contact-intro { padding-top: 22px; }
.contact-intro h2 { font-size: 32px; line-height: 1.6; }
.text-link { display: inline-block; color: var(--blue); font-size: 14px; padding: 10px 0; margin-top: 13px; }
.contact-channel { text-align: center; }
.qr-frame { display: block; width: 180px; height: 180px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 0 auto 17px; transition: border-color .18s; }
.qr-frame:hover { border-color: var(--blue); }
.qr-crop { display: block; width: 100%; height: 100%; overflow: hidden; background: #fff; }
.qr-crop img { display: block; width: 100%; height: 100%; object-fit: contain; }
.contact-channel h3 { font-size: 17px; }
.contact-channel p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.group-number { font-variant-numeric: tabular-nums; }
.qr-validity, .copy-link { display: block; font-size: 12px; line-height: 22px; margin: 5px auto 0; }
.qr-validity { color: var(--muted); }
.copy-link { color: var(--blue); border: 0; background: none; cursor: pointer; padding: 0 8px; min-height: 24px; }
.save-qr { display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; color: var(--blue); }
.footer { border-top: 1px solid var(--line); padding: 26px 0 30px; display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 12px; }
.footer p { flex: 1; }
.footer a { font-size: 13px; }
.skip-link { position: fixed; left: 16px; top: -100px; padding: 10px 16px; z-index: 10; background: #fff; color: var(--blue); }
.skip-link:focus { top: 16px; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 5; max-width: calc(100% - 32px); padding: 12px 22px; border-radius: 10px; color: #fff; background: #252a38; font-size: 14px; box-shadow: 0 8px 24px #20232b1a; }
.toast:empty { display: none; }
.contact-dock { position: fixed; z-index: 30; right: 20px; top: 50%; transform: translateY(-50%); width: 88px; padding: 12px 8px 4px; border-radius: 14px; background: #fff; box-shadow: 0 6px 28px #2330581f; text-align: center; }
.contact-dock > p { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.contact-dock > button { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 74px; border: 0; border-radius: 9px; color: var(--blue); background: transparent; font-size: 12px; cursor: pointer; }
.contact-dock > button + button { border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; }
.contact-dock > button:hover { background: var(--wash); color: var(--blue-hover); }
.contact-dock svg { width: 25px; height: 25px; margin-bottom: 6px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-dock b { font-size: 20px; line-height: 27px; font-weight: 600; margin-bottom: 4px; }
.contact-dialog { position: fixed; inset: 0; margin: auto 128px auto auto; box-sizing: border-box; width: 340px; max-width: calc(100% - 32px); max-height: calc(100% - 48px); padding: 22px 24px; border: 0; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 12px 36px #20232b26; }
.contact-dialog::backdrop { background: #20232b24; }
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { overflow: hidden; overscroll-behavior: contain; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; }
.dialog-heading h2 { font-size: 17px; font-weight: 550; }
.dialog-close { display: grid; place-items: center; width: 36px; height: 36px; margin-right: -8px; background: transparent; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; }
.dialog-close:hover { background: var(--wash); }
.dialog-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.contact-tabs { display: flex; padding: 4px; margin: 12px 0 20px; border-radius: 10px; background: #f5f7fb; }
.contact-tabs button { flex: 1; padding: 9px 4px; border: 0; border-radius: 7px; background: transparent; font-size: 14px; color: var(--muted); cursor: pointer; }
.contact-tabs button[aria-pressed="true"] { color: var(--blue); background: #fff; box-shadow: 0 2px 6px #23305814; }
.dialog-channel { text-align: center; }
.dialog-channel .qr-frame { width: 216px; height: 216px; border: 0; margin-bottom: 18px; }
.dialog-channel h3 { font-size: 16px; font-weight: 500; }
.dialog-channel > p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.dialog-channel > small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.dialog-channel .save-qr { min-height: 42px; }
.dialog-join { display: block; padding: 9px 0; color: var(--blue); font-size: 14px; margin-top: 4px; }
.dialog-actions { display: flex; justify-content: center; gap: 16px; align-items: center; }
.dialog-actions .copy-link { margin: 0; min-height: 42px; }
.dialog-status:empty { display: none; }
.ios-dialog { position: fixed; inset: 0; margin: auto; box-sizing: border-box; width: 420px; max-width: calc(100% - 32px); max-height: calc(100% - 40px); overflow-y: auto; padding: 22px 24px 24px; border: 0; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 12px 36px #20232b26; }
.ios-dialog::backdrop { background: #20232b24; }
.ios-inapp-tip { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid #d7e2ff; background: var(--wash); font-size: 13px; line-height: 1.55; color: var(--ink); }
.ios-steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ios-steps li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-radius: 12px; background: #f6f7fb; font-size: 14px; line-height: 1.55; }
.ios-step-num { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; }
.ios-glyph { display: inline-flex; align-items: center; justify-content: center; vertical-align: -3px; margin: 0 3px; padding: 2px 5px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--blue); }
.ios-glyph svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ios-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.ios-actions .button { width: 100%; min-height: 46px; font-size: 15px; cursor: pointer; }
.ios-dialog-status { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--blue); }
.ios-dialog-status:empty { display: none; }
@media (max-width: 920px) {
  .downloads { grid-template-columns: 1fr 1fr; }
  .download-card.ios { grid-column: 1 / -1; }
}
@media (max-width: 1179px) {
  .contact-dock { display: none; }
  .header { position: sticky; top: 0; z-index: 20; background: #fff; }
  .contact-dialog { margin: auto; }
}
@media (max-height: 620px) {
  .dialog-channel .qr-frame { width: 156px; height: 156px; margin-bottom: 10px; }
  .contact-tabs { margin-bottom: 10px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header { height: 76px; }
  .brand img { width: 26px; height: 26px; }
  .brand strong { font-size: 18px; }
  .brand span { font-size: 14px; }
  .header nav { gap: 18px; }
  .header .nav-chat { display: none; }
  .hero { padding: 62px 0 60px; }
  .hero-brand { gap: 10px; margin-bottom: 22px; }
  .hero-brand img { width: 40px; height: 40px; }
  .hero-brand strong { font-size: 30px; }
  .hero-brand span { font-size: 21px; }
  h1 { font-size: 27px; letter-spacing: 0; }
  .hero-actions { gap: 12px; margin-top: 26px; }
  .hero-actions .button { min-width: 0; padding: 12px 22px; font-size: 15px; }
  .capabilities { font-size: 13px; margin-top: 24px; }
  .download-section { padding: 32px 0 40px; }
  .section-heading { display: block; margin-bottom: 22px; }
  h2 { font-size: 25px; }
  .platform-note { display: block; margin-top: 10px; font-size: 12px; }
  .downloads { grid-template-columns: 1fr; gap: 16px; }
  .download-card { padding: 25px 24px 22px; }
  .download-card h3 { font-size: 20px; }
  .download-card .button { width: 100%; justify-content: center; }
  .contact-section { grid-template-columns: 1fr 1fr; padding: 36px 0; gap: 30px 12px; }
  .contact-intro { grid-column: 1 / -1; padding: 0; }
  .contact-intro h2 { font-size: 25px; }
  .contact-intro h2 br { display: none; }
  .contact-intro .text-link { margin-top: 4px; }
  .qr-frame { width: 150px; height: 150px; padding: 9px; }
  .contact-channel h3 { font-size: 16px; }
  .contact-channel p { font-size: 12px; }
  .footer { flex-wrap: wrap; gap: 8px 16px; padding: 22px 0; }
  .footer p { flex-basis: calc(100% - 180px); text-align: right; }
}
@media (max-width: 370px) {
  .header nav { gap: 12px; font-size: 13px; }
  .brand img { width: 24px; height: 24px; }
  h1 { font-size: 26px; }
  .hero-brand img { width: 36px; height: 36px; }
  .qr-frame { width: 132px; height: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Device-exclusive guided invite landing (activated only when ?invite=U... is present). */
html[data-invite-mode="active"] body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(90% 60% at 50% -10%, rgba(57, 100, 254, 0.13) 0%, rgba(114, 148, 255, 0.05) 48%, rgba(255, 255, 255, 0) 76%),
    linear-gradient(180deg, #f5f8ff 0%, #ffffff 74%);
}
html[data-invite-mode="active"] .header,
html[data-invite-mode="active"] #default-hero,
html[data-invite-mode="active"] #download,
html[data-invite-mode="active"] #contact,
html[data-invite-mode="active"] .footer {
  display: none;
}

.invite-section {
  padding: 0 0 24px;
}
html[data-invite-mode="active"] .invite-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.invite-section[hidden] { display: none; }

/* Full-width top-pinned WeChat / in-app guidance bar aiming right at the upper-right ··· button */
.invite-wx-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 16px 14px 18px;
  border: 0;
  background: linear-gradient(135deg, #172038 0%, #24345c 100%);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 26px -14px rgba(23, 32, 56, 0.55);
}
.invite-wx-banner[hidden] { display: none; }
.invite-wx-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.invite-wx-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}
.invite-wx-sub {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}
.wx-dots-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  margin: 0 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.invite-wx-curve {
  flex-shrink: 0;
  color: #8fb4ff;
  animation: inviteFloatArrow 1.25s ease-in-out infinite;
}

.invite-topbar {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 16px;
  margin-bottom: 12px;
}

.invite-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 34px;
  align-items: center;
  max-width: 820px;
  padding: 32px 36px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #dde6ff;
  box-shadow: 0 18px 42px -22px rgba(57, 100, 254, 0.24), 0 2px 8px rgba(32, 35, 43, 0.04);
}
html[data-platform]:not([data-platform="desktop"]) .invite-shell {
  grid-template-columns: 1fr;
  max-width: 460px;
  padding: 22px 20px 20px;
  gap: 0;
}
.invite-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
html[data-platform]:not([data-platform="desktop"]) .invite-main {
  align-items: center;
  text-align: center;
}

.invite-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff6ec;
  border: 1px solid #fde0bd;
  color: #b55408;
  font-size: 12px;
  font-weight: 500;
}
.invite-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef6c00;
  flex-shrink: 0;
  animation: invitePulse 1.8s ease-in-out infinite;
}
.invite-eyebrow {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: #5e6678;
}
.invite-tokens {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
html[data-platform]:not([data-platform="desktop"]) .invite-tokens {
  justify-content: center;
}
.invite-tokens-num {
  font-size: clamp(42px, 6vw, 54px);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #2244d8 0%, #3964fe 52%, #5c82ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.invite-tokens-unit {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--blue);
  font-weight: 600;
}

.invite-flow {
  width: 100%;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.invite-flow .button {
  width: 100%;
  min-height: 50px;
  border-radius: 13px;
  text-align: center;
  cursor: pointer;
}
.invite-flow .button.primary {
  background: linear-gradient(180deg, #446dff 0%, #3159f2 100%);
  box-shadow: 0 8px 20px -6px rgba(57, 100, 254, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.invite-flow .button.primary:hover {
  filter: brightness(1.04);
}
.invite-flow .button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--blue);
  min-height: 40px;
  font-size: 13.5px;
  padding: 6px 10px;
}
.invite-flow .button.ghost:hover {
  background: var(--wash);
}

.invite-btn-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
  padding: 4px 0;
}
.invite-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.invite-btn-meta {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.86;
  margin-top: 2px;
}

.invite-inline-cue {
  margin: -4px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.invite-inline-cue strong {
  color: var(--ink);
}

.invite-dl-note {
  margin: 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: #eefaf2;
  border: 1px solid #b9eccb;
  color: #166534;
  font-size: 13px;
  line-height: 1.5;
}
.invite-dl-note[hidden] { display: none; }
.invite-retry-link {
  display: inline-block;
  margin-left: 6px;
  color: #14532d;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Compact horizontal 3-step guide for Android system browser (zero jump on download click) */
.invite-android-guide {
  padding: 12px;
  border-radius: 14px;
  background: #f7f9ff;
  border: 1px solid #e4ebff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.invite-android-guide[data-downloaded="true"] {
  background: #effaf3;
  border-color: #bfeccf;
}
.invite-hsteps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.invite-hstep {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.invite-hstep + .invite-hstep::before {
  content: "";
  position: absolute;
  top: 11px;
  right: calc(50% + 14px);
  width: calc(100% - 22px);
  height: 1.5px;
  background: #dbe3f5;
}
.invite-hstep[data-state="active"] + .invite-hstep::before,
.invite-hstep[data-state="done"] + .invite-hstep::before {
  background: #a5d8b8;
}
.invite-hstep-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e5ebf7;
  color: #5e6678;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.invite-hstep[data-state="active"] .invite-hstep-num {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(57, 100, 254, 0.16);
}
.invite-hstep[data-state="done"] .invite-hstep-num {
  background: #16a34a;
  color: #fff;
}
.invite-hstep-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.25;
}
.invite-hstep[data-state="active"] .invite-hstep-label,
.invite-hstep[data-state="done"] .invite-hstep-label {
  color: var(--ink);
  font-weight: 600;
}
.invite-guide-status {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.invite-android-guide[data-downloaded="true"] .invite-guide-status {
  color: #166534;
  font-weight: 500;
}

.invite-mini-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.invite-mini-steps li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.invite-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: #e4ecff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}
.invite-step-text {
  flex: 1;
  min-width: 0;
}
.invite-desktop-steps {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f9ff;
  border: 1px solid #e4ebff;
}

.invite-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9aa2b2;
  font-size: 12px;
}
.invite-divider::before,
.invite-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.invite-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 16px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: #f8faff;
  border: 1px solid #dce5ff;
  font-size: 13px;
}
.invite-code-label { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.invite-code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  user-select: all;
  min-width: 0;
  overflow-wrap: anywhere;
}
.invite-copy-btn {
  padding: 4px 11px;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid #d6e1ff;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
}
.invite-copy-btn:hover { background: #e8eeff; }
.invite-foot-note {
  margin-top: 12px;
  font-size: 12px;
  color: #8d95a5;
}
.invite-foot-note:empty { display: none; }

.invite-qr-card {
  padding: 20px 18px;
  border-radius: 18px;
  background: #f8faff;
  border: 1px solid #dce5ff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.invite-qr-card[hidden] { display: none; }
.invite-qr-box {
  width: 160px;
  height: 160px;
  margin: 0 auto 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e7ecf7;
  background: #fff;
}
.invite-qr-box svg { display: block; width: 100%; height: 100%; }
.invite-qr-title { font-size: 14px; font-weight: 600; color: var(--ink); }

.invite-apk-fold {
  width: 100%;
  margin-top: 10px;
  font-size: 12.5px;
}
.invite-apk-fold summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  padding: 2px 10px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
}
.invite-apk-fold summary::-webkit-details-marker { display: none; }
.invite-apk-fold summary::after {
  content: "▾";
  font-size: 11px;
  transition: transform 0.15s ease;
}
.invite-apk-fold[open] summary::after {
  transform: rotate(180deg);
}
.invite-apk-fold summary:hover {
  background: #edf2ff;
  color: var(--blue);
}
.invite-apk-fold-body {
  margin-top: 6px;
}
.invite-desktop-apk {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--blue);
  background: #eef3ff;
  border-radius: 8px;
}
.invite-desktop-apk:hover {
  background: #e1e9ff;
}
.invite-qr-card .invite-dl-note {
  margin-top: 8px;
  text-align: left;
}

/* Grounded bottom contact + copyright footer inside invite mode */
.invite-bottom {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.invite-bottom-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.invite-bottom-label {
  font-size: 12.5px;
  color: var(--muted);
}
.invite-contact-pill {
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #dce4f4;
  background: #ffffff;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}
.invite-contact-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--wash);
}
.invite-bottom-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #8d95a5;
}
.invite-bottom-meta a {
  color: #6b7385;
}
.invite-bottom-meta a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* Native modal browser handoff guide (opened via showModal, closedby="any") */
.browser-guide {
  margin: 12px auto auto;
  padding: 0 16px 24px;
  width: 100%;
  max-width: 420px;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}
.browser-guide::backdrop {
  background: rgba(14, 18, 30, 0.88);
  backdrop-filter: blur(4px);
}
.browser-guide[open] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.browser-guide-pointer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  padding-right: 2px;
  animation: inviteFloatArrow 1.25s ease-in-out infinite;
}
.browser-guide-pill {
  margin-bottom: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.browser-guide-curve {
  color: #8fb4ff;
  flex-shrink: 0;
}
.browser-guide-card {
  padding: 20px;
  border-radius: 18px;
  background: #1d2333;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}
.browser-guide-card h2 { font-size: 18px; font-weight: 600; margin-bottom: 14px; color: #fff; }
.wx-menu-mock {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(143, 180, 255, 0.45);
}
.wx-menu-mock[hidden] { display: none; }
.wx-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(143, 180, 255, 0.18);
  color: #9ec0ff;
  flex-shrink: 0;
}
.wx-menu-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wx-menu-label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.wx-menu-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
}
.browser-guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.browser-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}
.browser-guide-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(143, 176, 255, 0.2);
  color: #a9c3ff;
  font-size: 12px;
  font-weight: 700;
}
.browser-guide-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.browser-guide-btn {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.browser-guide-btn.primary {
  border: 0;
  background: var(--blue);
  color: #fff;
}
.browser-guide-btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
@keyframes invitePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}
@keyframes inviteFloatArrow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -4px); }
}
@media (max-width: 820px) {
  .invite-shell { grid-template-columns: 1fr; padding: 26px 20px 22px; gap: 22px; }
  .invite-main { align-items: center; text-align: center; }
  .invite-tokens { justify-content: center; }
  .invite-qr-card { width: 100%; max-width: 280px; margin: 0 auto; }
}
@media (max-width: 370px) {
  .invite-shell { padding: 20px 16px 18px; }
  .invite-tokens-num { font-size: 36px; }
  .invite-tokens-unit { font-size: 16px; }
  .invite-android-guide { padding: 11px 10px; }
}

.footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.privacy-main {
  padding: 40px 0 64px;
}

.privacy-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 36px;
  border-radius: 20px;
  border: 1px solid #e6ebf5;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

.privacy-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.3;
  color: #0f172a;
}

.privacy-meta {
  margin: 0 0 20px;
  font-size: 13px;
  color: #64748b;
}

.privacy-callout {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(57, 100, 254, 0.25);
  background: rgba(57, 100, 254, 0.06);
  color: #0f172a;
}

.privacy-callout h2 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #2851e6;
}

.privacy-callout p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.privacy-callout p + p {
  margin-top: 8px;
}

.privacy-section {
  margin: 0 0 20px;
}

.privacy-section:last-child {
  margin-bottom: 0;
}

.privacy-section h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0f172a;
}

.privacy-section p,
.privacy-section li {
  font-size: 14.5px;
  line-height: 1.75;
  color: #334155;
}

.privacy-section p {
  margin: 0 0 8px;
}

.privacy-section ul {
  margin: 6px 0 8px;
  padding-left: 20px;
}

.privacy-section li {
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .privacy-main {
    padding: 24px 0 48px;
  }
  .privacy-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .privacy-card h1 {
    font-size: 21px;
  }
}
