/* =========================================================================
   NEXUSORA — Unified Obsidian, Emerald/Gold Aurora & Frosted Glass System
   Pure Neutral Carbon (#09090B), Translucent Frosted Cards (#141414/72),
   Warm Sovereign Gold (#F2B735), Crisp Inter + JetBrains Mono
   ========================================================================= */
:root {
  --bg: #09090b;
  --bg-elev: #0f0f11;
  --card: rgba(20, 20, 20, 0.74);
  --card-solid: #131315;
  --card-head: rgba(26, 26, 28, 0.65);
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #fafafa;
  --text-2: #a1a1aa;
  --muted: #71717a;
  --brand: #f2b735;
  --brand-hover: #f7c44f;
  --brand-fg: #09090b;
  --brand-soft: rgba(242, 183, 53, 0.12);
  --brand-border: rgba(242, 183, 53, 0.34);
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.12);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.12);
  --radius: 16px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 52% 38% at 14% 0%, rgba(16, 185, 129, 0.12), transparent 68%),
    radial-gradient(ellipse 50% 38% at 84% 0%, rgba(242, 183, 53, 0.13), transparent 68%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 14px; } }

/* Top Slim Session Bar */
.session-bar {
  background: rgba(9, 9, 11, 0.85);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}
.session-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 7px 0; flex-wrap: wrap;
}
.sess-list { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sess-pill { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.sess-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.sess-pill.live { color: var(--text); }
.sess-pill.live .dot { background: var(--green); box-shadow: 0 0 8px rgba(16,185,129,0.7); }

/* Frosted Floating Navbar */
header.nx-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nx-nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 16px;
}
.nx-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.nx-badge {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand); color: var(--brand-fg);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; letter-spacing: -0.02em;
  box-shadow: 0 2px 14px rgba(242, 183, 53, 0.25);
}
.nx-wordmark {
  font-weight: 600; font-size: 16px; letter-spacing: -0.025em; color: var(--text);
}
.nx-links {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.nx-links a {
  color: var(--text-2); text-decoration: none;
  font-size: 12.5px; font-weight: 500;
  padding: 5px 13px; border-radius: 999px;
  transition: all 0.15s ease;
}
.nx-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nx-links a.active { color: var(--text); background: rgba(255,255,255,0.09); font-weight: 600; }
@media (max-width: 960px) { .nx-links { display: none; } }

.nx-actions { display: flex; align-items: center; gap: 8px; }

/* Buttons — Exact Tradfye Tactile Precision */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 9px;
  font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-brand {
  background: var(--brand); color: var(--brand-fg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn-brand:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255,255,255,0.22); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 11px; border-radius: 6px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 13.5px; border-radius: 10px; }

/* Ticker Strip */
.ticker-strip {
  background: rgba(14, 14, 16, 0.72);
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}

/* Frosted Cards */
.card {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.card-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--card-head);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.card-title {
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.card-body { padding: 20px; }

/* Inputs & Selects — Crisp Translucent Hairline */
.nx-input, .nx-select {
  width: 100%; height: 40px; padding: 0 12px;
  background: rgba(9, 9, 11, 0.72); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nx-input:focus, .nx-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(242, 183, 53, 0.12);
}

/* Filter Pills */
.pill-group { display: flex; gap: 5px; flex-wrap: wrap; }
.pill {
  background: rgba(255, 255, 255, 0.03); color: var(--text-2);
  border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 7px;
  font-size: 11.5px; font-weight: 500; cursor: pointer;
  transition: all 0.14s;
}
.pill:hover { color: var(--text); border-color: var(--border-strong); }
.pill.active {
  background: var(--brand-soft); color: var(--brand);
  border-color: var(--brand-border); font-weight: 600;
}

/* Badges */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em;
}
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-gold { background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-border); }
.tag-muted { background: rgba(255,255,255,0.05); color: var(--text-2); border: 1px solid var(--border); }

.up { color: var(--green); }
.down { color: var(--red); }
.gold { color: var(--brand); }

/* Clean Tables */
.table-wrap { overflow-x: auto; }
table.nx-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.nx-table th, table.nx-table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.nx-table th {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); background: rgba(255,255,255,0.015);
}
table.nx-table tbody tr { transition: background 0.14s; }
table.nx-table tbody tr:hover { background: rgba(255,255,255,0.025); }
table.nx-table tbody tr:last-child td { border-bottom: none; }

/* Footer */
footer.nx-footer {
  border-top: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.88);
  padding: 32px 0 42px;
  margin-top: 40px;
  font-size: 12.5px;
  color: var(--muted);
}
.nx-footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; flex-wrap: wrap;
}
.nx-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nx-footer-links a { color: var(--text-2); text-decoration: none; font-weight: 500; }
.nx-footer-links a:hover { color: var(--text); }
