/* Top bar shared by every page: section links, coin search, X, docs and the wallet pill. */
.tsearch { position: relative; flex: 1; max-width: 460px; margin-left: 18px; display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.tsearch:focus-within { border-color: rgba(255, 102, 77, 0.55); }
.tsearch svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.tsearch input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 13.5px Geist, system-ui, sans-serif; }
.tsearch input::placeholder { color: var(--muted); }
.results { position: absolute; left: 0; right: 0; top: 42px; z-index: 10; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 14, 17, 0.96); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.results button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 9px; border: 0; border-radius: 9px; background: none; text-align: left; }
.results button:hover, .results button.sel { background: var(--hover); }
.results .rn { font-weight: 600; font-size: 14px; }
.results .ra { color: var(--muted); font: 500 11.5px var(--mono); }
.results .rp { margin-left: auto; font: 500 12.5px var(--mono); }
.results .none { padding: 10px; color: var(--muted); font-size: 13px; }
.results .rlabel { padding: 6px 9px 4px; color: var(--muted); font: 500 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.results .rn em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 7px; }
.results .rp { display: grid; justify-items: end; gap: 1px; }
.results .rp em { font-style: normal; color: var(--muted); font-size: 11px; }
.results button > span:nth-child(2) { min-width: 0; overflow: hidden; }
.results .rn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: flex; align-items: center; gap: 2px; margin-left: 22px; }
.topnav a { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 9px; color: var(--muted); font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color 0.12s, background 0.12s; }
.topnav a:hover { color: var(--text); background: var(--hover); }
.topnav a.on { color: var(--text); background: var(--hover); }
.topnav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.topnav a.on svg { color: var(--accent); }
.xlink { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 8px; border-radius: 10px; color: var(--muted); }
.xlink:hover { background: var(--hover); color: var(--text); }
.xlink svg { width: 15px; height: 15px; fill: currentColor; }
.top .tsearch { min-width: 180px; }
@media (min-width: 721px) { .shell > .side { display: none; } }
@media (max-width: 1320px) { .topnav a span { display: none; } .topnav a { padding: 0 9px; } }
@media (max-width: 720px) { .topnav, .xlink { display: none; } }
.top .gpslot + .tsearch { margin-left: 0; margin-right: 10px; max-width: 340px; }
.wpill { position: relative; display: flex; align-items: center; }
.wbtn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; border: 1px solid rgba(255, 102, 77, 0.35); border-radius: 999px; background: rgba(255, 102, 77, 0.1); color: var(--text); font: 600 13px Geist, system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.12s, border-color 0.12s; }
.wbtn:hover { background: rgba(255, 102, 77, 0.18); border-color: rgba(255, 102, 77, 0.55); }
.wbtn:disabled { cursor: default; opacity: 0.8; }
.wbtn .wic { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wbtn b { font: 500 13px var(--mono); }
.wbtn .sol { width: 13px; height: 13px; margin: 0 0 0 -3px; }
.wbal { padding-right: 34px; }
.weye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity 0.12s, background 0.12s; }
.wpill:hover .weye, .weye:focus-visible { opacity: 1; }
.weye:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.weye svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wmenu { position: absolute; right: 0; top: 44px; z-index: 20; display: grid; gap: 4px; min-width: 210px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 14, 17, 0.97); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.wmenu button, .wmenu a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--text); font-size: 13px; font-weight: 500; text-decoration: none; text-align: left; cursor: pointer; }
.wmenu button:hover, .wmenu a:hover { background: var(--hover); }
.wmenu img { width: 20px; height: 20px; border-radius: 5px; }
.wmenu em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--warn); }
@media (max-width: 720px) {
  .top .gpslot + .tsearch { margin-right: 0; max-width: none; }
  .wbtn { height: 34px; padding: 0 12px 0 10px; }
  .wbal { padding-right: 12px; }
  .weye { display: none; }
}
@media (max-width: 720px) {
  .top { flex-wrap: wrap; height: auto; padding: 9px 14px; row-gap: 8px; }
  .tsearch { order: 5; flex: 1 1 100%; max-width: none; margin: 0; }
  .tsearch kbd { display: none; }
  .top .net { display: none; }
  .top { flex-wrap: wrap; }
}
.results img.coin { object-fit: cover; padding: 0; background: #17171c; }

/* ---------- Go private: the top bar button and its card (web/goprivate.js) ---------- */
.gpslot { display: contents; }
.gpbtn { display: inline-flex; align-items: center; gap: 7px; height: 36px; margin-right: 10px; padding: 0 14px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font: 600 13px Geist, system-ui, sans-serif; white-space: nowrap; cursor: pointer; transition: background 0.12s, border-color 0.12s; }
.gpbtn:hover { background: var(--hover); border-color: rgba(255, 102, 77, 0.45); }
.gpbtn svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 720px) { .gpbtn { width: 36px; padding: 0; justify-content: center; margin-right: 6px; } .gpbtn span { display: none; } }
.gpscrim { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: gpin 0.16s ease-out; }
@keyframes gpin { from { opacity: 0; } }
.gpcard { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border: 1px solid var(--line); border-radius: 20px; background: #0d0d10; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 80px rgba(0, 0, 0, 0.6); animation: gpup 0.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes gpup { from { transform: translateY(8px) scale(0.98); opacity: 0; } }
.gphead { display: flex; align-items: center; gap: 10px; padding: 16px 16px 0 18px; }
.gphead b { font: 600 16px var(--head, Geist); }
.gplock { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(232, 65, 37, 0.14); }
.gplock svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.gpx { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.gpx:hover { background: var(--hover); color: var(--text); }
.gpbody { padding: 12px 18px 18px; }
.gplead { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.gprows { display: grid; gap: 2px; margin: 0 -8px; }
.gprow { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; cursor: pointer; }
.gprow:hover { background: var(--hover); }
.gprow.off { opacity: 0.45; cursor: default; }
.gprow input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); flex: none; }
.gpic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 102, 77, 0.12); color: var(--accent); font-size: 12px; font-weight: 700; }
.gpic .sol { width: 16px; height: 16px; margin: 0; }
.gpn { display: grid; min-width: 0; line-height: 1.25; }
.gpn b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpn em { color: var(--muted); font-size: 11.5px; font-style: normal; }
.gpa { margin-left: auto; font: 500 13.5px var(--mono); }
.gps { display: grid; place-items: center; width: 20px; flex: none; }
.gps .spin, .gppre .spin, .gpwait .spin { width: 14px; height: 14px; }
.gpchk { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(127, 224, 168, 0.14); }
.gpchk svg, .gpok svg { width: 12px; height: 12px; fill: none; stroke: var(--good); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gppre { display: grid; gap: 6px; margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--muted); }
.gppre > div { display: flex; align-items: center; gap: 9px; }
.gppre > div.ok, .gppre > div.run { background: none; width: auto; height: auto; border-radius: 0; color: var(--text); }
.gppre .dot { width: 6px; height: 6px; margin: 0 6px; border-radius: 50%; background: var(--line); }
.gpgo { display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; margin-top: 14px; border: 0; border-radius: 13px; background: var(--brand); color: #fff; font: 600 15px Geist, system-ui, sans-serif; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 26px rgba(232, 65, 37, 0.3); transition: background 0.12s, opacity 0.12s; }
.gpgo:hover { background: #ea4e33; }
.gpgo[disabled] { opacity: 0.5; cursor: default; }
.gpmsg { margin: 10px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.gpmsg.bad { color: var(--bad); }
.gpnone, .gpwait { display: flex; align-items: center; gap: 10px; margin: 6px 0; color: var(--muted); font-size: 13.5px; }
.gpdone { display: grid; justify-items: center; text-align: center; padding: 10px 6px 2px; }
.gpok { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(127, 224, 168, 0.12); box-shadow: 0 0 0 6px rgba(127, 224, 168, 0.05); }
.gpok svg { width: 24px; height: 24px; }
.gpdone b { margin-top: 14px; font: 600 18px var(--head, Geist); }
.gpdone p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* Private Swap: pick a balance, then a swap box */
button.gprow { width: 100%; border: 0; background: none; color: var(--text); font: inherit; text-align: left; }
.gpgrp { margin: 0 0 12px; }
.gpgh { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; font: 600 11px var(--mono, monospace); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.gpgh svg, .gpbh svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gpgrp.priv .gpgh, .gpbox.priv .gpbh > span:first-child { color: var(--accent); }
.gpgrp .gprows, .gpgrp { display: grid; gap: 2px; }
.gpunlock, .gpback { padding: 8px 0; border: 0; background: none; color: var(--accent); font: 500 13px Geist, system-ui, sans-serif; text-align: left; cursor: pointer; }
.gpback { color: var(--muted); }
.gpback:hover { color: var(--text); }
.gpback.top { padding: 0 0 10px; }
.gpdone .gpback { margin-top: 8px; }
.gpbox { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.025); }
.gpbox.priv { border-color: rgba(255, 102, 77, 0.35); background: rgba(232, 65, 37, 0.06); }
.gpbox:focus-within { border-color: rgba(255, 102, 77, 0.6); }
.gpbh { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.gpbh > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.gpbal { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px var(--mono, monospace); white-space: nowrap; }
.gpbal button { height: 20px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--text); font: 500 11px var(--mono, monospace); cursor: pointer; }
.gpbal button:hover { background: var(--hover); }
.gpin { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.gpin input, .gpout { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 500 24px var(--mono, monospace); letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; }
.gpin input::placeholder { color: #4a4a55; }
.gptok { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 32px; padding: 0 10px 0 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-weight: 600; font-size: 13.5px; }
.gptok .gpic { width: 24px; height: 24px; font-size: 11px; }
.gpflip { display: grid; place-items: center; width: 34px; height: 34px; margin: -10px auto; position: relative; z-index: 1; border: 1px solid var(--line); border-radius: 10px; background: #0d0d10; color: var(--text); cursor: pointer; }
.gpflip:hover { border-color: rgba(255, 102, 77, 0.5); color: var(--accent); }
.gpflip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gpfacts { display: grid; gap: 6px; margin-top: 12px; font-size: 12.5px; }
.gpfacts div { display: flex; justify-content: space-between; gap: 12px; }
.gpfacts span { color: var(--muted); }
.gpfacts b { font-weight: 500; text-align: right; }
.gpmsg .spin { width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; }
.gpbh > span:first-child { white-space: nowrap; }
@media (max-width: 420px) { .gpbl { display: none; } .gpbal { gap: 4px; font-size: 10.5px; } .gpbal button { padding: 0 5px; } .gpbox { padding: 11px 12px; } }
