:root{
  --bg:#000000;
  --card:#121a2a;
  --muted:#93a4c7;
  --text:#e9efff;
  --accent:#6ea8ff;
  --accent2:#7cffc3;
  --border:rgba(255,255,255,.08);
  --shadow: 0 12px 40px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{ 
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue";
  background: var(--bg);
  color:var(--text);
  line-height:1.5;
  
  
}

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.hero{ margin: 10px 0 18px; }
.hero h1{
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing:.2px;
}
.muted{ color: var(--muted); }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 14px 0;
}

.note{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  font-size: 13px;
}

.row{
  display:flex;
  align-items:center;
  gap: 12px;
}
.space{ justify-content: space-between; }

.progress{
  min-width: 240px;
  display:flex;
  flex-direction: column;
  gap: 8px;
  align-items:flex-end;
}
.bar{
  width: 240px;
  height: 10px;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid var(--border);
}
.fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.quiz{
  margin-top: 12px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.q{
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
}
.q .title{
  font-weight: 450;
  line-height: 1.35;
  margin-bottom: 10px;
}
.scale{
  display:grid;
  grid-template-columns: repeat(5, minmax(20px, 1fr));
  gap: 8px;
}

.opt{ position:relative; }
.opt input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.opt label{
  display:flex;
  align-items:center;
  justify-content:center;
  height: 42px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  cursor:pointer;
  user-select:none;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.opt label:hover{
  transform: translateY(-1px);
  border-color: rgba(0, 102, 255, 0.35);
}
.opt input:checked + label{
  background: rgba(0, 61, 173, 0.18);
}

.legend{
  margin-top: 10px;
  display:flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.actions{
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  margin-top: 14px;
}

.btn{
  border: 1px solid rgba(110,168,255,.45);
  background: rgba(110,168,255,.18);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 650;
}
.btn:hover{ border-color: rgba(110,168,255,.8); }
.btn.ghost{
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}
.btn.ghost:hover{ color: var(--text); border-color: rgba(255,255,255,.18); }

.hint{
  margin: 10px 0 0;
  font-size: 13px;
}

.hidden{ display:none; }

.summary{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(0,0,0,.18);
  margin: 10px 0 14px;
}

.reasons, .all{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.reason{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(0,0,0,.18);
}
.reason .name{
  display:flex;
  align-items:baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 750;
}
.badge{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 999px;
}

.meter{
  height: 10px;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid var(--border);
  margin: 8px 0 10px;
}
.meter .mfill{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.reason p{
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.toggle{
  display:flex;
  align-items:center;
  gap: 8px;
}
.toggle input{ transform: translateY(1px); }

.footer{
  margin-top: 14px;
  text-align:center;
}
.hero{
  position: relative;
}

/* overlay-ul stă deasupra, ca să prindă click pe TOT hero-ul */
.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
}

/* dar butonul trebuie să fie și mai deasupra, ca să rămână clickabil normal */
.hero-actions,
.hero-actions a{
  position: relative;
  z-index: 4;
}
.home-sticky{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;

  background: #111;
  color: #e9efff;
  text-decoration: none;

  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;

  box-shadow: 0 6px 18px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.08);

  transition: transform .15s ease, background .15s ease;
}

.home-sticky:hover{
  transform: translateY(-2px);
  background:#1a1a1a;
}
#ADS {
  position: fixed;
  bottom: 12px;
  right: 12px;
  background: var(--accent);
  color: #000;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  z-index: 1000;
}