.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  width: min(680px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.headerLeft { display: flex; align-items: center; gap: 12px; }
.bundleIcon { font-size: 28px; }
.examLabel { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); }
.bundleName { font-size: 16px; font-weight: 700; color: var(--text); }
.closeBtn {
  background: none; border: none; cursor: pointer;
  color: var(--text-3); font-size: 18px; padding: 4px 8px;
  border-radius: 6px; transition: color 0.15s, background 0.15s;
}
.closeBtn:hover { color: var(--text); background: var(--surface3); }

/* Score hero */
.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}
.passed { background: var(--green-dim); }
.failed { background: var(--red-dim); }

.scoreRing { position: relative; width: 80px; height: 80px; flex-shrink: 0; }
.ring { width: 80px; height: 80px; transform: rotate(-90deg); }
.ringTrack { fill: none; stroke: var(--surface3); stroke-width: 6; }
.ringFill {
  fill: none; stroke-width: 6; stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}
.pctText {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--text);
}

.heroMeta { flex: 1; }
.verdict { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.verdictPass { color: var(--green); }
.verdictFail { color: var(--red); }
.heroStats { display: flex; gap: 8px; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.passMark { font-size: 11px; color: var(--text-3); }

/* Breakdown */
.breakdown {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.catGroup { display: flex; flex-direction: column; gap: 4px; }
.catTitle {
  font-size: 10px; font-weight: 800; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-3);
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 6px;
  font-size: 13px; color: var(--text-2);
  transition: background 0.1s;
}
.row:hover { background: var(--surface2); }
.rowDone { color: var(--text); }
.rowIcon { font-size: 14px; flex-shrink: 0; }
.rowTitle { flex: 1; }
.rowDiff { font-size: 11px; font-weight: 600; flex-shrink: 0; }
.rowPts { font-family: var(--mono); font-size: 12px; color: var(--text-3); flex-shrink: 0; min-width: 60px; text-align: right; }

/* Actions */
.actions {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
}
.retryBtn {
  padding: 8px 18px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 8px;
  font-size: 13px; font-weight: 700; font-family: var(--sans);
  cursor: pointer; transition: opacity 0.15s;
}
.retryBtn:hover { opacity: 0.85; }
.closeBtn2 {
  padding: 8px 18px;
  background: var(--surface3); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-weight: 600; font-family: var(--sans);
  cursor: pointer; transition: background 0.15s;
}
.closeBtn2:hover { background: var(--border); }
