:root{
  --blue:#0a1f3d; /* primario */
  --red:#e53437;  /* accent */
  --gray:#767d8f;

  --bg:#f6f7fb;
  --border:rgba(10,31,61,.14);
  --shadow:0 14px 30px rgba(10,31,61,.12);
  --radius:18px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  padding:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--blue);
  background:
    radial-gradient(1100px 520px at 18% 0%, rgba(10,31,61,.16), transparent 58%),
    radial-gradient(900px 520px at 92% 8%, rgba(229,52,55,.14), transparent 60%),
    var(--bg);
}

.page{
  max-width:1040px;
  margin:0 auto;
  padding:28px 18px 92px; /* spazio per footer */
}

header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:10px;
}

.title{
  display:flex;
  flex-direction:column;
  gap:6px;
}

h1{
  margin:0;
  font-size:30px;
  line-height:1.12;
  letter-spacing:-0.02em;
  font-weight:900;
  color:var(--blue);
}

.subtitle{
  margin:0;
  color:rgba(10,31,61,.72);
  font-size:14px;
}

/* Logo */
.logoWrapper{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.gelLogo{
  height:42px;
  width:auto;
  object-fit:contain;
  filter: drop-shadow(0 6px 14px rgba(10,31,61,.15));
  transition: transform .2s ease;
}
.gelLogo:hover{
  transform: scale(1.04);
}

/* Status pill */
.statusBar{
  display:flex;
  justify-content:flex-start;
  margin:8px 0 16px;
}

.statusPill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(10,31,61,.06);
  border:1px solid rgba(10,31,61,.10);
  color:rgba(10,31,61,.86);
  font-size:13px;
  font-weight:800;
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:rgba(118,125,143,.55);
  box-shadow:0 0 0 4px rgba(10,31,61,.06);
}
.dot.ok{ background:rgba(0,214,107,.9); }
.dot.err{ background:var(--red); }

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

@media (max-width:900px){
  .grid{ grid-template-columns:1fr; }
  .page{ padding-bottom:110px; }
}

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}

.cardStripe{
  position:absolute;
  top:0; left:0; right:0;
  height:5px;
  background:linear-gradient(90deg, var(--blue), rgba(10,31,61,.75), var(--red));
  opacity:.95;
}

.cardHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(10,31,61,.10);
}

.cardTitle{
  margin:0;
  font-size:15px;
  letter-spacing:-0.01em;
  color:var(--blue);
  font-weight:900;
}

.hint{
  margin:0 0 14px;
  font-size:13px;
  color:rgba(10,31,61,.70);
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
}

label{
  font-size:12px;
  color:rgba(10,31,61,.78);
  font-weight:800;
}

input, select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--blue);
  outline:none;
  font-size:14px;
  transition:box-shadow .15s ease, border-color .15s ease;
}

input::placeholder{ color:rgba(118,125,143,.9); }

input:focus, select:focus{
  border-color:rgba(229,52,55,.65);
  box-shadow:0 0 0 4px rgba(229,52,55,.16);
}

.row{
  display:flex;
  gap:10px;
  align-items:end;
}
.row > .field{ flex:1; margin-bottom:0; }

.btn{
  appearance:none;
  border:0;
  border-radius:12px;
  padding:12px 14px;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  transition:transform .05s ease, box-shadow .15s ease, opacity .15s ease;
  user-select:none;
  letter-spacing:.01em;
}
.btn:active{ transform:translateY(1px); }

.btn-primary{
  width:100%;
  background:linear-gradient(180deg, rgba(10,31,61,1), rgba(6,16,33,1));
  color:#fff;
  box-shadow:0 16px 30px rgba(10,31,61,.22);
  border:1px solid rgba(255,255,255,.12);
  position:relative;
  overflow:hidden;
  padding:14px 16px;
  font-size:15px;
}
.btn-primary::after{
  content:"";
  position:absolute;
  left:16px; right:16px; bottom:0;
  height:3px;
  border-radius:999px;
  background:var(--red);
  opacity:.95;
}

.btn-secondary{
  background:rgba(10,31,61,.08);
  color:var(--blue);
  border:1px solid rgba(10,31,61,.16);
  white-space:nowrap;
}

.actions{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.micro{
  font-size:12px;
  color:rgba(10,31,61,.68);
  margin:0;
}

/* Footer solo copyright */
.footerBar{
  position:fixed;
  left:0; right:0; bottom:0;
  background:rgba(246,247,251,.86);
  backdrop-filter:blur(10px);
  border-top:1px solid rgba(10,31,61,.14);
  padding:12px 14px;
  z-index:10;
}

.footerInner{
  max-width:1040px;
  margin:0 auto;
  display:flex;
  justify-content:center;
  font-size:12px;
  color:rgba(10,31,61,.70);
  font-weight:700;
}