@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&display=swap");

:root {
  --ink: #12110e;
  --ink-2: #1b1915;
  --ink-3: #24211c;
  --paper: #f3eee4;
  --paper-dim: #d8d0c2;
  --brass: #a8874f;
  --brass-2: #c4a46a;
  --text: #e7e1d4;
  --muted: #9a9284;
  --line: #2c2923;
  --line-soft: #3d3930;
  --danger: #c45c4a;
  --ok: #7a9a6a;
  --warn: #c4a15a;
  --info: #7a8fa3;
  --shell: 1180px;
  --radius: 4px;
  --header: 72px;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100%;
}

body { overflow-x: hidden; }

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin: 0 auto;
}

.break-text {
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* Brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}

.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--brass);
  flex: none;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-type b {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-type small {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Notice + header */

.site-notice {
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  border-bottom: 1px solid #d7cfc0;
}

.site-notice .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.site-notice b { font-weight: 600; }
.site-notice a {
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 17, 14, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

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

.nav a {
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover,
.nav a.active { color: var(--paper); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.status-link {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.status-link:hover { color: var(--paper); }

.header-cta,
.button-main,
.exchange-button,
.conversation-actions button,
.support-send,
.status-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  background: var(--brass);
  color: var(--ink);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header-cta:hover,
.button-main:hover,
.exchange-button:hover,
.conversation-actions button:hover,
.support-send:hover,
.status-search button:hover {
  background: var(--brass-2);
  border-color: var(--brass-2);
}

.exchange-button {
  width: 100%;
  height: 50px;
  margin-top: 4px;
  font-size: 14px;
}

.exchange-button.disabled,
.exchange-button[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.button-text {
  font-size: 14px;
  color: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 2px;
}

.button-text:hover { border-color: var(--brass); }

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--paper);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
}

.secondary-button:hover { border-color: var(--paper-dim); }

.quiet-action {
  font-size: 13px;
  color: var(--muted);
}

.quiet-action:hover { color: var(--paper); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--paper);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 440px);
  gap: 56px;
  align-items: start;
  padding: 56px 0 48px;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  max-width: 14ch;
  color: var(--paper);
}

.hero-lead {
  margin-top: 20px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.hero-meta div {
  padding: 16px 16px 0 0;
}

.hero-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--paper);
}

.hero-meta span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* Exchange desk */

#exchange {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 22px;
}

.desk-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.desk-head span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.desk-head b {
  font-size: 14px;
  font-weight: 500;
  color: var(--paper);
}

.currency-box {
  border: 1px solid var(--line);
  background: var(--ink);
  padding: 14px;
}

.currency-box + .flip + .currency-box,
.currency-box + .currency-box { margin-top: 0; }

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.currency-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.currency-box input {
  width: 100%;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  outline: none;
  padding: 0;
}

.currency-box input::placeholder { color: #5c574d; }

.asset-button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--line-soft);
  background: var(--ink-2);
  border-radius: var(--radius);
  min-width: 132px;
}

.asset-button b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.1;
}

.asset-button small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.asset-button i {
  font-style: normal;
  color: var(--muted);
  margin-left: 4px;
}

.coin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--ink-3);
  flex: none;
}

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

.coin-fallback::after {
  content: attr(data-fallback);
  font-size: 10px;
  font-weight: 700;
  color: var(--paper);
}

.limits-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.limits-row b { color: var(--paper); font-weight: 500; }

.networks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.network-pill {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

.network-pill.active {
  border-color: var(--brass);
  color: var(--paper);
}

.network-pill.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.flip {
  width: 36px;
  height: 36px;
  margin: -10px auto;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  border: 1px solid var(--line-soft);
  background: var(--ink-2);
  color: var(--paper);
  border-radius: 2px;
}

.flip:hover { border-color: var(--brass); }

.quote-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 16px 0 12px;
  border: 1px solid var(--line);
}

.quote-info div {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.quote-info div:last-child { border-right: 0; }

.quote-info span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quote-info b {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.desk-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* Ticker */

.ticker-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.ticker-wrap:has(.ticker:empty) { display: none; }

.ticker {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker::-webkit-scrollbar { display: none; }

.ticker-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
  font-size: 12px;
  white-space: nowrap;
}

.ticker-chip b { font-weight: 500; color: var(--paper); }
.ticker-chip span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Sections */

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--paper);
  max-width: 18ch;
}

.section-lead {
  margin-top: 14px;
  max-width: 52ch;
  color: var(--muted);
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.steps article {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.steps article:last-child { border-right: 0; }

.steps em {
  display: block;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--brass);
  margin-bottom: 16px;
}

.steps h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--paper);
}

.steps p,
.steps li {
  font-size: 14px;
  color: var(--muted);
}

.steps ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.asset-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.asset-table th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.asset-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.asset-table .asset-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asset-table b { font-weight: 600; }
.asset-table small { color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}

.facts article {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts article:nth-child(2n) { border-right: 0; }
.facts article:nth-last-child(-n+2) { border-bottom: 0; }

.facts h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.facts p { color: var(--muted); font-size: 14px; }

.home-faq {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  font-size: 16px;
  color: var(--paper);
}

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

.faq-list summary i {
  font-style: normal;
  color: var(--muted);
}

.faq-list details p {
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.faq-list a { color: var(--brass-2); border-bottom: 1px solid var(--brass); }

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 36px 0 72px;
  border-top: 1px solid var(--line);
}

.cta-band h2 { font-size: 32px; max-width: 18ch; }
.cta-band p { margin-top: 10px; color: var(--muted); max-width: 46ch; }

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  max-width: 36ch;
}

.footer b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-grid a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.footer-grid a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* Funnel pages */

.page-screen {
  padding: 40px 0 80px;
  display: grid;
  justify-items: center;
}

.flow-card {
  width: min(640px, 100%);
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 28px;
}

.wide-flow { width: min(760px, 100%); }

.flow-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.flow-card h1,
.flow-card h3 {
  margin: 8px 0 0;
  font-size: 28px;
  color: var(--paper);
}

.flow-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.flow-head a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.flow-steps span {
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.flow-steps .active {
  border-color: var(--brass);
  color: var(--paper);
}

.flow-steps .done { color: var(--paper-dim); }

.order-summary,
.payment-summary-grid,
.progress-summary,
.status-card-grid,
#successSummary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.order-summary > div,
.payment-summary-grid > div,
.progress-summary > div,
.status-card-grid > div,
#successSummary > div {
  background: var(--ink);
  padding: 12px 14px;
}

.order-summary span,
.payment-summary-grid span,
.progress-summary span,
.status-card-grid span,
#successSummary span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.order-summary b,
.payment-summary-grid b,
.progress-summary b,
.status-card-grid b,
#successSummary b {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--paper);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.input-label,
.account-form label,
.wallet-add-form label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.input-label small { color: #6f6a60; }

.input-label input,
.input-label textarea,
.account-form input,
.account-form select,
.wallet-add-form input,
.wallet-add-form select,
.status-search input,
.copy-field input,
.conversation-fields input,
.conversation-fields select,
.conversation-compose textarea,
.asset-picker-search,
.support-mini-form input,
.support-mini-form textarea {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  outline: none;
}

.conversation-compose textarea,
.support-mini-form textarea,
.input-label textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}

.input-label input:focus,
.account-form input:focus,
.wallet-add-form input:focus,
.status-search input:focus,
.copy-field input:focus,
.conversation-fields input:focus,
.conversation-fields select:focus,
.conversation-compose textarea:focus {
  border-color: var(--brass);
}

.field-invalid { border-color: var(--danger) !important; }

#walletRow {
  display: grid;
  gap: 8px;
}

#walletRow.has-saved {
  grid-template-columns: 1fr 180px;
}

.order-form .input-label:first-child { grid-column: 1 / -1; }

.compliance-box {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  color: var(--paper-dim);
  cursor: pointer;
}

.check-row input { margin-top: 3px; accent-color: var(--brass); }
.check-row a { color: var(--brass-2); border-bottom: 1px solid var(--brass); }

.modal-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.compact-action {
  width: auto;
  min-width: 240px;
  margin-top: 0;
}

.copy-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.copy-field input {
  margin-top: 0;
  font-variant-numeric: tabular-nums;
}

.copy-field button {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  background: var(--ink-3);
  color: var(--paper);
  border-radius: var(--radius);
  font-size: 12px;
}

.order-id-line,
.progress-head,
.status-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.order-id-line small,
.progress-head small,
.status-card-head small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-id-line b,
.progress-head b,
.status-card-head b,
#successOrderId {
  font-size: 20px;
  font-family: var(--serif);
  font-weight: 600;
}

.payment-timer {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 14px;
}

.attention-box {
  border: 1px solid var(--line);
  padding: 14px;
  margin: 16px 0;
}

.attention-box b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.attention-box p { font-size: 13px; color: var(--muted); }

.status-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.status-chip.status-awaiting_deposit { color: var(--warn); border-color: #5a4a2a; }
.status-chip.status-processing { color: var(--info); border-color: #3a4652; }
.status-chip.status-completed { color: var(--ok); border-color: #3d4c36; }
.status-chip.status-rejected,
.status-chip.status-expired { color: var(--danger); border-color: #5a322c; }

.status-timeline,
.status-card-timeline {
  display: grid;
  gap: 0;
  margin: 8px 0 20px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  padding: 8px 0 16px;
  position: relative;
}

.timeline-dot,
.timeline-item > span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--muted);
  background: var(--ink);
  border-radius: 50%;
  margin-left: -21px;
  margin-top: 6px;
}

.timeline-item.done .timeline-dot,
.timeline-item.done > span { background: var(--ok); border-color: var(--ok); }
.timeline-item.active .timeline-dot,
.timeline-item.active > span { background: var(--brass); border-color: var(--brass); }

.timeline-item b { display: block; font-size: 14px; font-weight: 500; }
.timeline-item small { color: var(--muted); font-size: 13px; }

.status-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 16px 0 20px;
}

.status-search input { margin-top: 0; height: 48px; }
.status-search button { height: 48px; }

.status-card-full {
  border: 1px solid var(--line);
  padding: 16px;
  background: var(--ink);
}

.success-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ok);
  color: var(--ok);
  margin-bottom: 14px;
  font-size: 18px;
}

.success-lead {
  margin: 10px 0 20px;
  color: var(--muted);
  max-width: 46ch;
}

.success-order-id {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 14px;
  margin-bottom: 16px;
}

#progressHint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* Account */

.account-page {
  padding: 48px 0 80px;
}

.account-guest {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.account-guest:has(.account-auth-panel[hidden]) { display: none; }

.account-guest h1 {
  font-size: clamp(32px, 4vw, 48px);
  max-width: 14ch;
}

.account-guest p {
  margin-top: 16px;
  color: var(--muted);
  max-width: 44ch;
}

.guest-points {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.guest-points span {
  font-size: 14px;
  color: var(--paper-dim);
  padding-left: 14px;
  border-left: 1px solid var(--brass);
}

.account-auth-panel {
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 22px;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}

.account-tabs button {
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.account-tabs button.active {
  background: var(--ink);
  color: var(--paper);
}

.account-form { display: grid; gap: 12px; }

.auth-footnote {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.client-dashboard {
  display: none;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.dashboard-sidebar {
  border: 1px solid var(--line);
  padding: 18px;
  position: sticky;
  top: 92px;
}

.profile-compact {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: var(--serif);
  font-size: 18px;
}

.profile-compact b { display: block; font-size: 14px; }
.profile-compact small { color: var(--muted); font-size: 12px; }

.dashboard-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.dashboard-nav a {
  font-size: 13px;
  color: var(--muted);
}

.dashboard-nav a.active,
.dashboard-nav a:hover { color: var(--paper); }

.dashboard-logout { width: 100%; height: 40px; font-size: 12px; }

.dashboard-welcome {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-welcome h1 { font-size: 32px; }
.dashboard-welcome p { margin-top: 8px; color: var(--muted); }

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 32px;
}

.dashboard-metrics article {
  background: var(--ink-2);
  padding: 16px;
}

.dashboard-metrics span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.dashboard-metrics b {
  display: block;
  margin: 8px 0 4px;
  font-size: 18px;
  font-family: var(--serif);
  font-weight: 600;
}

.dashboard-metrics small { color: var(--muted); font-size: 12px; }

.dashboard-section { margin-bottom: 36px; }
.dashboard-section h2 { font-size: 24px; margin: 6px 0 8px; }
.dashboard-section p { color: var(--muted); font-size: 14px; }

.tier-progress-block {
  margin: 16px 0 20px;
  max-width: 360px;
}

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

.tier-progress {
  height: 3px;
  background: var(--line);
  margin-top: 8px;
}

.tier-progress i {
  display: block;
  height: 100%;
  background: var(--brass);
}

.status-levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.status-level-card {
  text-align: left;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--muted);
}

.status-level-card span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.status-level-card b {
  display: block;
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
}

.status-level-card.current {
  border-color: var(--brass);
  color: var(--paper-dim);
}

.status-level-card.locked { opacity: 0.55; }

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

.current-tier-title span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.current-tier-title b { font-size: 18px; font-family: var(--serif); }

.benefit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.benefit-chips span {
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--paper-dim);
}

.account-orders-list-v2 { display: grid; gap: 8px; margin-top: 16px; }

.order-row-v2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 14px;
}

.order-row-v2 span { display: block; font-size: 11px; color: var(--muted); }
.order-row-v2 b { font-size: 13px; font-weight: 500; }
.order-row-v2 small { color: var(--muted); }

.wallet-book-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.wallet-add-form {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 16px;
}

.wallet-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.saved-wallets { display: grid; gap: 8px; }

.saved-wallet-card {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 12px;
}

.saved-wallet-card b { display: block; font-size: 13px; }
.saved-wallet-card small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

.empty-hint { color: var(--muted); font-size: 14px; padding: 12px 0; }

/* Support page */

.support-page { padding: 48px 0 80px; }

.support-workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  margin-top: 32px;
}

.support-side-panel { border: 1px solid var(--line); padding: 20px; }
.support-side-panel h2 { font-size: 22px; margin: 8px 0 16px; }

.support-tips article {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.support-tips span { color: var(--brass); font-size: 11px; letter-spacing: 0.12em; }
.support-tips b { display: block; margin: 4px 0; }
.support-tips p { color: var(--muted); font-size: 13px; }

.support-status-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--brass-2);
  border-bottom: 1px solid var(--brass);
  font-size: 13px;
}

.support-conversation-panel {
  border: 1px solid var(--line);
  background: var(--ink-2);
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.conversation-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.conversation-head b { display: block; }
.conversation-head small { color: var(--muted); font-size: 12px; }
.conversation-head a { color: var(--muted); font-size: 13px; }

.conversation-scroll {
  flex: 1;
  overflow: auto;
  padding: 18px;
  min-height: 280px;
}

.conversation-empty { color: var(--muted); }
.conversation-empty b { display: block; color: var(--paper); margin-bottom: 6px; }

.conversation-compose {
  border-top: 1px solid var(--line);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.conversation-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.conversation-fields input,
.conversation-fields select { margin-top: 0; }

.conversation-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.conversation-actions span { font-size: 12px; color: var(--muted); }
.conversation-actions button { width: auto; height: 42px; }

.support-msg {
  border: 1px solid var(--line);
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--ink);
}

.support-msg.user { border-color: var(--line-soft); background: var(--ink-3); }
.support-msg b { display: block; font-size: 12px; margin-bottom: 4px; }
.support-msg p { font-size: 14px; }
.support-msg small { color: var(--muted); font-size: 11px; }

/* Marketing / legal */

.legal,
.faq-page,
.contact-page { padding: 48px 0 80px; }

.legal-head h1 {
  font-size: clamp(32px, 5vw, 48px);
  max-width: 18ch;
  margin-top: 8px;
}

.legal-head p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 56ch;
}

.legal-body {
  max-width: 760px;
  margin-top: 32px;
}

.legal-body h2 {
  font-size: 22px;
  margin: 28px 0 10px;
}

.legal-body p,
.legal-body li {
  color: var(--paper-dim);
  font-size: 15px;
  line-height: 1.7;
}

.legal-body p + p { margin-top: 12px; }
.legal-body ul { padding-left: 18px; }
.legal-body a { color: var(--brass-2); border-bottom: 1px solid var(--brass); }

.contact-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  margin-top: 32px;
}

.contact-card {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.contact-card:last-child { border-right: 0; }
.contact-card span { color: var(--brass); font-size: 12px; letter-spacing: 0.14em; }
.contact-card h2 { font-size: 22px; margin: 10px 0; }
.contact-card p { color: var(--muted); font-size: 14px; }
.contact-card a, .contact-card b { display: inline-block; margin-top: 14px; color: var(--brass-2); }

.contact-warning {
  margin-top: 24px;
  border: 1px solid var(--line);
  padding: 16px 18px;
}

.contact-warning p { margin-top: 6px; color: var(--muted); font-size: 14px; }

.faq-page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  margin-top: 32px;
}

.faq-aside {
  border: 1px solid var(--line);
  padding: 18px;
  height: max-content;
  position: sticky;
  top: 92px;
}

.faq-aside p { margin: 10px 0 14px; color: var(--muted); font-size: 14px; }
.faq-aside a { color: var(--brass-2); border-bottom: 1px solid var(--brass); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 32px;
}

.about-grid article {
  background: var(--ink);
  padding: 24px;
}

.about-grid h2 { font-size: 20px; margin-bottom: 8px; }
.about-grid p { color: var(--muted); font-size: 14px; }

/* JS chrome: picker, toasts, overlay, widget */

.asset-picker-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 7, 0.72);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}

.asset-picker-modal[hidden] { display: none !important; }

.asset-picker-card {
  width: min(420px, 100%);
  max-height: 80vh;
  overflow: auto;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  padding: 16px;
}

.asset-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.asset-picker-head button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.asset-picker-search { margin-bottom: 10px; }

.asset-picker-item {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  color: var(--paper);
  text-align: left;
}

.asset-picker-item:hover { background: var(--ink-3); }
.asset-picker-item.unavailable { opacity: 0.4; }
.asset-picker-item b { display: block; font-size: 13px; }
.asset-picker-item small { color: var(--muted); font-size: 11px; }

.rb-toasts {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 120;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100% - 32px));
}

.rb-toast {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: start;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  padding: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.rb-toast.show { opacity: 1; transform: none; }
.rb-toast.hide { opacity: 0; }

.rb-toast-body b { display: block; font-size: 13px; margin-bottom: 4px; }
.rb-toast-body p { margin: 0; font-size: 13px; color: var(--muted); }

.rb-toast-close {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.rb-toast-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.rb-toast-icon::before { content: "!"; }
.rb-toast-error { border-color: #5a322c; }
.rb-toast-error .rb-toast-icon { color: var(--danger); }
.rb-toast-success { border-color: #3d4c36; }
.rb-toast-success .rb-toast-icon { color: var(--ok); }
.rb-toast-success .rb-toast-icon::before { content: "✓"; }
.rb-toast-info { border-color: #3a4652; }
.rb-toast-info .rb-toast-icon { color: var(--info); }
.rb-toast-info .rb-toast-icon::before { content: "i"; }
.rb-toast-warning { border-color: #5a4a2a; }
.rb-toast-warning .rb-toast-icon { color: var(--warn); }

.support-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border: 1px solid var(--brass);
  background: var(--ink-2);
  color: var(--brass);
  z-index: 80;
  display: grid;
  place-items: center;
  border-radius: 2px;
}

.support-fab:hover { background: var(--brass); color: var(--ink); }

.support-fab-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.support-widget {
  position: fixed;
  right: 22px;
  bottom: 86px;
  width: 360px;
  max-width: calc(100% - 28px);
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  z-index: 80;
  border: 1px solid var(--line-soft);
  background: var(--ink-2);
  overflow: hidden;
}

.support-widget[hidden] { display: none !important; }

.support-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.support-widget-head b { display: block; font-size: 13px; }
.support-widget-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }

.support-widget-head button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
}

.support-messages {
  min-height: 180px;
  max-height: 280px;
  overflow: auto;
  padding: 12px;
}

.support-mini-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.support-mini-form input,
.support-mini-form textarea { margin-top: 0; }

.support-page-link {
  display: block;
  padding: 10px 12px 14px;
  font-size: 12px;
  color: var(--brass-2);
}

.account-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 9, 7, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
}

.account-overlay .modal-card,
.modal-card {
  width: min(560px, 100%);
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  padding: 22px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.modal-head h3 { font-size: 24px; }

.modal-head button,
.modal-head [data-close-overlay] {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.section-tag {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.tier-requirement {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.tier-modal-benefits { display: grid; gap: 8px; }

.tier-modal-benefits > div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 14px;
}

.premium-intro p { color: var(--muted); margin-top: 8px; font-size: 14px; }

.premium-perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

.premium-perks-grid span {
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-size: 12px;
}

.premium-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.premium-plans button {
  text-align: left;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--ink);
}

.premium-plans button.active { border-color: var(--brass); }
.premium-plans small { display: block; color: var(--muted); font-size: 11px; }
.premium-plans b { display: block; margin: 6px 0; font-size: 20px; font-family: var(--serif); }

.premium-networks label { display: block; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.premium-networks select {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  border: 1px solid var(--line-soft);
  background: var(--ink);
  color: var(--paper);
  padding: 0 12px;
}

.premium-payment-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.premium-payment-summary > div {
  border: 1px solid var(--line);
  padding: 10px;
}

.premium-payment-summary span { display: block; font-size: 11px; color: var(--muted); }

.premium-check {
  text-align: center;
  padding: 20px 0;
}

.loading-ring {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-top-color: var(--brass);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive */

@media (max-width: 1050px) {
  .hero,
  .home-faq,
  .account-guest,
  .client-dashboard,
  .support-workspace,
  .faq-page-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav { display: none; }

  .nav.open {
    display: flex;
    position: absolute;
    top: calc(var(--header) - 1px);
    right: 0;
    left: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-width: 220px;
    padding: 18px 20px;
    background: var(--ink-2);
    border: 1px solid var(--line);
  }

  .menu-toggle { display: flex; }
  .status-link { display: none; }
  .dashboard-sidebar { position: static; }
  .dashboard-metrics,
  .status-levels { grid-template-columns: 1fr 1fr; }
  .quote-info { grid-template-columns: 1fr; }
  .quote-info div { border-right: 0; border-bottom: 1px solid var(--line); }
  .quote-info div:last-child { border-bottom: 0; }
  .steps,
  .facts,
  .contact-layout,
  .about-grid { grid-template-columns: 1fr; }
  .steps article,
  .facts article,
  .contact-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts article:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .facts article:last-child,
  .steps article:last-child,
  .contact-card:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .hero { padding: 36px 0 28px; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-buttons { flex-wrap: wrap; }
  .header-cta { display: none; }
  .field-grid,
  .order-summary,
  .payment-summary-grid,
  .progress-summary,
  .status-card-grid,
  #successSummary,
  .conversation-fields,
  .wallet-book-layout,
  .wallet-form-grid,
  .premium-plans,
  .premium-perks-grid,
  .premium-payment-summary {
    grid-template-columns: 1fr;
  }

  #walletRow.has-saved { grid-template-columns: 1fr; }
  .modal-action-row,
  .order-id-line,
  .progress-head,
  .status-card-head,
  .success-order-id,
  .cta-band,
  .dashboard-welcome,
  .site-notice .shell,
  .footer-bottom {
    display: block;
  }

  .compact-action,
  .secondary-button { width: 100%; min-width: 0; }
  .compact-action { margin-top: 10px; }
  .order-row-v2 { grid-template-columns: 1fr 1fr; }
  .order-row-v2 .order-main { grid-column: 1 / -1; }
  .dashboard-metrics,
  .status-levels { grid-template-columns: 1fr; }
  .support-widget {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 80px;
  }
  .rb-toasts { left: 12px; right: 12px; width: auto; }
  .currency-box input { font-size: 24px; }
}

@media (max-width: 560px) {
  .asset-button { min-width: 0; }
  .flow-steps { grid-template-columns: 1fr; }
}
