:root {
  --bg: #07100f;
  --surface: #0d1817;
  --surface-2: #111f1d;
  --border: #20312e;
  --text: #f2f7f5;
  --muted: #8fa39e;
  --green: #9ef01a;
  --green-soft: rgba(158, 240, 26, .12);
  --cyan: #25e6c8;
  --orange: #ffb547;
  --red: #ff667d;
  --shadow: 0 22px 70px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: "DM Sans", system-ui, sans-serif;
}
button, select { font: inherit; }
button { cursor: pointer; }
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .04;
  z-index: 20;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; animation: fade-in .35s ease; }
.hidden { display: none !important; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.5px;
}
.brand > span:last-child span { color: var(--green); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #07100f;
  background: var(--green);
  border-radius: 10px;
  font: 600 14px "JetBrains Mono", monospace;
  box-shadow: 0 0 25px rgba(158, 240, 26, .18);
}
.brand.compact { font-size: 18px; }
.brand.compact .brand-mark { width: 35px; height: 35px; border-radius: 8px; }

.welcome-screen {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 75% 43%, rgba(37, 230, 200, .09), transparent 26%),
    linear-gradient(rgba(158, 240, 26, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 240, 26, .024) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
}
.welcome-screen::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  left: -300px;
  top: 170px;
  border-radius: 50%;
  background: rgba(158, 240, 26, .06);
  filter: blur(90px);
}
.welcome-nav, .exam-header, .result-nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.welcome-nav { width: min(1180px, calc(100% - 48px)); margin: auto; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  padding: 8px 13px;
  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 10px var(--green);
}
.hero {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 126px);
  margin: auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 80px;
  padding: 60px 0 85px;
}
.eyebrow {
  margin: 0 0 22px;
  color: var(--green);
  font: 600 12px "JetBrains Mono", monospace;
  letter-spacing: 2px;
}
.hero h1, .result-message h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -4px;
}
.hero h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px #9bb0aa;
}
.hero-text {
  max-width: 610px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.exam-meta {
  display: flex;
  margin-bottom: 38px;
}
.exam-meta div {
  min-width: 120px;
  padding: 0 28px;
  border-left: 1px solid var(--border);
}
.exam-meta div:first-child { padding-left: 0; border-left: 0; }
.exam-meta strong { display: block; font: 600 25px "JetBrains Mono", monospace; }
.exam-meta span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.primary-btn, .secondary-btn, .finish-btn {
  border: 0;
  border-radius: 9px;
  transition: .2s ease;
}
.primary-btn {
  min-width: 210px;
  padding: 16px 20px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  color: #0b130b;
  background: var(--green);
  font-weight: 700;
  box-shadow: 0 12px 35px rgba(158, 240, 26, .13);
}
.primary-btn:hover { background: #b1ff38; transform: translateY(-2px); }
.primary-btn.small { min-width: 160px; padding: 13px 18px; }
.start-form { margin-top: 34px; max-width: 620px; }
.start-form label {
  display: block;
  margin-bottom: 9px;
  color: #c9d8d4;
  font-size: 13px;
  font-weight: 700;
}
.start-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}
.start-row input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  color: var(--text);
  border: 1px solid #31443f;
  border-radius: 10px;
  outline: none;
  background: rgba(13, 24, 23, .84);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.start-row input:focus {
  border-color: rgba(158, 240, 26, .72);
  box-shadow: 0 0 0 4px rgba(158, 240, 26, .1);
}
.start-row input.invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255, 102, 125, .12); }
.form-error {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--red);
  font-size: 12px;
}
.fine-print { margin: 15px 0 0; color: #60736e; font-size: 11px; }
.fine-print a {
  margin-left: 5px;
  color: var(--green);
  text-decoration: none;
}
.fine-print a:hover { text-decoration: underline; }

.terminal-card {
  position: relative;
  width: 100%;
  min-height: 440px;
  border: 1px solid #2a403b;
  border-radius: 16px;
  background: rgba(9, 20, 18, .88);
  box-shadow: var(--shadow), inset 0 0 80px rgba(37, 230, 200, .025);
  overflow: hidden;
  transform: perspective(900px) rotateY(-4deg);
}
.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 {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  color: #68807a;
  font: 500 11px "JetBrains Mono", monospace;
}
.terminal-dots { display: flex; gap: 7px; position: absolute; left: 18px; }
.terminal-dots i { width: 8px; height: 8px; border-radius: 50%; background: #263a36; }
.terminal-dots i:first-child { background: #ff657a; }
.terminal-dots i:nth-child(2) { background: #ffc457; }
.terminal-dots i:nth-child(3) { background: #7ddf42; }
.terminal-body {
  padding: 32px;
  color: #bcd0ca;
  font: 500 13px/1.9 "JetBrains Mono", monospace;
}
.terminal-body b { color: var(--green); }
.terminal-body .muted { color: #516a64; margin-bottom: 25px; }
.terminal-body .ok { color: var(--green); margin-right: 8px; }
.terminal-ready {
  color: var(--green);
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  letter-spacing: 1px;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  margin-left: 7px;
  vertical-align: -3px;
  background: var(--green);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.radar {
  position: absolute;
  width: 170px;
  height: 170px;
  right: -45px;
  bottom: -50px;
  border: 1px solid rgba(37, 230, 200, .13);
  border-radius: 50%;
}
.radar span { position: absolute; inset: 25px; border: 1px solid rgba(37,230,200,.1); border-radius: 50%; }
.radar span:nth-child(2) { inset: 50px; }
.radar span:nth-child(3) { inset: 75px; }
.radar i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 1px;
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), transparent);
  animation: sweep 5s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.topics-strip {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 24px;
  color: #59706a;
  border-top: 1px solid var(--border);
  background: rgba(7, 16, 15, .75);
  font: 500 10px "JetBrains Mono", monospace;
  letter-spacing: 1.5px;
}
.topics-strip i { width: 3px; height: 3px; border-radius: 50%; background: #36504a; }

/* Indexlenebilir SEO içeriği */
.seo-content {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 22, 20, .98), #07100f),
    linear-gradient(rgba(158, 240, 26, .02) 1px, transparent 1px);
  border-top: 1px solid var(--border);
}
.seo-content > section,
.seo-footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.seo-content section {
  padding: 86px 0;
  border-bottom: 1px solid var(--border);
}
.section-kicker {
  margin-bottom: 14px;
  color: var(--green);
  font: 600 11px "JetBrains Mono", monospace;
  letter-spacing: 1.8px;
}
.seo-content h2 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(29px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -1.8px;
}
.seo-content h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.seo-intro {
  display: grid;
  grid-template-columns: .8fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}
.seo-intro .section-kicker { grid-column: 1 / -1; margin-bottom: -17px; }
.seo-intro h2 { margin: 0; }
.seo-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}
.topic-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.topic-cards article {
  position: relative;
  min-height: 116px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-content: center;
  gap: 6px 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(17, 31, 29, .72);
  transition: border-color .2s ease, transform .2s ease;
}
.topic-cards article:hover { border-color: #3d554f; transform: translateY(-2px); }
.topic-cards article > span {
  grid-row: 1 / 3;
  color: var(--green);
  font: 600 13px "JetBrains Mono", monospace;
}
.topic-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.seo-benefits {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
}
.seo-benefits ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.seo-benefits li {
  padding: 16px 18px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 31, 29, .58);
  font-size: 13px;
  line-height: 1.6;
}
.seo-benefits li::before { content: "✓"; margin-right: 10px; color: var(--green); font-weight: 700; }
.seo-benefits strong { color: var(--text); }
.faq-list { display: grid; gap: 9px; max-width: 900px; margin-top: 34px; }
.faq-list details {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(17, 31, 29, .65);
}
.faq-list summary {
  position: relative;
  padding: 19px 50px 19px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 14px;
  color: var(--green);
  font: 500 24px "JetBrains Mono", monospace;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.seo-footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}
.seo-footer p { margin: 0; }
.seo-footer a { color: var(--green); font-weight: 600; text-decoration: none; }
.seo-footer a:hover { text-decoration: underline; }

/* Exam */
.exam-screen { background: #091210; }
.exam-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0 max(32px, calc((100% - 1320px) / 2));
  background: rgba(9, 18, 16, .94);
  backdrop-filter: blur(14px);
}
.header-progress { width: min(430px, 38vw); display: flex; align-items: center; gap: 16px; }
.progress-copy { display: flex; justify-content: space-between; min-width: 100px; font-size: 11px; }
.progress-copy span { color: var(--muted); display: none; }
.progress-copy strong { font: 600 12px "JetBrains Mono", monospace; }
.progress-track { flex: 1; height: 4px; background: #20302d; border-radius: 5px; overflow: hidden; }
.progress-track i { display: block; width: 0; height: 100%; background: var(--green); transition: width .25s; }
.timer {
  min-width: 126px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  color: var(--green);
  border: 1px solid #294239;
  border-radius: 8px;
  background: var(--green-soft);
  font: 600 13px "JetBrains Mono", monospace;
}
.timer svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.timer.warning { color: var(--orange); background: rgba(255,181,71,.1); border-color: rgba(255,181,71,.3); }
.timer.danger { color: var(--red); background: rgba(255,102,125,.1); border-color: rgba(255,102,125,.3); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .68; } }
.exam-layout {
  width: min(1320px, calc(100% - 64px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 38px;
  padding: 44px 0;
}
.question-panel {
  min-height: 690px;
  padding: 38px 42px 32px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(0,0,0,.16);
}
.question-topline { display: flex; align-items: center; justify-content: space-between; }
.category-label {
  padding: 6px 10px;
  color: var(--green);
  border: 1px solid rgba(158,240,26,.22);
  border-radius: 5px;
  background: var(--green-soft);
  font: 600 10px "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .7px;
}
.question-number { margin-left: 12px; color: var(--muted); font-size: 12px; }
.icon-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 12px;
}
.icon-btn svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-btn.active { color: var(--orange); }
.icon-btn.active svg { fill: rgba(255,181,71,.2); }
.question-panel h2 {
  max-width: 900px;
  min-height: 95px;
  margin: 36px 0 30px;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.42;
  letter-spacing: -.5px;
}
.options { display: grid; gap: 12px; }
.option {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 17px;
  color: #cdd8d5;
  text-align: left;
  border: 1px solid #263a36;
  border-radius: 9px;
  background: #101d1b;
  transition: .16s ease;
}
.option:hover { border-color: #4d6760; background: #13221f; }
.option .letter {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #344943;
  border-radius: 7px;
  color: #8ba19b;
  font: 600 12px "JetBrains Mono", monospace;
}
.option.selected { color: var(--text); border-color: var(--green); background: var(--green-soft); }
.option.selected .letter { color: #0b150d; border-color: var(--green); background: var(--green); }
.question-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}
.secondary-btn {
  padding: 12px 18px;
  color: #b9c7c3;
  border: 1px solid #30433e;
  background: transparent;
}
.secondary-btn:hover { color: var(--text); border-color: #667c76; }
.secondary-btn:disabled { opacity: .3; cursor: default; }
.question-map {
  position: sticky;
  top: 106px;
  align-self: start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}
.map-title { display: flex; justify-content: space-between; margin-bottom: 19px; }
.map-title p, .section-heading p { margin: 0 0 5px; font: 600 11px "JetBrains Mono", monospace; letter-spacing: 1px; }
.map-title span, .section-heading span { color: var(--muted); font-size: 11px; }
#mobile-close-map { display: none; color: var(--text); border: 0; background: transparent; font-size: 24px; }
.question-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.question-grid button {
  aspect-ratio: 1;
  color: #788d87;
  border: 1px solid #2b3d39;
  border-radius: 5px;
  background: #101d1b;
  font: 500 10px "JetBrains Mono", monospace;
}
.question-grid button:hover { border-color: #658078; }
.question-grid button.answered { color: #9bdf35; border-color: rgba(158,240,26,.26); background: rgba(158,240,26,.09); }
.question-grid button.current { color: #0b120b; border-color: var(--green); background: var(--green); }
.question-grid button.flagged { position: relative; border-color: var(--orange); }
.question-grid button.flagged::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 18px 0; color: var(--muted); font-size: 9px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 7px; height: 7px; border-radius: 2px; background: #263733; }
.legend .current { background: var(--green); }
.legend .answered { border: 1px solid rgba(158,240,26,.5); background: var(--green-soft); }
.legend .flagged { border: 1px solid var(--orange); background: transparent; }
.finish-btn {
  width: 100%;
  padding: 12px;
  color: #d4dedb;
  border: 1px solid #40534e;
  background: #162521;
  font-weight: 600;
}
.finish-btn:hover { color: #fff; border-color: var(--green); }
.mobile-map-btn { display: none; }
.map-overlay { display: none; }

/* Dialog */
dialog {
  width: min(500px, calc(100% - 32px));
  padding: 38px;
  color: var(--text);
  text-align: center;
  border: 1px solid #344943;
  border-radius: 15px;
  background: #101c1a;
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(2, 8, 7, .78); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 14px; top: 10px; color: var(--muted); border: 0; background: none; font-size: 25px; }
.dialog-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--orange);
  border: 1px solid rgba(255,181,71,.35);
  border-radius: 50%;
  background: rgba(255,181,71,.08);
  font: 600 24px "JetBrains Mono", monospace;
}
dialog h2 { margin: 0 0 10px; font-size: 23px; }
dialog > p { margin: 0; color: var(--muted); font-size: 14px; }
.dialog-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 26px 0; border: 1px solid var(--border); border-radius: 9px; }
.dialog-stats span { padding: 15px 5px; color: var(--muted); font-size: 10px; border-left: 1px solid var(--border); }
.dialog-stats span:first-child { border-left: 0; }
.dialog-stats strong { display: block; margin-bottom: 4px; color: var(--text); font: 600 19px "JetBrains Mono", monospace; }
.dialog-actions { display: flex; justify-content: center; gap: 10px; }

/* Result */
.result-screen { background: #091210; }
.result-nav { padding: 0 max(32px, calc((100% - 1120px) / 2)); }
.result-nav > span { color: var(--muted); font-size: 12px; }
.result-wrap { width: min(1120px, calc(100% - 48px)); margin: auto; padding: 60px 0 90px; }
.result-hero { display: flex; align-items: center; justify-content: center; gap: 52px; margin-bottom: 44px; }
.score-ring {
  --score: 0;
  flex: 0 0 auto;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--score) * 1%), #20312d 0);
  position: relative;
}
.score-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #0d1917; }
.score-ring > div { position: relative; text-align: center; }
.score-ring strong { display: block; font: 600 52px/1 "JetBrains Mono", monospace; }
.score-ring span { color: var(--muted); font: 600 9px "JetBrains Mono", monospace; letter-spacing: 2px; }
.score-ring.failed { background: conic-gradient(var(--red) calc(var(--score) * 1%), #20312d 0); }
.result-message { max-width: 540px; }
.result-message .eyebrow { margin-bottom: 13px; }
.result-message h2 { font-size: clamp(36px, 5vw, 58px); }
.result-message > p:last-child { color: var(--muted); line-height: 1.7; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 22px; }
.stat-card { position: relative; padding: 21px 23px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.stat-card span { display: block; color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; margin-top: 8px; font: 600 25px "JetBrains Mono", monospace; }
.stat-card i { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--green); }
.stat-card.wrong i { background: var(--red); }
.stat-card.empty i { background: var(--orange); }
.stat-card.time i { background: var(--cyan); }
.result-content { display: grid; gap: 22px; }
.category-results, .review-section, .report-summary-card { padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.report-summary-grid div {
  padding: 17px;
  border: 1px solid #243a35;
  border-radius: 10px;
  background: #101d1a;
}
.report-summary-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font: 700 9px "JetBrains Mono", monospace;
  letter-spacing: 1.1px;
}
.report-summary-grid strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.report-summary-grid strong.failed { color: var(--red); }
.report-summary-grid strong.passed { color: var(--green); }
.insight-box {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(37,230,200,.22);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(37,230,200,.08), rgba(158,240,26,.04));
}
.insight-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #07100f;
  border-radius: 12px;
  background: var(--cyan);
  font: 800 14px "JetBrains Mono", monospace;
}
.insight-box p {
  margin: 0 0 6px;
  color: var(--cyan);
  font: 700 10px "JetBrains Mono", monospace;
  letter-spacing: 1.2px;
}
.insight-box span { color: #c5d4d0; font-size: 13px; line-height: 1.7; }
.section-heading { display: flex; justify-content: space-between; margin-bottom: 25px; }
.category-bars { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; row-gap: 19px; }
.category-row-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; }
.category-row-top span:last-child { color: var(--muted); font: 500 11px "JetBrains Mono", monospace; }
.category-track { height: 6px; border-radius: 5px; background: #21312e; overflow: hidden; }
.category-track i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.category-track i.medium { background: var(--orange); }
.category-track i.low { background: var(--red); }
.review-heading { align-items: center; }
.review-heading select {
  padding: 9px 29px 9px 12px;
  color: #c4d1cd;
  border: 1px solid #324742;
  border-radius: 7px;
  outline: none;
  background: #101d1a;
}
.review-list { display: grid; gap: 10px; }
.review-card { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.review-question {
  width: 100%;
  display: grid;
  grid-template-columns: 35px 1fr auto 20px;
  gap: 12px;
  align-items: center;
  padding: 15px;
  color: var(--text);
  text-align: left;
  border: 0;
  background: #101d1a;
}
.review-question .num { color: var(--muted); font: 600 11px "JetBrains Mono", monospace; }
.review-question .qtext { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.review-question .badge { padding: 4px 7px; border-radius: 4px; font-size: 9px; }
.badge.correct { color: var(--green); background: var(--green-soft); }
.badge.wrong { color: var(--red); background: rgba(255,102,125,.1); }
.badge.empty { color: var(--orange); background: rgba(255,181,71,.1); }
.review-question .chevron { color: var(--muted); transition: transform .2s; }
.review-card.open .chevron { transform: rotate(180deg); }
.review-answer { display: none; padding: 18px 22px; border-top: 1px solid var(--border); background: #0c1715; font-size: 12px; line-height: 1.65; }
.review-card.open .review-answer { display: block; }
.review-answer p { margin: 5px 0; }
.review-answer strong { color: var(--green); }
.review-answer .user-wrong strong { color: var(--red); }
.review-answer .explanation { margin-top: 12px; padding-top: 12px; color: var(--muted); border-top: 1px solid var(--border); }
.restart-btn { display: flex; margin: 28px auto 0; }
.empty-review { color: var(--muted); text-align: center; padding: 28px; font-size: 13px; }

.certificate-card {
  margin-top: 28px;
  padding: 18px;
  color: #17352e;
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 20%, rgba(158,240,26,.18), transparent 30%),
    linear-gradient(135deg, #f8fbf7, #e8f0ec);
  box-shadow: var(--shadow);
}
.certificate-frame {
  min-height: 430px;
  padding: 32px;
  border: 2px solid #476f62;
  border-radius: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.certificate-frame::before,
.certificate-frame::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(71,111,98,.18);
  border-radius: 50%;
}
.certificate-frame::before { left: -90px; top: -100px; }
.certificate-frame::after { right: -70px; bottom: -100px; }
.certificate-top, .certificate-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.certificate-brand { color: #17352e; }
.certificate-brand .brand-mark { box-shadow: none; }
#certificate-status {
  padding: 7px 11px;
  color: #315d50;
  border: 1px solid #7b9c92;
  border-radius: 999px;
  font: 800 10px "JetBrains Mono", monospace;
  letter-spacing: 1.5px;
}
.certificate-kicker {
  margin: 48px 0 13px;
  color: #53796f;
  font: 800 10px "JetBrains Mono", monospace;
  letter-spacing: 2.8px;
}
.certificate-card h2 {
  margin: 0 0 16px;
  color: #17352e;
  font: 500 clamp(31px, 5vw, 50px) Georgia, "Times New Roman", serif;
}
.certificate-card h3 {
  width: min(720px, 92%);
  margin: 18px auto 12px;
  padding-bottom: 10px;
  color: #17352e;
  border-bottom: 1px solid #9bb1aa;
  font: 500 clamp(33px, 5vw, 58px) Georgia, "Times New Roman", serif;
}
.certificate-card p { color: #667f77; }
.certificate-stats {
  width: min(720px, 92%);
  margin: 30px auto 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #cbd9d4;
  border-bottom: 1px solid #cbd9d4;
}
.certificate-stats div { padding: 16px 10px; border-left: 1px solid #cbd9d4; }
.certificate-stats div:first-child { border-left: 0; }
.certificate-stats strong { display: block; color: #183b32; font: 800 18px "JetBrains Mono", monospace; }
.certificate-stats span { display: block; margin-top: 5px; color: #708a82; font-size: 10px; }
.certificate-bottom {
  align-items: end;
  color: #668077;
  font: 600 10px "JetBrains Mono", monospace;
}
.certificate-bottom a { color: #315d50; text-decoration: none; }
.certificate-approval {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.certificate-approval i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #17352e;
  border: 2px solid #315d50;
  border-radius: 50%;
  font-style: normal;
}
.certificate-approval span { display: grid; gap: 3px; text-align: left; }
.certificate-approval strong { color: #244e43; font: 800 10px "DM Sans", sans-serif; }
.certificate-approval small { color: #6d847c; font-size: 8px; }
.result-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  align-items: stretch;
  justify-content: center;
}
.result-actions .restart-btn { margin: 0; }
.pdf-btn {
  min-width: 240px;
  justify-content: space-between;
  gap: 18px;
}
.pdf-btn span { display: grid; gap: 3px; text-align: left; }
.pdf-btn small {
  color: rgba(7,16,15,.72);
  font: 800 9px "JetBrains Mono", monospace;
  letter-spacing: .8px;
}
.secondary-btn.pdf-btn small { color: var(--muted); }
.pdf-btn b { font: 800 22px "JetBrains Mono", monospace; }
.pdf-btn.loading { cursor: wait; opacity: .75; }
.pdf-export-root {
  position: fixed;
  left: -100000px;
  top: 0;
  z-index: -1;
  background: #fff;
  pointer-events: none;
}

@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr; gap: 35px; padding-top: 70px; }
  .terminal-card { display: none; }
  .topics-strip { flex-wrap: wrap; }
  .seo-intro { grid-template-columns: 1fr 1fr; }
  .seo-intro .section-kicker,
  .seo-intro h2 { grid-column: 1 / -1; }
  .seo-benefits { gap: 35px; }
  .exam-layout { grid-template-columns: 1fr; width: min(760px, calc(100% - 36px)); padding-bottom: 90px; }
  .question-map {
    position: fixed;
    z-index: 30;
    top: 0;
    right: 0;
    width: min(340px, 88vw);
    height: 100vh;
    border-radius: 0;
    transform: translateX(105%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .question-map.open { transform: translateX(0); }
  #mobile-close-map { display: block; }
  .map-overlay { position: fixed; z-index: 29; inset: 0; background: rgba(0,0,0,.62); }
  .map-overlay.open { display: block; }
  .mobile-map-btn {
    display: block;
    position: fixed;
    z-index: 9;
    right: 18px;
    bottom: 18px;
    padding: 12px 16px;
    color: #0a120a;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    box-shadow: var(--shadow);
    font-weight: 700;
  }
  .category-bars { grid-template-columns: 1fr; }
  .report-summary-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .welcome-nav, .hero, .result-wrap { width: min(100% - 30px, 1180px); }
  .welcome-nav { height: 66px; }
  .status-pill { font-size: 0; padding: 9px; }
  .hero { min-height: auto; padding: 70px 0; }
  .hero h1 { font-size: 47px; letter-spacing: -2.8px; }
  .hero-text { font-size: 15px; }
  .exam-meta { justify-content: space-between; }
  .exam-meta div { min-width: 0; padding: 0 15px; }
  .exam-meta strong { font-size: 21px; }
  .topics-strip { display: none; }
  .seo-content > section, .seo-footer { width: calc(100% - 30px); }
  .seo-content section { padding: 62px 0; }
  .seo-content h2 { font-size: 31px; letter-spacing: -1px; }
  .seo-intro, .seo-benefits { grid-template-columns: 1fr; gap: 22px; }
  .seo-intro .section-kicker, .seo-intro h2 { grid-column: auto; }
  .seo-intro .section-kicker { margin-bottom: -8px; }
  .topic-cards { grid-template-columns: 1fr; }
  .topic-cards article { min-height: 105px; padding: 18px; }
  .seo-footer { padding: 28px 0; flex-direction: column; align-items: flex-start; }
  .exam-header { height: 66px; padding: 0 15px; }
  .exam-header .brand > span:last-child { display: none; }
  .exam-header .brand-mark { width: 32px; height: 32px; }
  .header-progress { width: 34%; gap: 8px; }
  .progress-copy { min-width: 40px; }
  .timer { min-width: 109px; font-size: 11px; }
  .exam-layout { width: calc(100% - 24px); padding-top: 18px; }
  .question-panel { min-height: 0; padding: 24px 18px 20px; }
  .question-panel h2 { min-height: 0; margin: 27px 0 25px; font-size: 20px; }
  .icon-btn span { display: none; }
  .option { min-height: 60px; padding: 10px; gap: 10px; font-size: 13px; }
  .option .letter { width: 31px; height: 31px; }
  .question-actions { margin-top: 26px; }
  .primary-btn.small { min-width: 130px; }
  .result-nav { padding: 0 15px; }
  .result-nav > span { display: none; }
  .result-wrap { padding-top: 40px; }
  .result-hero { flex-direction: column; gap: 30px; text-align: center; }
  .score-ring { width: 150px; height: 150px; }
  .score-ring strong { font-size: 44px; }
  .result-message h2 { letter-spacing: -2px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 17px; }
  .category-results, .review-section, .report-summary-card { padding: 20px 15px; }
  .report-summary-grid { grid-template-columns: 1fr; }
  .insight-box { grid-template-columns: 1fr; }
  .review-heading { align-items: flex-start; gap: 15px; flex-direction: column; }
  .review-question { grid-template-columns: 28px 1fr 20px; }
  .review-question .badge { display: none; }
  .certificate-card { padding: 10px; }
  .certificate-frame { padding: 22px 14px; }
  .certificate-top, .certificate-bottom { flex-direction: column; align-items: center; text-align: center; }
  .certificate-stats { grid-template-columns: 1fr; }
  .certificate-stats div { border-left: 0; border-top: 1px solid #cbd9d4; }
  .certificate-stats div:first-child { border-top: 0; }
  .certificate-approval span { text-align: center; }
  .result-actions { display: grid; }
  .result-actions button { width: 100%; }
  dialog { padding: 32px 18px 22px; }
  .dialog-actions { flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
