﻿:root {
  --bgTop: #080c16;
  --bgMid: #0b1020;
  --bgBot: #090e22;

  --card: rgba(255,255,255,0.06);
  --cardGradA: rgba(255,255,255,0.055);
  --cardGradB: rgba(255,255,255,0.02);
  --line: rgba(255,255,255,0.09);
  --ink: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.50);
  --placeholder: rgba(255,255,255,0.18);

  --topbarBg: rgba(10,14,26,0.88);
  --fieldBg: rgba(8,12,22,0.65);
  --modalA: #111728;
  --modalB: #0d1120;

  --chipBg: rgba(255,255,255,0.06);
  --chipInk: rgba(255,255,255,0.82);
  --chipBorder: rgba(255,255,255,0.10);

  --faint: rgba(255,255,255,0.42);
  --dim: rgba(255,255,255,0.45);
  --soft: rgba(255,255,255,0.60);
  --link: rgba(255,255,255,0.78);
  --underline: rgba(255,255,255,0.16);
  --underlineHover: rgba(255,255,255,0.42);
  --toastBg: rgba(12,16,32,0.92);

  --orange: #ff6b1a;
  --orangeGlow: rgba(255,107,26,0.12);
  --blue: #4a94e0;
  --blueGlow: rgba(74,148,224,0.12);
  --danger: #ff5a6a;
  --success: #22c55e;
  --orange-dark: #c44d0b;
  --blue-hover: #4d9bf5;

  --r: 14px;
}

html[data-theme="light"] {
  --bgTop: #f6f7fb;
  --bgMid: #eef2ff;
  --bgBot: #f7fafc;

  --card: rgba(15,23,42,0.06);
  --cardGradA: rgba(255,255,255,0.92);
  --cardGradB: rgba(255,255,255,0.78);
  --line: rgba(15,23,42,0.14);
  --ink: rgba(15,23,42,0.92);
  --muted: rgba(15,23,42,0.55);
  --placeholder: rgba(15,23,42,0.25);

  --topbarBg: rgba(246,247,251,0.88);
  --fieldBg: rgba(255,255,255,0.78);
  --modalA: #ffffff;
  --modalB: #f7fafc;

  --chipBg: rgba(15,23,42,0.06);
  --chipInk: rgba(15,23,42,0.80);
  --chipBorder: rgba(15,23,42,0.12);

  --faint: rgba(15,23,42,0.52);
  --dim: rgba(15,23,42,0.58);
  --soft: rgba(15,23,42,0.65);
  --link: rgba(15,23,42,0.78);
  --underline: rgba(15,23,42,0.18);
  --underlineHover: rgba(15,23,42,0.42);
  --toastBg: rgba(246,247,251,0.94);

  --orangeGlow: rgba(255,107,26,0.08);
  --blueGlow: rgba(74,148,224,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  color: var(--ink);
  background:
    radial-gradient(700px 450px at 25% 0%, var(--orangeGlow), transparent 55%),
    radial-gradient(700px 450px at 75% 5%, var(--blueGlow), transparent 55%),
    linear-gradient(180deg, var(--bgTop), var(--bgMid) 50%, var(--bgBot));
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

/* â•â•â• TOP BAR â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--topbarBg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left { display: flex; align-items: center; gap: 20px; }

.logo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.logo span { color: var(--orange); }

.nav-links { display: flex; gap: 16px; }

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: color 120ms;
}

.nav-links a:hover { color: var(--ink); text-decoration: none; }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.btn-theme {
  border: none;
  background: transparent;
  color: var(--dim);
  padding: 6px;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-theme:hover { background: rgba(255,255,255,0.06); color: var(--ink); }
html[data-theme="light"] .btn-theme:hover { background: rgba(15,23,42,0.06); }

.status-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}

.status-dot i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
}

.status-dot.down { color: var(--danger); }
.status-dot.down i {
  background: var(--danger);
  box-shadow: 0 0 6px rgba(255,90,106,0.55);
}

/* â•â•â• PAGE LAYOUT â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 36px 16px 32px;
  min-height: calc(100vh - 62px);
}

/* â•â•â• SWAP CARD â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.card {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--cardGradA), var(--cardGradB));
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 50px rgba(0,0,0,0.4);
  padding: 22px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.card-title { font-size: 15px; font-weight: 700; }
.card-subtitle { font-size: 12px; color: var(--muted); }

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

.card-tab {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.card-tab:hover { color: var(--ink); }
.card-tab.active {
  color: var(--ink);
  border-color: rgba(74,148,224,0.35);
  background: rgba(74,148,224,0.14);
}

/* â•â•â• STEP DOTS â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.steps { display: flex; gap: 4px; margin-bottom: 20px; }

.steps .dot {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  transition: background 200ms;
}

.steps .dot.done { background: var(--orange); }
.steps .dot.active { background: rgba(255,107,26,0.45); }

/* â•â•â• TOKEN ROW â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.token-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--fieldBg);
  padding: 14px;
  margin-bottom: 6px;
  min-height: 78px;
  transition: border-color 150ms;
}

.token-row:focus-within {
  border-color: rgba(255,255,255,0.16);
}

.token-row-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.token-row-label span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.token-row-label .tag { font-weight: 400; }

.token-row-main { display: flex; align-items: center; gap: 10px; }

/* XMR side â€” no box, just logo + label inline */
.token-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--ink);
}

.token-label svg { flex-shrink: 0; border-radius: 50%; }
.token-label span { letter-spacing: 0.02em; }

/* Token label SVG sizing */
.token-label svg { width: 22px; height: 22px; }

.token-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  text-align: right;
  min-width: 0;
}

.token-input::placeholder { color: var(--placeholder); }
.token-input:disabled { color: var(--muted); cursor: default; }

/* Swap arrow */
.swap-arrow {
  display: flex;
  justify-content: center;
  margin: 4px 0;
  position: relative;
  z-index: 1;
}

.swap-arrow-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--fieldBg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: background 120ms, color 120ms, transform 200ms;
}

.swap-arrow-icon:hover { background: rgba(255,107,26,0.08); border-color: rgba(255,107,26,0.25); color: var(--orange); }
.swap-arrow-icon:active { transform: scale(0.92); }
.swap-arrow-icon.flipped { transform: rotate(180deg); }
.swap-arrow-icon.flipped:active { transform: rotate(180deg) scale(0.92); }
.swap-arrow-icon svg { width: 14px; height: 14px; }

/* â•â•â• CHAIN SELECTOR â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.chain-select-wrap { position: relative; display: inline-flex; }

.chain-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--chipBg);
  border: 1px solid var(--chipBorder);
  border-radius: 6px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 20px 3px 7px;
  cursor: pointer;
  outline: none;
  letter-spacing: 0.02em;
}

.chain-select option {
  background: var(--modalA);
  color: var(--ink);
}

.chain-select:hover { border-color: rgba(255,255,255,0.22); }
.chain-select:focus { border-color: rgba(74,148,224,0.5); }

.chain-select-arrow {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  font-size: 8px;
}

/* â•â•â• FORM FIELDS â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.field { display: grid; gap: 6px; margin-bottom: 14px; }

.field label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 13px 12px;
  font-size: 15px;
  background: rgba(8,12,22,0.65);
  color: var(--ink);
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}

.field input:focus {
  border-color: rgba(74,148,224,0.45);
  box-shadow: 0 0 0 3px rgba(74,148,224,0.07);
}

/* â•â•â• BUTTONS â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 13px;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  transition: filter 100ms, transform 80ms;
}

.btn:active:not(:disabled) { transform: scale(0.98); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 8px 24px rgba(255,107,26,0.12);
}

.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }

.btn-secondary {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-secondary:hover:not(:disabled) { background: rgba(255,255,255,0.07); }

.btn:disabled { opacity: 0.32; cursor: not-allowed; filter: none; }

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

/* â•â•â• INFO PANEL â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.info {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  padding: 11px 13px;
  margin-bottom: 14px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
}

.info-row:first-child { padding-top: 0; }
.info-row:last-child { padding-bottom: 0; }
.info-row .k { font-size: 12px; color: var(--muted); }
.info-row .v { font-size: 12px; font-weight: 700; text-align: right; word-break: break-all; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }

/* â•â•â• STATUS BADGE â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.status-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-badge.pending { background: rgba(74,148,224,0.12); color: #60a5fa; border: 1px solid rgba(74,148,224,0.25); }
.status-badge.success { background: rgba(34,197,94,0.10); color: #22c55e; border: 1px solid rgba(34,197,94,0.25); }
.status-badge.error { background: rgba(255,90,106,0.10); color: var(--danger); border: 1px solid rgba(255,90,106,0.25); }

/* â•â•â• ERROR â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.error-box {
  border: 1px solid rgba(255,90,106,0.25);
  background: rgba(255,90,106,0.06);
  border-radius: 10px;
  padding: 10px 13px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--danger);
}

/* â•â•â• STATUS DISPLAY â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.status-display { text-align: center; padding: 14px 0; }
.status-display .big { font-size: 24px; font-weight: 800; margin-bottom: 3px; }
.status-display .label { font-size: 13px; color: var(--muted); }

.track-meta {
  margin-top: 8px;
  font-size: 11px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pbar { margin: 10px 0 6px; }
.pbar-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.pbar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255,107,26,0.95), rgba(34,197,94,0.85));
  box-shadow: 0 0 18px rgba(255,107,26,0.14);
  width: 0%;
  transition: width 240ms ease;
}
.pbar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: var(--dim);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.pbar-labels span.on { color: var(--ink); }

.ext { color: var(--link); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.22); }
html[data-theme="light"] .ext { text-decoration-color: rgba(15,23,42,0.22); }
.ext:hover { color: var(--ink); text-decoration-color: rgba(255,255,255,0.45); }
html[data-theme="light"] .ext:hover { text-decoration-color: rgba(15,23,42,0.45); }

.history { border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; background: rgba(255,255,255,0.02); padding: 10px 10px; }
.history-note { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.history-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 6px; border-bottom:1px solid rgba(255,255,255,0.04); cursor:pointer; border-radius:10px; }
.history-row:hover { background: rgba(255,255,255,0.03); }
.history-row:last-child { border-bottom:none; }
.history-id { font-size: 12px; font-weight: 900; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.history-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.history-right { font-size: 11px; color: var(--dim); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.history-hint { margin-top: 10px; font-size: 11px; color: var(--muted); text-align:center; }
.history-empty { font-size: 12px; color: var(--muted); text-align:center; padding: 24px 8px; }

.copyable { cursor: pointer; text-decoration: underline; text-decoration-color: var(--underline); }
.copyable:hover { text-decoration-color: var(--underlineHover); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 500;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--toastBg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}

/* â•â•â• HINT â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.5; }

/* â•â•â• FOOTER â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.site-footer {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--faint);
  gap: 8px;
}

.footer-row + .footer-row { margin-top: 6px; }
.footer-row a { color: var(--muted); font-size: 11px; transition: color 120ms; }
.footer-row a:hover { color: var(--ink); text-decoration: none; }
.footer-links { display: flex; gap: 12px; }
.debug-link { font-size: 10px; color: rgba(255,107,26,0.35); font-family: ui-monospace, monospace; transition: color 120ms; }
.debug-link:hover { color: var(--orange); }

/* â•â•â• MODAL â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  width: 100%;
  max-width: 400px;
  max-height: 82vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--modalA), var(--modalB));
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
}

.modal h2 { font-size: 16px; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.01em; }
.modal p { font-size: 13px; color: var(--soft); line-height: 1.65; margin-bottom: 12px; }
.modal p strong { color: var(--ink); }

.modal-step { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }

.modal-step-num {
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(255,107,26,0.12); color: var(--orange);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}

.modal-step-text { font-size: 13px; color: var(--soft); line-height: 1.55; }
.modal-step-text strong { color: var(--ink); }

/* How-it-works & About modals â€” wider, spacious */
.modal-wide { max-width: 480px; padding: 28px 28px 24px; }

.how-intro {
  font-size: 13px; color: var(--soft);
  line-height: 1.6; margin-bottom: 20px;
}

.how-steps { display: flex; flex-direction: column; gap: 0; }

.how-arrow {
  display: flex; justify-content: center; align-items: center;
  padding: 2px 0; margin-left: 22px;
}

.how-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px; border-radius: 10px;
  border: 1px solid transparent;
  transition: background 120ms, border-color 120ms;
}

.how-step:hover { background: rgba(255,255,255,0.025); border-color: var(--line); }

.how-step-num {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,107,26,0.15), rgba(255,107,26,0.06));
  border: 1px solid rgba(255,107,26,0.18);
  color: var(--orange); font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}

.how-step-body { flex: 1; padding-top: 2px; }

.how-step-title {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.how-step-title strong { font-size: 14px; font-weight: 700; color: var(--ink); }
.how-step-title img, .how-step-title svg { width: 18px; height: 18px; flex-shrink: 0; }

.how-step-body p { font-size: 12.5px; color: var(--soft); line-height: 1.6; margin-bottom: 4px; }
.how-step-body p a { color: var(--blue); }

.how-link {
  font-size: 11px; color: var(--orange); opacity: 0.7;
  transition: opacity 120ms;
}
.how-link:hover { opacity: 1; color: var(--orange); }

/* About modal features */
.about-what {
  text-align: center; padding: 18px 0;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,0.02); margin-bottom: 18px;
}
.about-what p { font-size: 12.5px; color: var(--soft); line-height: 1.6; margin: 10px 14px 0; }

.about-pair {
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.about-pair img, .about-pair svg { width: 32px; height: 32px; }
.about-arrow { font-size: 22px; color: var(--orange); font-weight: 700; }

.about-features { display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; }

.about-feature {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px; border-radius: 10px;
  transition: background 120ms;
}
.about-feature:hover { background: rgba(255,255,255,0.025); }

.about-feature-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: rgba(74,148,224,0.08);
  color: var(--blue);
}

.about-feature strong { font-size: 13px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 2px; }
.about-feature p { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 0; }

/* Shared footer */
.how-footer {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
}

.how-footer-row {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 12px; font-weight: 600;
  color: var(--muted); margin-bottom: 10px;
}
.how-sep { color: color-mix(in srgb, var(--muted) 50%, transparent); }

.how-footer-links {
  display: flex; justify-content: center; gap: 16px;
  font-size: 11.5px;
}
.how-footer-links a { color: var(--blue); opacity: 0.7; transition: opacity 120ms; }
.how-footer-links a:hover { opacity: 1; }

.modal-close {
  margin-top: 18px; width: 100%; padding: 11px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  color: var(--ink); font-size: 13px; font-weight: 700;
  cursor: pointer; text-align: center; transition: background 120ms;
}

.modal-close:hover { background: rgba(255,255,255,0.08); }

/* â•â•â• LOADING SKELETON â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-block { height: 48px; }

/* Reserve space for quote info panel to prevent shift */
.info-placeholder {
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  padding: 11px 13px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

/* Modal reserved height to avoid shift on content load */
.modal { min-height: 180px; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* â•â•â• ANIMATION â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulsing { animation: pulse 2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) { .pulsing { animation: none; } }

/* â•â•â• MOBILE â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 520px) {
  .topbar { padding: 10px 12px; gap: 8px; }
  .topbar-left { gap: 12px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 12px; }
  .page { padding: 20px 10px 24px; justify-content: flex-start; min-height: auto; }
  .card { padding: 16px; }
  .token-input { font-size: 19px; }
  .modal-wide { max-width: 100%; padding: 20px 16px; }
  .how-step { padding: 12px 10px; }
  .about-feature { padding: 10px 8px; }
  .about-pair img, .about-pair svg { width: 28px; height: 28px; }
}

@media (max-width: 380px) {
  .nav-links { display: none; }
  .status-dot { display: none; }
  .btn-row { grid-template-columns: 1fr; }
}
