:root {
  --bg: #06100f;
  --surface: #0b1715;
  --surface-2: #101e1b;
  --surface-3: #142522;
  --border: #223733;
  --border-bright: #36534d;
  --text: #f2f8f5;
  --muted: #8fa59f;
  --green: #a4f52b;
  --green-2: #75d91f;
  --green-soft: rgba(164, 245, 43, .12);
  --cyan: #31e6c8;
  --cyan-soft: rgba(49, 230, 200, .11);
  --blue: #58a9ff;
  --yellow: #ffc85a;
  --yellow-soft: rgba(255, 200, 90, .13);
  --red: #ff667c;
  --red-soft: rgba(255, 102, 124, .12);
  --shadow: 0 24px 80px rgba(0, 0, 0, .36);
  --mono: "JetBrains Mono", Consolas, monospace;
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
code, pre { font-family: var(--mono); }
.hidden { display: none !important; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; animation: fade-in .3s ease; }
.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes radar-sweep { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(164,245,43,0); } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.5px;
  text-decoration: none;
}
.brand > span:last-child span { color: var(--green); }
.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #071008;
  background: var(--green);
  border-radius: 10px;
  box-shadow: 0 0 28px rgba(164, 245, 43, .18);
  font: 700 14px var(--mono);
}
.brand.compact { font-size: 18px; }
.brand.compact .brand-mark { width: 35px; height: 35px; border-radius: 8px; }
.top-nav, .result-nav {
  position: relative;
  z-index: 2;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 13px;
}
.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 1.8s ease infinite;
}

#welcome-screen {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 78% 24%, rgba(49, 230, 200, .09), transparent 25%),
    linear-gradient(rgba(164, 245, 43, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164, 245, 43, .022) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
#welcome-screen::before {
  content: "";
  position: absolute;
  top: 190px;
  left: -300px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: rgba(164, 245, 43, .055);
  filter: blur(90px);
}
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 126px);
  padding: 70px 0 90px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: 76px;
}
.eyebrow, .section-kicker, .card-label, .certificate-kicker {
  margin: 0 0 18px;
  color: var(--green);
  font: 700 11px var(--mono);
  letter-spacing: 1.8px;
}
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -4px;
}
.hero h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px #97afa8;
}
.hero-text {
  max-width: 620px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.exam-meta { display: flex; margin-bottom: 34px; }
.exam-meta div {
  min-width: 122px;
  padding: 0 26px;
  border-left: 1px solid var(--border);
}
.exam-meta div:first-child { padding-left: 0; border-left: 0; }
.exam-meta strong { display: block; font: 700 24px var(--mono); }
.exam-meta span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.start-form { max-width: 610px; }
.start-form label {
  display: block;
  margin-bottom: 9px;
  color: #c5d4d0;
  font-size: 13px;
  font-weight: 600;
}
.input-row { display: grid; grid-template-columns: 1fr 205px; gap: 10px; }
.input-row input {
  width: 100%;
  min-width: 0;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(8, 19, 17, .8);
  border: 1px solid var(--border-bright);
  border-radius: 9px;
  outline: 0;
  transition: .2s ease;
}
.input-row input::placeholder { color: #60766f; }
.input-row input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.input-row input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.form-error { min-height: 18px; margin: 7px 0 0; color: var(--red); font-size: 12px; }
.fine-print { margin: 8px 0 0; color: #617770; font-size: 11px; }
.fine-print a { margin-left: 5px; color: var(--green); text-decoration: none; }
.fine-print a:hover { text-decoration: underline; }

.primary-btn, .secondary-btn, .danger-btn, .warning-btn, .ghost-btn, .text-btn, .icon-btn {
  border-radius: 9px;
  transition: .2s ease;
}
.primary-btn {
  min-width: 190px;
  padding: 15px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: #0a130a;
  background: var(--green);
  border: 1px solid var(--green);
  box-shadow: 0 12px 35px rgba(164, 245, 43, .12);
  font-weight: 700;
}
.primary-btn:hover { background: #b7ff49; border-color: #b7ff49; transform: translateY(-1px); }
.primary-btn.small { min-width: 150px; padding: 12px 17px; }
.primary-btn:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.secondary-btn {
  padding: 12px 17px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  font-weight: 600;
}
.secondary-btn:hover { border-color: #67827b; background: var(--surface-3); }
.secondary-btn:disabled { opacity: .38; cursor: not-allowed; }
.danger-btn {
  padding: 11px 16px;
  color: #ffb6c1;
  background: var(--red-soft);
  border: 1px solid rgba(255, 102, 124, .35);
  font-weight: 700;
}
.danger-btn:hover { color: #fff; background: rgba(255, 102, 124, .22); }
.warning-btn {
  padding: 12px 16px;
  color: var(--yellow);
  background: var(--yellow-soft);
  border: 1px solid rgba(255, 200, 90, .28);
  font-weight: 700;
}
.warning-btn:hover { background: rgba(255, 200, 90, .2); }
.ghost-btn {
  padding: 8px 12px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(164,245,43,.22);
  font-size: 12px;
  font-weight: 700;
}
.ghost-btn:hover { background: rgba(164,245,43,.18); }
.text-btn {
  padding: 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 13px;
}
.text-btn:hover { color: var(--text); }
.danger-text { color: var(--red); }
.icon-btn {
  width: 42px;
  height: 42px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 25px;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-bright); }

.terminal-card {
  position: relative;
  min-height: 465px;
  overflow: hidden;
  border: 1px solid #2a433e;
  border-radius: 17px;
  background: rgba(7, 17, 15, .9);
  box-shadow: var(--shadow), inset 0 0 90px rgba(49, 230, 200, .025);
  transform: perspective(1000px) rotateY(-3deg);
}
.terminal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(transparent 0 3px, rgba(255,255,255,.012) 4px);
}
.terminal-bar {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b827b;
  border-bottom: 1px solid var(--border);
  font: 500 11px var(--mono);
}
.terminal-dots { position: absolute; left: 18px; display: flex; gap: 7px; }
.terminal-dots i { width: 8px; height: 8px; border-radius: 50%; background: #38504a; }
.terminal-dots i:first-child { background: #ff657a; }
.terminal-dots i:nth-child(2) { background: #ffc457; }
.terminal-dots i:nth-child(3) { background: #7cde43; }
.terminal-body { padding: 31px; color: #bfd2cd; font: 500 12px/1.9 var(--mono); }
.terminal-body b, .terminal-ready { color: var(--green); }
.terminal-body .muted { margin-bottom: 24px; color: #536d66; }
.terminal-body .cyan { color: var(--cyan); }
.terminal-table {
  margin: 19px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 3px 14px;
  color: #708a83;
}
.terminal-table strong { color: #c9dad5; font-weight: 500; }
.terminal-ready { margin-top: 25px; padding-top: 19px; border-top: 1px solid var(--border); letter-spacing: 1px; }
.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 7px;
  vertical-align: -3px;
  background: var(--green);
  animation: blink 1s steps(1) infinite;
}
.scan-radar {
  position: absolute;
  right: -50px;
  bottom: -55px;
  width: 185px;
  height: 185px;
  border: 1px solid rgba(49, 230, 200, .13);
  border-radius: 50%;
}
.scan-radar span { position: absolute; inset: 28px; border: 1px solid rgba(49,230,200,.1); border-radius: 50%; }
.scan-radar span:nth-child(2) { inset: 56px; }
.scan-radar span:nth-child(3) { inset: 83px; }
.scan-radar i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform-origin: left;
  animation: radar-sweep 4s linear infinite;
}
.topics-strip {
  position: relative;
  z-index: 1;
  min-height: 50px;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  color: #789089;
  background: rgba(8, 18, 16, .92);
  border-block: 1px solid var(--border);
  font: 600 10px var(--mono);
  letter-spacing: 1.2px;
}
.topics-strip i { width: 4px; height: 4px; background: var(--green); border-radius: 50%; }

.seo-content { position: relative; z-index: 1; padding-block: 115px 55px; }
.seo-content h2 {
  margin: 0 0 24px;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -2px;
}
.seo-content h3 { margin: 0; }
.seo-content p { color: #a5b8b3; font-size: 16px; line-height: 1.83; }
.seo-content code {
  padding: 2px 6px;
  color: var(--cyan);
  background: var(--cyan-soft);
  border-radius: 4px;
  font-size: .86em;
}
.seo-intro { max-width: 900px; }
.seo-intro p { font-size: 17px; }
.seo-feature-grid, .content-split, .seo-guide, .benefits-panel, .seo-learning, .seo-audience, .seo-faq {
  margin-top: 115px;
  padding-top: 100px;
  border-top: 1px solid var(--border);
}
.seo-feature-grid > div:first-child { max-width: 750px; }
.feature-grid {
  margin-top: 45px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.feature-grid article {
  min-height: 175px;
  padding: 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(11, 23, 21, .5);
}
.feature-grid article > span { color: var(--green); font: 600 11px var(--mono); }
.feature-grid h3 { margin-top: 25px; font-size: 19px; }
.feature-grid p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.content-split {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 85px;
  align-items: start;
}
.content-split > div:first-child { position: sticky; top: 35px; }
.topic-list { border-top: 1px solid var(--border); }
.topic-list article {
  padding: 22px 5px;
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 15px;
  border-bottom: 1px solid var(--border);
}
.topic-list b { color: var(--green); font: 600 12px var(--mono); }
.topic-list h3 { font-size: 17px; }
.topic-list p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.seo-guide { max-width: 970px; }
.benefits-panel {
  padding: 55px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  background: linear-gradient(145deg, rgba(16,31,28,.94), rgba(8,18,16,.94));
  border: 1px solid var(--border);
  border-radius: 18px;
}
.benefits-panel h2 { font-size: clamp(30px, 3.4vw, 43px); }
.check-list { margin: 0; padding: 0; list-style: none; align-self: center; }
.check-list li {
  padding: 15px 0;
  display: flex;
  gap: 13px;
  color: #c2d1cd;
  border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: 0; }
.check-list span { color: var(--green); font-weight: 700; }
.seo-learning > h2 { max-width: 850px; }
.learning-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.learning-grid article {
  padding: 30px;
  background: rgba(11, 23, 21, .58);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.learning-grid h3 { font-size: 20px; line-height: 1.35; }
.learning-grid p { margin-bottom: 0; font-size: 14px; }
.seo-audience {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 75px;
}
.seo-audience p:first-child { margin-top: 0; }
.seo-faq { max-width: 900px; }
.faq-list { margin-top: 38px; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  padding: 22px 0;
  color: #dce7e4;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--green); font: 500 22px var(--mono); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -5px 0 23px; font-size: 14px; }
.seo-footer {
  margin-top: 105px;
  padding: 42px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  border-top: 1px solid var(--border);
}
.seo-footer p { max-width: 580px; margin-bottom: 0; color: var(--muted); font-size: 13px; }
.footer-link { color: var(--green); text-decoration: none; font-weight: 700; }
.footer-link:hover { text-decoration: underline; }

#exam-screen { background: #081210; }
.exam-header {
  min-height: 72px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 30px;
  background: rgba(7, 16, 15, .97);
  border-bottom: 1px solid var(--border);
}
.header-candidate, .timer { display: flex; flex-direction: column; }
.header-candidate small, .timer small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.header-candidate strong { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.timer { min-width: 92px; padding-left: 22px; border-left: 1px solid var(--border); }
.timer strong { color: var(--green); font: 700 18px var(--mono); }
.timer.warning strong { color: var(--yellow); }
.timer.critical strong { color: var(--red); animation: blink 1s steps(1) infinite; }
.exam-layout {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 310px 1fr;
}
.exam-sidebar {
  padding: 25px;
  background: #0a1513;
  border-right: 1px solid var(--border);
}
.progress-card { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.progress-heading { margin-bottom: 10px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.progress-heading strong { color: var(--text); font-family: var(--mono); }
.progress-track { height: 5px; overflow: hidden; background: #182724; border-radius: 99px; }
.progress-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--green-2), var(--green)); transition: width .25s ease; }
.live-stats {
  padding: 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.live-stats div { padding: 11px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; }
.live-stats span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.live-stats strong { display: block; margin-top: 3px; font: 700 18px var(--mono); }
.live-stats div:first-child strong { color: var(--cyan); }
.live-stats div:nth-child(2) strong { color: var(--muted); }
.live-stats div:nth-child(3) strong { color: var(--yellow); }
.question-map-heading { padding: 20px 0 12px; display: flex; justify-content: space-between; align-items: center; }
.question-map-heading h2 { margin: 0; font-size: 13px; }
.question-map-heading button { color: var(--muted); background: transparent; border: 0; font-size: 11px; }
.question-map {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  max-height: calc(100vh - 415px);
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-color: #35514b transparent;
  scrollbar-width: thin;
}
.question-map button {
  aspect-ratio: 1;
  color: #80948f;
  background: #101d1b;
  border: 1px solid #20322f;
  border-radius: 6px;
  font: 600 10px var(--mono);
}
.question-map button:hover { color: var(--text); border-color: var(--border-bright); }
.question-map button.answered { color: #061311; background: var(--cyan); border-color: var(--cyan); }
.question-map button.skipped { color: #221a03; background: var(--yellow); border-color: var(--yellow); }
.question-map button.active { outline: 2px solid var(--cyan); outline-offset: 2px; }
.map-legend { padding-top: 15px; display: flex; flex-wrap: wrap; gap: 10px; color: #70847f; font-size: 9px; }
.map-legend span { display: flex; align-items: center; gap: 5px; }
.map-legend i { width: 7px; height: 7px; border-radius: 2px; background: #20322f; }
.map-legend i.answered { background: var(--cyan); }
.map-legend i.skipped { background: var(--yellow); }
.question-panel {
  width: min(960px, calc(100% - 70px));
  margin: 0 auto;
  padding: 55px 0 45px;
}
.question-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; }
.question-position { color: var(--green); font: 700 12px var(--mono); }
.question-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.question-badges span {
  padding: 6px 9px;
  color: #a9bbb6;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 10px;
}
.question-badges .difficulty.easy { color: var(--green); }
.question-badges .difficulty.medium { color: var(--yellow); }
.question-badges .difficulty.hard { color: var(--red); }
.question-panel > h1 {
  max-width: 880px;
  margin: 30px 0 28px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.28;
  letter-spacing: -1px;
}
.code-block {
  position: relative;
  margin: 0 0 26px;
  padding: 23px 25px;
  overflow-x: auto;
  color: #c8e0d9;
  background: #050c0b;
  border: 1px solid #28433d;
  border-radius: 10px;
  box-shadow: inset 3px 0 var(--green);
  font: 500 13px/1.65 var(--mono);
  white-space: pre-wrap;
}
.code-block::before {
  content: "TERMINAL";
  position: absolute;
  top: 7px;
  right: 9px;
  color: #48635c;
  font: 600 8px var(--mono);
  letter-spacing: 1px;
}
.multi-hint { margin: -8px 0 17px; color: var(--yellow); font-size: 12px; }
.options { display: grid; gap: 11px; }
.option {
  width: 100%;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 13px;
  text-align: left;
  color: #c9d7d3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: .18s ease;
}
.option:hover { color: var(--text); background: var(--surface-2); border-color: #47635c; transform: translateX(2px); }
.option.selected { color: var(--text); background: var(--cyan-soft); border-color: var(--cyan); }
.option-key {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #7e938d;
  background: #13211f;
  border: 1px solid #2a3e3a;
  border-radius: 7px;
  font: 600 11px var(--mono);
}
.option.selected .option-key { color: #061311; background: var(--cyan); border-color: var(--cyan); }
.option-text { overflow-wrap: anywhere; line-height: 1.45; }
.option-text code { color: var(--cyan); font-size: 12px; }
.question-actions {
  margin-top: 30px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--border);
}
.question-actions .text-btn { justify-self: start; }

#result-screen {
  background:
    radial-gradient(circle at 80% 10%, rgba(49, 230, 200, .06), transparent 28%),
    #07110f;
}
.report-label { color: #6d837d; font: 600 10px var(--mono); letter-spacing: 1.5px; }
.result-wrap { padding-block: 70px 80px; }
.result-hero {
  margin-bottom: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}
.result-hero h1 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -3px; }
.result-hero p:not(.section-kicker) { max-width: 650px; color: var(--muted); font-size: 16px; }
.score-ring {
  --score: 0;
  flex: 0 0 auto;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--score) * 1%), #1b2b27 0);
  box-shadow: 0 0 60px rgba(164,245,43,.08);
}
.score-ring::before {
  content: "";
  grid-area: 1/1;
  width: 138px;
  height: 138px;
  background: #0b1715;
  border-radius: 50%;
}
.score-ring > div { position: relative; grid-area: 1/1; text-align: center; }
.score-ring strong { font: 700 45px var(--mono); }
.score-ring span { display: block; color: var(--muted); font-size: 11px; }
.score-ring.failed { background: conic-gradient(var(--red) calc(var(--score) * 1%), #1b2b27 0); }
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.report-card {
  padding: 28px;
  background: rgba(12, 25, 22, .88);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.report-card h2 { margin: 0; font-size: 25px; }
.report-card dl { margin: 24px 0 0; }
.report-card dl div {
  padding: 9px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}
.report-card dl div:last-child { border-bottom: 0; }
.report-card dt { color: var(--muted); font-size: 12px; }
.report-card dd { margin: 0; text-align: right; font: 600 12px var(--mono); }
.big-stats { margin-top: 25px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.big-stats div { padding: 16px 10px; text-align: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; }
.big-stats strong { display: block; font: 700 27px var(--mono); }
.big-stats span { color: var(--muted); font-size: 10px; }
.big-stats div:first-child strong { color: var(--green); }
.big-stats div:nth-child(2) strong { color: var(--red); }
.big-stats div:nth-child(4) strong { color: var(--yellow); }
.level-card { text-align: center; }
.level-icon {
  width: 58px;
  height: 58px;
  margin: 15px auto;
  display: grid;
  place-items: center;
  color: #081006;
  background: var(--green);
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(164,245,43,.12);
  font: 700 18px var(--mono);
}
.level-card p { margin: 8px 0 18px; color: var(--muted); }
.level-card p strong { color: var(--cyan); font-family: var(--mono); }
.pass-row { padding-top: 15px; display: flex; justify-content: space-between; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.pass-row b { color: var(--green); }
.pass-row b.failed { color: var(--red); }
.analysis-card, .insight-card, .certificate { margin-top: 15px; }
.card-heading { display: flex; justify-content: space-between; gap: 25px; align-items: end; }
.card-heading h2 { margin-top: 5px; }
.analysis-note { color: var(--muted); font-size: 11px; }
.category-analysis { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 17px 35px; }
.category-row-head { margin-bottom: 8px; display: flex; justify-content: space-between; gap: 15px; font-size: 12px; }
.category-row-head span { color: #c5d4d0; }
.category-row-head strong { color: var(--green); font-family: var(--mono); }
.category-bar { height: 7px; overflow: hidden; background: #1a2926; border-radius: 99px; }
.category-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-2), var(--green)); border-radius: inherit; }
.category-row.low .category-row-head strong { color: var(--red); }
.category-row.low .category-bar i { background: var(--red); }
.category-row.medium .category-row-head strong { color: var(--yellow); }
.category-row.medium .category-bar i { background: var(--yellow); }
.insight-card { display: grid; grid-template-columns: 60px 1fr; gap: 22px; align-items: start; }
.insight-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(49,230,200,.25);
  border-radius: 14px;
  font: 700 15px var(--mono);
}
.insight-card h2 { margin: 4px 0 10px; }
.insight-card p { margin: 0; color: #a6b9b4; line-height: 1.75; }
.certificate {
  position: relative;
  padding: 14px;
  color: #17312b;
  background: linear-gradient(135deg, #b7d2c8, #e8f0eb 48%, #a8c9bd);
  border: 1px solid #557b70;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .2);
  overflow: hidden;
}
.certificate::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background:
    radial-gradient(circle at 8% 12%, #4f8876 0 2px, transparent 3px),
    radial-gradient(circle at 92% 88%, #4f8876 0 2px, transparent 3px);
  background-size: 28px 28px;
}
.certificate-inner {
  position: relative;
  min-height: 530px;
  padding: 47px 58px;
  border: 1px solid #668b80;
  outline: 1px solid rgba(83, 120, 109, .42);
  outline-offset: -9px;
  background:
    radial-gradient(circle at 50% 25%, rgba(164,245,43,.08), transparent 30%),
    rgba(246, 250, 247, .97);
  text-align: center;
}
.certificate-top { display: flex; justify-content: space-between; align-items: center; }
.certificate-brand { color: #163029; }
.certificate-status {
  padding: 8px 15px;
  color: #1a4d37;
  border: 1px solid #2d7956;
  font: 700 12px var(--mono);
  letter-spacing: 1.4px;
}
.certificate-status.failed { color: #8b3744; border-color: #ad5965; }
.certificate-kicker { margin-top: 52px; color: #4e786d; letter-spacing: 2.6px; }
.certificate h2 { margin: 0; color: #17352e; font: 500 clamp(29px, 4vw, 45px) Georgia, "Times New Roman", serif; letter-spacing: -.7px; }
.certificate p { color: #637b74; }
.certificate h3 { margin: 20px auto 14px; color: #17352e; font: 500 clamp(32px, 5vw, 54px) Georgia, "Times New Roman", serif; border-bottom: 1px solid #91aaa2; width: min(650px, 90%); }
.certificate-score { margin: 35px auto 45px; display: flex; justify-content: center; gap: 0; }
.certificate-score div { min-width: 180px; padding: 0 25px; border-left: 1px solid #a4b7b1; }
.certificate-score div:first-child { border-left: 0; }
.certificate-score strong { display: block; color: #17352e; font: 700 20px var(--mono); }
.certificate-score span { color: #748b84; font-size: 11px; }
.certificate-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 18px; color: #748b84; font: 500 10px var(--mono); }
.certificate-bottom a { color: #275d4c; text-decoration: none; }
.certificate-bottom > a { text-align: right; }
.certificate-digital-approval {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #315b50;
  text-align: left;
}
.certificate-digital-approval > i {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #173b31;
  background: #a4f52b;
  border: 1px solid #6da927;
  border-radius: 50%;
  font: 700 14px var(--mono);
  font-style: normal;
  box-shadow: 0 0 0 4px rgba(164,245,43,.15);
}
.certificate-digital-approval > span { display: grid; gap: 3px; }
.certificate-digital-approval strong { color: #264d42; font: 700 9px var(--sans); }
.certificate-digital-approval small { color: #728981; font: 600 7px var(--mono); }
.certificate-digital-approval small b { color: #315d50; }
.result-actions { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.pdf-action-btn {
  min-width: 235px;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}
.pdf-action-btn > span { display: grid; gap: 3px; }
.pdf-action-btn small {
  color: inherit;
  opacity: .66;
  font: 600 8px var(--mono);
  letter-spacing: 1.1px;
}
.pdf-action-btn b { font: 700 22px var(--mono); }
.pdf-action-btn.loading { cursor: wait; opacity: .8; }
.pdf-spinner {
  width: 19px;
  height: 19px;
  border: 2px solid rgba(7,16,15,.22);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: pdf-spin .8s linear infinite;
}
@keyframes pdf-spin { to { transform: rotate(360deg); } }

.pdf-export-root {
  position: fixed;
  top: 0;
  left: -20000px;
  z-index: -1000;
  width: 1px;
  height: 1px;
  overflow: visible;
  pointer-events: none;
}
.pdf-page {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  color: #17312c;
  background: #f4f7f5;
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.pdf-page *, .pdf-page *::before, .pdf-page *::after { box-sizing: border-box; }
.pdf-report-page {
  width: 794px;
  height: 1123px;
  padding: 42px 48px 54px;
  background:
    linear-gradient(90deg, rgba(20,70,59,.035) 1px, transparent 1px),
    linear-gradient(rgba(20,70,59,.035) 1px, transparent 1px),
    #f5f8f6;
  background-size: 36px 36px;
}
.pdf-doc-header {
  height: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #bfd0ca;
}
.pdf-doc-logo, .pdf-certificate-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pdf-doc-logo i, .pdf-certificate-logo i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #07100f;
  background: #9ee928;
  border-radius: 8px;
  font: 700 12px var(--mono);
  font-style: normal;
}
.pdf-doc-logo strong, .pdf-certificate-logo strong { color: #122e28; font-size: 19px; letter-spacing: -.6px; }
.pdf-doc-logo strong span, .pdf-certificate-logo strong span { color: #66a91f; }
.pdf-doc-header > div:last-child { display: grid; gap: 3px; text-align: right; }
.pdf-doc-header > div:last-child span { color: #6c847d; font: 700 8px var(--mono); letter-spacing: 1.4px; }
.pdf-doc-header > div:last-child b { color: #284e44; font-size: 10px; letter-spacing: .5px; }
.pdf-report-hero {
  min-height: 250px;
  margin: 28px 0 18px;
  padding: 31px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  color: #f3f8f6;
  background:
    radial-gradient(circle at 90% 20%, rgba(49,230,200,.14), transparent 25%),
    linear-gradient(135deg, #0a1d19, #102f27);
  border-radius: 19px;
  box-shadow: 0 17px 38px rgba(15, 48, 40, .15);
}
.pdf-overline { color: #a4f52b; font: 700 8px var(--mono); letter-spacing: 1.5px; }
.pdf-report-hero h1 { margin: 14px 0 12px; font-size: 38px; line-height: 1.03; letter-spacing: -1.7px; }
.pdf-report-hero p { max-width: 440px; margin: 0; color: #a9bdb7; font-size: 12px; line-height: 1.6; }
.pdf-score-orbit {
  flex: 0 0 136px;
  width: 136px;
  height: 136px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 11px solid rgba(164,245,43,.16);
  border-top-color: #a4f52b;
  border-radius: 50%;
  background: #0c211c;
}
.pdf-score-orbit.failed { border-color: rgba(255,102,124,.14); border-top-color: #ff667c; }
.pdf-score-orbit strong { font: 700 42px var(--mono); line-height: 1; }
.pdf-score-orbit span { margin-top: 1px; color: #7f9992; font: 600 9px var(--mono); }
.pdf-score-orbit small { margin-top: 8px; color: #a4f52b; font: 700 7px var(--mono); letter-spacing: .8px; }
.pdf-score-orbit.failed small { color: #ff8b9c; }
.pdf-candidate-strip {
  min-height: 73px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1.3fr 1.2fr .9fr 1fr;
  gap: 10px;
  background: #fff;
  border: 1px solid #d3dfdb;
  border-radius: 13px;
}
.pdf-candidate-strip div { padding: 3px 11px; border-left: 1px solid #d7e2de; }
.pdf-candidate-strip div:first-child { border-left: 0; }
.pdf-candidate-strip span { display: block; color: #789088; font: 700 7px var(--mono); letter-spacing: 1px; }
.pdf-candidate-strip strong { display: block; margin-top: 7px; color: #193b32; font-size: 11px; overflow-wrap: anywhere; }
.pdf-section-heading { margin: 27px 0 15px; display: flex; align-items: center; gap: 12px; }
.pdf-section-heading > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #17332c;
  background: #a4f52b;
  border-radius: 7px;
  font: 700 9px var(--mono);
}
.pdf-section-heading small { color: #779088; font: 700 7px var(--mono); letter-spacing: 1px; }
.pdf-section-heading h2 { margin: 1px 0 0; font-size: 20px; letter-spacing: -.4px; }
.pdf-metric-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pdf-metric {
  min-height: 76px;
  padding: 14px 8px;
  display: grid;
  align-content: center;
  justify-items: center;
  background: #fff;
  border: 1px solid #d5e0dc;
  border-radius: 11px;
  text-align: center;
}
.pdf-metric strong { color: #1a3b33; font: 700 20px var(--mono); }
.pdf-metric span { margin-top: 5px; color: #779088; font-size: 8px; }
.pdf-metric.positive strong { color: #559c1a; }
.pdf-metric.negative strong { color: #dc5268; }
.pdf-metric.warning strong { color: #c48b15; }
.pdf-metric.accent strong { color: #087e6a; }
.pdf-two-column { margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.pdf-info-card { padding: 18px 20px; background: #fff; border: 1px solid #d5e0dc; border-radius: 12px; }
.pdf-info-card h3 { margin: 0 0 10px; color: #1a3a32; font-size: 13px; }
.pdf-key-value { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e3ebe8; }
.pdf-key-value span { color: #718981; font-size: 9px; }
.pdf-key-value b { color: #203f37; text-align: right; font: 600 9px var(--mono); }
.pdf-key-value b.passed { color: #5d9f20; }
.pdf-key-value b.failed { color: #d85167; }
.pdf-verdict {
  margin-top: 15px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  align-items: center;
  background: #eef8e8;
  border: 1px solid #b8d89e;
  border-radius: 13px;
}
.pdf-verdict.failed { background: #fff0f2; border-color: #f0b6c0; }
.pdf-verdict-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: #16320e;
  background: #a4f52b;
  border-radius: 50%;
  font: 700 19px var(--mono);
}
.pdf-verdict.failed .pdf-verdict-icon { color: #fff; background: #ec6379; }
.pdf-verdict span { color: #65815b; font: 700 7px var(--mono); letter-spacing: 1px; }
.pdf-verdict h3 { margin: 3px 0 4px; color: #234421; font-size: 14px; }
.pdf-verdict.failed h3 { color: #7d2d3b; }
.pdf-verdict p { margin: 0; color: #657661; font-size: 9px; line-height: 1.5; }
.pdf-doc-footer {
  position: absolute;
  right: 48px;
  bottom: 24px;
  left: 48px;
  padding-top: 11px;
  display: grid;
  grid-template-columns: 1fr auto 35px;
  gap: 20px;
  color: #789089;
  border-top: 1px solid #c8d7d2;
  font: 600 7px var(--mono);
  letter-spacing: .45px;
}
.pdf-doc-footer b { color: #20473d; text-align: right; }
.pdf-page-title { margin: 28px 0 20px; }
.pdf-page-title h1 { margin: 9px 0 8px; color: #17352d; font-size: 31px; letter-spacing: -1px; }
.pdf-page-title p { margin: 0; color: #71877f; font-size: 10px; }
.pdf-category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 24px; }
.pdf-category-row { padding: 11px 13px; background: #fff; border: 1px solid #d6e1dd; border-radius: 10px; }
.pdf-category-row > div { margin-bottom: 8px; display: flex; justify-content: space-between; gap: 12px; }
.pdf-category-row span { color: #29483f; font-size: 9px; font-weight: 600; }
.pdf-category-row b { color: #5b9b20; font: 700 9px var(--mono); }
.pdf-category-row > i { display: block; height: 6px; overflow: hidden; background: #e7eeeb; border-radius: 20px; }
.pdf-category-row > i em { display: block; height: 100%; background: linear-gradient(90deg, #66c31e, #a4f52b); border-radius: inherit; }
.pdf-category-row.medium b { color: #b88116; }
.pdf-category-row.medium > i em { background: #efb94d; }
.pdf-category-row.low b { color: #db5268; }
.pdf-category-row.low > i em { background: #ec667b; }
.pdf-analysis-columns { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pdf-ranking-card { padding: 18px 19px; background: #fff; border: 1px solid #d5e1dc; border-radius: 12px; }
.pdf-ranking-card > span { color: #609b22; font: 700 7px var(--mono); letter-spacing: 1px; }
.pdf-ranking-card.focus > span { color: #c34d61; }
.pdf-ranking-card h3 { margin: 5px 0 11px; color: #1d3b33; font-size: 13px; }
.pdf-ranking-card ul { margin: 0; padding: 0; list-style: none; }
.pdf-ranking-card li { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e5ece9; }
.pdf-ranking-card li span { color: #617b73; font-size: 9px; }
.pdf-ranking-card li b { color: #24483e; font: 700 9px var(--mono); }
.pdf-insight-box {
  margin-top: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 15px;
  background: linear-gradient(135deg, #0c261f, #12392f);
  border-radius: 14px;
}
.pdf-ai-mark { display: grid; width: 46px; height: 46px; place-items: center; color: #0b251e; background: #31e6c8; border-radius: 12px; font: 700 13px var(--mono); }
.pdf-insight-box span { color: #63d9c5; font: 700 7px var(--mono); letter-spacing: 1px; }
.pdf-insight-box h3 { margin: 4px 0 7px; color: #f2f7f5; font-size: 14px; }
.pdf-insight-box p { margin: 0; color: #aec2bc; font-size: 9px; line-height: 1.58; }
.pdf-methodology { margin-top: 17px; padding: 18px 20px; background: #fff; border: 1px solid #d4e0dc; border-radius: 12px; }
.pdf-methodology h3 { margin: 0 0 6px; color: #1c3d34; font-size: 12px; }
.pdf-methodology p { margin: 0; color: #6e857d; font-size: 8.5px; line-height: 1.55; }
.pdf-methodology > div { margin-top: 12px; display: flex; gap: 25px; color: #789088; font-size: 8px; }
.pdf-methodology b { margin-left: 4px; color: #24483e; font-family: var(--mono); }

.pdf-certificate-page {
  width: 1123px;
  height: 794px;
  padding: 25px;
  color: #17342d;
  background:
    radial-gradient(circle at 8% 12%, rgba(49,230,200,.12), transparent 21%),
    radial-gradient(circle at 92% 88%, rgba(164,245,43,.13), transparent 22%),
    #edf4ef;
}
.pdf-certificate-frame {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 39px 52px 34px;
  overflow: hidden;
  background: rgba(250, 252, 250, .96);
  border: 2px solid #335f53;
  outline: 1px solid #8da99f;
  outline-offset: -11px;
}
.pdf-certificate-frame::before {
  content: "";
  position: absolute;
  top: -135px;
  right: -90px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(49,111,94,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(49,111,94,.035), 0 0 0 90px rgba(49,111,94,.025);
}
.pdf-certificate-corner { position: absolute; width: 220px; height: 8px; background: #a4f52b; }
.pdf-certificate-corner.top-left { top: 0; left: 0; }
.pdf-certificate-corner.bottom-right { right: 0; bottom: 0; }
.pdf-certificate-frame header { position: relative; display: flex; justify-content: space-between; align-items: center; }
.pdf-certificate-logo i { width: 43px; height: 43px; border-radius: 10px; font-size: 15px; }
.pdf-certificate-logo strong { font-size: 25px; }
.pdf-certificate-code { color: #708980; font: 600 9px var(--mono); letter-spacing: .6px; }
.pdf-certificate-body { position: relative; width: 760px; margin: 49px auto 0; text-align: center; }
.pdf-certificate-overline { color: #4f7c70; font: 700 9px var(--mono); letter-spacing: 2.4px; }
.pdf-certificate-body h1 { margin: 12px 0 19px; color: #183b32; font: 500 39px Georgia, "Times New Roman", serif; letter-spacing: -.7px; }
.pdf-certificate-lead { margin: 0; color: #788d87; font-size: 12px; }
.pdf-certificate-body h2 {
  width: 680px;
  margin: 12px auto 12px;
  padding-bottom: 8px;
  color: #13382f;
  border-bottom: 1px solid #9db4ad;
  font: 500 48px Georgia, "Times New Roman", serif;
  line-height: 1.05;
}
.pdf-certificate-copy { width: 700px; margin: 0 auto; color: #657c75; font-size: 12px; line-height: 1.6; }
.pdf-certificate-copy b { color: #315f53; }
.pdf-certificate-stats {
  width: 760px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  background: #f1f6f3;
  border: 1px solid #cbdad5;
  border-radius: 13px;
}
.pdf-certificate-stats div { padding: 14px 18px; border-left: 1px solid #cbdad5; }
.pdf-certificate-stats div:first-child { border-left: 0; }
.pdf-certificate-stats span { display: block; color: #718880; font: 700 7px var(--mono); letter-spacing: 1px; }
.pdf-certificate-stats strong { display: block; margin-top: 6px; color: #1d4238; font-size: 15px; }
.pdf-certificate-seal {
  position: absolute;
  top: -1px;
  right: -119px;
  width: 110px;
  height: 110px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 8px solid rgba(164,245,43,.22);
  border-top-color: #75c51f;
  border-radius: 50%;
  background: #f8fbf8;
}
.pdf-certificate-seal.failed { border-color: rgba(236,102,123,.18); border-top-color: #e75c72; }
.pdf-certificate-seal b { font: 700 27px var(--mono); line-height: 1; }
.pdf-certificate-seal span { color: #788f87; font: 600 7px var(--mono); }
.pdf-certificate-seal small { width: 82px; margin-top: 5px; color: #5e9c22; font: 700 5.8px var(--mono); letter-spacing: .5px; }
.pdf-certificate-seal.failed small { color: #d65267; }
.pdf-certificate-frame footer {
  position: absolute;
  right: 53px;
  bottom: 39px;
  left: 53px;
  display: grid;
  grid-template-columns: .85fr 1.5fr .85fr;
  align-items: end;
  gap: 24px;
  color: #738a82;
}
.pdf-certificate-frame footer > div:first-child { display: grid; gap: 4px; font-size: 8px; }
.pdf-certificate-frame footer b { color: #2d554a; font: 600 9px var(--mono); }
.pdf-digital-approval {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #315c50;
}
.pdf-approval-seal {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  align-content: center;
  justify-items: center;
  color: #173c32;
  background: #f2f8ee;
  border: 2px solid #74b52b;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #e1f2d2;
}
.pdf-approval-seal::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px dashed #74a842;
  border-radius: 50%;
}
.pdf-approval-seal i { font: 700 15px var(--mono); font-style: normal; line-height: 1; }
.pdf-approval-seal span { margin-top: 2px; text-align: center; font: 700 4.8px var(--mono); letter-spacing: .5px; }
.pdf-digital-approval > div:last-child { display: grid; gap: 3px; text-align: left; }
.pdf-digital-approval strong { color: #274e43; font-size: 9px; }
.pdf-digital-approval span { color: #5e796f; font-size: 8px; }
.pdf-digital-approval small { color: #789087; font: 600 6.5px var(--mono); }
.pdf-certificate-url { text-align: right; color: #315c50; font: 600 9px var(--mono); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(1, 7, 6, .8);
  backdrop-filter: blur(8px);
}
.modal-card {
  width: min(100%, 1050px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #0b1715;
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.small-modal { width: min(100%, 500px); padding: 35px; text-align: center; }
.small-modal h2 { margin: 18px 0 10px; font-size: 25px; }
.small-modal p { color: var(--muted); line-height: 1.6; }
.modal-icon {
  width: 48px;
  height: 48px;
  margin: auto;
  display: grid;
  place-items: center;
  color: var(--yellow);
  background: var(--yellow-soft);
  border: 1px solid rgba(255,200,90,.3);
  border-radius: 50%;
  font: 700 20px var(--mono);
}
.modal-actions { margin-top: 25px; display: flex; justify-content: center; gap: 10px; }
.review-card { padding: 0; }
.review-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 22px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11,23,21,.97);
  border-bottom: 1px solid var(--border);
}
.review-header .card-label { margin-bottom: 5px; }
.review-header h2 { margin: 0; }
.review-list { padding: 25px; display: grid; gap: 14px; }
.review-item { padding: 22px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; }
.review-item.correct { border-left: 3px solid var(--green); }
.review-item.wrong { border-left: 3px solid var(--red); }
.review-item.empty { border-left: 3px solid var(--yellow); }
.review-meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font: 500 9px var(--mono); }
.review-meta span { padding: 4px 7px; background: #142522; border-radius: 4px; }
.review-item h3 { margin: 15px 0; font-size: 18px; line-height: 1.45; }
.review-answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.review-answer { padding: 11px; background: #0c1816; border-radius: 7px; }
.review-answer span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.review-answer strong { font-size: 12px; line-height: 1.5; }
.review-answer.user strong.correct-text { color: var(--green); }
.review-answer.user strong.wrong-text { color: var(--red); }
.review-explanation { margin: 14px 0 0; padding-top: 14px; color: #9fb2ad; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.7; }
.toast {
  position: fixed;
  z-index: 250;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 13px 17px;
  color: var(--text);
  background: #14231f;
  border: 1px solid var(--border-bright);
  border-radius: 9px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: .25s ease;
  font-size: 13px;
}
.toast.show { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 55px; padding-top: 60px; }
  .terminal-card { max-width: 650px; transform: none; }
  .content-split { grid-template-columns: 1fr; gap: 35px; }
  .content-split > div:first-child { position: static; }
  .benefits-panel { grid-template-columns: 1fr; gap: 30px; padding: 40px; }
  .exam-layout { grid-template-columns: 250px 1fr; }
  .exam-sidebar { padding: 18px; }
  .question-map { grid-template-columns: repeat(4, 1fr); }
  .question-panel { width: calc(100% - 45px); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 30px, 1180px); }
  .top-nav { min-height: 68px; }
  .status-pill { display: none; }
  .hero { min-height: auto; padding: 55px 0 70px; }
  .hero h1 { font-size: clamp(42px, 13vw, 62px); letter-spacing: -3px; }
  .hero-text { font-size: 15px; }
  .exam-meta div { min-width: 0; padding: 0 17px; flex: 1; }
  .exam-meta strong { font-size: 20px; }
  .input-row { grid-template-columns: 1fr; }
  .terminal-card { min-height: 420px; }
  .terminal-body { padding: 24px 20px; font-size: 11px; }
  .topics-strip { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .seo-content { padding-top: 80px; }
  .seo-feature-grid, .content-split, .seo-guide, .benefits-panel, .seo-learning, .seo-audience, .seo-faq { margin-top: 75px; padding-top: 65px; }
  .feature-grid { grid-template-columns: 1fr; }
  .benefits-panel { padding: 28px 22px; }
  .learning-grid { grid-template-columns: 1fr; }
  .seo-audience { grid-template-columns: 1fr; gap: 20px; }
  .seo-footer { align-items: start; flex-direction: column; }

  .exam-header {
    min-height: 68px;
    padding: 0 15px;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }
  .header-candidate { display: none; }
  .timer { min-width: 70px; padding-left: 10px; }
  .timer strong { font-size: 15px; }
  .exam-header .danger-btn { padding: 9px 10px; font-size: 11px; }
  .exam-layout { display: block; }
  .exam-sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px 15px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .progress-card { padding-bottom: 10px; border-bottom: 0; }
  .live-stats, .question-map, .map-legend { display: none; }
  .question-map-heading { display: flex; padding: 10px 0 0; }
  .exam-sidebar.map-open .question-map { display: grid; grid-template-columns: repeat(10, 1fr); max-height: 185px; }
  .question-panel { width: calc(100% - 30px); padding: 35px 0 30px; }
  .question-topline { display: block; }
  .question-badges { margin-top: 12px; justify-content: flex-start; }
  .question-panel > h1 { margin-top: 22px; font-size: 25px; }
  .option { padding: 13px; grid-template-columns: 31px 1fr; }
  .question-actions { grid-template-columns: 1fr 1fr; }
  .question-actions .text-btn { order: 3; justify-self: stretch; }
  .question-actions .warning-btn { order: 4; }
  .question-actions .primary-btn, .question-actions .secondary-btn { width: 100%; min-width: 0; justify-content: center; }

  .result-wrap { padding-top: 45px; }
  .result-hero { align-items: flex-start; flex-direction: column; }
  .score-ring { width: 145px; height: 145px; }
  .score-ring::before { width: 118px; height: 118px; }
  .result-grid { grid-template-columns: 1fr; }
  .category-analysis { grid-template-columns: 1fr; }
  .certificate-inner { min-height: auto; padding: 27px 20px; }
  .certificate-brand { font-size: 16px; }
  .certificate-brand .brand-mark { width: 32px; height: 32px; }
  .certificate-score { flex-direction: column; gap: 16px; }
  .certificate-score div { border-left: 0; }
  .certificate-bottom { grid-template-columns: 1fr; justify-items: center; gap: 14px; text-align: center; }
  .certificate-bottom > a { text-align: center; }
  .report-label { display: none; }
  .review-answer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .exam-meta { display: grid; grid-template-columns: repeat(3, 1fr); }
  .exam-meta div { padding: 0 10px; }
  .terminal-table { grid-template-columns: .8fr .8fr 1.2fr; gap: 3px 7px; }
  .big-stats { grid-template-columns: 1fr 1fr; }
  .card-heading { align-items: flex-start; flex-direction: column; }
  .result-actions { display: grid; }
  .result-actions button { width: 100%; }
  .modal { padding: 12px; }
  .small-modal { padding: 27px 20px; }
  .modal-actions { flex-direction: column; }
}

@media print {
  @page { size: A4; margin: 10mm; }
  body { color: #111; background: #fff; }
  .noise, #welcome-screen, #exam-screen, .result-nav, .result-hero, .result-grid,
  .analysis-card, .insight-card, .result-actions, .modal, .toast { display: none !important; }
  #result-screen, #result-screen.active { display: block !important; min-height: auto; background: #fff; }
  .result-wrap { width: 100%; padding: 0; }
  .certificate { margin: 0; padding: 0; border-radius: 0; background: #fff; }
  .certificate::before { display: none; }
  .certificate-inner { min-height: 255mm; padding: 25mm 16mm; border: 2px solid #365f52; }
  .certificate-kicker { margin-top: 30mm; }
  .certificate h2 { font-size: 32pt; }
  .certificate h3 { font-size: 38pt; }
}
