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

* { box-sizing: border-box; }
[hidden] { display: none !important; }
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;
}

.remember-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.remember-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--action-blue, var(--brand));
  cursor: pointer;
}

.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;
}
.btn--danger {
  border-color: #fecaca;
  background: #fff5f5;
  color: var(--danger);
}
.btn--danger:hover {
  border-color: #fca5a5;
  background: #fee2e2;
}

.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;
}

.section-marketing .btn:not(.btn--secondary),
.auth-body .btn:not(.btn--secondary),
.section-marketing .btn--hero {
  border: 1px solid rgba(43, 109, 248, 0.18);
  background: linear-gradient(135deg, var(--action-blue), var(--action-blue-deep));
  color: #fff;
  box-shadow: 0 18px 40px rgba(43, 109, 248, 0.24);
}

.section-marketing .btn--secondary,
.auth-body .btn--secondary,
.section-marketing .btn--hero-ghost {
  border: 1px solid rgba(43, 109, 248, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  color: var(--action-blue-deep);
  box-shadow: none;
}

.section-marketing .btn:hover,
.auth-body .btn:hover {
  transform: translateY(-1px);
}

.section-marketing .btn--secondary:hover,
.auth-body .btn--secondary:hover,
.section-marketing .btn--hero-ghost:hover {
  border-color: rgba(43, 109, 248, 0.42);
  background: #eef4ff;
}
.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);
}

.home-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.home-info-card {
  min-height: 100%;
}
.home-advantage-grid,
.home-scenario-list,
.home-flow {
  display: grid;
  gap: 14px;
}
.home-advantage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-advantage,
.home-scenario,
.home-flow__step {
  border: 1px solid rgba(219, 228, 240, 0.92);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 22px;
}
.home-advantage,
.home-scenario {
  padding: 18px;
}
.home-advantage strong,
.home-scenario strong,
.home-flow__step strong {
  display: block;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.35;
}
.home-advantage p,
.home-scenario p,
.home-flow__step p {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}
.home-scenario-list {
  grid-template-columns: 1fr;
}
.home-scenario {
  position: relative;
  padding-left: 22px;
}
.home-scenario::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f79ff, #4f6cff);
}
.home-flow-card {
  background:
    radial-gradient(circle at 88% 0%, rgba(47, 121, 255, 0.08), transparent 28%),
    #fff;
}
.home-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.home-flow__step {
  padding: 18px;
}
.home-flow__step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: #eef4ff;
  color: #1d4ed8;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: end;
  margin: 16px 0 24px;
  padding: 34px 36px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 14%, rgba(47, 121, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #071127 0%, #0c1f41 58%, #08162d 100%);
  border: 1px solid rgba(111, 145, 210, 0.38);
  box-shadow: 0 26px 65px rgba(7, 17, 39, 0.28);
}
.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.legal-hero p {
  max-width: 820px;
  margin-top: 18px;
  color: rgba(236, 244, 255, 0.82);
}
.legal-hero__meta {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(151, 180, 255, 0.18);
}
.legal-hero__meta span,
.legal-hero__meta small {
  color: rgba(236, 244, 255, 0.72);
}
.legal-hero__meta strong {
  font-size: 1.3rem;
}
.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 96px;
}
.legal-toc h3 {
  margin: 0 0 12px;
  font-size: 0.96rem;
}
.legal-doc-links,
.legal-section-links {
  display: grid;
  gap: 10px;
}
.legal-doc-links {
  margin-bottom: 24px;
}
.legal-doc-link,
.legal-section-links a {
  display: block;
  border-radius: 16px;
  color: var(--text-soft);
}
.legal-doc-link {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
}
.legal-doc-link.is-active,
.legal-doc-link:hover {
  color: var(--action-blue-deep);
  background: #eef4ff;
  border-color: rgba(43, 109, 248, 0.32);
}
.legal-section-links a {
  padding: 9px 10px;
  font-size: 0.92rem;
}
.legal-section-links a:hover {
  color: var(--text);
  background: var(--surface-muted);
}
.legal-content {
  gap: 0;
}
.legal-content__intro {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.legal-content__intro h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}
.legal-content__intro p {
  margin-top: 8px;
  color: var(--text-soft);
}
.legal-section {
  scroll-margin-top: 110px;
  padding: 26px 0;
  border-bottom: 1px solid #edf2f7;
}
.legal-section h2 {
  margin-bottom: 14px;
  font-size: 1.32rem;
}
.legal-section p,
.legal-section li {
  color: var(--text-soft);
  line-height: 1.85;
}
.legal-section p + p {
  margin-top: 12px;
}
.legal-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}
.legal-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px dashed #c8d6ea;
  background: #f8fbff;
}
.legal-note strong {
  display: block;
  margin-bottom: 6px;
}
.legal-note p {
  color: var(--text-soft);
}

.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: 12px 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); }
.content-grid--menu { grid-template-columns: minmax(260px, 0.3fr) minmax(0, 0.7fr); align-items: flex-start; }
.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)); }
.payment-method-list { display: grid; gap: 12px; }

.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); }
.muted { 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: rgba(43, 109, 248, 0.32);
  color: var(--action-blue-deep);
}
.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;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  cursor: pointer;
}
.payment-option input { display: none; }
.payment-option:has(input:checked) {
  border-color: #304fe9;
  box-shadow: inset 0 0 0 1px #304fe9;
}
.payment-option:has(input:checked) .checkout-radio {
  border: 6px solid #304fe9;
}
.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; }
.form-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.security-code-row {
  grid-template-columns: minmax(0, 1fr) 176px;
  align-items: end;
}
.security-code-row__button {
  min-height: 54px;
  border-radius: 16px;
  white-space: nowrap;
  box-shadow: none;
}
.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; }
.pricing-filter-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.pricing-notes {
  grid-column: 1 / -1;
}
.pricing-note-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.pricing-note-row p {
  margin: 0;
  color: var(--text-soft);
  font-weight: 700;
}

.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); }

.price-pair,
.summary-price-pair {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.2;
}

.price-pair strong,
.summary-price-pair b {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.price-pair small,
.summary-price-pair small {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 800;
}

.summary-box .summary-price-pair {
  align-items: flex-end;
}

.proxy-card-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.proxy-owned-card {
  background: #fff;
  border: 1px solid rgba(219, 228, 240, 0.96);
  border-radius: 24px;
  padding: 30px 34px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}
.proxy-owned-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(220px, 1fr) minmax(180px, 0.75fr) minmax(180px, 0.75fr);
  gap: 24px 36px;
  font-size: 1.02rem;
}
.proxy-owned-grid span {
  color: var(--text-soft);
  font-weight: 800;
}
.proxy-owned-grid strong {
  color: var(--text);
  font-weight: 800;
}
.proxy-owned-grid__wide {
  grid-column: 1 / -1;
}
.proxy-auto-remark-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.proxy-remark-inline {
  margin-left: 18px;
  color: #475569 !important;
  font-weight: 800 !important;
}
.proxy-owned-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.proxy-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfd1ee;
  color: var(--brand);
  background: #fff;
  border-radius: 16px;
  box-shadow: none;
  min-height: 50px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}
.proxy-action-btn:hover {
  background: #eef4ff;
  border-color: #93b4f6;
}
.proxy-modal {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(7px);
}
.proxy-dialog {
  width: min(680px, calc(100vw - 34px));
  background: #fff;
  border: 1px solid rgba(219, 228, 240, 0.96);
  border-radius: 26px;
  padding: 28px;
  color: var(--text);
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.22);
}
.proxy-dialog--renew {
  width: min(720px, calc(100vw - 34px));
}
.proxy-dialog--auto,
.proxy-dialog--remark {
  width: min(640px, calc(100vw - 34px));
}
.proxy-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.proxy-dialog__head span {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proxy-dialog__x {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}
.proxy-dialog__x:hover {
  background: #f8fafc;
  border-color: #bfd1ee;
}
.proxy-dialog h2 {
  margin: 4px 0 0;
  font-size: 1.45rem;
}
.proxy-dialog-panel {
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.proxy-dialog-panel h3 {
  margin: 0 0 18px;
  font-size: 1.2rem;
}
.proxy-renew-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 24px;
  color: var(--text-soft);
  font-weight: 800;
}
.proxy-renew-summary strong {
  color: var(--text);
}
.proxy-dialog-panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.proxy-pay-method {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.radio-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text);
}
.radio-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}
.proxy-auto-desc {
  margin: 14px 0 24px;
  padding: 18px 20px;
  border: 1px dashed #bfd1ee;
  border-radius: 18px;
  background: #f8fbff;
  color: var(--text-soft);
  font-weight: 800;
  line-height: 1.8;
}
.proxy-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 26px;
}
.proxy-dialog-primary {
  min-height: 46px;
  border-radius: 14px;
  padding-inline: 26px;
}
.menu-permission-grid {
  display: grid;
  gap: 18px;
}
.menu-permission-group {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.menu-tree-child {
  display: inline-block;
  padding-left: 18px;
  color: var(--text-soft);
  font-weight: 800;
}
.menu-permission-group h3 {
  margin-bottom: 14px;
}
.menu-permission-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.menu-permission-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #dbe7f7;
  border-radius: 16px;
  background: #fff;
}
.menu-permission-item--parent {
  margin-bottom: 12px;
  border-color: #bdd3ff;
  background: #eef4ff;
}
.menu-permission-item input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}
.menu-permission-item.is-disabled {
  opacity: 0.58;
  background: #f5f8fc;
}
.menu-permission-item.is-disabled input {
  cursor: not-allowed;
}
.menu-permission-item strong,
.menu-permission-item small {
  display: block;
}
.menu-permission-item small {
  margin-top: 3px;
  color: var(--text-soft);
  font-weight: 700;
}
.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; }

.purchase-location-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.purchase-location-head h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  margin-bottom: 6px;
}

.purchase-location-head p {
  color: var(--text-soft);
  font-weight: 700;
}

.purchase-continent-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.purchase-continent-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 16px;
  color: var(--text-soft);
  font-weight: 900;
}

.purchase-continent-tab.is-active {
  color: #1d4ed8;
  background: #eef4ff;
}

.purchase-continent-tab.is-active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -4px;
  height: 3px;
  border-radius: 999px;
  background: #315cff;
}

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

.purchase-country-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.purchase-country-card:hover,
.purchase-country-card.is-active {
  border-color: #9bbcff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.purchase-country-card.is-active {
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
}

.purchase-country-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.98rem;
}

.purchase-country-card em {
  color: #94a3b8;
  font-style: normal;
  font-weight: 900;
}

.purchase-summary-card {
  align-self: start;
}

.purchase-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 4px 18px;
  color: var(--text);
}

.purchase-summary-total span {
  font-size: 1.08rem;
  font-weight: 900;
}

.purchase-summary-total strong {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 800;
}

.purchase-summary-total del {
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.purchase-summary-total b {
  font-size: 1.35rem;
}

.purchase-pay-button {
  margin-top: 4px;
}

.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--balance { background: #0f172a; }
.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;
}
.payment-qr-card {
  align-items: stretch;
}
.qr-box {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.qr-box--large {
  width: 100%;
  min-height: 320px;
}
.qr-box img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}
.qr-box--large img {
  width: min(280px, 100%);
  height: min(280px, 70vw);
}

.payment-state-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: center;
  min-height: 320px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.payment-state-card__icon {
  display: inline-grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

.payment-state-card strong {
  font-size: 2rem;
}

.payment-state-card span {
  color: var(--text-soft);
}

.payment-state-card--success {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4, #fff);
  color: #047857;
}

.payment-state-card--success .payment-state-card__icon {
  background: #dcfce7;
  color: #10b981;
}

.payment-state-card--expired {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fef2f2, #fff);
  color: #b91c1c;
}

.payment-state-card--expired .payment-state-card__icon {
  background: #fee2e2;
  color: #dc2626;
}

.recharge-countdown {
  display: grid;
  gap: 8px;
  justify-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #eff6ff, #f8fbff);
  color: #1e3a8a;
}

.recharge-countdown strong {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.08em;
}

.recharge-countdown small {
  color: var(--text-soft);
  text-align: center;
}

.recharge-countdown.is-expired {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.btn.is-disabled {
  pointer-events: none;
  opacity: 0.52;
  filter: grayscale(0.25);
}

@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: 260px;
  min-width: 260px;
  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--resource {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 8px;
  min-width: 232px;
  white-space: normal;
}
.app-table .col-action .action-row--resource .btn {
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
}
.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: minmax(0, 1fr) minmax(440px, 1.03fr);
  gap: 28px;
  align-items: stretch;
}
.auth-hero {
  background: #fff;
  color: var(--text);
  border-radius: 32px;
  padding: clamp(28px, 3.2vw, 42px);
  overflow: hidden;
}
.auth-hero--map {
  min-height: 650px;
  justify-content: center;
}
.auth-map-card {
  display: grid;
  gap: 24px;
  height: 100%;
}
.auth-map-card h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(2.1rem, 3.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--brand);
}
.auth-world {
  position: relative;
  min-height: 350px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.auth-world__dots {
  position: absolute;
  inset: 12px 0 0;
  z-index: 0;
  opacity: 0.78;
  background:
    radial-gradient(ellipse at 18% 35%, rgba(226, 232, 240, 0.96) 0 18%, transparent 18.5%),
    radial-gradient(ellipse at 37% 28%, rgba(226, 232, 240, 0.86) 0 12%, transparent 12.5%),
    radial-gradient(ellipse at 51% 48%, rgba(226, 232, 240, 0.9) 0 18%, transparent 18.5%),
    radial-gradient(ellipse at 68% 32%, rgba(226, 232, 240, 0.86) 0 16%, transparent 16.5%),
    radial-gradient(ellipse at 84% 56%, rgba(226, 232, 240, 0.82) 0 12%, transparent 12.5%),
    radial-gradient(circle, rgba(148, 163, 184, 0.24) 1.8px, transparent 2.2px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 14px 14px;
  border-radius: 28px;
  mask-image: linear-gradient(90deg, transparent 2%, #000 12%, #000 88%, transparent 98%);
}
.auth-route {
  position: absolute;
  z-index: 1;
  border-top: 3px dashed rgba(43, 109, 248, 0.48);
  border-radius: 50%;
  filter: drop-shadow(0 12px 24px rgba(43, 109, 248, 0.14));
}
.auth-route--one {
  width: 58%;
  height: 42%;
  top: 26%;
  left: 21%;
  transform: rotate(-8deg);
}
.auth-route--two {
  width: 44%;
  height: 32%;
  top: 47%;
  left: 30%;
  transform: rotate(-22deg);
}
.auth-world__logo {
  position: relative;
  z-index: 3;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2b6df8, #1e3a8a);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  border: 6px solid #e8eef7;
  box-shadow: 0 18px 45px rgba(43, 109, 248, 0.2);
}
.auth-float {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1e293b;
  font-weight: 850;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.92);
  white-space: nowrap;
}
.auth-float span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e3a8a;
  color: #fff;
  font-size: 1rem;
}
.auth-float--left { left: 2%; top: 34%; }
.auth-float--right { right: 0; top: 23%; }
.auth-float--center { right: 10%; bottom: 28%; }
.auth-float--bottom { left: 18%; bottom: 12%; }
.auth-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.auth-benefit {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.auth-benefit__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b6df8, #1e3a8a);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(43, 109, 248, 0.18);
}
.auth-benefit strong {
  color: #1e293b;
  font-size: 1.05rem;
}
.auth-benefit p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
  font-size: 0.94rem;
}
.auth-card {
  justify-content: center;
  border-radius: 32px;
  padding: clamp(28px, 3vw, 46px);
}
.auth-card__welcome {
  margin-bottom: clamp(34px, 5vw, 72px);
  color: var(--brand);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.auth-card .btn {
  min-height: 58px;
  border-radius: 18px;
}
.auth-card .input,
.auth-card .select {
  min-height: 58px;
  border-radius: 18px;
}
.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: 14px 28px 28px;
  gap: 10px;
}
.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  margin-bottom: 8px;
  border: 1px solid rgba(219, 228, 240, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.workspace-topbar__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.workspace-topbar__meta p {
  color: var(--text-soft);
}
.workspace-topbar__login {
  margin: 0;
  font-weight: 700;
}
.workspace-topbar__login strong {
  color: var(--text);
  font-weight: 800;
}
.workspace-topbar__page {
  margin: 0;
  font-weight: 700;
}
.workspace-topbar .action-row {
  gap: 10px;
}
.workspace-topbar .btn {
  padding: 10px 16px;
  border-radius: 14px;
}
.workspace-topbar .btn--secondary {
  margin-bottom: 0;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}
.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;
}

.ticket-modal-card,
.ticket-detail-card {
  width: min(960px, 100%);
}

.ticket-message-field small,
.ticket-upload-field small {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.ticket-textarea {
  min-height: 180px;
  border-color: #2b6df8;
  box-shadow: inset 0 0 0 1px rgba(43, 109, 248, 0.18);
}

.ticket-textarea--reply {
  min-height: 120px;
}

.ticket-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ticket-detail-summary div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  padding: 14px 16px;
}

.ticket-detail-summary span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.ticket-thread {
  display: grid;
  gap: 14px;
  max-height: min(48vh, 520px);
  overflow-y: auto;
  padding: 2px 8px 2px 0;
}

.ticket-thread::-webkit-scrollbar { width: 8px; }
.ticket-thread::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c8d6ea;
}

.ticket-message {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 16px;
}

.ticket-message--admin {
  background: linear-gradient(180deg, #eef6ff, #fff);
  border-color: #bfd4ff;
}

.ticket-message p {
  margin-top: 10px;
  color: var(--text);
  white-space: normal;
}

.ticket-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ticket-attachments a {
  display: block;
  width: 120px;
  height: 86px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-muted);
}

.ticket-attachments img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-file-list {
  display: grid;
  gap: 10px;
}

.ticket-file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.ticket-file-item span {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-file-remove {
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff5f5;
  color: var(--danger);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 7px 12px;
}

.ticket-file-remove:hover {
  border-color: #fca5a5;
  background: #fee2e2;
}

.ticket-reply-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.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,
  .home-info-grid,
  .home-advantage-grid,
  .home-flow,
  .legal-hero,
  .legal-layout,
  .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;
  }
  .legal-toc {
    position: static;
  }
  .form-grid,
  .form-grid--wide { grid-template-columns: 1fr; }
  .form-inline { grid-template-columns: 1fr; }
  .security-code-row { grid-template-columns: 1fr; }
  .security-code-row__button { width: 100%; }
  .ticket-detail-summary { grid-template-columns: 1fr; }
  .ticket-thread { max-height: none; }
  .ticket-attachments a { width: calc(50% - 5px); height: 96px; }
  .purchase-country-grid { grid-template-columns: 1fr; }
  .purchase-country-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .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; }
  .auth-hero--map { min-height: auto; }
  .auth-benefits { grid-template-columns: 1fr; }
  .auth-world { min-height: 320px; }
  .auth-float { font-size: 0.9rem; min-height: 46px; padding: 10px 14px; }
  .auth-float--left { left: 0; top: 32%; }
  .auth-float--right { right: 0; top: 20%; }
  .auth-float--center { right: 2%; bottom: 24%; }
  .auth-float--bottom { left: 10%; bottom: 8%; }
  .hero-neo { grid-template-columns: 1fr; }
  .hero-market__list { grid-template-columns: 1fr; }
  .proxy-owned-grid { grid-template-columns: 1fr 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); }
  .proxy-owned-card { padding: 22px 18px; }
  .proxy-owned-grid { grid-template-columns: 1fr; gap: 16px; }
  .proxy-owned-actions,
  .proxy-dialog-actions { flex-direction: column; align-items: stretch; }
  .proxy-action-btn { width: 100%; }
  .menu-permission-list { grid-template-columns: 1fr; }
  .hero,
  .card,
  .auth-hero,
  .stat-card { padding: 20px; }
  .auth-map-card { gap: 18px; }
  .auth-world { min-height: 290px; }
  .auth-world__logo {
    width: 78px;
    height: 78px;
    font-size: 1.25rem;
  }
  .auth-float {
    font-size: 0.78rem;
    gap: 7px;
    min-height: 40px;
    padding: 8px 10px;
  }
  .auth-float span {
    width: 22px;
    height: 22px;
    font-size: 0.78rem;
  }
  .auth-float--left { top: 30%; }
  .auth-float--right { top: 17%; }
  .auth-float--center { right: 0; bottom: 24%; }
  .auth-float--bottom { left: 4%; bottom: 8%; }
  .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; }
}
