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

:root {
  --ts-bg: #eef4fb;
  --ts-surface: #ffffff;
  --ts-surface-soft: #f7fbff;
  --ts-border: #d9e3f0;
  --ts-border-strong: #bfcff8;
  --ts-text: #112138;
  --ts-text-soft: #44566f;
  --ts-text-muted: #677b95;
  --ts-primary: #3057d5;
  --ts-primary-dark: #1f44ba;
  --ts-primary-soft: #edf2ff;
  --ts-accent: #14b8a6;
  --ts-accent-soft: rgba(20, 184, 166, 0.12);
  --ts-success: #22c55e;
  --ts-success-dark: #16a34a;
  --ts-danger: #dc2626;
  --ts-shadow: 0 24px 44px -16px rgba(17, 33, 56, 0.12);
  --ts-shadow-strong: 0 34px 64px -18px rgba(48, 87, 213, 0.28);
}

html {
  scroll-behavior: smooth;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.testseries-body {
  background: var(--ts-bg);
  background-image:
    radial-gradient(circle at 8% 12%, rgba(48, 87, 213, 0.12) 0%, transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(20, 184, 166, 0.12) 0%, transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #eef4fb 44%, #e7eef8 100%);
  font-family: "Manrope", sans-serif;
  color: var(--ts-text);
  line-height: 1.5;
  padding: 2rem 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.testseries-shell {
  width: 100%;
}

.header-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.utility-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(79, 70, 229, 0.12);
  color: var(--ts-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 16px -10px rgba(79, 70, 229, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.utility-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 70, 229, 0.24);
  box-shadow: 0 14px 24px -12px rgba(79, 70, 229, 0.36);
}

.title-block h1 {
  font-weight: 700;
  font-size: clamp(2rem, 1.8rem + 1vw, 2.6rem);
  letter-spacing: 0.03em;
  font-family: "Noto Sans Georgian", sans-serif;
  background: linear-gradient(145deg, #1e1e2f 0%, #2d2a5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.subhead {
  color: #4b5563;
  font-size: 1rem;
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 760px;
}

.subhead i {
  color: var(--ts-primary);
  font-size: 0.95rem;
}

.header-mark {
  color: rgba(79, 70, 229, 0.26);
  font-size: 2.2rem;
  padding: 0.4rem 0.3rem;
}

.hero-panel,
.series-group,
.start-page,
.quiz-page,
.result-page {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 255, 0.88));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 36px 70px -28px rgba(17, 33, 56, 0.18);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  padding: 1.8rem;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -10% -35% 55%;
  height: 240px;
  background: radial-gradient(circle, rgba(48, 87, 213, 0.14), transparent 68%);
  pointer-events: none;
}

.series-search-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding: 1.35rem 1.45rem;
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(243, 249, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 30px 56px -28px rgba(17, 33, 56, 0.18);
}

.series-search-copy h2 {
  margin: 0.9rem 0 0.5rem;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.9rem);
  line-height: 1.15;
  color: #0f172a;
}

.series-search-copy p,
.series-search-status {
  margin: 0;
  color: var(--ts-text-soft);
}

.series-search-form {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.series-search-shell {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 56px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(48, 87, 213, 0.16);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.series-search-shell i {
  color: var(--ts-primary);
}

.series-search-shell input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--ts-text);
  font-size: 1rem;
}

.series-search-shell input:focus {
  outline: none;
}

.series-search-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.75rem 1.2rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ts-primary), var(--ts-primary-dark));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 22px -10px rgba(48, 87, 213, 0.45);
}

.series-search-status {
  min-height: 22px;
  font-weight: 600;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--ts-primary-soft);
  color: var(--ts-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid var(--ts-border-strong);
}

.hero-panel-copy h2 {
  margin-top: 1rem;
  font-size: clamp(1.6rem, 1.35rem + 1vw, 2.2rem);
  line-height: 1.15;
  color: #0f172a;
}

.hero-panel-copy p {
  margin-top: 0.85rem;
  color: var(--ts-text-soft);
  font-size: 1rem;
  max-width: 64ch;
}

.hero-panel-stats {
  display: grid;
  gap: 0.85rem;
}

.hero-stat {
  background: linear-gradient(145deg, #ffffff, #f4f8ff);
  border: 1px solid rgba(48, 87, 213, 0.12);
  border-radius: 24px;
  padding: 1rem 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ts-primary);
}

.hero-stat span {
  color: var(--ts-text-soft);
  font-size: 0.95rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 1.2rem;
}

.filter-btn {
  background: white;
  border: none;
  padding: 0.6rem 1.3rem;
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #1e293b;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-btn i {
  font-size: 0.8rem;
  color: #6b7280;
  transition: color 0.2s;
}

.filter-btn:hover {
  background: #eef2ff;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -5px rgba(79, 70, 229, 0.2);
}

.filter-btn.active {
  background: var(--ts-primary);
  color: white;
  border-color: var(--ts-primary);
  box-shadow: 0 10px 18px -6px var(--ts-primary);
}

.filter-btn.active i {
  color: white;
}

.results-count {
  font-size: 0.9rem;
  color: #5f6b7a;
  margin-bottom: 1.2rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 1.2rem;
  border-radius: 30px;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.results-count span {
  font-weight: 700;
  color: var(--ts-text);
  background: white;
  padding: 0.15rem 0.6rem;
  border-radius: 30px;
}

.series-sections {
  display: grid;
  gap: 1.6rem;
}

.series-group {
  padding: 1.4rem;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.series-group::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(48, 87, 213, 0.03), transparent 38%),
    linear-gradient(315deg, rgba(20, 184, 166, 0.05), transparent 42%);
  pointer-events: none;
}

.group-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.group-copy h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.group-copy p {
  color: var(--ts-text-soft);
  max-width: 60ch;
}

.group-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--ts-primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.group-count {
  background: var(--ts-primary-soft);
  color: var(--ts-primary);
  border: 1px solid var(--ts-border-strong);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

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

.test-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.9));
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--ts-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.34s ease, border-color 0.34s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(48, 87, 213, 0.08);
  transform-style: preserve-3d;
}

.test-card:hover {
  transform: perspective(1200px) rotateX(4deg) rotateY(-5deg) translateY(-10px);
  box-shadow: var(--ts-shadow-strong), 0 0 0 1px rgba(48, 87, 213, 0.14);
  border-color: rgba(48, 87, 213, 0.18);
}

.card-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.card-orb-one {
  width: 132px;
  height: 132px;
  right: -34px;
  top: -36px;
  background: radial-gradient(circle, rgba(48, 87, 213, 0.18), transparent 70%);
}

.card-orb-two {
  width: 110px;
  height: 110px;
  left: -28px;
  bottom: -34px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.14), transparent 70%);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.card-status-row {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 1.85rem;
  margin-bottom: 0.35rem;
  position: relative;
  z-index: 1;
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.card-status.attempted {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.card-status.attempted.progress {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.24);
}

.card-status.attempted.progress i {
  color: #d97706;
}

.card-status.attempted.completed i {
  color: #16a34a;
}

.card-status.set-label {
  background: rgba(48, 87, 213, 0.11);
  color: #2844b4;
  border: 1px solid rgba(48, 87, 213, 0.18);
}

.card-status.set-label i {
  color: #3057d5;
}

.card-status.attempted i {
  color: #16a34a;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #e0e7ff;
  color: #4338ca;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 40px;
  text-transform: uppercase;
  border: 1px solid #c7d2fe;
}

.card-subject {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ts-text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.card-subject i {
  color: var(--ts-primary);
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.test-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #0f172a;
  line-height: 1.3;
}

.desc {
  color: var(--ts-text-soft);
  font-size: 0.92rem;
  margin-bottom: 1.15rem;
  line-height: 1.55;
  flex: 1;
  position: relative;
  z-index: 1;
}

.card-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.95rem;
  position: relative;
  z-index: 1;
}

.card-metric {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(48, 87, 213, 0.08);
  padding: 0.85rem 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card-metric span {
  display: block;
  color: var(--ts-text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.card-metric strong {
  display: block;
  color: var(--ts-text);
  font-size: 0.96rem;
}

.card-level-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.card-level-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ts-accent-soft);
  color: #0f766e;
  border: 1px solid rgba(20, 184, 166, 0.14);
  padding: 0.34rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
}

.meta-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #334155;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  position: relative;
  z-index: 1;
}

.meta-info i {
  width: 1.2rem;
  color: var(--ts-primary);
  font-size: 0.92rem;
  text-align: center;
}

.test-card {
  cursor: pointer;
}

.test-card:focus-visible {
  outline: 3px solid rgba(48, 87, 213, 0.3);
  outline-offset: 4px;
  transform: translateY(-2px);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #e9eef2;
  padding-top: 1.05rem;
  position: relative;
  z-index: 1;
}

.category-tag {
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.35rem 0.95rem;
  border-radius: 40px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid #c7d2fe;
}

.start-btn {
  background: linear-gradient(135deg, var(--ts-primary), var(--ts-primary-dark));
  border: 1px solid rgba(48, 87, 213, 0.2);
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  transition: gap 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 999px;
  box-shadow: 0 16px 24px -14px rgba(48, 87, 213, 0.8);
}

.start-btn i {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.start-btn:hover {
  gap: 0.8rem;
  transform: translateY(-1px);
  box-shadow: 0 22px 32px -16px rgba(48, 87, 213, 0.9);
}

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

.no-results {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  border-radius: 42px;
  color: #5b687b;
  font-weight: 500;
  border: 1px dashed #a5b4cb;
  font-size: 1.05rem;
}

.no-results i {
  font-size: 2rem;
  color: #94a3b8;
  margin-bottom: 0.8rem;
  display: block;
}

.loading-state {
  grid-column: 1 / -1;
}

.start-page,
.quiz-page,
.result-page {
  max-width: 900px;
  margin: 1.4rem auto;
  border-radius: 48px;
  padding: 2.5rem;
}

.start-page {
  max-width: 720px;
  text-align: center;
}

.start-page h2 {
  font-size: clamp(2rem, 1.7rem + 1vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(145deg, #1e1e2f, var(--ts-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.start-meta {
  background: var(--ts-primary-soft);
  border-radius: 999px;
  padding: 1rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.8rem;
  margin: 1.8rem 0 1.4rem;
  border: 1px solid var(--ts-border-strong);
}

.start-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ts-text);
  font-weight: 500;
}

.start-meta-item i {
  color: var(--ts-primary);
  font-size: 1.05rem;
}

.start-description {
  font-size: 1.04rem;
  color: #2c3e5c;
  margin: 1.8rem 0 1.2rem;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.6);
  padding: 1.4rem;
  border-radius: 32px;
  border: 1px solid rgba(79, 70, 229, 0.08);
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.primary-btn,
.secondary-btn,
.quit-btn,
.back-home-btn {
  border: none;
  padding: 0.95rem 2.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: all 0.2s ease;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.2);
}

.primary-btn,
.back-home-btn {
  background: var(--ts-primary);
  color: white;
  border: 1px solid var(--ts-primary);
}

.primary-btn:hover,
.back-home-btn:hover {
  background: var(--ts-primary-dark);
  transform: scale(1.02);
  box-shadow: 0 20px 25px -8px rgba(79, 70, 229, 0.42);
}

.secondary-btn {
  background: white;
  color: var(--ts-text);
  border: 1px solid #a5b4cb;
}

.secondary-btn:hover {
  background: #f8fafc;
  border-color: var(--ts-primary);
  color: var(--ts-primary);
}

.quit-btn {
  background: #f1f5f9;
  color: var(--ts-text-soft);
  border: 1px solid #cbd5e1;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
}

.quit-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* GYANEXIS preview button sync */
.start-btn,
.primary-btn,
.back-home-btn {
  color: #3a2a00;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.48), transparent 28%),
    linear-gradient(135deg, #f9dc99 0%, #C4B5FD 48%, #d98f18 100%);
  border: 1px solid rgba(196, 181, 253, 0.5);
  box-shadow:
    0 16px 26px rgba(196, 181, 253, 0.34),
    inset 0 -4px 8px rgba(82, 56, 0, 0.18),
    inset 0 4px 8px rgba(255, 255, 255, 0.42);
  transition: gap 0.24s ease, transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.start-btn:hover,
.primary-btn:hover,
.back-home-btn:hover {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.54), transparent 30%),
    linear-gradient(135deg, #ffe2a3 0%, #C4B5FD 50%, #d98f18 100%);
  transform: scale(1.04) translateY(-2px);
  box-shadow:
    0 22px 34px rgba(196, 181, 253, 0.42),
    inset 0 -4px 8px rgba(82, 56, 0, 0.14),
    inset 0 4px 10px rgba(255, 255, 255, 0.5);
  filter: saturate(1.04);
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.quiz-header h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  font-weight: 700;
  color: #0f172a;
}

.question-counter,
.timer-display {
  background: var(--ts-primary-soft);
  padding: 0.55rem 1.35rem;
  border-radius: 60px;
  font-weight: 600;
  color: var(--ts-primary);
  border: 1px solid var(--ts-border-strong);
}

.timer-display {
  display: none;
}

.question-box,
.result-details {
  background: var(--ts-surface-soft);
  border-radius: 40px;
  padding: 2rem;
  border: 1px solid var(--ts-border);
}

.diagram-container {
  text-align: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 1.15rem;
  border-radius: 24px;
  border: 1px solid rgba(48, 87, 213, 0.12);
  overflow: hidden;
  min-height: 180px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.diagram-container img,
.diagram-container svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 16px;
}

.diagram-container img {
  width: 100%;
  max-height: min(46vh, 360px);
  object-fit: contain;
  box-shadow: 0 16px 28px -20px rgba(17, 33, 56, 0.36);
}

.question-text {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
  color: #0f172a;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-item {
  background: white;
  border-radius: 24px;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--ts-border);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.option-item:hover {
  border-color: var(--ts-primary);
  background: var(--ts-primary-soft);
}

.option-item.selected {
  border-color: var(--ts-primary);
  background: var(--ts-primary-soft);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.option-item.locked {
  cursor: default;
  opacity: 0.88;
}

.option-item.correct-answer-option {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.12);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.option-item input[type="radio"] {
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  transition: 0.1s;
  position: relative;
  cursor: pointer;
  flex: 0 0 1.15rem;
}

.option-item input[type="radio"]:checked {
  border-color: var(--ts-primary);
  background-color: var(--ts-primary);
  box-shadow: inset 0 0 0 3px white;
}

.option-item label {
  font-size: 1.02rem;
  font-weight: 500;
  color: #1e293b;
  flex: 1;
  cursor: pointer;
  line-height: 1.55;
}

.answer-tools {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.know-answer-btn {
  justify-self: start;
}

.answer-helper {
  margin: 0;
  color: var(--ts-text-soft);
  line-height: 1.6;
}

.answer-reveal-box {
  margin-top: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(48, 87, 213, 0.14);
  background: linear-gradient(145deg, rgba(237, 242, 255, 0.84), rgba(255, 255, 255, 0.96));
  padding: 1rem 1.1rem;
}

.answer-reveal-box span {
  display: block;
  color: var(--ts-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.answer-reveal-box strong {
  display: block;
  margin-top: 0.35rem;
  color: #0f172a;
  font-size: 1.12rem;
}

.answer-reveal-box p {
  margin: 0.55rem 0 0;
  color: var(--ts-text-soft);
}

.quiz-navigation,
.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.nav-btn {
  background: white;
  border: 2px solid #cbd5e1;
  padding: 0.8rem 1.8rem;
  border-radius: 60px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-btn:hover:not(:disabled) {
  border-color: var(--ts-primary);
  color: var(--ts-primary);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.submit-btn {
  background: var(--ts-success);
  border: 1px solid var(--ts-success);
  padding: 0.95rem 2.7rem;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 10px 20px -8px rgba(34, 197, 94, 0.42);
}

.submit-btn:hover {
  background: var(--ts-success-dark);
  transform: scale(1.02);
}

.result-header {
  text-align: center;
  margin-bottom: 2rem;
}

.result-header h2 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(145deg, #1e1e2f, var(--ts-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.score-badge {
  display: inline-block;
  background: var(--ts-primary-soft);
  padding: 1rem 3rem;
  border-radius: 80px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ts-primary);
  margin: 1.5rem 0;
  border: 2px solid var(--ts-border-strong);
}

.result-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.result-summary-banner {
  margin-bottom: 1.4rem;
}

.result-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.92));
  border: 1px solid rgba(48, 87, 213, 0.12);
  border-radius: 28px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 20px 34px -22px rgba(17, 33, 56, 0.5);
}

.result-summary-card.perfect {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 242, 255, 0.96));
  border-color: rgba(48, 87, 213, 0.2);
}

.summary-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--ts-primary-soft);
  color: var(--ts-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-summary-copy h3 {
  margin: 0.75rem 0 0.45rem;
  color: #0f172a;
  font-size: 1.2rem;
}

.result-summary-copy p {
  color: var(--ts-text-soft);
  line-height: 1.65;
}

.result-summary-highlight {
  min-width: 150px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--ts-primary), var(--ts-primary-dark));
  color: white;
  text-align: center;
  padding: 1rem 1.2rem;
  box-shadow: 0 18px 28px -18px rgba(48, 87, 213, 0.9);
}

.result-summary-highlight span {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.86;
}

.result-summary-highlight strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 2rem;
  font-weight: 700;
}

.stat-item {
  background: var(--ts-surface-soft);
  border-radius: 30px;
  padding: 1rem 1.6rem;
  border: 1px solid var(--ts-border);
  text-align: center;
  min-width: 148px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--ts-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
}

.result-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ts-border);
}

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

.result-qnum {
  font-weight: 700;
  color: var(--ts-primary);
  min-width: 2.5rem;
}

.result-qtext {
  flex: 2;
  font-weight: 500;
  color: #1e293b;
}

.result-answers {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.user-answer,
.correct-answer {
  font-size: 0.9rem;
}

.user-answer.correct {
  color: var(--ts-success-dark);
}

.user-answer.incorrect {
  color: var(--ts-danger);
}

.user-answer.revealed {
  color: #b45309;
}

.user-answer.unattempted {
  color: #94a3b8;
  font-style: italic;
}

.correct-answer {
  color: var(--ts-text-soft);
}

.result-icon {
  font-size: 1.2rem;
  min-width: 2rem;
  text-align: center;
}

.result-icon.correct {
  color: var(--ts-success-dark);
}

.result-icon.incorrect {
  color: var(--ts-danger);
}

.result-icon.revealed {
  color: #d97706;
}

.result-icon.unattempted {
  color: #94a3b8;
}

.result-footer {
  text-align: center;
  margin-top: 1.6rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: 32px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 40px 60px -20px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.modal-content h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ts-text);
  margin-bottom: 1rem;
}

.modal-content p {
  color: var(--ts-text-soft);
  margin-bottom: 1.8rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.modal-btn {
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 110px;
}

.modal-btn.confirm {
  background: var(--ts-primary);
  color: white;
}

.modal-btn.confirm:hover {
  background: var(--ts-primary-dark);
}

.modal-btn.cancel {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.modal-btn.cancel:hover {
  background: #e2e8f0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .series-search-card {
    grid-template-columns: 1fr;
  }

  .group-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .start-page,
  .quiz-page,
  .result-page {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 720px) {
  body.testseries-body {
    padding: 1rem;
  }

  .test-grid {
    grid-template-columns: 1fr;
  }

  .card-metric-grid {
    grid-template-columns: 1fr;
  }

  .card-footer,
  .quiz-navigation,
  .quiz-footer,
  .modal-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .start-page,
  .quiz-page,
  .result-page,
  .series-group,
  .hero-panel,
  .series-search-card {
    border-radius: 28px;
  }

  .series-search-btn {
    width: 100%;
    justify-content: center;
  }

  .result-item {
    flex-direction: column;
  }

  .result-summary-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .result-summary-highlight {
    min-width: 0;
  }

  .result-qnum {
    min-width: auto;
  }
}

/* Final Test Series dashboard redesign */
body.testseries-body {
  --ts-bg: #f6f9ff;
  --ts-surface: #ffffff;
  --ts-border: #dbe7fb;
  --ts-text: #111a33;
  --ts-text-soft: #53627d;
  --ts-primary: #256cf0;
  --ts-primary-dark: #1456d8;
  --ts-primary-soft: #edf5ff;
  margin: 0;
  padding: 18px 24px 42px;
  background:
    radial-gradient(circle at 82% 1%, rgba(70, 132, 248, 0.16), transparent 24%),
    radial-gradient(circle at 12% 8%, rgba(147, 197, 253, 0.16), transparent 26%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 52%, #f6f9ff 100%);
  color: var(--ts-text);
}

body.testseries-body .container {
  max-width: 1240px;
}

body.testseries-body .header-section {
  position: relative;
  align-items: center;
  min-height: 98px;
  margin-bottom: 12px;
  padding: 0 8px 0 0;
  overflow: hidden;
}

body.testseries-body .header-section::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 42%;
  height: 110px;
  background:
    linear-gradient(120deg, transparent, rgba(37, 108, 240, 0.08), transparent 62%),
    radial-gradient(circle at 72% 44%, rgba(37, 108, 240, 0.12), transparent 22%);
  pointer-events: none;
}

body.testseries-body .utility-links {
  display: none;
}

body.testseries-body .title-block h1 {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 14px;
  margin: 0;
  color: #111a33;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 950;
  letter-spacing: 0;
}

body.testseries-body .title-block h1 i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #dbe7fb;
  border-radius: 12px;
  color: var(--ts-primary);
  background: #ffffff;
  font-size: 1.35rem;
  box-shadow: 0 14px 26px rgba(39, 83, 158, 0.08);
}

body.testseries-body .subhead {
  position: relative;
  z-index: 1;
  margin: 8px 0 0 64px;
  color: #708098;
  font-size: 0.82rem;
  font-weight: 700;
}

body.testseries-body .subhead i {
  display: none;
}

body.testseries-body .header-mark {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 96px;
  padding: 0;
  color: transparent;
}

body.testseries-body .header-mark i {
  display: none;
}

body.testseries-body .header-mark::before,
body.testseries-body .header-mark::after {
  content: "";
  position: absolute;
  right: 22px;
  width: 82px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #8bb7ff, #276bf0);
  transform: skewY(-17deg) rotate(-4deg);
  box-shadow: 0 18px 24px rgba(37, 108, 240, 0.2);
}

body.testseries-body .header-mark::before {
  top: 14px;
}

body.testseries-body .header-mark::after {
  top: 44px;
  right: 40px;
  opacity: 0.72;
}

body.testseries-body .hero-panel,
body.testseries-body .series-search-card,
body.testseries-body .series-group,
body.testseries-body .start-page,
body.testseries-body .quiz-page,
body.testseries-body .result-page {
  border: 1px solid var(--ts-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(39, 83, 158, 0.08);
  backdrop-filter: none;
}

body.testseries-body .hero-panel {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.98fr);
  align-items: stretch;
  gap: 18px;
  margin-bottom: 14px;
  padding: 22px 24px;
  overflow: hidden;
}

body.testseries-body .hero-panel::before {
  display: none;
}

body.testseries-body .hero-chip {
  padding: 6px 10px;
  border-color: #d6e5ff;
  border-radius: 999px;
  color: #2264df;
  background: #eef6ff;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0;
}

body.testseries-body .hero-panel-copy h2 {
  max-width: 470px;
  margin: 16px 0 0;
  color: #111a33;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0;
}

body.testseries-body .hero-panel-copy p {
  max-width: 560px;
  margin-top: 14px;
  color: #596984;
  font-size: 0.92rem;
  line-height: 1.62;
  font-weight: 650;
}

body.testseries-body .hero-panel-stats {
  gap: 14px;
}

body.testseries-body .hero-stat {
  position: relative;
  min-height: 92px;
  padding: 18px 62px 16px 22px;
  border: 1px solid #dfeafd;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  box-shadow: 0 12px 26px rgba(39, 83, 158, 0.06);
}

body.testseries-body .hero-stat::after {
  content: "\f1c1";
  position: absolute;
  right: 20px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--ts-primary);
  background: #eef6ff;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  transform: translateY(-50%);
}

body.testseries-body .hero-stat:nth-child(2)::after {
  content: "\f0c0";
}

body.testseries-body .hero-stat strong {
  color: var(--ts-primary);
  font-size: 2rem;
  font-weight: 950;
}

body.testseries-body .hero-stat span {
  color: #6c7c95;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: capitalize;
}

body.testseries-body .series-search-card {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  padding: 18px 22px;
}

body.testseries-body .series-search-copy h2 {
  margin: 12px 0 6px;
  color: #111a33;
  font-size: 1.18rem;
  line-height: 1.24;
  font-weight: 950;
}

body.testseries-body .series-search-copy p,
body.testseries-body .series-search-status {
  color: #65748d;
  font-size: 0.8rem;
  font-weight: 650;
}

body.testseries-body .series-search-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

body.testseries-body .series-search-shell {
  min-height: 42px;
  padding: 0 14px;
  border-color: #dbe7fb;
  border-radius: 999px;
  box-shadow: none;
}

body.testseries-body .series-search-shell input {
  font-size: 0.82rem;
  font-weight: 650;
}

body.testseries-body .series-search-btn {
  min-height: 42px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--ts-primary);
  font-size: 0.8rem;
  font-weight: 850;
  box-shadow: 0 12px 22px rgba(37, 108, 240, 0.18);
}

body.testseries-body .series-search-status {
  grid-column: 1 / -1;
  min-height: 0;
}

body.testseries-body .filter-bar {
  gap: 9px;
  margin: 0 0 12px;
}

body.testseries-body .filter-btn {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #dbe7fb;
  border-radius: 999px;
  color: #263956;
  background: #ffffff;
  font-size: 0.74rem;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(39, 83, 158, 0.05);
}

body.testseries-body .filter-btn i {
  color: #256cf0;
  font-size: 0.72rem;
}

body.testseries-body .filter-btn.active {
  border-color: var(--ts-primary);
  color: #ffffff;
  background: var(--ts-primary);
  box-shadow: 0 12px 22px rgba(37, 108, 240, 0.18);
}

body.testseries-body .filter-btn.active i {
  color: #ffffff;
}

body.testseries-body .results-count {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: #65748d;
  background: transparent;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 800;
}

body.testseries-body .results-count span {
  padding: 0;
  color: var(--ts-primary);
  background: transparent;
}

body.testseries-body .series-sections {
  gap: 14px;
}

body.testseries-body .series-group {
  padding: 18px 20px 20px;
  overflow: hidden;
}

body.testseries-body .series-group::after {
  display: none;
}

body.testseries-body .group-heading {
  align-items: center;
  margin-bottom: 14px;
}

body.testseries-body .group-copy {
  position: relative;
  padding-left: 42px;
}

body.testseries-body .group-copy::before {
  content: "\f5fd";
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--ts-primary);
  background: #eef6ff;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
}

body.testseries-body .series-group[data-group="competitive"] .group-copy::before {
  content: "\f091";
}

body.testseries-body .series-group[data-group="subjects"] .group-copy::before {
  content: "\f02d";
}

body.testseries-body .group-kicker {
  margin: 0 0 3px;
  padding: 0;
  border: 0;
  color: #2264df;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 950;
}

body.testseries-body .group-copy h2 {
  margin: 0 0 4px;
  color: #111a33;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 950;
}

body.testseries-body .group-copy p {
  color: #65748d;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 650;
}

body.testseries-body .group-count {
  padding: 5px 10px;
  border-color: #dbe7fb;
  color: var(--ts-primary);
  background: #f3f8ff;
  font-size: 0.72rem;
  font-weight: 950;
}

body.testseries-body .test-grid {
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 12px;
}

body.testseries-body .test-card {
  min-height: 246px;
  padding: 14px;
  border: 1px solid #dfeafd;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 12px 26px rgba(39, 83, 158, 0.07);
  transform: none;
}

body.testseries-body .test-card:hover {
  transform: translateY(-4px);
  border-color: #b9d0f8;
  box-shadow: 0 20px 34px rgba(39, 83, 158, 0.12);
}

body.testseries-body .card-orb {
  display: none;
}

body.testseries-body .card-header {
  margin-bottom: 8px;
}

body.testseries-body .card-badge,
body.testseries-body .card-subject,
body.testseries-body .card-status {
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 900;
}

body.testseries-body .card-badge {
  padding: 4px 8px;
  border-color: #dbe7fb;
  color: #2468e8;
  background: #eef6ff;
}

body.testseries-body .card-subject {
  color: #53627d;
}

body.testseries-body .card-status-row {
  justify-content: flex-start;
  min-height: 22px;
  gap: 5px;
  margin-bottom: 8px;
}

body.testseries-body .card-status {
  padding: 4px 8px;
}

body.testseries-body .test-card h3 {
  margin: 0 0 7px;
  color: #111a33;
  font-size: 1rem;
  line-height: 1.24;
  font-weight: 950;
}

body.testseries-body .desc {
  display: -webkit-box;
  min-height: 48px;
  margin-bottom: 10px;
  overflow: hidden;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 650;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

body.testseries-body .card-metric-grid {
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 14px;
  margin: 0 0 10px;
}

body.testseries-body .card-metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.testseries-body .card-metric span {
  display: none;
}

body.testseries-body .card-metric::before {
  content: "\f059";
  color: #4f6b91;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-size: 0.72rem;
  font-weight: 900;
}

body.testseries-body .card-metric:nth-child(2)::before {
  content: "\f017";
}

body.testseries-body .card-metric:nth-child(3)::before {
  content: "\f02b";
}

body.testseries-body .card-metric strong {
  color: #253653;
  font-size: 0.72rem;
  font-weight: 900;
}

body.testseries-body .meta-info {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 750;
}

body.testseries-body .card-footer {
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 0;
  border-top: 0;
}

body.testseries-body .category-tag {
  display: none;
}

body.testseries-body .start-btn,
body.testseries-body .primary-btn,
body.testseries-body .back-home-btn {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid #dbe7fb;
  border-radius: 999px;
  color: var(--ts-primary);
  background: #eef6ff;
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 950;
}

body.testseries-body .start-btn:hover,
body.testseries-body .primary-btn:hover,
body.testseries-body .back-home-btn:hover {
  color: #ffffff;
  background: var(--ts-primary);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(37, 108, 240, 0.18);
}

body.testseries-body .start-page,
body.testseries-body .quiz-page,
body.testseries-body .result-page {
  border-radius: 18px;
}

@media (max-width: 960px) {
  body.testseries-body .hero-panel,
  body.testseries-body .series-search-card {
    grid-template-columns: 1fr;
  }

  body.testseries-body .series-search-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.testseries-body {
    padding: 14px 12px 32px;
  }

  body.testseries-body .header-section {
    min-height: 82px;
  }

  body.testseries-body .subhead {
    margin-left: 0;
  }

  body.testseries-body .header-mark {
    display: none;
  }

  body.testseries-body .hero-panel,
  body.testseries-body .series-search-card,
  body.testseries-body .series-group {
    padding: 16px;
  }

  body.testseries-body .hero-panel-stats {
    grid-template-columns: 1fr;
  }

  body.testseries-body .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  body.testseries-body .filter-btn {
    flex: 0 0 auto;
  }

  body.testseries-body .test-grid {
    grid-template-columns: 1fr;
  }

  body.testseries-body .test-card {
    min-height: 0;
  }
}
