:root {
  --bg: #f6f7fb;
  --panel: rgba(255, 255, 255, 0.85);
  --panel2: rgba(0, 0, 0, 0.04);
  --text: rgba(0, 0, 0, 0.88);
  --muted: rgba(0, 0, 0, 0.68);
  --muted2: rgba(0, 0, 0, 0.5);
  --border: rgba(0, 0, 0, 0.12);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  --accent: #7c5cff;
  --accent2: #3ddc97;
  --danger: #ff4d6d;
  --radius: 14px;
  --radius2: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --panel: rgba(255, 255, 255, 0.06);
    --panel2: rgba(255, 255, 255, 0.08);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.7);
    --muted2: rgba(255, 255, 255, 0.55);
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    "Apple Color Emoji",
    "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .topbar {
    background: rgba(0, 0, 0, 0.25);
  }
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .nav-toggle {
    background: rgba(255, 255, 255, 0.04);
  }
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(124, 92, 255, 0.55);
  outline-offset: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand__link:focus-visible {
  outline: 2px solid rgba(124, 92, 255, 0.55);
  outline-offset: 4px;
  border-radius: 10px;
}

.brand__logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-nav {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  overflow-x: auto;
}

/* Mobile/tablet nav header logo (dropdown için) */
.nav-logo {
  display: none;
  text-decoration: none;
  flex: 0 0 auto;
}

.nav-logo__img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  display: block;
  padding: 6px;
}

@media (prefers-color-scheme: dark) {
  .nav-logo__img {
    background: rgba(255, 255, 255, 0.04);
  }
}

@media (max-width: 980px) {
  .nav-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
}

.collection-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  .collection-tab {
    background: rgba(255, 255, 255, 0.04);
  }
}

.collection-tab.is-active {
  background: rgba(124, 92, 255, 0.16);
  border-color: rgba(124, 92, 255, 0.45);
  color: var(--text);
}

.collection-tab:focus-visible {
  outline: 2px solid rgba(124, 92, 255, 0.55);
  outline-offset: 2px;
}

.collection-tab[aria-current="page"] {
  pointer-events: none;
}

.brand__title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand__subtitle {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 2px;
}

.tabs {
  display: flex;
  gap: 8px;
}

.tab {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 650;
}

.tab.is-active {
  background: var(--panel2);
  color: var(--text);
  border-color: rgba(124, 92, 255, 0.35);
}

.banner {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius2);
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.1);
  color: var(--text);
  text-align: center;
  font-weight: 800;
}

.banner--error {
  border: 1px solid rgba(255, 77, 109, 0.45);
  background: rgba(255, 77, 109, 0.12);
}

.banner--info {
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.1);
}

@media (max-width: 980px) {
  .topbar__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .brand {
    order: 1;
  }
  .nav-toggle {
    order: 2;
  }
  .topbar__actions {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .brand__subtitle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
  }
  .collection-nav {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 8px;
    display: none;
  }
  .collection-nav.is-open {
    display: flex;
  }
  .collection-tab {
    padding: 8px 10px;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .topbar__actions {
    width: 100%;
    justify-content: flex-start;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .brand {
    order: 1;
    flex: 0 0 auto;
  }
  .nav-toggle {
    order: 2;
    flex: 0 0 auto;
  }
  .topbar__actions {
    order: 3;
  }
  .collection-nav {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .collection-nav {
    display: none;
  }
  .collection-nav.is-open {
    display: flex;
  }
  .collection-tab {
    padding: 8px 10px;
    font-weight: 800;
    width: 100%;
    justify-content: flex-start;
  }
  .brand__logo {
    width: 48px;
    height: 48px;
  }
  .brand__subtitle {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
  }
  .cal-row {
    gap: 12px;
    justify-content: flex-start;
  }
  .cal-field {
    width: 100%;
  }
  .cal-grid--days {
    grid-template-columns: repeat(6, minmax(42px, 1fr));
  }
}

@media (max-width: 420px) {
  .cal-grid--days {
    grid-template-columns: repeat(5, minmax(40px, 1fr));
  }
  .cal-btn {
    padding: 8px 8px;
  }
}

.route {
  padding: 18px 0 34px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px;
}

.panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel__row--center-title {
  justify-content: center;
}

.panel__row--center-title .panel__title {
  width: 100%;
  text-align: center;
}

.cal-row {
  justify-content: center;
  gap: 16px;
  align-items: flex-start;
}

.cal-row .field__label {
  line-height: 1.1;
  min-height: 14px;
}

.cal-field {
  width: min(380px, 100%);
}

.panel__row--wrap {
  flex-wrap: wrap;
  margin-top: 12px;
}

.panel__title {
  font-size: 16px;
  font-weight: 800;
}

.panel__title--topic {
  font-size: 22px;
  font-weight: 950;
}

.panel__meta {
  color: var(--muted2);
  font-size: 13px;
}

.panel__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.field {
  display: grid;
  gap: 6px;
}

.field--inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field__label {
  font-size: 12px;
  color: var(--muted2);
}

.input,
.select {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 10px 12px;
  min-width: 220px;
  outline: none;
}

@media (prefers-color-scheme: dark) {
  .input,
  .select {
    background: rgba(255, 255, 255, 0.04);
  }
}

.btn {
  appearance: none;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.2);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn--danger {
  border-color: rgba(255, 77, 109, 0.45);
  color: var(--danger);
}

.cards {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.top-meta {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  font-weight: 850;
  color: var(--text);
}

.stats-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 980px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  .stat-card {
    background: rgba(255, 255, 255, 0.04);
  }
}

.stat-k {
  font-weight: 950;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--text);
}

.stat-v {
  margin-top: 4px;
  color: var(--muted2);
  font-weight: 800;
  font-size: 12px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 12px;
  box-shadow: var(--shadow);
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card__q {
  font-weight: 800;
  line-height: 1.35;
  font-size: 15px;
}

.card__meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted2);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
}

.fav {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 10px;
  font-weight: 800;
}

.fav.is-on {
  border-color: rgba(61, 220, 151, 0.4);
  background: rgba(61, 220, 151, 0.15);
  color: var(--text);
}

.options {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.opt {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  padding: 0;
  border: 0;
  background: transparent;
}

.opt__inner {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  align-items: flex-start;
}

.opt__k {
  font-weight: 900;
  color: var(--muted2);
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
}

.opt__v {
  color: var(--text);
  flex: 1 1 auto;
}

.opt__icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin-left: 2px;
  display: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.choice.is-correct .opt__icon--check {
  display: block;
  color: rgb(61, 220, 151);
}

.choice.is-wrong .opt__icon--cross {
  display: block;
  color: rgb(255, 77, 109);
}

.choice.is-correct .opt__k {
  background: rgb(61, 220, 151);
  color: white;
  border-color: rgba(61, 220, 151, 0.65);
}

.choice.is-wrong .opt__k {
  background: rgb(255, 77, 109);
  color: white;
  border-color: rgba(255, 77, 109, 0.7);
}

.choice:disabled {
  cursor: not-allowed;
  opacity: 0.95;
}

.choice.is-correct .opt__inner {
  border-color: rgba(61, 220, 151, 0.65);
  background: rgba(61, 220, 151, 0.14);
}

.choice.is-wrong .opt__inner {
  border-color: rgba(255, 77, 109, 0.7);
  background: rgba(255, 77, 109, 0.12);
}

.choice.is-selected .opt__inner {
  border-color: rgba(124, 92, 255, 0.5);
  background: rgba(124, 92, 255, 0.12);
}

.answer {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(61, 220, 151, 0.35);
  background: rgba(61, 220, 151, 0.12);
}

.answer__title {
  font-weight: 900;
}

.answer__text {
  margin-top: 6px;
  color: var(--text);
}

.quiz .choice {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.quiz .choice.is-correct {
  border-color: rgba(61, 220, 151, 0.5);
  background: rgba(61, 220, 151, 0.12);
}

.quiz .choice.is-wrong {
  border-color: rgba(255, 77, 109, 0.55);
  background: rgba(255, 77, 109, 0.12);
}

.quiz__footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.empty {
  margin-top: 14px;
  color: var(--muted2);
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted2);
  font-size: 12px;
}

/* -------- Footer (site-like) -------- */
.site-footer {
  padding: 10px 0 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

@media (max-width: 860px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer__brand {
  font-weight: 900;
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer__domain {
  font-weight: 850;
  font-size: 12px;
  color: var(--muted2);
}

.site-footer__desc {
  margin-top: 6px;
  line-height: 1.5;
  color: var(--muted);
}

.site-footer__badges {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.site-footer__title {
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer__link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.site-footer__link:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer__bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted2);
}

/* -------- Exam panel -------- */
.exam-panel {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px;
}

.exam-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.exam-title {
  font-weight: 900;
  color: var(--text);
}

.exam-meta {
  color: var(--muted2);
  font-size: 13px;
  white-space: pre-line;
}

.exam-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

/* -------- FAQ -------- */
.faq {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.legal {
  margin-top: 14px;
  color: var(--text);
  line-height: 1.65;
}

.legal h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.legal h2 {
  font-size: 14px;
  margin: 16px 0 6px;
  font-weight: 900;
}

.legal p {
  margin: 8px 0;
  color: var(--muted);
}

.legal ul,
.legal ol {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.legal li {
  margin: 6px 0;
}

.legal a {
  color: var(--text);
  font-weight: 800;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .faq-item {
    background: rgba(255, 255, 255, 0.04);
  }
}

.faq-q {
  padding: 14px 14px;
  cursor: pointer;
  font-weight: 900;
  color: var(--text);
  list-style: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-item > summary::after {
  content: "+";
  font-weight: 900;
  color: var(--muted);
}

.faq-item[open] > summary::after {
  content: "−";
  color: var(--text);
}

.faq-a {
  border-top: 1px solid var(--border);
  padding: 12px 14px 14px;
  white-space: pre-line;
  color: var(--muted);
  line-height: 1.55;
}

/* -------- Month/Day picker -------- */
.cal-grid {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: repeat(6, minmax(44px, 1fr));
  gap: 8px;
}

.cal-grid--months {
  grid-template-columns: repeat(3, minmax(44px, 1fr));
}

.cal-grid--days {
  grid-template-columns: repeat(7, minmax(44px, 1fr));
}

.cal-btn {
  appearance: none;
  border-radius: 12px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  user-select: none;
}

.cal-btn:hover {
  border-color: rgba(124, 92, 255, 0.35);
  color: var(--text);
}

.cal-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cal-btn.is-active {
  background: rgba(124, 92, 255, 0.18);
  border-color: rgba(124, 92, 255, 0.45);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(124, 92, 255, 0.18);
  transform: translateY(-1px);
}

.cal-selection {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 10px 12px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
}

/* -------- Test tabs -------- */
.test-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.test-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 900;
}

@media (prefers-color-scheme: dark) {
  .test-tab {
    background: rgba(255, 255, 255, 0.04);
  }
}

.test-tab.is-active {
  background: rgba(124, 92, 255, 0.16);
  border-color: rgba(124, 92, 255, 0.45);
  color: var(--text);
}

.test-tab:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* -------- Categorize page grids -------- */
.cat-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cat-card__icon {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
  }

  .cat-card__title {
    font-size: 13px;
  }
}

.test-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

/* -------- Categorize page cards (modern) -------- */
.cat-card {
  cursor: pointer;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.cat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.55);
}

.cat-card__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.cat-card__icon {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  letter-spacing: 0.2px;
  background: transparent;
  border: 0;
  color: var(--text);
  user-select: none;
}

.cat-card__icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.12);
  transform-origin: center;
}

.cat-card__title {
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.12);
  color: var(--text);
  font-weight: 950;
  font-size: 11px;
}

.cat-card__body {
  display: grid;
  gap: 6px;
  justify-items: center;
}

@media (max-width: 980px) {
  .test-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .test-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* -------- Topic (Konu Anlatım) -------- */
.topic-tools {
  margin-top: 12px;
}

.topic-content {
  margin-top: 12px;
}

.topic-head__title {
  font-weight: 950;
  letter-spacing: 0.2px;
}

.topic-head__meta {
  margin-top: 4px;
  color: var(--muted2);
  font-size: 13px;
  font-weight: 750;
}

.topic-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.topic-vehicle,
.topic-police {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.topic-vehicle__img,
.topic-police__img {
  width: 180px;
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  padding: 10px;
}

@media (prefers-color-scheme: dark) {
  .topic-vehicle__img,
  .topic-police__img {
    background: rgba(255, 255, 255, 0.04);
  }
}

.topic-img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  display: block;
}

.topic-vehicle__body,
.topic-police__body {
  flex: 1 1 auto;
  min-width: 0;
}

.topic-title {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.35;
}

.topic-text {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
  font-size: 13px;
}

.topic-table {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

@media (prefers-color-scheme: dark) {
  .topic-row {
    background: rgba(255, 255, 255, 0.03);
  }
}

.topic-row span {
  color: var(--muted2);
  font-weight: 800;
  font-size: 12px;
}

.topic-row strong {
  color: var(--text);
  font-weight: 950;
}

.topic-note {
  margin-top: 12px;
  color: var(--muted2);
  font-size: 12px;
  font-weight: 750;
}

.sign-cat {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sign-cat__sum {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sign-cat__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.12);
  font-weight: 950;
  color: var(--text);
  font-size: 12px;
}

.sign-grid {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 980px) {
  .sign-grid {
    grid-template-columns: 1fr;
  }
}

.sign-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

@media (prefers-color-scheme: dark) {
  .sign-card {
    background: rgba(255, 255, 255, 0.04);
  }
}

.sign-img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  flex: 0 0 auto;
}

@media (prefers-color-scheme: dark) {
  .sign-img {
    background: rgba(255, 255, 255, 0.04);
  }
}

.sign-name {
  font-weight: 950;
  color: var(--text);
  line-height: 1.25;
}

.sign-desc {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
  font-size: 13px;
}

/* -------- Traffic categories (3 box row) -------- */
.traffic-cat-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.traffic-cat-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  font-weight: 950;
}

@media (prefers-color-scheme: dark) {
  .traffic-cat-btn {
    background: rgba(255, 255, 255, 0.04);
  }
}

.traffic-cat-btn.is-active {
  border-color: rgba(124, 92, 255, 0.45);
  background: rgba(124, 92, 255, 0.16);
}

.traffic-cat-btn__name {
  text-align: left;
  line-height: 1.2;
  font-size: 13px;
}

.traffic-cat-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.12);
  font-weight: 950;
  color: var(--text);
  font-size: 12px;
}

.traffic-cat-panel {
  margin-top: 12px;
}

@media (max-width: 720px) {
  .traffic-cat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topic-vehicle,
  .topic-police {
    flex-direction: column;
  }
  .topic-vehicle__img,
  .topic-police__img {
    width: 100%;
    flex-basis: auto;
  }
}

/* -------- Image sizing (smaller) -------- */
.q-img {
  width: 100%;
  max-width: 560px;
  max-height: 320px;
  object-fit: contain;
  border-radius: 12px;
  margin: 12px auto 0;
  display: block;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
}

.opt-img {
  width: 100%;
  max-width: 420px;
  max-height: 180px;
  object-fit: contain;
  border-radius: 10px;
  margin-top: 8px;
  display: block;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
}

