/* ───────────────────────────────────────────────────────────────────
   Yarvix Ecosistema · Tokens compartidos
   ─────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0A0712;
  --bg-2: #10091F;
  --surface: #140C26;
  --surface-2: #1B1233;
  --surface-3: #221842;
  --line: rgba(255,255,255,.06);
  --line-strong: rgba(255,255,255,.12);
  --text: #E8E6F1;
  --text-2: rgba(232,230,241,.62);
  --text-3: rgba(232,230,241,.4);
  --text-4: rgba(232,230,241,.22);

  --purple: #7C3AED;
  --purple-l: #A855F7;
  --purple-d: #5B21B6;
  --cyan: #06B6D4;
  --cyan-l: #22D3EE;
  --gold: #F59E0B;
  --green: #22C55E;
  --red: #EF4444;
  --orange: #F97316;
  --pink: #EC4899;

  --grad-aurora: linear-gradient(135deg,#7C3AED,#06B6D4);
  --grad-sun: linear-gradient(135deg,#F59E0B,#EC4899);
  --grad-forest: linear-gradient(135deg,#22C55E,#06B6D4);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html, body { background: var(--bg); color: var(--text); font-family:'Inter','Nunito',sans-serif; font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased; }
button { font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input, select, textarea { font-family:inherit; color:inherit; }

.mono { font-family:'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.orb { font-family:'Orbitron', sans-serif; letter-spacing:.5px; }

/* ── Panel container (un artboard del canvas) ───────────────────── */
.panel {
  width: 100%; height: 100%;
  background: var(--bg);
  overflow: hidden auto;
  display: flex; flex-direction: column;
  color: var(--text);
}
.panel-body {
  flex:1;
  padding: 24px 28px 32px;
  overflow: auto;
}

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.card-tight { padding: 14px 16px; }
.card-soft  { background: rgba(255,255,255,.02); }

.card-title {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--text-3); text-transform: uppercase;
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 14px;
}

.kpi-num {
  font-family:'Orbitron',sans-serif; font-weight: 900;
  font-size: 28px; line-height: 1;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn { display:inline-flex; align-items:center; gap:6px;
  padding:8px 14px; border-radius:8px; font-size:13px; font-weight:600;
  transition:.12s; cursor:pointer; white-space:nowrap;
}
.btn-primary { background:var(--purple); color:#fff; border:1px solid var(--purple); }
.btn-primary:hover { background:var(--purple-l); }
.btn-soft { background:rgba(255,255,255,.05); color:var(--text-2); border:1px solid var(--line); }
.btn-soft:hover { background:rgba(255,255,255,.09); color:var(--text); }
.btn-ghost { background:transparent; color:var(--text-3); }
.btn-ghost:hover { color:var(--text); background:rgba(255,255,255,.04); }
.btn-sm { padding:5px 10px; font-size:12px; }

/* ── Pills & chips ──────────────────────────────────────────────── */
.chip {
  display:inline-flex; align-items:center; gap:6px;
  padding: 5px 12px; border-radius: 30px;
  background: rgba(255,255,255,.04); border:1px solid var(--line);
  font-size:12px; color: var(--text-2); font-weight: 600;
  cursor: pointer; transition:.12s;
}
.chip:hover { background: rgba(255,255,255,.08); color: var(--text); }
.chip.active { background: rgba(124,58,237,.18); border-color: rgba(124,58,237,.4); color:#C4B5FD; }
.chip .dot { width:6px; height:6px; border-radius:50%; background: currentColor; }

/* ── Scrollbar ──────────────────────────────────────────────────── */
.panel ::-webkit-scrollbar { width: 8px; height: 8px; }
.panel ::-webkit-scrollbar-track { background: transparent; }
.panel ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 8px; }
.panel ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.16); }

/* ── Tabs ───────────────────────────────────────────────────────── */
.tabs { display:flex; gap:2px; border-bottom:1px solid var(--line); margin-bottom: 18px; }
.tab {
  padding: 9px 16px; font-size:13px; font-weight:600;
  color: var(--text-3); border-bottom: 2px solid transparent;
  cursor:pointer; transition:.12s;
  display:inline-flex; align-items:center; gap:8px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--purple-l); }
.tab-count { font-size:10px; padding:2px 7px; border-radius:10px; background:rgba(255,255,255,.06); color:var(--text-2); font-weight:700; }
.tab.active .tab-count { background: rgba(124,58,237,.22); color:#C4B5FD; }

/* ── Tables ─────────────────────────────────────────────────────── */
.tbl { width:100%; border-collapse: separate; border-spacing: 0; font-size:13px; }
.tbl th { background: rgba(255,255,255,.025); padding: 10px 14px; text-align:left;
  font-size:10.5px; font-weight:800; letter-spacing:1.2px; color: var(--text-3);
  text-transform: uppercase; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: rgba(124,58,237,.05); }

/* ── Forms ──────────────────────────────────────────────────────── */
.input, .select {
  width:100%; background: rgba(255,255,255,.04); border:1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; font-size:13px; color: var(--text);
  outline:none; transition:.15s;
}
.input:focus, .select:focus { border-color: rgba(124,58,237,.6); background: rgba(255,255,255,.06); }

/* ── Status dots ────────────────────────────────────────────────── */
.status-dot { width:8px; height:8px; border-radius:50%; display:inline-block; }
.s-green { background:#22C55E; box-shadow:0 0 8px rgba(34,197,94,.6); }
.s-gold  { background:#F59E0B; }
.s-red   { background:#EF4444; }
.s-cyan  { background:#06B6D4; }
.s-purp  { background:#A855F7; }

@keyframes fadeIn { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse { 0%,100%{opacity:.9} 50%{opacity:.5} }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }

.streak-flame {
  background: linear-gradient(135deg,#F97316,#EC4899);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight:900;
}
