:root{
  --bg: #070A12;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.09);
  --stroke: rgba(255,255,255,0.12);
  --stroke2: rgba(255,255,255,0.18);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --muted2: rgba(255,255,255,0.52);
  --brand1: #00E5FF;
  --brand2: #B6FF3B;
  --warn: #FFCC00;
  --bad: #FF4D6D;
  --good: #57FF9A;
  --shadow: 0 14px 40px rgba(0,0,0,0.45);
  --radius: 18px;
  --radius2: 26px;
  --max: 1200px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 30% 10%, rgba(0,229,255,0.10), transparent 55%),
    radial-gradient(1000px 700px at 75% 30%, rgba(182,255,59,0.08), transparent 55%),
    radial-gradient(900px 500px at 40% 80%, rgba(255,77,109,0.05), transparent 60%),
    linear-gradient(180deg, #060810, #070A12 60%, #05060B);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
button,input,select,textarea{font:inherit}
img{max-width:100%; display:block}

.container{max-width:var(--max); margin:0 auto; padding:22px 18px 64px}
.row{display:flex; gap:16px}
.col{flex:1}
.hidden{display:none !important}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(18px);
  background: rgba(7,10,18,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner{max-width:var(--max); margin:0 auto; padding:14px 18px; display:flex; align-items:center; gap:14px}
.brand{
  display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius: 14px;
}
.brand .mark{width:34px; height:34px}
.brand .name{font-weight:800; letter-spacing:0.3px}
.brand .tag{font-size:12px; color:var(--muted2); margin-top:2px}
.brand-text{display:flex; flex-direction:column; line-height:1.1}

.nav{
  margin-left:auto; display:flex; align-items:center; gap:8px;
}
.nav a{
  padding:10px 12px; border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
}
.nav a.active{
  color: var(--text);
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.nav a:hover{background: rgba(255,255,255,0.04); color:var(--text)}

.actions{display:flex; gap:10px; align-items:center}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.pill small{color:var(--muted2)}
.pill .dot{width:8px; height:8px; border-radius:999px; background: var(--good)}
.pill .dot.off{background: rgba(255,255,255,0.25)}

.btn{
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding:10px 12px;
  border-radius: 14px;
  cursor:pointer;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18)}
.btn:active{transform: translateY(1px)}
.btn.primary{
  background: linear-gradient(135deg, rgba(0,229,255,0.18), rgba(182,255,59,0.14));
  border-color: rgba(0,229,255,0.30);
}
.btn.primary:hover{border-color: rgba(182,255,59,0.40)}
.btn.danger{border-color: rgba(255,77,109,0.35); background: rgba(255,77,109,0.12)}
.btn.ghost{background: transparent}

.kbd{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size:12px; padding:2px 6px; border-radius:8px; border:1px solid rgba(255,255,255,0.14); color:var(--muted)}

.hero{
  padding:26px 0 8px;
  display:flex; gap:18px; align-items:flex-end; justify-content:space-between;
}
.hero h1{margin:0; font-size:34px; letter-spacing:-0.4px}
.hero p{margin:10px 0 0; color: var(--muted); line-height:1.5; max-width: 68ch}
.hero .right{display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end}

.searchbar{
  margin-top:18px;
  display:flex; gap:12px; align-items:center; flex-wrap:wrap;
}
.input{
  display:flex; align-items:center; gap:10px;
  padding:12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  min-width: 240px;
}
.input input{
  background: transparent; border:none; outline:none; color: var(--text);
  width: 280px; max-width: 58vw;
}
.select{
  padding:12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.select option{background:#0B1020}

.grid{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.card{
  grid-column: span 4;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  overflow:hidden;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.card:hover{transform: translateY(-2px); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.055)}
.cover{
  height: 160px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position:relative;
}
.cover .badge{
  position:absolute; left:12px; top:12px;
  padding:8px 10px;
  border-radius: 999px;
  font-size:12px;
  border: 1px solid rgba(0,229,255,0.25);
  background: rgba(0,229,255,0.10);
}
.cover .badge.b{border-color: rgba(182,255,59,0.30); background: rgba(182,255,59,0.12)}
.cover .badge.dual{border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.08)}
.cover .play{
  position:absolute; right:12px; bottom:12px;
  display:flex; align-items:center; gap:8px;
  padding:9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(7,10,18,0.55);
}
.cover .play .tri{
  width:0;height:0;border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:11px solid var(--text);
}
.card-body{padding:14px 14px 14px}
.title{font-weight:800; margin:0; font-size:16px}
.meta{display:flex; gap:10px; align-items:center; margin-top:8px; color:var(--muted); font-size:13px; flex-wrap:wrap}
.chip{
  padding:6px 9px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size:12px;
}
.progress{
  margin-top:12px;
}
.bar{
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  overflow:hidden;
}
.fill{
  height:100%;
  width: 40%;
  background: linear-gradient(90deg, rgba(0,229,255,0.9), rgba(182,255,59,0.85));
}
.progress .row2{
  display:flex; justify-content:space-between; margin-top:8px; font-size:12px; color:var(--muted2)
}

.panel{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  overflow:hidden;
}
.panel-pad{padding:16px}
.panel-title{margin:0; font-size:14px; color:var(--muted); font-weight:700; letter-spacing:0.2px}
.h2{margin:8px 0 0; font-size:26px; letter-spacing:-0.4px}
.hr{height:1px; background: rgba(255,255,255,0.10); margin:14px 0}
.small{font-size:13px; color: var(--muted); line-height:1.55}
.mini{font-size:12px; color: var(--muted2)}
.big-stat{display:flex; gap:16px; flex-wrap:wrap; margin-top:12px}
.stat{
  padding:12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
  min-width: 160px;
}
.stat .k{color:var(--muted2); font-size:12px}
.stat .v{font-weight:850; font-size:18px; margin-top:6px}
.stat .s{color:var(--muted); font-size:12px; margin-top:4px}

.layout{display:grid; grid-template-columns: 1.65fr 1fr; gap:14px; margin-top:18px}
@media (max-width: 980px){
  .layout{grid-template-columns: 1fr}
  .card{grid-column: span 6}
}
@media (max-width: 640px){
  .card{grid-column: span 12}
  .hero{flex-direction:column; align-items:flex-start}
  .hero .right{justify-content:flex-start}
  .input input{width: 55vw}
}

.tabs{
  display:flex; gap:8px; flex-wrap:wrap;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding:12px 12px 0;
  background: rgba(255,255,255,0.02);
}
.tab{
  padding:10px 12px;
  border-radius: 14px 14px 0 0;
  color: var(--muted);
  border: 1px solid transparent;
  cursor:pointer;
}
.tab.active{
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
  border-bottom-color: transparent;
}

.playbox{
  position:relative;
  height: 420px;
  background: rgba(0,0,0,0.18);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.playbox iframe{
  width:100%; height:100%; border:0; background:#000;
}
.play-overlay{
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center;
  gap:12px; padding:24px;
}
.play-overlay h3{margin:0; font-size:18px}
.play-overlay p{margin:0; color:var(--muted); line-height:1.5; max-width: 60ch}
.play-method{
  display:flex; gap:8px; flex-wrap:wrap; justify-content:center;
}
.toggle{
  display:inline-flex; gap:8px; align-items:center;
  padding:10px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  cursor:pointer;
  color: var(--muted);
}
.toggle.active{
  color: var(--text);
  border-color: rgba(0,229,255,0.30);
  background: rgba(0,229,255,0.08);
}
.toggle.b.active{
  border-color: rgba(182,255,59,0.30);
  background: rgba(182,255,59,0.08);
}
.toggle small{color:var(--muted2)}

.form{
  display:grid; gap:10px;
}
.field label{display:block; font-size:12px; color:var(--muted2); margin-bottom:6px}
.field input,.field textarea,.field select{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  outline:none;
}
.field textarea{min-height: 110px; resize: vertical}
.field input::placeholder,.field textarea::placeholder{color: rgba(255,255,255,0.35)}
.hint{font-size:12px; color: var(--muted2); line-height:1.5; margin-top:6px}
.inline{display:flex; gap:10px; flex-wrap:wrap}

.table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.table th,.table td{
  padding:10px 10px;
  border-bottom:1px solid rgba(255,255,255,0.10);
  text-align:left;
  vertical-align:top;
  color: var(--muted);
}
.table th{color: var(--muted2); font-size:12px; font-weight:800; letter-spacing:0.2px}

.toast{
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  max-width: min(720px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(7,10,18,0.72);
  box-shadow: var(--shadow);
  display:flex;
  gap:10px;
  align-items:flex-start;
  z-index: 200;
}
.toast .t{font-weight:800; font-size:13px}
.toast .d{color: var(--muted); font-size:12px; margin-top:2px; line-height:1.4}
.toast .x{margin-left:auto}
.modal-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,0.60);
  backdrop-filter: blur(10px);
  display:flex; align-items:center; justify-content:center;
  z-index: 250;
}
.modal{
  width: min(760px, calc(100vw - 36px));
  border-radius: 22px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(11,16,32,0.85);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-head{
  padding:14px 16px;
  display:flex; align-items:center; gap:10px;
  border-bottom:1px solid rgba(255,255,255,0.10);
}
.modal-head h3{margin:0; font-size:14px}
.modal-body{padding:16px}
.modal-foot{padding:14px 16px; border-top:1px solid rgba(255,255,255,0.10); display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap}

.canvas-chart{
  width:100%;
  height: 160px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}
.footer{
  margin-top:38px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,0.08);
  color: var(--muted2);
  font-size:12px;
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
}
.footer a{color: var(--muted)}
.footer a:hover{color:var(--text)}
