:root {
  --canvas: #f2f4f7;
  --paper: #ffffff;
  --paper-soft: #f7f8fa;
  --ink: #11141b;
  --ink-soft: #262b36;
  --muted: #6f7683;
  --line: #d9dde4;
  --line-dark: #313744;
  --night: #0d111b;
  --night-2: #151a26;
  --accent: #2854ff;
  --accent-dark: #173bd1;
  --accent-soft: #e8edff;
  --acid: #caff3d;
  --ok: #0a9668;
  --ok-soft: #e5f8f1;
  --bad: #c63343;
  --bad-soft: #fff0f1;
  --warn: #9a6400;
  --shadow: 0 18px 50px rgba(24, 31, 47, .09);
  /* Display face — kept under the --serif name so existing headings pick it up.
     Swapped from an old-style serif to a clean geometric sans for readability. */
  --display: "Sora", "Inter", ui-sans-serif, system-ui, sans-serif;
  --serif: "Sora", "Inter", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  /* Radius + glossy-blue system (used by the refresh layer at the end of this file) */
  --r-sm: 9px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --gloss: linear-gradient(180deg, #4f74ff 0%, #2f56f5 52%, #2447e0 100%);
  --gloss-hover: linear-gradient(180deg, #6a8bff 0%, #4064ff 55%, #2f52ec 100%);
  --glow: 0 10px 30px rgba(40, 84, 255, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  isolation: isolate;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 54% at 6% -4%, rgba(40, 84, 255, .13), transparent 62%),
    radial-gradient(ellipse 48% 42% at 96% 10%, rgba(202, 255, 61, .045), transparent 66%),
    linear-gradient(145deg, #f6f7fa 0%, #edf0f6 48%, #f8f9fb 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(35, 53, 88, .025) 49%, transparent 50%),
    radial-gradient(rgba(35, 53, 88, .12) .55px, transparent .75px);
  background-size: 190px 190px, 5px 5px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 86%);
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
input, button { border-radius: 0; }
::selection { background: var(--accent); color: #fff; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

.site-frame { width: min(1400px, calc(100% - 48px)); margin: 0 auto; }
.app-frame { width: min(1480px, calc(100% - 48px)); margin: 0 auto; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* Header */
.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  line-height: 1;
  position: relative;
}
.brand-mark::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--acid);
  position: absolute;
  right: -3px;
  top: -3px;
}
.brand-logo { width: 38px; height: 38px; display: block; flex: 0 0 auto; filter: drop-shadow(0 5px 12px rgba(20,38,97,.16)); }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-header nav a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; transition: color .18s ease; }
.site-header nav a:hover { color: var(--ink); }
.desk-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.desk-label span { border: 1px solid var(--line); padding: 3px 7px; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.theme-toggle { width: 42px; min-height: 42px; padding: 0; flex: 0 0 auto; border-color: var(--line); background: transparent; box-shadow: none; }
.theme-toggle:hover { border-color: var(--accent); transform: none; }
.theme-toggle > span { width: 15px; height: 15px; display: block; border: 2px solid currentColor; border-radius: 50%; position: relative; transition: transform .35s ease, background .35s ease; }
.theme-toggle > span::before { content: ""; position: absolute; inset: -6px; border: 1px dotted currentColor; border-radius: 50%; opacity: .65; }
html[data-theme="dark"] .theme-toggle > span { background: var(--acid); border-color: var(--acid); color: var(--acid); transform: rotate(35deg) scale(.72); }

/* Buttons and links */
.btn, button {
  border: 1px solid var(--line-dark);
  background: var(--paper);
  color: var(--ink);
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-weight: 730;
  font-size: 14px;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover, button:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid rgba(40, 84, 255, .25); outline-offset: 3px; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 4px 4px 0 rgba(17, 20, 27, .14);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: 2px 2px 0 rgba(17, 20, 27, .2); }
.btn-primary:disabled { background: #c6cbd4; border-color: #c6cbd4; color: #747b86; box-shadow: none; transform: none; }
.btn-large { min-height: 56px; padding: 14px 20px; gap: 34px; font-size: 15px; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 5px 5px 0 rgba(0,0,0,.22); }
.btn-light:hover { background: var(--acid); border-color: var(--acid); }
.header-cta { min-height: 42px; padding-inline: 15px; gap: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 730; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* Shared type */
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-line { width: 38px; height: 2px; background: currentColor; }
.micro-label, .panel-kicker { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }

/* Landing hero */
.home-hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .76fr);
  align-items: center;
  gap: clamp(64px, 9vw, 150px);
  padding: 82px clamp(0px, 3vw, 42px) 72px;
  position: relative;
  overflow: hidden;
}
.home-hero::after {
  content: "A";
  position: absolute;
  z-index: -1;
  top: 10px;
  right: 1%;
  color: rgba(17, 20, 27, .025);
  font-family: var(--serif);
  font-size: min(46vw, 660px);
  line-height: 1;
  font-style: italic;
  pointer-events: none;
}
.hero-copy h1 {
  max-width: 720px;
  margin: 26px 0 26px;
  font-family: var(--serif);
  font-size: clamp(66px, 7.5vw, 118px);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .84;
}
.hero-copy h1 em { color: var(--accent); font-weight: 400; }
.hero-copy .lede { max-width: 620px; color: #555d69; font-size: 18px; line-height: 1.72; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.assurance-row { display: flex; gap: 22px; margin-top: 48px; color: var(--muted); font-size: 13px; font-weight: 650; flex-wrap: wrap; }
.assurance-row span { display: inline-flex; align-items: center; gap: 8px; }
.assurance-row i { width: 7px; height: 7px; border: 2px solid var(--accent); display: block; }

.market-card { background: var(--night); color: #fff; padding: 30px; box-shadow: 18px 18px 0 #dfe3e9, var(--shadow); position: relative; }
.market-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.06); pointer-events: none; }
.market-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.13); }
.market-card-head strong { display: block; margin-top: 6px; font: 700 18px var(--mono); }
.market-card .micro-label { color: #8f98a8; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; color: #dce3ee; font-size: 12px; font-weight: 700; }
.live-pill i { width: 8px; height: 8px; background: var(--acid); box-shadow: 0 0 0 4px rgba(202,255,61,.11); }
.quote-display { padding: 34px 0 30px; }
.quote-display > span { color: #8f98a8; font-size: 13px; }
.quote-display strong { display: block; margin: 6px 0; font: 500 clamp(32px, 4vw, 54px) var(--mono); letter-spacing: -.07em; }
.quote-display small { color: #7e8798; font: 12px var(--mono); }
.ticket-rule { height: 3px; margin-bottom: 28px; background: linear-gradient(90deg, var(--accent) 0 42%, #343a47 42%); }
.ticket-route { display: grid; gap: 20px; }
.route-point { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: center; color: #606979; position: relative; }
.route-point > span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #353c49; font: 11px var(--mono); }
.route-point:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 33px; width: 1px; height: 20px; background: #353c49; }
.route-point strong, .route-point small { display: block; }
.route-point strong { color: #9ba4b4; font-size: 14px; }
.route-point small { margin-top: 2px; font-size: 12px; }
.route-point.active > span { background: var(--accent); border-color: var(--accent); color: #fff; }
.route-point.active strong { color: #fff; }
.ticket-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); display: flex; align-items: center; justify-content: space-between; color: #7e8798; font-size: 12px; }
.ticket-footer strong { color: var(--acid); font: 14px var(--mono); }

.signal-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--accent); color: #fff; }
.signal-bar > div { min-height: 116px; padding: 25px 28px; border-right: 1px solid rgba(255,255,255,.24); display: flex; flex-direction: column; justify-content: space-between; }
.signal-bar > div:last-child { border-right: 0; }
.signal-bar span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.signal-bar strong { font-family: var(--mono); font-size: 18px; }

/* Landing sections */
.section { padding: 128px clamp(0px, 3vw, 42px); }
.section-heading { margin-bottom: 54px; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .55fr); gap: 60px; align-items: end; }
.section-heading h2, .terms-intro h2, .principle-statement h2 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(46px, 5.2vw, 78px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .98;
}
.split-heading > p, .terms-intro > p { color: var(--muted); font-size: 16px; line-height: 1.72; margin: 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.process-step { min-height: 330px; padding: 24px; border-right: 1px solid var(--line); position: relative; }
.process-step:last-child { border-right: 0; }
.step-no { color: var(--muted); font: 11px var(--mono); }
.step-icon { width: 54px; height: 54px; margin: 58px 0 28px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--accent); font-size: 22px; transition: background .2s, color .2s, transform .2s; }
.process-step:hover .step-icon { background: var(--accent); color: #fff; transform: rotate(-3deg); }
.process-step h3 { margin-bottom: 12px; font-size: 18px; letter-spacing: -.025em; }
.process-step p { color: var(--muted); font-size: 14px; line-height: 1.7; }

.principle-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; background: var(--night); color: #fff; padding-inline: clamp(30px, 6vw, 100px); }
.principle-statement { align-self: center; }
.principle-statement .micro-label { color: #7f8999; }
.principle-statement h2 { color: #fff; }
.principle-list article { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.principle-list article:first-child { border-top: 1px solid rgba(255,255,255,.14); }
.principle-list article > span { color: var(--acid); font: 12px var(--mono); }
.principle-list h3 { margin-bottom: 8px; font-size: 18px; }
.principle-list p { margin: 0; color: #929bab; font-size: 14px; line-height: 1.7; }

.terms-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10vw; align-items: start; }
.terms-intro .text-link { margin-top: 26px; }
.terms-table { border-top: 2px solid var(--ink); }
.terms-table > div { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.terms-table span { color: var(--muted); font-size: 14px; }
.terms-table strong { text-align: right; font: 500 15px var(--mono); }

.faq-section { border-top: 1px solid var(--line); }
.split-heading a { color: var(--ink); text-underline-offset: 4px; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 76px; padding: 18px 2px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font-weight: 720; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 21px; height: 21px; border: 1px solid var(--ink); position: relative; flex: 0 0 auto; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; background: var(--ink); left: 5px; right: 5px; top: 9px; height: 1px; }
.faq summary i::after { transform: rotate(90deg); transition: transform .18s ease; }
.faq details[open] summary i { background: var(--ink); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: rotate(0); }
.faq-body { max-width: 820px; padding: 0 52px 26px 2px; color: var(--muted); font-size: 15px; line-height: 1.75; }

.closing-band { min-height: 390px; padding: clamp(48px, 7vw, 98px); background: var(--accent); color: #fff; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.closing-band .micro-label { color: rgba(255,255,255,.66); }
.closing-band h2 { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(48px, 6vw, 88px); font-weight: 500; letter-spacing: -.06em; line-height: .95; }

/* Shared footer */
.site-footer { min-height: 116px; display: flex; align-items: center; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer .brand-small { font-size: 17px; color: var(--ink); }
.brand-small .brand-mark { width: 28px; height: 28px; font-size: 17px; }
.brand-small .brand-logo { width: 30px; height: 30px; }
.site-footer p { margin: 0; }
.foot-links { display: flex; gap: 22px; margin-left: auto; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* Sell workspace */
.desk-page { background: #eef1f5; }
.app-header { min-height: 78px; }
.app-header .brand { margin-right: 2px; }
.app-header .status { margin-left: auto; }
.app-header nav { margin-left: 8px; }
.status { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.dot { width: 7px; height: 7px; background: var(--ok); box-shadow: 0 0 0 4px rgba(10,150,104,.11); }
.user-menu { min-height: 62px; display: flex; align-items: stretch; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.user-menu a { min-width: 170px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 1px solid transparent; color: var(--muted); font-size: 12px; font-weight: 780; text-decoration: none; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.user-menu a span { color: #9ba2af; font: 9px var(--mono); }
.user-menu a:hover { color: var(--ink); background: var(--paper); transform: translateY(-1px); }
.user-menu a.active { border-color: var(--line-dark); background: var(--ink); color: #fff; box-shadow: 3px 3px 0 rgba(40,84,255,.22); }
.user-menu a.active span { color: var(--acid); }
.user-view { animation: view-in .46s cubic-bezier(.2,.8,.2,1) both; }
.workspace-heading { min-height: 196px; padding: 48px 0 42px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.workspace-heading h1 { margin: 14px 0 0; font-family: var(--serif); font-size: clamp(44px, 5vw, 66px); line-height: 1; font-weight: 500; letter-spacing: -.055em; }
.flow-indicator { display: flex; align-items: center; gap: 10px; padding-bottom: 5px; color: #9ca2ac; font-size: 12px; font-weight: 700; }
.flow-indicator span { display: inline-flex; align-items: center; gap: 8px; }
.flow-indicator i { width: 22px; height: 22px; border: 1px solid #afb5bf; display: grid; place-items: center; font: 10px var(--mono); font-style: normal; }
.flow-indicator b { width: 35px; height: 1px; background: #c9cdd4; }
.flow-indicator .current { color: var(--ink); }
.flow-indicator .current i { background: var(--accent); border-color: var(--accent); color: #fff; }

.desk { display: grid; grid-template-columns: minmax(330px, .78fr) minmax(520px, 1.22fr); border: 1px solid var(--line-dark); background: var(--paper); box-shadow: var(--shadow); }
.panel { background: var(--paper); padding: 30px; }
.asset-panel { border-right: 1px solid var(--line-dark); background: var(--paper-soft); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel-heading h2 { margin: 7px 0 0; font-size: 22px; letter-spacing: -.04em; }
.panel-index { color: #d7dbe2; font: 34px var(--mono); letter-spacing: -.08em; }
.panel .sub { margin: 8px 0 24px; color: var(--muted); font-size: 14px; }

.asset-list-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--ink); }
.asset-list-label span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.asset-list-label small { color: var(--muted); font-size: 10px; }
.assets { max-height: 352px; overflow: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-right: 4px; scrollbar-width: thin; }
.asset { width: 100%; min-height: 92px; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 5px 11px; padding: 11px; border: 1px solid var(--line); background: #fff; text-align: left; box-shadow: none; }
.asset:hover { background: var(--accent-soft); border-color: #aebdff; transform: none; }
.asset.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.asset .coinicon { width: 36px; height: 36px; display: grid; place-items: center; position: relative; color: #fff; border-radius: 50%; font: 700 11px var(--sans); }
.asset .coinicon img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.asset .sym, .asset .name { display: block; }
.asset-title-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.asset-title-row em { padding: 2px 4px; border: 1px solid rgba(40,84,255,.42); color: var(--accent); font-size: 6px; font-style: normal; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.asset .sym { font-size: 14px; font-weight: 780; }
.asset .name { max-width: 120px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.asset.selected .name, .asset.selected small { color: #8f98a8; }
.asset .bal { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 7px; min-width: 0; text-align: left; font-size: 11px; }
.asset .bal strong { overflow: hidden; text-overflow: ellipsis; }
.asset .bal small { color: var(--muted); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.asset-action { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.asset.selected .asset-action { color: var(--acid); }
.contract-asset { animation: contract-reveal .62s cubic-bezier(.18,.9,.22,1) both; }
.contract-asset .coinicon { animation: contract-float 3.2s ease-in-out infinite; }
.contract-asset .coinicon::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--accent); border-radius: 50%; opacity: .65; animation: contract-orbit 2.4s ease-out infinite; }
.contract-asset.selected .asset-title-row em { border-color: rgba(202,255,61,.42); color: var(--acid); }
.field label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .03em; }
input, select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #c9ced7; background: #fff; color: var(--ink); outline: 0; font-size: 15px; transition: border .16s ease, box-shadow .16s ease; }
input::placeholder { color: #a0a6b0; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(40,84,255,.11); }
input:disabled { background: #eef0f4; color: #959ba6; }
.token-field { margin-top: 22px; }
.addrow { display: grid; grid-template-columns: 1fr auto; }
.addrow button { min-width: 96px; margin-left: -1px; }
.addrow button.loading { color: var(--muted); }
.addrow button.loading::before { content: ""; width: 12px; height: 12px; border: 1px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: control-spin .75s linear infinite; }
.panel-note { display: flex; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.panel-note > span { color: var(--accent); }
.panel-note p { margin: 0; font-size: 12px; line-height: 1.55; }

.order-panel { padding: 30px 36px; }
.order-fields { margin-top: 32px; }
.amount-field label { margin-bottom: 10px; }
.amount-wrap { position: relative; }
.amount-wrap input { min-height: 76px; padding: 12px 94px 12px 18px; font: 500 30px var(--mono); letter-spacing: -.05em; }
.amount-wrap > span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font: 11px var(--mono); letter-spacing: .1em; }
.price-field { display: grid; grid-template-columns: 1fr; align-items: end; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.price-status strong { display: block; margin-top: 7px; color: var(--ink-soft); font: 13px var(--mono); line-height: 1.55; }
.manual-field label { white-space: nowrap; }
.manual-field input { min-height: 42px; font-family: var(--mono); }
.receive { margin: 24px 0; padding: 22px; background: var(--night); color: #fff; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 22px; }
.receive[hidden] { display: none; }
.receive > div:first-child strong { display: block; margin-top: 5px; color: var(--acid); font-size: clamp(26px, 4vw, 40px); letter-spacing: -.06em; }
.receive > div:last-child { text-align: right; }
.receive > div:last-child span, .receive > div:last-child strong { display: block; }
.receive > div:last-child span { color: #7f8999; font-size: 11px; text-transform: uppercase; }
.receive > div:last-child strong { margin-top: 5px; font-size: 12px; }
.quote-message .notice { margin-bottom: 14px; }
.execute-button { width: 100%; min-height: 56px; justify-content: space-between; padding-inline: 20px; }
.ticket-footer-note { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; color: var(--muted); font-size: 11px; flex-wrap: wrap; }
.ticket-footer-note a { color: var(--ink); }

.notice { padding: 13px 15px; border: 1px solid #bac8ff; background: var(--accent-soft); color: var(--accent-dark); font-size: 13px; line-height: 1.55; }
.notice.error { border-color: #f0bcc2; background: var(--bad-soft); color: var(--bad); }
.notice.ok { border-color: #adddcd; background: var(--ok-soft); color: var(--ok); }
.trade-progress { margin-top: 24px; padding: 0; overflow: hidden; border: 1px solid var(--line-dark); background: #fafbfc; }
.trade-head { min-height: 58px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); font-size: 12px; }
.badge { padding: 4px 8px; background: var(--accent-soft); color: var(--accent); border: 1px solid #bdc9ff; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.badge.warn { background: #fff7de; border-color: #ead18c; color: var(--warn); }
.badge.dim { background: #f1f2f4; border-color: var(--line); color: var(--muted); }
.matching { min-height: 370px; padding: 42px 22px 36px; display: grid; justify-items: center; align-content: center; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(40,84,255,.08), transparent 42%); }
.radar { width: 132px; height: 132px; margin-bottom: 25px; position: relative; overflow: hidden; border: 1px solid rgba(40,84,255,.78); border-radius: 50%; background: linear-gradient(rgba(40,84,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(40,84,255,.15) 1px, transparent 1px), repeating-radial-gradient(circle, transparent 0 20px, rgba(40,84,255,.22) 21px 22px); background-position: center; background-size: 100% 1px, 1px 100%, auto; box-shadow: 0 0 0 7px rgba(40,84,255,.045), 0 0 36px rgba(40,84,255,.12); }
.radar::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(40,84,255,.2); border-radius: 50%; }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 270deg, transparent 0 76%, rgba(40,84,255,.07) 82%, rgba(40,84,255,.48) 100%); animation: radar-sweep 2.8s linear infinite; }
.radar-sweep::after { content: ""; width: 50%; height: 1px; position: absolute; left: 50%; top: 50%; background: linear-gradient(90deg, var(--accent), transparent); transform-origin: left center; }
.radar-origin { width: 8px; height: 8px; position: absolute; z-index: 3; left: 50%; top: 50%; border: 2px solid #fff; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); box-shadow: 0 0 14px var(--accent); }
.radar-contact { width: 5px; height: 5px; position: absolute; z-index: 2; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 0 rgba(202,255,61,.42); animation: radar-contact 2.8s ease-out infinite; }
.contact-one { left: 27%; top: 31%; animation-delay: .35s; }
.contact-two { right: 23%; top: 43%; animation-delay: 1.25s; }
.contact-three { left: 39%; bottom: 20%; animation-delay: 2s; }
.matching-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.matching-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(40,84,255,.1); animation: soft-pulse 1.8s ease-in-out infinite; }
.matching-title { font-size: 19px; font-weight: 780; letter-spacing: -.025em; }
.matching-note { max-width: 360px; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.matching-bars { height: 18px; margin-top: 17px; display: flex; align-items: end; gap: 4px; }
.matching-bars span { width: 3px; height: 6px; background: var(--accent); animation: matching-bars 1.1s ease-in-out infinite alternate; }
.matching-bars span:nth-child(2) { animation-delay: -.2s; }.matching-bars span:nth-child(3) { animation-delay: -.4s; }.matching-bars span:nth-child(4) { animation-delay: -.6s; }.matching-bars span:nth-child(5) { animation-delay: -.8s; }
#foundBox, #depositBox, #waitingBox, #settledBox, #completedBox, #cancelledBox { animation: state-reveal .42s cubic-bezier(.2,.8,.2,1) both; }
#foundBox, #settledBox, #completedBox, #cancelledBox { padding: 18px; }
#depositBox { padding: 18px 18px 0; }
.deposit-intro { min-height: 64px; padding: 13px 15px; display: flex; align-items: center; gap: 13px; border: 1px solid rgba(40,84,255,.28); background: var(--accent-soft); }
.deposit-intro > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--accent); color: #fff; font-size: 17px; }
.deposit-intro strong, .deposit-intro p { display: block; margin: 0; }
.deposit-intro strong { color: var(--ink); font-size: 12px; }
.deposit-intro p { margin-top: 2px; color: var(--muted); font-size: 11px; }
.deposit-card { margin-top: 12px; border: 1px solid var(--line); background: var(--paper-soft); }
.deposit-card-head { min-height: 50px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.deposit-card-head span, .deposit-card-head strong { display: block; }
.deposit-card-head > div > span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.deposit-card-head > div > strong { margin-top: 2px; color: var(--ink); font-size: 11px; }
.verified-route { display: flex !important; align-items: center; gap: 7px; color: var(--ok); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.verified-route i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(10,150,104,.11); animation: soft-pulse 2.1s ease-in-out infinite; }
.deposit-card-body { padding: 16px; display: grid; grid-template-columns: 142px minmax(0, 1fr); gap: 18px; align-items: center; }
.deposit-qr { width: 142px; height: 142px; padding: 6px; position: relative; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.deposit-qr .payment-qr-svg { width: 100%; height: 100%; }
.deposit-qr-coin { width: 24px; height: 24px; position: absolute; left: 50%; top: 50%; display: grid; place-items: center; overflow: hidden; border: 2px solid #fff; border-radius: 50%; color: #fff; font-size: 7px; font-weight: 800; transform: translate(-50%, -50%); box-shadow: 0 2px 6px rgba(0,0,0,.23); }
.deposit-qr-coin img { width: 100%; height: 100%; display: block; }
.deposit-qr-unavailable { color: var(--muted); font-size: 9px; }
.deposit-details { min-width: 0; }
.deposit-addr { min-height: 62px; margin: 7px 0 0; padding: 12px; display: flex; align-items: center; border: 1px solid var(--line); background: #fff; word-break: break-all; font-size: 10px; line-height: 1.55; }
.deposit-actions { margin-top: 10px; display: grid; grid-template-columns: minmax(112px, .72fr) minmax(155px, 1.28fr); gap: 8px; }
.copy-button, .transfer-confirm { min-height: 43px; margin: 0; padding: 8px 12px; box-shadow: none; font-size: 11px; }
.copy-button { border-color: var(--line-dark); background: transparent; }
.copy-button span { font-size: 14px; }
.transfer-confirm { justify-content: space-between; }
.transfer-confirm:disabled { opacity: .6; }
.deposit-claim-message { min-height: 0; margin: 0; padding: 0 16px; color: var(--muted); font-size: 10px; transition: min-height .2s ease, padding .2s ease; }
.deposit-claim-message:not(:empty) { min-height: 42px; padding-block: 12px; border-top: 1px solid var(--line); }
.deposit-claim-message.ok { color: var(--ok); }
.deposit-claim-message.error { color: var(--bad); }
.escrow-notice { min-height: 112px; margin: 14px 0 18px; padding: 17px; display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; position: relative; overflow: hidden; border: 1px solid rgba(40,84,255,.25); background: linear-gradient(120deg, rgba(40,84,255,.1), rgba(40,84,255,.025)); }
.escrow-notice::after { content: ""; width: 22%; position: absolute; inset: 0 auto 0 -40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); transform: skewX(-18deg); animation: escrow-sheen 4.6s ease-in-out infinite; }
.escrow-mark { width: 42px; height: 42px; display: grid; place-items: center; position: relative; z-index: 1; border: 1px solid rgba(40,84,255,.38); border-radius: 50%; background: rgba(40,84,255,.1); }
.escrow-mark span { width: 16px; height: 15px; position: relative; border: 2px solid var(--accent); border-radius: 3px; }
.escrow-mark span::before { content: ""; width: 9px; height: 9px; position: absolute; left: 50%; top: -9px; border: 2px solid var(--accent); border-bottom: 0; border-radius: 8px 8px 0 0; transform: translateX(-50%); }
.escrow-notice > div { position: relative; z-index: 1; }
.escrow-kicker { display: block; margin-bottom: 3px; color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.escrow-notice strong { display: block; color: var(--ink); font-size: 12px; }
.escrow-notice p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.escrow-signal { display: flex; gap: 4px; }
.escrow-signal i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: escrow-signal 1.6s ease-in-out infinite; }
.escrow-signal i:nth-child(2) { animation-delay: .2s; }.escrow-signal i:nth-child(3) { animation-delay: .4s; }
.steps { display: grid; margin: 0; padding: 0 18px 18px; }
.steps .step { min-height: 55px; padding: 11px 10px 11px 40px; display: flex; align-items: center; position: relative; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; }
.steps .step:last-child { border-bottom: 0; }
.steps .step i { width: 15px; height: 15px; position: absolute; left: 11px; top: 50%; border: 1px solid #7f8998; border-radius: 50%; background: var(--paper); transform: translateY(-50%); z-index: 2; }
.steps .step:not(:last-child)::after { content: ""; width: 1px; height: calc(50% + 13px); position: absolute; left: 18px; top: calc(50% + 8px); background: var(--line); }
.steps .step.active { color: var(--ink); }
.steps .step.active i { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(40,84,255,.08); animation: escrow-step-pulse 1.8s ease-in-out infinite; }
.steps .step.done { color: var(--ok); }
.steps .step.done i { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 0 4px rgba(10,150,104,.09); }
.steps .step.done i::before { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 8px var(--sans); }
@keyframes radar-sweep { to { transform: rotate(360deg); } }
@keyframes radar-contact { 0%, 48%, 100% { opacity: .28; box-shadow: 0 0 0 0 rgba(202,255,61,0); } 55% { opacity: 1; box-shadow: 0 0 0 7px rgba(202,255,61,.12); } }
@keyframes matching-bars { to { height: 18px; opacity: .35; } }
@keyframes state-reveal { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes contract-reveal { from { opacity: 0; transform: translateY(14px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes contract-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes contract-orbit { 0% { opacity: .65; transform: scale(.78); } 80%, 100% { opacity: 0; transform: scale(1.2); } }
@keyframes control-spin { to { transform: rotate(360deg); } }
@keyframes escrow-sheen { 0%, 55% { left: -40%; } 82%, 100% { left: 120%; } }
@keyframes escrow-signal { 0%, 100% { opacity: .25; transform: scale(.72); } 50% { opacity: 1; transform: scale(1); } }
@keyframes escrow-step-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(40,84,255,.08); } 50% { box-shadow: 0 0 0 8px rgba(40,84,255,0); } }
.invoice-card { margin-top: 12px; padding: 16px; border: 1px solid var(--line); background: #fff; }
.inv-row { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); font-size: 12px; }
.inv-row > span:first-child { color: var(--muted); }
.inv-row > span:last-child { text-align: right; overflow-wrap: anywhere; }
.invoice-card .execute-button { margin-top: 14px; }
.footnote { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.recent { margin-top: 64px; }
.balance-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 18px; }
.balance-heading h2 { margin: 6px 0 0; font-family: var(--serif); font-size: 38px; font-weight: 500; letter-spacing: -.04em; }
.balance-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.balance-panel { border: 1px solid var(--line-dark); padding: 0; }
.profile-strip { min-height: 84px; padding: 18px 24px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line-dark); background: var(--night); color: #fff; }
.profile-avatar { width: 42px; height: 42px; display: grid; place-items: center; background: transparent; color: #fff; font: italic 24px var(--serif); }
.profile-avatar img { width: 42px; height: 42px; display: block; }
.profile-strip > div:nth-child(2) { min-width: 0; }
.profile-strip span, .profile-strip small { display: block; }
.profile-strip span { font: 700 13px var(--mono); }
.profile-strip small { margin-top: 4px; color: #8f98a8; font-size: 11px; }
.profile-strip button { min-height: 38px; margin-left: auto; padding: 7px 12px; border-color: #414957; background: transparent; color: #fff; font-size: 11px; }
.balance-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-dark); }
.balance-grid > div { min-height: 138px; padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.balance-grid > div:last-child { border-right: 0; }
.bal-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.bal-big { display: block; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.06em; }
.bal-big.frozen { color: var(--bad); }
.balance-grid small { color: var(--muted); font-size: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 13px 18px; background: #f7f8fa; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
td { padding: 15px 18px; border-top: 1px solid var(--line); }
td.num, th.num { text-align: right; }
.empty { color: var(--muted); text-align: center; padding: 28px; }
.fee-gate { margin: 24px; padding: 20px; position: relative; display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; align-items: center; overflow: hidden; border: 1px solid #5369b6; background: linear-gradient(135deg, #111b39 0%, #17275a 100%); color: #fff; box-shadow: 0 18px 46px rgba(18,42,113,.22); }
.fee-gate::after { content: ""; width: 180px; height: 180px; position: absolute; right: -84px; top: -105px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 26px rgba(255,255,255,.025), 0 0 0 52px rgba(255,255,255,.018); pointer-events: none; }
.fee-gate[hidden] { display: none; }
.fee-gate-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: var(--acid); font-size: 19px; font-weight: 900; }
.fee-gate span, .fee-gate strong, .fee-gate small { display: block; }
.fee-gate > div:nth-child(2) > span { color: #9fb0ff; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.fee-gate strong { margin-top: 4px; color: #fff; font: 700 13px var(--mono); }
.fee-gate #feeInvoiceAmount { display: inline; }
.fee-gate small { margin-top: 4px; color: #aab6d7; font-size: 11px; }
.auric-pay-launch { position: relative; z-index: 1; min-width: 190px; border-color: var(--acid); background: var(--acid); color: #071006; }
.auric-pay-launch:hover { border-color: #dcff79; background: #dcff79; }
.fee-gate-enter { animation: fee-gate-arrive .7s cubic-bezier(.16,.8,.3,1) both, fee-gate-glow 1.8s .7s ease-out both; }
.withdraw-card { transition: box-shadow .35s ease, background-color .35s ease; }
.withdraw-card.withdrawal-open { position: relative; z-index: 1; background: linear-gradient(145deg, var(--paper) 0%, var(--accent-soft) 160%); box-shadow: inset 0 0 0 1px var(--accent), 0 20px 50px rgba(40,84,255,.15); }
.profile-grid { display: grid; grid-template-columns: 1.12fr .88fr; border-bottom: 1px solid var(--line-dark); }
.withdraw-card, .withdraw-history { padding: 28px 24px; }
.withdraw-card { border-right: 1px solid var(--line-dark); }
.withdraw-card h3, .withdraw-history h3, .trade-ledger-head h3 { margin: 7px 0 8px; font-size: 21px; letter-spacing: -.035em; }
.withdraw-card > p { max-width: 560px; margin-bottom: 22px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.withdraw-fields { display: grid; grid-template-columns: 160px 1fr; gap: 12px; margin-bottom: 12px; }
.withdraw-message { min-height: 18px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.withdraw-message.error { color: var(--bad); }
.withdraw-message.ok { color: var(--ok); }
.profile-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.profile-section-head > span { padding: 4px 7px; border: 1px solid var(--line); color: var(--muted); font: 9px var(--mono); }
.withdrawal-row { min-height: 60px; padding: 11px 0; display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; border-top: 1px solid var(--line); font-size: 11px; }
.withdrawal-row strong, .withdrawal-row small { display: block; }
.withdrawal-row strong { font: 700 11px var(--mono); }
.withdrawal-row small { margin-top: 3px; color: var(--muted); font: 9px var(--mono); }
.withdrawal-empty { padding-inline: 0; text-align: left; }
.trade-ledger-head { padding: 24px 24px 10px; }
.compact-footer { margin-top: 80px; min-height: 90px; }

/* Wallet modal and toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 22px; background: rgba(9,13,22,.72); backdrop-filter: blur(8px); }
.modal { width: min(500px, 100%); padding: 30px; background: #fff; border: 1px solid var(--ink); box-shadow: 14px 14px 0 rgba(40,84,255,.28); }
.modal h3 { margin-bottom: 5px; font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.modal .sub { margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; }
.modal-label { margin-bottom: 10px; color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.account-modal { width: min(560px, 100%); }
.account-primary { width: 100%; justify-content: space-between; min-height: 54px; }
.account-divider { height: 44px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.account-divider::before, .account-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.account-divider span { padding-inline: 12px; }
.form-error { margin: 10px 0; padding: 9px 11px; background: var(--bad-soft); color: var(--bad); font-size: 12px; }
.key-warning { margin-bottom: 18px; padding: 14px; border: 1px solid #e1bb52; background: #fff8dd; }
.key-warning strong, .key-warning span { display: block; }
.key-warning strong { font-size: 13px; }
.key-warning span { margin-top: 3px; color: #75663e; font-size: 11px; }
.key-copy-button { width: 100%; margin: 8px 0; }
.account-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.account-modal input[readonly] { background: var(--paper-soft); font-size: 12px; }

.payment-qr-svg { width: 100%; height: 100%; display: block; }

/* Exchange completion and Arcane checkout */
.settlement-success { min-height: 310px; padding: 42px 28px 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #266951; background: radial-gradient(circle at 50% 12%, rgba(67,218,163,.13), transparent 42%), #0c1718; color: #f5fbf8; text-align: center; }
.settlement-orbit { width: 92px; height: 92px; position: relative; display: grid; place-items: center; margin-bottom: 25px; border: 1px solid rgba(94,215,168,.55); border-radius: 50%; animation: success-orbit 1.8s ease-in-out infinite; }
.settlement-orbit::before, .settlement-orbit::after { content: ""; position: absolute; border: 1px solid rgba(94,215,168,.24); border-radius: 50%; animation: success-ring 1.8s ease-out infinite; }
.settlement-orbit::before { inset: -10px; }
.settlement-orbit::after { inset: -22px; animation-delay: .45s; }
.settlement-orbit span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #06140f; font-size: 25px; font-weight: 900; box-shadow: 0 0 36px rgba(94,215,168,.28); animation: success-check .55s cubic-bezier(.2,1.6,.4,1) both; }
.settlement-kicker { color: var(--ok); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.settlement-success h3 { margin: 8px 0 8px; font-family: var(--serif); font-size: clamp(30px,4vw,42px); font-weight: 500; letter-spacing: -.04em; }
.settlement-success p { max-width: 485px; margin: 0; color: #9eb7ae; font-size: 13px; line-height: 1.65; }
.settlement-loading { width: min(310px,100%); height: 3px; margin: 26px 0 10px; overflow: hidden; background: rgba(255,255,255,.09); }
.settlement-loading i { width: 50%; height: 100%; display: block; background: linear-gradient(90deg, transparent, var(--ok), transparent); animation: settlement-load 1.4s ease-in-out infinite; }
.settlement-success small { color: #789087; font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* ============ Payment checkout (rebuilt) ============ */
.payment-prep-backdrop, .auric-payment-backdrop { padding: 18px; overflow-y: auto; background: rgba(3,7,13,.86); backdrop-filter: blur(14px); }

.payment-prep { width: min(430px,100%); margin: auto; padding: 44px 38px 34px; border: 1px solid rgba(120,150,255,.22); border-radius: var(--r-xl); background: radial-gradient(120% 90% at 50% -10%, rgba(70,110,255,.28), transparent 55%), #0b1120; color: #fff; text-align: center; box-shadow: 0 40px 110px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05); }
.payment-prep-visual { width: 92px; height: 92px; position: relative; display: grid; place-items: center; margin: 0 auto 26px; border-radius: 50%; }
.payment-prep-visual img { width: 44px; height: 44px; position: relative; z-index: 1; }
.payment-prep-visual i { position: absolute; inset: 4px; border: 2px solid transparent; border-top-color: #6c8bff; border-right-color: rgba(108,139,255,.28); border-radius: 50%; animation: prep-spin 1.25s linear infinite; }
.payment-prep-visual i:last-child { inset: 16px; border-top-color: #59d3ff; border-right-color: transparent; animation-direction: reverse; animation-duration: .9s; }
.payment-prep > span { color: #93a8ff; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.payment-prep h3 { margin: 12px 0 26px; font-family: var(--display); font-size: 25px; font-weight: 700; letter-spacing: -.02em; }
.payment-prep-steps { display: flex; justify-content: center; gap: 18px; color: #8290ab; font-size: 10px; }
.payment-prep-steps b { position: relative; font-weight: 600; }
.payment-prep-steps b + b::before { content: ""; width: 4px; height: 4px; position: absolute; left: -11px; top: 5px; border-radius: 50%; background: #46567a; }
.payment-prep-bar { height: 4px; margin: 20px 0 12px; overflow: hidden; border-radius: 99px; background: #172038; }
.payment-prep-bar i { width: 45%; height: 100%; display: block; border-radius: 99px; background: linear-gradient(90deg, #4d6fff, #59d3ff); animation: prep-load 1.15s ease-in-out infinite; }
.payment-prep > small { color: #6d7c96; font: 10px var(--mono); }

.auric-payment-modal { width: min(680px,100%); margin: auto; overflow: hidden; border: 1px solid rgba(120,150,255,.18); border-radius: var(--r-xl); background: #0b111d; color: #eef2f9; box-shadow: 0 40px 120px rgba(0,0,0,.66), inset 0 1px 0 rgba(255,255,255,.04); color-scheme: dark; animation: rise-in .32s cubic-bezier(.2,.8,.2,1) both; }
.auric-payment-head { min-height: 70px; padding: 16px 18px 16px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.06); background: linear-gradient(180deg, rgba(46,86,245,.14), transparent); }
.auric-payment-brand { display: flex; align-items: center; gap: 13px; }
.auric-payment-brand img { width: 34px; height: 34px; }
.auric-payment-brand strong, .auric-payment-brand small { display: block; }
.auric-payment-brand strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.auric-payment-brand small { margin-top: 2px; color: #8492ab; font-size: 10px; letter-spacing: .04em; }
.auric-payment-head > button { width: 36px; min-height: 36px; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.02); color: #8492ab; font-size: 21px; }
.auric-payment-head > button:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: #fff; transform: none; }
.auric-payment-body { padding: 20px 22px 4px; }

/* summary */
.auric-payment-total { margin-bottom: 20px; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; border: 1px solid rgba(120,150,255,.16); border-radius: var(--r-lg); background: radial-gradient(120% 130% at 100% 0%, rgba(46,86,245,.16), transparent 60%), #0e1626; }
.auric-payment-total > div { min-width: 0; }
.auric-payment-total .pay-amount-label { color: #8896ad; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.auric-payment-total strong { display: block; margin: 4px 0 5px; color: #fff; font: 700 30px var(--mono); letter-spacing: -.03em; }
.auric-payment-total .pay-amount-sub { color: #6a798f; font-size: 11px; }
.auric-payment-total .pay-amount-sub code { color: #a9b6cc; font-family: var(--mono); }
.auric-invoice-status { align-self: start; padding: 7px 11px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(94,215,168,.3); border-radius: 99px; background: rgba(94,215,168,.08); color: var(--ok); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.auric-invoice-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(94,215,168,.14); animation: soft-pulse 1.8s ease-in-out infinite; }

/* section labels */
.auric-step-label { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; color: #c4cddd; font-size: 12px; font-weight: 650; }
.auric-step-label b { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: var(--gloss); color: #fff; font: 700 11px var(--sans); }

/* method chooser */
.auric-methods { margin-bottom: 22px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.auric-methods button { min-height: 62px; padding: 11px 13px; display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; align-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: var(--r); background: #0e1626; color: #eef2f9; text-align: left; box-shadow: none; transition: border-color .18s, background .18s; }
.auric-methods button:hover { border-color: rgba(108,139,255,.5); background: #121c30; transform: none; }
.auric-methods button.active { border-color: #5f7dff; background: linear-gradient(180deg, rgba(46,86,245,.22), rgba(46,86,245,.06)); box-shadow: 0 0 0 1px rgba(95,125,255,.35), 0 8px 22px rgba(40,84,255,.18); }
.auric-methods button:disabled { opacity: .4; cursor: not-allowed; }
.auric-methods button > span { min-width: 0; }
.auric-methods button > span strong, .auric-methods button > span small { display: block; }
.auric-methods button > span strong { font-size: 12px; font-weight: 650; }
.auric-methods button > span small { margin-top: 2px; color: #8492ab; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auric-methods button em { color: #66748c; font-size: 9px; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.auric-methods button.active em { color: #7fe3b4; }
.auric-method-icon, .auric-qr-coin { display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; font-family: Arial,sans-serif; font-style: normal; font-weight: 800; }
.auric-method-icon img, .auric-qr-coin img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.auric-method-icon { width: 34px; height: 34px; font-size: 18px; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.auric-method-icon.btc, .auric-qr-coin.btc { background: linear-gradient(180deg,#ffb04a,#f7931a); }
.auric-method-icon.ltc, .auric-qr-coin.ltc { background: linear-gradient(180deg,#7a8798,#525d6d); }
.auric-method-icon.usdt, .auric-qr-coin.usdt { background: linear-gradient(180deg,#2fbf93,#1f8a68); }

/* route / address */
.auric-payment-route { margin-bottom: 18px; border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-lg); background: #0e1626; overflow: hidden; }
.auric-route-head { min-height: 52px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.auric-route-head div span, .auric-route-head div strong { display: block; }
.auric-route-head div span { color: #66748c; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.auric-route-head div strong { margin-top: 3px; font-size: 12px; }
.auric-secure-chip { padding: 6px 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(94,215,168,.32); border-radius: 99px; color: var(--ok); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.auric-secure-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.auric-route-body { padding: 18px; display: grid; grid-template-columns: 168px minmax(0,1fr); gap: 20px; align-items: start; }
.auric-payment-qr { aspect-ratio: 1; position: relative; display: grid; place-items: center; padding: 10px; box-sizing: border-box; border-radius: var(--r); background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.auric-qr-coin { width: 30px; height: 30px; position: absolute; left: 50%; top: 50%; border: 2px solid #fff; font-size: 17px; transform: translate(-50%,-50%); box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.auric-route-details { min-width: 0; display: flex; flex-direction: column; }
.auric-amount-due { margin-bottom: 16px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.07); }
.auric-amount-due span, .auric-amount-due strong, .auric-amount-due small { display: block; }
.auric-amount-due span, .auric-route-details > label { color: #66748c; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.auric-amount-due strong { margin: 6px 0 3px; color: #fff; font: 700 20px var(--mono); letter-spacing: -.02em; overflow-wrap: anywhere; }
.auric-amount-due small { color: #8492ab; font-size: 10px; }
.auric-route-details > code { min-height: 52px; margin: 8px 0 10px; padding: 12px 13px; display: flex; align-items: center; overflow-wrap: anywhere; border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-sm); background: #08101c; color: #cdd7e8; font: 11px/1.5 var(--mono); }
.auric-route-details > button { min-height: 40px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-sm); background: rgba(255,255,255,.03); color: #dbe3ef; box-shadow: none; font-size: 12px; font-weight: 600; }
.auric-route-details > button:hover { border-color: rgba(108,139,255,.5); background: rgba(108,139,255,.1); transform: none; }
.auric-route-unavailable { color: #8492ab; font: 10px var(--mono); text-transform: uppercase; }

/* actions */
.auric-payment-actions { padding-bottom: 6px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.auric-payment-actions a, .auric-payment-actions button { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r); font-size: 13px; font-weight: 700; text-decoration: none; }
.auric-payment-actions a { border: 1px solid rgba(255,255,255,.12); color: #dbe3ef; background: rgba(255,255,255,.03); }
.auric-payment-actions a:hover { border-color: rgba(108,139,255,.5); background: rgba(108,139,255,.1); }
.auric-payment-actions a.disabled { opacity: .4; pointer-events: none; }
.auric-payment-actions button { border: 0; background: var(--gloss); color: #fff; box-shadow: var(--glow); }
.auric-payment-actions button:hover { background: var(--gloss-hover); transform: translateY(-1px); }
.auric-payment-actions button:disabled { background: #2a3550; color: #7d89a0; box-shadow: none; transform: none; }
.auric-payment-message { min-height: 0; margin: 12px 0 4px; color: var(--ok); font-size: 12px; text-align: center; }
.auric-payment-foot { min-height: 40px; margin-top: 16px; padding: 11px 22px; display: flex; justify-content: center; gap: 22px; align-items: center; border-top: 1px solid rgba(255,255,255,.06); color: #5c6b83; font: 10px var(--mono); letter-spacing: .04em; }
.auric-payment-foot span { display: inline-flex; align-items: center; gap: 6px; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 12px 18px; background: var(--night); color: #fff; border-left: 4px solid var(--acid); box-shadow: var(--shadow); font-size: 13px; }

/* Legal */
.legal-page .shell { max-width: 1180px; }
.legal { width: min(820px, 100%); margin: 72px auto 0; }
.legal-title { margin-bottom: 64px; padding-bottom: 38px; border-bottom: 2px solid var(--ink); }
.legal h1 { margin: 18px 0 10px; font-family: var(--serif); font-size: clamp(54px, 8vw, 96px); font-weight: 500; letter-spacing: -.065em; line-height: .95; }
.legal-updated { margin: 0; color: var(--muted); font: 12px var(--mono); }
.legal section { display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.legal section h2 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
.legal section > p, .legal section > ul { margin: 0; }
.legal p, .legal li { color: #545c68; font-size: 15px; line-height: 1.78; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 9px; }
.legal strong { color: var(--ink); }
.legal + .site-footer { margin-top: 70px; }

/* Motion and public color themes */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes view-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes soft-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(10,150,104,.1); } 50% { box-shadow: 0 0 0 9px rgba(10,150,104,0); } }
@keyframes success-ring { 0% { opacity: .75; transform: scale(.72); } 70%, 100% { opacity: 0; transform: scale(1.18); } }
@keyframes success-orbit { 0%, 100% { box-shadow: 0 0 0 0 rgba(94,215,168,.08); } 50% { box-shadow: 0 0 38px 4px rgba(94,215,168,.18); } }
@keyframes success-check { from { opacity: 0; transform: scale(.35) rotate(-18deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes settlement-load { from { transform: translateX(-110%); } to { transform: translateX(230%); } }
@keyframes prep-spin { to { transform: rotate(360deg); } }
@keyframes prep-load { 0% { transform: translateX(-110%); } 100% { transform: translateX(225%); } }
@keyframes fee-gate-arrive { from { opacity: 0; transform: translateY(15px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fee-gate-glow { 0%, 100% { box-shadow: 0 18px 46px rgba(18,42,113,.22); } 45% { box-shadow: 0 18px 58px rgba(77,111,255,.38), inset 0 0 0 1px rgba(202,255,61,.2); } }
body { animation: page-in .34s ease both; transition: background-color .32s ease, color .32s ease; }
.hero-copy, .workspace-heading > div:first-child, .legal-title { animation: rise-in .62s .04s cubic-bezier(.2,.8,.2,1) both; }
.market-card, .desk, .balance-panel { animation: rise-in .68s .14s cubic-bezier(.2,.8,.2,1) both; }
.process-step, .faq details, .terms-table > div, .asset { transition: transform .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease; }
.process-step:hover, .terms-table > div:hover { transform: translateY(-3px); }
.asset:hover { transform: translateY(-2px); }
.trade-progress { animation: rise-in .4s cubic-bezier(.2,.8,.2,1) both; }
.modal { animation: rise-in .3s cubic-bezier(.2,.8,.2,1) both; }
.dot { animation: soft-pulse 2.2s ease-in-out infinite; }

html[data-theme="dark"] {
  --canvas: #090d14;
  --paper: #121823;
  --paper-soft: #0e141e;
  --ink: #f4f6fa;
  --ink-soft: #d8dee8;
  --muted: #8d97a6;
  --line: #28313e;
  --line-dark: #4a5667;
  --night: #070b12;
  --night-2: #111824;
  --accent: #4d6fff;
  --accent-dark: #6e88ff;
  --accent-soft: #17244f;
  --ok: #5ed7a8;
  --ok-soft: #102b24;
  --bad: #ff7d87;
  --bad-soft: #35171d;
  --warn: #f3c761;
  --shadow: 0 22px 70px rgba(0,0,0,.34);
}
html[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 74% 58% at 5% -8%, rgba(55, 86, 222, .24), transparent 63%),
    radial-gradient(ellipse 55% 44% at 98% 8%, rgba(52, 83, 184, .14), transparent 66%),
    radial-gradient(ellipse 48% 38% at 58% 104%, rgba(22, 45, 102, .16), transparent 72%),
    linear-gradient(145deg, #070b12 0%, #0c121d 46%, #080d15 100%);
}
html[data-theme="dark"] body::after {
  opacity: .34;
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(153, 173, 220, .035) 49%, transparent 50%),
    radial-gradient(rgba(159, 177, 216, .18) .55px, transparent .75px);
}
html[data-theme="dark"] .desk-page { background: var(--canvas); }
html[data-theme="dark"] .home-hero::after { color: rgba(255,255,255,.018); }
html[data-theme="dark"] .hero-copy .lede, html[data-theme="dark"] .legal p, html[data-theme="dark"] .legal li { color: var(--muted); }
html[data-theme="dark"] .market-card { box-shadow: 18px 18px 0 #17202d, var(--shadow); }
html[data-theme="dark"] .asset, html[data-theme="dark"] input, html[data-theme="dark"] select { background: var(--paper); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] input:disabled { background: #171e29; color: #687386; }
html[data-theme="dark"] .asset.selected { background: #060a10; border-color: #657287; color: #fff; }
html[data-theme="dark"] .asset:hover { border-color: #5772df; }
html[data-theme="dark"] .trade-progress, html[data-theme="dark"] .deposit-addr, html[data-theme="dark"] .invoice-card, html[data-theme="dark"] .modal { background: var(--paper); }
html[data-theme="dark"] .step, html[data-theme="dark"] th { background: var(--paper-soft); }
html[data-theme="dark"] .steps .step { background: transparent; }
html[data-theme="dark"] .deposit-intro { border-color: #344b96; }
html[data-theme="dark"] .deposit-card { border-color: var(--line); }
html[data-theme="dark"] .badge.warn { background: #322713; border-color: #6d5420; color: var(--warn); }
html[data-theme="dark"] .badge.dim { background: #1b222d; }
html[data-theme="dark"] .notice { border-color: #3b55a7; }
html[data-theme="dark"] .notice.ok { border-color: #255c4b; }
html[data-theme="dark"] .notice.error { border-color: #71313a; }
html[data-theme="dark"] .key-warning { border-color: #6f5a22; background: #2c2514; }
html[data-theme="dark"] .key-warning span { color: #c9ae62; }
html[data-theme="dark"] .user-menu a.active { background: #f4f6fa; color: #0c1119; }
html[data-theme="dark"] .split-heading a { color: var(--ink); }
html[data-theme="dark"] .btn-primary:disabled { background: #303947; border-color: #303947; color: #758092; }

/* Ops */
.ops-page { background: var(--night); color: #fff; }
.ops-page::before {
  background:
    radial-gradient(ellipse 72% 58% at 5% -8%, rgba(55, 86, 222, .24), transparent 63%),
    radial-gradient(ellipse 52% 42% at 98% 8%, rgba(52, 83, 184, .14), transparent 66%),
    linear-gradient(145deg, #070b12 0%, #0c121d 46%, #080d15 100%);
}
.ops-frame { width: min(1380px, calc(100% - 48px)); margin: 0 auto; }
.ops-page .site-header { border-color: #2b3240; }
.ops-page .brand { color: #fff; }
.ops-page .brand-mark { background: #fff; color: var(--night); }
.ops-page .desk-label { color: #8f98a8; }
.ops-page .desk-label span { color: var(--acid); border-color: #3b4352; }
.ops-page .status { margin-left: auto; color: #8f98a8; }
.ops-page .dot { background: var(--acid); box-shadow: 0 0 0 4px rgba(202,255,61,.1); }
.ops-layout { min-height: calc(100vh - 88px); display: grid; grid-template-columns: 330px 1fr; gap: 7vw; align-items: center; padding: 62px 0 80px; }
.ops-sidebar h1 { margin: 22px 0; font-family: var(--serif); font-size: clamp(58px, 7vw, 92px); font-weight: 500; letter-spacing: -.07em; line-height: .84; }
.ops-sidebar > p { max-width: 260px; color: #8f98a8; font-size: 15px; line-height: 1.7; }
.ops-security { display: flex; align-items: center; gap: 13px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #2c3340; color: var(--acid); }
.ops-security strong, .ops-security small { display: block; }
.ops-security strong { color: #fff; font-size: 13px; }
.ops-security small { margin-top: 3px; color: #757f8f; font-size: 11px; }
.ops-panel { padding: 34px; background: #151a25; border: 1px solid #343b49; box-shadow: 18px 18px 0 rgba(0,0,0,.22); }
.ops-panel .panel-heading h2 { color: #fff; }
.ops-panel .panel-kicker, .ops-note { color: #7f8999; }
.terminal-status { display: inline-flex; align-items: center; gap: 9px; color: #aeb7c6; font-size: 11px; text-transform: uppercase; }
.terminal-status i { width: 7px; height: 7px; background: var(--acid); }
.ops-note { margin: 12px 0 24px; font-size: 13px; }
.ops-note .mono { color: #c9d1df; }
.ops-command-field { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; border: 1px solid #3c4453; background: #0b0f17; }
.terminal-prompt { color: var(--acid); text-align: center; font: 20px var(--mono); }
.ops-command-field input { min-height: 55px; border: 0; background: transparent; color: #fff; font-family: var(--mono); box-shadow: none; }
.ops-command-field button { min-height: 55px; border: 0; box-shadow: none; }
.ops-log { min-height: 310px; max-height: 460px; margin-top: 18px; padding: 20px; overflow: auto; border: 1px solid #2e3541; background: #090d14; color: #c8d0dd; font: 12px/1.8 var(--mono); white-space: pre-wrap; }
.ops-log > div { border-bottom: 1px solid rgba(255,255,255,.035); padding-block: 2px; }
.log-system { color: #687283; }
.ops-cmd { color: var(--acid); }
.command-reference { display: flex; gap: 7px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.command-reference > span { margin-right: 5px; color: #697383; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.command-reference code { padding: 4px 7px; border: 1px solid #303744; color: #909aaa; font: 10px var(--mono); }

/* button-first owner dashboard */
.ops-dashboard-layout { grid-template-columns: 285px minmax(0, 1fr); gap: clamp(32px, 5vw, 76px); align-items: start; padding-top: 70px; }
.ops-dashboard-layout .ops-sidebar { position: sticky; top: 34px; padding-top: 18px; }
.ops-workspace { min-width: 0; }
.ops-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.ops-toolbar h2 { margin: 5px 0 0; color: #fff; font: 500 clamp(38px, 5vw, 62px)/.95 var(--serif); letter-spacing: -.055em; }
.ops-toolbar .panel-kicker { color: var(--acid); }
.ops-refresh { min-height: 42px; padding: 0 15px; border: 1px solid #3c4453; background: transparent; color: #c8d0dd; box-shadow: none; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.ops-refresh:hover { border-color: #788499; color: #fff; transform: none; }
.ops-page .dot.offline { background: #697383; box-shadow: none; }
.ops-auto-switch { width: 100%; display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 12px; margin-top: 34px; padding: 16px; border: 1px solid #343c49; background: #10151e; color: #fff; text-align: left; box-shadow: none; }
.ops-auto-switch:hover { border-color: #687386; transform: none; }
.ops-auto-switch .ops-auto-light { width: 9px; height: 9px; background: #596272; box-shadow: 0 0 0 5px rgba(89,98,114,.12); }
.ops-auto-switch.enabled { border-color: rgba(202,255,61,.45); background: rgba(202,255,61,.05); }
.ops-auto-switch.enabled .ops-auto-light { background: var(--acid); box-shadow: 0 0 0 5px rgba(202,255,61,.1); }
.ops-auto-switch strong, .ops-auto-switch small { display: block; }
.ops-auto-switch strong { font-size: 12px; }
.ops-auto-switch small { margin-top: 4px; color: #7f8999; font-size: 9px; line-height: 1.35; }
.ops-auto-switch b { color: #828c9c; font: 700 11px var(--mono); }
.ops-auto-switch.enabled b { color: var(--acid); }
.ops-alert { position: sticky; top: 12px; z-index: 20; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #4d586a; background: #202735; color: #fff; font-size: 12px; line-height: 1.55; white-space: pre-line; box-shadow: 8px 8px 0 rgba(0,0,0,.18); }
.ops-alert.success { border-left: 3px solid var(--acid); }
.ops-alert.error { border-left: 3px solid #ff6e69; }
.ops-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; border: 1px solid #343c49; background: #10151e; }
.ops-stats > div { min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; border-right: 1px solid #343c49; }
.ops-stats > div:last-child { border-right: 0; }
.ops-stats span { color: #727d8d; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ops-stats strong { color: #fff; font: 500 31px var(--serif); }
.ops-section { margin-bottom: 18px; padding: 25px; border: 1px solid #343c49; background: #151a25; }
.ops-section-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.ops-section-title > div { display: flex; align-items: center; gap: 12px; }
.ops-section-title span { color: var(--acid); font: 10px var(--mono); }
.ops-section-title h3 { margin: 0; color: #fff; font-size: 18px; letter-spacing: -.025em; }
.ops-section-title small, .ops-section-copy { color: #768191; font-size: 10px; }
.ops-section-copy { max-width: 690px; margin: -8px 0 20px; line-height: 1.65; }
.ops-filter { display: flex; margin-bottom: 12px; }
.ops-filter button { min-height: 34px; padding: 0 14px; border: 1px solid #343c49; background: #10151e; color: #778293; box-shadow: none; font-size: 10px; text-transform: uppercase; }
.ops-filter button + button { border-left: 0; }
.ops-filter button.active { background: var(--acid); color: #10131a; }
.ops-card-list { display: grid; gap: 10px; }
.ops-trade-card, .ops-withdraw-card { border: 1px solid #323a47; background: #0d121a; }
.ops-trade-card { padding: 19px; }
.ops-card-head { display: flex; justify-content: space-between; gap: 18px; }
.ops-card-head > div:first-child, .ops-withdraw-card > div { display: grid; gap: 4px; }
.ops-id { color: var(--acid); font: 10px var(--mono); letter-spacing: .08em; }
.ops-card-head strong, .ops-withdraw-card strong { color: #fff; font-size: 17px; }
.ops-card-head small, .ops-withdraw-card small { color: #6f7a8a; font-size: 10px; }
.ops-card-value { display: grid; justify-items: end; gap: 6px; text-align: right; }
.ops-card-value strong { font: 500 23px var(--serif); }
.ops-state { padding: 3px 6px; border: 1px solid #38414f; color: #8f9aaa; font: 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.ops-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 17px 0 13px; padding: 12px 0; border-block: 1px solid #242b36; }
.ops-checks span { display: inline-flex; align-items: center; gap: 7px; color: #646f7f; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.ops-checks i { width: 7px; height: 7px; border: 1px solid #4e5867; }
.ops-checks span.done { color: #d5dbe4; }
.ops-checks span.done i { border-color: var(--acid); background: var(--acid); }
.ops-card-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #606b7a; font-size: 9px; }
.ops-card-meta b { margin-left: 4px; color: #9aa5b5; font-family: var(--mono); font-weight: 500; }
.ops-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.ops-action { min-height: 38px; padding: 0 13px; border: 1px solid #3c4554; background: transparent; color: #abb4c2; box-shadow: none; font-size: 10px; font-weight: 800; letter-spacing: .035em; }
.ops-action:hover { transform: none; border-color: #6e7a8d; color: #fff; }
.ops-action.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.ops-action.primary:hover { background: #4c6cff; }
.ops-action.danger { margin-left: auto; border-color: #563638; color: #d88a87; }
.ops-action.muted { color: #8490a0; border-style: dashed; }
.ops-withdraw-card { display: grid; grid-template-columns: 1fr minmax(180px, 1.4fr) auto; align-items: center; gap: 18px; padding: 16px 18px; }
.ops-withdraw-card code { overflow: hidden; color: #9da8b8; font: 10px var(--mono); text-overflow: ellipsis; }
.ops-empty { padding: 28px 18px; border: 1px dashed #343c49; color: #6e7989; font-size: 12px; text-align: center; }
.ops-address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ops-address-row { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; border: 1px solid #343c49; background: #0d121a; }
.ops-address-row > span { color: var(--acid); font: 10px var(--mono); text-align: center; }
.ops-address-row input { min-width: 0; min-height: 44px; border: 0; border-inline: 1px solid #343c49; background: transparent; color: #fff; font: 10px var(--mono); box-shadow: none; }
.ops-address-row button { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: #8792a3; box-shadow: none; font-size: 9px; text-transform: uppercase; }
.ops-address-row button:hover { color: #fff; transform: none; }
.ops-terminal-drawer { margin-bottom: 70px; border: 1px solid #343c49; background: #10151e; }
.ops-terminal-drawer summary { padding: 16px 20px; color: #8b96a6; cursor: pointer; font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.ops-terminal-drawer .ops-panel { border: 0; border-top: 1px solid #343c49; box-shadow: none; }
.ops-terminal-drawer .ops-log { min-height: 150px; max-height: 260px; }

/* Responsive */
@media (max-width: 1080px) {
  .home-hero { grid-template-columns: 1fr minmax(370px, .8fr); gap: 55px; }
  .hero-copy h1 { font-size: clamp(62px, 8vw, 92px); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .terms-section { gap: 6vw; }
  .ops-layout { grid-template-columns: 260px 1fr; gap: 40px; }
  .ops-stats { grid-template-columns: repeat(2, 1fr); }
  .ops-stats > div:nth-child(2) { border-right: 0; }
  .ops-stats > div:nth-child(-n+2) { border-bottom: 1px solid #343c49; }
  .ops-address-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-frame, .app-frame, .shell, .ops-frame { width: min(100% - 28px, 720px); }
  .site-header { min-height: 74px; gap: 14px; }
  .site-header nav { display: none; }
  .header-cta { margin-left: auto; }
  .home-hero { grid-template-columns: 1fr; min-height: 0; padding: 64px 0 80px; }
  .home-hero::after { top: 280px; }
  .hero-copy .lede { max-width: 660px; }
  .market-card { max-width: 610px; }
  .signal-bar { grid-template-columns: repeat(2, 1fr); }
  .signal-bar > div:nth-child(2) { border-right: 0; }
  .signal-bar > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.24); }
  .split-heading { grid-template-columns: 1fr; gap: 24px; }
  .principle-section, .terms-section { grid-template-columns: 1fr; }
  .principle-section { gap: 70px; }
  .terms-section { gap: 60px; }
  .closing-band { align-items: flex-start; flex-direction: column; }
  .desk-label { display: none; }
  .app-header .status { display: none; }
  .app-header > button:last-child { margin-left: auto; }
  .workspace-heading { min-height: 170px; }
  .flow-indicator { display: none; }
  .desk { grid-template-columns: 1fr; }
  .asset-panel { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .assets { max-height: 316px; }
  .profile-grid { grid-template-columns: 1fr; }
  .withdraw-card { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .fee-gate { grid-template-columns: 42px 1fr; }
  .fee-gate .auric-pay-launch { grid-column: 1 / -1; }
  .ops-layout { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .ops-dashboard-layout .ops-sidebar { position: static; }
  .ops-sidebar > p { max-width: 500px; }
  .ops-security { margin-top: 25px; max-width: 300px; }
  .legal { margin-top: 50px; }
  .legal section { grid-template-columns: 170px 1fr; gap: 26px; }
}

@media (max-width: 620px) {
  .site-frame, .app-frame, .shell, .ops-frame { width: calc(100% - 24px); }
  .site-header .brand > span:last-child { display: none; }
  .site-header { gap: 10px; }
  .theme-toggle { width: 38px; min-height: 38px; }
  .user-menu a { min-width: 0; flex: 1 1 50%; padding-inline: 10px; }
  .header-cta { font-size: 12px; gap: 8px; }
  .hero-copy h1 { font-size: clamp(54px, 17vw, 78px); }
  .hero-copy .lede { font-size: 16px; }
  .assurance-row { gap: 12px 18px; }
  .market-card { padding: 24px 20px; box-shadow: 9px 9px 0 #dfe3e9; }
  .quote-display strong { font-size: 31px; }
  .signal-bar > div { min-height: 98px; padding: 20px 17px; }
  .signal-bar strong { font-size: 14px; }
  .section { padding: 88px 0; }
  .section-heading h2, .terms-intro h2, .principle-statement h2 { font-size: 48px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: 0; }
  .step-icon { margin: 32px 0 22px; }
  .principle-section { margin-inline: -12px; padding-inline: 26px; }
  .principle-list article { grid-template-columns: 42px 1fr; gap: 12px; }
  .terms-table > div { display: grid; gap: 7px; }
  .terms-table strong { text-align: left; }
  .closing-band { min-height: 430px; margin-inline: -12px; padding: 54px 26px; }
  .closing-band h2 { font-size: 52px; }
  .site-footer { flex-wrap: wrap; padding: 26px 0; gap: 16px; }
  .site-footer > p { width: calc(100% - 50px); }
  .foot-links { order: 3; width: 100%; margin-left: 0; }
  .workspace-heading { min-height: 150px; padding: 36px 0; }
  .workspace-heading h1 { font-size: 45px; }
  .panel, .order-panel { padding: 22px 18px; }
  .panel-index { font-size: 28px; }
  .assets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset { min-height: 88px; padding: 10px; }
  .addrow { grid-template-columns: 1fr; gap: 8px; }
  .addrow button { width: 100%; margin: 0; }
  .price-field { grid-template-columns: 1fr; gap: 18px; }
  .receive { grid-template-columns: 1fr; }
  .receive > div:last-child { text-align: left; }
  .ticket-footer-note { display: grid; }
  .matching { min-height: 335px; padding-inline: 12px; }
  .radar { width: 116px; height: 116px; }
  .deposit-card-body { grid-template-columns: 1fr; }
  .deposit-qr { margin-inline: auto; }
  .deposit-actions { grid-template-columns: 1fr; }
  .transfer-confirm { order: -1; }
  .escrow-notice { grid-template-columns: 42px 1fr; gap: 10px 13px; }
  .escrow-signal { grid-column: 2; }
  .balance-heading p { display: none; }
  .balance-grid { grid-template-columns: 1fr; }
  .balance-grid > div { min-height: 112px; border-right: 0; border-bottom: 1px solid var(--line); }
  .balance-grid > div:last-child { border-bottom: 0; }
  .profile-strip { align-items: flex-start; flex-wrap: wrap; }
  .profile-strip button { width: 100%; margin-left: 0; }
  .withdraw-fields { grid-template-columns: 1fr; }
  .fee-gate { margin: 14px; padding: 14px; }
  .withdraw-card, .withdraw-history { padding: 24px 18px; }
  .settlement-success { min-height: 330px; padding-inline: 18px; }
  .payment-prep { padding: 40px 22px 32px; }
  .payment-prep-steps { display: grid; gap: 8px; }
  .payment-prep-steps b + b::before { display: none; }
  .auric-payment-backdrop { padding: 10px; }
  .auric-payment-head, .auric-invoice-status { padding-inline: 14px; }
  .auric-invoice-status { align-items: flex-start; flex-direction: column; gap: 5px; padding-block: 8px; }
  .auric-payment-total { padding: 18px 14px; }
  .auric-payment-total > strong { font-size: 23px; }
  .auric-method-heading { padding: 15px 14px 9px; }
  .auric-method-heading small { display: none; }
  .auric-methods { padding: 0 14px 14px; grid-template-columns: 1fr; }
  .auric-methods button { min-height: 58px; }
  .auric-payment-route { margin: 0 14px 14px; }
  .auric-route-body { grid-template-columns: 1fr; }
  .auric-payment-qr { width: min(205px,100%); margin-inline: auto; }
  .auric-payment-actions { padding: 0 14px 14px; grid-template-columns: 1fr; }
  .auric-payment-foot { padding-inline: 14px; gap: 12px; }
  th, td { padding-inline: 12px; white-space: nowrap; }
  .legal-title { margin-bottom: 35px; }
  .legal h1 { font-size: 54px; }
  .legal section { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .ops-page .site-header .brand > span:last-child { display: inline; }
  .ops-sidebar h1 { font-size: 64px; }
  .ops-panel { padding: 22px 16px; box-shadow: 8px 8px 0 rgba(0,0,0,.24); }
  .ops-dashboard-layout { padding-top: 38px; }
  .ops-toolbar { align-items: center; }
  .ops-toolbar h2 { font-size: 42px; }
  .ops-stats > div { min-height: 82px; padding: 13px; }
  .ops-section { padding: 18px 14px; }
  .ops-section-title { align-items: flex-start; }
  .ops-section-title > small { display: none; }
  .ops-card-head { display: grid; }
  .ops-card-value { justify-items: start; text-align: left; }
  .ops-checks { display: grid; }
  .ops-card-meta { display: grid; gap: 7px; }
  .ops-action { flex: 1 1 calc(50% - 7px); }
  .ops-action.danger { margin-left: 0; }
  .ops-withdraw-card { grid-template-columns: 1fr; }
  .ops-withdraw-card code { padding: 10px; background: #090d14; }
  .ops-address-row { grid-template-columns: 45px minmax(0, 1fr); }
  .ops-address-row button { grid-column: 1 / -1; border-top: 1px solid #343c49; }
  .ops-command-field { grid-template-columns: 30px 1fr; }
  .ops-command-field button { grid-column: 1 / -1; }
}

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


/* =========================================================================
   REFRESH LAYER — modern dark + glossy blue
   Appended last so it refines the editorial base without touching its logic.
   ========================================================================= */

/* Retint the old lime "acid" highlight to a glossy cyan that belongs with the
   blue brand. One variable, broad effect (pills, radar, ops accents, toggle). */
:root { --acid: #37c7ff; }
html[data-theme="dark"] { --acid: #4dd2ff; }

/* --- Display type: heavier, cleaner geometric headings --- */
h1, h2, h3, h4 { font-family: var(--display); }
.hero-copy h1, .section-heading h2, .terms-intro h2, .principle-statement h2,
.closing-band h2, .workspace-heading h1, .legal h1, .balance-heading h2,
.ops-sidebar h1, .ops-toolbar h2, .modal h3, .settlement-success h3,
.payment-prep h3 { font-weight: 720; letter-spacing: -.03em; }
.hero-copy h1 { letter-spacing: -.04em; }
/* the accent second line was a serif italic; make it a clean weighted accent */
.hero-copy h1 em, .closing-band em { font-style: normal; font-weight: 720; color: var(--accent); }
html[data-theme="dark"] .hero-copy h1 em { color: #7f97ff; }
.lede, .split-heading > p, .terms-intro > p, .legal p, .legal li { font-size: 17px; }

/* --- Rounded corners across controls and cards --- */
.btn, button, input, select, textarea { border-radius: var(--r-sm); }
.theme-toggle { border-radius: 12px; }

.desk, .market-card, .signal-bar, .trade-progress, .balance-panel, .fee-gate,
.deposit-card, .ops-stats, .ops-command-field, .ops-address-row {
  border-radius: var(--r-lg); overflow: hidden;
}
.invoice-card, .modal, .account-modal, .ops-panel, .ops-section, .ops-trade-card,
.ops-withdraw-card, .ops-terminal-drawer, .asset, .toast, .notice, .receive,
.deposit-intro, .escrow-notice, .deposit-qr, .deposit-addr, .matching-bars,
.key-warning, .form-error, .step-icon, .withdraw-card.withdrawal-open,
.market-card .quote-display, .badge, .ops-state, .ops-action, .command-reference code,
.ops-filter, .ops-alert, .ops-empty, .auric-pay-launch, .fee-gate-icon {
  border-radius: var(--r);
}
.badge, .ops-state, .live-pill, .verified-route, .auric-secure-chip { border-radius: 99px; }
.market-card, .fee-gate { box-shadow: var(--shadow); }

/* keep segmented / inline shells crisp inside their rounded frames */
.ops-command-field input, .ops-command-field button,
.ops-address-row input, .ops-address-row button,
.ops-filter button { border-radius: 0; }
/* join the "add token" input + button as one rounded pill */
.addrow input { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.addrow button { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* --- Glossy blue primary buttons --- */
.btn-primary, .execute-button, .header-cta {
  border: 0;
  background: var(--gloss);
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover, .execute-button:hover, .header-cta:hover {
  background: var(--gloss-hover);
  border: 0;
  box-shadow: 0 14px 34px rgba(40, 84, 255, .42);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  background: #c6cbd4; color: #7d8492; box-shadow: none; transform: none;
}
html[data-theme="dark"] .btn-primary:disabled { background: #29334a; color: #7d89a0; }
/* the "Continue to payment" launch chip → on-brand glossy blue */
.auric-pay-launch { border: 0; background: var(--gloss); color: #fff; box-shadow: 0 8px 22px rgba(40,84,255,.4); }
.auric-pay-launch:hover { background: var(--gloss-hover); border: 0; }

/* --- Sticky, frosted header --- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--canvas) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}
.ops-page .site-header { background: color-mix(in srgb, #070b12 80%, transparent); }
.brand-logo { filter: drop-shadow(0 4px 14px rgba(60, 110, 255, .45)); }
/* The mark PNG is white — invert it to a dark silhouette on light surfaces
   (but not on the always-dark ops console header). */
html[data-theme="light"] body:not(.ops-page) .brand-logo {
  filter: brightness(0) saturate(100%) drop-shadow(0 3px 10px rgba(40, 84, 255, .3));
}

/* --- Small polish --- */
.asset.selected { box-shadow: 0 0 0 1px var(--accent), 0 10px 26px rgba(40,84,255,.25); }
.eyebrow-line { width: 30px; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(40, 84, 255, .18);
}
::selection { background: var(--accent); color: #fff; }

/* Respect reduced motion for the heavier transitions we lean on */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}


/* =========================================================================
   REFRESH LAYER 2 — process cards, floating header, settlement CTA,
   payment-verification window, and contact section
   ========================================================================= */

/* --- Floating, rounded, frosted header --- */
.site-header {
  position: sticky; top: 12px; z-index: 40;
  margin-top: 14px;
  padding-inline: 20px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(8, 12, 22, .26);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
}
.ops-page .site-header { background: color-mix(in srgb, #070b12 82%, transparent); }
@media (max-width: 620px) { .site-header { padding-inline: 14px; border-radius: 15px; } }

/* --- Process steps: contained card + glossy icon tiles --- */
.process-grid {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.process-step { min-height: 296px; padding: 28px 26px; }
.process-step:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.step-no { font-size: 12px; color: var(--accent); font-weight: 800; letter-spacing: .1em; }
.step-icon {
  width: 58px; height: 58px; margin: 40px 0 24px;
  border: 0; border-radius: 16px;
  background: var(--gloss); color: #fff; font-size: 24px;
  box-shadow: 0 10px 24px rgba(40, 84, 255, .32), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.process-step:hover .step-icon { background: var(--gloss-hover); transform: translateY(-3px) rotate(-3deg); }
.process-step h3 { margin-bottom: 12px; font-size: 19px; }
.process-step p { font-size: 14px; line-height: 1.65; }

/* --- Settlement confirmation: manual "Withdraw funds" CTA --- */
.settlement-cta { margin-top: 24px; min-width: 230px; min-height: 54px; justify-content: center; gap: 12px; font-size: 15px; }

/* --- Payment verification (manual review) window --- */
.auric-payment-modal.is-pending { width: min(520px, 100%); }
.pay-pending { padding: 8px 6px 6px; text-align: center; }
.pay-pending-orbit { width: 90px; height: 90px; margin: 8px auto 22px; position: relative; display: grid; place-items: center; }
.pay-pending-orbit span { font-size: 32px; }
.pay-pending-orbit i { position: absolute; inset: 0; border: 2px solid transparent; border-top-color: #6c8bff; border-right-color: rgba(108,139,255,.28); border-radius: 50%; animation: prep-spin 1.4s linear infinite; }
.pay-pending-orbit i:last-child { inset: 13px; border-top-color: #59d3ff; border-right-color: transparent; animation-duration: 1s; animation-direction: reverse; }
.pay-pending-kicker { color: #93a8ff; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.pay-pending h3 { margin: 10px 0 10px; font-family: var(--display); font-size: 24px; font-weight: 720; letter-spacing: -.02em; }
.pay-pending p { max-width: 430px; margin: 0 auto; color: #98a6bd; font-size: 13px; line-height: 1.62; }
.pay-pending p strong { color: #e2e8f3; font-weight: 650; }
.pay-pending-track { max-width: 340px; margin: 22px auto; display: grid; gap: 11px; text-align: left; }
.pay-pending-track div { display: flex; align-items: center; gap: 11px; color: #7d8ba2; font-size: 12px; }
.pay-pending-track i { width: 15px; height: 15px; flex: 0 0 auto; border: 1px solid #3a465c; border-radius: 50%; }
.pay-pending-track .done { color: #cfd8e6; }
.pay-pending-track .done i { background: var(--ok); border-color: var(--ok); }
.pay-pending-track .active { color: #fff; }
.pay-pending-track .active i { border-color: #6c8bff; box-shadow: 0 0 0 4px rgba(108,139,255,.16); animation: escrow-step-pulse 1.8s ease-in-out infinite; }
.pay-contact { margin: 4px auto 2px; max-width: 410px; display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid rgba(120,150,255,.28); border-radius: var(--r); background: linear-gradient(180deg, rgba(46,86,245,.14), rgba(46,86,245,.03)); text-decoration: none; color: #eef2f9; text-align: left; transition: border-color .18s, background .18s; }
.pay-contact:hover { border-color: #6c8bff; background: linear-gradient(180deg, rgba(46,86,245,.22), rgba(46,86,245,.07)); }
.pay-contact-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: var(--gloss); color: #fff; font-size: 15px; box-shadow: 0 4px 12px rgba(40,84,255,.4); }
.pay-contact strong { display: block; font-size: 13px; }
.pay-contact small { display: block; margin-top: 2px; color: #94a2b9; font-size: 11px; }
.pay-contact > span:last-child { margin-left: auto; color: #7f97ff; font-weight: 700; }
.pay-pending-dismiss { margin-top: 18px; min-height: 46px; padding-inline: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); background: rgba(255,255,255,.03); color: #cdd7e8; font-size: 13px; font-weight: 600; }
.pay-pending-dismiss:hover { border-color: rgba(108,139,255,.5); background: rgba(108,139,255,.1); transform: none; }

/* --- Contact section (landing) --- */
.contact-section { padding-top: 40px; }
.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: radial-gradient(130% 170% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 58%), var(--paper);
  box-shadow: var(--shadow);
}
.contact-card h2 { margin: 10px 0 12px; }
.contact-card p { max-width: 540px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.contact-card .btn { flex: 0 0 auto; }
@media (max-width: 860px) { .contact-card { flex-direction: column; align-items: flex-start; gap: 26px; } }

/* Actionable "create / log in" prompt inside the quote message */
.quote-signin { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.quote-signin > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quote-signin strong { font-size: 14px; }
.quote-signin span { font-size: 13px; opacity: .85; }
.quote-signin-btn { min-height: 44px; padding: 0 18px; gap: 10px; flex: 0 0 auto; font-size: 13px; white-space: nowrap; }
@media (max-width: 480px) { .quote-signin-btn { width: 100%; justify-content: center; } }

/* Copy-button feedback animation */
@keyframes copy-pop { 0% { transform: scale(1); } 35% { transform: scale(1.045); } 100% { transform: scale(1); } }
@keyframes copy-check-in { from { transform: scale(0) rotate(-25deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.copy-button.copied, .auric-route-details > button.copied {
  border-color: var(--ok) !important;
  color: var(--ok) !important;
  background: color-mix(in srgb, var(--ok) 15%, transparent) !important;
  animation: copy-pop .35s ease;
}
.copy-check { display: inline-block; animation: copy-check-in .3s cubic-bezier(.2, 1.5, .4, 1) both; }

/* Deposit verification spinner in the claim message */
.verify-spin { display: inline-block; width: 11px; height: 11px; vertical-align: -1px; margin-right: 4px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; opacity: .8; animation: control-spin .8s linear infinite; }

/* ===== Live exchange ticket in its own focused window ===== */
body.trade-modal-open { overflow: hidden; }
.trade-modal-backdrop { padding: 16px; overflow-y: auto; align-items: flex-start; background: rgba(5, 9, 16, .8); backdrop-filter: blur(14px); }
.trade-modal {
  width: min(700px, 100%);
  margin: auto;
  border: 1px solid rgba(120, 150, 255, .18);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55);
  overflow: hidden;
  animation: rise-in .32s cubic-bezier(.2, .8, .2, 1) both;
}
.trade-modal-head {
  min-height: 66px; padding: 14px 18px 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(46, 86, 245, .12), transparent);
}
.trade-modal-brand { display: flex; align-items: center; gap: 12px; }
.trade-modal-brand img { width: 32px; height: 32px; }
.trade-modal-brand strong, .trade-modal-brand small { display: block; }
.trade-modal-brand strong { font-size: 14px; font-weight: 700; }
.trade-modal-brand small { margin-top: 2px; color: var(--muted); font: 11px var(--mono); }
.trade-modal-head button {
  min-height: 38px; padding: 0 14px; flex: 0 0 auto;
  border: 1px solid var(--line-dark); border-radius: var(--r-sm);
  background: transparent; color: var(--muted); box-shadow: none;
  font-size: 12px; font-weight: 650;
}
.trade-modal-head button:hover { border-color: var(--accent); color: var(--ink); transform: none; }
/* the ticket fills the window: drop its standalone card chrome */
.trade-modal .trade-progress { margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }

/* Floating chip to reopen a minimized ticket */
.trade-resume-chip {
  position: fixed; right: 20px; bottom: 20px; z-index: 55;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 0 18px;
  border: 0; border-radius: 999px;
  background: var(--gloss); color: #fff;
  box-shadow: var(--glow);
  font-size: 13px; font-weight: 700;
}
.trade-resume-chip:hover { background: var(--gloss-hover); transform: translateY(-1px); }
.trade-resume-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); animation: soft-pulse 1.8s ease-in-out infinite; }
@media (max-width: 620px) { .trade-modal-head { padding-inline: 14px; } .trade-resume-chip { right: 12px; bottom: 12px; } }

/* Prominent "Send exactly X ASSET" bar in the deposit card */
.deposit-amount {
  min-height: 54px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(46, 86, 245, .12), transparent);
}
.deposit-amount > span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.deposit-amount > strong { color: var(--accent); font-size: 20px; letter-spacing: -.02em; }
html[data-theme="dark"] .deposit-amount > strong { color: #8ba4ff; }

/* ===== Withdrawal network selector (USDT TRC20 / ERC20) ===== */
.withdraw-network { margin-bottom: 14px; }
.network-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.network-opt {
  min-height: 58px; padding: 10px 12px;
  display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); color: var(--ink); text-align: left; box-shadow: none;
  transition: border-color .18s, background .18s;
}
.network-opt:hover { border-color: rgba(108, 139, 255, .5); transform: none; }
.network-opt.active { border-color: var(--accent); background: linear-gradient(180deg, rgba(46, 86, 245, .12), transparent); box-shadow: 0 0 0 1px rgba(46, 86, 245, .3); }
.network-opt .net-icon { width: 30px; height: 30px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; }
.network-opt .net-icon img { width: 100%; height: 100%; display: block; }
.network-opt span { min-width: 0; }
.network-opt strong, .network-opt small { display: block; }
.network-opt strong { font-size: 12px; font-weight: 650; }
.network-opt small { margin-top: 2px; color: var(--muted); font-size: 10px; }
@media (max-width: 480px) { .network-toggle { grid-template-columns: 1fr; } }

/* Payment "funds unlocked" success state */
.pay-unlocked-orbit {
  width: 84px; height: 84px; margin: 8px auto 20px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(94, 215, 168, .5);
  background: radial-gradient(circle at 50% 30%, rgba(94,215,168,.22), transparent 60%);
  animation: success-orbit 1.8s ease-in-out infinite;
}
.pay-unlocked-orbit span {
  width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ok); color: #06140f; font-size: 24px; font-weight: 900;
  box-shadow: 0 0 30px rgba(94,215,168,.3);
  animation: success-check .55s cubic-bezier(.2,1.6,.4,1) both;
}
.pay-ok-kicker { color: var(--ok) !important; }
.pay-unlock-cta { width: 100%; min-height: 52px; margin-top: 4px; justify-content: center; gap: 10px; font-size: 14px; }

/* ===== Ops: exchange commission / fee controls ===== */
.ops-fee-grid { display: grid; gap: 10px; }
.ops-fee-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ops-fee-row label { color: #8792a3; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ops-fee-row input {
  min-width: 0; min-height: 44px; padding: 0 14px;
  border: 1px solid #343c49; border-radius: var(--r-sm);
  background: #0d121a; color: #fff; font: 14px var(--mono); box-shadow: none;
}
.ops-fee-row input:focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(46,86,245,.2); }
.ops-fee-row .ops-action { min-height: 44px; white-space: nowrap; }
#feeExample { display: block; margin-top: 12px; color: #7f8a9a; }
#feeModelLabel { color: var(--acid); }
@media (max-width: 560px) { .ops-fee-row { grid-template-columns: 1fr; } .ops-fee-row .ops-action { width: 100%; } }
