:root {
  --accent: #e8ff47; --accent2: #00c2a8;
  --dark: #0e0f13; --surface: #16181f; --surface2: #1e2029;
  --border: #2a2d3a; --muted: #5a5f73; --text: #e4e6f0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; background: var(--dark); color: var(--text); min-height: 100vh; }
h1, h2, h3, .syne { font-family: 'Syne', sans-serif; }
.mono  { font-family: 'DM Mono', monospace; }
.accent  { color: var(--accent); }
.accent2 { color: var(--accent2); }
.muted   { color: var(--muted); }
.sm      { font-size: .8rem; }

/* Nav */
nav {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0 2rem; display: flex; align-items: center; gap: 2rem;
  height: 60px; position: sticky; top: 0; z-index: 50;
}
.logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.25rem;
        letter-spacing: -.5px; color: var(--accent); text-decoration: none; }
.logo span { color: var(--text); }
.nl { color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 500; transition: color .15s; }
.nl:hover, .nl.active { color: var(--text); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.mc   { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.5rem; }
.ml   { font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.mv   { font-family: 'DM Mono', monospace; font-size: 1.5rem; font-weight: 500; }
.ms   { font-size: .75rem; color: var(--muted); margin-top: .2rem; }

/* KPI grids */
.kpi-grid    { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.kpi-grid-lg { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 1rem; }

/* Table */
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th {
  background: var(--surface2); color: var(--muted); font-size: .7rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; padding: .75rem 1rem;
  text-align: left; border-bottom: 2px solid var(--border);
}
td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) td { background: rgba(255,255,255,.018); }
tbody tr:nth-child(odd)  td { background: transparent; }
tbody tr:hover td { background: rgba(255,255,255,.04) !important; }

/* Badges */
.badge        { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 500; font-family: 'DM Mono', monospace; }
.badge-green  { background: rgba(0,194,168,.15); color: #00c2a8; border: 1px solid rgba(0,194,168,.3); }
.badge-yellow { background: rgba(232,255,71,.1); color: var(--accent); border: 1px solid rgba(232,255,71,.3); }
.badge-red    { background: rgba(255,80,80,.12); color: #ff6b6b; border: 1px solid rgba(255,80,80,.3); }
.badge-gray   { background: rgba(90,95,115,.15); color: var(--muted); border: 1px solid var(--border); }
.badge-blue   { background: rgba(100,149,255,.12); color: #82a9ff; border: 1px solid rgba(100,149,255,.3); }

/* Inputs */
input[type=search], input[type=text] {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: .6rem 1rem; font-size: .875rem; outline: none;
  font-family: 'DM Sans', sans-serif;
}
input:focus { border-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.4rem;
  border-radius: 8px; font-weight: 500; font-size: .875rem; cursor: pointer; border: none;
  font-family: 'DM Sans', sans-serif; text-decoration: none; transition: all .15s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #0e0f13; }
.btn-primary:hover:not(:disabled) { background: #d4ea30; }
.btn-ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border); border-radius: 12px; padding: 2.5rem;
  text-align: center; transition: border-color .2s, background .2s; cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragging {
  border-color: var(--accent); background: rgba(232,255,71,.03);
}

/* Misc */
.stag     { font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); margin-bottom: .5rem; }
.no-data  { display: inline-block; padding: .15rem .5rem; border-radius: 4px; background: rgba(90,95,115,.15); color: var(--muted); font-size: .75rem; font-family: 'DM Mono', monospace; }
.cl       { color: var(--text); text-decoration: none; font-weight: 500; transition: color .15s; }
.cl:hover { color: var(--accent); }
.link-more { color: var(--accent2); font-size: .8rem; text-decoration: none; }
.link-more:hover { text-decoration: underline; }
.empty-note { color: var(--muted); font-size: .875rem; padding: 1.5rem 0; }
.center-msg { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5rem 0; }
.empty-hero { max-width: 520px; margin: 4rem auto; text-align: center; }
.expand-btn {
  background: none; border: none; cursor: pointer; color: var(--accent2);
  font-size: .75rem; font-family: 'DM Mono', monospace; padding: 0;
}
.expand-btn:hover { text-decoration: underline; }

/* Spinner */
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Animations */
@keyframes fu { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fu { animation: fu .35s ease both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .1s; }
.d3 { animation-delay: .15s; } .d4 { animation-delay: .2s; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }