@font-face {
  font-family: Geist;
  src: url("/caa3a2e1cccd8315-s.p.0zr6hhvz-h9nw.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("/797e433ab948586e-s.p.1v5bejj26fx9h.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #07080a;
  --side: #0b0c0e;
  --panel: #101214;
  --line: #ffffff12;
  --text: #ececec;
  --muted: #8b8f96;
  --green: #3dd68c;
  --red: #f35b5b;
  --accent: #fff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--text); font-family: Geist, Inter, ui-sans-serif, system-ui, sans-serif; }
button, input, select { font: inherit; color: inherit; }
.app { display: grid; grid-template-columns: 228px 1fr; height: 100dvh; overflow: hidden; }
.sidebar { background: var(--side); border-right: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: #fff; padding: 6px 8px 14px; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.brand strong { display: block; font-size: 15px; letter-spacing: -0.03em; font-weight: 500; }
.brand small { color: var(--muted); font-size: 11px; }
.collapse { width: 100%; background: #ffffff0a; border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 8px 10px; text-align: left; font-size: 12px; cursor: pointer; margin-bottom: 16px; }
.nav-sec { color: #ffffff44; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; margin: 12px 8px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; border: 0; color: #c9cdd2; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 13.5px; text-align: left; }
.nav-item svg { width: 16px; height: 16px; opacity: 0.75; }
.nav-item.active, .nav-item:hover { background: #ffffff12; color: #fff; }
.main { display: grid; grid-template-rows: 56px 1fr; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.chip { background: #ffffff0d; border: 1px solid var(--line); color: #ddd; border-radius: 10px; padding: 7px 10px; font-size: 12px; cursor: pointer; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: #ffffff0a; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; height: 36px; color: var(--muted); font-size: 13px; }
.search input { flex: 1; background: transparent; border: 0; outline: none; color: #fff; }
.kbd { border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 11px; }
.spacer { flex: 0 0 auto; margin-left: auto; display: flex; gap: 8px; align-items: center; }
.connect { background: #fff; color: #000; border: 0; border-radius: 999px; height: 34px; padding: 0 14px; font-size: 13px; font-weight: 500; cursor: pointer; }
.connect.connected { background: #ffffff14; color: #fff; border: 1px solid var(--line); }
.acct { position: relative; }
.acct-menu { display: none; position: absolute; right: 0; top: 40px; background: #16181d; border: 1px solid var(--line); border-radius: 12px; min-width: 180px; padding: 6px; z-index: 20; }
.acct-menu.on { display: grid; }
.acct-menu button { background: transparent; border: 0; color: #ddd; text-align: left; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.acct-menu button:hover { background: #ffffff12; }
.flash { animation: flashpx .45s ease; }
@keyframes flashpx { from { color: #fff; } to { color: inherit; } }
.wallet-hint { color: #888; font-size: 12px; text-align: center; margin: -6px 0 12px; }
.wallet-empty { color: #999; font-size: 13px; text-align: center; padding: 8px 4px 14px; line-height: 1.5; }
.wallet-empty a { color: #c9d4dc; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.45fr) 320px 340px; gap: 6px; padding: 6px; min-height: 0; }
.panel { background: #0c0e11; border: 1px solid var(--line); border-radius: 10px; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.ph { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); color: #9aa0a6; font-size: 11px; letter-spacing: 0.08em; }
.ph b { color: #d0d4d8; font-weight: 500; letter-spacing: 0.08em; }
.badge { font-size: 10px; letter-spacing: 0.08em; border: 1px solid #ffffff22; border-radius: 6px; padding: 2px 6px; color: #c5c9ce; }
.ph .grow { flex: 1; }
.icon-btn { background: transparent; border: 0; color: #888; cursor: pointer; padding: 2px 4px; }
.ticker { display: flex; align-items: center; gap: 16px; padding: 10px 12px 6px; }
.btc { width: 28px; height: 28px; border-radius: 50%; background: #f7931a; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; }
.pair { font-size: 15px; font-weight: 500; }
.meta { display: flex; gap: 16px; color: var(--muted); font-size: 12px; }
.meta strong { color: #fff; font-weight: 500; display: block; font-size: 13px; }
.up { color: var(--green); }
.down { color: var(--red); }
.tf { display: flex; gap: 2px; padding: 0 10px 8px; align-items: center; }
.tf button { background: transparent; border: 0; color: #888; padding: 4px 8px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.tf button.on { background: #ffffff14; color: #fff; }
.live { margin-left: auto; color: #7d848c; font-size: 11px; }
.chart-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto 1fr; }
.chart-tools { grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 2px; padding: 6px 4px; border-right: 1px solid var(--line); }
.chart-tools button { width: 26px; height: 26px; background: transparent; border: 0; color: #7a7f86; border-radius: 6px; cursor: pointer; font-size: 12px; }
.chart-tools button:hover { background: #ffffff10; color: #ddd; }
.ohlc { color: #8b9098; font-size: 11px; padding: 4px 10px 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.chart-wrap { position: relative; min-height: 0; }
#tvchart { position: absolute; inset: 0; }
.submit-row { display: flex; gap: 8px; margin: 0 10px 12px; }
.submit-row .submit { flex: 1; margin: 0; }
.submit-row .lift { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #ffffff0d; color: #ccc; cursor: pointer; }
.ask .intel { display: flex; align-items: center; gap: 4px; color: #9aa0a6; font-size: 11px; white-space: nowrap; border: 1px solid var(--line); border-radius: 8px; padding: 3px 7px; }
.trade-head { display: flex; align-items: center; gap: 8px; padding: 10px; }
.pair-dd { flex: 1; background: #ffffff0a; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 10px 10px; }
.seg button { background: #ffffff0d; border: 1px solid transparent; color: #bbb; border-radius: 10px; height: 34px; cursor: pointer; }
.seg button.on { background: #fff; color: #000; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 0 10px 10px; }
.field label { display: block; color: #7d848c; font-size: 10px; letter-spacing: 0.08em; margin-bottom: 4px; }
.field select, .field input { width: 100%; background: #ffffff0a; border: 1px solid var(--line); border-radius: 8px; height: 32px; padding: 0 8px; outline: none; }
.ls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 10px 10px; }
.ls .long, .ls .short { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 64px; border-radius: 14px; font-weight: 500; cursor: pointer; font-size: 14px; }
.ls .long { background: #fff; color: #000; border: 0; }
.ls .short { background: #ffffff10; color: #fff; border: 1px solid var(--line); }
.ls .short.on { background: #dc2626; border-color: transparent; }
.ls .long.off { background: #ffffff10; color: #fff; border: 1px solid var(--line); }
.stats { padding: 0 12px 8px; font-size: 12px; color: var(--muted); display: grid; gap: 6px; }
.stats span { float: right; color: #fff; }
.size-box { margin: 6px 10px; background: #ffffff0a; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; padding: 8px 10px; gap: 8px; }
.size-box input { flex: 1; background: transparent; border: 0; outline: none; }
.slider { padding: 4px 12px 8px; }
.slider input { width: 100%; accent-color: #3dd68c; }
.pct { display: flex; justify-content: space-between; padding: 0 12px 10px; color: #666; font-size: 11px; }
.pos-link { color: #8b9098; font-size: 12px; padding: 0 12px 8px; cursor: pointer; }
.submit { margin: 0 10px 12px; background: #fff; color: #000; border: 0; border-radius: 12px; height: 42px; font-weight: 500; cursor: pointer; }
.back-abs { background: #ffffff10; border: 0; color: #ccc; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; }
.wallet-hero { text-align: center; padding: 8px 0 16px; }
.wallet-hero-ico { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; background: #ffffff12; display: grid; place-items: center; color: #bbb; font-size: 18px; }
.agent { padding: 28px 16px 10px; text-align: center; }
.agent h3 { font-weight: 500; letter-spacing: -0.02em; }
.agent p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.prompts { padding: 8px 12px; display: grid; gap: 8px; }
.prompts button { text-align: left; background: #ffffff0c; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: #ddd; cursor: pointer; font-size: 12.5px; }
.agent-note { margin: 8px 12px; background: #ffffff0a; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 12px; color: #bbb; display: flex; gap: 8px; align-items: center; }
.chips { display: flex; gap: 6px; padding: 0 12px 8px; }
.chips span { background: #ffffff10; border-radius: 8px; padding: 4px 8px; font-size: 11px; color: #ccc; }
.ask { margin: 8px 12px; display: flex; gap: 8px; align-items: center; background: #ffffff0c; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.ask input { flex: 1; background: transparent; border: 0; outline: none; font-size: 12.5px; }
.send { width: 28px; height: 28px; border-radius: 8px; border: 0; background: #2a2f36; color: #fff; cursor: pointer; }
.disclaimer { color: #666; font-size: 11px; text-align: center; padding: 4px 12px 10px; }
.log { flex: 1; overflow: auto; padding: 8px 12px; font-size: 13px; color: #cfd3d7; display: grid; gap: 8px; }
.log .me { background: #ffffff10; border-radius: 10px; padding: 8px 10px; }
.log .bot { background: #ffffff08; border-radius: 10px; padding: 8px 10px; color: #aaa; }
.page-view { display: none; padding: 28px; }
.page-view.on { display: block; }
.page-view h2 { font-weight: 400; letter-spacing: -0.03em; margin-bottom: 8px; }
.page-view p { color: var(--muted); max-width: 520px; line-height: 1.6; }
.overlay { position: fixed; inset: 0; background: #00000099; display: none; place-items: center; z-index: 50; backdrop-filter: blur(2px); }
.overlay.on { display: grid; }
.modal { width: min(392px, calc(100% - 32px)); background: #0e1318; border: 1px solid #ffffff14; border-radius: 22px; padding: 18px 18px 16px; box-shadow: 0 24px 80px #000000a3; position: relative; }
.modal h2 { text-align: center; font-size: 18px; font-weight: 600; margin: 8px 0 16px; letter-spacing: -0.02em; }
.modal .x { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; background: transparent; border: 0; color: #9aa0a6; cursor: pointer; font-size: 16px; }
.modal .x:hover { background: #ffffff12; }
.auth-btn { width: 100%; display: flex; align-items: center; gap: 12px; background: transparent; border: 1px solid #ffffff22; border-radius: 14px; height: 48px; padding: 0 14px; margin-bottom: 10px; cursor: pointer; font-size: 14px; }
.auth-btn:hover { background: #ffffff0a; }
.auth-btn img, .auth-ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.privy { text-align: center; color: #7a8088; font-size: 12px; margin-top: 14px; }
.wallets, .denied, .verifying { display: none; }
.wallets.on, .denied.on, .verifying.on { display: block; }
.verifying { text-align: center; padding: 28px 8px 12px; }
.verifying h2 { margin: 18px 0 8px; }
.verifying p { color: #9aa0a6; font-size: 14px; }
.spinner {
  width: 46px;
  height: 46px;
  margin: 8px auto 0;
  border-radius: 50%;
  border: 3px solid #ffffff18;
  border-top-color: #fff;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.wallet-search { display: flex; align-items: center; gap: 8px; border: 1px solid #ffffff22; border-radius: 14px; height: 42px; padding: 0 12px; margin-bottom: 10px; color: #8b9098; }
.wallet-search input { flex: 1; background: 0 0; border: 0; outline: none; color: #fff; font-size: 13px; }
.wallet-row { position: relative; }
.wallet-row .dot { width: 8px; height: 8px; background: #3dd68c; border-radius: 50%; position: absolute; left: 28px; top: 11px; box-shadow: 0 0 0 2px #0e1318; z-index: 2; pointer-events: none; }
.denied { text-align: center; padding: 18px 8px 8px; }
.denied-ico { width: 56px; height: 56px; margin: 8px auto 16px; border-radius: 50%; background: #3a1518; color: #f07171; display: grid; place-items: center; font-size: 22px; }
.denied h2 { margin-bottom: 8px; }
.denied p { color: #9aa0a6; font-size: 14px; margin-bottom: 18px; }
.denied-btn { width: 100%; height: 46px; border-radius: 14px; border: 1px solid #f0717188; background: transparent; color: #f07171; cursor: pointer; font-size: 14px; }
.denied-btn:hover { background: #f0717114; }
.back-abs { position: absolute; top: 14px; left: 14px; }
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
