/* Talaria app pages (swap, order, track, status, help): the Vault landing's panels, rows and mono labels. Loaded after site.css. */
body.app { min-height: 100vh; }
.app .nav { animation-duration: .9s; animation-delay: 0s; }
.app-glow { position: absolute; left: 0; right: 0; top: 0; height: 620px; background: url(../img/hero-bg.webp) center top / cover no-repeat; opacity: .32; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, transparent 100%); pointer-events: none; }
.page { position: relative; z-index: 1; padding: 140px 24px 120px; }
.page-head { text-align: center; margin-bottom: 44px; }
.page-head .h2 { margin-top: 18px; }
.page-head .lead { margin: 16px auto 0; max-width: 560px; }
.narrow { max-width: 760px; margin: 0 auto; }

/* panels */
.panel-c { border-radius: 20px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); padding: 22px; position: relative; }
.row-c { border-radius: 14px; background: rgba(255, 255, 255, .04); }
.k { font: 500 11px/13.2px var(--mono); letter-spacing: 1.43px; color: var(--fg-38); text-transform: uppercase; }
.badge { position: relative; display: inline-block; flex: none; }
.badge .sub { position: absolute; right: -3px; bottom: -3px; border-radius: 5px; box-shadow: 0 0 0 2px #121414; object-fit: cover; }
.glyph { display: grid; place-items: center; border-radius: 50%; background: #2a2e2e; color: var(--fg-70); font-weight: 600; }

/* buttons */
.cta { width: 100%; height: 52px; border-radius: 10px; background: #fff; color: #171717; font-size: 16px; font-weight: 500; letter-spacing: -.32px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .2s, transform .2s; }
.cta:hover { transform: translateY(-1px); }
.cta:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.cta.ghost-c { background: rgba(255, 255, 255, .05); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.cta.teal { background: var(--brand); color: #fff; }
.link { color: #64e0c2; }
.link:hover { text-decoration: underline; }
.err { color: #ff8a8a; font-size: 13px; line-height: 19px; }
.ok-t { color: #64e0c2; }

/* ---------- swap ---------- */
.swap-grid { display: flex; justify-content: center; align-items: flex-start; gap: 20px; }
.form { width: 500px; }
.side { width: 420px; }
.fld { border-radius: 14px; background: rgba(255, 255, 255, .04); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s; }
.fld:focus-within { box-shadow: inset 0 0 0 1px rgba(20, 200, 160, .45); }
.fld + .fld { margin-top: 8px; }
.fld .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--fg-50); }
.fld .top .ch { display: inline-flex; align-items: center; gap: 6px; }
.fld .top .ch img { width: 16px; height: 16px; border-radius: 50%; }
.amt-row { display: flex; align-items: center; gap: 12px; }
.amt-row input, .amt-row .out { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: 600 34px/40px var(--sans); letter-spacing: -1.2px; }
.amt-row .out { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amt-row .out.dim { color: var(--fg-38); }
.amt-row input::placeholder { color: rgba(255, 255, 255, .22); }
.coin-btn { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 8px; border-radius: 12px; background: rgba(255, 255, 255, .06); transition: background .2s; }
.coin-btn:hover { background: rgba(255, 255, 255, .1); }
.coin-btn .t { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.coin-btn .t b { font-size: 15px; font-weight: 600; }
.coin-btn .t small { font-size: 11px; color: var(--fg-50); }
.coin-btn svg { width: 12px; height: 12px; opacity: .5; }
.fld .sub { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-38); min-height: 15px; }
.fld .sub button { color: #64e0c2; font-size: 12px; }
.flip { display: grid; place-items: center; height: 8px; position: relative; z-index: 2; }
.flip span { width: 34px; height: 34px; border-radius: 10px; background: #121414; box-shadow: 0 0 0 4px #0d0f0f, inset 0 0 0 1px rgba(255, 255, 255, .08); display: grid; place-items: center; }
.flip svg { width: 14px; height: 14px; opacity: .6; }
.addr input { width: 100%; background: none; border: 0; outline: 0; color: #fff; font: 400 15px/20px var(--mono); }
.addr input::placeholder { color: rgba(255, 255, 255, .25); font-family: var(--sans); }
.addr .chk { font-size: 12px; }
.settings { display: flex; justify-content: space-between; align-items: center; margin: 14px 2px 14px; font-size: 13px; color: var(--fg-50); }
.seg-c { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.seg-c button { height: 24px; padding: 0 9px; border-radius: 8px; font: 500 11px var(--mono); letter-spacing: .8px; color: var(--fg-50); }
.seg-c button.on { background: rgba(20, 200, 160, .16); color: #64e0c2; }
.why { margin-top: 10px; text-align: center; font-size: 12px; color: var(--fg-38); min-height: 15px; }
.connected { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--fg-38); }
.connected b { color: var(--fg-70); font-weight: 500; font-family: var(--mono); }
.connected button { color: var(--fg-50); font-size: 12px; }

/* route panel */
.side .head { display: flex; justify-content: space-between; align-items: baseline; }
.side .recv { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.side .recv .n { font-size: 32px; font-weight: 600; letter-spacing: -1px; line-height: 38px; }
.side .recv .n small { font-size: 16px; color: var(--fg-50); font-weight: 500; letter-spacing: 0; }
.side .usd { margin-top: 2px; font-size: 13px; color: var(--fg-38); }
.legs-c { margin-top: 18px; position: relative; }
.legs-c .lg { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.legs-c .lg:last-child { padding-bottom: 0; }
.legs-c .lg::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.legs-c .lg:last-child::before { display: none; }
.legs-c .lg .ico { width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .05); display: grid; place-items: center; flex: none; overflow: hidden; }
.legs-c .lg .ico img { width: 20px; height: 20px; border-radius: 50%; }
.legs-c .lg .tx { flex: 1; min-width: 0; padding-top: 2px; }
.legs-c .lg .tx b { display: block; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.legs-c .lg .tx small { display: block; margin-top: 2px; font-size: 12px; color: var(--fg-38); }
.legs-c .lg .vv { text-align: right; font: 500 12px/16px var(--mono); color: var(--fg-70); padding-top: 3px; white-space: nowrap; }
.legs-c .lg .vv small { display: block; color: var(--fg-38); font-size: 11px; }
.kv { margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, .06); }
.kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 13px; color: var(--fg-50); }
.kv div:last-child { border-bottom: 0; }
.kv div em { font-style: normal; font-family: var(--mono); font-size: 13px; color: rgba(255, 255, 255, .85); text-align: right; }
.kv div em.hot { color: #64e0c2; }
.side .idle { padding: 30px 0 10px; text-align: center; }
.side .idle .belt-s { height: 64px; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.side .idle .belt-s div { display: flex; gap: 12px; position: absolute; left: 0; top: 8px; animation: belt 40s linear infinite; }
.side .idle .belt-s img { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .04); padding: 8px; flex: none; }
@keyframes belt { to { transform: translateX(-50%); } }
.side .idle p { margin-top: 14px; font-size: 13px; color: var(--fg-38); }
.warnings { margin-top: 14px; border-radius: 12px; background: rgba(255, 180, 80, .08); padding: 10px 12px; font-size: 12px; color: #f2c58a; }
.quote-age { font: 400 11px var(--mono); color: var(--fg-38); }

.recent-c { margin: 40px auto 0; width: 940px; }
.recent-c .list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.recent-c a { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); font-size: 14px; transition: background .2s; }
.recent-c a:hover { background: rgba(255, 255, 255, .055); }
.recent-c a small { color: var(--fg-38); font-family: var(--mono); font-size: 12px; margin-left: auto; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px); padding: 20px; }
.modal.open { display: flex; animation: mfade .3s var(--ease-out); }
@keyframes mfade { from { opacity: 0; } }
.sheet { width: 440px; max-width: 100%; max-height: min(680px, 90vh); display: flex; flex-direction: column; border-radius: 20px; background: #101212; box-shadow: 0 40px 100px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .07); padding: 20px; animation: mup .45s var(--ease-out); }
@keyframes mup { from { transform: translateY(24px); opacity: 0; } }
.sheet .sh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet .sh b { font-size: 18px; font-weight: 500; letter-spacing: -.5px; }
.sheet .x { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .05); display: grid; place-items: center; }
.sheet .x svg { width: 12px; height: 12px; }
.search { height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .05); display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: #fff; font: 400 15px var(--sans); }
.search svg { width: 15px; height: 15px; opacity: .45; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.chips button { flex: none; height: 30px; padding: 0 10px 0 6px; border-radius: 9px; background: rgba(255, 255, 255, .04); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-70); }
.chips button img { width: 18px; height: 18px; border-radius: 50%; }
.chips button.on { background: rgba(20, 200, 160, .16); color: #64e0c2; }
.picklist { margin-top: 8px; overflow-y: auto; flex: 1; min-height: 120px; }
.picklist button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-align: left; transition: background .15s; }
.picklist button:hover { background: rgba(255, 255, 255, .05); }
.picklist .t { flex: 1; min-width: 0; }
.picklist .t b { font-size: 15px; font-weight: 500; }
.picklist .t small { display: block; font-size: 12px; color: var(--fg-38); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picklist .r { font: 400 12px var(--mono); color: var(--fg-38); }
.wallets button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); text-align: left; }
.wallets button + button, .wallets a + button, .wallets button + a, .wallets a + a { margin-top: 8px; }
.wallets a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .02); }
.wallets img { width: 32px; height: 32px; border-radius: 9px; }
.wallets b { font-size: 15px; font-weight: 500; }
.wallets small { margin-left: auto; font-size: 12px; color: var(--fg-38); }
.wallets button:hover { background: rgba(255, 255, 255, .06); }
.wallets .grp { margin: 14px 2px 8px; }
.review .big { margin: 6px 0 2px; font-size: 30px; font-weight: 600; letter-spacing: -1px; }
.review p.note { margin-top: 12px; font-size: 12px; line-height: 18px; color: var(--fg-38); }
.review .cta { margin-top: 12px; }

/* ---------- order ---------- */
.order-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; max-width: 1000px; margin: 0 auto; }
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 16px; }
.step .rail { display: flex; flex-direction: column; align-items: center; }
.step .node { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .04); display: grid; place-items: center; position: relative; transition: box-shadow .4s; }
.step .node img { width: 26px; height: 26px; border-radius: 50%; opacity: .45; transition: opacity .4s; }
.step .line { flex: 1; width: 2px; margin: 6px 0; border-radius: 2px; background: rgba(255, 255, 255, .07); min-height: 26px; }
.step:last-child .line { display: none; }
.step .tx { padding: 10px 0 26px; flex: 1; }
.step .tx b { font-size: 16px; font-weight: 500; color: var(--fg-50); }
.step .tx p { margin-top: 4px; font-size: 14px; line-height: 21px; color: var(--fg-38); }
.step.done .node img, .step.active .node img { opacity: 1; }
.step.done .tx b { color: #fff; }
.step.done .line { background: rgba(20, 200, 160, .45); }
.step.done .tx p { color: var(--fg-50); }
.step.active .node { box-shadow: 0 0 0 1px rgba(20, 200, 160, .6), 0 0 24px rgba(20, 200, 160, .35); }
.step.active .tx b { color: #64e0c2; }
.step.active .tx p { color: var(--fg-70); }
.step.active .node::after { content: ""; position: absolute; inset: -5px; border-radius: 15px; border: 1px solid rgba(20, 200, 160, .4); animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { opacity: 1; transform: scale(.9); } to { opacity: 0; transform: scale(1.15); } }
.step.bad .tx b { color: #ff8a8a; }
.step.warn .tx b { color: #f2c58a; }
.state-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 30px; background: rgba(255, 255, 255, .05); font: 500 11px var(--mono); letter-spacing: 1.2px; color: var(--fg-70); }
.state-pill i { width: 7px; height: 7px; border-radius: 50%; background: #64e0c2; box-shadow: 0 0 10px rgba(100, 224, 194, .6); }
.state-pill.bad i { background: #ff8a8a; box-shadow: none; }
.state-pill.warn i { background: #f2c58a; box-shadow: none; }
.copyable { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.copyable:hover { color: #fff; }
.copyable svg { width: 12px; height: 12px; opacity: .5; }

/* ---------- track / status / help ---------- */
.track-f { display: flex; gap: 10px; }
.track-f input { flex: 1; height: 52px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 0; outline: 0; color: #fff; padding: 0 16px; font: 400 15px var(--mono); }
.track-f input:focus { box-shadow: inset 0 0 0 1px rgba(20, 200, 160, .45); }
.track-f .cta { width: auto; padding: 0 22px; }
.big-state { display: flex; align-items: center; gap: 18px; }
.big-state .dot { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(20, 200, 160, .1); }
.big-state .dot i { width: 14px; height: 14px; border-radius: 50%; background: #64e0c2; box-shadow: 0 0 16px rgba(100, 224, 194, .7); animation: pulse 2s ease-in-out infinite; }
.big-state.bad .dot { background: rgba(242, 197, 138, .1); }
.big-state.bad .dot i { background: #f2c58a; box-shadow: 0 0 16px rgba(242, 197, 138, .6); }
.big-state b { font-size: 26px; font-weight: 500; letter-spacing: -1px; }
.big-state p { margin-top: 4px; font-size: 14px; color: var(--fg-50); }
.legs-s { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.legs-s > div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); }
.legs-s i { width: 8px; height: 8px; border-radius: 50%; background: #64e0c2; flex: none; }
.legs-s i.bad { background: #ff8a8a; }
.legs-s .t { flex: 1; }
.legs-s .t b { font-size: 15px; font-weight: 500; }
.legs-s .t small { display: block; margin-top: 2px; font-size: 12px; color: var(--fg-38); }
.legs-s em { font: 400 12px var(--mono); color: var(--fg-50); font-style: normal; text-align: right; }
.form-c label { display: block; }
.form-c label + label { margin-top: 12px; }
.form-c span.k { display: block; margin-bottom: 6px; }
.form-c input, .form-c select, .form-c textarea { width: 100%; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 0; outline: 0; color: #fff; padding: 13px 14px; font: 400 14px var(--sans); }
.form-c textarea { min-height: 120px; resize: vertical; line-height: 21px; }
.form-c select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23fff' stroke-opacity='.5' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
.form-c option { background: #111; }
.form-c input:focus, .form-c select:focus, .form-c textarea:focus { box-shadow: inset 0 0 0 1px rgba(20, 200, 160, .45); }
.hp { position: absolute; left: -9999px; }

/* ---------- app on tablets and phones ---------- */
@media (max-width: 1000px) {
  .swap-grid { flex-direction: column; align-items: stretch; max-width: 560px; margin: 0 auto; }
  .form, .side { width: auto; }
  .recent-c { width: auto; max-width: 560px; }
  .order-grid { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 809px) {
  .page { padding: 104px 14px 80px; }
  .page-head { margin-bottom: 30px; }
  .panel-c { padding: 16px; }
  .amt-row input, .amt-row .out { font-size: 28px; }
  .side .recv .n { font-size: 26px; }
  .legs-c .lg .tx small { white-space: normal; }
  .modal { align-items: flex-end; padding: 0; }
  .sheet { width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; }
  .track-f { flex-direction: column; }
  .track-f .cta { width: 100%; }
  .big-state b { font-size: 22px; }
  .legs-s > div { flex-wrap: wrap; }
  .legs-s em { width: 100%; text-align: left; padding-left: 22px; }
  .kv div { font-size: 12px; }
}
