:root{
  --bg:#07111f;
  --bg2:#0b1728;
  --card:#101f33;
  --card2:#13263d;
  --border:rgba(255,255,255,.08);
  --text:#eef6ff;
  --muted:#8fa6bd;
  --accent:#31d49a;
  --accent2:#45a8ff;
  --danger:#ff5d6c;
  --shadow:0 18px 45px rgba(0,0,0,.28);
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 15% 0%,rgba(69,168,255,.12),transparent 30%),
    radial-gradient(circle at 85% 10%,rgba(49,212,154,.08),transparent 28%),
    var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.topbar{
  height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 5%;
  border-bottom:1px solid var(--border);
  background:rgba(7,17,31,.82);
  backdrop-filter:blur(16px);
  position:sticky;
  top:0;
  z-index:10;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand-logo{
  width:70px;
  height:70px;
  object-fit:contain;
  flex-shrink:0;
  filter:drop-shadow(0 5px 14px rgba(0,0,0,.25));
}

.brand-mark{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:linear-gradient(135deg,var(--accent2),#6b5cff);
  color:white;
  font-weight:900;
  letter-spacing:-1px;
  box-shadow:0 8px 25px rgba(69,168,255,.25);
}

.brand h1{
  margin:0;
  font-size:21px;
  letter-spacing:.2px;
}

.brand p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:12px;
}

.status{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  border:1px solid var(--border);
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.5px;
}

.status span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--danger);
  box-shadow:0 0 10px rgba(255,93,108,.6);
}

.status.online{
  color:var(--accent);
  background:rgba(49,212,154,.07);
  border-color:rgba(49,212,154,.22);
}

.status.online span{
  background:var(--accent);
  box-shadow:0 0 12px rgba(49,212,154,.75);
}

.wrap{
  width:min(1400px,92%);
  margin:34px auto 50px;
}

.card{
  background:linear-gradient(145deg,rgba(19,38,61,.94),rgba(10,25,43,.94));
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow);
}

.hero{
  padding:32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:190px;
  overflow:hidden;
  position:relative;
}

.hero:after{
  content:"";
  position:absolute;
  width:280px;
  height:280px;
  border-radius:50%;
  right:-100px;
  top:-150px;
  background:rgba(69,168,255,.10);
  filter:blur(10px);
}

.hero-main{
  position:relative;
  z-index:1;
}

.eyebrow{
  color:var(--accent);
  font-size:11px;
  font-weight:900;
  letter-spacing:2px;
  margin-bottom:9px;
}

.hero h2{
  margin:0;
  font-size:clamp(28px,4vw,43px);
  letter-spacing:-1.5px;
}

.hero-main>p{
  color:var(--muted);
  margin:7px 0 20px;
}

.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.hero-badges span{
  padding:7px 10px;
  border-radius:8px;
  background:rgba(255,255,255,.05);
  color:var(--muted);
  font-size:10px;
  letter-spacing:.8px;
}

.hero-badges strong{
  color:var(--text);
  margin-left:5px;
}

.hero-uptime{
  position:relative;
  z-index:1;
  text-align:right;
}

.hero-uptime small,
.stat small,
.live-qso small{
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
}

.hero-uptime strong{
  display:block;
  margin-top:7px;
  font-size:24px;
}

.live-qso{
  margin-top:18px;
  padding:20px 24px;
  border-color:rgba(49,212,154,.20);
  background:
    linear-gradient(90deg,rgba(49,212,154,.08),rgba(19,38,61,.92));
}

.live-label{
  color:var(--accent);
  font-size:10px;
  font-weight:900;
  letter-spacing:1.5px;
  display:flex;
  align-items:center;
  gap:8px;
}

.live-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 13px rgba(49,212,154,.9);
  animation:pulse 1.7s infinite;
}

.qso-content{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-top:13px;
}

.qso-content strong{
  display:block;
  font-size:30px;
  letter-spacing:-1px;
}

.qso-info{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.qso-info span{
  background:rgba(255,255,255,.05);
  padding:7px 10px;
  border-radius:8px;
  color:#bfd1e3;
  font-size:12px;
}

.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin:18px 0;
}

.stat{
  padding:20px;
  display:flex;
  align-items:center;
  gap:15px;
}

.stat-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:rgba(69,168,255,.10);
  font-size:20px;
}

.stat strong{
  display:block;
  margin-top:5px;
  font-size:25px;
}

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

.panel{
  overflow:hidden;
}

.panel-head{
  min-height:76px;
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--border);
}

.panel-head h3{
  margin:0;
  font-size:16px;
}

.panel-head small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:9px;
  letter-spacing:1px;
}

.panel-head>span{
  color:var(--muted);
  font-size:11px;
}

.table-wrap{
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}

th{
  color:#7690aa;
  font-size:9px;
  letter-spacing:1px;
  text-transform:uppercase;
  text-align:left;
  padding:13px 16px;
  background:rgba(0,0,0,.10);
}

td{
  padding:13px 16px;
  border-top:1px solid rgba(255,255,255,.045);
  white-space:nowrap;
}

tbody tr{
  transition:background .2s;
}

tbody tr:hover{
  background:rgba(69,168,255,.055);
}

td b{
  color:#fff;
}

.dot{
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
  margin-right:8px;
  box-shadow:0 0 8px rgba(49,212,154,.7);
}

.callsigns{
  padding:20px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  min-height:100px;
}

.pill{
  padding:8px 11px;
  border-radius:9px;
  background:rgba(69,168,255,.09);
  border:1px solid rgba(69,168,255,.10);
  color:#c9e4ff;
  font-size:11px;
  font-weight:700;
}

.diag{
  padding:6px 20px 18px;
}

.diag>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:13px 0;
  border-bottom:1px solid rgba(255,255,255,.045);
  font-size:12px;
}

.diag>div:last-child{
  border-bottom:0;
}

.diag span{
  color:var(--muted);
}

.diag strong{
  color:#dbeaff;
  max-width:60%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.muted{
  color:var(--muted);
}

footer{
  margin-top:25px;
  padding:0 5px;
  display:flex;
  justify-content:space-between;
  gap:15px;
  color:#617a92;
  font-size:10px;
}

@keyframes pulse{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.45;transform:scale(.72)}
}

@media(max-width:900px){
  .stats{
    grid-template-columns:repeat(2,1fr);
  }

  .grid-2{
    grid-template-columns:1fr;
  }
}

@media(max-width:600px){
  .topbar{
    padding:0 4%;
  }

  .brand h1{
    font-size:18px;
  }

  .brand-logo{
    width:54px;
    height:54px;
  }

  .brand-mark{
    width:40px;
    height:40px;
  }

  .status{
    padding:8px 10px;
    font-size:10px;
  }

  .wrap{
    width:94%;
    margin-top:20px;
  }

  .hero{
    padding:24px;
    display:block;
  }

  .hero-uptime{
    margin-top:22px;
    text-align:left;
  }

  .qso-content{
    display:block;
  }

  .qso-info{
    justify-content:flex-start;
    margin-top:12px;
  }

  .stats{
    gap:10px;
  }

  .stat{
    padding:15px;
  }

  .stat strong{
    font-size:21px;
  }

  .stat-icon{
    width:38px;
    height:38px;
  }

  footer{
    flex-direction:column;
  }
}
