:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-muted: #f7f9fc;
  --surface-dark: #0f172a;
  --text: #0f172a;
  --text-soft: #475569;
  --line: #dbe4f0;
  --brand: #0f172a;
  --brand-2: #2b6df8;
  --success: #0f9f66;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(circle at top left, #eef5ff 0%, var(--bg) 42%, #eef2f8 100%);
  color: var(--text);
  font: 16px/1.6 "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(219, 228, 240, 0.88);
}

.topbar__inner,
.footer__inner,
.page-head,
.hero,
.content-grid,
.grid-2,
.grid-3,
.stat-grid,
.form-grid,
.catalog-grid,
.tile-grid,
.action-row,
.badge-row,
.chip-row,
.inline-meta,
.mini-grid,
.summary-box,
.progress-row,
.split-head,
.app-shell {
  display: flex;
}

.topbar__inner,
.footer__inner,
.page-head,
.inline-meta,
.progress-row,
.split-head {
  justify-content: space-between;
  align-items: center;
}

.topbar__inner { min-height: 76px; gap: 20px; }
.brand { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.04em; }
.brand--sidebar { color: #fff; }
.topnav { display: flex; gap: 12px; flex-wrap: wrap; }
.topnav__link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
}
.topnav__link.is-active,
.topnav__link:hover { background: #eef4ff; color: var(--brand); }
.topbar__actions { display: flex; gap: 12px; }

.btn {
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), #1e293b);
  color: #fff;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.btn--sm {
  padding: 10px 14px;
  font-size: 0.92rem;
  border-radius: 14px;
}
.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.marketing-main,
.auth-main { padding: 26px 0 44px; }

.page-head {
  gap: 20px;
  margin: 0 0 24px;
  padding: 18px 0;
}
.page-head--marketing { padding-top: 28px; }
.page-head h1 { font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.1; }
.page-head p { margin-top: 10px; color: var(--text-soft); max-width: 720px; }
.marketing-main--home { padding-top: 18px; }
.eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #5f7ba8;
  font-weight: 700;
  margin-bottom: 10px;
}

.badge-row,
.action-row,
.chip-row,
.inline-meta,
.mini-grid,
.payment-grid { gap: 12px; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}
.badge--slate { background: #e8eef7; color: #334155; }
.badge--blue { background: #deebff; color: #1d4ed8; }
.badge--green { background: #dff8ee; color: #047857; }
.badge--amber { background: #fff0d8; color: #b45309; }
.badge--rose { background: #ffe2e2; color: #b91c1c; }

.hero,
.content-grid,
.grid-2,
.grid-3,
.stat-grid,
.catalog-grid,
.tile-grid {
  gap: 20px;
}

.hero {
  align-items: stretch;
  padding: 30px;
  border-radius: 32px;
  background: linear-gradient(135deg, #07101f 0%, #13284b 44%, #0f172a 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.hero__content,
.hero__panel,
.stack,
.card,
.auth-hero,
.workspace,
.sidebar,
.auth-card,
.list-card,
.country-card,
.product-card {
  display: flex;
  flex-direction: column;
}
.hero__content { flex: 1.2; gap: 18px; }
.hero__content h2 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.03; }
.hero__content p { color: rgba(255, 255, 255, 0.78); }
.hero__panel { flex: 0.95; gap: 20px; }

.home-stage {
  display: grid;
  gap: 24px;
  margin: 16px 0 28px;
}
.hero-neo {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(520px, 0.98fr);
  gap: 34px;
  padding: 34px 36px;
  border-radius: 32px;
  color: #fff;
  border: 1px solid rgba(111, 145, 210, 0.42);
  background:
    radial-gradient(circle at 16% 18%, rgba(38, 101, 246, 0.18), transparent 28%),
    radial-gradient(circle at 88% 84%, rgba(28, 78, 214, 0.18), transparent 25%),
    linear-gradient(135deg, #071127 0%, #091a36 54%, #08162d 100%);
  box-shadow: 0 28px 70px rgba(7, 17, 39, 0.35);
}
.hero-neo__main,
.hero-neo__aside,
.hero-insights,
.showcase-card,
.showcase-card__copy,
.showcase-visual {
  display: flex;
  flex-direction: column;
}
.hero-neo__main { gap: 16px; justify-content: center; min-width: 0; }
.hero-neo__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8dc1ff;
  font-size: 0.98rem;
  font-weight: 700;
}
.hero-neo__eyebrow-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(112, 165, 255, 0.34);
  background: rgba(43, 109, 248, 0.12);
}
.hero-neo h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.85rem, 4.45vw, 4.55rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.hero-neo p {
  max-width: 700px;
  font-size: 1.02rem;
  color: rgba(236, 244, 255, 0.8);
}
.hero-neo__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn--hero {
  min-width: 146px;
  border: 1px solid rgba(123, 169, 255, 0.28);
  background: linear-gradient(135deg, #2f79ff, #3d59ff);
  box-shadow: 0 18px 40px rgba(47, 121, 255, 0.28);
}
.btn--hero-ghost {
  min-width: 146px;
  border: 1px solid rgba(138, 169, 221, 0.34);
  background: rgba(8, 20, 45, 0.42);
  box-shadow: none;
  color: #fff;
}
.btn--hero-wide {
  width: fit-content;
  min-width: 220px;
}
.hero-neo__chips,
.showcase-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-chip,
.showcase-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(120, 148, 196, 0.24);
  background: rgba(8, 20, 45, 0.28);
  color: rgba(236, 244, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 600;
}
.hero-neo__aside { gap: 22px; justify-content: center; min-width: 0; }
.hero-market {
  padding: 24px 24px 22px;
  border-radius: 28px;
  border: 1px solid rgba(110, 142, 202, 0.22);
  background: linear-gradient(180deg, rgba(18, 38, 77, 0.96), rgba(11, 28, 60, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.hero-market__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero-market__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(128, 153, 197, 0.14);
}
.hero-market__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.hero-market__item div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hero-market__item strong,
.hero-market__item span {
  white-space: nowrap;
}
.hero-market__item strong { font-size: 1rem; }
.hero-market__item span { color: rgba(236, 244, 255, 0.82); }
.hero-flag {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  position: relative;
  flex: 0 0 52px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  background: #fff;
}
.hero-flag--jp::before,
.hero-flag--sg::before,
.hero-flag--th::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.hero-flag--jp::before {
  inset: 12px;
  border-radius: 999px;
  background: #cf2437;
}
.hero-flag--sg::before {
  background: linear-gradient(180deg, #df2f43 0 50%, #fff 50% 100%);
}
.hero-flag--sg::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 12px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 4px solid #fff;
  border-right-color: transparent;
  transform: rotate(-20deg);
}
.hero-flag--th::before {
  background: linear-gradient(180deg, #d63b49 0 20%, #fff 20% 35%, #1d3571 35% 65%, #fff 65% 80%, #d63b49 80% 100%);
}
.hero-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.hero-insight {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 20px;
  min-height: 150px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(219, 228, 240, 0.92);
  color: var(--text);
  box-shadow: var(--shadow);
}
.hero-insight__icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #dbeafe, #eef4ff);
  color: #1d4ed8;
  font-size: 1.8rem;
  font-weight: 800;
  flex: 0 0 58px;
}
.hero-insight h3 {
  margin: 0 0 8px;
  font-size: 1.38rem;
  line-height: 1.18;
}
.hero-insight p {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.showcase-card {
  min-height: 208px;
  padding: 20px 24px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(111, 145, 210, 0.38);
  color: #fff;
  background:
    radial-gradient(circle at 85% 25%, rgba(59, 130, 246, 0.18), transparent 20%),
    linear-gradient(135deg, #091730 0%, #0b1d3c 58%, #08152b 100%);
  box-shadow: 0 24px 60px rgba(7, 17, 39, 0.24);
}
.showcase-card__copy {
  position: relative;
  z-index: 1;
  gap: 10px;
  max-width: 58%;
}
.showcase-badge {
  width: fit-content;
  padding: 7px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(54, 105, 255, 0.92), rgba(80, 100, 255, 0.72));
  border: 1px solid rgba(151, 180, 255, 0.18);
  font-size: 0.84rem;
  font-weight: 700;
}
.showcase-card h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.14;
  margin: 0;
}
.showcase-card p {
  color: rgba(236, 244, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.65;
}
.showcase-visual {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 34%;
  min-width: 170px;
  min-height: 150px;
  align-items: center;
  justify-content: flex-end;
}
.showcase-orb {
  position: absolute;
  inset: auto 8px 6px auto;
  width: 108px;
  height: 108px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(66, 114, 255, 0.9), rgba(8, 30, 74, 0.88));
  transform: rotate(18deg);
  box-shadow: 0 22px 45px rgba(29, 78, 216, 0.25);
}
.showcase-cloud {
  position: absolute;
  right: 22px;
  bottom: 48px;
  width: 112px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px 999px 20px 20px;
  background: radial-gradient(circle at 30% 30%, #8cb4ff, #365dff 56%, #17337c 100%);
  color: #f8fbff;
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 10px 20px rgba(8, 20, 45, 0.45);
}
.showcase-token {
  position: absolute;
  right: 4px;
  bottom: 6px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(95, 124, 255, 0.94), rgba(46, 79, 200, 0.88));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: rotate(14deg);
  box-shadow: 0 16px 34px rgba(46, 79, 200, 0.22);
  font-size: 0.76rem;
}
.showcase-ring {
  position: absolute;
  right: -6px;
  bottom: 6px;
  width: 186px;
  height: 54px;
  border-radius: 999px;
  border: 2px solid rgba(67, 124, 255, 0.84);
  box-shadow: 0 0 22px rgba(67, 124, 255, 0.4), inset 0 0 22px rgba(67, 124, 255, 0.24);
}
.showcase-bankcard {
  position: absolute;
  right: 18px;
  bottom: 34px;
  width: 156px;
  height: 96px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(155deg, #2a344a 0%, #0d1325 100%);
  border: 1px solid rgba(147, 166, 212, 0.14);
  color: #f8fbff;
  transform: rotate(-7deg);
  box-shadow: 0 24px 44px rgba(2, 6, 23, 0.4);
}
.showcase-bankcard span {
  display: block;
  opacity: 0.72;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}
.showcase-bankcard strong {
  display: block;
  margin-top: 36px;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
}
.showcase-shield {
  position: absolute;
  right: -2px;
  bottom: 18px;
  width: 42px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 18%, 100% 56%, 50% 100%, 0% 56%, 0% 18%);
  background: linear-gradient(180deg, rgba(143, 177, 255, 0.98), rgba(58, 91, 228, 0.92));
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.28);
}

.card,
.auth-hero {
  background: var(--surface);
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  gap: 16px;
}
.card--glass {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.card--subtle { background: var(--surface-muted); box-shadow: none; }
.card--success { background: #ecfdf5; border-color: #a7f3d0; }
.card--danger { background: #fef2f2; border-color: #fecaca; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0; }
.stat-card {
  background: var(--surface);
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.stat-card__label { color: var(--text-soft); font-size: 0.92rem; }
.stat-card__value { font-size: 2rem; font-weight: 800; margin: 10px 0 8px; }
.stat-card__hint { color: #64748b; font-size: 0.86rem; }

.content-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; margin: 24px 0; }
.content-grid--faq { grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr); align-items: stretch; }
.content-grid--rates { grid-template-columns: minmax(280px, 0.3fr) minmax(0, 0.7fr); }
.content-grid--settlements { grid-template-columns: minmax(300px, 0.3fr) minmax(0, 0.7fr); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0; }
.catalog-grid,
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
.payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.section-heading p,
.stack p,
.list-card p,
.country-card p,
.product-card p,
.auth-hero p,
.notice { color: var(--text-soft); }

.country-card,
.product-card,
.list-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f9fbff);
  border-radius: 22px;
  padding: 18px;
  gap: 14px;
}
.country-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.country-card__price { font-size: 2rem; font-weight: 800; }

.tile {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}
.faq-category-panel {
  position: sticky;
  top: 96px;
  min-height: calc(100vh - 170px);
  align-self: stretch;
}
.faq-category-link {
  font-weight: 700;
}
.faq-category-link.is-active,
.faq-category-link:hover {
  background: #eef4ff;
  border-color: #bfd4ff;
  color: #1d4ed8;
}
.faq-list-scroll {
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  padding-right: 8px;
  scroll-behavior: smooth;
}
.faq-list-scroll::-webkit-scrollbar { width: 8px; }
.faq-list-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c8d6ea;
}
.tile--dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
}

.stack { gap: 16px; }
.stack.compact { gap: 8px; }

.payment-option {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  cursor: pointer;
}
.payment-option input {
  margin-top: 4px;
  accent-color: var(--brand-2);
}
.payment-option p { color: var(--text-soft); font-size: 0.92rem; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 0.92rem; font-weight: 700; }
.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
.textarea { min-height: 140px; resize: vertical; }
.rich-editor {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.rich-editor--quill .rich-editor__area {
  min-height: 220px;
  padding: 0;
}
.rich-editor--quill .ql-toolbar.ql-snow {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
  font-family: inherit;
}
.rich-editor--quill .ql-container.ql-snow {
  min-height: 220px;
  border: 0;
  font: inherit;
}
.rich-editor--quill .ql-editor {
  min-height: 220px;
  line-height: 1.8;
  font-size: 1rem;
}
.rich-editor--quill .ql-picker {
  color: var(--text);
}
.rich-editor--quill .ql-editor img,
.rich-text img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 14px;
}
.rich-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}
.rich-editor__toolbar button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  cursor: pointer;
}
.rich-editor__toolbar button:hover { background: #eef4ff; }
.rich-editor__area {
  min-height: 180px;
  padding: 16px;
  line-height: 1.75;
  outline: none;
}
.rich-editor__area:empty::before {
  content: attr(data-placeholder);
  color: var(--text-soft);
}
.rich-editor__area blockquote,
.rich-text blockquote {
  margin: 10px 0;
  padding: 10px 14px;
  border-left: 4px solid var(--brand-2);
  border-radius: 12px;
  background: #f8fbff;
  color: var(--text-muted);
}
.rich-editor__area ul,
.rich-editor__area ol,
.rich-text ul,
.rich-text ol {
  padding-left: 22px;
}
.rich-text {
  color: var(--text-muted);
  line-height: 1.8;
}
.rich-text p { margin: 0 0 10px; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text h2,
.rich-text h3,
.rich-text h4 {
  margin: 12px 0 8px;
  color: var(--text);
}
.rich-text a {
  color: var(--brand-2);
  font-weight: 700;
  text-decoration: none;
}
.rich-text a:hover { text-decoration: underline; }
.rich-text .ql-align-center { text-align: center; }
.rich-text .ql-align-right { text-align: right; }
.rich-text .ql-align-justify { text-align: justify; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid--wide { grid-template-columns: 1.4fr 1fr auto; align-items: end; }
.field--full { grid-column: 1 / -1; }

.notice {
  border: 1px dashed var(--line);
  background: #fafcff;
  border-radius: 18px;
  padding: 14px 16px;
}
.notice--success {
  background: #ecfdf5;
  border-style: solid;
  border-color: #bbf7d0;
  color: #166534;
}
.notice--danger {
  background: #fef2f2;
  border-style: solid;
  border-color: #fecaca;
  color: #b91c1c;
}

.summary-box {
  display: grid;
  gap: 12px;
}
.summary-box div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.summary-box span { color: var(--text-soft); }
.hero-total {
  background: linear-gradient(135deg, var(--brand), #111827);
  color: #fff;
  border-radius: 24px;
  padding: 22px;
}
.hero-total span { display: block; opacity: 0.7; }
.hero-total strong { display: block; font-size: 2rem; margin-top: 8px; }

.recharge-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 22px;
  align-items: stretch;
  margin: 24px 0;
}
.recharge-stats {
  display: grid;
  gap: 22px;
}
.recharge-stat-card {
  min-height: 180px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 22px;
  align-content: center;
  padding: 30px 34px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(36, 50, 97, 0.05);
  overflow: hidden;
}
.recharge-stat-card--compact {
  min-height: 120px;
  grid-template-columns: 1fr;
}
.recharge-stat-card span {
  color: #a1a1aa;
  font-size: 0.98rem;
  font-weight: 700;
  min-width: 0;
}
.recharge-stat-card strong {
  grid-column: 2;
  display: block;
  color: #020617;
  font-size: clamp(2.1rem, 2.7vw, 3.1rem);
  line-height: 1;
  margin-top: 18px;
  min-width: 0;
  white-space: nowrap;
  letter-spacing: -0.05em;
}
.recharge-stat-card--compact strong { grid-column: 1; }
.recharge-stat-icon {
  grid-row: 1 / span 2;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.28em;
  color: #304fe9;
  background: #f1f4ff;
  font-weight: 900;
}
.recharge-stat-icon--dollar {
  letter-spacing: 0;
  font-size: 2.35rem;
}
.recharge-panel {
  min-height: 360px;
  display: grid;
  gap: 32px;
  padding: 52px 62px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(36, 50, 97, 0.05);
  min-width: 0;
  width: 100%;
}
.recharge-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
}
.amount-row {
  display: flex;
  align-items: center;
  gap: 22px;
}
.amount-row strong {
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  line-height: 1;
}
.recharge-editable-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #020617;
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  font-weight: 900;
  line-height: 1;
}
.recharge-editable-amount input {
  width: 4.2em;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: -0.04em;
  appearance: textfield;
}
.recharge-editable-amount input::-webkit-outer-spin-button,
.recharge-editable-amount input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}
.round-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #304fe9;
  background: #f0f3ff;
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 800;
}
.recharge-range {
  width: 100%;
  accent-color: #304fe9;
}
.quick-amounts {
  display: grid;
  grid-template-columns: repeat(6, minmax(88px, 1fr));
  gap: 10px;
  min-width: 0;
}
.quick-amounts button {
  border: 2px solid #304fe9;
  border-radius: 5px;
  background: #fff;
  color: #304fe9;
  min-height: 56px;
  padding: 10px 8px;
  cursor: pointer;
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  font-weight: 800;
}
.recharge-actions {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(220px, 0.32fr);
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.recharge-limit {
  border: 0;
  background: #edf0ff;
  color: #075172;
  font-weight: 800;
}
.recharge-submit {
  border-radius: 5px;
  background: #3041e8;
}
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  margin: 24px 0;
}
.checkout-card,
.checkout-summary-card {
  border-radius: 0;
  background: #fff;
  border: 0;
  box-shadow: none;
}
.checkout-card {
  padding: 30px;
}
.checkout-method-list {
  display: grid;
  gap: 14px;
}
.checkout-method {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}
.checkout-method input { display: none; }
.checkout-method.is-active,
.checkout-method:has(input:checked) {
  border-color: #304fe9;
  box-shadow: inset 0 0 0 1px #304fe9;
}
.checkout-radio {
  width: 22px;
  height: 22px;
  border: 2px solid #737373;
  border-radius: 50%;
}
.checkout-method:has(input:checked) .checkout-radio {
  border: 6px solid #304fe9;
}
.pay-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}
.pay-mark--wechat { background: #15b45f; }
.pay-mark--alipay { background: #12a8f6; }
.checkout-summary-card {
  padding: 0 22px 28px;
}
.checkout-summary-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid #ddd;
}
.cart-icon {
  font-size: 2rem;
  transform: rotate(-10deg);
}
.checkout-summary-card .summary-box {
  margin: 10px 0 20px;
}
.checkout-summary-card .summary-box div:last-child strong {
  font-size: 2rem;
}
.btn--wide { width: 100%; }
.checkout-terms {
  margin-top: 18px;
  color: #475569;
  font-size: 0.92rem;
}
.pay-result-card {
  border-radius: 14px;
}
.qr-box {
  display: inline-flex;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.qr-box img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

@media (max-width: 1500px) {
  .recharge-layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  }
  .recharge-stat-card {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 28px 30px;
  }
  .recharge-stat-icon {
    width: 66px;
    height: 66px;
  }
  .recharge-stat-card strong {
    font-size: clamp(1.9rem, 2.6vw, 2.75rem);
  }
  .recharge-panel {
    padding: 46px 52px;
  }
}

@media (max-width: 1320px) {
  .quick-amounts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .recharge-actions {
    grid-template-columns: 1fr;
  }
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.app-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.app-table th,
.app-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: top;
}
.app-table th {
  background: #f8fbff;
  color: #64748b;
  font-size: 0.9rem;
}
.app-table .col-action {
  width: 104px;
  min-width: 104px;
  white-space: nowrap;
}
.app-table td.col-action {
  vertical-align: middle;
}
.app-table .col-action .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  white-space: nowrap;
}
.app-table .col-action .action-row {
  flex-wrap: nowrap;
}
.app-table .col-action .action-row--audit {
  min-width: 280px;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.audit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.input--audit {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
}
.app-table .col-action .action-row--audit .btn {
  min-width: 64px;
}

.action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.inline-link {
  color: #1d4ed8;
  font-weight: 700;
}

.progress-list { display: flex; flex-direction: column; gap: 16px; }
.progress-row { gap: 16px; }
.progress-row span,
.progress-row strong { min-width: 68px; }
.progress {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: #e7edf6;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-2), #0ea5e9);
}

.site-footer { padding: 34px 0 50px; }
.footer__inner {
  border-top: 1px solid rgba(219, 228, 240, 0.9);
  padding-top: 24px;
  gap: 20px;
}
.footer__title { font-weight: 800; margin-bottom: 10px; }
.footer__links { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-soft); }

.auth-body { background: linear-gradient(180deg, #eef4ff, #f8fbff 38%, #f2f5fb 100%); }
.auth-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}
.auth-hero {
  background: linear-gradient(135deg, #07101f 0%, #10213b 55%, #0f172a 100%);
  color: #fff;
}
.auth-card { justify-content: center; }
.helper-text { color: var(--text-soft); }

.app-shell { align-items: stretch; min-height: 100vh; }
.sidebar {
  width: 300px;
  flex: 0 0 300px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #dbe4f0;
  padding: 24px 18px;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.sidebar__header p { color: #9fb0c8; margin-top: 8px; }
.nav-group h3 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #93a6c4;
  margin: 0 0 12px;
}
.nav-list { display: flex; flex-direction: column; gap: 8px; }
.nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  color: #d5deec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-link:hover,
.nav-link.is-active { background: rgba(255, 255, 255, 0.08); color: #fff; }

.workspace {
  flex: 1;
  min-width: 0;
  padding: 28px;
  gap: 20px;
}
.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 8px;
  border: 1px solid rgba(219, 228, 240, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.workspace-topbar__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.workspace-topbar__meta p {
  color: var(--text-soft);
}
.workspace-topbar__page {
  font-weight: 700;
}
.page-head {
  margin: 0 0 16px;
  padding: 4px 0 0;
  min-height: 0;
}
.page-head p {
  margin-top: 0;
}

.toolbar,
.toolbar__form,
.pagination,
.pagination__links,
.modal-card__head,
.pagination__per-page {
  display: flex;
}

.toolbar,
.pagination,
.modal-card__head {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.toolbar {
  flex-wrap: wrap;
}

.toolbar__form {
  flex: 1;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar__form .input,
.toolbar__form .select {
  min-width: 160px;
  flex: 1 1 160px;
}

.pagination {
  padding-top: 8px;
  flex-wrap: wrap;
}

.pagination__meta {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.pagination__links {
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pagination__per-page {
  align-items: center;
}

.select--compact {
  min-width: 132px;
}

.pagination__link {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.pagination__link.is-active {
  background: linear-gradient(135deg, var(--brand), #1e293b);
  border-color: transparent;
  color: #fff;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 20px 20px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(6px);
}

.modal-card {
  width: min(640px, 100%);
  max-height: calc(100vh - 68px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid rgba(219, 228, 240, 0.92);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.modal-card--wide {
  width: min(1180px, 100%);
}

.modal-card__head {
  margin-bottom: 16px;
}

.modal-card__head h2 {
  font-size: 1.2rem;
}

.content-preview {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.content-preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.content-preview__meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text-soft);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}
.content-preview h1 {
  margin-bottom: 18px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}
.content-preview__body {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.inline-link {
  color: var(--brand-2);
  font-weight: 700;
}

.inline-link:hover {
  text-decoration: underline;
}
.mobile-nav-toggle {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 35;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}

.empty-state {
  padding: 48px 28px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 26px;
}
.empty-state--large { margin-top: 60px; }

@media (max-width: 1100px) {
  .content-grid,
  .auth-grid,
.hero,
  .grid-2,
  .grid-3,
  .catalog-grid,
  .tile-grid,
  .stat-grid,
  .payment-grid,
  .recharge-layout,
  .checkout-grid,
  .showcase-grid,
  .hero-insights {
    grid-template-columns: 1fr !important;
    flex-direction: column;
  }

  .stat-grid { display: grid; }
  .faq-category-panel {
    position: static;
    min-height: auto;
  }
  .faq-list-scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .form-grid,
  .form-grid--wide { grid-template-columns: 1fr; }
  .quick-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recharge-actions { grid-template-columns: 1fr; }
  .recharge-stat-card strong { font-size: clamp(2.2rem, 8vw, 4rem); }
  .recharge-layout { grid-template-columns: 1fr !important; }
  .hero-neo { grid-template-columns: 1fr; }
  .hero-market__list { grid-template-columns: 1fr; }
  .showcase-visual {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    min-width: 0;
    min-height: 220px;
    margin-top: 8px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-102%);
    transition: transform 0.24s ease;
    z-index: 30;
    width: min(320px, 86vw);
    flex-basis: auto;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .mobile-nav-toggle { display: inline-flex; }
  .workspace { padding: 20px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1200px); }
  .topbar__inner { flex-wrap: wrap; padding: 12px 0; }
  .topnav,
  .topbar__actions { width: 100%; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .workspace-topbar { flex-direction: column; align-items: flex-start; top: 12px; }
  .toolbar,
  .toolbar__form,
  .pagination,
  .modal-card__head { flex-direction: column; align-items: stretch; }
  .modal-backdrop { padding: 20px 12px 12px; }
  .modal-card { padding: 18px; max-height: calc(100vh - 32px); }
  .hero,
  .card,
  .auth-hero,
  .stat-card { padding: 20px; }
  .recharge-panel,
  .checkout-card { padding: 24px; }
  .recharge-stat-card {
    grid-template-columns: 72px 1fr;
    min-height: 150px;
    padding: 24px;
  }
  .recharge-stat-icon {
    width: 64px;
    height: 64px;
  }
  .quick-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__content h2 { font-size: 2.2rem; }
}
