:root {
  color-scheme: dark;
  --background: #100e15;
  --panel: #191520;
  --surface: #211b2a;
  --line: #352c40;
  --text: #f8f4fc;
  --muted: #b8adbf;
  --accent: #e1bcff;
  --jupiter-plugin-primary: 225, 188, 255;
  --jupiter-plugin-background: 25, 21, 32;
  --jupiter-plugin-primaryText: 248, 244, 252;
  --jupiter-plugin-interactive: 46, 37, 56;
  --jupiter-plugin-module: 33, 27, 42;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(ellipse at 22% 42%, #21152d 0, transparent 45%), var(--background); }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { max-width: 1168px; width: calc(100% - 72px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.28rem; font-weight: 770; letter-spacing: -.045em; }
.brand span span { color: var(--accent); }
.brand img { border-radius: 10px; background: #30223f; }
nav { display: flex; gap: 26px; color: var(--muted); font-size: .94rem; }
nav a { padding: 26px 2px; border-bottom: 2px solid transparent; }
nav a[aria-current] { border-color: var(--accent); color: var(--text); }
.app-link, .secondary { border: 1px solid var(--line); padding: 9px 14px; border-radius: 11px; color: var(--text); background: var(--surface); font-size: .9rem; font-weight: 600; }
.app-link:hover, .secondary:hover { border-color: var(--accent); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); align-items: start; gap: clamp(36px, 7vw, 102px); padding-block: 66px 76px; }
.intro { padding-top: 29px; min-width: 0; }
.intro-label { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: .94rem; font-weight: 620; }
.intro-label span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px #d396ff; }
h1, h2, h3, p { margin: 0; }
.intro h1, .view-intro h1 { margin: 18px 0; font-size: clamp(3rem, 6.15vw, 5.5rem); line-height: .99; font-weight: 790; letter-spacing: -.075em; }
.intro em { font: inherit; color: var(--accent); }
.intro-copy, .view-intro p { max-width: 34ch; color: var(--muted); font-size: 1.11rem; }
.orbital { position: relative; height: 240px; max-width: 465px; margin-top: 18px; isolation: isolate; }
.orbit { position: absolute; top: 50%; left: 45%; border: 1px solid #8766a966; width: 90%; height: 62%; border-radius: 50%; transform: translate(-50%, -50%) rotate(-19deg); }
.orbit-inner { width: 72%; height: 44%; border-color: #8766a93e; transform: translate(-50%, -50%) rotate(23deg); }
.orb { position: absolute; display: grid; place-items: center; border-radius: 50%; border: 1px solid #af88d270; background: linear-gradient(145deg, #3e2b53, #1b1525); }
.orb-main { width: 132px; aspect-ratio: 1; top: 50%; left: 45%; transform: translate(-50%, -50%); box-shadow: 0 0 65px #a16bd24d, inset 0 0 20px #aa77d63e; }
.orb-main img { width: 84%; aspect-ratio: 1; object-fit: contain; }
.orb-sol, .orb-algo { width: 45px; aspect-ratio: 1; font-size: 1.65rem; }
.orb-sol { left: 10%; top: 61%; }
.orb-algo { right: 13%; top: 16%; }
.sol-mark { color: #bbfbd5; font-weight: 800; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 23px; box-shadow: 0 16px 45px #07050a45; }
.card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.card-head h2 { font-size: 1.65rem; line-height: 1.15; letter-spacing: -.04em; }
.card-head p { margin-top: 6px; color: var(--muted); font-size: .92rem; }
.network-label { align-self: start; border: 1px solid var(--line); border-radius: 100px; padding: 3px 10px; font-size: .82rem; color: #d7cbe1; }
.chain-switch { display: flex; gap: 5px; padding: 5px; border: 1px solid var(--line); background: #120f18; border-radius: 14px; margin-bottom: 16px; }
.chain-switch button { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 1; border: 1px solid transparent; border-radius: 9px; padding: 7px 3px; color: var(--muted); background: transparent; font-size: .94rem; font-weight: 650; }
.chain-switch button[aria-pressed="true"] { border-color: #584467; background: #332441; color: var(--text); }
.chain-icon { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #191221; line-height: 1; }
.algo-large { font-size: 1.8rem; height: 54px; width: 54px; }
.provider-placeholder { min-height: 278px; display: grid; align-content: center; justify-items: center; gap: 12px; text-align: center; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 22px; }
.provider-placeholder h3 { color: var(--text); font-size: 1.2rem; }
.provider-placeholder p { max-width: 30ch; }
#jupiter-plugin { width: 100%; }
#jupiter-plugin:empty { display: none; }
.route { color: var(--muted); font-size: .87rem; text-align: center; margin-top: 14px; }
.route a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.primary { background: var(--accent); color: #231131; border: 1px solid transparent; padding: 10px 16px; border-radius: 11px; font-weight: 740; }
.primary:hover { background: #eed9ff; }
.primary:disabled { opacity: .58; cursor: wait; }
.wallet-view { max-width: 758px; margin: 54px auto 76px; }
.view-intro { margin-bottom: 27px; }
.view-intro h1 { font-size: clamp(3rem, 6vw, 4.8rem); }
.view-intro p { max-width: none; }
#wallet-form label { display: block; margin-bottom: 6px; font-weight: 620; }
.form-row { display: flex; gap: 8px; }
.form-row input, .form-row select, .market-quote input { min-width: 0; color: var(--text); background: #120f18; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; }
.form-row input { flex: 1; }
.form-row select { max-width: 100%; }
.form-row input::placeholder { color: var(--muted); }
.wallet-status { color: var(--muted); min-height: 1.5em; margin-top: 12px; }
.wallet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.asset-list { list-style: none; padding: 0; margin: 16px 0 0; }
.asset-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line); }
.asset-list a { color: var(--accent); overflow-wrap: anywhere; }
.asset-list a:hover { text-decoration: underline; }
.asset-list .quantity { font-weight: 650; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.receive-address { color: var(--muted); font: .9rem/1.5 ui-monospace, monospace; overflow-wrap: anywhere; }
.wallet-activity { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.wallet-activity summary { cursor: pointer; font-weight: 650; padding-block: 4px; }
.wallet-activity .wallet-status:empty { display: none; }
.transaction-info { text-align: right; }
.transaction-info time { display: block; color: var(--muted); font-size: .87rem; }
.market-quote { display: grid; justify-items: end; gap: 7px; min-width: 0; }
.market-quote input { padding: 7px 9px; width: min(100%, 13rem); }
.footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-block: 20px; color: var(--muted); font-size: .9rem; }
@media (max-width: 820px) {
  .workspace { gap: 30px; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); }
  .shell { width: calc(100% - 36px); }
}
@media (max-width: 680px) {
  .workspace { grid-template-columns: minmax(0, 1fr); max-width: 480px; padding-block: 26px 48px; margin-inline: auto; }
  .intro { padding-top: 0; }
  .intro h1 { margin-block: 11px; }
  .orbital { display: none; }
  .nav { min-height: 62px; gap: 12px; }
  nav { gap: 12px; }
  nav a { padding-block: 18px; }
  .brand { font-size: 1.05rem; gap: 4px; }
  .brand img { width: 30px; height: 30px; }
  .app-link { padding-inline: 8px; white-space: nowrap; }
  .card { padding: 15px; border-radius: 19px; }
  .wallet-view { margin-top: 28px; }
}
@media (max-width: 460px) {
  .form-row { flex-direction: column; }
}

.market-card { grid-column: 1 / -1; }
.market-card .wallet-status:empty, .asset-list:empty { display: none; }
.asset-list small { display: block; color: var(--muted); font-size: .84rem; }
.fallback-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
