:root{
  --bg: #0b0f14;
  --panel: rgba(255,255,255,.92);
  --panel2: rgba(255,255,255,.88);
  --text: #0d1420;
  --muted: rgba(13,20,32,.65);
  --border: rgba(13,20,32,.12);
  --shadow: 0 12px 40px rgba(0,0,0,.18);
  --accent: #ff6a00;
  --accent2: rgba(255,106,0,.14);
  --radius: 18px;
  --radius2: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: 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(--sans);
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% -10%, rgba(255,106,0,.18), transparent 55%),
              radial-gradient(1200px 700px at 80% 0%, rgba(90,153,255,.16), transparent 50%),
              linear-gradient(180deg, #070a0f, #0b0f14 60%);
  background-size: cover;
  background-position: center;
}

.container{width:min(1100px, calc(100% - 28px)); margin:0 auto; padding: 26px 0;}
.topbar{
  position: sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(7,10,15,.62);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner{display:flex; align-items:center; justify-content:space-between; gap:16px; padding: 14px 0;}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none; color:#fff;}
.brand-logo{width:34px; height:34px; object-fit:contain; border-radius:10px; background: rgba(255,255,255,.06); padding:6px;}
.brand-name{font-weight:700; letter-spacing:.2px;}
.topnav{display:flex; gap:14px;}
.topnav a{
  color: rgba(255,255,255,.88);
  text-decoration:none;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.topnav a:hover{border-color: rgba(255,255,255,.18);}

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-h{padding: 18px 20px; border-bottom: 1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:14px;}
.card-b{padding: 20px;}
.h1{font-size: 30px; line-height:1.15; margin:0 0 10px;}
.p{margin:0 0 18px; color: var(--muted);}
.grid{display:grid; grid-template-columns: 1.2fr .8fr; gap:18px;}
@media (max-width: 900px){.grid{grid-template-columns:1fr;} .topbar-inner{padding:14px 0;}}

.input, select, textarea{
  width:100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(13,20,32,.18);
  background: #fff;
  outline:none;
  font-size: 15px;
}
textarea{min-height: 140px; resize: vertical;}
.input:focus, select:focus, textarea:focus{border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent2);}
label{display:block; font-weight:600; margin: 0 0 8px;}
.row{display:grid; grid-template-columns:1fr; gap:14px;}
.row2{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
@media (max-width: 700px){.row2{grid-template-columns:1fr;}}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(13,20,32,.12);
  background: rgba(13,20,32,.06);
  color: var(--text);
  text-decoration:none;
  cursor:pointer;
  font-weight:700;
}
.btn-primary{
  background: linear-gradient(90deg, var(--accent), #ff8a00);
  color:#fff;
  border-color: rgba(255,255,255,.10);
}
.btn-danger{
  background: #c62828;
  color:#fff;
  border-color: rgba(255,255,255,.12);
}
.btn:hover{transform: translateY(-1px);}
.btn:active{transform: translateY(0px);}
.actions{display:flex; gap:10px; flex-wrap:wrap}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 6px 10px;
  border-radius:999px;
  background: rgba(13,20,32,.06);
  border: 1px solid rgba(13,20,32,.12);
  font-size: 13px;
  color: rgba(13,20,32,.78);
}
.badge-risk{background: rgba(255,106,0,.14); border-color: rgba(255,106,0,.28); color: rgba(90,40,0,.9);}
.badge-bad{background: rgba(198,40,40,.14); border-color: rgba(198,40,40,.28); color: rgba(92,0,0,.9);}

.table{width:100%; border-collapse: collapse; font-size: 14px;}
.table th, .table td{padding: 10px 10px; border-bottom: 1px solid rgba(13,20,32,.10); vertical-align: top;}
.table th{text-align:left; color: rgba(13,20,32,.70); font-weight:700;}
.code{font-family: var(--mono); font-size: 13px; background: rgba(13,20,32,.06); padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(13,20,32,.12);}
.muted{color: var(--muted);}
.hr{height:1px; background: rgba(13,20,32,.10); margin: 14px 0;}

.notice{padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,106,0,.28); background: rgba(255,106,0,.12);}
.notice-danger{border-color: rgba(198,40,40,.28); background: rgba(198,40,40,.12);}

.footer{padding: 24px 0 50px;}
.footer-inner{display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; color: rgba(255,255,255,.72);}
.footer-inner .muted{color: rgba(255,255,255,.52);}
.footer a{color: rgba(255,255,255,.85);}

.kpi{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px;}
@media (max-width:900px){.kpi{grid-template-columns:1fr;}}
.kpi .k{padding:14px; border-radius: 16px; border: 1px solid rgba(13,20,32,.12); background: rgba(13,20,32,.04);}
.kpi .v{font-size: 22px; font-weight: 800;}
.kpi .t{font-size: 13px; color: rgba(13,20,32,.65); margin-top:4px;}

.countdown{
  display:flex; align-items:center; gap:14px; justify-content:space-between;
}
.timer{font-family: var(--mono); font-size: 34px; font-weight: 800;}
.progress{height:10px; background: rgba(13,20,32,.08); border-radius:999px; overflow:hidden; border:1px solid rgba(13,20,32,.10);}
.progress > div{height:100%; width:0%; background: linear-gradient(90deg, var(--accent), #ff8a00);}


.footer-custom a{color: rgba(255,255,255,.88); text-decoration:none;}
.footer-custom a:hover{text-decoration:underline;}
