/*|----------------------------------------------------------------------------*/
/*  Iggy Aditya — AI-driven markets & execution intelligence                  */
/*  Shared layout chrome                                                       */
/*|----------------------------------------------------------------------------*/

:root {
  --bg: #080b10;
  --bg-soft: #0d1219;
  --panel: #111822;
  --panel-2: #151d29;
  --line: #232e3d;
  --line-soft: #1a2431;
  --ink: #eef3f8;
  --muted: #8e9bad;
  --dim: #5f6c7d;
  --accent: #62b6ff;
  --accent-strong: #3d8ee8;
  --gold: #d8b46a;
  --up: #ff5f6d;
  --down: #18b985;
  --neutral: #d8b46a;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% -10%, rgba(61,142,232,.13), transparent 42%),
    radial-gradient(circle at 0% 25%, rgba(216,180,106,.06), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.page { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8,11,16,.84);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(145deg, #2b73c9, #64c1ff);
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: #fff;
  box-shadow: 0 4px 18px rgba(61,142,232,.26);
}
.brand-name { font-weight: 700; letter-spacing: -.01em; }
.brand-sub { font-size: 10px; color: var(--dim); letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--muted); padding: 8px 13px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: .18s ease;
}
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.045); }
.nav a.active { color: var(--accent); background: rgba(98,182,255,.10); }
.top-status { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--dim); font-family: var(--mono); border-left: 1px solid var(--line); padding-left: 18px; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 4px rgba(24,185,133,.1); }
.pulse[data-state="snapshot"] { background: var(--neutral); box-shadow: 0 0 0 4px rgba(216,180,106,.1); }

main { flex: 1; width: min(1580px, 100%); margin: 0 auto; padding: 26px 34px 44px; }
.footer {
  border-top: 1px solid var(--line-soft); padding: 18px 34px;
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 10.5px; color: var(--dim); line-height: 1.6;
}
.footer strong { color: var(--muted); font-weight: 600; }

.eyebrow { color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -.035em; margin: 8px 0 10px; font-weight: 720; }
h2 { font-size: 17px; letter-spacing: -.015em; margin: 0; font-weight: 680; }
h3 { font-size: 12.5px; letter-spacing: .01em; margin: 0; font-weight: 680; }
p { margin: 0; }
.lede { color: var(--muted); max-width: 820px; line-height: 1.65; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.neutral { color: var(--neutral); }
.tiny { font-size: 10px; }
.small { font-size: 11.5px; }

.card {
  background: linear-gradient(180deg, rgba(21,29,41,.94), rgba(15,21,29,.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-head {
  min-height: 50px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.card-body { padding: 16px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 100px; border: 1px solid var(--line);
  font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.tag.blue { color: var(--accent); border-color: rgba(98,182,255,.3); background: rgba(98,182,255,.07); }
.tag.gold { color: var(--gold); border-color: rgba(216,180,106,.3); background: rgba(216,180,106,.07); }
.tag.green { color: var(--down); border-color: rgba(24,185,133,.3); background: rgba(24,185,133,.07); }

.grid { display: grid; gap: 14px; }
.statusbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  padding: 9px 14px; border: 1px solid var(--line-soft); border-radius: 9px;
  background: rgba(13,18,25,.7); font-size: 10.5px; color: var(--muted);
  font-family: var(--mono); margin-top: 14px;
}
.statusbar .sep { color: var(--line); }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: right; }
th:first-child, td:first-child { text-align: left; }
th {
  color: var(--dim); font-size: 9.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 8px 9px; border-bottom: 1px solid var(--line);
  white-space: nowrap; position: sticky; top: 50px;
  background: #101720; z-index: 2;
}
td { padding: 7px 9px; border-bottom: 1px solid var(--line-soft); font-size: 11.5px; white-space: nowrap; }
tbody tr:hover td { background: rgba(98,182,255,.035); }
.spark { width: 104px; height: 24px; display: block; }
.badge {
  display: inline-block; min-width: 48px; text-align: center;
  padding: 2px 7px; border-radius: 5px; font-size: 9.5px; font-weight: 750;
  letter-spacing: .04em; text-transform: uppercase;
}
.badge.long { color: var(--up); background: rgba(255,95,109,.13); }
.badge.short { color: var(--down); background: rgba(24,185,133,.13); }
.badge.neutral { color: var(--neutral); background: rgba(216,180,106,.13); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.source { font-size: 10px; color: var(--dim); line-height: 1.6; }

@media (max-width: 1120px) {
  .topbar { padding: 0 20px; gap: 12px; }
  main { padding: 22px 20px 40px; }
  .nav a { padding: 7px 8px; font-size: 11.5px; }
  .top-status { display: none; }
}
@media (max-width: 760px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 12px 16px; }
  .nav { width: 100%; margin-left: 0; overflow-x: auto; }
  main { padding: 18px 14px 34px; }
  .section-head { display: block; }
  .footer { padding: 16px 14px; flex-direction: column; }
}
