:root {
  color-scheme: dark;
  --bg: #080d14;
  --bg-elevated: #0f1722;
  --surface: #131d2a;
  --surface-2: #182434;
  --surface-3: #1d2a3b;
  --border: rgba(169, 191, 214, 0.14);
  --border-strong: rgba(169, 191, 214, 0.26);
  --text: #f4f8fb;
  --text-soft: #a8b8c8;
  --text-muted: #718195;
  --accent: #37d3b0;
  --accent-strong: #20b995;
  --accent-soft: rgba(55, 211, 176, 0.12);
  --danger: #ff6f7d;
  --warning: #ffc857;
  --blue: #4b8dff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  --container: 1180px;
  --font-sans: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 120, 0.18), transparent 28rem),
    radial-gradient(circle at 84% 4%, rgba(64, 89, 132, 0.16), transparent 24rem),
    var(--bg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(55, 211, 176, 0.65) 0 1px, transparent 1.5px);
  background-position: 0 0, 33px 51px;
  background-size: 97px 113px, 151px 167px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

::selection {
  color: #05110e;
  background: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:not(:disabled),
summary {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

img,
svg {
  display: block;
}

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

.icon-small {
  width: 16px;
  height: 16px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  color: #04110d;
  background: var(--accent);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.narrow-container {
  max-width: 780px;
}

.site-main {
  min-height: 70vh;
}

.space-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: -1;
  height: 820px;
  pointer-events: none;
  overflow: hidden;
}

.space-backdrop::before,
.space-backdrop::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(95, 159, 177, 0.1);
  border-radius: 50%;
}

.space-backdrop::before {
  top: -240px;
  left: 54%;
  width: 700px;
  height: 520px;
  transform: rotate(-12deg);
}

.space-backdrop::after {
  top: 80px;
  right: -110px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 35% 28%, rgba(53, 211, 176, 0.18), rgba(24, 48, 67, 0.04) 60%, transparent 62%);
  border-color: rgba(55, 211, 176, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(169, 191, 214, 0.08);
  background: rgba(8, 13, 20, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  width: min(var(--container), calc(100% - 48px));
  min-height: 76px;
  margin-inline: auto;
  gap: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 11px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(55, 211, 176, 0.42);
  border-radius: 50%;
  background: rgba(55, 211, 176, 0.08);
}

.brand-orbit {
  position: absolute;
  width: 30px;
  height: 12px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  transform: rotate(-32deg);
}

.brand-core {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(55, 211, 176, 0.9);
}

.brand-name {
  font-size: 19px;
  font-weight: 450;
  letter-spacing: 0;
}

.brand-name strong {
  color: var(--accent);
  font-weight: 750;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  padding: 26px 0 24px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 550;
  transition: color 160ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 10px;
}

.locale-switcher,
.mobile-menu {
  position: relative;
}

.locale-switcher summary,
.mobile-menu summary {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  color: var(--text-soft);
  list-style: none;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.locale-switcher summary::-webkit-details-marker,
.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.locale-switcher[open] summary,
.mobile-menu[open] summary {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}

.locale-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  padding: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.locale-menu button {
  width: 100%;
  padding: 9px 10px;
  color: var(--text-soft);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
}

.locale-menu button:hover:not(:disabled),
.locale-menu button.is-selected {
  color: var(--text);
  background: var(--accent-soft);
}

.locale-menu p {
  padding: 8px 10px 4px;
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.mobile-menu {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 180px;
  padding: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.mobile-menu nav a {
  padding: 10px;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
}

.mobile-menu nav a:hover,
.mobile-menu nav a.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

.hero {
  position: relative;
  padding: 76px 0 54px;
}

.hero-content {
  max-width: var(--container);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  gap: 8px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(55, 211, 176, 0.09);
}

.hero h1,
.page-hero h1,
.legal-document h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy,
.page-hero > .container > p:last-child {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.8;
}

.hero-glow {
  position: absolute;
  top: 20px;
  left: 44%;
  width: 620px;
  height: 220px;
  pointer-events: none;
  background: rgba(35, 106, 119, 0.12);
  filter: blur(80px);
}

.exchange-section {
  position: relative;
  padding: 0 0 72px;
}

.exchange-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 18px;
}

.exchange-panel,
.quote-panel,
.flat-panel,
.content-panel,
.order-card,
.legal-document {
  background: rgba(15, 23, 34, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.exchange-panel {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-heading h2,
.section-heading-row h2,
.support-band h2,
.support-feedback-row h2,
.content-panel h2,
.legal-document h2,
.faq-content h2,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.24;
  letter-spacing: 0;
}

.mode-switch {
  display: flex;
  flex: 0 0 auto;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.mode-switch button {
  min-width: 90px;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.mode-switch button.is-selected {
  color: #04110d;
  background: var(--accent);
}

.field-block {
  position: relative;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 160ms ease, background 160ms ease;
}

.field-block:focus-within {
  background: var(--surface-2);
  border-color: rgba(55, 211, 176, 0.42);
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}

.field-label-row label,
.address-block > label,
.feedback-form > label,
.inquiry-panel > label {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.field-hint {
  color: var(--text-muted);
  font-size: 12px;
}

.amount-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.amount-row > input {
  width: 100%;
  min-width: 0;
  padding: 2px 0;
  color: var(--accent);
  font-size: 28px;
  font-weight: 620;
  background: transparent;
  border: 0;
  outline: 0;
}

.amount-row > input[readonly] {
  color: var(--text);
}

.asset-button {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 172px;
  padding: 9px 11px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  gap: 10px;
}

.asset-button:hover {
  border-color: var(--border-strong);
}

.asset-symbol,
.coin-mark {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  background: var(--asset-color, var(--coin-color, var(--accent-strong)));
  border-radius: 50%;
}

.coin-mark {
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 60%),
    var(--coin-color, var(--accent-strong));
}

.coin-mark.large {
  width: 52px;
  height: 52px;
  font-size: 12px;
}

.asset-text {
  display: grid;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.asset-text strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-text span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.field-meta strong {
  color: var(--text-soft);
  font-weight: 550;
}

.swap-direction {
  display: grid;
  width: 38px;
  height: 38px;
  margin: -9px auto;
  place-items: center;
  color: var(--accent);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: transform 160ms ease;
}

.swap-direction:hover {
  transform: rotate(180deg);
}

.output-row {
  position: relative;
  display: grid;
  gap: 12px;
}

.output-row + .output-row {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.address-block {
  padding-inline: 2px;
}

.address-input-wrap,
.query-row,
.email-form {
  display: flex;
  align-items: center;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.address-input-wrap:focus-within,
.query-row:focus-within,
.email-form:focus-within {
  border-color: rgba(55, 211, 176, 0.48);
}

.address-input-wrap input,
.query-row input,
.email-form input,
.inquiry-panel input,
.feedback-form textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 15px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.address-input-wrap input {
  font-family: var(--font-mono);
  font-size: 13px;
}

input::placeholder,
textarea::placeholder {
  color: #627286;
}

.icon-button {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
}

.icon-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.icon-button.bordered {
  border: 1px solid var(--border);
}

.ratio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 11px;
  color: var(--text-soft);
  font-size: 12px;
  gap: 12px;
  border-top: 1px dashed var(--border);
}

.ratio-input-wrap {
  display: flex;
  align-items: center;
  width: 88px;
  padding-right: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.ratio-input-wrap input {
  width: 100%;
  padding: 8px 4px 8px 10px;
  color: var(--text);
  text-align: right;
  background: transparent;
  border: 0;
  outline: 0;
}

.remove-output {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  padding: 7px 9px;
  color: var(--text-muted);
  font-size: 12px;
  background: transparent;
  border: 0;
  gap: 5px;
}

.remove-output:hover {
  color: var(--danger);
}

.add-output {
  display: inline-flex;
  align-items: center;
  padding: 9px 0;
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 0;
  gap: 7px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 650;
  border-radius: var(--radius-sm);
  gap: 9px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button {
  color: #04110d;
  background: linear-gradient(135deg, #54e1c0, #2dc5a1);
  border: 1px solid rgba(107, 255, 221, 0.48);
  box-shadow: 0 10px 28px rgba(32, 185, 149, 0.18);
}

.primary-button:hover {
  color: #020b09;
  background: linear-gradient(135deg, #6aebca, #37d3b0);
  transform: translateY(-1px);
}

.primary-button.compact {
  min-height: 40px;
  padding-inline: 15px;
}

.secondary-button {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}

.secondary-button:hover {
  border-color: rgba(55, 211, 176, 0.38);
  transform: translateY(-1px);
}

.exchange-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  font-size: 15px;
}

.exchange-submit.is-loading {
  pointer-events: none;
}

.exchange-submit.is-loading .icon {
  animation: spin 800ms linear infinite;
}

.terms-note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}

.terms-note a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-error,
.form-success {
  display: flex;
  align-items: flex-start;
  padding: 11px 13px;
  margin-top: 12px;
  font-size: 13px;
  gap: 8px;
  border-radius: var(--radius-sm);
}

.form-error {
  color: #ffabb3;
  background: rgba(255, 111, 125, 0.09);
  border: 1px solid rgba(255, 111, 125, 0.2);
}

.form-success {
  color: #77eccf;
  background: rgba(55, 211, 176, 0.08);
  border: 1px solid rgba(55, 211, 176, 0.2);
}

.field-error {
  margin: 7px 2px 0;
  color: var(--danger);
  font-size: 12px;
}

.quote-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.quote-topline {
  display: flex;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 12px;
  gap: 12px;
}

.refresh-state {
  color: var(--accent);
}

.quote-list {
  display: grid;
  min-height: 76px;
  margin-top: 22px;
  gap: 10px;
}

.quote-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  color: var(--text-soft);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.quote-line strong {
  color: var(--text);
  font-weight: 620;
}

.quote-line.skeleton-line {
  min-height: 42px;
  background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface));
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
}

.quote-line.skeleton-line.short {
  width: 72%;
}

.refresh-track {
  height: 3px;
  margin-top: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.refresh-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 250ms linear;
}

.quote-countdown {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  text-align: right;
}

.quote-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--border);
}

.quote-summary {
  display: grid;
  margin: 0;
  gap: 12px;
}

.quote-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.quote-summary dt {
  color: var(--text-muted);
  font-size: 12px;
}

.quote-summary dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.quote-notes {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  margin-top: 20px;
  color: var(--text-muted);
  background: rgba(55, 211, 176, 0.05);
  border: 1px solid rgba(55, 211, 176, 0.12);
  border-radius: var(--radius-sm);
  gap: 9px;
}

.quote-notes .icon {
  color: var(--accent);
}

.quote-notes p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.feature-band {
  padding: 44px 0;
  background: rgba(12, 19, 28, 0.72);
  border-block: 1px solid var(--border);
}

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

.feature-grid article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 6px 15px;
}

.feature-icon,
.icon-badge {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(55, 211, 176, 0.16);
  border-radius: 50%;
}

.feature-grid .feature-icon {
  grid-row: span 2;
}

.feature-grid h2 {
  margin: 0;
  font-size: 17px;
}

.feature-grid p {
  margin: 2px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

.market-section {
  padding: 72px 0;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 24px;
}

.section-heading-row > p {
  max-width: 420px;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.section-heading-row.centered {
  justify-content: center;
  text-align: center;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.market-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 84px;
  padding: 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.market-item > div {
  display: grid;
}

.market-item > div strong {
  font-size: 13px;
}

.market-item > div span {
  color: var(--text-muted);
  font-size: 11px;
}

.market-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.market-item p strong {
  color: var(--text-soft);
  font-weight: 550;
}

.support-band {
  padding: 46px 0 62px;
}

.support-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  background:
    linear-gradient(110deg, rgba(55, 211, 176, 0.09), transparent 50%),
    var(--surface);
  border: 1px solid rgba(55, 211, 176, 0.17);
  border-radius: var(--radius-lg);
  gap: 30px;
}

.support-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 18px;
}

.text-link {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.text-link span {
  color: var(--accent);
}

.site-footer {
  padding: 58px 0 22px;
  background: rgba(6, 10, 15, 0.82);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 0.7fr);
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  gap: 56px;
}

.footer-brand p {
  max-width: 330px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.social-row {
  display: flex;
  gap: 7px;
}

.social-dot {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h2 {
  margin: 3px 0 7px;
  color: var(--text);
  font-size: 13px;
}

.footer-column a {
  color: var(--text-muted);
  font-size: 12px;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  width: min(var(--container), calc(100% - 48px));
  padding-top: 24px;
  margin: 36px auto 0;
  color: var(--text-muted);
  font-size: 11px;
  gap: 24px;
  border-top: 1px solid var(--border);
}

.support-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #04110d;
  background: var(--accent);
  border: 1px solid rgba(164, 255, 233, 0.68);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(32, 185, 149, 0.28);
}

.support-bubble:hover {
  background: #5ee5c6;
  transform: translateY(-2px);
}

.toast-region {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 180;
  display: grid;
  gap: 8px;
}

.toast {
  max-width: 320px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 13px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  animation: toast-in 180ms ease-out;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 12, 0.76);
  backdrop-filter: blur(7px);
}

.asset-modal {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(840px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.modal-header p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.asset-modal-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 0;
}

.chain-filters,
.asset-results {
  min-height: 0;
  padding: 18px;
}

.chain-filters {
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.018);
  border-right: 1px solid var(--border);
}

.search-field {
  display: flex;
  align-items: center;
  padding: 0 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  gap: 8px;
}

.search-field input {
  width: 100%;
  padding: 11px 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.chain-list {
  display: grid;
  margin-top: 12px;
  gap: 4px;
}

.chain-button {
  display: flex;
  align-items: center;
  padding: 10px;
  color: var(--text-muted);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  gap: 9px;
}

.chain-button:hover,
.chain-button.is-selected {
  color: var(--text);
  background: var(--surface-2);
}

.chain-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
}

.chain-button.is-selected .chain-dot {
  background: var(--accent);
}

.asset-results {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.asset-list {
  display: grid;
  align-content: start;
  overflow-y: auto;
  padding-right: 5px;
}

.asset-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px 10px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.asset-option:hover {
  background: rgba(255, 255, 255, 0.035);
}

.asset-option > span:nth-child(2) {
  display: grid;
}

.asset-option strong {
  font-size: 13px;
}

.asset-option small {
  color: var(--text-muted);
  font-size: 11px;
}

.asset-option em {
  color: var(--text-muted);
  font-size: 10px;
  font-style: normal;
}

.empty-state {
  margin: 30px 0;
  color: var(--text-muted);
  text-align: center;
}

.page-hero {
  padding: 78px 0 52px;
  border-bottom: 1px solid var(--border);
}

.compact-hero {
  padding-bottom: 38px;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.page-section {
  padding: 64px 0 86px;
}

.flat-panel {
  padding: 26px;
  border-radius: var(--radius-md);
  box-shadow: none;
}

.inquiry-panel {
  padding: 32px;
}

.query-row {
  margin-top: 10px;
}

.query-row .primary-button {
  flex: 0 0 auto;
  margin: 5px;
}

.query-row input {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field-help {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
  gap: 16px;
}

.info-grid article {
  padding: 22px;
  background: rgba(15, 23, 34, 0.52);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.info-grid h2 {
  margin: 15px 0 7px;
  font-size: 16px;
}

.info-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.order-page {
  padding: 34px 0 90px;
}

.order-container {
  max-width: 940px;
}

.order-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 13px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
  gap: 7px;
}

.order-card {
  padding: 24px;
  margin-top: 14px;
  border-radius: var(--radius-md);
  box-shadow: none;
}

.order-code-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    linear-gradient(110deg, rgba(55, 211, 176, 0.1), transparent 42%),
    var(--surface);
  gap: 16px;
}

.order-code-card > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.query-code-value {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.order-progress {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  padding: 26px 24px 58px;
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  gap: 12px;
}

.step {
  display: grid;
  justify-items: center;
  color: var(--text-muted);
  font-size: 12px;
  gap: 8px;
}

.step-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
}

.step.is-active,
.step.is-complete {
  color: var(--accent);
}

.step.is-active .step-icon {
  background: var(--accent-soft);
  border-color: rgba(55, 211, 176, 0.42);
  box-shadow: 0 0 0 5px rgba(55, 211, 176, 0.05);
}

.step-line {
  height: 1px;
  background: var(--border);
}

.order-countdown {
  position: absolute;
  right: 24px;
  bottom: 18px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warning);
  font-family: var(--font-mono);
  font-size: 13px;
  gap: 8px;
}

.trade-summary {
  padding: 0;
  overflow: hidden;
}

.trade-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  gap: 22px;
}

.trade-content {
  min-width: 0;
}

.trade-amount {
  display: flex;
  align-items: center;
  margin-top: 10px;
  gap: 13px;
}

.trade-amount > div {
  display: grid;
}

.trade-amount strong {
  font-size: 20px;
}

.trade-amount span {
  color: var(--text-muted);
  font-size: 12px;
}

.mono-address {
  display: flex;
  align-items: center;
  max-width: 580px;
  margin-top: 13px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  gap: 4px;
}

.mono-address > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-frame {
  flex: 0 0 auto;
  padding: 7px;
  background: #fff;
  border-radius: var(--radius-sm);
}

.qr-frame img {
  width: 150px;
  height: 150px;
}

.trade-direction {
  display: grid;
  width: 38px;
  height: 38px;
  margin: -19px auto;
  position: relative;
  z-index: 1;
  place-items: center;
  color: var(--text-soft);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.receive-side {
  border-top: 1px solid var(--border);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 6px 9px;
  font-size: 11px;
  border-radius: 999px;
  gap: 5px;
}

.status-pill.muted {
  color: var(--warning);
  background: rgba(255, 200, 87, 0.08);
}

.status-pill .icon {
  width: 14px;
  height: 14px;
}

.email-card h2 {
  margin: 0;
  font-size: 17px;
}

.email-card > div > p {
  max-width: 560px;
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.email-form {
  margin-top: 16px;
}

.order-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.order-meta-grid article {
  display: grid;
  padding: 16px;
  background: rgba(15, 23, 34, 0.48);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  gap: 4px;
}

.order-meta-grid span {
  color: var(--text-muted);
  font-size: 11px;
}

.order-meta-grid strong {
  font-size: 12px;
  font-weight: 550;
}

.empty-order {
  display: grid;
  justify-items: center;
  padding: 70px 26px;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}

.empty-order h1 {
  margin: 0;
  font-size: 30px;
}

.empty-order p {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--text-muted);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
  gap: 10px;
}

.tutorial-layout,
.faq-layout,
.legal-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 38px;
}

.sticky-side-nav,
.faq-sidebar,
.legal-toc {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 4px;
}

.sticky-side-nav a,
.faq-sidebar a,
.legal-toc a {
  padding: 9px 12px;
  color: var(--text-muted);
  font-size: 13px;
  border-left: 1px solid var(--border);
}

.sticky-side-nav a:hover,
.faq-sidebar a:hover,
.legal-toc a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.prose-stack,
.faq-content {
  display: grid;
  gap: 18px;
}

.content-panel {
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: none;
}

.content-panel h2 {
  margin-bottom: 18px;
}

.content-panel p {
  color: var(--text-soft);
}

.step-list {
  display: grid;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  gap: 12px;
}

.step-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 18px 0;
  border-top: 1px solid var(--border);
  gap: 15px;
}

.step-list li > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

.step-list strong {
  font-size: 15px;
}

.step-list p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.callout {
  display: flex;
  align-items: flex-start;
  padding: 14px;
  margin-top: 18px;
  color: var(--text-soft);
  background: rgba(55, 211, 176, 0.06);
  border: 1px solid rgba(55, 211, 176, 0.14);
  border-radius: var(--radius-sm);
  gap: 10px;
}

.callout .icon {
  color: var(--accent);
}

.callout p {
  margin: 0;
  font-size: 13px;
}

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

.status-legend > div {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.status-legend strong {
  display: inline-block;
  margin-left: 7px;
  font-size: 13px;
}

.status-legend p {
  margin: 9px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.waiting { background: var(--warning); }
.status-dot.paid { background: var(--blue); }
.status-dot.exchanging { background: #a78bfa; }
.status-dot.done { background: var(--accent); }

.check-list {
  display: grid;
  padding: 0;
  margin: 0;
  color: var(--text-soft);
  list-style: none;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
}

.check-list li::before {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.faq-content section {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.faq-content h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.faq-content details {
  border-top: 1px solid var(--border);
}

.faq-content summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 2px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.faq-content summary::-webkit-details-marker {
  display: none;
}

.faq-content summary::after {
  color: var(--text-muted);
  content: "+";
  font-size: 19px;
}

.faq-content details[open] summary::after {
  content: "−";
}

.faq-content details p {
  padding: 0 2px 17px;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

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

.support-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.support-card h2 {
  margin: 16px 0 8px;
  font-size: 19px;
}

.support-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.support-card a:not(.secondary-button) {
  color: var(--accent);
  font-size: 13px;
}

.primary-support {
  grid-column: span 2;
  background:
    linear-gradient(110deg, rgba(55, 211, 176, 0.1), transparent 50%),
    var(--surface);
}

.support-feedback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 20px;
}

.support-feedback-row p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.feedback-form {
  padding: 32px;
}

.feedback-form textarea {
  min-height: 210px;
  padding: 15px;
  margin-top: 9px;
  resize: vertical;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.feedback-form textarea:focus {
  border-color: rgba(55, 211, 176, 0.46);
}

.text-area-meta {
  display: flex;
  justify-content: space-between;
  margin: 7px 1px 20px;
  color: var(--text-muted);
  font-size: 11px;
  gap: 16px;
}

.upload-zone {
  display: grid;
  justify-items: center;
  padding: 24px;
  color: var(--text-soft);
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
}

.upload-zone:hover {
  color: var(--text);
  border-color: rgba(55, 211, 176, 0.42);
}

.upload-zone input {
  display: none;
}

.upload-zone .icon {
  width: 25px;
  height: 25px;
  margin-bottom: 10px;
  color: var(--accent);
}

.upload-zone small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
}

.file-preview-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
  gap: 8px;
}

.file-chip {
  padding: 7px 10px;
  color: var(--text-soft);
  font-size: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.feedback-form .primary-button {
  margin-top: 16px;
}

.affiliate-hero {
  padding-bottom: 70px;
}

.affiliate-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 60px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 25px;
  gap: 10px;
}

.affiliate-stat-panel {
  padding: 30px;
  background:
    linear-gradient(145deg, rgba(55, 211, 176, 0.12), transparent 55%),
    var(--surface);
  border: 1px solid rgba(55, 211, 176, 0.2);
  border-radius: var(--radius-lg);
}

.affiliate-stat-panel > span {
  color: var(--text-muted);
  font-size: 12px;
}

.affiliate-stat-panel > strong {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 72px;
  line-height: 1.05;
}

.affiliate-stat-panel > p {
  color: var(--text-muted);
  font-size: 12px;
}

.affiliate-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 18px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  gap: 12px;
}

.affiliate-stat-row div {
  display: grid;
}

.affiliate-stat-row span {
  color: var(--text-muted);
  font-size: 10px;
}

.affiliate-stat-row strong {
  margin-top: 3px;
  font-size: 13px;
}

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

.affiliate-steps article,
.affiliate-benefits article {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.affiliate-steps > article > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.affiliate-steps h3,
.affiliate-benefits h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.affiliate-steps p,
.affiliate-benefits p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.affiliate-benefits {
  margin-top: 18px;
}

.legal-hero {
  padding: 66px 0 90px;
}

.legal-layout {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 50px;
}

.legal-toc p {
  padding: 0 12px 8px;
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.legal-toc a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-document {
  padding: 38px;
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.legal-document h1 {
  font-size: clamp(34px, 4vw, 48px);
}

.legal-updated {
  margin: 12px 0 24px;
  color: var(--text-muted);
  font-size: 12px;
}

.legal-notice {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  margin-bottom: 32px;
  color: var(--warning);
  background: rgba(255, 200, 87, 0.06);
  border: 1px solid rgba(255, 200, 87, 0.16);
  border-radius: var(--radius-sm);
  gap: 10px;
}

.legal-notice p {
  margin: 0;
  font-size: 13px;
}

.legal-document section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-document h2 {
  font-size: 21px;
}

.legal-document section p {
  color: var(--text-soft);
  font-size: 14px;
}

.error-page {
  display: grid;
  min-height: 68vh;
  place-items: center;
  padding: 80px 0;
  text-align: center;
}

.error-code {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.error-page h1 {
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 56px);
}

.error-page p {
  color: var(--text-muted);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  to { background-position: -220% 0; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 1040px) {
  .desktop-nav {
    gap: 20px;
  }

  .exchange-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

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

  .footer-inner {
    grid-template-columns: 1.4fr repeat(3, 0.75fr);
    gap: 28px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 68px;
    gap: 20px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .exchange-layout {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    position: static;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: span 2;
  }

  .tutorial-layout,
  .faq-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .sticky-side-nav,
  .faq-sidebar,
  .legal-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .sticky-side-nav a,
  .faq-sidebar a,
  .legal-toc a {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }

  .affiliate-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .order-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 28px, var(--container));
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .locale-switcher summary span {
    display: none;
  }

  .hero {
    padding: 54px 0 36px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .hero-copy,
  .page-hero > .container > p:last-child {
    font-size: 15px;
  }

  .exchange-panel,
  .quote-panel {
    padding: 18px;
  }

  .panel-heading {
    display: grid;
  }

  .mode-switch {
    width: 100%;
  }

  .mode-switch button {
    flex: 1;
    min-width: 0;
  }

  .amount-row {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .amount-row > input {
    font-size: 32px;
  }

  .asset-button {
    width: 100%;
    min-width: 0;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-row,
  .support-band-inner,
  .support-feedback-row,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-actions {
    flex-wrap: wrap;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .support-bubble {
    right: 16px;
    bottom: 16px;
  }

  .modal {
    padding: 0;
  }

  .asset-modal {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .asset-modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .chain-filters {
    max-height: 185px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .chain-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .chain-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .flat-panel,
  .feedback-form,
  .inquiry-panel,
  .content-panel,
  .faq-content section,
  .legal-document {
    padding: 20px;
  }

  .query-row,
  .email-form {
    align-items: stretch;
    flex-direction: column;
    padding: 5px;
  }

  .query-row .primary-button,
  .email-form .primary-button {
    width: 100%;
    margin: 0;
  }

  .info-grid,
  .support-grid,
  .affiliate-steps,
  .affiliate-benefits,
  .status-legend {
    grid-template-columns: 1fr;
  }

  .primary-support {
    grid-column: auto;
  }

  .order-page {
    padding-top: 20px;
  }

  .order-card {
    padding: 18px;
  }

  .order-code-card > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .order-progress {
    grid-template-columns: 1fr;
    padding: 20px 20px 62px;
    gap: 8px;
  }

  .step {
    grid-template-columns: 38px minmax(0, 1fr);
    justify-items: start;
  }

  .step-icon {
    width: 36px;
    height: 36px;
  }

  .step-line {
    width: 1px;
    height: 18px;
    margin-left: 18px;
  }

  .trade-side {
    align-items: flex-start;
    flex-direction: column;
  }

  .qr-frame {
    align-self: center;
  }

  .order-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .affiliate-stat-panel > strong {
    font-size: 58px;
  }

  .legal-hero {
    padding-top: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
