:root {
  --ink: #0f2a43;
  --ink-deep: #081826;
  --paper: #f6f3ec;
  --paper-line: rgba(15, 42, 67, 0.08);
  --amber: #d98e2b;
  --amber-deep: #b86f16;
  --teal: #1c7a72;
  --graphite: #2a2e33;
  --muted: #6b7480;
  --card: #ffffff;
  --good: #2f9e63;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--paper);
  color: var(--graphite);
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

.display {
  font-family: "Archivo", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Layout shell ===== */
.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

@media (max-width: 880px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

/* ===== Top bar ===== */
.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 68px;
  background: var(--ink-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  cursor: pointer;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--amber);
}

.brand-name {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.2px;
}

.brand-name span {
  color: var(--amber);
}

.brand-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin-top: 1px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.helpline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.helpline b {
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.btn-login {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  background: var(--amber);
  color: var(--ink-deep);
  border: none;
  padding: 10px 22px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s ease;
}

.btn-login:hover {
  background: #eaa445;
}

/* ===== Sidebar ===== */
.sidebar {
  background: var(--ink);
  padding: 28px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 28px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  opacity: 0.7;
  flex-shrink: 0;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: #fff;
  border-left-color: var(--amber);
  background: rgba(217, 142, 43, 0.08);
}

.nav-item.active svg {
  opacity: 1;
}

/* Learn tab only appears once the user is logged in AND enrolled in at least one test series */
.nav-item[data-nav="learn"] {
  display: none;
}

body.has-enrollment .nav-item[data-nav="learn"] {
  display: flex;
}

.sidebar-divider {
  margin: 18px 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-label {
  padding: 0 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ===== Main ===== */
main {
  padding: 32px 36px 80px;
}

@media (max-width: 640px) {
  main {
    padding: 24px 18px 60px;
  }
}

.view {
  display: none;
}

.view.active {
  display: block;
}

/* ===== Hero (home view) ===== */
.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  border: 1px solid var(--ink-deep);
  min-height: 300px;
  display: flex;
  align-items: stretch;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--amber);
  opacity: 0.85;
}

.hero-corner.tl {
  top: 14px;
  left: 14px;
  border-right: none;
  border-bottom: none;
}

.hero-corner.br {
  bottom: 14px;
  right: 14px;
  border-left: none;
  border-top: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 42px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--amber);
  display: inline-block;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero h1 {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 42px;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -0.5px;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 30px;
  }
}

.hero-streams {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

.stream-chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-cta-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-amber {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 14px;
  background: var(--amber);
  color: var(--ink-deep);
  border: none;
  padding: 13px 26px;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.btn-ghost {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 12px 22px;
  cursor: pointer;
}

.hero-emi {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.hero-visual {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
}

@media (max-width: 880px) {
  .hero-visual {
    display: none;
  }
}

.blueprint-figure {
  width: 230px;
  height: 230px;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 44px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.hero-dots span {
  width: 22px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
}

.hero-dots span.active {
  background: var(--amber);
}

/* ===== Section header / location ===== */
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 48px 0 22px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 25px;
  color: var(--ink-deep);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section-title .count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.location-select {
  position: relative;
}

.location-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-bottom: 2px solid var(--ink);
  padding: 11px 16px;
  cursor: pointer;
  min-width: 190px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-deep);
}

.location-trigger svg.pin {
  width: 15px;
  height: 15px;
  color: var(--amber-deep);
}

.location-trigger .chev {
  margin-left: auto;
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
  color: var(--muted);
}

.location-select.open .chev {
  transform: rotate(180deg);
}

.location-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--card);
  border: 1px solid var(--paper-line);
  box-shadow: 0 16px 40px rgba(15, 42, 67, 0.14);
  width: 220px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 40;
  display: none;
}

.location-select.open .location-menu {
  display: block;
}

.location-option {
  padding: 11px 16px;
  font-size: 13.5px;
  cursor: pointer;
  border-bottom: 1px solid var(--paper-line);
  color: var(--graphite);
}

.location-option:last-child {
  border-bottom: none;
}

.location-option:hover {
  background: var(--paper);
}

.location-option.selected {
  background: rgba(217, 142, 43, 0.08);
  color: var(--amber-deep);
  font-weight: 600;
}

/* ===== Filter tabs (pills) ===== */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tab {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  padding: 9px 18px;
  border: 1px solid var(--paper-line);
  background: var(--card);
  color: var(--graphite);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab:hover {
  border-color: var(--ink);
}

.tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ===== Course cards (home) ===== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.course-card {
  background: var(--card);
  border: 1px solid var(--paper-line);
  position: relative;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 42, 67, 0.12);
}

.card-corner {
  position: absolute;
  width: 11px;
  height: 11px;
  border-color: var(--amber);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.course-card:hover .card-corner,
.ts-card:hover .card-corner {
  opacity: 1;
}

.card-corner.tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.card-corner.br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.card-head {
  background: var(--ink);
  padding: 18px 18px 40px;
  position: relative;
  overflow: hidden;
}

.card-head-grid {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 14px);
}

.card-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber);
  color: var(--ink-deep);
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  text-transform: uppercase;
}

.card-mode {
  position: relative;
  z-index: 1;
  float: right;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 8px;
}

.card-streams {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1px;
}

.card-streams b {
  color: rgba(255, 255, 255, 0.85);
}

.card-icon {
  position: absolute;
  right: 14px;
  bottom: -26px;
  z-index: 1;
  width: 64px;
  height: 64px;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 30px;
  height: 30px;
  color: var(--ink);
}

.card-body {
  padding: 34px 18px 18px;
}

.card-tag {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--teal);
  background: rgba(28, 122, 114, 0.08);
  padding: 3px 9px;
  margin-bottom: 10px;
}

.card-title {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink-deep);
  line-height: 1.3;
  margin-bottom: 14px;
  min-height: 43px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--paper-line);
  padding-top: 13px;
}

.card-price {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-deep);
}

.card-price span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  text-decoration: line-through;
  margin-right: 6px;
}

.card-arrow {
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all 0.15s ease;
}

.course-card:hover .card-arrow {
  background: var(--ink);
  color: #fff;
}

.card-arrow svg {
  width: 14px;
  height: 14px;
}

/* ===== Stats ===== */
.stat-strip {
  margin-top: 64px;
  background: var(--ink);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink-deep);
}

@media (max-width: 700px) {
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  padding: 26px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat:last-child {
  border-right: none;
}

.stat .num {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--amber);
}

.stat .lab {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ===== Breadcrumb ===== */
.crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.crumb a:hover {
  color: var(--amber-deep);
}

.crumb .sep {
  margin: 0 6px;
  color: var(--paper-line);
}

.crumb .current {
  color: var(--ink-deep);
  font-weight: 600;
}

.page-title {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--ink-deep);
  margin-bottom: 22px;
}

/* ===== Listing view ===== */
.listing-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
}

.view-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--paper-line);
}

.view-tab {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  padding: 0 0 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.view-tab.active {
  color: var(--ink-deep);
  border-color: var(--amber);
}

.search-box {
  position: relative;
}

.search-box input {
  width: 260px;
  padding: 11px 14px 11px 38px;
  border: 1px solid var(--paper-line);
  background: var(--card);
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--ink);
}

.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.listing-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 820px) {
  .listing-layout {
    grid-template-columns: 1fr;
  }
}

.filters-panel {
  background: var(--card);
  border: 1px solid var(--paper-line);
  padding: 20px;
  position: sticky;
  top: 90px;
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.filters-head h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.filters-clear {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--amber-deep);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.filters-clear svg {
  width: 12px;
  height: 12px;
}

.filter-row {
  border-top: 1px dashed var(--paper-line);
  padding: 13px 0;
  cursor: pointer;
  user-select: none;
}

.filter-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  color: var(--graphite);
}

.filter-plus {
  width: 20px;
  height: 20px;
  border: 1px solid var(--paper-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.filter-row.open .filter-plus {
  transform: rotate(45deg);
  border-color: var(--amber);
  color: var(--amber-deep);
}

.filter-row-body {
  display: none;
  padding-top: 10px;
}

.filter-row.open .filter-row-body {
  display: block;
}

.filter-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 5px 0;
}

.filter-opt input {
  accent-color: var(--amber-deep);
}

.btn-apply {
  width: 100%;
  margin-top: 14px;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 12px;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}

.btn-apply:hover {
  background: var(--ink-deep);
}

.ts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.ts-card {
  background: var(--card);
  border: 1px solid var(--paper-line);
  position: relative;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.ts-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 42, 67, 0.12);
}

.ts-card.coming-soon {
  cursor: not-allowed;
}

.ts-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  background: rgba(246, 243, 236, 0.7);
  /* translucent var(--paper) */
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  z-index: 10;
  letter-spacing: 1px;
  text-transform: uppercase;
  pointer-events: none;
  /* Let the card's not-allowed cursor show */
}

.ts-banner {
  position: relative;
  height: 148px;
  background: linear-gradient(120deg, #0f2a43, #163b5c);
  overflow: hidden;
}

.apex-easy-brand {
  margin-top: 10px;
  color: var(--amber);
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  background: rgba(234, 164, 69, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(234, 164, 69, 0.3);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.ts-banner-grid {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg,
      rgba(255, 255, 255, 0.06) 0 1px,
      transparent 1px 14px);
}

.ts-code {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  background: #c13b2e;
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.ts-online {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e9f2d8;
  color: #3e6b1f;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  z-index: 2;
  letter-spacing: 0.4px;
}

.ts-banner-text {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px 14px 50px;
}

.ts-banner-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--amber);
  text-transform: uppercase;
}

.ts-banner-main {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  line-height: 1.15;
  margin-top: 4px;
}

.ts-banner-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 5px;
}

.ts-body {
  padding: 16px 18px 18px;
}

.ts-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ts-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  padding: 3px 9px;
}

.ts-tag.exam {
  background: rgba(217, 142, 43, 0.12);
  color: var(--amber-deep);
}

.ts-tag.subject {
  background: rgba(28, 122, 114, 0.1);
  color: var(--teal);
}

.ts-title {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-deep);
  margin-bottom: 12px;
  line-height: 1.3;
  min-height: 42px;
}

.ts-meta-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.ts-meta-tag {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--paper-line);
  padding: 3px 9px;
}

.ts-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--paper-line);
  padding-top: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--graphite);
}

.ts-footer b {
  color: var(--ink-deep);
}

/* ===== Detail view ===== */
.detail-banner-card {
  display: flex;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--paper-line);
  padding: 18px;
  flex-wrap: wrap;
}

.detail-banner-img {
  position: relative;
  width: 300px;
  height: 170px;
  flex-shrink: 0;
  background: linear-gradient(120deg, #0f2a43, #163b5c);
  overflow: hidden;
}

@media (max-width: 600px) {
  .detail-banner-img {
    width: 100%;
  }
}

.detail-banner-code {
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  background: #c13b2e;
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.detail-banner-online {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e9f2d8;
  color: #3e6b1f;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  z-index: 2;
}

.detail-banner-text {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px 16px 54px;
}

.detail-banner-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--amber);
  text-transform: uppercase;
}

.detail-banner-main {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  line-height: 1.15;
  margin-top: 6px;
}

.detail-banner-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}

.detail-info {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.detail-session {
  position: absolute;
  top: 0;
  right: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--paper-line);
  padding: 4px 10px;
}

.detail-title {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 21px;
  color: var(--ink-deep);
  margin: 6px 0 14px;
  max-width: 80%;
}

.detail-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--graphite);
  margin-bottom: 18px;
  max-width: 640px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 30px;
  max-width: 520px;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--graphite);
}

.detail-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--amber-deep);
  flex-shrink: 0;
}

.detail-meta-item b {
  color: var(--ink-deep);
  font-weight: 600;
}

.section-heading {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 21px;
  color: var(--ink-deep);
  margin: 40px 0 18px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 760px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--card);
  border: 1px solid var(--paper-line);
  padding: 15px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--graphite);
}

.feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(47, 158, 99, 0.12);
  color: var(--good);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-check svg {
  width: 13px;
  height: 13px;
}

.batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.batch-card {
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-bottom: 3px solid var(--paper-line);
  padding: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.batch-card.selected {
  background: rgba(217, 142, 43, 0.06);
  border-color: var(--amber);
  border-bottom-color: var(--amber);
}

.batch-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-deep);
  margin-bottom: 12px;
}

.batch-check {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid var(--paper-line);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.batch-card.selected .batch-check {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

.batch-check svg {
  width: 11px;
  height: 11px;
}

.batch-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 7px;
}

.batch-row svg {
  width: 14px;
  height: 14px;
  color: var(--amber-deep);
  flex-shrink: 0;
}

.batch-row b {
  color: var(--graphite);
  font-weight: 500;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.schedule-card {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--card);
  border: 1px solid var(--paper-line);
  padding: 14px 16px;
}

.schedule-icon {
  width: 42px;
  height: 42px;
  background: rgba(217, 142, 43, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.schedule-icon svg {
  width: 20px;
  height: 20px;
  color: var(--amber-deep);
}

.schedule-name {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-deep);
}

.schedule-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}

.enroll-bar {
  margin-top: 40px;
  position: sticky;
  bottom: 0;
  background: #eaf2f9;
  border: 1px solid var(--paper-line);
  border-bottom: none;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  z-index: 30;
}

.enroll-price-lab {
  font-size: 12px;
  color: var(--muted);
}

.enroll-price {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink-deep);
}

.btn-enroll {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 14px 34px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s ease;
}

.btn-enroll:hover {
  background: var(--amber-deep);
}

/* ===== Login modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 24, 38, 0.55);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  position: relative;
  background: var(--card);
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--paper-line);
  border-bottom: 4px solid var(--amber);
  padding: 40px 36px 32px;
  box-shadow: 0 24px 60px rgba(8, 24, 38, 0.35);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close svg {
  width: 14px;
  height: 14px;
}

.modal-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.modal-brand .brand-mark {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.modal-brand-name {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 21px;
  color: var(--ink-deep);
}

.modal-brand-name span {
  color: var(--amber-deep);
}

.modal-welcome {
  text-align: center;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--teal);
  margin-bottom: 22px;
}

.modal-title {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: var(--ink-deep);
  margin-bottom: 20px;
}

.modal-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 8px;
  display: block;
}

.modal-label .req {
  color: #c13b2e;
  margin-left: 2px;
}

.modal-input {
  width: 100%;
  padding: 13px 4px;
  border: none;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  outline: none;
  padding-left: 10px;
}

.modal-input::placeholder {
  color: var(--muted);
}

.modal-input:focus {
  border-color: var(--amber);
}

.btn-continue {
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  border: none;
  background: var(--paper-line);
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  cursor: not-allowed;
}

.btn-continue.ready {
  background: var(--ink);
  cursor: pointer;
}

.btn-continue.ready:hover {
  background: var(--amber-deep);
}

.modal-google {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid var(--paper-line);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--graphite);
  cursor: pointer;
}

.modal-google:hover {
  border-color: var(--ink);
}

.modal-google svg {
  width: 17px;
  height: 17px;
}

.modal-mobile {
  text-align: center;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.modal-mobile:hover {
  color: var(--amber-deep);
}

.modal-field {
  margin-top: 16px;
}

.modal-field:first-of-type {
  margin-top: 0;
}

.modal-error {
  font-size: 12px;
  color: #c13b2e;
  margin-top: 8px;
  display: none;
}

.modal-error.show {
  display: block;
}

.otp-sentto {
  text-align: center;
  font-size: 13.5px;
  color: var(--graphite);
  margin-bottom: 4px;
}

.otp-email {
  text-align: center;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--amber-deep);
  margin-bottom: 24px;
  word-break: break-all;
}

.otp-input {
  letter-spacing: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
}

.otp-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 13px;
}

.otp-back {
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.otp-back:hover {
  color: var(--amber-deep);
}

.otp-timer {
  color: var(--graphite);
}

.otp-timer b {
  color: var(--amber-deep);
  font-family: "IBM Plex Mono", monospace;
}

.otp-hint {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 16px;
  font-family: "IBM Plex Mono", monospace;
}

/* ===== Profile chip (logged-in state) ===== */
.profile-chip {
  position: relative;
  display: none;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.profile-chip.show {
  display: flex;
}

.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 13.5px;
  flex-shrink: 0;
}

.profile-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.profile-name {
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-name svg {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}

.profile-chip.open .profile-name svg {
  transform: rotate(180deg);
}

.profile-email {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-family: "IBM Plex Mono", monospace;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--paper-line);
  box-shadow: 0 16px 40px rgba(8, 24, 38, 0.25);
  width: 220px;
  z-index: 60;
  display: none;
}

.profile-chip.open .profile-menu {
  display: block;
}

.profile-menu-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--paper-line);
}

.profile-menu-head .pname {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-deep);
}

.profile-menu-head .pemail {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  word-break: break-all;
}

.profile-logout {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #c13b2e;
  cursor: pointer;
}

.profile-logout:hover {
  background: rgba(193, 59, 46, 0.06);
}

.profile-logout svg {
  width: 15px;
  height: 15px;
}

/* ===== Learn page ===== */
.learn-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.btn-outline-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--paper-line);
  background: var(--card);
  padding: 10px 18px;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-deep);
  cursor: pointer;
}

.btn-outline-pill:hover {
  border-color: var(--ink);
}

.btn-outline-pill svg {
  width: 15px;
  height: 15px;
}

.learn-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-left: 3px solid var(--amber);
  padding: 18px 20px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.learn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 42, 67, 0.1);
}

.learn-icon {
  width: 54px;
  height: 54px;
  background: rgba(217, 142, 43, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.learn-icon svg {
  width: 26px;
  height: 26px;
  color: var(--amber-deep);
}

.learn-body {
  flex: 1;
  min-width: 0;
}

.learn-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.learn-title {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink-deep);
  margin-bottom: 6px;
}

.learn-valid {
  font-size: 12.5px;
  color: var(--muted);
}

.learn-online {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  color: #3e6b1f;
  background: #e9f2d8;
  padding: 3px 9px;
  flex-shrink: 0;
}

.learn-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.learn-arrow svg {
  width: 15px;
  height: 15px;
}

.empty-state {
  background: var(--card);
  border: 1px dashed var(--paper-line);
  padding: 54px 30px;
  text-align: center;
}

.empty-state svg {
  width: 46px;
  height: 46px;
  color: var(--paper-line);
  margin-bottom: 14px;
}

.empty-state h4 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-deep);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ===== Test list page ===== */
.pill-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.module-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--paper-line);
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--graphite);
  margin-bottom: 22px;
  max-width: 100%;
}

.module-filter svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
  flex-shrink: 0;
}

.test-card {
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: visible;
  position: relative;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  box-shadow: 0 2px 10px rgba(15, 42, 67, 0.05);
}

.test-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(15, 42, 67, 0.13);
  border-color: rgba(217, 142, 43, 0.35);
}

.test-ribbon {
  position: absolute;
  top: -11px;
  left: 22px;
  z-index: 2;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #fff;
  background: linear-gradient(135deg, #33b96b, #279453);
  padding: 5px 14px;
  border-radius: 7px;
  box-shadow: 0 6px 14px rgba(39, 148, 83, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.test-ribbon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.test-card.status-attempted .test-ribbon {
  background: linear-gradient(135deg, var(--teal), #145048);
  box-shadow: 0 6px 14px rgba(28, 122, 114, 0.4);
}

.test-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 22px 18px;
  flex-wrap: wrap;
}

.test-icon-wrap {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.test-icon-wrap .box {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
      rgba(62, 123, 217, 0.16),
      rgba(62, 123, 217, 0.06));
  box-shadow: inset 0 0 0 1px rgba(62, 123, 217, 0.18);
  transition: transform 0.18s ease;
}

.test-card:hover .test-icon-wrap .box {
  transform: scale(1.06) rotate(-2deg);
}

.test-card.status-attempted .test-icon-wrap .box {
  background: linear-gradient(135deg,
      rgba(28, 122, 114, 0.18),
      rgba(28, 122, 114, 0.06));
  box-shadow: inset 0 0 0 1px rgba(28, 122, 114, 0.22);
}

.test-icon-wrap svg {
  width: 25px;
  height: 25px;
  color: #3e6bd9;
}

.test-card.status-attempted .test-icon-wrap svg {
  color: var(--teal);
}

.test-info {
  flex: 1;
  min-width: 220px;
}

.test-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}

.test-title {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-deep);
  letter-spacing: 0.1px;
  line-height: 1.35;
}

.test-status-badge {
  display: none;
}

.test-dates {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  row-gap: 6px;
}

.test-dates span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.test-dates b {
  color: var(--graphite);
  font-weight: 600;
}

.test-dates svg {
  width: 14px;
  height: 14px;
  color: #3e6bd9;
  flex-shrink: 0;
}

.test-online {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  color: #3e6b1f;
  background: #e9f2d8;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

.test-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--paper-line);
  padding: 14px 22px;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(180deg,
      rgba(15, 42, 67, 0.015),
      rgba(15, 42, 67, 0.03));
}

.test-meta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--graphite);
  font-weight: 500;
}

.test-meta-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.test-meta-row svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.test-score {
  font-weight: 700;
  color: var(--teal);
  background: rgba(28, 122, 114, 0.1);
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
}

.test-score svg {
  color: var(--teal) !important;
}

.btn-start-test {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(135deg, var(--ink), var(--ink-deep));
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-start-test:hover {
  background: linear-gradient(135deg, var(--amber-deep), var(--amber));
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(217, 142, 43, 0.35);
}

.btn-start-test svg {
  width: 13px;
  height: 13px;
  transition: transform 0.15s ease;
}

.btn-start-test:hover svg {
  transform: translateX(3px);
}

.btn-start-test.attempted {
  background: linear-gradient(135deg, var(--teal), #145048);
}

.btn-start-test.attempted:hover {
  background: linear-gradient(135deg, #218278, #103d37);
  box-shadow: 0 8px 18px rgba(28, 122, 114, 0.35);
}

/* ===== Exam Instructions full-page overlay ===== */
.exam-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 300;
  display: none;
  flex-direction: column;
  font-family: "Inter", sans-serif;
}

.exam-overlay.show {
  display: flex;
}

.exam-topbar {
  flex-shrink: 0;
  height: 88px;
  background: linear-gradient(135deg, #0e5fae, #0a4880);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.exam-topbar-title {
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.exam-topbar-title small {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.exam-exit {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
}

.exam-exit:hover {
  background: rgba(255, 255, 255, 0.2);
}

.exam-exit svg {
  width: 13px;
  height: 13px;
}

.exam-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.exam-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.exam-instr-head {
  flex-shrink: 0;
  background: #ddeefb;
  color: #0b3a63;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 32px;
}

.exam-instr-body {
  flex: 1;
  overflow-y: auto;
  padding: 30px 36px 50px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #222b35;
}

.exam-instr-body h4 {
  font-family: "Archivo", sans-serif;
  font-size: 14.5px;
  text-align: center;
  margin-bottom: 22px;
}

.exam-instr-body h5 {
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  text-decoration: underline;
  margin: 26px 0 12px;
}

.exam-instr-body p {
  margin-bottom: 14px;
}

.exam-instr-body b {
  color: #0b3a63;
}

.exam-instr-body ol {
  margin: 0 0 14px 20px;
}

.exam-instr-body ol li {
  margin-bottom: 8px;
}

.exam-palette-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
}

.exam-palette-table td {
  border: 1px solid #e3e7eb;
  padding: 11px 14px;
  font-size: 13px;
  vertical-align: middle;
}

.exam-palette-table td:first-child {
  width: 54px;
  text-align: center;
}

.palette-chip {
  width: 30px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  border-radius: 3px;
}

.palette-chip.notvisited {
  background: #a9b2bc;
}

.palette-chip.notanswered {
  background: #d9534f;
  border-radius: 50%;
}

.palette-chip.answered {
  background: #3ea655;
  border-radius: 50%;
}

.palette-chip.review {
  background: #7b5fc4;
  border-radius: 50%;
}

.palette-chip.review-answered {
  background: #7b5fc4;
  border-radius: 50%;
  position: relative;
}

.palette-chip.review-answered::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  background: #3ea655;
  border-radius: 50%;
  border: 1.5px solid #fff;
}

.nav-arrow-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #1f2937;
  color: #fff;
  vertical-align: middle;
}

.nav-arrow-key svg {
  width: 10px;
  height: 10px;
}

.exam-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  padding: 16px 32px;
  border-top: 1px solid #e3e7eb;
}

.exam-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0e5fae;
  color: #fff;
  border: none;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 30px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.exam-next-btn:hover {
  background: #0a4880;
}

.exam-next-btn svg {
  width: 16px;
  height: 16px;
}

.exam-side {
  width: 230px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 46px 20px;
  overflow-y: auto;
}

.exam-side-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3eef8, #c9deef);
  color: #0e5fae;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 30px;
  overflow: hidden;
  flex-shrink: 0;
}

.exam-side-name {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  color: #1c2530;
  margin-top: 16px;
  text-align: center;
}

.exam-side-email {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
  word-break: break-all;
}

@media (max-width: 760px) {
  .exam-side {
    display: none;
  }
}

/* ===== Instructions footer (checkbox + begin) ===== */
.exam-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 32px 0;
}

.exam-consent input {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  accent-color: #0e5fae;
  cursor: pointer;
  flex-shrink: 0;
}

.exam-consent label {
  font-size: 12.5px;
  line-height: 1.6;
  color: #3a4552;
  cursor: pointer;
}

.exam-footer {
  align-items: center;
  justify-content: space-between;
}

.exam-next-btn:disabled {
  background: #a9b7c6;
  cursor: not-allowed;
}

.exam-next-btn:disabled:hover {
  background: #a9b7c6;
}

/* ===== Test Player (question-attempt screen) ===== */
.player-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 320;
  display: none;
  flex-direction: column;
  font-family: "Inter", sans-serif;
}

.player-overlay.show {
  display: flex;
}

.player-topbar {
  flex-shrink: 0;
  background: #0b2e52;
  color: #fff;
  padding: 10px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Archivo", sans-serif;
}

.player-topbar .pt-title {
  font-weight: 700;
  font-size: 14.5px;
  color: #f4c24b;
  letter-spacing: 0.2px;
}

.player-topbar .pt-right {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12.5px;
}

.player-topbar .pt-right span {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #dce7f5;
}

.player-topbar .pt-right svg {
  width: 14px;
  height: 14px;
}

.pt-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #7fb3e8;
  font-weight: 600;
  transition: color 0.12s ease;
}

.pt-icon:hover {
  color: #f4c24b;
}

.pt-icon svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.player-sectionbar {
  flex-shrink: 0;
  background: #f1f4f8;
  border-bottom: 1px solid #dce3ea;
  padding: 9px 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-sectionbar .player-sectiontab {
  margin-right: auto;
}

.calc-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #d3dae1;
  background: #fff;
  color: #0b2e52;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s ease;
}

.calc-icon-btn:hover {
  background: #eaf1fa;
}

.calc-icon-btn svg {
  width: 17px;
  height: 17px;
}

.pt-exit {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #c0392b;
  font-weight: 700;
  font-family: "Archivo", sans-serif;
  font-size: 12.5px;
  flex-shrink: 0;
}

.pt-exit svg {
  width: 14px;
  height: 14px;
}

.pt-exit:hover {
  color: #96271c;
}

.player-sectiontab {
  background: #0e5fae;
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 2px;
}

.player-sectiontab svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

.player-timer {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 13.5px;
  color: #0b2e52;
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-timer b {
  color: #c0392b;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.player-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.player-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border-right: 1px solid #e3e7eb;
}

.player-qhead {
  flex-shrink: 0;
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf0f3;
  font-size: 12.5px;
}

.player-qhead .qtype {
  color: #1c2530;
  font-weight: 900;
  font-family: ui-sans-serif;
}

.player-qhead .qmarks {
  display: flex;
  gap: 18px;
}

.player-qhead .qmarks span {
  font-family: "IBM Plex Mono", monospace;
}

.player-qhead .qmarks .pos {
  color: #000000;
  font-weight: 600;
}

.player-qhead .qmarks .neg {
  color: #c0392b;
  font-weight: 600;
}

.player-qbody {
  flex: 1;
  overflow-y: auto;
  padding: 22px 30px 30px;
}

.player-qnum {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #0b2e52;
  margin-bottom: 16px;
}

.player-qtext {
  font-size: 17px;
  line-height: 1.75;
  color: #000000;
  font-weight: 700;
  margin-bottom: 18px;
  white-space: pre-line;
}

.player-qimg-wrap {
  margin: 6px 0 22px;
}

.player-qimg-wrap img {
  max-width: 100%;
  max-height: 340px;
  border: 1px solid #e3e7eb;
  border-radius: 4px;
  display: block;
}

.player-qimg-placeholder {
  border: 1.5px dashed #c7d2dd;
  border-radius: 6px;
  padding: 26px;
  text-align: center;
  color: #8a97a5;
  font-size: 12px;
  margin: 6px 0 22px;
  background: #fafbfc;
}

.player-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.player-opt:hover {
  background: #f5f8fb;
}

.player-opt input {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  accent-color: #0e5fae;
  cursor: pointer;
  flex-shrink: 0;
}

.player-opt span {
  font-size: 17.5px;
  color: #28313b;
  line-height: 1.6;
}

.player-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 30px;
  border-top: 1px solid #e3e7eb;
  background: #fafbfc;
}

.pf-left,
.pf-right {
  display: flex;
  gap: 10px;
}

.pf-btn {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid #d3dae1;
  background: #fff;
  color: #2c3844;
  transition: background 0.12s ease;
}

.pf-btn:hover {
  background: #f1f4f8;
}

.pf-btn.primary {
  background: #0e5fae;
  border-color: #0e5fae;
  color: #fff;
}

.pf-btn.primary:hover {
  background: #0a4880;
}

.pf-btn.ghost {
  color: #6b7480;
}

.player-side {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #fff;
}

.player-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid #edf0f3;
}

.player-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3eef8, #c9deef);
  color: #0e5fae;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.player-user-name {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #1c2530;
}

.player-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f3;
}

.player-status-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #3a4552;
}

.player-status-num {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-status-num.answered {
  background: #3ea655;
  border-radius: 50%;
}

.player-status-num.notanswered {
  background: #c0392b;
}

.player-status-num.notvisited {
  background: #a9b2bc;
}

.player-status-num.marked {
  background: #7b5fc4;
  border-radius: 50%;
}

.player-side-secname {
  background: #0e5fae;
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  padding: 12px 16px;
}

.player-choose {
  padding: 12px 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  color: #8a97a5;
  text-transform: uppercase;
}

.player-qgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 16px 16px;
}

.player-qbtn {
  aspect-ratio: 1;
  border: none;
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 12.5px;
  color: #fff;
  background: #a9b2bc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.player-qbtn.answered {
  background: #3ea655;
  border-radius: 50%;
}

.player-qbtn.notanswered {
  background: #c0392b;
}

.player-qbtn.marked {
  background: #7b5fc4;
  border-radius: 50%;
}

.player-qbtn.marked.answered {
  background: #7b5fc4;
  border-radius: 50%;
}

.player-qbtn.marked.answered::after {
  content: "";
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 8px;
  height: 8px;
  background: #3ea655;
  border-radius: 50%;
  border: 1.5px solid #fff;
}

.player-qbtn.current {
  outline: 2.5px solid #f4c24b;
  outline-offset: 2px;
}

.pf-submit-wrap {
  padding: 0 16px 18px;
  margin-top: auto;
}

.pf-submit-btn {
  width: 100%;
  background: #0e5fae;
  color: #fff;
  border: none;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
}

.pf-submit-btn:hover {
  background: #0a4880;
}

@media (max-width: 820px) {
  .player-side {
    display: none;
  }
}

/* ===== Question Paper (read-only) ===== */
.qpaper-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 42, 0.6);
  z-index: 410;
  display: none;
  align-items: center;
  justify-content: center;
}

.qpaper-overlay.show {
  display: flex;
}

.qpaper-modal {
  width: min(760px, 92vw);
  max-height: 86vh;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.qpaper-head {
  background: #0b2e52;
  color: #fff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.qpaper-head button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 2px;
}

.qpaper-head button svg {
  width: 16px;
  height: 16px;
  display: block;
}

.qpaper-body {
  overflow-y: auto;
  padding: 22px 26px 30px;
}

.qp-item {
  padding: 16px 0;
  border-bottom: 1px solid #edf0f3;
}

.qp-item:last-child {
  border-bottom: none;
}

.qp-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.qp-num {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: #0b2e52;
}

.qp-marks {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #6b7480;
}

.qp-marks .pos {
  color: #2f9e63;
}

.qp-marks .neg {
  color: #c0392b;
  margin-left: 8px;
}

.qp-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: #1c2530;
  white-space: pre-line;
  margin-bottom: 10px;
}

.qp-opts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qp-opt {
  font-size: 12.5px;
  color: #3a4552;
  padding: 6px 10px;
  background: #fafbfc;
  border: 1px solid #edf0f3;
  border-radius: 4px;
}

.qp-opt b {
  color: #0e5fae;
  margin-right: 6px;
}

/* ===== Scientific calculator ===== */
.calc-box {
  position: fixed;
  top: 76px;
  right: 26px;
  width: 520px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 96px);
  background: #fff;
  border: 1px solid rgba(15, 42, 67, 0.1);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(8, 24, 38, 0.35);
  z-index: 400;
  display: none;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  animation: calcPop 0.16s ease;
}

@keyframes calcPop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.calc-box.show {
  display: flex;
  flex-direction: column;
}

.calc-box.minimized .calc-body {
  display: none;
}

.calc-head {
  background: linear-gradient(135deg, #5c8df2, #3e6bd9);
  color: #fff;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.calc-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-help-btn {
  background: rgba(255, 255, 255, 0.22);
  border: none;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.calc-help-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.calc-head button:not(.calc-help-btn) {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.calc-head button:not(.calc-help-btn):hover {
  background: rgba(255, 255, 255, 0.28);
}

.calc-head button svg {
  width: 13px;
  height: 13px;
  display: block;
}

.calc-help-tip {
  display: none;
  font-size: 12px;
  line-height: 1.5;
  color: #3a4552;
  background: #eaf1ff;
  padding: 10px 16px;
  border-bottom: 1px solid var(--paper-line);
  flex-shrink: 0;
}

.calc-help-tip.show {
  display: block;
}

.calc-body {
  display: flex;
  flex-direction: column;
}

.calc-expr {
  width: 100%;
  box-sizing: border-box;
  border: none;
  padding: 12px 16px 0;
  text-align: right;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
  height: 32px;
  flex-shrink: 0;
}

.calc-display {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid var(--paper-line);
  padding: 2px 16px 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink-deep);
  background: #fff;
  text-align: right;
  flex-shrink: 0;
}

.calc-modebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--paper-line);
  background: #f9fafb;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.calc-mode-btn {
  border: 1px solid var(--paper-line);
  background: #fff;
  color: var(--graphite);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.calc-mode-btn:hover {
  background: rgba(62, 107, 217, 0.08);
  border-color: rgba(62, 107, 217, 0.3);
  color: #3e6bd9;
}

.calc-radio {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--graphite);
  cursor: pointer;
  font-weight: 500;
}

.calc-radio input {
  accent-color: #3e6bd9;
  cursor: pointer;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 1px;
  background: var(--paper-line);
  overflow-y: auto;
}

.calc-grid button {
  border: none;
  background: #fff;
  padding: 13px 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--graphite);
  cursor: pointer;
  transition: background 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-grid button:hover {
  background: #eef2fa;
}

.calc-grid button:active {
  background: #e1e9f8;
}

.calc-grid button.fn {
  color: #3e6bd9;
}

.calc-grid button.op {
  color: var(--amber-deep);
  font-weight: 700;
}

.calc-grid button.eq {
  background: linear-gradient(135deg, #4cc97f, #2f9e63);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.calc-grid button.eq:hover {
  background: linear-gradient(135deg, #3fbb70, #268654);
}

.calc-grid button.clr,
.calc-grid button.bksp,
.calc-grid button.pm {
  background: linear-gradient(135deg, #f0645a, #e24a3e);
  color: #fff;
  font-weight: 700;
}

.calc-grid button.clr:hover,
.calc-grid button.bksp:hover,
.calc-grid button.pm:hover {
  background: linear-gradient(135deg, #e24a3e, #c93a2f);
}

.calc-grid button.bksp svg {
  width: 15px;
  height: 15px;
}

.calc-grid button sup {
  font-size: 8px;
}

@media (max-width: 560px) {
  .calc-box {
    right: 12px;
    left: 12px;
    width: auto;
    top: 64px;
  }

  .calc-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .calc-grid button[data-block="num"] {
    grid-column: auto !important;
  }
}

/* ===== Submit summary modal ===== */
.summary-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 42, 0.55);
  z-index: 340;
  display: none;
  align-items: center;
  justify-content: center;
}

.summary-overlay.show {
  display: flex;
}

.summary-modal {
  width: min(700px, 92vw);
  max-height: 86vh;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.summary-head {
  background: linear-gradient(135deg, #0e5fae, #0a4880);
  color: #fff;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 19px;
}

.summary-head button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.summary-head button svg {
  width: 18px;
  height: 18px;
  display: block;
}

.summary-body {
  padding: 24px 26px;
  overflow-y: auto;
}

.summary-total-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #f5f9fd;
  border: 1px solid #e3eef8;
  border-radius: 6px;
  padding: 16px 18px;
}

.summary-total-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #ddeefb;
  color: #0e5fae;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-total-icon svg {
  width: 22px;
  height: 22px;
}

.summary-total-head {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1c2530;
  margin-bottom: 6px;
}

.summary-total-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: #3a4552;
}

.summary-total-stats b {
  color: #1c2530;
}

.summary-section-title {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1c2530;
  margin: 22px 0 10px;
}

.summary-section-card {
  border: 1px solid #e3e7eb;
  border-radius: 6px;
  padding: 16px 18px;
}

.summary-section-name {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #0b2e52;
  margin-bottom: 6px;
}

.summary-section-total {
  font-size: 12.5px;
  color: #3a4552;
  margin-bottom: 12px;
}

.summary-section-total b {
  color: #1c2530;
}

.summary-section-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: #3a4552;
}

.summary-section-stats b {
  color: #1c2530;
}

.summary-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  border-top: 1px solid #e3e7eb;
  font-size: 13.5px;
  color: #1c2530;
}

.summary-footer-btns {
  display: flex;
  gap: 10px;
}

.summary-yes,
.summary-no {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
}

.summary-yes {
  background: #0e5fae;
  border: none;
  color: #fff;
}

.summary-yes:hover {
  background: #0a4880;
}

.summary-no {
  background: #fff;
  border: 1px solid #d3dae1;
  color: #3a4552;
}

.summary-no:hover {
  background: #f1f4f8;
}

/* ===== Submit success interstitial ===== */
.success-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 360;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.success-overlay.show {
  display: flex;
}

.success-check {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #e8f7ee;
  color: #2f9e63;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-check svg {
  width: 44px;
  height: 44px;
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #1c2530;
}

.success-sub {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #6b7480;
}

/* ===== Result / analysis page ===== */
.result-overlay {
  position: fixed;
  inset: 0;
  background: #f4f6f8;
  z-index: 350;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  font-family: "Inter", sans-serif;
}

.result-overlay.show {
  display: flex;
}

.result-topbar {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e3e7eb;
  padding: 14px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-brand {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: #c0392b;
  letter-spacing: 0.5px;
}

.result-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3eef8, #c9deef);
  color: #0e5fae;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 13px;
}

.result-user-name {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #1c2530;
}

.result-user-email {
  font-size: 11px;
  color: #8a97a5;
}

.result-body {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 26px 34px 60px;
}

.result-crumb {
  font-size: 12.5px;
  color: #8a97a5;
  margin-bottom: 6px;
}

.result-crumb span:first-child {
  color: #0e5fae;
  cursor: pointer;
}

.result-h1 {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #1c2530;
  margin-bottom: 18px;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin: -52px 0 22px;
}

.ra-btn {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid #d3dae1;
  background: #fff;
  color: #0e5fae;
  cursor: pointer;
}

.ra-btn:hover {
  background: #f1f4f8;
}

.result-summary-card {
  background: #fff;
  border: 1px solid #e3e7eb;
  border-radius: 8px;
  padding: 30px 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.result-donut-wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.result-donut {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.result-donut::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--donut-gradient, #e3e7eb 0 100%));
}

.result-donut-center {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.rd-label {
  font-size: 11px;
  color: #8a97a5;
}

.rd-score {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: #1c2530;
  margin-top: 3px;
}

.result-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #3a4552;
}

.result-legend div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-legend b {
  color: #1c2530;
  margin-left: 2px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.correct {
  background: #2f9e63;
}

.dot.incorrect {
  background: #d9534f;
}

.dot.unattempted {
  background: #e8a33d;
}

.result-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 16px;
}

.result-stat {
  background: #f7f9fb;
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-stat span {
  font-size: 11.5px;
  color: #8a97a5;
}

.result-stat b {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: #1c2530;
}

.result-subject-title {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #1c2530;
  margin-bottom: 12px;
}

.analysis-cards-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.result-subject-card {
  background: #fff;
  border: 1px solid #e3e7eb;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 360px;
}

.rsc-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.result-subject-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #ddeefb;
  color: #0e5fae;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-subject-icon svg {
  width: 18px;
  height: 18px;
}

.result-subject-name {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: #1c2530;
  text-align: center;
}

.rsc-donut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.result-subject-donut {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-subject-donut::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--donut-gradient, #e3e7eb 0 100%));
}

.result-subject-donut-inner {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  z-index: 1;
}

.rsc-stats {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 6px;
  font-size: 12px;
  color: #3a4552;
}

.rsc-stat-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #e3e7eb;
  padding-bottom: 4px;
}

.rsc-stat-row:last-child {
  border-bottom: none;
}

.rsc-stat-val {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  color: #1c2530;
}

.chart-card {
  background: #fff;
  border: 1px solid #e3e7eb;
  border-radius: 8px;
  padding: 24px;
  width: 100%;
  height: 400px;
  position: relative;
}

.player-nat-wrap {
  padding: 10px 4px;
  max-width: 260px;
}

.nat-display {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 16px;
  font-family: "Archivo", sans-serif;
  border: 1px solid #cbd3dc;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 14px;
}

.nat-keypad {
  background: #f5f6f8;
  border-radius: 10px;
  padding: 14px;
}

.nat-key-backspace {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #cbd3dc;
  background: #eceff3;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.nat-key-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.nat-key {
  padding: 12px 0;
  font-size: 16px;
  font-family: "Archivo", sans-serif;
  border: 1px solid #cbd3dc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.nat-key:hover,
.nat-key-backspace:hover {
  background: #e8edfb;
  border-color: #2f6fed;
}

.nat-key-arrows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.nat-key-arrow {
  padding: 10px 0;
  font-size: 16px;
  border: 1px solid #cbd3dc;
  border-radius: 8px;
  background: #fff;
  color: #2f6fed;
  cursor: pointer;
}

.nat-clear-all {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #cbd3dc;
  background: #eceff3;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.nat-clear-all:hover {
  background: #e8edfb;
  border-color: #2f6fed;
}











@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* ================== MOBILE RESPONSIVENESS ================== */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 16px;
  }

  .modal-box,
  .summary-modal {
    width: 95%;
    padding: 20px;
    margin: 20px auto;
  }

  .ts-grid,
  .learn-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .player-topbar {
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .player-topbar .pt-right {
    width: 100%;
    justify-content: space-between;
  }

  .player-sectionbar {
    padding: 10px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .player-body {
    flex-direction: column;
    overflow-y: auto;
  }

  .player-main {
    border-right: none;
    overflow: visible;
    min-height: 50vh;
  }

  .player-side {
    width: 100%;
    border-top: 1px solid #e3e7eb;
    border-left: none;
    overflow: visible;
    padding-bottom: 20px;
  }

  .player-footer {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }

  .pf-left,
  .pf-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .pf-btn {
    flex: 1;
    text-align: center;
  }

  .player-qhead {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
  }

  .player-qbody {
    padding: 15px;
  }

  .mcq-opts {
    margin-top: 20px;
  }

  .mcq-opt {
    padding: 12px;
  }

  .filter-tabs {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
  }

  .toast {
    width: 90%;
    left: 5%;
    transform: none;
    bottom: 20px;
  }
}

/* Override old sidebar display:none for mobile */
@media (max-width: 880px) {
  .sidebar {
    display: flex !important;
    flex-direction: row;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
    border-right: none;
    padding: 0;
  }

  .sidebar .nav-item {
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    margin: 0;
    color: #6b7480;
    width: 25%;
    text-align: center;
  }

  .sidebar .nav-item.active {
    background: none;
    color: #0e5fae;
  }

  .sidebar .nav-item svg {
    margin: 0 auto;
    width: 20px;
    height: 20px;
  }

  .sidebar .nav-item span {
    font-size: 10px;
    margin: 0;
  }

  body {
    padding-bottom: 60px;
  }
}

/* =========================================================
   LEADERBOARD MODAL
   ========================================================= */
.leaderboard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.leaderboard-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.leaderboard-modal {
  background: #fff;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s;
  max-height: 80vh;
}

.leaderboard-overlay.show .leaderboard-modal {
  transform: translateY(0);
}

.leaderboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f4f8;
}

.leaderboard-head span {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #1c2530;
}

.leaderboard-head button {
  background: none;
  border: none;
  cursor: pointer;
  color: #6c7a87;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaderboard-head button svg {
  width: 24px;
  height: 24px;
}

.leaderboard-head button:hover {
  background: #f1f4f8;
  color: #1c2530;
}

.leaderboard-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.leaderboard-body::-webkit-scrollbar {
  width: 6px;
}

.leaderboard-body::-webkit-scrollbar-track {
  background: #f1f4f8;
}

.leaderboard-body::-webkit-scrollbar-thumb {
  background: #c3ced8;
  border-radius: 4px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f4f8;
  transition: background 0.2s;
}

.leaderboard-item:hover {
  background: #fafbfc;
}

.leaderboard-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.leaderboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #c3ced8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #1c2530;
  background: #fff;
}

.leaderboard-user-info {
  display: flex;
  flex-direction: column;
}

.leaderboard-rank-badge {
  font-size: 12px;
  font-weight: 600;
  color: #5D8C72;
  margin-bottom: 2px;
}

.leaderboard-user-name {
  font-size: 14px;
  color: #1c2530;
  font-weight: 500;
}

.leaderboard-item-right {
  text-align: right;
}

.leaderboard-score-label {
  font-size: 12px;
  color: #6c7a87;
  margin-bottom: 2px;
}

.leaderboard-score-val {
  font-size: 14px;
  font-weight: 600;
  color: #1c2530;
}

.leaderboard-sticky {
  background: #ebf5fb;
  border-top: 1px solid #bbdcf2;
}

.leaderboard-sticky .leaderboard-item {
  border-bottom: none;
}

.leaderboard-empty {
  padding: 40px;
  text-align: center;
  color: #6c7a87;
  font-size: 14px;
}

/* =========================================================
   WIDE RESULT SUMMARY (REDESIGN)
   ========================================================= */
.result-summary-wide {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  padding: 40px 50px;
  flex-wrap: nowrap;
}

.result-donut-lg {
  width: 220px;
  height: 220px;
}

.result-donut-center-lg {
  width: 160px;
  height: 160px;
}

.result-donut-center-lg .rd-label {
  font-size: 13px;
}

.result-donut-center-lg .rd-score {
  font-size: 26px;
}

.result-summary-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 30px;
}

.result-legend.result-legend-horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
}

.result-stats-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
}

.result-stat-wide {
  flex: 1;
  padding: 18px 24px;
}

@media (max-width: 992px) {
  .result-summary-wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .result-legend.result-legend-horizontal {
    flex-wrap: wrap;
  }

  .result-stats-row {
    flex-wrap: wrap;
  }

  .result-stat-wide {
    min-width: calc(50% - 10px);
  }
}

@media (max-width: 576px) {
  .result-stat-wide {
    min-width: 100%;
  }
}

/* Solution Mode Overrides */
.player-opt.correct-bg {
  background: #e8f5e9;
  border: 1px solid #4caf50;
}

.player-opt.incorrect-bg {
  background: #ffebee;
  border: 1px solid #f44336;
}

.solution-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  margin-left: auto;
  text-transform: uppercase;
}

.solution-tag.correct {
  background: #4caf50;
  color: white;
}

.solution-tag.marked {
  background: #f44336;
  color: white;
}

.player-opt.correct-bg .solution-tag.marked {
  background: #4caf50;
}

/* If correct and marked, it's green */
.player-solution-marks {
  font-size: 14px;
  font-weight: 500;
  color: #28313b;
}

.player-solution-marks b {
  color: #0e5fae;
}

.solution-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  font-weight: 500;
}

.sm-status b.Correct {
  color: #4caf50;
}

.sm-status b.Incorrect {
  color: #f44336;
}

.sm-status b.Unattempted {
  color: #9e9e9e;
}

.player-opt {
  border: 1px solid transparent;
}

.player-qbtn.correct {
  background: #3ea655;
  border-radius: 4px;
}

.player-qbtn.incorrect {
  background: #c0392b;
  border-radius: 4px;
}

.player-qbtn.unattempted {
  background: #a9b2bc;
  border-radius: 4px;
}

/* Solution Box */
.player-solution-box {
  margin-top: 30px;
  border-top: 1px solid var(--gray-4);
  padding-top: 20px;
  font-family: 'Archivo', sans-serif;
}

.psb-stats {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.psb-stat-line {
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}

.psb-stat-line:last-child {
  margin-bottom: 0;
}

.psb-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #aaa;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  margin-left: 5px;
  cursor: help;
}

.psb-heading {
  font-size: 16px;
  color: #1a2332;
  border-bottom: 2px solid #1a2332;
  display: inline-block;
  padding-bottom: 2px;
  margin-bottom: 15px;
}

.psb-correct-label {
  font-size: 17px;
  color: #1c2530;
  margin-bottom: 10px;
  font-weight: 500;
}

.psb-details {
  font-size: 17px;
  color: #6b7480;
  line-height: 1.6;
}

.psb-details img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 10px;
}

/* Prettify Codebox Styles */
.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888;background-color:#f8f9fa;overflow-x:auto;}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}
