:root{
  --bg:#0f0c08;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.10);
  --text:#f2f2f2;
  --muted:rgba(255,255,255,.72);
  --accent:#dcb361;
  --danger:#ff6b6b;
  --ok:#7CFF9E;
  --shadow:0 10px 28px rgba(0,0,0,.35);
  --r:16px;
  --r2:12px;
  --max:1100px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 900px at 20% 10%, rgba(220,179,97,.10), transparent 55%),
              radial-gradient(1000px 700px at 90% 20%, rgba(124,255,158,.05), transparent 60%),
              var(--bg);
  color:var(--text);
}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:18px 14px 48px}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:14px 0 10px;
}
.brand{display:flex; gap:10px; align-items:center}
.brand .logo{
  width:40px; height:40px; border-radius:12px;
  background:linear-gradient(135deg, rgba(220,179,97,.65), rgba(255,255,255,.08));
  box-shadow: var(--shadow);
}
.brand .name{font-weight:800; letter-spacing:.06em}
.nav{display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:flex-end}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 12px; border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}
.card{
  background:var(--panel);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--r);
  padding:14px;
  box-shadow: var(--shadow);
}
.grid{display:grid; gap:12px}
@media(min-width:900px){ .grid.cols3{grid-template-columns:repeat(3,1fr)} }
@media(min-width:900px){ .grid.cols2{grid-template-columns:repeat(2,1fr)} }
.h1{font-size:20px; font-weight:800; margin:0}
.muted{color:var(--muted)}
.hr{height:1px; background:rgba(255,255,255,.10); margin:12px 0}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:38px; padding:0 12px; border-radius:12px;
  background:linear-gradient(180deg, rgba(220,179,97,.22), rgba(0,0,0,.22));
  border:1px solid rgba(220,179,97,.35);
  color:var(--text);
  cursor:pointer;
}
.btn:hover{filter:brightness(1.05)}
.btn.ghost{background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10)}
.btn.danger{background:rgba(255,107,107,.12); border:1px solid rgba(255,107,107,.35)}
.btn.small{height:32px; border-radius:10px; padding:0 10px; font-size:13px}
table{width:100%; border-collapse:separate; border-spacing:0}
th,td{padding:10px 10px; border-bottom:1px solid rgba(255,255,255,.08); vertical-align:top}
th{font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); text-align:left}
tr:hover td{background:rgba(255,255,255,.03)}
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 9px; border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-size:12px;
}
.kpi .v{font-size:22px; font-weight:900}
.kpi .t{font-size:12px; color:var(--muted); letter-spacing:.06em; text-transform:uppercase}
form{margin:0}
.field{display:grid; gap:6px; margin:10px 0}
label{font-size:12px; color:var(--muted); letter-spacing:.03em}
input,select,textarea{
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
  outline:none;
}
textarea{min-height:90px; resize:vertical}
.row{display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end}
.row > *{flex:1 1 160px}
.notice{
  padding:10px 12px; border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
}
.notice.ok{border-color:rgba(124,255,158,.35); background:rgba(124,255,158,.08)}
.notice.err{border-color:rgba(255,107,107,.35); background:rgba(255,107,107,.08)}
.footer{margin-top:20px; color:var(--muted); font-size:12px}



/* ===============================
   Dashboard Enhancements: Number Roll + Trend Line (SVG)
   Safe additive styles
=============================== */
.kpi-anim .v{letter-spacing:.2px}
.chart-wrap{
  border:1px solid var(--panel2);
  border-radius:var(--r);
  background:rgba(0,0,0,.16);
  padding:12px;
}
.axis{stroke:rgba(255,255,255,.14);stroke-width:1}
.gridline{stroke:rgba(255,255,255,.08);stroke-width:1;stroke-dasharray:4 6}
.line{
  fill:none;
  stroke:var(--accent);
  stroke-width:3;
  stroke-linecap:round;
  filter: drop-shadow(0 8px 20px rgba(220,179,97,.22));
}
.area{fill:url(#trendFade);opacity:.9}
.dot{
  fill:rgba(220,179,97,.95);
  filter: drop-shadow(0 10px 18px rgba(220,179,97,.18));
}
