/* GOATED theme — matches goated.solutions (degen mode) / recruiting.goated.solutions.
   Inter 400–900 (headings 900, tight tracking), JetBrains Mono for data chips, pure black with a
   warm red/orange top glow, glassy cards (black 40% + 1px hairline, 16px radius), orange→red
   gradient for primary chrome. Green/red stay reserved for P&L and buy/sell. Loaded after app.css. */
:root {
  --brand: #f97316; --brand2: #ef4444; --brand-rgb: 249 115 22;
  --grad: linear-gradient(90deg, #f97316 0%, #ef4444 100%);
  --display: "Inter", system-ui, -apple-system, sans-serif;
  --textf: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --text: #f8fafc; --sec: #94a3b8; --ter: #64748b;
  --sep: rgba(255,255,255,0.06);
  --card: rgba(255,255,255,0.035); --card2: rgba(255,255,255,0.07);
  --hair: 1px solid rgba(255,255,255,0.07);
  --blue: #fb923c; /* links/focus use the brand orange like the site */
}
html, body { background: #000; color: var(--text); }
body::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 0%, rgba(220,38,38,0.22) 0%, rgba(249,115,22,0.08) 45%, rgba(0,0,0,0) 75%); }
#app { position: relative; z-index: 0; }

/* type */
.balance, .price-big { font-weight: 900; letter-spacing: -2px; }
.big-title, .verdict-big, .acard .big { font-weight: 900; letter-spacing: -0.6px; }
.navbar .title, .brand { font-weight: 700; letter-spacing: -0.2px; }
.group-title { text-transform: uppercase; letter-spacing: 0.28em; font-size: 11px; font-weight: 600; color: #f87171; }
.pill, .src, .cmd, .dec .vd { font-family: var(--mono); }

/* header: GOATED wordmark vibe */
.brand { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .chev { -webkit-text-fill-color: var(--sec); }
.avatar { background: var(--grad); color: #000; font-weight: 900; }
.navbar { background: rgba(0,0,0,0.6); border-bottom: 1px solid rgba(255,255,255,0.04); }

/* cards: glass + hairline */
.list, .fcard, .pcard, .ctl-card, .acard, .preset, .stats { background: rgba(0,0,0,0.4); border: var(--hair); border-radius: 16px; }
.stats { background: var(--sep); }
.sheet { background: #0b0b0c; border: var(--hair); border-bottom: 0; }
.ctl-card { box-shadow: 0 0 0 1px rgba(var(--brand-rgb) / 0.06), 0 10px 40px -20px rgba(239,68,68,0.35); }
.preset.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }

/* buttons: site radii (12px) and gradient primary; P&L/buy-sell colors unchanged */
.cta { border-radius: 12px; font-weight: 700; letter-spacing: -0.1px; }
.cta.neutral { background: var(--grad); color: #000; }
.set-btn { border-radius: 12px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); }
.cash-btn { border-radius: 12px; }
.cta.phantom { background: rgba(0,0,0,0.4); border: 1px solid rgba(171,159,242,0.25); border-radius: 12px; }
.seg { background: rgba(0,0,0,0.4); border: var(--hair); border-radius: 10px; }
.seg button.on, .seg button[aria-pressed=true] { background: var(--grad); color: #000; }
.ranges button.on { background: rgba(var(--brand-rgb) / 0.14); color: var(--brand); }
.switch.on { background: var(--grad); }
.paper { background: var(--grad); color: #000; border-radius: 8px; }
.link-btn { color: var(--brand); }

/* tab bar */
.tabbar { background: rgba(0,0,0,0.72); border-top: 1px solid rgba(255,255,255,0.05); }
.tab.on { color: var(--brand); }
.toast { border-radius: 12px; border: var(--hair); }
:focus-visible { outline-color: var(--brand) !important; }
/* Inter runs wider than SF: keep the paper-stack line on one row at 390px */
.paper-row { font-size: 14px; flex-wrap: nowrap; white-space: nowrap; }
.paper-row .mult, .paper-row .paper { font-size: 12px; height: 22px; padding: 0 8px; }

/* ---------- P&L colors always win over the brand gradient ---------- */
.up, .pv.up, #today.up { color: var(--green) !important; }
.down, .pv.down, #today.down { color: var(--red) !important; }

/* ---------- top banners (iOS-style) ---------- */
.banners { position: fixed; top: calc(var(--sat) + 8px); left: 50%; transform: translateX(-50%); width: calc(min(100vw, var(--colmax)) - 16px);
  z-index: 95; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.banner { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; padding: 12px 14px;
  border-radius: 18px; background: rgba(28,28,30,0.82); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.5); color: var(--text);
  transform: translateY(-24px) scale(0.98); opacity: 0; transition: transform 260ms cubic-bezier(.2,.9,.3,1.2), opacity 220ms; }
.banner.in { transform: none; opacity: 1; }
.banner.out { transform: translateY(-16px); opacity: 0; }
.bn-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; background: var(--grad); color: #000; }
.banner.k-buy .bn-ic, .banner.lvl-good .bn-ic { background: var(--green); }
.banner.k-sell.lvl-bad .bn-ic, .banner.k-reject .bn-ic, .banner.k-error .bn-ic { background: var(--red); }
.banner.k-gate .bn-ic, .banner.k-skip .bn-ic { background: #ff9f0a; }
.bn-tx { min-width: 0; flex: 1; }
.bn-h { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.bn-app { color: var(--sec); font-size: 12px; white-space: nowrap; }
.bn-b { display: block; font-size: 14px; color: #e5e7eb; margin-top: 2px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (prefers-reduced-motion: reduce) { .banner { transition: none; } }

/* ---------- live pipeline ---------- */
.pipe-card { background: rgba(0,0,0,0.4); border: var(--hair); border-radius: 16px; padding: 14px 12px 8px; margin: 10px 0 16px; }
.pipe-top { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 0 4px 12px; }
.pipe-ttl { text-transform: uppercase; letter-spacing: 0.22em; font-weight: 700; font-size: 11px; color: #f87171; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(0,211,90,.6); animation: livep 1.6s infinite; }
@keyframes livep { 70% { box-shadow: 0 0 0 7px rgba(0,211,90,0); } 100% { box-shadow: 0 0 0 0 rgba(0,211,90,0); } }
.pipe { display: flex; align-items: flex-start; }
.node { flex: none; width: 56px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.node .dot { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ac); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--ac) 35%, transparent), rgba(0,0,0,0.6) 70%); }
.node .nl { font-size: 10.5px; font-weight: 600; color: var(--sec); }
.node .nc { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text); }
.node.paused .dot { opacity: .35; border-style: dashed; }
.node.hit .dot { animation: hit 700ms ease-out; }
.node.bad .dot { animation: bad 600ms ease-out; }
@keyframes hit { 0% { box-shadow: 0 0 0 0 var(--ac); transform: scale(1.12); } 100% { box-shadow: 0 0 0 14px transparent; transform: none; } }
@keyframes bad { 0%,100% { transform: none; } 25% { transform: translateX(-3px); border-color: var(--red); } 75% { transform: translateX(3px); border-color: var(--red); } }
.edge { flex: 1; height: 2px; margin-top: 20px; position: relative; background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.18)); border-radius: 1px; }
.edge i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.25) 0 4px, transparent 4px 10px); opacity: .35; animation: flow 1.2s linear infinite; }
@keyframes flow { to { background-position: 10px 0; } }
.pkt { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 10px var(--ac); animation: pkt 800ms cubic-bezier(.4,0,.2,1) forwards; }
@keyframes pkt { from { left: -4px; } to { left: calc(100% - 6px); } }
.feed-h { margin: 14px 4px 6px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sec); font-weight: 600; }
.feed { max-height: 340px; overflow-y: auto; }
.frow { display: flex; gap: 8px; padding: 7px 4px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 13px; line-height: 1.35; animation: fin 300ms ease-out; }
@keyframes fin { from { opacity: 0; transform: translateY(-4px); } }
.frow .ft { flex: none; width: 76px; white-space: nowrap; color: var(--ter); font-family: var(--mono); font-size: 11px; padding-top: 2px; }
.frow .fw { min-width: 0; }
.chip { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--ac); background: color-mix(in srgb, var(--ac) 16%, transparent); margin-right: 4px; }
.arr { color: var(--ter); margin-right: 4px; }
.frow.lvl-bad .fx { color: #fca5a5; } .frow.lvl-good .fx { color: #86efac; } .frow.lvl-warn .fx { color: #fdba74; }
@media (prefers-reduced-motion: reduce) { .edge i, .pkt, .node .dot, .frow, .live-dot { animation: none !important; } }

/* locked controls read as locked, not just dimmed */
.cash-btn:disabled { background: rgba(255,255,255,0.06); color: var(--ter); opacity: 1; border: 1px solid rgba(255,255,255,0.08); cursor: not-allowed; }
.switch[data-locked] { opacity: 0.45; cursor: not-allowed; filter: grayscale(1); }

/* ---------- lock screen (owner-wallet sign-in) ---------- */
html.locked, html.locked body { position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; touch-action: none; }
html.locked #tabbar { display: none; }
.lock { position: fixed; inset: 0; height: 100dvh; overflow: hidden; overscroll-behavior: none; touch-action: none;
  display: flex; align-items: center; justify-content: center; padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom); z-index: 5;
  background: radial-gradient(70% 55% at 50% 38%, rgba(239,68,68,0.30) 0%, rgba(249,115,22,0.14) 40%, rgba(0,0,0,0) 72%), #000; }
.lock-card { width: 100%; max-width: 400px; text-align: center; padding: 34px 24px 26px; border-radius: 22px; touch-action: manipulation;
  background: rgba(10,6,6,0.50); border: 1px solid rgba(255,140,80,0.16);
  -webkit-backdrop-filter: blur(28px) saturate(220%); backdrop-filter: blur(28px) saturate(220%);
  box-shadow: 0 0 0 1px rgba(255,106,0,0.14), 0 0 60px 8px rgba(255,94,20,0.30), 0 0 140px 40px rgba(239,40,40,0.22), 0 40px 120px -20px rgba(255,60,0,0.55); }
.lock .lock-btn:not(.ghost) { background: linear-gradient(90deg, #ff7a00 0%, #ff3d2e 55%, #ff1f4b 100%); box-shadow: 0 10px 34px -8px rgba(255,70,20,0.75); }
.lock .brand { background: linear-gradient(90deg, #ff8a00 0%, #ff3b30 60%, #ff1f4b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: saturate(1.25); }
.lock-logo { display: block; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 18px; object-fit: cover;
  box-shadow: 0 10px 40px -10px rgba(249,115,22,0.7); }
.lock-title .brand { font: inherit; letter-spacing: inherit; }
.lock-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: #f87171; margin-bottom: 8px; }
.lock-title { font: 900 38px/1.05 var(--display); letter-spacing: -1.5px; margin: 0 0 12px; color: var(--text); }
.lock-sub { color: var(--sec); font-size: 15px; line-height: 1.45; margin: 0 0 22px; }
.lock-btn { width: 100%; background: var(--grad); color: #000; font-size: 17px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; }
.lock-btn.ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid rgba(255,255,255,0.1); margin-top: 12px; }
.lock-btn[disabled] { opacity: .6; }
.lock-addr { margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--sec); }
.lock-msg { min-height: 20px; margin-top: 14px; font-size: 14px; color: var(--sec); }
.lock-msg.bad { color: #f87171; }
.lock-deny { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); }
.lock-deny b { color: #f87171; font-size: 16px; }
.lock-deny span { color: var(--sec); font-size: 14px; line-height: 1.4; }
.lock-foot { margin-top: 22px; font-size: 12px; color: var(--ter); line-height: 1.4; }
.lock-full { font-family: var(--mono); font-size: 15px; color: var(--text); margin-top: 6px; }
.lock-fulladdr { font-family: var(--mono); font-size: 11px; color: var(--ter); word-break: break-all; }
