:root{
  --bg0:#070a0b;
  --bg1:#0b1112;
  --card:#0f1719;
  --card2:#0b1315;
  --stroke:rgba(180,190,190,.18);
  --muted:rgba(220,224,224,.72);
  --text:#dce0e0;
  --gold:#d6b25a;
  --gold2:#f0d07a;
  --danger:#e74c3c;
  --ok:#2ecc71;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius:16px;
  --max:1200px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, 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(900px 500px at 30% -10%, rgba(214,178,90,.16), transparent 60%),
    radial-gradient(900px 500px at 70% 0%, rgba(84,223,233,.10), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 55%, #050708);
  background-attachment: fixed;
}
a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:0 18px}
.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5,8,9,.72), rgba(5,8,9,.35));
  border-bottom:1px solid rgba(180,190,190,.10);
}
.header__in{display:flex; align-items:center; justify-content:space-between; height:64px; gap:16px}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px}
.brand__logo{width:30px; height:30px}
.nav{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.nav a{
  padding:8px 12px;
  border-radius:12px;
  color:rgba(220,224,224,.85);
  border:1px solid transparent;
}
.nav a:hover{border-color:rgba(214,178,90,.35); background:rgba(214,178,90,.08)}
.nav a.active{border-color:rgba(214,178,90,.55); color:var(--gold2); background:rgba(214,178,90,.10)}
.main{padding:34px 0 56px}
.hero{
  padding:26px 0 8px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
}
@media (max-width: 980px){ .hero__grid{grid-template-columns:1fr} }
.card{
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(15,23,25,.88), rgba(9,14,15,.92));
  box-shadow: var(--shadow);
}
.card__in{padding:18px}
.h1{font-size:34px; margin:0 0 8px; letter-spacing:-.2px}
.h2{font-size:18px; margin:0 0 10px; color:rgba(220,224,224,.92)}
.p{margin:0; color:var(--muted); line-height:1.45}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(214,178,90,.35);
  background: rgba(214,178,90,.10);
  color:var(--gold2);
  font-size:13px;
}
.btns{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(180,190,190,.18);
  background: rgba(255,255,255,.02);
  color:rgba(220,224,224,.92);
  cursor:pointer;
}
.btn:hover{border-color:rgba(214,178,90,.45); background:rgba(214,178,90,.08)}
.btn--primary{border-color:rgba(214,178,90,.55); background:linear-gradient(180deg, rgba(214,178,90,.18), rgba(214,178,90,.06)); color:var(--gold2)}
.btn--danger{border-color:rgba(231,76,60,.55); background:rgba(231,76,60,.10)}
.grid{display:grid; grid-template-columns: repeat(12, 1fr); gap:16px}
.span-12{grid-column: span 12}
.span-8{grid-column: span 8}
.span-6{grid-column: span 6}
.span-4{grid-column: span 4}
@media (max-width: 980px){
  .span-8,.span-6,.span-4{grid-column: span 12}
}
.hr{height:1px; background:rgba(180,190,190,.12); margin:14px 0}
.tablewrap{overflow:auto}
table{width:100%; border-collapse:collapse; background:transparent; min-width:820px}
thead{background:transparent}
th{
  padding:14px 14px;
  text-align:left;
  font-weight:600;
  color:rgba(220,224,224,.60);
  border-bottom:2px solid rgba(180,190,190,.14);
  cursor:pointer;
  position:relative;
  user-select:none;
  white-space:nowrap;
}
th:hover{color:rgba(220,224,224,.92)}
th::after{content:"↕"; position:absolute; right:10px; opacity:.35}
td{
  padding:16px 14px;
  border-bottom:1px solid rgba(180,190,190,.10);
  color:rgba(220,224,224,.88);
  white-space:nowrap;
}
tr:hover{background:rgba(255,255,255,.03)}
.rank-cell{width:70px; text-align:center; font-weight:800}
.name-cell{display:flex; align-items:center; gap:10px}
.dot{
  width:10px; height:10px; border-radius:50%;
  border:2px solid rgba(180,190,190,.25);
  background:rgba(180,190,190,.08);
}
.dot--ok{border-color:rgba(46,204,113,.65); background:rgba(46,204,113,.18)}
.dot--off{border-color:rgba(231,76,60,.55); background:rgba(231,76,60,.12)}
.progress-bar{
  width:240px; height:18px;
  background:rgba(180,190,190,.10);
  border-radius:999px;
  overflow:hidden;
  position:relative;
}
.progress-fill{height:100%; width:0; border-radius:999px; transition:width .2s ease}
.progress-fill.blue{background:linear-gradient(90deg,#4a90e2,#357abd)}
.progress-fill.green{background:linear-gradient(90deg,#2ecc71,#27ae60)}
.progress-fill.yellow{background:linear-gradient(90deg,#f39c12,#e67e22)}
.progress-fill.red{background:linear-gradient(90deg,#e74c3c,#c0392b)}
.progress-text{
  position:absolute; right:10px; top:50%;
  transform:translateY(-50%);
  font-size:12px; font-weight:800;
  color:#fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.search{
  display:flex; align-items:center; gap:10px; margin: 10px 0 14px;
  color:rgba(220,224,224,.75);
}
.input{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(180,190,190,.18);
  background: rgba(0,0,0,.20);
  color:rgba(220,224,224,.92);
  outline:none;
}
.input:focus{border-color:rgba(214,178,90,.55)}
.alert{
  border-radius:14px;
  padding:10px 12px;
  border:1px solid rgba(180,190,190,.18);
  background: rgba(255,255,255,.02);
  color:rgba(220,224,224,.92);
  margin: 10px 0;
}
.alert--error{border-color:rgba(231,76,60,.55); background:rgba(231,76,60,.08)}
.alert--ok{border-color:rgba(46,204,113,.60); background:rgba(46,204,113,.08)}
.footer{padding:18px 0; border-top:1px solid rgba(180,190,190,.10); color:rgba(220,224,224,.65)}
.small{font-size:13px; color:rgba(220,224,224,.68)}
.kpi{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.kpi .chip{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(180,190,190,.16);
  background: rgba(255,255,255,.02);
  color:rgba(220,224,224,.82);
  font-size:13px;
}
.topcards{display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; margin-top:12px}
@media (max-width: 980px){ .topcards{grid-template-columns:1fr 1fr} }
@media (max-width: 520px){ .topcards{grid-template-columns:1fr} }
.topcard{
  border:1px solid rgba(180,190,190,.16);
  background: rgba(0,0,0,.16);
  border-radius:14px;
  padding:12px;
}
.topcard .label{font-size:12px; color:rgba(220,224,224,.65); letter-spacing:.4px}
.topcard .name{margin-top:6px; font-weight:800}
.topcard .sub{margin-top:2px; font-size:13px; color:rgba(220,224,224,.72)}
/* ------------------------------
   Home landing (Background + simple hero)
   ------------------------------ */

body{ position: relative; isolation: isolate; }

body.body--home::before{
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("Background.png");
  background-size: cover;
  background-position: center top;
  opacity: .38;
  filter: brightness(1.20) contrast(1.08) saturate(1.10);
  transform: scale(1.02);
  z-index: -2;
  pointer-events: none;
}

body.body--home::after{
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 520px at 18% 15%, rgba(240,189,78,.16), transparent 60%),
    radial-gradient(900px 520px at 85% 18%, rgba(171,92,255,.14), transparent 60%),
    linear-gradient(180deg, rgba(10,12,16,.78), rgba(10,12,16,.90));
  opacity: .45;
  z-index: -1;
  pointer-events: none;
}

.brand__logo{ width: 28px; height: 28px; }

.home-landing{ padding: 26px 0 56px; }

.home-landing__card{
  padding: 26px;
  background: rgba(10,12,16,.62);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 20px 80px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.home-landing__badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.70);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  box-shadow: 0 0 0 4px rgba(240,189,78,.06), 0 0 28px rgba(240,189,78,.12);
}

.home-landing__title{
  margin: 14px 0 6px;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.home-landing__lead{
  margin: 0;
  max-width: 68ch;
  color: rgba(255,255,255,.82);
}

.home-landing__grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px){
  .home-landing__grid{ grid-template-columns: 1fr; }
}

.home-panel{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  backdrop-filter: blur(10px);
}

.home-panel__title{
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.72);
  margin-bottom: 10px;
}

.home-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.home-list li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255,255,255,.86);
}

.home-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-top: 6px;
  background: linear-gradient(90deg, rgba(240,189,78,1), rgba(255,210,122,1));
  box-shadow: 0 0 0 4px rgba(240,189,78,.08), 0 0 22px rgba(240,189,78,.18);
  flex: 0 0 auto;
}

.home-landing__note{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.70);
}
