:root {
  color-scheme: dark;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --bg: #0b0f17;
  --panel: rgba(16, 23, 37, 0.88);
  --panel-strong: rgba(22, 30, 46, 0.96);
  --border: rgba(148, 163, 184, 0.10);
  --border-strong: rgba(148, 163, 184, 0.16);
  --text: #f3f7ff;
  --muted: #97a3b6;
  --primary: #5b7cff;
  --primary-hover: #4c6fff;
  --primary-glow: rgba(91, 124, 255, 0.22);
  --secondary: rgba(22, 30, 46, 0.92);
  --secondary-hover: rgba(32, 43, 66, 0.98);
  --input: rgba(20, 28, 44, 0.96);
  --success: #22c55e;
  --error: #ef5a6f;
  --warning: #f59e0b;
  --tag: rgba(91, 124, 255, 0.12);
  --tag-soft: rgba(148, 163, 184, 0.10);
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.34);
  --shadow-float: 0 26px 80px rgba(2, 6, 23, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-feature-settings: "tnum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 14% 0%, rgba(91, 124, 255, 0.18), transparent 28%),
    radial-gradient(circle at 86% 4%, rgba(56, 189, 248, 0.12), transparent 24%),
    linear-gradient(180deg, #0b0f17 0%, #0d1320 100%);
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent);
}

body::after {
  content: "";
  position: fixed;
  top: -160px;
  left: 50%;
  width: min(860px, 90vw);
  height: 360px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(91, 124, 255, 0.16) 0%, rgba(91, 124, 255, 0.05) 36%, transparent 72%);
  filter: blur(32px);
  z-index: 0;
}

button,
a,
input,
select {
  font: inherit;
}

button,
a {
  transition: all 0.18s ease;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 12px;
  background: linear-gradient(180deg, rgba(11, 15, 23, 0.72), rgba(11, 15, 23, 0.24));
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--primary), #38bdf8);
  color: white;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.20);
}

.header-actions,
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.mobile-menu-toggle,
.mobile-menu-backdrop,
.mobile-menu-panel {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), #4f79ff);
  color: white;
  border-color: rgba(148, 163, 184, 0.10);
  box-shadow: 0 14px 34px var(--primary-glow);
}

.button.primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #6a88ff, var(--primary-hover));
  box-shadow: 0 18px 40px rgba(91, 124, 255, 0.28);
}

.button.secondary,
.button.ghost {
  background: var(--secondary);
  color: var(--text);
  border-color: var(--border-strong);
}

.button.secondary:hover,
.button.ghost:hover {
  background: var(--secondary-hover);
}

.button.wide {
  width: 100%;
}

.card {
  background: linear-gradient(180deg, rgba(17, 24, 38, 0.96), rgba(14, 20, 32, 0.92));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(20px);
}

.inset-card {
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.88), rgba(16, 22, 34, 0.84));
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-card,
.dashboard-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: rgba(147, 197, 253, 0.8);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 750;
}

h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h3 {
  font-size: 20px;
  line-height: 1.34;
  font-weight: 680;
}

h4 {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 650;
}

.hero-lead,
.muted {
  color: var(--muted);
  line-height: 1.72;
}

.hero-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stats-grid,
.steps-grid,
.bundle-overview-grid,
.scenario-grid,
.bundle-grid,
.checkbox-grid,
.dashboard-grid,
.config-grid,
.advanced-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.step-card,
.bundle-overview-card,
.bundle-select-card,
.scenario-card,
.checkbox-chip {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.82), rgba(16, 22, 35, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stat-card {
  padding: 16px;
}

.stat-card strong {
  display: block;
  font-size: 26px;
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--muted);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-cta-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-cta-actions,
.auth-foot-row {
  display: grid;
  gap: 10px;
}

.auth-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-shell {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.auth-shell-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-standalone-panel {
  max-width: 520px;
  width: 100%;
  justify-self: end;
}

.auth-mini-list div {
  min-height: 48px;
}

.auth-tab-row {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: rgba(20, 28, 44, 0.94);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.tab-button {
  min-width: 116px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tab-button.active {
  background: rgba(91, 124, 255, 0.18);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}

input,
select,
summary {
  color: var(--text);
}

input,
select {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  background: var(--input);
  padding: 0 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

input:focus,
select:focus {
  border-color: rgba(91, 124, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.16);
}

.code-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  align-items: end;
}

.grow {
  flex: 1;
}

.message-box {
  border-radius: 14px;
  padding: 14px 16px;
  line-height: 1.65;
  border: 1px solid transparent;
}

.message-box.info {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.26);
}

.message-box.success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}

.message-box.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 14px;
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card {
  padding: 20px;
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.bundle-overview-grid,
.bundle-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.bundle-overview-card,
.bundle-select-card {
  padding: 18px;
}

.bundle-overview-card p,
.bundle-select-card p,
.scenario-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.mini-meta,
.bundle-mini-list {
  margin-top: 12px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.scenario-showcase {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.scenario-accordion {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  overflow: hidden;
}

.scenario-accordion-summary {
  list-style: none;
  cursor: pointer;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
}

.scenario-accordion-summary::-webkit-details-marker {
  display: none;
}

.scenario-accordion-summary::after {
  content: "⌄";
  color: #bfdbfe;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.scenario-accordion[open] .scenario-accordion-summary::after {
  transform: rotate(180deg);
}

.scenario-accordion-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.scenario-grid-mobile {
  grid-template-columns: 1fr;
}

.scenario-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.scenario-card {
  padding: 18px;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--tag);
  color: #d9e5ff;
  border: 1px solid rgba(91, 124, 255, 0.16);
  font-size: 12px;
}

.tag.soft {
  background: var(--tag-soft);
  color: #d2d9e4;
  border-color: rgba(148, 163, 184, 0.16);
}

.tag-row.subdued .tag {
  background: rgba(148, 163, 184, 0.1);
}

.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.account-panel,
.topup-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-summary {
  display: grid;
  gap: 6px;
}

.two-column {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.bundle-select-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.bundle-select-card.selected {
  border-color: rgba(59, 130, 246, 0.72);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
  background: rgba(14, 25, 48, 0.96);
}

.bundle-card-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.bundle-card-top span {
  color: #93c5fd;
  font-size: 13px;
}

.checkbox-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.checkbox-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  cursor: pointer;
}

.checkbox-chip input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
}

pre {
  margin: 0;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(11, 17, 28, 0.96), rgba(8, 13, 23, 0.98));
  padding: 16px;
  color: #dbeafe;
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  line-height: 1.7;
}

.qr-panel {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(59, 130, 246, 0.3);
  background: rgba(15, 23, 42, 0.55);
}

.qr-panel img {
  width: min(100%, 260px);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: white;
  padding: 10px;
}

.advanced-panel {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(8, 15, 30, 0.55);
  padding: 14px 16px;
}

.advanced-panel summary {
  cursor: pointer;
  font-weight: 600;
}

.advanced-grid,
.config-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 14px 0;
}

.compact-row {
  justify-content: flex-end;
}

.actions-row {
  margin: 18px 0 14px;
}

@media (max-width: 1080px) {
  .hero-card,
  .dashboard-hero,
  .two-column,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    padding-top: 18px;
  }
}

@media (max-width: 720px) {
  .page,
  .site-header {
    width: min(100% - 18px, 1240px);
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 14px 0 10px;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand small {
    display: none;
  }

  .desktop-actions {
    display: none;
  }

  .dashboard-desktop-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.85);
    color: #dbeafe;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
  }

  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(2, 6, 23, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .mobile-menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-panel {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 50;
    width: min(86vw, 340px);
    height: 100dvh;
    padding: 16px;
    border-left: 1px solid var(--border);
    background: rgba(8, 15, 30, 0.98);
    box-shadow: -20px 0 60px rgba(2, 6, 23, 0.45);
    transform: translateX(108%);
    transition: transform 0.22s ease;
    pointer-events: none;
    flex-direction: column;
    gap: 14px;
  }

  .mobile-menu-panel.open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-menu-actions {
    display: grid;
    gap: 10px;
  }

  .card {
    border-radius: 16px;
    padding: 16px;
  }

  .stats-grid,
  .bundle-overview-grid,
  .bundle-grid,
  .scenario-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .code-row {
    grid-template-columns: 1fr;
  }

  .hero-actions-row .button {
    width: 100%;
  }

  .dashboard-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 10px;
  }

  .dashboard-page .actions-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-page .actions-row .button {
    width: 100%;
  }

  .dashboard-page .compact-row {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-page .compact-row .button {
    flex: 1;
  }

  .dashboard-page .section-head.compact {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head {
    align-items: flex-start;
  }

  h1 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .page,
  .site-header {
    width: calc(100% - 12px);
  }

  h1 {
    font-size: 28px;
    line-height: 1.22;
  }

  .button {
    min-height: 44px;
  }

  .floating-toast {
    top: 72px;
  }

  .dashboard-shortcuts {
    grid-template-columns: 1fr;
  }
}

.centered-card {
  width: min(760px, 100%);
  margin: 0 auto;
}

.centered-actions {
  justify-content: center;
}

.compact-stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.pill.soft {
  background: rgba(148, 163, 184, 0.14);
  color: #d7e0eb;
  border-color: rgba(148, 163, 184, 0.16);
}

.pill.warning {
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.22);
}

.hero-saas-card {
  grid-template-columns: 1.15fr 0.85fr;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-visual-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
}

.flow-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-node {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.84), rgba(16, 22, 35, 0.80));
}

.flow-node.active {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.26), rgba(14, 165, 233, 0.08));
  border-color: rgba(96, 165, 250, 0.34);
}

.flow-node span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
  font-weight: 700;
}

.flow-node p {
  margin-top: 6px;
  color: var(--muted);
}

.feature-band,
.architecture-card,
.get-started-card {
  overflow: hidden;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.84), rgba(16, 22, 35, 0.80));
}

.feature-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(91, 124, 255, 0.18);
  margin-bottom: 14px;
  font-size: 20px;
}

.qa-grid .feature-card {
  background: rgba(15, 23, 42, 0.7);
}

.get-started-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: start;
}

.get-started-copy {
  display: flex;
  align-items: stretch;
}

.check-list {
  display: grid;
  gap: 12px;
  width: 100%;
}

.check-list div {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.84), rgba(16, 22, 35, 0.80));
}

.dashboard-banner {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.dashboard-banner-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.dashboard-shortcuts {
  display: none;
  gap: 10px;
  padding: 12px;
}

.dashboard-code-block {
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-status-strip {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.billing-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-banner-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-metric-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.84), rgba(16, 22, 35, 0.80));
}

.mini-metric-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

.mini-metric-card span {
  color: var(--muted);
}

.menu-shell {
  position: relative;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  min-width: 220px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.92), rgba(16, 22, 35, 0.88));
  color: var(--text);
  cursor: pointer;
}

.user-menu-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}

.user-menu-copy strong,
.user-menu-copy small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-copy small {
  color: var(--muted);
}

.user-menu-caret {
  color: #bfdbfe;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 40px));
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.98), rgba(15, 21, 34, 0.96));
  box-shadow: var(--shadow-float);
}

.user-menu-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.user-menu-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.user-menu-stat span,
.user-menu-meta {
  color: var(--muted);
}

.user-menu-stat strong {
  font-size: 18px;
}

.user-menu-actions {
  display: grid;
  gap: 10px;
}

.billing-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.billing-card-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.topup-form-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.86), rgba(16, 22, 35, 0.82));
}

.no-margin {
  margin-bottom: 0;
}

.payment-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.payment-h5-page {
  width: min(560px, calc(100% - 20px));
}

.payment-h5-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  box-shadow: var(--shadow-float);
}

.payment-h5-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.payment-h5-amount {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(91, 124, 255, 0.24);
  background: linear-gradient(145deg, rgba(46, 72, 162, 0.28), rgba(91, 124, 255, 0.10));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.payment-h5-amount span {
  color: #bfdbfe;
  font-size: 13px;
}

.payment-h5-amount strong {
  font-size: clamp(34px, 8vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-shadow: 0 8px 26px rgba(91, 124, 255, 0.16);
}

.payment-h5-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(17, 24, 38, 0.88);
  color: #dbeafe;
}

.payment-status-chip.pending {
  border-color: rgba(245, 158, 11, 0.28);
  color: #fde68a;
}

.payment-status-chip.paid {
  border-color: rgba(34, 197, 94, 0.32);
  color: #bbf7d0;
}

.payment-h5-actions {
  display: grid;
  gap: 10px;
}

.payment-h5-summary {
  display: grid;
  gap: 12px;
}

.payment-h5-summary h2 {
  font-size: 18px;
}

.payment-method-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.84), rgba(16, 22, 35, 0.80));
}

.payment-method-alipay {
  border-color: rgba(59, 130, 246, 0.26);
}

.payment-method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--primary), #38bdf8);
  color: white;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.18);
}

.test-pay-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.08);
}

.test-pay-copy {
  display: grid;
  gap: 6px;
}

@media (max-width: 1080px) {
  .hero-saas-card,
  .dashboard-banner,
  .billing-layout,
  .auth-shell,
  .get-started-layout,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .auth-standalone-panel {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .user-menu-trigger {
    min-width: 160px;
  }

  .trust-strip,
  .payment-h5-status-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-saas-card,
  .dashboard-banner {
    gap: 18px;
  }

  .payment-h5-page {
    width: calc(100% - 16px);
  }

  .payment-h5-card {
    padding: 16px;
  }
}

.order-summary-list {
  display: grid;
  gap: 10px;
}


.ledger-list {
  display: grid;
  gap: 12px;
}

.ledger-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.84), rgba(16, 22, 35, 0.80));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ledger-card-head,
.ledger-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ledger-head-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ledger-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.ledger-badge.credit {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.18);
}

.ledger-badge.debit {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.18);
}

.ledger-amount {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ledger-amount.credit {
  color: #86efac;
}

.ledger-amount.debit {
  color: #fbbf24;
}

.ledger-card-body {
  display: grid;
  gap: 6px;
}

.ledger-detail {
  color: var(--text);
  line-height: 1.65;
}

.ledger-meta,
.ledger-card-foot {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.empty-state {
  padding: 28px 18px;
  border-radius: 16px;
  border: 1px dashed var(--border-strong);
  background: rgba(20, 28, 44, 0.40);
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.62);
}

.summary-row span {
  color: var(--muted);
}

.summary-row strong {
  text-align: right;
}

.summary-row.highlight {
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(30, 64, 175, 0.14);
}

.summary-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.6;
}

.floating-toast {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  min-width: 220px;
  max-width: min(90vw, 420px);
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.26);
  background: rgba(34, 197, 94, 0.14);
  color: #dcfce7;
  box-shadow: 0 18px 50px rgba(8, 15, 30, 0.35);
  text-align: center;
  backdrop-filter: blur(12px);
}


.hero-copy h1,
.auth-shell-copy h1,
.dashboard-banner h1 {
  background: linear-gradient(180deg, #ffffff 0%, #dce8ff 58%, #afc4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-card,
.flow-node,
.topup-form-card,
.user-menu-dropdown,
.mobile-menu-panel,
.dashboard-shortcuts,
.scenario-accordion,
.qr-panel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dashboard-shortcuts,
.topup-form-card,
.user-menu-trigger,
.user-menu-dropdown,
.auth-standalone-panel,
.payment-h5-card,
.test-pay-panel {
  border-color: var(--border-strong);
}

.dashboard-code-block,
#ledgerOutput,
#installOutput,
#bundleSummary,
#wechatBindingOutput {
  font-family: var(--font-mono);
}

.summary-row {
  min-height: 50px;
  border-radius: 14px;
  border-color: var(--border);
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.80), rgba(16, 22, 35, 0.76));
}

.summary-row.highlight {
  border-color: rgba(91, 124, 255, 0.24);
  background: rgba(91, 124, 255, 0.10);
}

.payment-h5-actions .button.primary {
  min-height: 48px;
  font-size: 15px;
}

.floating-toast.error {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.14);
  color: #fee2e2;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pricing-option {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.84), rgba(16, 22, 35, 0.80));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pricing-option:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 124, 255, 0.34);
}

.pricing-option.selected {
  border-color: rgba(91, 124, 255, 0.42);
  background: linear-gradient(180deg, rgba(34, 53, 111, 0.72), rgba(16, 22, 35, 0.88));
  box-shadow: 0 16px 36px rgba(32, 48, 98, 0.22);
}

.pricing-option-head,
.selected-plan-meta-row,
.payment-package-meta,
.payment-package-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pricing-option-badge {
  color: var(--muted);
  font-size: 12px;
}

.pricing-option-price {
  display: grid;
  gap: 4px;
}

.pricing-option-price strong {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pricing-option-price span,
.pricing-option-desc,
.selected-plan-card .muted,
.payment-package-card .muted {
  color: var(--muted);
}

.selected-plan-card,
.payment-package-card,
.service-note-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.86), rgba(16, 22, 35, 0.82));
}

.selected-plan-head {
  display: grid;
  gap: 10px;
}

.selected-plan-meta-row.subdued {
  color: var(--muted);
  font-size: 13px;
}

.price-mark {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #ffffff;
}

.token-mark {
  font-family: var(--font-mono);
  color: #a5d8ff;
}

.service-note-card h2,
.service-note-card h3 {
  font-size: 18px;
}

.service-note-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.payment-package-card {
  border-color: rgba(91, 124, 255, 0.28);
  background: linear-gradient(145deg, rgba(34, 53, 111, 0.34), rgba(16, 22, 35, 0.88));
}

.payment-benefit-card {
  border-color: var(--border);
}

@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-option {
    padding: 14px;
  }

  .pricing-option-price strong {
    font-size: 22px;
  }

  .selected-plan-card,
  .payment-package-card,
  .service-note-card {
    padding: 16px;
  }
}

.order-summary-list .summary-row {
  align-items: flex-start;
  padding-top: 14px;
  padding-bottom: 14px;
}

.order-summary-list .summary-row strong {
  max-width: 62%;
  line-height: 1.6;
  white-space: normal;
}

@media (max-width: 540px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .order-summary-list .summary-row strong {
    max-width: 56%;
  }
}

.public-page-stack {
  display: grid;
  gap: 20px;
}

.public-hero-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.static-pricing-card {
  cursor: default;
}

.static-pricing-card:hover {
  transform: none;
}

.public-support-grid .feature-card p {
  line-height: 1.7;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 40px;
  padding: 0 0 12px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 24, 38, 0.96), rgba(14, 20, 32, 0.92));
  box-shadow: var(--shadow);
}

.site-footer-grid h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.site-footer-grid p,
.footer-meta-list,
.footer-link-list,
.site-footer-meta {
  color: var(--muted);
  line-height: 1.7;
}

.footer-link-list,
.footer-meta-list {
  display: grid;
  gap: 8px;
}

.footer-link-list a,
.site-footer-meta a {
  color: #c8dbff;
  text-decoration: none;
}

.footer-link-list a:hover,
.site-footer-meta a:hover {
  color: white;
}

.site-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 2px 0;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .public-hero-card,
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-footer {
    width: calc(100% - 16px);
    margin-bottom: 24px;
  }

  .site-footer-grid {
    padding: 16px;
  }

  .site-footer-meta {
    gap: 8px;
    flex-direction: column;
  }
}

.captcha-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  align-items: end;
}

.captcha-panel {
  display: grid;
  gap: 8px;
  width: 156px;
}

.captcha-panel img {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 23, 42, 0.72);
}

@media (max-width: 720px) {
  .captcha-row {
    grid-template-columns: 1fr;
  }

  .captcha-panel {
    width: 100%;
  }
}


.auth-page-compact {
  width: min(680px, calc(100% - 24px));
}

.auth-shell-single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.auth-shell-single .auth-standalone-panel {
  justify-self: center;
  max-width: 560px;
}
