:root{
  --bg:#0b0f14;
  --card:#0f1622;
  --stroke:#1a2636;
  --text:#d9e2ef;
  --muted:#9fb0c4;
  --accent:#64ffda;
  --accent2:#7aa7ff;
  --warn:#ffb86b;
  --bad:#ff5c7a;
  --ok:#49e39a;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --glow: 0 0 18px rgba(100,255,218,.18);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(122,167,255,.12), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(100,255,218,.10), transparent 60%),
              var(--bg);
  color:var(--text);
}

a{color:var(--accent); text-decoration:none}
a:hover{opacity:.85}

.topbar{
  position:sticky; top:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  background: rgba(11,15,20,.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(26,38,54,.8);
  z-index:10;
}

.brand{display:flex; gap:12px; align-items:center}
.brand-mark{
  width:36px; height:36px;
  display:grid; place-items:center;
  border:1px solid rgba(100,255,218,.35);
  border-radius:10px;
  color:var(--accent);
  box-shadow: var(--glow);
}
.brand-title{font-weight:800; letter-spacing:.5px}
.brand-sub{color:var(--muted); font-size:12px; margin-top:2px}

.status{display:flex; gap:10px; align-items:center}
.pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(26,38,54,.9);
  background: rgba(15,22,34,.75);
  font-size:12px;
}
#pill-online{color:var(--ok)}
.pill-dim{color:var(--muted)}

.grid{
  max-width:1100px;
  margin:18px auto 30px;
  padding:0 14px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.card{
  grid-column: span 6;
  background: rgba(15,22,34,.86);
  border:1px solid rgba(26,38,54,.9);
  border-radius:16px;
  padding:16px;
  box-shadow: var(--shadow);
}
.glow{box-shadow: var(--shadow), var(--glow);}

.card-title{
  display:flex; align-items:center; justify-content:space-between;
  font-weight:800;
  margin-bottom:10px;
}
.tag{
  font-size:11px;
  color:var(--muted);
  border:1px solid rgba(26,38,54,.9);
  padding:4px 8px;
  border-radius:999px;
}

.p{color:var(--muted); line-height:1.45; margin:8px 0 12px}

.kv{border-top:1px solid rgba(26,38,54,.7); border-bottom:1px solid rgba(26,38,54,.7); padding:10px 0; margin:10px 0 14px}
.kv-row{display:flex; justify-content:space-between; gap:10px; padding:6px 0; color:var(--muted)}
.kv-row b{color:var(--text)}

.label{display:block; font-size:12px; color:var(--muted); margin:10px 0 6px}
.input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(26,38,54,.95);
  background: rgba(11,15,20,.55);
  color:var(--text);
  outline:none;
}
.input:focus{border-color: rgba(100,255,218,.55); box-shadow: var(--glow);}

.check{display:flex; gap:10px; align-items:flex-start; margin:12px 0 10px; color:var(--muted); font-size:13px}
.check input{margin-top:3px}

.btn{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(100,255,218,.35);
  background: rgba(100,255,218,.08);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
}
.btn:disabled{opacity:.4; cursor:not-allowed}
.btn-ghost{
  border:1px solid rgba(26,38,54,.95);
  background: rgba(11,15,20,.25);
}

.receipt{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(26,38,54,.95);
  background: rgba(11,15,20,.55);
  color: #cfe6ff;
  overflow:auto;
  white-space:pre-wrap;
}

.clock{margin-top:4px}
.clock-row{display:flex; justify-content:space-between; align-items:baseline; padding:6px 0}
.clock-label{color:var(--muted); font-size:12px}
.clock-value{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono"; font-size:18px}
.accent{color:var(--accent)}
.divider{height:1px; background:rgba(26,38,54,.8); margin:10px 0}
.clock-hint{color:var(--muted); font-size:12px; margin:8px 0 12px}

.mini{display:grid; grid-template-columns: repeat(3, 1fr); gap:10px}
.mini-col{padding:10px; border:1px solid rgba(26,38,54,.9); border-radius:14px; background: rgba(11,15,20,.35)}
.mini-label{color:var(--muted); font-size:12px}
.mini-value{font-weight:800; margin-top:6px}

.audit-grid{display:grid; grid-template-columns: repeat(2, 1fr); gap:12px; margin-top:8px}
.row{display:flex; gap:10px; margin-top:12px}

.audit-out{
  margin-top:12px;
  border:1px solid rgba(26,38,54,.95);
  border-radius:14px;
  padding:12px;
  background: rgba(11,15,20,.35);
}
.audit-line{display:flex; justify-content:space-between; padding:6px 0; color:var(--muted)}
.audit-line b{color:var(--text)}

.small{color:var(--muted); font-size:12px; margin-top:10px}

.footer{
  max-width:1100px;
  margin:0 auto 20px;
  padding:0 14px;
  display:flex; justify-content:space-between; align-items:center;
  color:var(--muted);
  font-size:12px;
}
.footlinks{display:flex; gap:10px; align-items:center}
.dot{opacity:.5}

@media (max-width: 900px){
  .card{grid-column: span 12;}
  .mini{grid-template-columns: 1fr;}
}
