:root {
  --navy-950: #06162c;
  --navy-900: #0b1f3a;
  --navy-800: #11315a;
  --navy-700: #174372;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-100: #fff4d6;
  --green-700: #16803c;
  --green-100: #e8f5ee;
  --blue-100: #eaf3ff;
  --slate-900: #172033;
  --slate-700: #526071;
  --slate-600: #66758a;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f3f6fa;
  --white: #ffffff;
  --shadow-sm: 0 10px 28px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 22px 56px rgba(4, 16, 35, 0.18);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--slate-900);
  background: #f8fafc;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body.test-active .academy-topline,
body.test-active .inner-header,
body.test-active .inner-footer {
  display: none;
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.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;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 14px;
  color: #ffffff;
  background: #0b2545;
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.academy-topline {
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-950);
  font-size: 11px;
}

.topline-inner,
.inner-nav,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topline-inner {
  min-height: 34px;
}

.topline-inner strong,
.topline-inner a {
  color: var(--gold-400);
}

.inner-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 1px 0 rgba(11, 31, 58, 0.09),
    0 3px 0 rgba(212, 160, 71, 0.95),
    0 5px 0 rgba(11, 37, 69, 0.96);
  backdrop-filter: blur(16px);
}

.inner-nav {
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  padding: 0;
  color: var(--navy-900);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand img {
  width: 68px;
  height: 68px;
  border-radius: 19px;
  object-fit: contain;
  padding: 0;
  background: #07182f;
  border: 1px solid rgba(212, 160, 71, 0.72);
  box-shadow:
    0 10px 22px rgba(7, 24, 47, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  line-height: 1;
  text-align: center;
}

.brand strong {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  justify-content: center;
  font-family: Georgia, serif;
  color: #071f3f;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.055em;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: none;
}

.brand-title-main {
  color: #071f3f;
  display: inline;
}

.brand-title-accent {
  color: #bf8b24;
  display: inline;
  letter-spacing: 0.075em;
}

.brand small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  color: #5b6574;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
  line-height: 1.25;
  text-transform: uppercase;
  text-shadow: none;
}

.brand small::before,
.brand small::after {
  content: "";
  width: 20px;
  height: 2px;
  flex: 0 0 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f766e, #d6a64a);
  box-shadow: 0 0 0 1px rgba(214, 166, 74, 0.1);
}

.brand small::after {
  background: linear-gradient(90deg, #d6a64a, #0f766e);
}

.inner-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.inner-menu a {
  color: #405066;
  font-size: 13px;
  font-weight: 800;
}

.inner-menu a:hover,
.inner-menu a.active {
  color: #a66300;
}

.inner-account-menu {
  position: relative;
  z-index: 45;
  flex: 0 0 auto;
}

.inner-account-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 11px 0 8px;
  color: var(--navy-900);
  border: 1px solid #cdd8e5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(11, 37, 69, 0.08);
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.inner-account-toggle:hover,
.inner-account-menu.open .inner-account-toggle {
  border-color: rgba(15, 118, 110, 0.42);
  background: #f3fbf9;
}

.inner-account-menu.is-signed-in .inner-account-toggle {
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow:
    0 8px 20px rgba(11, 37, 69, 0.08),
    inset 0 -2px 0 rgba(15, 118, 110, 0.14);
}

.inner-account-avatar {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(145deg, #0b2f58, #0f766e);
  box-shadow: 0 4px 10px rgba(11, 47, 88, 0.2);
  font-size: 10px;
  font-weight: 950;
}

.inner-account-avatar.is-icon::before {
  content: "";
  position: absolute;
  top: 7px;
  width: 6px;
  height: 6px;
  border: 1.8px solid #ffffff;
  border-radius: 50%;
}

.inner-account-avatar.is-icon::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 13px;
  height: 7px;
  border: 1.8px solid #ffffff;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.inner-account-label {
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inner-account-chevron {
  width: 7px;
  height: 7px;
  margin: -3px 0 0 1px;
  border-right: 1.5px solid #637288;
  border-bottom: 1.5px solid #637288;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.inner-account-menu.open .inner-account-chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}

.inner-account-submenu {
  position: absolute;
  z-index: 160;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 282px;
  gap: 5px;
  padding: 8px;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(7, 31, 63, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.inner-account-menu.open .inner-account-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.inner-account-submenu a,
.inner-account-submenu button {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 10px 11px;
  color: #173251;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.inner-account-submenu a:hover,
.inner-account-submenu button:hover {
  color: #8f5500;
  background: #fff8e7;
}

.inner-account-intro,
.inner-account-profile {
  padding: 11px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 7px;
  background: linear-gradient(135deg, #f7fbff 0%, #ecfdf6 100%);
}

.inner-account-intro small,
.inner-account-intro strong,
.inner-account-profile small,
.inner-account-profile strong {
  display: block;
}

.inner-account-intro small,
.inner-account-profile small {
  color: #66768b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inner-account-intro strong,
.inner-account-profile strong {
  margin-top: 3px;
  color: #082746;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.inner-account-profile {
  display: grid;
  align-items: center;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
}

.inner-account-profile > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(145deg, #0b2f58, #0f766e);
  font-size: 11px;
  font-weight: 950;
}

.inner-account-submenu .inner-account-primary {
  color: #064e3b;
  border: 1px solid rgba(15, 118, 110, 0.17);
  background: #effcf7;
}

.inner-account-submenu .inner-account-progress {
  color: #123d75;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: #f1f6ff;
}

.inner-account-submenu .inner-account-logout {
  margin-top: 3px;
  color: #9f1239;
  border-top: 1px solid #e1e7ef;
  border-radius: 0 0 6px 6px;
}

.inner-session-toast {
  position: fixed;
  z-index: 300;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 15px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: #082746;
  box-shadow: 0 18px 36px rgba(7, 31, 63, 0.22);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.inner-session-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 5px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--navy-900);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  transition: 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--navy-900);
  box-shadow: 0 8px 18px rgba(11, 31, 58, 0.15);
}

.btn-light {
  color: #334155;
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  border-color: rgba(100, 116, 139, 0.22);
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.07);
}

.btn-light:hover {
  color: #0f172a;
  border-color: rgba(71, 85, 105, 0.36);
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.btn-danger {
  color: #ffffff;
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  border-color: rgba(185, 28, 28, 0.3);
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.16);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #991b1b, #dc2626);
  box-shadow: 0 14px 26px rgba(220, 38, 38, 0.22);
}

.btn-gold {
  color: var(--navy-950);
  background: var(--gold-400);
}

.btn-outline {
  color: var(--navy-900);
  border-color: #b8c4d2;
  background: var(--white);
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  color: #475569;
  border-color: rgba(100, 116, 139, 0.24);
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.is-disabled:hover,
.btn[aria-disabled="true"]:hover {
  transform: none;
}

.inner-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(130deg, rgba(11, 31, 58, 0.99), rgba(5, 22, 44, 0.97)),
    var(--navy-900);
}

.inner-hero::after {
  position: absolute;
  right: -80px;
  bottom: -170px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.17), transparent 67%);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 52px;
  overflow: hidden;
  min-height: 340px;
  padding-top: 46px;
  padding-bottom: 50px;
}

.hero-inner > * {
  min-width: 0;
  max-width: 100%;
}

.hero-inner > div {
  overflow: hidden;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.breadcrumb a {
  color: var(--gold-400);
}

.inner-hero h1 {
  margin: 15px 0 11px;
  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 55px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.inner-hero p {
  max-width: 730px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 21px;
}

.hero-chip {
  padding: 6px 9px;
  color: var(--gold-400);
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 20px;
  background: rgba(251, 191, 36, 0.08);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  white-space: normal;
  text-transform: uppercase;
}

.hero-side-card {
  padding: 18px;
  color: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}

.hero-side-card small {
  color: var(--slate-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-side-card h2 {
  margin: 5px 0 12px;
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.18;
}

.side-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--slate-200);
}

.side-step span {
  display: grid;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  color: var(--navy-900);
  border-radius: 50%;
  background: var(--gold-400);
  font-size: 10px;
  font-weight: 900;
  place-items: center;
}

.side-step strong,
.side-step small {
  display: block;
}

.side-step strong {
  font-size: 12px;
}

.side-step small {
  color: var(--slate-600);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.inner-premium-strip {
  position: relative;
  z-index: 2;
  margin-top: -22px;
  padding-bottom: 18px;
}

.inner-premium-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.inner-premium-grid div {
  min-width: 0;
  min-height: 104px;
  padding: 15px;
  border: 1px solid rgba(184, 197, 213, 0.82);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 14px 28px rgba(11, 31, 58, 0.08);
}

.inner-premium-grid div:nth-child(2) {
  border-color: rgba(245, 158, 11, 0.26);
  background: linear-gradient(145deg, #ffffff 0%, #fff7df 100%);
}

.inner-premium-grid div:nth-child(3) {
  border-color: rgba(15, 118, 110, 0.18);
  background: linear-gradient(145deg, #ffffff 0%, #effbf5 100%);
}

.inner-premium-grid div:nth-child(4) {
  border-color: rgba(124, 58, 237, 0.16);
  background: linear-gradient(145deg, #ffffff 0%, #f6f4ff 100%);
}

.inner-premium-grid div:nth-child(5) {
  border-color: rgba(15, 118, 110, 0.22);
  background: linear-gradient(145deg, #ffffff 0%, #ecfdf5 100%);
}

.inner-premium-grid strong,
.inner-premium-grid span {
  display: block;
}

.inner-premium-grid strong {
  color: var(--navy-900);
  font-size: 13px;
  line-height: 1.25;
}

.inner-premium-grid span {
  margin-top: 6px;
  color: var(--slate-600);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.page-main {
  padding: 74px 0 92px;
}

.section-head {
  max-width: 700px;
  margin-bottom: 25px;
}

.eyebrow {
  color: var(--navy-700);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 7px 0 7px;
  color: var(--navy-900);
  font-family: Georgia, serif;
  font-size: clamp(29px, 3vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section-head p {
  margin: 0;
  color: var(--slate-600);
  font-size: 14px;
}

.route-panel,
.study-route-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
  padding: 18px 20px;
  color: var(--white);
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-900), #0f766e);
  box-shadow: 0 16px 34px rgba(11, 31, 58, 0.16);
}

.study-route-panel {
  background: linear-gradient(135deg, #0b2a66, #0f766e 72%, #15803d);
}

.route-panel small,
.study-route-panel small {
  display: block;
  color: #fde68a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.route-panel strong,
.study-route-panel strong {
  display: block;
  max-width: 760px;
  margin-top: 4px;
  font-family: Georgia, serif;
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.25;
}

.route-panel a,
.study-route-panel a,
.route-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  color: var(--navy-950);
  border-radius: 8px;
  background: var(--gold-400);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.18);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.route-disabled {
  color: #dbeafe;
  border: 1px solid rgba(191, 219, 254, 0.28);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.paper-grid,
.package-grid,
.category-grid,
.resource-grid,
.module-grid,
.mock-grid,
.info-grid {
  display: grid;
  gap: 16px;
}

.paper-grid {
  grid-template-columns: repeat(2, 1fr);
}

.package-grid,
.resource-grid,
.info-grid {
  align-items: start;
  grid-template-columns: repeat(3, 1fr);
}

.package-grid {
  align-items: stretch;
}

.syllabus-download-ticker {
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 11px;
  background: linear-gradient(90deg, #fff7df, #fffdf6);
  box-shadow: 0 10px 26px rgba(122, 75, 0, 0.08);
}

.syllabus-download-track {
  display: flex;
  width: max-content;
  animation: syllabus-download-scroll 25s linear infinite;
}

.syllabus-download-ticker:hover .syllabus-download-track,
.syllabus-download-ticker:focus-within .syllabus-download-track {
  animation-play-state: paused;
}

.syllabus-download-item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-width: 100%;
  padding: 12px 18px;
  color: var(--navy-900);
  text-decoration: none;
}

.syllabus-download-item span:not(.syllabus-download-mark) {
  color: var(--slate-600);
  font-size: 12px;
}

.syllabus-download-item b {
  color: #9b5b00;
  font-size: 12px;
}

.syllabus-download-mark {
  padding: 5px 7px;
  color: var(--white);
  border-radius: 5px;
  background: #b66b00;
  font-size: 10px;
  font-weight: 900;
}

@keyframes syllabus-download-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.category-grid {
  grid-template-columns: repeat(2, 1fr);
}

.module-grid,
.mock-grid {
  grid-template-columns: repeat(3, 1fr);
}

.paper-card,
.package-card,
.category-card,
.resource-card,
.module-card,
.mock-card,
.info-card,
.content-note,
.feature-panel {
  border: 1px solid var(--slate-200);
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(11, 31, 58, 0.045);
}

.paper-card,
.package-card,
.category-card,
.resource-card {
  transition: 180ms ease;
}

.paper-card:hover,
.package-card:hover,
.category-card:hover,
.resource-card:hover {
  border-color: #b8c5d5;
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  min-height: 610px;
  padding: 22px;
  overflow: hidden;
  background: linear-gradient(150deg, #ffffff 0%, #f8fbff 100%);
}

.package-card > * {
  max-width: 100%;
  min-width: 0;
}

.package-card-essential {
  border-top: 4px solid #2563eb;
  background: linear-gradient(150deg, #ffffff 0%, #f7fbff 58%, #eff6ff 100%);
}

.package-card-featured {
  border-top: 4px solid var(--gold-500);
  background: linear-gradient(150deg, #ffffff 0%, #fff8e7 100%);
  box-shadow: 0 16px 38px rgba(11, 31, 58, 0.11);
}

.package-card-material {
  border-top: 4px solid var(--green-700);
  background: linear-gradient(150deg, #ffffff 0%, #f3fbf7 100%);
}

.study-material-card {
  min-height: 610px;
  border-top-color: #0f766e;
  background:
    radial-gradient(circle at 8% 8%, rgba(20, 184, 166, 0.14), transparent 28%),
    radial-gradient(circle at 96% 0%, rgba(37, 99, 235, 0.12), transparent 31%),
    linear-gradient(150deg, #ffffff 0%, #f3fbf7 55%, #ecfeff 100%);
}

.study-material-card-group {
  border-top-color: #123d63;
  background:
    radial-gradient(circle at 8% 8%, rgba(18, 61, 99, 0.12), transparent 28%),
    radial-gradient(circle at 96% 0%, rgba(154, 106, 22, 0.13), transparent 31%),
    linear-gradient(150deg, #ffffff 0%, #f4f8fb 55%, #fff8e7 100%);
}

.study-material-visual {
  position: relative;
  min-height: 168px;
  margin: 18px 0 15px;
  overflow: hidden;
  border: 1px solid rgba(17, 49, 90, 0.13);
  border-radius: 10px;
  background: #edf6ff;
  box-shadow: 0 14px 28px rgba(11, 31, 58, 0.08);
}

.study-material-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(7, 20, 42, 0.54)),
    linear-gradient(90deg, rgba(11, 37, 69, 0.2), transparent 45%);
  content: "";
  pointer-events: none;
}

.study-material-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
  object-position: center;
}

.study-material-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  color: #073b35;
  border: 1px solid rgba(204, 251, 241, 0.74);
  border-radius: 999px;
  background: rgba(240, 253, 250, 0.9);
  box-shadow: 0 10px 22px rgba(7, 20, 42, 0.14);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-material-list {
  margin-top: 16px;
}

.study-material-list span {
  min-height: 52px;
  padding: 11px 10px 11px 34px;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.22;
}

.study-material-list span::before {
  top: 16px;
  left: 13px;
  width: 12px;
  height: 12px;
}

.study-material-card .package-button.is-disabled {
  color: #073b35;
  border: 1px solid rgba(15, 118, 110, 0.28);
  background: linear-gradient(135deg, #ccfbf1 0%, #fef3c7 100%);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.12);
  opacity: 1;
}

.study-material-card-group .package-button.is-disabled {
  color: #4c1d95;
  border-color: rgba(124, 58, 237, 0.24);
  background: linear-gradient(135deg, #ede9fe 0%, #ffedd5 100%);
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.11);
}

.coming-books-card {
  align-self: start;
  min-height: 430px;
  border: 1px solid rgba(17, 49, 90, 0.14);
  border-top: 4px solid #2563eb;
  background:
    radial-gradient(circle at 12% 10%, rgba(37, 99, 235, 0.18), transparent 31%),
    radial-gradient(circle at 92% 12%, rgba(15, 118, 110, 0.16), transparent 33%),
    linear-gradient(145deg, #ffffff 0%, #eff6ff 52%, #ecfeff 100%);
  box-shadow: 0 22px 46px rgba(11, 31, 58, 0.12);
}

.coming-books-card-group {
  border-top-color: #7c3aed;
  background:
    radial-gradient(circle at 16% 10%, rgba(124, 58, 237, 0.18), transparent 31%),
    radial-gradient(circle at 92% 12%, rgba(245, 158, 11, 0.17), transparent 33%),
    linear-gradient(145deg, #ffffff 0%, #f5f0ff 52%, #fff7e8 100%);
}

.is-mystery-books {
  overflow: hidden;
  min-height: 0;
  border-style: solid;
  box-shadow: 0 18px 34px rgba(11, 31, 58, 0.09);
}

.is-mystery-books::before {
  position: absolute;
  right: 0;
  bottom: -120px;
  width: 180px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.24), transparent 66%);
  content: "";
  pointer-events: none;
}

.coming-books-card h3 {
  max-width: 290px;
  margin-top: 15px;
}

.coming-books-card p {
  max-width: 300px;
}

.premium-book-showcase {
  position: relative;
  isolation: isolate;
  min-height: 278px;
  margin: 18px 0 14px;
  overflow: hidden;
  border: 1px solid rgba(17, 49, 90, 0.12);
  border-radius: 14px;
  background:
    radial-gradient(circle at 48% 8%, rgba(255, 255, 255, 0.95), transparent 22%),
    radial-gradient(circle at 18% 74%, rgba(37, 99, 235, 0.26), transparent 28%),
    radial-gradient(circle at 84% 76%, rgba(15, 118, 110, 0.22), transparent 29%),
    linear-gradient(135deg, #dbeafe 0%, #eff6ff 45%, #ccfbf1 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 22px 44px rgba(15, 23, 42, 0.1);
  perspective: 900px;
}

.premium-book-showcase::before {
  position: absolute;
  right: -28px;
  bottom: 18px;
  left: -28px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.03) 58%, transparent 72%);
  content: "";
}

.premium-book-showcase::after {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 11px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.42)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(17, 49, 90, 0.045) 22px 23px);
  content: "";
  pointer-events: none;
}

.coming-books-card-group .premium-book-showcase {
  background:
    radial-gradient(circle at 48% 8%, rgba(255, 255, 255, 0.95), transparent 22%),
    radial-gradient(circle at 20% 76%, rgba(124, 58, 237, 0.26), transparent 29%),
    radial-gradient(circle at 84% 76%, rgba(245, 158, 11, 0.27), transparent 30%),
    linear-gradient(135deg, #ede9fe 0%, #f5f3ff 45%, #ffedd5 100%);
}

.is-mystery-showcase {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.98), transparent 20%),
    radial-gradient(circle at 20% 72%, rgba(59, 130, 246, 0.3), transparent 30%),
    radial-gradient(circle at 84% 72%, rgba(16, 185, 129, 0.26), transparent 32%),
    linear-gradient(135deg, #dbeafe 0%, #eef2ff 42%, #d1fae5 100%);
}

.coming-books-card-group .is-mystery-showcase {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.98), transparent 20%),
    radial-gradient(circle at 20% 72%, rgba(124, 58, 237, 0.32), transparent 31%),
    radial-gradient(circle at 84% 72%, rgba(245, 158, 11, 0.29), transparent 32%),
    linear-gradient(135deg, #ede9fe 0%, #f8f0ff 42%, #ffedd5 100%);
}

.is-mystery-showcase::after {
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.26), transparent 28%),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(17, 49, 90, 0.045) 22px 23px);
  backdrop-filter: blur(1.5px);
}

.book-stack {
  position: absolute;
  z-index: 2;
  bottom: 34px;
  width: 42%;
  max-width: 145px;
  min-width: 116px;
  height: 202px;
  filter: drop-shadow(0 24px 20px rgba(15, 23, 42, 0.28));
}

.book-stack-mcq {
  left: 24px;
  transform: rotateY(-14deg) rotateZ(-7deg);
}

.book-stack-study {
  right: 22px;
  transform: rotateY(14deg) rotateZ(6deg);
}

.premium-book-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 18px 13px 17px 27px;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px 5px 5px 8px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(150deg, #08245f 0%, #2563eb 58%, #38bdf8 100%);
  box-shadow:
    inset 12px 0 18px rgba(255, 255, 255, 0.14),
    inset -12px 0 24px rgba(3, 7, 18, 0.24);
}

.premium-book-cover::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(3, 7, 18, 0.28));
  box-shadow: 5px 0 12px rgba(3, 7, 18, 0.2);
  content: "";
}

.premium-book-cover::after {
  position: absolute;
  right: 12px;
  bottom: 20px;
  left: 31px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 -10px 0 rgba(255, 255, 255, 0.34), 0 -20px 0 rgba(255, 255, 255, 0.18);
  content: "";
}

.book-cover-study {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(150deg, #064e3b 0%, #0f766e 58%, #2dd4bf 100%);
}

.coming-books-card-group .book-cover-mcq {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(150deg, #2e1065 0%, #7c3aed 60%, #a855f7 100%);
}

.coming-books-card-group .book-cover-study {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(150deg, #7c2d12 0%, #b45309 58%, #f59e0b 100%);
}

.book-cover-kicker,
.premium-book-cover strong,
.premium-book-cover small,
.book-cover-mark {
  position: relative;
  z-index: 1;
  display: block;
}

.book-cover-kicker {
  color: rgba(255, 255, 255, 0.78);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.premium-book-cover strong {
  max-width: 112px;
  margin-top: 10px;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.06;
}

.premium-book-cover small {
  max-width: 104px;
  margin-top: 11px;
  padding-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
}

.book-cover-mark {
  position: absolute;
  right: 10px;
  bottom: 9px;
  padding: 4px 7px;
  color: #0b1f3a;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mystery-book-cover {
  filter: saturate(1.18);
}

.mystery-book-cover::after {
  box-shadow: 0 -11px 0 rgba(255, 255, 255, 0.23), 0 -22px 0 rgba(255, 255, 255, 0.12);
}

.secret-line {
  position: relative;
  z-index: 1;
  display: block;
  height: 13px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(1.5px);
  opacity: 0.82;
  box-shadow: 0 10px 22px rgba(255, 255, 255, 0.16);
}

.secret-line-wide {
  width: 92%;
  height: 16px;
  margin-top: 20px;
}

.secret-line-medium {
  width: 76%;
}

.secret-line-short {
  width: 58%;
}

.mystery-book-cover .book-cover-kicker {
  opacity: 0.55;
  filter: blur(1px);
}

.is-mystery-showcase .book-stack {
  filter: blur(0.55px) saturate(1.18) drop-shadow(0 24px 20px rgba(15, 23, 42, 0.28));
}

.available-soon-ribbon {
  position: absolute;
  z-index: 4;
  overflow: hidden;
  top: 58%;
  right: 14px;
  left: 14px;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
  gap: 10px;
  transform: translateY(-50%) rotate(-2.4deg);
}

.available-soon-ribbon::before {
  position: absolute;
  inset: -12px -10px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
  content: "";
}

.available-soon-ribbon span {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
  box-shadow: 0 8px 0 rgba(245, 158, 11, 0.22);
}

.available-soon-ribbon strong {
  min-width: max-content;
  padding: 8px 13px;
  color: #7a4b00;
  border: 1px solid rgba(245, 158, 11, 0.46);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8dd, #ffe9a8);
  box-shadow: 0 14px 22px rgba(122, 75, 0, 0.16);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.is-mystery-showcase .available-soon-ribbon strong {
  color: #6b3b00;
  background: linear-gradient(180deg, #fff9db, #ffd978);
  box-shadow: 0 15px 28px rgba(122, 75, 0, 0.2);
}

.coming-book-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: auto;
}

.coming-book-list span {
  position: relative;
  display: block;
  min-height: 42px;
  padding: 9px 8px 9px 28px;
  color: var(--navy-900);
  border: 1px solid rgba(17, 49, 90, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.coming-book-list span::before {
  position: absolute;
  top: 12px;
  left: 11px;
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.65);
  transform: none;
  content: "";
}

.coming-book-list .chip-mcq {
  color: #1d4ed8;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.coming-book-list .chip-mock {
  color: #7c3aed;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}

.coming-book-list .chip-study {
  color: #0f766e;
  background: linear-gradient(135deg, #ecfdf5, #ccfbf1);
}

.coming-book-list .chip-revision {
  color: #b45309;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.is-mystery-list span {
  font-size: 10px;
  letter-spacing: 0.02em;
}

.online-course-focus-note {
  margin-top: 12px;
  padding: 10px 12px;
  color: #0b2a66;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.coming-books-card-group .online-course-focus-note {
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.16);
}

.recommended-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 10px;
  color: #764700;
  border-bottom-left-radius: 8px;
  background: var(--gold-100);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.package-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-right: 48px;
}

.package-label,
.speciality-title {
  color: var(--navy-700);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.discount-pill,
.material-pill,
.offer-badge {
  display: inline-flex;
  width: max-content;
  padding: 4px 7px;
  color: #7a4b00;
  border-radius: 5px;
  background: var(--gold-100);
  font-size: 10px;
  font-weight: 900;
}

.material-pill {
  color: var(--green-700);
  background: var(--green-100);
}

.package-card h3 {
  margin: 17px 0 7px;
  color: var(--navy-900);
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1.16;
}

.package-card p {
  margin: 0;
  color: var(--slate-600);
  font-size: 13px;
}

.package-metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 15px;
}

.package-metric-row span {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(17, 49, 90, 0.1);
  border-radius: 8px;
  background: #f8fbff;
}

.package-card-featured .package-metric-row span {
  border-color: rgba(245, 158, 11, 0.2);
  background: #fffaf0;
}

.package-card-material .package-metric-row span {
  border-color: rgba(15, 118, 110, 0.18);
  background: #f0fdf4;
}

.validity-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin-top: 11px;
  padding: 6px 9px;
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #ecfdf5;
  font-size: 11px;
  font-weight: 900;
}

.validity-note.upcoming-validity-note {
  color: #0e7490;
  border-color: rgba(14, 116, 144, 0.2);
  background: #ecfeff;
}

.package-metric-row strong,
.package-metric-row small {
  display: block;
}

.package-metric-row strong {
  color: var(--navy-900);
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1;
}

.package-metric-row small {
  margin-top: 4px;
  color: var(--slate-600);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 17px;
}

.early-bird-note {
  width: max-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 5px 8px;
  color: #7a4b00;
  border-radius: 5px;
  background: var(--gold-100);
  font-size: 10px;
  font-weight: 900;
}

.early-bird-note.upcoming-note {
  color: #0e7490;
  background: #ecfeff;
}

.package-upcoming-panel {
  position: relative;
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 14px 15px 13px 17px;
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-left: 4px solid #1d4ed8;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.96) 0%, rgba(238, 245, 255, 0.94) 100%),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.package-card-featured .package-upcoming-panel {
  border-color: rgba(180, 118, 14, 0.2);
  border-left-color: #b7790b;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.97) 0%, rgba(255, 246, 223, 0.94) 100%),
    #ffffff;
}

.package-upcoming-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin: 0 0 2px;
  padding: 3px 6px;
  color: #1d4ed8;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 5px;
  background: rgba(239, 246, 255, 0.94);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.package-card-featured .package-upcoming-kicker {
  color: #8a5700;
  border-color: rgba(180, 118, 14, 0.14);
  background: rgba(255, 247, 224, 0.96);
}

.package-upcoming-title,
.package-upcoming-panel strong {
  display: block;
  color: var(--navy-900);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.28;
}

.package-upcoming-copy,
.package-upcoming-panel > span:not(.package-upcoming-kicker) {
  display: block;
  margin-top: 1px;
  color: var(--slate-600);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.package-upcoming-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 4px;
  padding-top: 8px;
  color: #29445f;
  border-top: 1px solid rgba(17, 49, 90, 0.1);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
}

.package-upcoming-meta span + span {
  position: relative;
}

.package-upcoming-meta span + span::before {
  position: absolute;
  top: 0;
  left: -7px;
  color: rgba(41, 68, 95, 0.42);
  content: "\00b7";
}

.price-tier {
  display: grid;
  gap: 4px;
}

.price-tier[hidden] {
  display: none;
}

[hidden] {
  display: none !important;
}

.price-tier small {
  color: var(--slate-600);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

.original-price,
.old-price {
  color: var(--slate-600);
  font-size: 15px;
  font-weight: 800;
  text-decoration: line-through;
}

.new-price {
  color: var(--navy-900);
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.save-line {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin-top: 7px;
  padding: 5px 8px;
  color: var(--green-700);
  border-radius: 5px;
  background: var(--green-100);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.material-highlight {
  width: max-content;
  margin-top: 18px;
  padding: 9px 11px;
  color: var(--green-700);
  border-radius: 7px;
  background: var(--green-100);
  font-size: 13px;
  font-weight: 900;
}

.speciality-title {
  margin-top: 20px;
}

.speciality-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 20px;
  padding: 0;
  list-style: none;
}

.speciality-list li {
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 700;
}

.speciality-list li::before {
  margin-right: 7px;
  color: var(--green-700);
  content: "\2713";
  font-weight: 900;
}

.package-button {
  width: 100%;
  margin-top: auto;
}

.package-price-card .price-row {
  margin-top: 14px;
}

.package-price-card .new-price {
  color: var(--navy-900);
  font-size: 39px;
}

.package-price-card.is-course-owned {
  border-color: rgba(22, 128, 60, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(232, 245, 238, 0.94) 100%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 34%);
}

.package-price-card.is-course-upcoming {
  border-color: rgba(14, 116, 144, 0.28);
  background:
    linear-gradient(135deg, rgba(14, 116, 144, 0.08), transparent 42%),
    #ffffff;
}

.package-price-card.is-course-upcoming .package-validity-note {
  color: #0e7490;
  border-color: rgba(14, 116, 144, 0.2);
  background: #ecfeff;
}

.course-owned-panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(22, 128, 60, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.course-owned-panel strong,
.course-owned-panel span {
  display: block;
}

.course-owned-panel strong {
  color: var(--navy-900);
  font-size: 15px;
}

.course-owned-panel span {
  margin-top: 4px;
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.offer-badge {
  margin-top: 11px;
  color: #7a4b00;
  background: var(--gold-100);
}

.enroll-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 16px;
}

#package-detail .page-main {
  padding-bottom: 150px;
}

.package-explore-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: 100%;
}

.section-head-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  color: var(--white);
  border-radius: 8px;
  background: var(--navy-900);
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.package-feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.package-feature-strip div {
  position: relative;
  min-height: 112px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(184, 197, 213, 0.8);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.055);
}

.package-feature-strip div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #0b63ce;
}

.package-feature-strip div:nth-child(2)::before {
  background: var(--gold-500);
}

.package-feature-strip div:nth-child(3)::before {
  background: #0f766e;
}

.package-feature-strip div:nth-child(4)::before {
  background: #7c3aed;
}

.package-feature-strip strong,
.package-feature-strip span {
  display: block;
}

.package-revision-access {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 20px;
  margin: 0 0 20px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 10px;
  background: linear-gradient(135deg, #f3fbfa 0%, #eef6ff 100%);
  box-shadow: 0 14px 34px rgba(11, 31, 58, 0.08);
}

.package-revision-access::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #0f766e;
  content: "";
}

.package-revision-access.is-advanced {
  border-color: rgba(180, 83, 9, 0.24);
  background: linear-gradient(135deg, #fffaf0 0%, #f3fbfa 100%);
}

.package-revision-access.is-advanced::before {
  background: #d97706;
}

.package-revision-access-copy {
  display: grid;
  gap: 6px;
}

.package-revision-access-copy > span {
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.package-revision-access.is-advanced .package-revision-access-copy > span {
  color: #a65300;
}

.package-revision-access h3 {
  margin: 0;
  color: var(--navy-900);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 1.2;
}

.package-revision-access p {
  margin: 0;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.package-revision-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.package-revision-benefits span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.package-revision-access.is-advanced .package-revision-benefits span {
  border-color: rgba(180, 83, 9, 0.16);
}

.package-feature-strip .feature-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  margin-bottom: 10px;
  padding: 0 9px;
  color: var(--navy-900);
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 999px;
  background: #eef6ff;
  font-size: 12px;
  font-weight: 900;
}

.package-feature-strip strong {
  color: var(--navy-900);
  font-size: 12px;
}

.package-feature-strip span {
  margin-top: 4px;
  color: var(--slate-600);
  font-size: 11px;
  line-height: 1.35;
}

.enroll-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 16px 18px;
  color: var(--white);
  border: 1px solid rgba(96, 165, 250, 0.62);
  border-radius: 12px;
  background: linear-gradient(135deg, #0b63ce, #0750a8);
  box-shadow: 0 16px 34px rgba(7, 80, 168, 0.24);
}

.enroll-panel strong,
.enroll-panel span {
  display: block;
}

.enroll-panel strong {
  font-size: 15px;
}

.enroll-panel span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.floating-enroll-bar {
  position: fixed;
  z-index: 35;
  right: auto;
  bottom: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(calc(100% - 36px), 930px);
  margin-inline: auto;
  padding: 12px 14px;
  color: var(--white);
  border: 1px solid rgba(96, 165, 250, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg, #06204a, #0b63ce);
  box-shadow: 0 18px 42px rgba(4, 27, 62, 0.3);
  transform: translateX(-50%);
}

.floating-enroll-bar strong,
.floating-enroll-bar span {
  display: block;
}

.floating-enroll-bar strong {
  font-size: 13px;
}

.floating-enroll-bar span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 20px;
}

.category-card-wide {
  grid-column: 1 / -1;
  min-height: 190px;
}

.category-symbol {
  display: grid;
  width: 46px;
  height: 46px;
  color: var(--white);
  border-radius: 10px;
  background: var(--navy-900);
  font-size: 11px;
  font-weight: 900;
  place-items: center;
}

.category-symbol-gold {
  color: var(--navy-950);
  background: var(--gold-400);
}

.category-symbol-green {
  color: var(--green-700);
  background: var(--green-100);
}

.category-card h3 {
  margin: 15px 0 6px;
  color: var(--navy-900);
  font-family: Georgia, serif;
  font-size: 21px;
}

.category-card p {
  margin: 0;
  color: var(--slate-600);
  font-size: 13px;
}

.category-card .resource-link {
  margin-top: auto;
}

#package-detail .category-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

#package-detail .category-card {
  position: relative;
  grid-column: span 6;
  min-height: 268px;
  padding: 22px;
  overflow: hidden;
  border-color: rgba(184, 197, 213, 0.85);
  border-radius: 8px;
  background: linear-gradient(150deg, #ffffff 0%, #f8fbff 66%, #edf6ff 100%);
  box-shadow: 0 14px 34px rgba(11, 31, 58, 0.075);
}

#package-detail .category-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #0b63ce, #14b8a6);
}

#package-detail .category-card-mcq {
  background: linear-gradient(150deg, #ffffff 0%, #f4fbff 62%, #e0f7fa 100%);
}

#package-detail .category-card-mcq::before {
  background: linear-gradient(90deg, #2563eb, #06b6d4, #0f766e);
}

#package-detail .category-card:hover {
  border-color: #94b8e8;
  box-shadow: 0 22px 46px rgba(11, 31, 58, 0.13);
}

#package-detail .category-card-mock {
  background: linear-gradient(150deg, #ffffff 0%, #fffaf0 64%, #fef3c7 100%);
}

#package-detail .category-card-mock::before {
  background: linear-gradient(90deg, #f59e0b, #0b63ce);
}

#package-detail .category-card-pyq {
  grid-column: 1 / -1;
  min-height: 206px;
  background: linear-gradient(150deg, #ffffff 0%, #f3fbf7 68%, #e8f5ee 100%);
}

#package-detail .category-card-pyq::before {
  background: linear-gradient(90deg, #0f766e, #f59e0b);
}

#package-detail .package-study-material-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(230px, 0.86fr) minmax(0, 1.14fr);
  gap: 20px;
  align-items: stretch;
  min-height: 250px;
  cursor: default;
  background:
    radial-gradient(circle at 7% 12%, rgba(15, 118, 110, 0.14), transparent 28%),
    radial-gradient(circle at 98% 0%, rgba(245, 158, 11, 0.14), transparent 30%),
    linear-gradient(150deg, #ffffff 0%, #f3fbf7 64%, #ecfeff 100%);
}

#package-detail .package-study-material-card::before {
  background: linear-gradient(90deg, #0f766e, #2563eb, #f59e0b);
}

#package-detail .package-study-material-visual {
  position: relative;
  min-height: 214px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 49, 90, 0.13);
  border-radius: 8px;
  background: #e8f5ee;
  box-shadow: 0 16px 30px rgba(11, 31, 58, 0.09);
}

#package-detail .package-study-material-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(7, 20, 42, 0.6));
  content: "";
  pointer-events: none;
}

#package-detail .package-study-material-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 214px;
  object-fit: cover;
  object-position: center;
}

#package-detail .package-study-material-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  color: #073b35;
  border: 1px solid rgba(204, 251, 241, 0.74);
  border-radius: 999px;
  background: rgba(240, 253, 250, 0.92);
  box-shadow: 0 10px 22px rgba(7, 20, 42, 0.14);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#package-detail .package-study-material-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#package-detail .category-symbol-study {
  color: #0f766e;
  background: #ccfbf1;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.16);
}

#package-detail .package-study-material-card .resource-link {
  color: #073b35;
  background: linear-gradient(135deg, #ccfbf1, #fef3c7);
  box-shadow: 0 13px 26px rgba(15, 118, 110, 0.13);
  pointer-events: none;
}

#package-detail .package-study-material-card .resource-link b {
  color: #0f766e;
  background: rgba(255, 255, 255, 0.62);
}

#package-detail .category-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#package-detail .category-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--navy-800);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

#package-detail .category-symbol {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.16);
}

#package-detail .category-card-mcq .category-symbol {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

#package-detail .category-symbol-gold {
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.22);
}

#package-detail .category-symbol-green {
  color: #0f766e;
  background: #dff7ec;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.16);
}

#package-detail .category-card h3 {
  margin: 18px 0 8px;
  font-size: clamp(21px, 2.2vw, 29px);
  letter-spacing: 0;
  line-height: 1.15;
}

#package-detail .category-card p {
  max-width: 56ch;
  color: #526071;
  font-size: 14px;
  line-height: 1.55;
}

#package-detail .category-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}

#package-detail .category-points span {
  padding: 5px 9px;
  color: #344256;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
}

#package-detail .category-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 20px;
}

#package-detail .category-metrics span {
  padding-top: 11px;
  border-top: 1px solid rgba(148, 163, 184, 0.45);
}

#package-detail .category-metrics strong,
#package-detail .category-metrics small {
  display: block;
}

#package-detail .category-metrics strong {
  color: var(--navy-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

#package-detail .category-metrics small {
  margin-top: 3px;
  color: var(--slate-600);
  font-size: 11px;
  font-weight: 800;
}

#package-detail .category-card .resource-link {
  min-height: 46px;
  margin-top: auto;
  padding: 0 13px 0 15px;
  color: var(--white);
  border: 0;
  border-radius: 8px;
  background: var(--navy-900);
  box-shadow: 0 13px 26px rgba(11, 31, 58, 0.16);
}

#package-detail .category-card-mcq .resource-link {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  box-shadow: 0 13px 26px rgba(37, 99, 235, 0.18);
}

#package-detail .category-card-mock .resource-link {
  color: var(--navy-950);
  background: var(--gold-400);
  box-shadow: 0 13px 26px rgba(245, 158, 11, 0.2);
}

#package-detail .category-card-pyq .resource-link {
  color: var(--white);
  background: #0f766e;
  box-shadow: 0 13px 26px rgba(15, 118, 110, 0.17);
}

#package-detail .resource-link b {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 14px;
  place-items: center;
}

#package-detail .category-card-mock .resource-link b {
  background: rgba(6, 22, 44, 0.1);
}

.paper-card {
  padding: 24px;
}

.folder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.folder-mark,
.resource-symbol {
  display: grid;
  flex: 0 0 auto;
  color: var(--navy-900);
  border-radius: 11px;
  background: var(--gold-400);
  font-family: Georgia, serif;
  font-weight: 900;
  place-items: center;
}

.folder-mark {
  width: 54px;
  height: 54px;
  font-size: 21px;
}

.folder-arrow {
  color: #b46d00;
  font-size: 23px;
  font-weight: 900;
}

.paper-card h3,
.resource-card h3,
.feature-panel h3 {
  margin: 18px 0 6px;
  color: var(--navy-900);
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1.15;
}

.paper-card p,
.resource-card p,
.feature-panel p,
.module-card p,
.mock-card p,
.info-card p,
.content-note p {
  margin: 0;
  color: var(--slate-600);
  font-size: 13px;
}

.mini-list {
  display: grid;
  gap: 6px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 700;
}

.mini-list li::before {
  margin-right: 7px;
  color: var(--green-700);
  content: "\2713";
  font-weight: 900;
}

.content-block {
  margin-top: 58px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  gap: 17px;
  margin-top: 58px;
}

.feature-panel {
  padding: 25px;
}

.feature-panel-dark {
  color: var(--white);
  border-color: var(--navy-900);
  background: var(--navy-900);
}

.feature-panel-dark h3,
.feature-panel-dark p {
  color: var(--white);
}

.feature-panel-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.panel-tag {
  display: inline-flex;
  padding: 5px 8px;
  color: #8a5400;
  border-radius: 5px;
  background: var(--gold-100);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-panel .btn {
  margin-top: 19px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 21px;
}

.resource-symbol {
  width: 46px;
  height: 46px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.resource-card:nth-child(2) .resource-symbol {
  color: var(--white);
  background: var(--navy-900);
}

.resource-card:nth-child(3) .resource-symbol {
  color: var(--green-700);
  background: var(--green-100);
}

.resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--navy-800);
  border-top: 1px solid var(--slate-200);
  font-size: 12px;
  font-weight: 900;
}

.content-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 25px;
  padding: 18px;
  border-color: #f5cf82;
  background: #fffbeb;
}

.note-mark {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #865300;
  border-radius: 50%;
  background: var(--gold-400);
  font-weight: 900;
  place-items: center;
}

.content-note strong {
  display: block;
  color: #7a4b00;
  font-size: 13px;
}

.content-note p {
  margin-top: 3px;
}

.inline-attention-line {
  margin-top: 18px;
  padding-left: 12px;
  border-left: 3px solid var(--gold-500);
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.checkout-hero .hero-inner {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.checkout-summary-card {
  color: var(--white);
  border-color: rgba(251, 191, 36, 0.42);
  background:
    linear-gradient(145deg, rgba(6, 22, 44, 0.98), rgba(11, 49, 90, 0.96)),
    var(--navy-900);
  box-shadow: 0 22px 58px rgba(3, 10, 24, 0.28);
}

.checkout-summary-card > small {
  color: #fde68a;
}

.checkout-summary-card h2 {
  margin: 8px 0 16px;
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1.1;
}

.checkout-price-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #f6c85f;
  border-radius: 10px;
  background: linear-gradient(135deg, #fffbeb, #fff7d6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.checkout-unavailable .checkout-price-line {
  border-color: rgba(14, 116, 144, 0.34);
  background: linear-gradient(135deg, #ecfeff, #f8fafc);
}

.checkout-unavailable .checkout-price-line span {
  color: #0e7490;
}

.checkout-unavailable .checkout-price-line strong {
  color: var(--navy-900);
  font-size: 24px;
}

.checkout-unavailable .checkout-original-amount::after {
  display: none;
}

.checkout-unavailable .checkout-offer-box strong {
  white-space: normal;
}

.checkout-price-line span {
  color: #8a5400;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-price-line strong {
  color: var(--navy-950);
  font-size: 29px;
  line-height: 1;
}

.checkout-discount-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(134, 239, 172, 0.86);
  border-radius: 10px;
  color: #064e3b;
  background: rgba(236, 253, 245, 0.98);
}

.checkout-discount-line[hidden] {
  display: none;
}

.checkout-discount-line span,
.checkout-discount-line strong {
  font-size: 12px;
  font-weight: 900;
}

.checkout-offer-box {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  max-width: 100%;
  border: 1px solid #86efac;
  border-radius: 10px;
  background: linear-gradient(135deg, #ecfdf5, #dcfce7);
  overflow: hidden;
}

.checkout-offer-box span {
  color: #064e3b;
  font-size: 12px;
  font-weight: 900;
}

#checkout-original {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 6px;
  width: 100%;
  max-width: 100%;
  color: #064e3b;
  text-decoration: none;
  overflow-wrap: normal;
}

.checkout-original-label {
  flex: 0 0 auto;
}

.checkout-original-amount {
  position: relative;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 0 3px;
  color: #475569;
  font-weight: 900;
  white-space: nowrap;
}

.checkout-original-amount::after {
  position: absolute;
  top: 52%;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, #dc2626, #f59e0b);
  transform: rotate(-5deg);
}

.checkout-offer-box strong {
  color: #047857;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

.checkout-summary-card .enroll-legal-note {
  width: 100%;
  max-width: 100%;
  color: #334155;
  border-color: rgba(15, 118, 110, 0.22);
  background: #f8fafc;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.checkout-card {
  min-width: 0;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.checkout-main-card {
  padding: 24px;
}

.checkout-side-rail {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.checkout-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.checkout-stepper div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid #bad7ff;
  border-radius: 10px;
  background: #eff6ff;
}

.checkout-stepper span {
  display: grid;
  width: 28px;
  height: 28px;
  color: var(--white);
  border-radius: 50%;
  background: #0b63ce;
  font-size: 12px;
  font-weight: 900;
  place-items: center;
}

.checkout-stepper strong {
  color: var(--navy-900);
  font-size: 12px;
}

.checkout-section-title {
  margin-bottom: 16px;
}

.checkout-section-title.compact {
  margin-top: 26px;
}

.checkout-section-title h2,
.checkout-side-rail h2 {
  margin: 5px 0 4px;
  color: var(--navy-900);
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1.15;
}

.checkout-section-title p,
.checkout-side-rail p {
  margin: 0;
  color: var(--slate-600);
  font-size: 13px;
}

.checkout-course-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.checkout-course-strip div {
  padding: 14px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.checkout-course-strip small,
.checkout-course-strip strong {
  display: block;
}

.checkout-course-strip small {
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-course-strip strong {
  margin-top: 3px;
  color: var(--navy-900);
  font-size: 12px;
  line-height: 1.35;
}

.coupon-box {
  margin-top: 26px;
  padding: 16px;
  border: 1px solid rgba(11, 99, 206, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.coupon-box .checkout-section-title.compact {
  margin-top: 0;
  margin-bottom: 12px;
}

.coupon-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.coupon-control input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--slate-900);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  outline: none;
}

.coupon-control input:focus {
  border-color: #0b63ce;
  box-shadow: 0 0 0 3px rgba(11, 99, 206, 0.12);
}

.coupon-message {
  margin: 9px 0 0;
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 800;
}

.coupon-message[data-variant="success"] {
  color: #047857;
}

.coupon-message[data-variant="error"] {
  color: #b91c1c;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.checkout-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 900;
}

.checkout-form-grid input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--slate-900);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: var(--white);
  outline: none;
}

.checkout-form-grid input:focus {
  border-color: #0b63ce;
  box-shadow: 0 0 0 3px rgba(11, 99, 206, 0.12);
}

.payment-method-grid,
.gateway-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gateway-choice-grid {
  grid-template-columns: repeat(3, 1fr);
}

.payment-method-grid label,
.gateway-choice-grid label {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
}

.payment-method-grid input,
.gateway-choice-grid input {
  margin-top: 4px;
  accent-color: #0b63ce;
}

.payment-method-grid strong,
.payment-method-grid small,
.gateway-choice-grid strong,
.gateway-choice-grid small {
  display: block;
}

.payment-method-grid strong,
.gateway-choice-grid strong {
  color: var(--navy-900);
  font-size: 12px;
}

.payment-method-grid small,
.gateway-choice-grid small {
  margin-top: 3px;
  color: var(--slate-600);
  font-size: 11px;
  line-height: 1.35;
}

.payment-method-grid label:has(input:checked),
.gateway-choice-grid label:has(input:checked) {
  border-color: #0b63ce;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(11, 99, 206, 0.16);
}

.checkout-policy-review {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 14px;
  max-width: 100%;
  border: 1px solid rgba(11, 99, 206, 0.18);
  border-radius: 10px;
  background: #f8fbff;
  box-sizing: border-box;
  overflow: hidden;
}

.manual-payment-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 10px;
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 52%, #fff7ed 100%);
}

.manual-payment-panel[hidden] {
  display: none;
}

.manual-payment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.manual-payment-head h3 {
  margin: 2px 0 4px;
  color: var(--navy-900);
  font-size: 18px;
}

.manual-payment-head p,
.manual-payment-note {
  margin: 0;
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.manual-payment-head > strong {
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 12px 24px rgba(11, 31, 58, 0.14);
}

.manual-payment-grid,
.manual-payment-entry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.manual-payment-box {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.manual-payment-box small,
.manual-payment-entry label {
  color: var(--slate-600);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.manual-payment-box strong {
  display: block;
  margin-top: 4px;
  color: var(--navy-900);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.manual-payment-entry label {
  display: grid;
  gap: 6px;
  text-transform: none;
  letter-spacing: 0;
}

.manual-payment-entry input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--navy-900);
  font: inherit;
  font-weight: 800;
}

.manual-payment-entry input:disabled {
  background: #f1f5f9;
  color: var(--slate-500);
}

.checkout-policy-review strong,
.checkout-policy-review span {
  display: block;
}

.checkout-policy-review strong {
  color: var(--navy-900);
  font-size: 13px;
}

.checkout-policy-review span {
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 800;
}

.checkout-policy-review div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.checkout-policy-review a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  color: #0b63ce;
  border: 1px solid rgba(11, 99, 206, 0.18);
  border-radius: 999px;
  background: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.checkout-policy-review a:hover,
.checkout-policy-review a:focus-visible {
  color: var(--navy-900);
  border-color: rgba(11, 99, 206, 0.32);
  background: #eff6ff;
}

.checkout-consent {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding: 13px;
  border: 1px solid rgba(22, 128, 60, 0.26);
  border-radius: 10px;
  color: var(--slate-700);
  background: #f0fdf4;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.checkout-consent input {
  margin-top: 2px;
  accent-color: var(--green-700);
}

.payment-status {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #f1c45d;
  border-radius: 10px;
  background: #fffbeb;
}

.payment-status[data-variant="success"] {
  border-color: #86efac;
  background: #f0fdf4;
}

.payment-status[data-variant="error"] {
  border-color: #fca5a5;
  background: #fef2f2;
}

.payment-status[data-variant="info"] {
  border-color: rgba(14, 116, 144, 0.24);
  background: #ecfeff;
}

.payment-status strong,
.payment-status p,
.payment-status a {
  display: block;
}

.payment-status strong {
  color: var(--navy-900);
  font-size: 13px;
}

.payment-status p {
  margin: 4px 0 8px;
  color: var(--slate-700);
  font-size: 12px;
}

.payment-status a {
  color: #0b63ce;
  font-size: 12px;
  font-weight: 900;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.gateway-ready-mark {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 9px;
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  background: #ecfdf5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gateway-checklist {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.gateway-checklist div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 10px;
  padding: 12px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: #f8fafc;
}

.gateway-checklist span {
  display: grid;
  grid-row: span 2;
  width: 30px;
  height: 30px;
  color: var(--white);
  border-radius: 8px;
  background: var(--navy-900);
  font-size: 11px;
  font-weight: 900;
  place-items: center;
}

.gateway-checklist strong {
  color: var(--navy-900);
  font-size: 12px;
}

.gateway-checklist small {
  color: var(--slate-600);
  font-size: 11px;
  line-height: 1.4;
}

.checkout-policy-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(106px, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.checkout-policy-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: #ecfdf5;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.pyq-detail-hero .hero-side-card h2 {
  font-size: 22px;
  line-height: 1.2;
}

.pyq-detail-layout {
  display: grid;
  gap: 18px;
}

.pyq-detail-hero .hero-inner,
.pyq-detail-hero .hero-inner > div,
.pyq-detail-hero .hero-side-card,
.pyq-moderation-note,
.pyq-page-card {
  min-width: 0;
}

.pyq-detail-hero h1,
.pyq-detail-hero p,
.pyq-detail-hero h2,
.pyq-moderation-note,
.pyq-question-text p {
  overflow-wrap: anywhere;
}

.pyq-moderation-note ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--slate-600);
  line-height: 1.6;
}

.pyq-page-stack,
.answer-key-stack {
  display: grid;
  gap: 16px;
}

.pyq-page-card,
.answer-key-page {
  background: var(--white);
  border: 1px solid rgba(11, 42, 102, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(11, 42, 102, 0.08);
  overflow: hidden;
}

.pyq-page-card h2 {
  margin: 0;
  padding: 14px 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-900), #1d5f9f);
  font-size: 18px;
}

.pyq-question-text {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.pyq-question-text p {
  margin: 0;
  color: #263750;
  line-height: 1.65;
}

.answer-key-page {
  margin: 0;
  padding: 12px;
}

.answer-key-page img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(11, 42, 102, 0.1);
}

.answer-key-page figcaption {
  margin-top: 8px;
  color: var(--slate-600);
  font-size: 13px;
  text-align: center;
}

.pyq-test-app {
  min-height: 100vh;
  background: linear-gradient(135deg, #eef8ff 0%, #f4fff8 52%, #fff8e8 100%);
  font-family: "Segoe UI", Arial, sans-serif;
}

.test-start-panel {
  padding: 46px 0;
}

.test-start-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(11, 42, 102, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.test-start-card > *,
.candidate-form,
.question-stage {
  min-width: 0;
}

.test-start-card p,
.score-card p {
  overflow-wrap: anywhere;
}

.test-start-card > div:first-child {
  text-align: center;
}

.test-start-card > div:first-child .eyebrow {
  justify-content: center;
}

.test-start-card #test-summary {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
}

.test-caution {
  display: grid;
  gap: 6px;
  max-width: 760px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(180, 83, 9, 0.28);
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  color: #78350f;
  background: #fff7ed;
  font-size: 14px;
  line-height: 1.45;
}

.test-caution strong {
  color: #92400e;
  font-size: 13px;
  text-transform: uppercase;
}

.test-caution span {
  overflow-wrap: anywhere;
}

.test-start-card h1,
.score-card h1 {
  margin: 8px 0;
  color: var(--navy-900);
  font-family: Georgia, serif;
  font-size: 36px;
}

.candidate-form {
  display: grid;
  gap: 10px;
}

.candidate-form label {
  color: var(--navy-900);
  font-weight: 800;
  font-size: 13px;
}

.candidate-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(11, 42, 102, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
}

.test-loading-note {
  padding: 14px;
  border: 1px dashed rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  color: #475569;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.test-start-briefing {
  align-self: stretch;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fcff 0%, #ffffff 46%, #eefdf7 100%);
  box-shadow: 0 16px 34px rgba(11, 42, 102, 0.09);
}

.locked-test-briefing {
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 54%, #f8fafc 100%);
}

.locked-test-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.locked-test-mark {
  display: grid;
  width: 42px;
  height: 42px;
  color: #7c2d12;
  border-radius: 999px;
  background: #ffedd5;
  place-items: center;
}

.locked-test-panel strong {
  color: var(--navy-950);
  font-size: 20px;
  font-weight: 950;
}

.locked-test-panel p {
  max-width: 620px;
  margin: 0;
  color: var(--slate-700);
  font-weight: 750;
  line-height: 1.55;
}

.test-brief-title {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.14);
  text-align: center;
}

.test-brief-title span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.test-brief-title strong {
  color: #0b2a66;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.18;
}

.test-info-card {
  display: grid;
  gap: 12px;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 15px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  text-align: center;
}

.test-info-card span,
.test-terms-box strong,
.result-tools-highlight strong {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.test-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.test-detail-grid strong {
  display: grid;
  gap: 3px;
  min-height: 66px;
  align-content: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
}

.test-detail-grid b {
  font-size: 25px;
  line-height: 1;
}

.test-detail-grid small {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.result-tools-highlight {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 96px;
  align-content: center;
  padding: 16px 18px 16px 58px;
  border: 1px solid rgba(22, 163, 74, 0.28);
  border-left: 6px solid #16a34a;
  border-radius: 8px;
  background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 58%, #eff6ff 100%);
  box-shadow: 0 14px 26px rgba(22, 163, 74, 0.12);
}

.result-tools-highlight::before {
  content: "★";
  position: absolute;
  left: 18px;
  top: 19px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #16a34a;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.22);
}

.result-tools-highlight strong {
  color: #166534;
  font-size: 14px;
  line-height: 1.35;
}

.result-tools-highlight span {
  color: #14532d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.test-brief-list {
  display: grid;
  gap: 9px;
}

.test-brief-list div {
  padding: 11px 12px;
  border: 1px solid rgba(11, 42, 102, 0.08);
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  background: #f8fafc;
}

.test-brief-list div:nth-child(1) {
  border-color: rgba(37, 99, 235, 0.15);
  border-left-color: #2563eb;
  background: #eff6ff;
}

.test-brief-list div:nth-child(2) {
  border-color: rgba(217, 119, 6, 0.18);
  border-left-color: #d97706;
  background: #fff7ed;
}

.test-brief-list div:nth-child(3) {
  border-color: rgba(124, 58, 237, 0.16);
  border-left-color: #7c3aed;
  background: #f5f3ff;
}

.test-brief-list strong,
.test-brief-list span,
.test-terms-box span {
  display: block;
}

.test-brief-list strong {
  color: #0b2a66;
  font-size: 13px;
  font-weight: 900;
}

.test-brief-list span,
.test-terms-box span {
  color: #475569;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.42;
}

.test-terms-box {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  background: #eff6ff;
}

.test-terms-box strong {
  color: #1d4ed8;
}

.test-start-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.test-start-actions span {
  min-width: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.start-test-action {
  min-width: 132px;
  min-height: 44px;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.test-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px 20px;
  color: #172033;
  background: rgba(248, 252, 255, 0.98);
  border-bottom: 1px solid rgba(15, 118, 110, 0.16);
  box-shadow: 0 10px 26px rgba(4, 16, 35, 0.08);
  backdrop-filter: blur(12px);
}

.test-sticky-bar strong,
.test-sticky-bar span {
  display: block;
}

.test-sticky-bar span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.test-timer {
  min-width: 92px;
  padding: 7px 12px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  font-size: 17px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.test-timer.is-warning {
  background: linear-gradient(135deg, #b45309, #f59e0b);
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.24);
}

.test-timer.is-danger {
  background: linear-gradient(135deg, #9f1239, #dc2626);
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.24);
}

.test-toast {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 92px;
  width: min(360px, calc(100vw - 32px));
  padding: 13px 15px;
  border-radius: 8px;
  color: #ffffff;
  background: #0b2545;
  box-shadow: 0 18px 40px rgba(11, 37, 69, 0.22);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.test-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.test-toast.success {
  background: linear-gradient(135deg, #166534, #0f766e);
}

.test-toast.warning {
  background: linear-gradient(135deg, #92400e, #d97706);
}

.test-toast.danger {
  background: linear-gradient(135deg, #881337, #dc2626);
}

.test-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  width: 100%;
  max-width: none;
  padding: 18px;
  background: linear-gradient(135deg, #f8fcff 0%, #edfdf6 48%, #fff8e7 100%);
}

.question-palette-wrap,
.question-card,
.score-card,
.merit-card,
.answer-review {
  background: var(--white);
  border: 1px solid rgba(11, 42, 102, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(11, 42, 102, 0.08);
}

.question-palette-wrap {
  position: sticky;
  top: 76px;
  order: 2;
  align-self: start;
  max-height: calc(100vh - 94px);
  overflow: auto;
  padding: 0 0 16px;
  background: linear-gradient(180deg, #e8f7ff 0%, #f2fbf6 100%);
  border-radius: 8px;
  border-color: rgba(14, 165, 233, 0.18);
}

.question-stage {
  order: 1;
  min-height: calc(100vh - 94px);
}

.candidate-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #dff7ff, #dcfce7);
  border-bottom: 1px solid rgba(11, 42, 102, 0.08);
}

.candidate-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #ffffff;
  background: #497be8;
  font-size: 11px;
  font-weight: 900;
}

.palette-head,
.question-head,
.question-actions,
.merit-row,
.score-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.palette-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  padding: 10px 16px;
  color: #1f2937;
  font-size: 12px;
}

.palette-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 22px;
  border-radius: 999px;
}

.legend-dot.attempted,
.palette-btn.attempted {
  background: #1f9d55;
}

.legend-dot.review,
.palette-btn.review {
  background: #f59e0b;
}

.legend-dot.skipped,
.palette-btn.skipped {
  background: #64748b;
}

.legend-dot.remaining,
.palette-btn.remaining {
  background: #ffffff;
}

.legend-dot.remaining {
  border: 1px solid #111827;
}

.palette-head {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(11, 42, 102, 0.06);
  border-bottom: 1px solid rgba(11, 42, 102, 0.08);
}

.palette-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 4px;
}

.question-palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px 16px;
}

.palette-btn {
  min-height: 30px;
  border: 1px solid rgba(15, 23, 42, 0.62);
  border-radius: 6px;
  color: #111827;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.palette-btn.attempted,
.palette-btn.review,
.palette-btn.skipped {
  color: var(--white);
}

.palette-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  border-color: #0f766e;
  outline: 3px solid rgba(14, 165, 233, 0.22);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.24);
}

.question-card {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 94px);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(11, 42, 102, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.14);
  background: rgba(255, 255, 255, 0.82);
}

.question-head {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(11, 42, 102, 0.09);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9));
}

.question-head span {
  display: block;
  color: var(--gold-700);
  font-size: 12px;
  font-weight: 900;
}

.question-head strong {
  color: var(--navy-900);
  font-size: 15px;
}

.mark-review {
  border: 1px solid rgba(217, 119, 6, 0.34);
  border-radius: 8px;
  padding: 9px 12px;
  color: #7c2d12;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.mark-review:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 119, 6, 0.58);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.16);
}

.skip-action {
  color: #334155;
  background: #e2e8f0;
  border-color: #a8b4c4;
  box-shadow: 0 7px 15px rgba(71, 85, 105, 0.1);
}

.skip-action:hover {
  color: #0f172a;
  background: #cbd5e1;
  border-color: #7f8da1;
  box-shadow: 0 9px 18px rgba(71, 85, 105, 0.14);
}

.question-text-panel {
  min-height: 92px;
  margin: 14px 16px 8px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-left: 6px solid #0f766e;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(11, 42, 102, 0.08);
}

.question-text-panel p {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.38;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 6px 16px 72px;
}

.option-choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid rgba(11, 42, 102, 0.1);
  border-left: 4px solid transparent;
  border-radius: 8px;
  color: #111827;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 7px 15px rgba(11, 42, 102, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.option-choice:hover {
  transform: translateX(2px);
  background: #ffffff;
  border-color: rgba(14, 165, 233, 0.28);
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.12);
}

.option-choice input {
  position: absolute;
  opacity: 0;
}

.option-choice span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid #6b7280;
}

.option-choice strong {
  color: inherit;
  font-size: 15px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.option-choice.selected {
  color: #111827;
  background: linear-gradient(90deg, #dcfce7, #e0f2fe);
  border-color: rgba(14, 165, 233, 0.4);
  border-left-color: #0f766e;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.14);
}

.option-choice.selected span {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
}

.question-actions {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid rgba(11, 42, 102, 0.1);
  background: rgba(248, 252, 255, 0.98);
  box-shadow: 0 -12px 28px rgba(11, 42, 102, 0.08);
  backdrop-filter: blur(12px);
}

.question-action-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.submit-action {
  min-width: 132px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  border-color: rgba(8, 145, 178, 0.26);
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.18);
}

.submit-action:hover {
  background: linear-gradient(135deg, #0d5f59, #0e7490);
  box-shadow: 0 16px 30px rgba(8, 145, 178, 0.24);
}

#prev-question {
  min-width: 112px;
}

#next-question {
  min-width: 140px;
  background: linear-gradient(135deg, #15803d, #1f9d55);
  border-color: rgba(31, 157, 85, 0.28);
  box-shadow: 0 13px 24px rgba(31, 157, 85, 0.2);
}

#next-question:hover {
  background: linear-gradient(135deg, #166534, #168a49);
  box-shadow: 0 16px 30px rgba(31, 157, 85, 0.25);
}

.result-shell {
  min-height: calc(100vh - 64px);
  background: linear-gradient(135deg, #dff7ff 0%, #edfdf4 46%, #fff3dc 100%);
}

.result-layout {
  display: grid;
  gap: 14px;
  padding-top: 24px;
  padding-bottom: 48px;
}

.score-card,
.merit-card,
.answer-review {
  padding: 20px;
}

.result-shell .score-card,
.result-shell .merit-card,
.result-shell .answer-review {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(11, 42, 102, 0.14);
  box-shadow: 0 18px 42px rgba(11, 42, 102, 0.12);
}

.result-shell .score-card {
  background:
    radial-gradient(circle at 94% 8%, rgba(14, 165, 233, 0.14), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #eaf8ff 100%);
  border-top: 5px solid #0ea5e9;
}

.result-shell .merit-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff8df 100%);
  border-top: 5px solid #f0a300;
}

.result-shell .answer-review {
  background: linear-gradient(135deg, #ffffff 0%, #eefdf7 100%);
  border-top: 5px solid #0f9f8a;
}

.score-number {
  color: #0f766e;
  font-size: clamp(42px, 6vw, 54px);
  line-height: 0.95;
  font-weight: 900;
}

#score-detail {
  display: grid;
  gap: 6px;
}

.score-detail-main,
.score-detail-meta {
  display: block;
}

.score-detail-main {
  color: #0b2a66;
  font-weight: 850;
}

.score-detail-meta {
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 800;
}

.score-detail-meta strong {
  color: #0f766e;
}

.score-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.score-stats span {
  display: grid;
  gap: 2px;
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.16);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.08);
  color: var(--slate-600);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.score-stats span strong {
  color: var(--navy-900);
  font-size: 18px;
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.result-actions .btn {
  width: 100%;
  min-height: 44px;
  padding-inline: 12px;
}

.result-retry-action {
  color: #ffffff;
  background: #168a49;
  border-color: #168a49;
}

.result-retry-action:hover {
  color: #ffffff;
  background: #126f3d;
  border-color: #126f3d;
}

.result-retry-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.result-sync-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.result-sync-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #168a49;
}

.result-sync-state.demo::before {
  background: #d97706;
}

.rank-line {
  margin-bottom: 12px;
  padding: 10px 12px;
  color: #0b2a66;
  background: #e9f8ff;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.45;
}

.merit-list {
  display: grid;
  gap: 8px;
}

.merit-row {
  position: relative;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fbff;
  border: 1px solid rgba(11, 42, 102, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.merit-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(11, 42, 102, 0.1);
}

.merit-row.special-achiever {
  background: linear-gradient(90deg, #fff7db 0%, #ecfeff 100%);
  border-color: rgba(240, 163, 0, 0.42);
  box-shadow: 0 10px 22px rgba(240, 163, 0, 0.12);
}

.merit-row span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy-900);
  font-weight: 900;
}

.merit-row.special-achiever span {
  color: #ffffff;
  background: linear-gradient(135deg, #f0a300 0%, #0f766e 100%);
}

.merit-person {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.merit-row strong {
  color: var(--navy-900);
  overflow-wrap: anywhere;
}

.merit-person small {
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.35;
}

.merit-row.special-achiever .merit-person small {
  color: #9a5a00;
}

.merit-row em {
  color: var(--gold-700);
  font-style: normal;
  font-weight: 900;
}

.answer-review > div:last-child,
#answer-review {
  display: grid;
  gap: 10px;
}

.review-ranges {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.result-mode-tabs,
.result-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.result-mode-tabs {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(11, 42, 102, 0.12);
}

.result-mode-tab {
  min-height: 42px;
  padding: 9px 15px;
  color: #4b5d75;
  background: #f8fbff;
  border: 1px solid rgba(11, 42, 102, 0.14);
  border-radius: 7px;
  font-weight: 900;
  white-space: nowrap;
}

.result-mode-tab:hover,
.result-mode-tab:focus-visible {
  color: #0b2a66;
  border-color: rgba(11, 42, 102, 0.34);
}

.result-mode-tab.active {
  color: #ffffff;
  background: #0b2a66;
  border-color: #0b2a66;
}

.verified-merit-details {
  border: 1px solid rgba(240, 163, 0, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.verified-merit-details summary {
  cursor: pointer;
  padding: 11px 13px;
  color: #0b2a66;
  font-weight: 900;
}

.verified-merit-list {
  display: grid;
  gap: 8px;
  max-height: 390px;
  overflow: auto;
  padding: 0 10px 10px;
}

@media (min-width: 900px) {
  .result-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .result-shell .score-card {
    grid-column: span 7;
  }

  .result-shell .merit-card {
    grid-column: span 5;
  }

  .result-shell .answer-review {
    grid-column: 1 / -1;
  }
}

.revision-vault {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 8%, rgba(45, 212, 191, 0.22), transparent 28%),
    linear-gradient(135deg, #081f4d 0%, #123b72 54%, #0f766e 135%);
  box-shadow: 0 20px 44px rgba(11, 42, 102, 0.18);
}

.revision-vault.is-essential {
  border-color: rgba(20, 184, 166, 0.3);
  background:
    radial-gradient(circle at 92% 8%, rgba(96, 165, 250, 0.2), transparent 28%),
    linear-gradient(135deg, #082852 0%, #0f5f6c 62%, #0f766e 120%);
}

.revision-vault.is-advanced {
  border-color: rgba(240, 163, 0, 0.28);
  background:
    radial-gradient(circle at 92% 8%, rgba(251, 191, 36, 0.2), transparent 28%),
    linear-gradient(135deg, #071f46 0%, #123b72 56%, #0f766e 130%);
}

.revision-vault::after {
  position: absolute;
  right: -58px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 24px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.revision-vault-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  color: #ffffff;
}

.revision-vault-head small,
.study-panel-kicker {
  display: block;
  margin-bottom: 5px;
  color: #99f6e4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.revision-vault-head h3,
.study-panel-title h3 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.15;
}

.revision-vault-head p,
.study-panel-title p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  line-height: 1.45;
}

.vault-sequence {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #dffdfa;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.vault-sequence b {
  margin: 0 3px;
  color: #fde68a;
}

.revision-vault-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.revision-vault-tabs.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.revision-vault-tabs.is-single .revision-tab {
  max-width: 680px;
}

.revision-suite-proof {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.revision-suite-proof span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 900;
}

.revision-upgrade-note {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.revision-upgrade-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: #5b1738;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 900;
}

.revision-upgrade-note div {
  display: grid;
  gap: 2px;
}

.revision-upgrade-note small {
  color: #fde68a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.revision-upgrade-note strong {
  font-size: 14px;
}

.revision-upgrade-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.revision-upgrade-note a {
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #082852;
  background: #ffffff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.answer-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(11, 42, 102, 0.1);
  border-radius: 10px;
  background: #f8fbff;
}

.answer-filter-bar > span {
  color: #51627a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(11, 42, 102, 0.15);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--navy-900);
  background: #f8fbff;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.review-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 42, 102, 0.28);
  box-shadow: 0 8px 18px rgba(11, 42, 102, 0.1);
}

.review-tab:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.38);
  outline-offset: 3px;
}

.review-tab strong {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(11, 42, 102, 0.1);
}

.review-tab.correct.active {
  color: #ffffff;
  background: #15803d;
}

.review-tab.wrong.active {
  color: #ffffff;
  background: #dc2626;
}

.review-tab.skip.active,
.review-tab.unattempted.active {
  color: #ffffff;
  background: #d97706;
}

.review-tab.one-liner.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.review-tab.exam-traps.active {
  color: #ffffff;
  background: linear-gradient(135deg, #8a254f, #d97706);
}

.review-tab.retry-wrong.active {
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #b45309);
}

.review-tab.history.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0b2a66, #0f766e);
}

.review-tab.active strong {
  color: #111827;
  background: #ffffff;
}

.revision-tab {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 92px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  text-align: left;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.revision-tab:hover {
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 14px 28px rgba(3, 18, 48, 0.24);
}

.revision-tab.one-liner {
  border-color: rgba(153, 246, 228, 0.26);
  background: rgba(15, 118, 110, 0.12);
}

.revision-tab.exam-traps {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.1);
}

.revision-tab.one-liner.active {
  color: #09265a;
  border-color: rgba(153, 246, 228, 0.8);
  background: linear-gradient(135deg, #ffffff 0%, #dffdfa 100%);
  box-shadow: 0 14px 28px rgba(3, 18, 48, 0.22);
}

.revision-tab.exam-traps.active {
  color: #5b1738;
  border-color: rgba(254, 215, 170, 0.9);
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  box-shadow: 0 14px 28px rgba(3, 18, 48, 0.22);
}

.review-tab-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.revision-tab.one-liner.active .review-tab-icon {
  border-color: transparent;
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.revision-tab.exam-traps.active .review-tab-icon {
  border-color: transparent;
  background: linear-gradient(135deg, #8a254f, #d97706);
}

.review-tab-copy {
  display: grid;
  gap: 2px;
}

.review-tab-copy small {
  color: #99f6e4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.revision-tab.exam-traps .review-tab-copy small {
  color: #fed7aa;
}

.revision-tab.active .review-tab-copy small {
  color: #0f766e;
}

.revision-tab.exam-traps.active .review-tab-copy small {
  color: #be123c;
}

.review-tab-copy > span {
  font-size: 16px;
  font-weight: 900;
}

.review-tab-copy em {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.revision-tab.active .review-tab-copy em {
  color: #51627a;
}

.revision-tab > strong {
  display: grid;
  place-items: center;
  align-self: start;
  min-width: 34px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.revision-tab.active > strong {
  color: #111827;
  background: #ffffff;
}

.range-btn {
  border: 1px solid rgba(11, 42, 102, 0.15);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--navy-900);
  background: #f8fbff;
  font-weight: 900;
  cursor: pointer;
}

.range-btn.active {
  color: var(--white);
  background: var(--navy-900);
}

.answer-row {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #f8fbff;
  border-left: 5px solid #dce5f1;
}

.answer-empty {
  padding: 18px;
  border: 1px dashed rgba(11, 42, 102, 0.22);
  border-radius: 8px;
  color: var(--slate-600);
  background: #f8fbff;
  font-weight: 800;
}

.answer-row summary::-webkit-details-marker {
  display: none;
}

.answer-summary {
  display: grid;
  grid-template-columns: 58px 112px minmax(0, 1fr) minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  color: #111827;
  cursor: pointer;
  list-style: none;
}

.answer-summary > strong {
  color: var(--navy-900);
}

.answer-status {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.answer-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  font-size: 12px;
  font-weight: 900;
  transition: transform 0.18s ease;
}

.answer-row[open] .answer-toggle {
  transform: rotate(180deg);
}

.study-panel {
  display: grid;
  gap: 16px;
}

.study-panel-hero {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 16px;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(11, 42, 102, 0.16);
}

.study-panel-hero::after {
  position: absolute;
  right: -34px;
  bottom: -56px;
  width: 150px;
  height: 150px;
  border: 20px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.one-liner-panel .study-panel-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(45, 212, 191, 0.3), transparent 30%),
    linear-gradient(135deg, #09265a 0%, #155e75 55%, #0f766e 100%);
}

.traps-panel .study-panel-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(251, 191, 36, 0.2), transparent 30%),
    linear-gradient(135deg, #4b1738 0%, #8a254f 54%, #b45309 115%);
}

.study-panel-title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.study-panel-title strong {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.study-topic-line {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.12);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.study-mode-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.study-mode-button,
.flashcard-actions button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(11, 42, 102, 0.14);
  border-radius: 8px;
  color: var(--navy-900);
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.study-mode-button.active,
.flashcard-actions button:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.14);
}

.flashcard-deck {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #ecfdf5 100%);
  box-shadow: 0 14px 30px rgba(11, 42, 102, 0.09);
}

.flashcard-deck[hidden],
.study-list-view[hidden] {
  display: none;
}

.trap-flashcard-deck {
  border-color: rgba(190, 18, 60, 0.14);
  background: linear-gradient(145deg, #ffffff 0%, #fff7ed 100%);
}

.flashcard-card {
  display: grid;
  gap: 14px;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(11, 42, 102, 0.12);
  border-radius: 12px;
  background: #ffffff;
  align-content: center;
}

.flashcard-meta,
.flashcard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.flashcard-meta span,
.flashcard-hint {
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flashcard-meta strong,
.flashcard-counter {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--navy-900);
  font-size: 12px;
  font-weight: 900;
}

.flashcard-card p {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.flashcard-hint {
  color: #b45309;
  letter-spacing: 0.02em;
  text-transform: none;
}

.retry-deck,
.attempt-history-panel {
  display: grid;
  gap: 14px;
}

.retry-deck-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(11, 42, 102, 0.12);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.retry-deck-head small {
  display: block;
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.retry-deck-head h3,
.retry-deck-head p {
  margin: 0;
}

.retry-deck-head h3 {
  margin-top: 4px;
  color: var(--navy-900);
  font-size: 24px;
  line-height: 1.15;
}

.retry-deck-head p {
  margin-top: 5px;
  color: var(--slate-600);
  font-weight: 750;
}

.retry-deck-head > strong {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: #dc2626;
  font-size: 12px;
}

.retry-card-list,
.attempt-history-list {
  display: grid;
  gap: 12px;
}

.retry-card,
.attempt-history-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(11, 42, 102, 0.12);
  border-left: 5px solid #dc2626;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(11, 42, 102, 0.08);
}

.retry-question-head {
  display: grid;
  gap: 8px;
}

.retry-question-head span {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #991b1b;
  background: #fee2e2;
  font-size: 12px;
  font-weight: 900;
}

.retry-question-head strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
}

.retry-options {
  display: grid;
  gap: 8px;
}

.retry-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid rgba(11, 42, 102, 0.12);
  border-radius: 8px;
  background: #f8fbff;
  color: #111827;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.retry-options button span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.3);
  font-weight: 900;
}

.retry-options button.is-correct {
  border-color: rgba(15, 118, 110, 0.32);
  background: #ecfdf5;
}

.retry-options button.is-correct span {
  color: #ffffff;
  border-color: transparent;
  background: #0f766e;
}

.retry-options button.is-wrong {
  border-color: rgba(220, 38, 38, 0.32);
  background: #fef2f2;
}

.retry-feedback {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fbff;
  border: 1px solid rgba(11, 42, 102, 0.1);
}

.retry-feedback strong {
  color: var(--navy-900);
}

.retry-feedback span {
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.attempt-history-row {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  border-left-color: #0f766e;
}

.attempt-history-row > div {
  display: grid;
  place-items: center;
  min-height: 74px;
  border-radius: 10px;
  background: #ecfdf5;
}

.attempt-history-row > div strong {
  color: #0f5132;
  font-size: 22px;
  line-height: 1;
}

.attempt-history-row > div span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.attempt-history-row p {
  margin: 0;
  display: grid;
  gap: 4px;
}

.attempt-history-row b {
  color: var(--navy-900);
}

.attempt-history-row small {
  color: var(--slate-600);
  font-weight: 800;
}

.one-liner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.one-liner-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  overflow: hidden;
  min-height: 98px;
  padding: 14px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff 0%, #eafcf8 100%);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.09);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.one-liner-card::after {
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 74px;
  height: 74px;
  border: 12px solid rgba(15, 118, 110, 0.05);
  border-radius: 999px;
  content: "";
}

.one-liner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.4);
  box-shadow: 0 16px 30px rgba(11, 42, 102, 0.13);
}

.one-liner-card:nth-child(3n + 2) {
  background: linear-gradient(145deg, #ffffff 0%, #edf4ff 100%);
  border-color: rgba(37, 99, 235, 0.2);
}

.one-liner-card:nth-child(3n) {
  background: linear-gradient(145deg, #ffffff 0%, #fff7e8 100%);
  border-color: rgba(217, 119, 6, 0.22);
}

.recall-number,
.trap-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.18);
}

.recall-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
}

.recall-copy small {
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.one-liner-card:nth-child(3n + 2) .recall-copy small {
  color: #2563eb;
}

.one-liner-card:nth-child(3n) .recall-copy small {
  color: #b45309;
}

.one-liner-card p,
.trap-copy p {
  margin: 0;
  color: #111827;
  font-weight: 800;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.trap-list {
  display: grid;
  gap: 12px;
}

.trap-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 0.9fr) 30px minmax(0, 1.1fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(190, 18, 60, 0.16);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(11, 42, 102, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.trap-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(11, 42, 102, 0.13);
}

.trap-card:nth-child(even) {
  background: linear-gradient(135deg, #ffffff, #f5fbff);
}

.trap-number {
  align-self: start;
  background: linear-gradient(135deg, #be123c, #d97706);
  box-shadow: 0 8px 16px rgba(190, 18, 60, 0.18);
}

.trap-shift {
  display: grid;
  place-items: center;
  align-self: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #0f766e;
  background: #dffdfa;
  font-weight: 900;
}

.trap-copy {
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 12px 14px;
  border-radius: 10px;
}

.trap-copy small {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trap-warning {
  background: linear-gradient(145deg, #fff8f8, #fff0e8);
  border-left: 4px solid #be123c;
}

.trap-warning small {
  color: #be123c;
}

.trap-correct {
  background: linear-gradient(145deg, #f2fffb, #e5f8f4);
  border-left: 4px solid #0f766e;
}

.trap-correct small {
  color: #0f766e;
}

.answer-detail {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(11, 42, 102, 0.1);
  background: #ffffff;
}

.review-question {
  color: var(--navy-900);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.review-options {
  display: grid;
  gap: 8px;
}

.review-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(11, 42, 102, 0.1);
  border-left: 4px solid transparent;
  border-radius: 8px;
  background: #f8fbff;
}

.review-option span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.3);
  font-weight: 900;
}

.review-option strong {
  overflow-wrap: anywhere;
}

.review-option.selected {
  border-color: rgba(245, 158, 11, 0.45);
  border-left-color: #f59e0b;
  background: #fff7ed;
}

.review-option.key {
  border-color: rgba(15, 118, 110, 0.32);
  border-left-color: #0f766e;
  background: #ecfdf5;
}

.review-option.key span {
  color: #ffffff;
  background: #0f766e;
  border-color: transparent;
}

.answer-row.correct {
  border-left-color: #1f9d55;
}

.answer-row.correct .answer-status {
  color: #166534;
  background: #dcfce7;
}

.answer-row.wrong {
  border-left-color: #dc2626;
}

.answer-row.wrong .answer-status {
  color: #991b1b;
  background: #fee2e2;
}

.answer-row.deleted {
  border-left-color: #7c3aed;
}

.answer-row.deleted .answer-status {
  color: #5b21b6;
  background: #ede9fe;
}

.answer-row.unattempted {
  border-left-color: #f59e0b;
}

.answer-row.unattempted .answer-status {
  color: #92400e;
  background: #fef3c7;
}

.answer-remark {
  margin: 0;
  color: var(--slate-600);
  font-size: 13px;
}

.answer-remark.explanation {
  padding: 10px 12px;
  color: #164e63;
  background: #ecfeff;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-left: 4px solid #0ea5e9;
  border-radius: 8px;
  line-height: 1.45;
}

.answer-remark.explanation strong {
  color: #0b2a66;
}

.answer-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding-top: 2px;
}

.answer-detail-actions span {
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 700;
}

.question-report-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(11, 42, 102, 0.16);
  border-radius: 8px;
  color: #0b2a66;
  background: #eef6ff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.question-report-btn:hover,
.question-report-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.42);
  box-shadow: 0 8px 18px rgba(11, 42, 102, 0.1);
  outline: none;
}

.question-report-btn:disabled {
  cursor: default;
  transform: none;
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.2);
  background: #f1f5f9;
  box-shadow: none;
}

.question-report-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 9px;
  width: 100%;
}

.question-report-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(11, 42, 102, 0.12);
  border-radius: 8px;
  color: #1e3a5f;
  background: #f8fbff;
}

.question-report-state strong,
.question-report-state small {
  font-size: 11px;
  line-height: 1.2;
}

.question-report-state small {
  color: #64748b;
  font-weight: 800;
}

.question-report-state.reviewed {
  color: #8a4b00;
  border-color: rgba(202, 138, 4, 0.22);
  background: #fff9e8;
}

.question-report-state.closed {
  color: #047857;
  border-color: rgba(4, 120, 87, 0.2);
  background: #ecfdf5;
}

.question-report-resolution {
  flex: 1 1 280px;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.question-report-dialog {
  width: min(calc(100% - 30px), 520px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--navy-900);
  background: transparent;
  box-shadow: 0 28px 86px rgba(4, 16, 38, 0.32);
}

.question-report-dialog::backdrop {
  background: rgba(7, 20, 38, 0.68);
  backdrop-filter: blur(4px);
}

.question-report-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 12px;
  background: #ffffff;
}

.question-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.question-report-head span {
  display: block;
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.question-report-head h3 {
  margin: 5px 0 0;
  color: var(--navy-900);
  font-size: 24px;
  line-height: 1.1;
}

.question-report-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--slate-600);
  background: #f1f5f9;
  font-size: 22px;
  cursor: pointer;
}

.question-report-summary {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(11, 42, 102, 0.1);
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  background: #f8fbff;
}

.question-report-summary strong {
  overflow-wrap: anywhere;
}

.question-report-summary span,
.question-report-note,
.question-report-status {
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.question-report-status[data-tone="pending"] {
  color: #1d4ed8;
}

.question-report-status[data-tone="success"] {
  color: #047857;
}

.question-report-status[data-tone="error"] {
  color: #b42318;
}

.question-report-actions .btn:disabled {
  cursor: wait;
  opacity: 0.66;
}

.question-report-card label {
  display: grid;
  gap: 7px;
  color: var(--slate-600);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-report-card select,
.question-report-card textarea {
  width: 100%;
  border: 1px solid rgba(11, 42, 102, 0.16);
  border-radius: 8px;
  color: #111827;
  background: #ffffff;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.question-report-card select {
  min-height: 42px;
  padding: 0 11px;
}

.question-report-card textarea {
  min-height: 102px;
  padding: 11px;
  line-height: 1.45;
  resize: vertical;
}

.question-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.library-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.library-toolbar-main {
  display: grid;
  flex: 1;
  gap: 10px;
  min-width: 0;
}

.library-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-box {
  width: min(100%, 360px);
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: var(--white);
  outline: none;
}

.search-box:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(17, 49, 90, 0.1);
}

.library-count {
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.library-readiness-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.library-readiness-strip[hidden] {
  display: none;
}

.library-readiness-strip div {
  position: relative;
  min-height: 86px;
  padding: 13px 14px;
  overflow: hidden;
  border: 1px solid rgba(17, 49, 90, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  box-shadow: 0 12px 25px rgba(11, 42, 102, 0.06);
}

.library-readiness-strip div:nth-child(2) {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}

.library-readiness-strip div:nth-child(3) {
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

.library-readiness-strip div:nth-child(4) {
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}

.library-readiness-strip small,
.library-readiness-strip strong,
.library-readiness-strip span {
  position: relative;
  z-index: 1;
  display: block;
}

.library-readiness-strip small {
  color: #0b3a74;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-readiness-strip strong {
  margin: 5px 0 3px;
  color: var(--navy-900);
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.library-readiness-strip span {
  color: var(--slate-600);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.module-card,
.mock-card,
.info-card {
  padding: 18px;
}

.topic-list-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.topic-list-card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 88px;
  padding: 14px 16px;
  border-left: 5px solid var(--navy-800);
}

.topic-list-content {
  min-width: 0;
}

.topic-list-card.has-uploaded-test {
  border-top-color: rgba(15, 118, 110, 0.18);
  border-right-color: rgba(15, 118, 110, 0.18);
  border-bottom-color: rgba(15, 118, 110, 0.18);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.09);
}

.topic-list-card.has-upcoming-test {
  border-top-color: rgba(37, 99, 235, 0.11);
  border-right-color: rgba(37, 99, 235, 0.11);
  border-bottom-color: rgba(37, 99, 235, 0.11);
  background:
    radial-gradient(circle at 96% 16%, rgba(251, 191, 36, 0.13), transparent 24%),
    linear-gradient(90deg, #f8fbff 0%, #ffffff 56%, #fffaf0 100%);
  box-shadow: 0 10px 22px rgba(11, 42, 102, 0.055);
}

.topic-list-card:nth-child(4n + 1) {
  border-left-color: var(--navy-800);
  background: linear-gradient(90deg, #f0f7ff, var(--white) 58%);
}

.topic-list-card:nth-child(4n + 2) {
  border-left-color: var(--gold-500);
  background: linear-gradient(90deg, #fff7df, var(--white) 58%);
}

.topic-list-card:nth-child(4n + 3) {
  border-left-color: var(--green-700);
  background: linear-gradient(90deg, #edf9f2, var(--white) 58%);
}

.topic-list-card:nth-child(4n) {
  border-left-color: #7c3aed;
  background: linear-gradient(90deg, #f5f0ff, var(--white) 58%);
}

.topic-list-number {
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--white);
  border-radius: 10px;
  background: var(--navy-900);
  font-size: 13px;
  font-weight: 900;
  place-items: center;
}

.topic-list-card:nth-child(4n + 2) .topic-list-number {
  color: var(--navy-950);
  background: var(--gold-400);
}

.topic-list-card:nth-child(4n + 3) .topic-list-number {
  background: var(--green-700);
}

.topic-list-card:nth-child(4n) .topic-list-number {
  background: #7c3aed;
}

.topic-list-content h3 {
  margin: 4px 0 3px;
}

.topic-list-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.topic-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  color: #0b2a66;
  border: 1px solid rgba(11, 42, 102, 0.14);
  border-radius: 999px;
  background: rgba(248, 251, 255, 0.92);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topic-status-pill.is-ready {
  color: #064e3b;
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(236, 253, 245, 0.95);
}

.topic-status-pill.is-preparing {
  color: #7a4b00;
  border-color: rgba(180, 109, 0, 0.2);
  background: rgba(255, 251, 235, 0.95);
}

.topic-status-pill.is-locked {
  color: #7c2d12;
  border-color: rgba(124, 45, 18, 0.2);
  background: rgba(255, 237, 213, 0.92);
}

.topic-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.topic-detail-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  color: #0f3f68;
  border: 1px solid rgba(14, 116, 144, 0.18);
  border-radius: 999px;
  background: rgba(224, 242, 254, 0.72);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.topic-detail-chips span:nth-child(2) {
  color: #775000;
  border-color: rgba(180, 109, 0, 0.2);
  background: rgba(255, 247, 223, 0.85);
}

.topic-detail-chips span:nth-child(3) {
  color: #0f5132;
  border-color: rgba(22, 101, 52, 0.18);
  background: rgba(237, 249, 242, 0.85);
}

.topic-detail-chips span:nth-child(4) {
  color: #4c1d95;
  border-color: rgba(124, 58, 237, 0.18);
  background: rgba(245, 240, 255, 0.85);
}

.topic-detail-chips.is-pending span {
  color: #1e3a8a;
  border-color: rgba(37, 99, 235, 0.15);
  background: rgba(239, 246, 255, 0.92);
}

.topic-detail-chips.is-pending span:nth-child(2) {
  color: #7a4b00;
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(255, 251, 235, 0.95);
}

.topic-detail-chips.is-pending span:nth-child(3) {
  color: #14532d;
  border-color: rgba(22, 101, 52, 0.16);
  background: rgba(240, 253, 244, 0.95);
}

.topic-list-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: 142px;
  max-width: 100%;
  min-height: 44px;
  padding: 0 15px;
  color: var(--white);
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--navy-900);
  box-shadow: 0 10px 22px rgba(11, 42, 102, 0.15);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.topic-list-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topic-list-actions .topic-list-action {
  min-width: 112px;
}

.topic-list-action.is-part-two {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.2), 0 4px 10px rgba(11, 42, 102, 0.1);
}

.topic-list-action span {
  position: relative;
  z-index: 1;
}

.lock-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: currentColor;
}

.lock-icon::before {
  position: absolute;
  left: 3px;
  top: 0;
  width: 7px;
  height: 7px;
  content: "";
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.lock-icon::after {
  position: absolute;
  left: 1px;
  bottom: 0;
  width: 13px;
  height: 9px;
  content: "";
  border-radius: 3px;
  background: currentColor;
}

.topic-list-action.is-start-test {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(135deg, #0f766e 0%, #116149 48%, #f59e0b 140%);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.24), 0 4px 10px rgba(11, 42, 102, 0.1);
}

.topic-list-action.is-start-test::after {
  position: absolute;
  inset: -2px auto -2px -42%;
  width: 42%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-18deg);
  transition: left 220ms ease;
}

.topic-list-action.is-start-test:hover,
.topic-list-action.is-start-test:focus-visible {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.3), 0 6px 14px rgba(11, 42, 102, 0.14);
  transform: translateY(-2px);
}

.topic-list-action.is-start-test:hover::after,
.topic-list-action.is-start-test:focus-visible::after {
  left: 108%;
}

.topic-list-action.is-start-test:active {
  transform: translateY(0);
}

.topic-list-action-icon {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
  place-items: center;
}

.topic-list-action-icon::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  content: "";
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #0f766e;
}

.topic-list-action-arrow {
  font-size: 14px;
  transition: transform 160ms ease;
}

.topic-list-action.is-start-test:hover .topic-list-action-arrow,
.topic-list-action.is-start-test:focus-visible .topic-list-action-arrow {
  transform: translateX(2px);
}

.topic-list-action.is-pending {
  color: #0f3f68;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 251, 235, 0.96));
  border-color: rgba(37, 99, 235, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  cursor: default;
  user-select: none;
}

.topic-list-card.is-locked-topic,
.part-selector-card.is-locked-topic,
.mock-card.is-locked-topic {
  border-color: rgba(124, 45, 18, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

.topic-list-action.is-locked {
  color: #7c2d12;
  background: #ffedd5;
  border-color: rgba(124, 45, 18, 0.22);
  box-shadow: none;
}

.topic-list-action.is-locked:hover,
.topic-list-action.is-locked:focus-visible,
.locked-inline-link:hover,
.locked-inline-link:focus-visible {
  color: #431407;
  background: #fed7aa;
}

.topic-coverage-note {
  display: grid;
  gap: 13px;
  padding: 20px 22px;
  border-color: rgba(37, 99, 235, 0.16);
  border-left: 5px solid #2563eb;
  background:
    radial-gradient(circle at 92% 8%, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 52%, #ecfdf5 100%);
  box-shadow: 0 16px 34px rgba(11, 31, 58, 0.09);
}

.coverage-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.coverage-note-head span {
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coverage-note-head strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, #0b2a66, #0f766e);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.topic-coverage-note h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 22px;
  line-height: 1.2;
}

.topic-coverage-note p {
  max-width: 920px;
  margin: 0;
  color: var(--slate-700);
  font-size: 14px;
  line-height: 1.65;
}

.coverage-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.coverage-topic-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: var(--navy-800);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 14px rgba(11, 31, 58, 0.06);
  font-size: 12px;
  font-weight: 900;
}

.topic-list-card.is-demo-topic,
.mock-card.is-demo-topic {
  border-color: rgba(15, 118, 110, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

a.topic-list-action.is-pending:hover,
a.topic-list-action.is-pending:focus-visible {
  color: #0b2a66;
  background: #ffffff;
  border-color: rgba(11, 42, 102, 0.2);
}

.topic-list-action:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.36);
  outline-offset: 3px;
}

.part-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.part-selector-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.part-selector-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  border-top: 4px solid #0f766e;
}

.part-selector-card.is-part-two {
  border-top-color: #1d4ed8;
}

.part-selector-card h3 {
  margin: 4px 0 0;
  color: var(--navy-900);
  font-size: 24px;
  line-height: 1.15;
}

.part-selector-card p {
  margin: 0 0 12px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.6;
}

.part-selector-card .topic-list-action {
  justify-self: start;
  min-width: 154px;
  margin-top: auto;
}

@media (prefers-reduced-motion: reduce) {
  .topic-list-action,
  .topic-list-action::after,
  .topic-list-action-arrow {
    transition: none;
  }
}

.module-card h3,
.mock-card h3,
.info-card h3 {
  margin: 11px 0 4px;
  color: var(--navy-900);
  font-size: 15px;
}

.module-number {
  color: #b46d00;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-footer,
.mock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--slate-200);
}

.status {
  padding: 4px 7px;
  color: #8d5800;
  border-radius: 4px;
  background: var(--gold-100);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.disabled-link {
  color: var(--slate-600);
  font-size: 11px;
  font-weight: 800;
}

.locked-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  color: #7c2d12;
  border-radius: 999px;
  background: #ffedd5;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 19px;
}

.filter-button {
  min-height: 44px;
  padding: 0 14px;
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: var(--white);
  font-size: 11px;
  font-weight: 900;
}

.filter-button span {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 999px;
  color: #334155;
  background: #eef2f7;
  font-size: 10px;
  place-items: center;
}

.filter-button.active {
  color: var(--white);
  border-color: var(--navy-900);
  background: var(--navy-900);
}

.filter-button.active span {
  color: #0b2a66;
  background: #fbbf24;
}

.library-empty-state {
  margin: 8px 0 22px;
  padding: 24px;
  border: 1px dashed rgba(100, 116, 139, 0.4);
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
}

.library-empty-state strong {
  color: var(--navy-900);
}

.library-empty-state p {
  margin: 5px 0 0;
  color: var(--slate-600);
}

.back-row {
  margin-top: 26px;
}

.package-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.enroll-legal-note {
  margin: 14px 0 0;
  padding: 12px;
  max-width: 100%;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  color: var(--slate-600);
  background: #ecfdf5;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.enroll-legal-note a {
  color: #0f766e;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.legal-hero .hero-inner {
  align-items: stretch;
}

.legal-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
}

.legal-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy-900);
  font-size: 13px;
}

.legal-toc a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 800;
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-card {
  padding: 24px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.legal-card h2 {
  margin: 0 0 10px;
  color: var(--navy-900);
  font-size: 21px;
}

.legal-card p {
  margin: 9px 0 0;
  color: var(--slate-700);
  font-size: 14px;
  line-height: 1.72;
}

.legal-card a {
  color: #0f766e;
  font-weight: 900;
}

.legal-warning-card {
  border-left: 6px solid #f59e0b;
  background: #fffbeb;
}

.contact-detail-card {
  border-left: 6px solid #0f766e;
}

.inner-footer {
  color: rgba(255, 255, 255, 0.68);
  background: var(--navy-950);
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 34px;
  padding: 38px 0 28px;
}

.inner-footer h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inner-footer p,
.inner-footer a,
.inner-footer span {
  display: block;
  margin: 7px 0 0;
  font-size: 12px;
}

.inner-footer .footer-bottom #current-year {
  display: inline;
  margin: 0;
  font-size: inherit;
}

.footer-status-list {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.footer-status-list span {
  margin: 0;
  line-height: 1.45;
}

.inner-footer a:hover {
  color: var(--gold-400);
}

.inner-footer .footer-community-link,
.inline-whatsapp-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inner-footer .footer-community-link span,
.inline-whatsapp-link span {
  display: inline;
  margin: 0;
}

.inner-footer .footer-community-link svg,
.inline-whatsapp-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.inner-footer .telegram-link svg {
  color: #73bfe2;
}

.inner-footer .whatsapp-link svg,
.inline-whatsapp-link svg {
  color: #35a36f;
}

.inline-whatsapp-link {
  width: fit-content;
  font-weight: 800;
}

.retry-explanation[hidden] {
  display: none !important;
}

.footer-bottom {
  min-height: 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

@media (max-width: 920px) {
  .inner-menu {
    gap: 15px;
  }

  .inner-account-toggle {
    padding-right: 8px;
  }

  .inner-account-label {
    max-width: 74px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-side-card {
    max-width: 620px;
  }

  .inner-premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .resource-grid,
  .module-grid,
  .mock-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-list-grid {
    grid-template-columns: 1fr;
  }

  .package-feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .package-explore-head {
    align-items: flex-start;
    flex-direction: column;
  }

  #package-detail .category-card {
    min-height: 286px;
  }

  .checkout-hero .hero-inner,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-side-rail {
    position: static;
  }

  .checkout-course-strip,
  .payment-method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trap-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .trap-copy {
    grid-column: 2;
  }

  .trap-shift {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 64px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .topline-inner {
    min-height: 39px;
    font-size: 9px;
  }

  .topline-inner a {
    display: none;
  }

  .inner-nav {
    min-height: 74px;
    gap: 8px;
  }

  .brand img {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .brand strong {
    gap: 5px;
    font-size: 15px;
    letter-spacing: 0.035em;
  }

  .brand small {
    font-size: 8px;
    gap: 5px;
    letter-spacing: 0.1em;
  }

  .brand small::before,
  .brand small::after {
    width: 12px;
    flex-basis: 12px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .inner-account-toggle {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }

  .inner-account-label,
  .inner-account-chevron {
    display: none;
  }

  .inner-account-submenu {
    width: min(282px, calc(100vw - 32px));
  }

  .inner-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--slate-200);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 180ms ease;
  }

  .inner-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .inner-menu a {
    padding: 13px 16px;
    border-bottom: 1px solid var(--slate-200);
  }

  .inner-nav > .btn {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 38px;
    padding-bottom: 42px;
    grid-template-columns: minmax(0, 1fr);
    width: min(calc(100% - 32px), var(--container));
    max-width: 100%;
  }

  .inner-hero h1 {
    max-width: 100%;
    font-size: 26px;
    letter-spacing: 0;
    line-height: 1.14;
  }

  .inner-hero p {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .hero-chip {
    display: block;
    max-width: 100%;
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .hero-chips {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .page-main {
    padding: 58px 0 70px;
  }

  .inner-premium-strip {
    margin-top: 0;
    padding: 18px 0 0;
  }

  .inner-premium-grid,
  .package-metric-row {
    grid-template-columns: 1fr;
  }

  .inner-premium-grid div {
    min-height: 0;
  }

  .route-panel,
  .study-route-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .route-panel a,
  .study-route-panel a {
    width: 100%;
  }

  #package-detail .page-main {
    padding-bottom: 118px;
  }

  .syllabus-download-item {
    gap: 9px;
    padding: 11px 13px;
  }

  .syllabus-download-item strong {
    font-size: 12px;
  }

  .syllabus-download-item span:not(.syllabus-download-mark) {
    display: none;
  }

  .paper-grid,
  .package-grid,
  .category-grid,
  .resource-grid,
  .module-grid,
  .mock-grid,
  .info-grid,
  .split-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .package-feature-strip,
  .enroll-actions {
    grid-template-columns: 1fr;
  }

  .package-feature-strip div {
    min-height: 96px;
  }

  .coming-books-card {
    min-height: 0;
    padding: 18px;
  }

  .coming-books-card h3,
  .coming-books-card p {
    max-width: 100%;
  }

  .premium-book-showcase {
    min-height: 230px;
    margin: 14px 0 12px;
    border-radius: 12px;
  }

  .is-mystery-books::before {
    right: 0;
    bottom: -58px;
    width: 150px;
    height: 150px;
  }

  .premium-book-showcase::before {
    right: 0;
    left: 0;
  }

  .book-stack {
    bottom: 28px;
    width: 38%;
    min-width: 92px;
    max-width: 118px;
    height: 170px;
  }

  .book-stack-mcq {
    left: 18px;
    transform: rotateY(-10deg) rotateZ(-5deg);
  }

  .book-stack-study {
    right: 18px;
    transform: rotateY(10deg) rotateZ(5deg);
  }

  .available-soon-ribbon {
    right: 10px;
    left: 10px;
    gap: 6px;
  }

  .available-soon-ribbon strong {
    padding: 7px 10px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .available-soon-ribbon::before {
    right: 0;
    left: 0;
  }

  .coming-book-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head-link {
    width: 100%;
  }

  #package-detail .category-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #package-detail .category-card,
  #package-detail .category-card-pyq,
  #package-detail .package-study-material-card {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 18px;
  }

  #package-detail .package-study-material-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #package-detail .package-study-material-visual,
  #package-detail .package-study-material-visual img {
    min-height: 180px;
  }

  #package-detail .category-topline {
    align-items: flex-start;
  }

  #package-detail .category-symbol {
    width: 48px;
    height: 48px;
  }

  #package-detail .category-kicker {
    max-width: 160px;
    white-space: normal;
    text-align: right;
  }

  #package-detail .category-card h3 {
    font-size: 22px;
  }

  #package-detail .category-metrics {
    gap: 10px;
  }

  .enroll-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .floating-enroll-bar {
    right: 0;
    bottom: 0;
    left: 0;
    align-items: center;
    flex-direction: row;
    width: 100%;
    padding: 8px 12px;
    border-radius: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .floating-enroll-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .floating-enroll-bar div {
    display: none;
  }

  .floating-enroll-bar .btn {
    width: 100%;
    min-height: 44px;
  }

  .checkout-main-card,
  .checkout-side-rail {
    padding: 18px;
  }

  .checkout-stepper,
  .checkout-course-strip,
  .checkout-form-grid,
  .payment-method-grid,
  .gateway-choice-grid,
  .manual-payment-grid,
  .manual-payment-entry {
    grid-template-columns: 1fr;
  }

  .checkout-stepper div,
  .payment-method-grid label,
  .gateway-choice-grid label {
    min-height: auto;
  }

  .manual-payment-head {
    flex-direction: column;
  }

  .manual-payment-head > strong {
    width: 100%;
    text-align: center;
  }

  .checkout-section-title h2,
  .checkout-side-rail h2 {
    font-size: 24px;
  }

  .checkout-price-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .coupon-control {
    grid-template-columns: 1fr;
  }

  .coupon-control .btn {
    width: 100%;
  }

  .payment-actions .btn {
    width: 100%;
  }

  .topic-list-card {
    grid-template-columns: 40px 1fr;
  }

  .topic-list-action {
    grid-column: 2;
    width: min(100%, 180px);
    min-width: 0;
  }

  .topic-list-actions {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
  }

  .topic-list-actions .topic-list-action {
    grid-column: auto;
    width: 100%;
  }

  .topic-coverage-note {
    padding: 16px;
  }

  .coverage-note-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topic-coverage-note h3 {
    font-size: 20px;
  }

  .coverage-topic-chips span {
    width: 100%;
  }

  .part-selector-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .part-selector-card {
    min-height: 190px;
  }

  .part-selector-card .topic-list-action {
    width: min(100%, 220px);
  }

  .content-block,
  .split-grid {
    margin-top: 43px;
  }

  .library-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .library-toolbar-main,
  .search-box {
    width: 100%;
  }

  .library-filter-group {
    flex-wrap: wrap;
    padding: 2px 2px 6px;
    overflow-x: visible;
  }

  .filter-button {
    flex: 0 1 auto;
  }

  .library-count {
    text-align: left;
  }

  .library-readiness-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-readiness-strip div {
    min-height: 82px;
  }

  .footer-main {
    gap: 20px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 62px;
  }

  .test-start-card,
  .test-layout {
    grid-template-columns: 1fr;
  }

  .test-start-card {
    padding: 18px;
    width: 100%;
    max-width: calc(100vw - 32px);
    overflow: hidden;
  }

  .test-start-card p,
  .candidate-form,
  .candidate-form input,
  .candidate-form .btn {
    width: 100%;
    max-width: calc(100vw - 70px);
  }

  .test-start-briefing {
    max-width: 100%;
  }

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

  .test-start-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .start-test-action {
    max-width: 100%;
  }

  .test-start-card h1,
  .score-card h1 {
    font-size: 28px;
  }

  .test-sticky-bar {
    grid-template-columns: 1fr auto;
    gap: 8px;
    min-height: 56px;
    padding: 7px 10px;
  }

  .test-timer {
    min-width: 94px;
    font-size: 16px;
  }

  .question-palette-wrap {
    position: static;
  }

  .question-palette {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    padding: 8px 12px;
  }

  .palette-btn {
    min-height: 28px;
    font-size: 12px;
  }

  .question-head,
  .question-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .question-actions {
    gap: 8px;
  }

  .question-action-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  #next-question,
  #submit-test {
    grid-column: span 2;
  }

  .question-actions .btn {
    width: 100%;
    min-height: 42px;
  }

  .result-layout {
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .score-card,
  .merit-card,
  .answer-review {
    padding: 14px;
  }

  .score-number {
    font-size: 42px;
  }

  #score-detail {
    gap: 4px;
  }

  .score-detail-main,
  .score-detail-meta {
    font-size: 12px;
    line-height: 1.35;
  }

  .score-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .score-stats span {
    min-height: 48px;
    padding: 8px;
  }

  .score-stats span strong {
    font-size: 16px;
  }

  .result-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .result-actions .btn {
    min-width: 0;
    min-height: 42px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .rank-line {
    padding: 9px 10px;
    font-size: 12px;
  }

  .result-mode-tabs,
  .result-subtabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }

  .result-mode-tab,
  .review-tab {
    flex: 0 0 auto;
  }

  .test-toast {
    right: 12px;
    bottom: 82px;
    font-size: 12px;
  }

  .question-head {
    padding: 8px 12px;
  }

  .question-text-panel {
    min-height: 84px;
    padding: 12px;
  }

  .question-text-panel p {
    font-size: 16px;
    line-height: 1.38;
  }

  .option-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 12px 66px;
  }

  .option-choice {
    min-height: 54px;
    padding: 8px 9px;
    align-items: flex-start;
  }

  .option-choice span {
    width: 30px;
    height: 30px;
  }

  .option-choice strong {
    line-height: 1.34;
  }

  .answer-row {
    grid-template-columns: 1fr;
  }

  .answer-summary {
    grid-template-columns: 48px minmax(0, 1fr) 30px;
    gap: 6px;
    padding: 9px 10px;
  }

  .answer-summary > span:not(.answer-status):not(.answer-toggle) {
    grid-column: 1 / -1;
  }

  .review-ranges {
    display: grid;
    grid-template-columns: 1fr;
  }

  .revision-vault {
    padding: 14px;
    border-radius: 13px;
  }

  .revision-vault-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .vault-sequence {
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  .revision-vault-tabs {
    grid-template-columns: 1fr;
  }

  .answer-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .answer-filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-tab {
    justify-content: center;
    min-height: 42px;
    padding: 8px 9px;
  }

  .revision-tab {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    justify-content: initial;
    min-height: 86px;
    padding: 11px;
  }

  .review-tab-copy > span {
    font-size: 15px;
  }

  .study-panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .study-mode-controls,
  .flashcard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flashcard-actions .flashcard-counter {
    grid-column: 1 / -1;
    order: -1;
  }

  .flashcard-card {
    min-height: 170px;
    padding: 18px;
  }

  .flashcard-card p {
    font-size: 17px;
  }

  .retry-deck-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .retry-deck-head > strong {
    width: max-content;
  }

  .retry-options button {
    align-items: flex-start;
    min-height: 54px;
  }

  .attempt-history-row {
    grid-template-columns: 1fr;
  }

  .study-panel-hero {
    padding: 15px;
    border-radius: 13px;
  }

  .question-report-card {
    padding: 16px;
  }

  .question-report-actions {
    flex-direction: column-reverse;
  }

  .question-report-actions .btn {
    width: 100%;
  }

  .one-liner-grid,
  .trap-card {
    grid-template-columns: 1fr;
  }

  .one-liner-card {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 0;
  }

  .trap-number {
    width: max-content;
    min-width: 32px;
    padding: 0 10px;
  }

  .trap-copy {
    grid-column: auto;
  }

  .answer-toggle {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
  }

  .answer-detail {
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .syllabus-download-track {
    animation: none;
  }

  .syllabus-download-item[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 600px) {
  .package-card,
  .category-card,
  .topic-list-card,
  .checkout-card,
  .hero-side-card,
  .paper-card {
    min-width: 0;
  }

  .package-card h3,
  .category-card h3,
  .topic-list-content h3,
  .checkout-summary-card h2,
  .checkout-section-title h2 {
    overflow-wrap: anywhere;
  }

  .price-row,
  .checkout-policy-review div,
  .payment-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .price-tier,
  .checkout-policy-review a,
  .payment-actions .btn,
  .payment-actions a {
    width: 100%;
  }

  .topic-detail-chips span,
  .coverage-topic-chips span {
    white-space: normal;
  }

  .coming-book-list span {
    min-height: 38px;
  }
}

.study-material-card .study-material-list span {
  display: flex !important;
  align-items: center !important;
  min-height: 56px !important;
  padding: 12px 10px 12px 38px !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1.08 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  white-space: nowrap !important;
}

.study-material-card .study-material-list span::before {
  top: 50% !important;
  left: 13px !important;
  width: 14px !important;
  height: 14px !important;
  transform: translateY(-50%) !important;
}

.study-material-card .package-button.is-disabled,
.study-material-card .package-button[aria-disabled="true"] {
  color: #063f38 !important;
  border-color: rgba(15, 118, 110, 0.38) !important;
  background: linear-gradient(135deg, #99f6e4 0%, #fde68a 100%) !important;
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.16) !important;
  opacity: 1 !important;
}

.study-material-card-group .package-button.is-disabled,
.study-material-card-group .package-button[aria-disabled="true"] {
  color: #06162c !important;
  border-color: rgba(154, 106, 22, 0.32) !important;
  background: linear-gradient(135deg, #dbeafe 0%, #fde68a 100%) !important;
  box-shadow: 0 16px 30px rgba(11, 31, 58, 0.13) !important;
}

@media (max-width: 760px) {
  .package-revision-access {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .package-revision-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .revision-vault-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .revision-vault-tabs,
  .revision-vault-tabs.is-single {
    grid-template-columns: 1fr;
  }

  .revision-vault-tabs.is-single .revision-tab {
    max-width: none;
  }

  .revision-upgrade-note {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .revision-upgrade-mark {
    width: 40px;
    height: 40px;
  }

  .revision-upgrade-note a {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .package-revision-benefits {
    grid-template-columns: 1fr;
  }

  .revision-tab {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 84px;
    padding: 10px;
  }

  .review-tab-copy > span {
    font-size: 14px;
  }
}
