:root{
  --bg:#0f172a;
  --panel:#ffffff;
  --soft:#f1f5f9;
  --text:#1e293b;
  --muted:#64748b;
  --blue:#2563eb;
  --blue2:#1d4ed8;
  --green:#16a34a;
  --red:#dc2626;
  --orange:#f97316;
  --border:#e2e8f0;
  --shadow:0 10px 30px rgba(15,23,42,.12);
}

*{
  box-sizing:border-box;
}

/*
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:radial-gradient(circle at top left,#1e3a8a 0,#0f172a 38%,#020617 100%);
  color:var(--text);
}
*/
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;

  background: radial-gradient(circle at top left, #1e3a8a, #0f172a);
  background-repeat: no-repeat;
  background-attachment: fixed;

  color:var(--text);
}

.wrapper{
  max-width:1250px;
  margin:0 auto;
  padding:24px;
}

/* TOPBAR SENZA LINEA */
.topbar{
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow);
  position:sticky;
  top:0;
  z-index:10;
}

.nav{
  max-width:1250px;
  margin:0 auto;
  padding:14px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  font-weight:800;
  font-size:20px;
  color:var(--blue);
}

.menu a{
  display:inline-block;
  margin:4px;
  padding:9px 13px;
  border-radius:10px;
  text-decoration:none;
  color:var(--text);
  background:var(--soft);
  font-weight:600;
}

.menu a:hover{
  background:#dbeafe;
  color:var(--blue2);
}

/* CARD SENZA LINEE ORIZZONTALI */
.card{
  background:rgba(255,255,255,.98);
  border:1px solid transparent;
  border-radius:18px;
  padding:22px;
  margin:18px 0;
  box-shadow:0 20px 40px rgba(0,0,0,0.12);
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
}

.stat{
  background:var(--soft);
  border-radius:16px;
  padding:16px;
}

.stat .label{
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
}

.stat .value{
  font-size:20px;
  font-weight:800;
  margin-top:8px;
  word-break:break-all;
}

/* BUTTONS */
.btn{
  display:inline-block;
  border:0;
  background:var(--blue);
  color:white!important;
  padding:10px 14px;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
  margin:4px 4px 4px 0;
}

.btn:hover{
  background:var(--blue2);
}

.btn.gray{background:#475569;}
.btn.red{background:var(--red);}
.btn.green{background:var(--green);}

/* BADGES */
.badge{
  display:inline-block;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}

.badge.ok{background:#dcfce7;color:#166534;}
.badge.ko{background:#fee2e2;color:#991b1b;}
.badge.warn{background:#ffedd5;color:#9a3412;}

/* TABLE */
.table-wrap{
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:1050px;
}

table th, table td{
  padding:12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:middle;
}

th{
  background:#f8fafc;
  color:#334155;
  font-size:13px;
  text-transform:uppercase;
}

/* CODE */
code{
  background:#e2e8f0;
  padding:3px 7px;
  border-radius:8px;
  font-size:12px;
  word-break:break-all;
}

/* FORM */
input,textarea,select{
  width:100%;
  padding:11px;
  border:1px solid var(--border);
  border-radius:12px;
  margin:6px 0 14px;
}

h1,h2,h3{
  margin-top:0;
}

/* FOOTER */
.footer{
  color:white;
  text-align:center;
  padding:25px;
  opacity:.8;
}

/* QR */
.qr img{
  max-width:240px;
  width:100%;
  height:auto;
}

/* NOTICE */
.notice{
  padding:12px 14px;
  border-radius:12px;
  background:#dbeafe;
  border:1px solid #bfdbfe;
  color:#1e40af;
  margin:12px 0;
}

/* RIMUOVE LINEE HR */
hr{
  display:none !important;
  border:0 !important;
}

/* MOBILE */
@media(max-width:700px){
  .nav{display:block;}
  .menu{margin-top:12px;}
  .wrapper{padding:14px;}
}

/* Scorpunix logo */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 42px;
    width: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 170, 255, 0.45));
}

@media (max-width: 700px) {
    .brand-logo {
        height: 34px;
        width: 34px;
    }

    .brand span {
        font-size: 15px;
    }
}
