
:root{
  --bg:#070a0f;
  --panel:#0c1220;
  --panel2:#0b0f18;
  --text:#e8eefc;
  --muted:#9fb0d6;
  --line:#1a2440;
  --red:#ff3b3b;
  --green:#31ff8a;
  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --radius: 18px;
  --maxw: 1160px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(49,255,138,.10), transparent 60%),
    radial-gradient(900px 520px at 85% 0%, rgba(255,59,59,.10), transparent 55%),
    linear-gradient(180deg, #05070c, var(--bg) 45%);
  color:var(--text);
}
a{color:inherit; text-decoration:none}
a:hover{opacity:.9}
.container{max-width:var(--maxw); margin:0 auto; padding:0 16px}
.topbar{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(7,10,15,.72);
  border-bottom: 1px solid rgba(26,36,64,.65);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:14px 0;
}
.brand{
  font-weight:800; letter-spacing:.3px;
  color:var(--text);
  padding:8px 12px; border-radius:999px;
  background: linear-gradient(90deg, rgba(255,59,59,.14), rgba(49,255,138,.10));
  border:1px solid rgba(26,36,64,.7);
}
.nav{display:flex; gap:14px; align-items:center; flex-wrap:wrap}
.nav a{
  color:var(--muted);
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
}
.nav a:hover{
  color:var(--text);
  border-color: rgba(26,36,64,.8);
  background: rgba(12,18,32,.65);
}
.content{padding:22px 0 56px}
.h1{font-size:28px; margin:0 0 10px; letter-spacing:.2px}
.sub{color:var(--muted); margin:0 0 18px; line-height:1.45}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.card{
  background: linear-gradient(180deg, rgba(12,18,32,.92), rgba(11,15,24,.92));
  border: 1px solid rgba(26,36,64,.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.card h2{margin:0 0 10px; font-size:16px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(26,36,64,.85);
  background: rgba(7,10,15,.45);
  color: var(--muted);
}
.kpi{display:flex; gap:14px; flex-wrap:wrap; margin:10px 0 0}
.kpi .pill{
  padding:10px 12px;
  border-radius:14px;
  background: rgba(7,10,15,.55);
  border:1px solid rgba(26,36,64,.85);
}
.kpi .val{font-weight:800}
.kpi .lbl{font-size:12px; color:var(--muted); margin-top:3px}
.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border:1px solid rgba(26,36,64,.85);
}
.table th, .table td{
  text-align:left;
  padding:12px 12px;
  border-bottom:1px solid rgba(26,36,64,.55);
  font-size:14px;
  vertical-align:top;
}
.table th{font-size:12px; color:var(--muted); background: rgba(7,10,15,.35)}
.row-actions a{color:var(--text); text-decoration:underline; text-underline-offset:3px}
.pos{color:var(--green); font-weight:700}
.neg{color:var(--red); font-weight:700}
.muted{color:var(--muted)}
.footer{
  border-top:1px solid rgba(26,36,64,.65);
  padding:22px 0;
  background: rgba(7,10,15,.65);
}
.footer-inner{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap}
.footer-links{display:flex; gap:12px; flex-wrap:wrap}
.footer-links a{color:var(--muted)}
.footer-links a:hover{color:var(--text)}
/* Responsive */
@media (max-width: 900px){
  .grid{grid-template-columns: 1fr}
  .nav{gap:8px}
  .h1{font-size:24px}
  .table th:nth-child(4), .table td:nth-child(4){display:none}
}
@media (max-width: 640px){
  .topbar-inner{flex-direction:column; align-items:flex-start}
  .table thead{display:none}
  .table, .table tbody, .table tr, .table td{display:block; width:100%}
  .table tr{border-bottom:1px solid rgba(26,36,64,.55)}
  .table td{
    border:0;
    padding:10px 12px;
    display:flex; justify-content:space-between; gap:12px;
  }
  .table td::before{
    content: attr(data-label);
    color: var(--muted);
    font-size:12px;
    width: 42%;
    flex:0 0 42%;
  }
}
