/* Hide legacy/duplicate parts so only Nova UI stays visible */
.wrong-block,
#wrong-list,
#act-review,
#act-lesson,
#act-print,
#premium-modal,
#lesson-video-button { display:none !important; }

/* Nova UI styles (same base as before, minor tweaks) */
:root{
  --nz-border:rgba(148,163,184,.25);
}
#nova-summary{display:none;flex-direction:column;gap:18px;width:100%;max-width:980px;margin:0 auto;}
#nova-summary.nz-show{display:flex;}
.nz-row{display:flex;gap:14px;flex-wrap:wrap}
.nz-card{flex:1 1 200px;min-width:220px;background:#ffffff;border:2px solid var(--nz-border);border-radius:16px;padding:14px 16px;box-shadow:0 10px 24px rgba(2,6,23,.06)}
.nz-kpi{display:flex;align-items:center;justify-content:space-between}
.nz-kpi .label{font-weight:700;color:#111827;font-size:.95rem}
.nz-kpi .value{font-weight:900;font-size:1.4rem}
.nz-kpi .value.ok{color:#065f46}
.nz-kpi .value.warn{color:#92400e}
.nz-kpi .value.bad{color:#991b1b}
.nz-gauge{flex:2 1 280px;display:flex;align-items:center;justify-content:center;background:#ffffff;border:2px solid var(--nz-border);border-radius:16px;position:relative;min-height:170px}
.nz-gauge canvas{width:240px;height:240px;max-width:90%}
.nz-badge{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);font-weight:800;padding:6px 10px;border-radius:999px;border:2px solid #111827;background:#f8fafc;color:#111827}
.nz-wrong-list{display:grid;grid-template-columns:1fr;gap:12px}
.nz-item{
  background:#fff;
  border:2px solid rgba(226,232,240,.9);
  border-left:10px solid #ef4444;
  border-radius:16px;
  padding:14px 14px 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}
.nz-head{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.nz-qid{
  flex:0 0 auto;
  width:30px;
  height:30px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#fff;
  background:linear-gradient(135deg,#ef4444,#f97316);
  box-shadow:0 6px 14px rgba(239,68,68,.25);
}
.nz-head-text{ min-width:0; flex:1; }
.nz-head-title{
  font-size:.74rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:900;
  color:#64748b;
  margin-bottom:2px;
}
.nz-q{
  font-weight:900;
  color:#0f172a;
  line-height:1.3;
  word-break:break-word;
}
.nz-badge{
  flex:0 0 auto;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:.8rem;
  letter-spacing:.08em;
  color:#991b1b;
  background:linear-gradient(135deg, rgba(254,202,202,.9), rgba(254,226,226,.85));
  border:1px solid rgba(239,68,68,.25);
}

.nz-info{
  border-radius:14px;
  border:1px dashed rgba(148,163,184,.35);
  background:#f8fafc;
  padding:10px;
}
.nz-info-label{
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:6px;
}
.nz-info-img{
  width:100%;
  height:auto;
  border-radius:12px;
  border:1px solid rgba(226,232,240,.9);
  box-shadow:0 8px 18px rgba(2,6,23,.06);
}
.nz-info-text .nz-info-body{
  color:#0f172a;
  font-weight:800;
  line-height:1.35;
  white-space:pre-wrap;
}

.nz-rows{ display:flex; flex-direction:column; gap:8px; }
.nz-row{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:10px;
  align-items:start;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(226,232,240,.9);
  background:#ffffff;
}
@media (max-width:520px){
  .nz-row{ grid-template-columns:1fr; gap:6px; }
}
.nz-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:fit-content;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.35);
  font-weight:900;
  font-size:.78rem;
  letter-spacing:.04em;
}
.nz-you{background:#fee2e2;color:#991b1b}
.nz-true{background:#dcfce7;color:#065f46}
.nz-val{
  font-weight:900;
  color:#0f172a;
  line-height:1.35;
  word-break:break-word;
}
.nz-row--chosen{ background: linear-gradient(135deg, rgba(239,68,68,.06), #fff); border-color: rgba(239,68,68,.22); }
.nz-row--correct{ background: linear-gradient(135deg, rgba(34,197,94,.06), #fff); border-color: rgba(34,197,94,.22); }

.nz-exp{
  background:#f8fafc;
  border:1px solid rgba(226,232,240,.9);
  padding:10px;
  border-radius:14px;
  color:#0f172a;
}
.nz-exp-body{
  font-weight:800;
  line-height:1.45;
  white-space:pre-wrap;
}
.nz-actions{display:flex;gap:10px;flex-wrap:wrap}
.nz-btn{border:none;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer;box-shadow:0 6px 16px rgba(2,6,23,.12);transition:transform .12s ease}
.nz-btn:hover{transform:translateY(-1px)}
.nz-primary{background:#111827;color:#fff}
.nz-secondary{background:#f8fafc;border:2px solid var(--nz-border);color:#111827}
#nova-modal{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.62);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999999;
  padding:16px;
}
#nova-modal .modal-card{
  width:min(1000px,96%);
  max-height:86vh;
  overflow:auto;
  background:linear-gradient(165deg,#ffffff 0%, #f8fafc 55%, #ffffff 100%);
  border-radius:20px;
  border:1px solid rgba(226,232,240,.9);
  padding:16px;
  box-shadow:0 22px 70px rgba(0,0,0,.35);
}
.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
  gap:10px;
}
.modal-title{
  font-weight:900;
  font-size:1.1rem;
  color:#0f172a;
}
.modal-close{
  border:none;
  background:linear-gradient(135deg,#0f172a,#1e293b);
  color:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(15,23,42,.18);
}
.modal-list{display:flex;flex-direction:column;gap:12px}
@media (min-width:760px){
  .nz-wrong-list{grid-template-columns:1fr 1fr}
}
