/* =========================================================
   MNEVI FRONTEND – CYBER EDITION
   Layout invariato – Solo colori aggiornati
   ========================================================= */

:root{
  --bg: #070b14;
  --card: rgba(255,255,255,.05);
  --card2: rgba(255,255,255,.08);
  --stroke: rgba(0,255,255,.20);
  --text: rgba(230,250,255,.92);
  --muted: rgba(200,240,255,.65);

  --green: #00f0ff;
  --green2:#009dff;
  --greenSoft: rgba(0,240,255,.18);

  --danger:#ff4d6d;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --radius2: 14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(900px 600px at 12% 10%, rgba(0,240,255,.18), transparent 55%),
    radial-gradient(900px 600px at 88% 18%, rgba(0,157,255,.14), transparent 55%),
    radial-gradient(1000px 700px at 50% 90%, rgba(255,255,255,.06), transparent 60%),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7,11,20,.55);
  border-bottom: 1px solid rgba(0,255,255,.15);
}

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

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
  letter-spacing:.04em;
}

.logo-badge{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00f0ff, #009dff);
  box-shadow: 0 10px 30px rgba(0,240,255,.30);
}

.links{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.links a{
  padding: 8px 10px;
  border-radius: 12px;
  color: rgba(230,250,255,.82);
  border: 1px solid transparent;
}

.links a:hover{
  text-decoration:none;
  background: rgba(0,240,255,.08);
  border-color: rgba(0,240,255,.20);
}

/* Layout */
.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 18px 54px;
}

.page{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
  margin-top: 32px;
}

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

.card{
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 24px;
}

.card h1{
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.card h2{
  margin: 0 0 10px;
  font-size: 18px;
  color: rgba(230,250,255,.90);
}

.muted{ color: var(--muted); }
.small{ font-size: 13px; }

.hero{
  padding: 26px;
}

.hero p{
  margin: 0;
  line-height: 1.5;
}

/* Forms */
form{ margin-top: 14px; }

label{
  display:block;
  font-size: 13px;
  color: rgba(230,250,255,.78);
  margin: 14px 0 8px;
}

input[type="email"],
input[type="text"],
input[type="file"]{
  width: 100%;
  padding: 12px;
  border-radius: var(--radius2);
  border: 1px solid rgba(0,255,255,.25);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline: none;
}

input::placeholder{
  color: rgba(200,240,255,.45);
}

input:focus{
  border-color: rgba(0,240,255,.55);
  box-shadow: 0 0 0 4px rgba(0,240,255,.15);
}

.row{
  display:flex;
  gap: 10px;
}

.row > *{ flex: 1; }

@media (max-width: 520px){
  .row{ flex-direction: column; }
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,255,255,.25);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}

.btn:hover{
  background: rgba(0,240,255,.08);
}

.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.btn-primary{
  background: linear-gradient(135deg, #00f0ff, #009dff);
  border-color: rgba(0,240,255,.28);
  color: #001317;
  font-weight: 800;
  box-shadow: 0 14px 40px rgba(0,240,255,.25);
}

.notice{
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,255,255,.20);
  background: rgba(0,240,255,.06);
}

.notice.err{
  border-color: rgba(255,77,109,.30);
  background: rgba(255,77,109,.10);
}

.kpi{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,255,255,.20);
  background: rgba(255,255,255,.05);
}

.footer{
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid rgba(0,255,255,.15);
  font-size: 14px;
  opacity: 0.8;
}