
:root{
  --bg:#0b0e14; --bg2:#0f1320; --panel:#13192a; --muted:#9fb0c4; --text:#e7eefc;
  --accent:#5bc4ff; --accent2:#00ffd0; --warn:#ff6b6b; --ok:#2ee087; --border:#253149;
  --glow: 0 8px 30px rgba(91,196,255,.22), inset 0 0 0 1px rgba(0,255,208,.06);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background: radial-gradient(1200px 900px at 15% -10%, #0e1628 0%, #0b0e14 50%, #0b0e14 100%);
}
a{color:var(--accent)}
header{
  display:flex; align-items:center; gap:14px; padding:14px 18px; position:sticky; top:0; z-index:10;
  background:rgba(8,11,18,.55); border-bottom:1px solid var(--border); backdrop-filter: blur(9px);
}
header img{height:40px}
h1{font-size:18px; letter-spacing:.2px; margin:0}
main{display:grid; grid-template-columns: 280px 1fr; min-height:calc(100vh - 70px)}
nav{border-right:1px solid var(--border); background:linear-gradient(180deg, rgba(13,18,33,.7), rgba(8,12,24,.4)); padding:16px}
.nav-btn{width:100%; text-align:left; padding:10px 12px; margin-bottom:8px; border:1px solid var(--border);
  border-radius:10px; background:var(--panel); color:var(--text); cursor:pointer; box-shadow:var(--glow)}
.nav-btn.active{outline:2px solid var(--accent2)}
.section{display:none; padding:18px}
.section.active{display:block}
.card{background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:14px; box-shadow:var(--glow)}
.grid{display:grid; gap:12px}
.cols-2{grid-template-columns: repeat(2, 1fr)} .cols-3{grid-template-columns: repeat(3, 1fr)}
table{width:100%; border-collapse: collapse; font-size:14px}
th,td{padding:10px; border-bottom:1px solid var(--border)} th{text-align:left; color:var(--muted); font-weight:600}
.badge{padding:4px 8px; border:1px solid var(--border); background:#0a1120; border-radius:999px; font-size:12px; color:var(--muted)}
.btn{padding:10px 12px; border-radius:10px; border:1px solid var(--border); background:#0a1426; color:var(--text); cursor:pointer; box-shadow:var(--glow)}
.btn.primary{background:linear-gradient(90deg, var(--accent2), var(--accent)); color:#00161a; font-weight:800; border:none}
.btn.warn{background:#2a1414; border-color:#5a2a2a; color:#ffcaca}
.small{font-size:12px; color:var(--muted)}
input,select,textarea{width:100%; padding:10px; border-radius:10px; border:1px solid var(--border); background:#0a1222; color:var(--text)}
.kpi{display:flex; justify-content:space-between; align-items:center; padding:10px; border:1px dashed var(--border); border-radius:12px}
.kpi .val{font-weight:800}
.notice{padding:12px; border-left:4px solid var(--accent2); background:#071420; border:1px solid #163243; border-radius:10px}
footer{padding:18px; text-align:center; color:var(--muted)}
.modal{position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,.6); backdrop-filter: blur(6px); z-index:90}
.modal.show{display:flex}
.modal .sheet{background:var(--bg2); border:1px solid var(--border); border-radius:12px; padding:16px; width:min(800px, 95vw); box-shadow:var(--glow)}
.map{display:grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap:10px}
.map .cell{aspect-ratio:1.2/1; border:1px solid var(--border); border-radius:8px; background:#0c1426; display:flex; align-items:center; justify-content:center; cursor:pointer}
.map .cell:hover{outline:2px solid var(--accent2)}
.TR{color:#2ee087} .DN{color:#ff6b6b}
.wallet{display:grid; grid-template-columns: repeat(3, 1fr); gap:10px}
@media (max-width: 1080px){ main{grid-template-columns: 1fr} .cols-3,.cols-2{grid-template-columns: 1fr} }
