:root {
  --bg: #191d21;
  --bg-2: #1c2126;
  --panel: #22272c;
  --panel-2: #1f2429;
  --input: #2a3036;
  --line: #2f363d;
  --text: #ffffff;
  --muted: #abb6c1;
  --mint: #64f0bf;
  --mint-hover: #95fbd7;
  --violet: #7b7dfb;
  --violet-2: #8587fb;
  --dark: #191d21;
  --shadow: 0 4px 34px #1e2328a1;
  --radius: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  line-height: 24px;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--mint-hover); }
button, input, select { font-family: inherit; }

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex-shrink: 0;
}

.brand img {
  height: 22px;
  width: auto;
  display: block;
  background: transparent;
}

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  cursor: pointer;
  position: relative;
  font-size: 13px;
}

.lang img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 28px;
  left: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 140px;
  padding: 8px 0;
  z-index: 20;
}

.lang:hover .lang-menu,
.lang.open .lang-menu { display: block; }

.lang-menu a {
  display: block;
  padding: 6px 12px;
  color: #fff;
  font-size: 13px;
}

.lang-menu a:hover { background: #2a3036; color: #fff; }

.menu {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.menu a {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.92;
}

.menu a:hover { color: #fff; opacity: 1; }

.auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 18px;
}

.btn-login {
  background: linear-gradient(80.26deg, #2a2f34 -9.48%, #1f2328 119.79%);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-login:hover { background: var(--mint); color: var(--dark); }

.btn-mint {
  background: var(--mint);
  color: var(--dark);
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-mint:hover { background: var(--mint-hover); color: var(--dark); }
.btn-mint:disabled {
  background: linear-gradient(80.26deg, #3d4349 -9.48%, #373f48 119.79%);
  color: #fff;
  cursor: wait;
}

/* Hero */
.hero {
  padding: 48px 0 28px;
  text-align: center;
}

.hero h1 {
  margin: 0 auto;
  max-width: 980px;
  font-size: 56px;
  font-weight: 500;
  line-height: 73px;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: var(--violet);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px auto 28px;
  padding: 8px 16px;
  border: 1px solid #3a424b;
  border-radius: 999px;
  color: #c9d2db;
  font-size: 13px;
  background: transparent;
}

.chip b { color: var(--violet); font-weight: 600; }
.chip svg { opacity: 0.7; }

/* Widget */
.widget {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: visible;
}

.pane {
  background: var(--panel);
  padding: 22px 24px 20px;
  min-height: 268px;
  text-align: left;
}

.pane-left {
  border-radius: 10px 0 0 10px;
  background: #23282e;
}

.pane-right {
  border-radius: 0 10px 10px 0;
  background: #1e2328;
}

.pane-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  min-height: 28px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.step-n {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #32383f;
  color: #c5ced6;
  border-radius: 4px;
  padding: 4px 7px;
}

.step-badge span b { color: var(--violet); font-weight: 600; }

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

.refresh svg { opacity: 0.8; }

.field {
  background: #191d21;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.field-meta {
  flex: 1;
  min-width: 0;
}

.field-meta label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  margin-bottom: 2px;
}

.field-meta input,
.to-value {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  padding: 0;
}

.coin-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 4px 0 4px 8px;
  flex-shrink: 0;
}

.coin-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111;
}

.coin-icon.svgcoin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background-color: #111;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: contain;
}

.coin-icon.svgcoin.sm {
  width: 28px;
  height: 28px;
}

.coin-btn .coin-txt {
  text-align: left;
  line-height: 1.15;
}

.coin-btn .coin-txt strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.coin-btn .coin-txt small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

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

.limits b { color: var(--violet); font-weight: 600; }

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

.partner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.partner-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  border: 2px solid #3a3f46;
}

.partner strong { color: #fff; font-size: 11px; display: block; line-height: 1.1; }
.partner span { font-size: 10px; color: var(--muted); }

.fastest {
  background: #2a2416;
  color: #f5c542;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 4px 8px;
}

.rate-line {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.rate-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #fff;
  font-size: 14px;
}

.switch {
  width: 36px;
  height: 22px;
  border-radius: 100px;
  background: var(--mint);
  padding: 2px;
  cursor: pointer;
  border: 0;
  position: relative;
}

.switch i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dark);
  display: block;
  transform: translateX(0);
}

.switch.fixed i { transform: translateX(14px); }

.rate-toggle button.link {
  background: none;
  border: 0;
  color: #fff;
  font-size: 14px;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--violet);
}

.rate-toggle button.link.off {
  color: var(--muted);
  text-decoration-color: #4a525b;
}

.rate-toggle .or { color: var(--muted); }

.lock {
  color: var(--muted);
  display: grid;
  place-items: center;
}

.mid-swap {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2a3036;
  border: 4px solid var(--bg);
  color: #c9d2db;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.mid-swap:hover { color: var(--mint); }

.widget-foot {
  max-width: 1080px;
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.legal a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--mint); }

.widget-foot .btn-mint {
  min-width: 168px;
  height: 48px;
  font-size: 16px;
  border-radius: 4px;
}

.error-msg {
  max-width: 1080px;
  margin: 10px auto 0;
  color: #ff7b93;
  font-size: 14px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 56px auto 8px;
  max-width: 1080px;
  text-align: left;
}

.feat h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.icon {
  width: 36px;
  height: 36px;
  color: var(--violet);
  flex-shrink: 0;
}

.tag {
  display: inline-block;
  margin-left: 8px;
  border: 1px solid #3a424b;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 500;
  color: #c9d2db;
  vertical-align: middle;
}

/* Stats */
.stats {
  position: relative;
  padding: 64px 0 40px;
}

.stats h2 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 600;
  line-height: 48px;
}

.stats .lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.chev {
  position: absolute;
  right: 8%;
  top: 72px;
  width: 56px;
  height: 56px;
  color: var(--violet);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat svg { color: var(--violet); flex-shrink: 0; }
.stat strong { display: block; font-size: 28px; font-weight: 600; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 14px; }

/* Reviews */
.reviews { padding: 28px 0 48px; }
.reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.reviews h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
}

.tp {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
}

.tp-star { color: #00b67a; font-size: 22px; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.review {
  background: var(--panel);
  border-radius: 8px;
  padding: 18px 16px;
  min-height: 180px;
}

.stars { color: #00b67a; letter-spacing: 2px; font-size: 14px; margin-bottom: 8px; }
.review h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.review p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 20px; }
.review small { color: #8b98a5; }

/* Best platform */
.best { padding: 24px 0 56px; }
.best h2 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 600;
  max-width: 720px;
}
.best > .lead { color: var(--muted); margin: 0 0 28px; max-width: 640px; }

.best-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.best-card {
  background: var(--panel);
  border-radius: 8px;
  padding: 22px 20px;
}

.best-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.best-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 22px; }

/* App promo */
.app-promo {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 24px 0 56px;
}

.app-promo h3 { font-size: 28px; margin: 0 0 14px; }
.app-promo ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.app-promo li { margin: 0 0 8px; padding-left: 18px; position: relative; }
.app-promo li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.stores { display: flex; gap: 10px; margin-top: 18px; }
.store {
  background: #111;
  border: 1px solid #333;
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
}

/* Footer */
.footer {
  border-top: 1px solid #2a3036;
  padding: 40px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.footer a { display: block; color: var(--muted); margin: 0 0 8px; font-size: 13px; }
.footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid #2a3036;
}

/* Side rails */
.social-rail {
  position: fixed;
  right: 0;
  top: 160px;
  width: 48px;
  background: #1c2126;
  border-radius: 8px 0 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 14px;
  z-index: 30;
}

.social-rail a { color: #9aa6b2; }
.social-rail a:hover { color: #fff; }

.tracker-tab {
  position: fixed;
  left: 0;
  top: 42%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: #2a3036;
  color: #fff;
  border: 0;
  border-radius: 0 8px 8px 0;
  padding: 14px 8px;
  font-size: 13px;
  cursor: pointer;
  z-index: 30;
}

.tracker {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 320px;
  background: #22272c;
  z-index: 40;
  padding: 24px;
  box-shadow: 8px 0 30px #0006;
}

.tracker.open { display: block; }
.tracker h3 { margin: 0 0 12px; }
.tracker input {
  width: 100%;
  background: #191d21;
  border: 1px solid #333;
  color: #fff;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

/* Modals */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #191d21d9;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.overlay.open { display: flex; }

.modal {
  width: min(520px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: linear-gradient(80.26deg, #2a2f34 -9.48%, #1f2328 119.79%);
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 10px 20px #74747e1a;
}

.modal h3 { margin: 0 0 14px; font-size: 22px; font-weight: 600; }

.search {
  width: 100%;
  background: #191d21;
  border: 1px solid #333;
  color: #fff;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.coin-list { max-height: 420px; overflow: auto; }
.coin-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 10px 8px;
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
}

.coin-item:hover { background: #191d21; }
.coin-item.pay-disabled:hover,
.coin-item[data-inactive="1"]:hover { background: transparent; }
.coin-item img { width: 28px; height: 28px; border-radius: 50%; }
.coin-item small { color: var(--muted); display: block; }

.coin-item.pay-disabled,
.coin-item[data-inactive="1"] {
  cursor: not-allowed;
  opacity: 1;
}

.coin-item.pay-disabled > *,
.coin-item[data-inactive="1"] > * {
  opacity: 0.22;
}

.coin-item.pay-disabled small,
.coin-item[data-inactive="1"] small {
  opacity: 0.55;
  color: #ffb4c0;
}

.coin-btn.is-offline {
  opacity: 0.45;
}

.addr-input {
  width: 100%;
  background: #191d21;
  border: 1px solid #333;
  color: #fff;
  border-radius: 6px;
  padding: 14px;
  font-size: 14px;
  margin: 8px 0 16px;
}

.close-x {
  float: right;
  background: none;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* Order page */
.order-page { padding: 40px 0 72px; }
.order-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--panel);
  border-radius: 10px;
  padding: 28px;
}
.order-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.status-pill {
  background: rgba(100, 240, 191, 0.12);
  color: var(--mint);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  height: fit-content;
}
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-box { background: #191d21; border-radius: 8px; padding: 14px; }
.order-box small { display: block; color: var(--muted); margin-bottom: 6px; }
.order-box span, .order-box strong { word-break: break-all; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 22px 0; }
.pay-address { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; text-align: center; }
.btn-ghost {
  background: transparent;
  border: 1px solid #3a424b;
  color: #fff;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
}
.back-link { display: inline-block; margin-bottom: 18px; color: var(--muted); }

.burger { display: none; background: none; border: 0; color: #fff; font-size: 22px; }

@media (max-width: 1100px) {
  .hero h1 { font-size: 36px; line-height: 48px; }
  .menu, .social-rail, .tracker-tab, .chev { display: none; }
  .widget, .features, .stat-row, .review-grid, .best-grid, .footer-grid, .app-promo, .order-grid {
    grid-template-columns: 1fr;
  }
  .pane-left, .pane-right { border-radius: 10px; }
  .widget { gap: 10px; }
  .mid-swap { display: none; }
  .widget-foot { flex-direction: column; align-items: stretch; }
  .burger { display: block; margin-left: auto; }
  .auth { display: none; }
}
