/* ============================================
   Trader Rebahan — global styles
   ============================================ */
:root {
  --bg: #080808;
  --surface: #0d0d0d;
  --surface-2: #141414;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --gold: #fcd34d;
  --gold-strong: #f59e0b;
  --text: #fafafa;
  --muted: rgba(255,255,255,.55);
  --muted-2: rgba(255,255,255,.42);
}

html, body { background: var(--bg); color: var(--text); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
body { font-feature-settings: "ss01","cv11"; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }

/* gradient blobs */
.bg-blobs::before, .bg-blobs::after {
  content: ''; position: fixed; pointer-events: none; border-radius: 9999px; filter: blur(80px); z-index: 0;
}
.bg-blobs::before { width: 480px; height: 480px; left: -10%; top: -10%; background: rgba(245,158,11,.18); }
.bg-blobs::after  { width: 420px; height: 420px; right: -8%; top: 18%; background: rgba(253,224,138,.10); }

/* card primitives */
.card { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 26px; }
.card-soft { background: rgba(255,255,255,.035); border: 1px solid var(--border); border-radius: 20px; }
.input {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--text); border-radius: 14px; padding: 12px 16px; width: 100%;
  outline: none; transition: border .15s, background .15s;
}
.input:focus { border-color: rgba(252,211,77,.55); background: rgba(255,255,255,.06); }
.input::placeholder { color: rgba(255,255,255,.35); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; transition: all .15s; }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: #fde68a; }
.btn-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: 4px 12px; font-size: 11px; border-radius: 9999px; border: 1px solid var(--border); background: rgba(255,255,255,.05); color: rgba(255,255,255,.7); letter-spacing: .02em; }
.pill-gold { border-color: rgba(252,211,77,.25); background: rgba(252,211,77,.10); color: #fcd34d; }
.pill-green { border-color: rgba(52,211,153,.25); background: rgba(52,211,153,.08); color: #6ee7b7; }
.pill-red { border-color: rgba(248,113,113,.25); background: rgba(248,113,113,.08); color: #fca5a5; }
.pill-blue { border-color: rgba(96,165,250,.25); background: rgba(96,165,250,.08); color: #93c5fd; }

.text-muted { color: var(--muted); }
.text-muted-2 { color: var(--muted-2); }

/* table */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 12px 14px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.tbl td { padding: 14px; border-bottom: 1px solid var(--border); color: rgba(255,255,255,.85); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(255,255,255,.025); }

/* sidebar item */
.side-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: rgba(255,255,255,.65); font-size: 14px; transition: all .15s; }
.side-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.side-item.active { background: var(--gold); color: #000; font-weight: 600; }

/* number ticker */
.stat { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 20px; padding: 16px; }
.stat-label { color: rgba(255,255,255,.45); font-size: 12px; }
.stat-value { font-size: 26px; font-weight: 600; margin-top: 6px; font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }

/* flash */
.flash { position: fixed; right: 16px; top: 16px; z-index: 60; max-width: 380px; }
.flash-card { border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(8px); border: 1px solid var(--border); margin-bottom: 10px; font-size: 14px; animation: slideIn .25s ease; }
.flash-success { background: rgba(52,211,153,.15); border-color: rgba(52,211,153,.3); color: #a7f3d0; }
.flash-error { background: rgba(248,113,113,.15); border-color: rgba(248,113,113,.3); color: #fecaca; }
.flash-info { background: rgba(96,165,250,.15); border-color: rgba(96,165,250,.3); color: #bfdbfe; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* hero chart */
.line-glow { filter: drop-shadow(0 0 8px rgba(252,211,77,.35)); }

/* nice select */
select.input { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* code/mono */
code, .mono { font-family: 'JetBrains Mono', monospace; }

/* scroll bar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0d0d0d; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }
