@font-face {
  font-family: 'Inter';
  src: url('inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #040405;
  --surface: #09090b;
  --surface-2: #0e0e11;
  --surface-3: #141418;
  --line: #16161a;
  --line-2: #1f1f24;
  --line-3: #2c2c32;
  --text: #ececef;
  --muted: #8b8b95;
  --dim: #5f5f69;
  --accent: #ff6c00;
  --accent-hover: #ff7d1a;
  --green: #3ecf8e;
  --r: 0;
  --r-lg: 0;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  position: relative;
  overflow-x: clip;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

body::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -380px;
  z-index: -1;
  width: 1040px;
  height: 1040px;
  background: url('logo.png') center / contain no-repeat;
  opacity: 0.06;
  filter: drop-shadow(0 0 80px rgba(255, 108, 0, 0.55));
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  pointer-events: none;
  animation: logo-spin 120s linear infinite;
}

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

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

img { display: block; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }

ul, ol { padding: 0; list-style: none; }

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

table { width: 100%; border-collapse: collapse; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.i { flex: 0 0 auto; }

.dim { color: var(--dim); }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.panel {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.coin { border-radius: 50%; }

.ex-logo { flex: 0 0 auto; border-radius: 0; background: var(--surface-3); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-3);
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary { border-color: var(--accent); background: var(--accent); color: #fff; }

.btn-primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }

.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }

.btn-disabled { background: transparent; color: var(--dim); cursor: not-allowed; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 4, 5, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

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

.wordmark { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

.wordmark em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; gap: 4px; margin: 0 auto; }

.nav-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--r);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.nav-links a.is-active { color: var(--text); }

.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -12px;
  height: 2px;
  background: var(--accent);
}

.nav-links a:hover { color: var(--text); background: var(--surface-2); }

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

.nav-sep { width: 1px; height: 20px; background: var(--line-2); }

.btn-outline { border-color: rgba(255, 108, 0, 0.55); background: transparent; color: var(--accent); }

.btn-outline:hover { border-color: var(--accent); background: rgba(255, 108, 0, 0.08); }

.social { display: flex; align-items: center; gap: 4px; }

.social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}

.social a:hover { color: var(--text); background: var(--surface-2); }

.menu { display: none; margin-left: auto; }

.menu summary {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
  list-style: none;
}

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

.menu-panel {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  padding: 4px 16px 14px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg);
}

.menu-panel nav { display: flex; flex-direction: column; margin-bottom: 10px; }

.menu-panel nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }

.menu-panel nav a.is-active { color: var(--accent); }

.menu-panel .social { margin-left: -6px; }

.hero { padding-top: 52px; }

.hero h1 { font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }

.lede { margin-top: 8px; color: var(--muted); font-size: 16px; }

.swap-wrap { margin-top: 28px; }

.swap {
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
}

.swap-row {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  align-items: start;
  gap: 10px;
}

.fld-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.usd { color: var(--dim); font-variant-numeric: tabular-nums; }

.group {
  display: flex;
  height: 44px;
  border: 1px solid var(--line-3);
  border-radius: var(--r);
  background: var(--bg);
  overflow: hidden;
}

.group:focus-within { border-color: #55555e; }

.amount {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.amount::placeholder { color: var(--dim); }

.flip {
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  border: 1px solid var(--line-3);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--muted);
}

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

.swap-row > .flip { margin-top: 27px; }

.net { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 13px; }

.net[hidden] { display: none; }

.net select {
  flex: 1;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line-3);
  border-radius: 0;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.net select:focus { outline: 0; border-color: #55555e; }

.picker { position: relative; flex: 0 0 auto; border-left: 1px solid var(--line-3); }

.picker-select {
  appearance: none;
  -webkit-appearance: none;
  height: 100%;
  padding: 0 30px 0 12px;
  border: 0;
  background: var(--surface-2);
  font-weight: 600;
  cursor: pointer;
}

.picker-select option { background: var(--surface-2); color: var(--text); }

.picker-icon { display: none; }

.picker-caret {
  position: absolute;
  top: 50%;
  right: 9px;
  translate: 0 -50%;
  display: grid;
  color: var(--muted);
  pointer-events: none;
}

.picker.is-enhanced .picker-select { display: none; }

.picker.is-enhanced .picker-icon { display: block; }

.picker.is-enhanced .picker-caret { position: static; translate: none; }

.picker-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 10px;
  border: 0;
  background: var(--surface-2);
  font-weight: 600;
  cursor: pointer;
}

.picker-btn:hover { background: var(--surface-3); }

.picker-label { min-width: 36px; text-align: left; }

.btn-cta { position: relative; height: 38px; padding: 0 16px; }

.btn-cta > span { display: inline-flex; align-items: center; gap: 8px; }

.btn-cta .i { transition: translate 0.15s; }

.btn-cta:hover .i { translate: 2px 0; }

.btn-cta.is-busy { pointer-events: none; }

.btn-cta.is-busy span { opacity: 0; }

.btn-cta.is-busy::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.swap-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.rate-line { font-variant-numeric: tabular-nums; }

.swap-meta .btn-cta { margin-left: auto; }

.rate-type { display: flex; align-items: center; gap: 14px; margin: 0; padding: 0; border: 0; }

.rate-type legend { float: left; padding: 0; margin-right: 2px; }

.rate-type label { display: inline-flex; align-items: center; gap: 6px; color: var(--text); cursor: pointer; }

.rate-type input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid var(--line-3);
  background: var(--bg);
  cursor: pointer;
}

.rate-type input::before { content: ''; width: 6px; height: 6px; background: var(--accent); transform: scale(0); transition: transform 0.12s; }

.rate-type input:checked { border-color: var(--accent); }

.rate-type input:checked::before { transform: scale(1); }

.results {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    grid-template-rows 0.5s var(--ease),
    margin-top 0.5s var(--ease),
    opacity 0.35s ease,
    transform 0.5s var(--ease);
}

.results.is-open { grid-template-rows: 1fr; margin-top: 12px; opacity: 1; transform: none; }

.results-inner { min-height: 0; overflow: hidden; }

.results-inner > .panel { transition: opacity 0.2s; }

.results.is-loading .results-inner > .panel { opacity: 0.45; }

.results.is-stale .results-inner > .panel { opacity: 0.45; }

.results.is-stale .results-inner::before {
  content: 'Inputs changed. Press Find best rate to update.';
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}



.results-head h2 { font-size: 16px; font-weight: 600; }

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




.results-head > span { color: var(--muted); font-size: 13px; }

.results-empty { padding: 16px 18px; color: var(--muted); }

.table-wrap { overflow-x: auto; }

.offers th,
.xtable th {
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.offers td,
.xtable td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.offers tbody tr:last-child td,
.xtable tbody tr:last-child td { border-bottom: 0; }

.offers tbody tr,
.xtable tbody tr { transition: background 0.15s; }

.offers tbody tr:hover,
.xtable tbody tr:hover { background: var(--surface-2); }

.offers .is-best td { background: rgba(255, 108, 0, 0.05); }

.offers .is-best td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

.c-rank { width: 44px; color: var(--dim); font-weight: 600; font-variant-numeric: tabular-nums; }

.is-best .c-rank { color: var(--accent); }

.ex { display: flex; align-items: center; gap: 12px; }

.ex > span { display: flex; flex-direction: column; line-height: 1.35; }

.ex strong { font-size: 15px; font-weight: 600; }

.ex small { color: var(--dim); font-size: 12.5px; }

.best { color: var(--accent); font-size: 12.5px; font-weight: 600; }

.g-mobile { display: none; }

.c-eta { color: var(--muted); white-space: nowrap; }

.kyc { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

.kyc .i { color: var(--muted); }

.guarantee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(62, 207, 142, 0.3);
  border-radius: 0;
  background: rgba(62, 207, 142, 0.1);
  color: var(--green);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.offers .c-amount { text-align: right; white-space: nowrap; }

.c-amount strong { display: block; font-size: 15.5px; font-weight: 650; font-variant-numeric: tabular-nums; }

.c-amount small { color: var(--dim); font-size: 12.5px; font-variant-numeric: tabular-nums; }

.is-best .c-amount small { color: var(--green); }

.c-go { width: 96px; text-align: right; }

.section { padding-top: 60px; }

.section h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }

.section-sub { margin-top: 2px; color: var(--muted); }

.section h2 + .panel,
.section-sub + .panel { margin-top: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }

.steps li { display: flex; gap: 12px; }

.step-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-3);
  border-radius: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.steps h3 { font-size: 15px; font-weight: 600; }

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

.xtable td:nth-child(2) { color: var(--muted); }

.coins { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.coins a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 14px;
  transition: border-color 0.15s;
}

.coins a:hover { border-color: var(--line-3); }

.coins span { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; margin-top: 16px; }

.features li { display: flex; gap: 10px; }

.features .i { margin-top: 3px; color: var(--accent); }

.features div { display: flex; flex-direction: column; }

.features strong { font-weight: 600; }

.features span { color: var(--muted); font-size: 14px; }

.faq { max-width: 760px; margin-top: 12px; border-top: 1px solid var(--line); }

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq summary .i { color: var(--muted); transition: rotate 0.2s; }

.faq details[open] summary .i { rotate: 180deg; }

.faq details p { padding: 0 24px 14px 0; color: var(--muted); }

.footer { margin-top: 72px; border-top: 1px solid var(--line); }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-top: 36px;
  padding-bottom: 28px;
}

.footer-col { display: flex; flex-direction: column; gap: 8px; }

.footer-col h3 { margin-bottom: 4px; font-size: 13px; font-weight: 600; }

.footer-col a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }

.footer-col a:hover { color: var(--text); }

.footer-brand { max-width: 340px; }

.footer-brand p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 14px; padding-bottom: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

.dialog {
  width: min(420px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 48px));
  padding: 16px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.dialog[open] { display: flex; flex-direction: column; animation: dialog-in 0.22s var(--ease) both; }

.dialog::backdrop { background: rgba(0, 0, 0, 0.7); animation: fade-in 0.2s ease both; }

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

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

.dialog-head h2 { font-size: 16px; font-weight: 600; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-3);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--muted);
}

.search:focus-within { border-color: rgba(255, 108, 0, 0.6); }

.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 6px; }

.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px 0 7px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.quick-btn:hover { border-color: var(--line-3); }

.coin-list { overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }

.coin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.coin-row:hover,
.coin-row:focus-visible { background: var(--surface-2); outline: none; }

.coin-row-text { display: flex; flex-direction: column; line-height: 1.3; }

.coin-row-text strong { font-weight: 600; }

.coin-row-text small { color: var(--muted); font-size: 13px; }

.coin-row-check { margin-left: auto; color: var(--accent); visibility: hidden; }

.coin-row[aria-current="true"] .coin-row-check { visibility: visible; }

.dialog-empty { padding: 20px 0 8px; color: var(--muted); text-align: center; }

.empty { padding-top: 80px; }

.empty h1 { font-size: 26px; font-weight: 700; }

.empty p { margin: 6px 0 20px; color: var(--muted); }

@media (max-width: 900px) {
  .nav-links, .nav-end { display: none; }
  .menu { display: block; }
  .swap-row { grid-template-columns: 1fr; gap: 10px; }
  .flip { justify-self: center; height: 36px; }
  .swap-row > .flip { margin-top: 0; }
  .flip .i { rotate: 90deg; }
  .swap-meta { flex-direction: column; align-items: stretch; }
  .swap-meta .btn-cta { width: 100%; height: 44px; margin-left: 0; }
  .steps, .features { grid-template-columns: 1fr; gap: 16px; }
  .c-kyc, .offers .c-eta { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body::before { top: 480px; right: -260px; width: 600px; height: 600px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: 26px; }
  .section { padding-top: 44px; }
  .c-rank, .c-go { display: none; }
  .offers th, .offers td, .xtable th, .xtable td { padding-left: 12px; padding-right: 12px; }
  .offers .is-best td:nth-child(2) { box-shadow: inset 3px 0 0 var(--accent); }
  .ex { gap: 10px; }
  .ex-logo { width: 30px; height: 30px; }
  .ex small { display: none; }
  .offers .c-guarantee { display: none; }
  .g-mobile { display: block; margin-top: 4px; }
  .g-mobile .guarantee { padding: 1px 7px; font-size: 12px; }
  .g-mobile .dim::before { content: 'Guarantee: '; }
  .g-mobile .dim { font-size: 12px; }
  .c-amount strong { font-size: 14px; }
  .xtable th:nth-child(2), .xtable td:nth-child(2), .xtable .c-eta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
