/* Falcon Vault: the brand guidelines (Night, Carbon, Bone, Talon; Geist). Geist and Geist Mono are served by the
   app itself (SIL Open Font License, /fonts/OFL.txt). */
@font-face { font-family: Geist; src: url("/fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #070908; --grid: #101412; --panel: #101412; --line: #222B27; --divider: #1B2320;
  --text: #EDF1EA; --text2: #9DB0A6; --label: #7F8E86;
  /* Talon: one thing per screen, the main action. Text on it is Night. */
  --accent: #D4F53C; --on-accent: #070908;
  --btn2: #171D1A; --btn2-line: #2B3631;
  --warn-text: #F3D48A; --warn-bg: #15110A; --warn-line: #4A3A16; --warn-soft: #E8B64C; --strip: #E8B64C;
  --danger: #FF9C8C; --danger-line: #6B3A32;
  --sans: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; font-family: var(--sans); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--text2); } a:hover { color: var(--text); }
button { font-family: inherit; cursor: pointer; transition: filter .12s, background .12s; }
button:hover { filter: brightness(1.12); }
button:disabled { opacity: .35; cursor: not-allowed; filter: none; }
input, select { font-family: inherit; color: var(--text); }
input::placeholder { color: #5F6B65; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.mono { font-family: var(--mono); }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.strip { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--strip); background: var(--warn-bg); border-bottom: 1px solid #2A2212; padding: 9px 24px; text-align: center; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 28px; }
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.mark { width: 24px; height: 24px; display: block; flex: none; }
.word { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .18em; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--text2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; text-transform: uppercase; }
nav.main { display: flex; gap: 2px; flex-wrap: wrap; }
.nav { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-size: 15px; font-weight: 500; color: var(--text2); }
.nav[aria-current="page"] { color: var(--text); background: #18201C; }
.pill { font-family: var(--mono); font-size: 12px; color: var(--text2); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; }
main { flex: 1; width: 100%; padding: 24px 20px 72px; display: flex; flex-direction: column; align-items: center; }

.col { width: 100%; max-width: 480px; margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.col.wide { max-width: 560px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.inset { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.label.big { font-size: 12px; color: var(--text2); }
h1 { margin: 0; font-weight: 600; font-size: 28px; letter-spacing: -.02em; }
h2 { margin: 0; font-size: 18px; font-weight: 600; }
p { margin: 0; }
.body { font-size: 16px; line-height: 1.6; color: var(--text2); }
.small { font-size: 14px; line-height: 1.55; color: var(--text2); }
.note { font-size: 13px; line-height: 1.5; color: var(--label); text-align: center; }
.caution { font-size: 13px; line-height: 1.55; color: var(--warn-soft); }

.btn { min-height: 56px; border: 0; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-size: 17px; font-weight: 600; padding: 0 20px; }
.btn.second { min-height: 52px; border: 1px solid var(--btn2-line); background: var(--btn2); color: var(--text); font-size: 16px; font-weight: 500; }
.btn.ghost { min-height: 44px; background: transparent; color: var(--text2); font-size: 15px; font-weight: 400; }
.btn.danger { min-height: 48px; border: 1px solid var(--danger-line); background: transparent; color: var(--danger); font-size: 15px; }
.btn.danger.solid { background: var(--danger); color: #2A0A05; border: 0; }
.btn.small { min-height: 46px; font-size: 15px; border-radius: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.row3 .btn { min-height: 58px; font-size: 16px; }

.amount { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font-family: var(--mono); font-size: 34px; letter-spacing: -.02em; }
.addr { min-height: 44px; border: 0; background: transparent; font-family: var(--mono); font-size: 16px; width: 100%; }
.text-in { min-height: 52px; border: 1px solid var(--btn2-line); border-radius: 14px; background: var(--bg); padding: 0 16px; font-size: 16px; width: 100%; }
select { min-height: 44px; border: 1px solid var(--btn2-line); border-radius: 999px; background: var(--btn2); padding: 0 14px; font-size: 15px; }
select.wide { min-height: 52px; border-radius: 14px; background: var(--bg); width: 100%; font-size: 16px; }
.line { display: flex; align-items: center; gap: 10px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; }
.check input { width: 22px; height: 22px; accent-color: var(--text); }

.hero { max-width: 980px; margin-top: 72px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.hero h1 { font-size: 56px; font-weight: 600; text-wrap: balance; line-height: 1.05; letter-spacing: -.03em; }
.hero .chip { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.hero .lead { max-width: 520px; font-size: 18px; line-height: 1.55; color: var(--text2); }
.hero .btn { min-height: 58px; padding: 0 34px; }

.dots { display: flex; gap: 6px; }
.dots div { height: 4px; flex: 1; border-radius: 4px; background: var(--line); }
.dots div.on { background: var(--text); }

.total { font-family: var(--mono); font-size: 52px; letter-spacing: -.03em; line-height: 1; }
.asset { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.asset + .asset { border-top: 1px solid var(--divider); }
.coin { width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.asset .name { font-size: 17px; font-weight: 500; margin-right: auto; }
.asset .val { font-family: var(--mono); font-size: 26px; letter-spacing: -.02em; }
.warncard { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 20px; padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.warncard .t { font-size: 16px; font-weight: 600; color: var(--warn-text); }
.warncard .s { font-size: 14px; color: var(--warn-soft); margin-top: 3px; }
.cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding: 22px 28px; }
.cells .v { font-size: 15px; margin-top: 4px; overflow-wrap: anywhere; }

.rows { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 6px 18px; font-size: 15px; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; }
.rows > div + div { border-top: 1px solid var(--divider); }
.st { font-family: var(--mono); font-size: 13px; }
.st.WAITING { color: var(--label); } .st.WORKING { color: var(--text); } .st.DONE { color: var(--accent); }
.alert { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 18px; padding: 18px; font-size: 15px; line-height: 1.55; color: var(--warn-text); }
.tick { width: 56px; height: 56px; border-radius: 999px; border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; align-self: center; }
.center { text-align: center; }

.act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 18px 0; }
.act + .act { border-top: 1px solid var(--divider); }
.act .w { flex: 1 1 240px; } .act .w b { font-size: 16px; font-weight: 500; display: block; }
.act .who { font-size: 13px; color: var(--text2); margin-top: 3px; }
.act .when { font-family: var(--mono); font-size: 12px; color: var(--label); }

.docs { width: 100%; max-width: 980px; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.docs nav { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.docs nav h1 { margin: 0 14px 12px; }
.docs nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 15px; text-decoration: none; }
.docs .content { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.docs section { scroll-margin-top: 16px; }
.docs h2 { font-size: 20px; letter-spacing: -.01em; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .n { flex: none; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--btn2-line); font-family: var(--mono); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.step b, .docs .item b { font-size: 16px; font-weight: 500; display: block; }
.table3 > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 0; font-size: 14px; line-height: 1.5; }
.table3 > div + div { border-top: 1px solid var(--divider); }
.table3 .head { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--label); padding: 0 0 8px; }
.kv > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; font-size: 15px; }
.kv > div + div { border-top: 1px solid var(--divider); }
.kv .k { color: var(--text2); } .kv .v { text-align: right; overflow-wrap: anywhere; }
.kv .v.mono { font-size: 13px; }
.err { color: var(--danger); font-size: 14px; }
@media (max-width: 560px) { .hero h1 { font-size: 36px; } header { padding: 14px 16px; } .cells { grid-template-columns: 1fr; } }
.coin[data-coin="sol"] { background: var(--text); color: var(--bg); }
.coin[data-coin="usdc"] { background: #171D1A; color: var(--text); border: 1px solid #2B3631; }
.grow { flex: 1 1 220px; }

/* Swap: Raydium's tokens to pick from */
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { border: 1px solid var(--btn2-line); background: var(--btn2); color: var(--text); border-radius: 12px; padding: 8px 12px; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick:hover { border-color: var(--text2); }
.btn.small { min-height: 36px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.stephead { display: flex; align-items: center; gap: 12px; }
.stephead .dots { flex: 1; }
.backarrow { width: 32px; height: 32px; flex: none; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--text2); font-size: 16px; line-height: 1; cursor: pointer; }
.backarrow:hover { color: var(--text); border-color: var(--text2); }
.addrline { display: flex; align-items: center; gap: 10px; }
.addrline .mono { flex: 1; overflow-wrap: anywhere; }
.addrline .btn { width: auto; flex: none; }
button.pill { cursor: pointer; background: none; }

/* Swap */
.swaptop { display: flex; align-items: center; justify-content: space-between; }
.chipbtn { min-height: 44px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 999px; padding: 0 14px; font-size: 13px; }
.swappanel { gap: 10px; position: relative; }
.swapside { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 8px; }
.swaphead { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.bal { display: flex; align-items: center; gap: 6px; }
.tiny { min-height: 28px; padding: 0 9px; border: 1px solid var(--btn2-line); background: var(--btn2); color: var(--text2); border-radius: 8px; font-family: var(--mono); font-size: 12px; }
.tiny.big { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.tiny.on { color: var(--bg); background: var(--text); border-color: var(--text); }
.swapline { display: flex; align-items: center; gap: 12px; }
.tokbtn { min-height: 48px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--btn2-line); background: var(--btn2); color: var(--text); border-radius: 14px; padding: 0 12px 0 8px; font-size: 18px; font-weight: 600; flex: none; }
.tokbtn .chev { color: var(--label); font-size: 13px; }
.amount.right { text-align: right; }
div.amount { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amount.dim { color: var(--label); }
.usd { text-align: right; color: var(--label); }
.flip { width: 40px; height: 40px; align-self: center; margin: -22px 0; z-index: 1; border-radius: 12px; border: 1px solid var(--btn2-line); background: var(--panel); color: var(--text); font-size: 18px; }
.coinbadge { width: 28px; height: 28px; flex: none; border-radius: 999px; background: #171D1A; border: 1px solid var(--btn2-line); color: var(--text); font-family: var(--mono); font-size: 10px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }
.pick .coinbadge { width: 20px; height: 20px; font-size: 8px; vertical-align: middle; }
.pick { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.details { display: flex; flex-direction: column; gap: 8px; padding: 6px 4px; }
.details > div { display: flex; justify-content: space-between; gap: 12px; }
.slipin { width: 120px; min-height: 44px; }
.slipin.on { border-color: var(--text); }
.slip .line { flex-wrap: wrap; }

/* Token picker */
.overlay { position: fixed; inset: 0; background: rgba(7, 9, 8, .78); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 10; }
.modal { width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow: hidden; gap: 14px; }
.modalhead { display: flex; align-items: center; justify-content: space-between; }
.iconbtn { width: 44px; height: 44px; border: 0; background: none; color: var(--text2); font-size: 26px; line-height: 1; }
.toklist { display: flex; flex-direction: column; overflow-y: auto; min-height: 0; flex: 1; max-height: 46vh; border-top: 1px solid var(--line); padding-top: 8px; }
.tokhead { display: flex; justify-content: space-between; padding: 4px 8px 8px; }
.tokrow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 8px; border: 0; border-radius: 12px; background: none; color: var(--text); text-align: left; }
.tokrow:hover { background: #171D1A; filter: none; }
.tokrow .coinbadge { width: 34px; height: 34px; font-size: 11px; }
.tokname { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tokname .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tokright { display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; }
.coin { background: #171D1A; border: 1px solid #2B3631; color: var(--text); font-family: var(--mono); font-size: 12px; font-weight: 500; }
.haslogo { overflow: hidden; background: none; border-color: transparent; }
.haslogo img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; display: block; }
