.glossary-page {
  background:
    radial-gradient(circle at 18% 4%, rgba(74,222,128,.12), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(96,165,250,.1), transparent 26rem),
    linear-gradient(180deg, #fbfffc 0%, #f5fbf7 25rem, #f4faf6 25rem, #eef8f1 100%);
  color: var(--tx);
}

.glossary-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 56px 0;
  background:
    radial-gradient(ellipse 70% 58% at 72% 28%, rgba(34,197,94,.13), transparent 62%),
    linear-gradient(180deg, #fbfffc 0%, #f5fbf7 60%, #eef8f2 100%);
}

.glossary-hero::before,
.glossary-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.glossary-hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.6) 46%, rgba(255,255,255,.18)),
    radial-gradient(circle at 18% 30%, rgba(34,197,94,.12), transparent 20rem);
}

.glossary-hero::after {
  display: none;
}

#stockBg,
#heroParticles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#stockBg { opacity: .72; }
#heroParticles { opacity: .42; }

.hero-grid {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: 54px;
  align-items: end;
  padding-bottom: 32px;
}

.gloss-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #116b32;
  font: 700 .75rem var(--fh);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.gloss-kicker span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gl);
  box-shadow: 0 0 16px var(--gl);
  animation: dotPulse 1.7s ease-in-out infinite;
}

.hero-copy h1 {
  max-width: 760px;
  color: #07140d;
  font: 700 clamp(2.8rem, 7vw, 5.9rem)/.88 var(--fh);
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 660px;
  margin-top: 24px;
  color: #456050;
  font-size: 1.05rem;
  line-height: 1.82;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 34px;
}

.hero-stats div {
  padding: 16px 18px;
  border: 1px solid rgba(134,239,172,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 20px 45px rgba(5,46,22,.08);
}

.hero-stats strong {
  display: block;
  color: #07140d;
  font: 700 2rem var(--fh);
}

.hero-stats span {
  color: #587362;
  font-size: .82rem;
}

.hero-panel {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(134,239,172,.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.72)),
    radial-gradient(circle at 30% 20%, rgba(74,222,128,.16), transparent 18rem);
  box-shadow: 0 28px 90px rgba(5,46,22,.16);
  backdrop-filter: blur(14px);
}

.panel-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(134,239,172,.22), transparent);
  opacity: .42;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
  animation: panelPulse 3.6s ease-in-out infinite;
}

.hero-panel::before {
  content: none;
}

.mini-chart {
  height: 210px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  align-items: end;
  padding: 22px 16px;
  border-radius: 8px;
  background: rgba(5,46,22,.08);
  overflow: hidden;
}

.mini-chart i {
  position: relative;
  display: block;
  min-height: 42px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #86efac, #16a34a);
  box-shadow: 0 0 18px rgba(74,222,128,.28);
  animation: candleRise 2.8s ease-in-out infinite;
}

.mini-chart i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: 2px;
  height: calc(100% + 42px);
  transform: translateX(-50%);
  background: rgba(134,239,172,.45);
}

.mini-chart i:nth-child(1) { height: 45%; animation-delay: .1s; }
.mini-chart i:nth-child(2) { height: 68%; animation-delay: .3s; }
.mini-chart i:nth-child(3) { height: 38%; animation-delay: .5s; }
.mini-chart i:nth-child(4) { height: 82%; animation-delay: .7s; }
.mini-chart i:nth-child(5) { height: 58%; animation-delay: .9s; background: linear-gradient(180deg, #93c5fd, #2563eb); }
.mini-chart i:nth-child(6) { height: 74%; animation-delay: 1.1s; }
.mini-chart i:nth-child(7) { height: 51%; animation-delay: 1.3s; background: linear-gradient(180deg, #fca5a5, #dc2626); }

.concept-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.concept-stack button {
  border: 1px solid rgba(134,239,172,.18);
  border-radius: 8px;
  padding: 14px 16px;
  color: #0f1a12;
  background: rgba(255,255,255,.7);
  text-align: left;
  font-weight: 700;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}

.concept-stack button:hover {
  transform: translateX(4px);
  border-color: rgba(134,239,172,.45);
  background: rgba(74,222,128,.12);
}

.learning-zone > canvas.swc-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.learning-zone {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding: 80px 56px 56px;
  border-top: 1px solid rgba(34,197,94,.12);
  background:
    radial-gradient(circle at 12% 20%, rgba(34,197,94,.12), transparent 22rem),
    radial-gradient(circle at 86% 72%, rgba(37,99,235,.09), transparent 24rem),
    linear-gradient(180deg, #f6fbf8, #eef8f2);
}
.learning-head { padding-top: 0; }

.learning-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(5,46,22,.045) 1px, transparent 1px);
  background-size: 86px 100%;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.learning-head,
.academy-shell,
.tools-inner,
.results-head,
.glossary-body {
  max-width: 1180px;
  margin-inline: auto;
}

.learning-head {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.learning-head h2,
.results-head h2 {
  font: 700 clamp(1.8rem, 3.5vw, 2.8rem)/1 var(--fh);
  text-transform: uppercase;
}

.learning-head p {
  color: var(--tx-muted);
  line-height: 1.55;
}

.academy-shell {
  position: relative;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
}

.academy-map,
.academy-panel,
.tools-inner {
  border: 1px solid rgba(34,197,94,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 50px rgba(5,46,22,.08);
}

.academy-map {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(74,222,128,.18), transparent 13rem),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(244,253,248,.86));
}

.coach-card {
  position: relative;
  min-height: 300px;
  border: 1px solid #d7f4e1;
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 76% 22%, rgba(96,165,250,.13), transparent 10rem),
    #ffffff;
  overflow: hidden;
}

.coach-bubble {
  position: relative;
  z-index: 2;
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 8px 8px 8px 2px;
  background: #0f1a12;
  color: #f0fdf4;
  font: 800 .84rem var(--fb);
  box-shadow: 0 14px 28px rgba(5,46,22,.14);
}

.coach-avatar {
  position: relative;
  height: 142px;
  margin: 10px 0 12px;
}

.coach-head,
.coach-body,
.coach-arm,
.coach-chart {
  position: absolute;
  display: block;
}

.coach-head {
  width: 54px;
  height: 54px;
  left: 74px;
  top: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f6d8b8, #e7ad79);
  box-shadow: inset -8px -8px 0 rgba(0,0,0,.06);
}

.coach-head::before,
.coach-head::after {
  content: "";
  position: absolute;
  top: 23px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #18241b;
}

.coach-head::before { left: 16px; }
.coach-head::after { right: 16px; }

.coach-body {
  width: 88px;
  height: 72px;
  left: 58px;
  top: 68px;
  border-radius: 28px 28px 10px 10px;
  background: linear-gradient(135deg, #16a34a, #2563eb);
}

.coach-arm {
  width: 64px;
  height: 12px;
  left: 128px;
  top: 74px;
  border-radius: 999px;
  background: #e7ad79;
  transform-origin: left center;
  animation: waveArm 1.8s ease-in-out infinite;
}

.coach-arm::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1c49b;
}

.coach-chart {
  right: 8px;
  bottom: 8px;
  width: 72px;
  height: 58px;
  border: 1px solid #d9f4e3;
  border-radius: 8px;
  background: #f8fffb;
  display: flex;
  align-items: end;
  gap: 6px;
  padding: 8px;
  box-shadow: 0 12px 24px rgba(5,46,22,.08);
}

.coach-chart i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: #22c55e;
  animation: coachBars 1.6s ease-in-out infinite;
}

.coach-chart i:nth-child(1) { height: 38%; }
.coach-chart i:nth-child(2) { height: 62%; animation-delay: .18s; }
.coach-chart i:nth-child(3) { height: 88%; animation-delay: .34s; background: #2563eb; }

.coach-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.coach-stats div {
  border: 1px solid #d9f4e3;
  border-radius: 8px;
  padding: 10px;
  background: #f8fffb;
}

.coach-stats strong {
  display: block;
  color: #0a130b;
  font: 800 1.42rem var(--fh);
}

.coach-stats span {
  color: var(--tx-muted);
  font-size: .72rem;
}

.coach-progress {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dff4e7;
}

.coach-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a, #2563eb);
  transition: width .35s var(--ease);
}

.level-route {
  display: grid;
  gap: 8px;
}

.level-card {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 14px;
  background: transparent;
  text-align: left;
  transition: background .2s, border-color .2s, transform .2s;
}

.level-card:hover,
.level-card.active {
  background: #effdf4;
  border-color: rgba(34,197,94,.28);
  transform: translateY(-1px);
}

.level-card.locked { opacity: .62; }

.level-card strong {
  display: block;
  color: #0a130b;
  font: 700 1.12rem var(--fh);
}

.level-card span {
  display: block;
  margin-top: 4px;
  color: var(--tx-muted);
  font-size: .82rem;
}

.level-meter {
  display: block;
  height: 5px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dff4e7;
}

.level-meter i {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--gd), #60a5fa);
}

.academy-panel {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.8)),
    radial-gradient(circle at 90% 10%, rgba(34,197,94,.1), transparent 16rem);
}

.academy-panel-head span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,.12);
  color: var(--gd);
  font: 700 .72rem var(--fh);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.academy-panel-head h3 {
  margin-top: 10px;
  font: 700 1.72rem var(--fh);
}

.academy-panel-head p {
  max-width: 720px;
  margin-top: 8px;
  color: var(--tx-muted);
  line-height: 1.55;
  font-size: .94rem;
}

.academy-progress {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 16px 0;
  color: var(--tx-muted);
  font-size: .86rem;
}

.academy-progress div {
  flex: 1;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dff4e7;
}

.academy-progress i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gd), #60a5fa);
  transition: width .45s var(--ease);
}

.academy-workspace {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) minmax(270px, .72fr);
  gap: 12px;
}

.academy-terms {
  display: grid;
  gap: 8px;
  align-content: start;
}

.academy-term-btn {
  min-height: 38px;
  border: 1px solid #d9f4e3;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: #14321f;
  text-align: left;
  font-weight: 700;
  font-size: .84rem;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}

.academy-term-btn small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 22px;
  margin-right: 8px;
  border-radius: 6px;
  background: #edf9f1;
  color: var(--gd);
  font: 700 .68rem var(--fh);
}

.academy-term-btn.locked {
  opacity: .48;
  cursor: not-allowed;
}

.academy-term-btn:hover,
.academy-term-btn.active {
  transform: translateX(3px);
  border-color: rgba(34,197,94,.42);
  box-shadow: 0 10px 24px rgba(5,46,22,.08);
}

.academy-term-btn.mastered::after {
  content: " ✓";
  color: var(--gd);
}

.study-card,
.quiz-card {
  border: 1px solid #d9f4e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(5,46,22,.06);
}

.study-card {
  position: relative;
  min-height: 245px;
  padding: 18px;
  overflow: hidden;
  animation: cardFloatIn .35s var(--ease) both;
}

.study-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 12%, rgba(74,222,128,.16), transparent 13rem);
}

.study-card h4 {
  position: relative;
  font: 700 1.46rem var(--fh);
  margin-bottom: 10px;
}

.study-card p,
.study-card .study-example {
  position: relative;
  color: var(--tx-muted);
  line-height: 1.58;
  font-size: .9rem;
}

.study-example {
  margin-top: 11px;
  padding: 11px 12px;
  border-left: 3px solid var(--gd);
  border-radius: 0 8px 8px 0;
  background: #f1fbf5;
  font-size: .9rem;
}

.study-example.muted {
  border-left-color: #60a5fa;
  background: #f0f7ff;
}

.start-quiz-btn {
  position: relative;
  min-height: 40px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--gd), #2563eb);
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(34,197,94,.22);
  overflow: hidden;
}

.start-quiz-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.34), transparent 80%);
  transform: translateX(-120%);
  animation: shineSweep 2.8s ease-in-out infinite;
}

.quiz-card {
  grid-column: auto;
  padding: 16px;
  animation: cardFloatIn .35s var(--ease) both;
  background:
    radial-gradient(circle at 100% 0%, rgba(37,99,235,.11), transparent 11rem),
    #fff;
}

.quiz-card h4 {
  font: 700 1rem var(--fb);
  margin-bottom: 12px;
}

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

.quiz-option {
  border: 1px solid #d9f4e3;
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: #21382a;
  text-align: left;
  transition: background .18s, border-color .18s, transform .18s;
}

.quiz-option:hover {
  transform: translateY(-1px);
  border-color: rgba(34,197,94,.36);
}

.quiz-option.correct {
  border-color: rgba(22,163,74,.55);
  background: #e9faef;
  box-shadow: 0 0 0 3px rgba(34,197,94,.08);
}

.quiz-option.wrong {
  border-color: rgba(220,38,38,.45);
  background: #fff1f2;
}

.quiz-feedback {
  min-height: 22px;
  margin-top: 10px;
  color: var(--tx-muted);
  font-size: .88rem;
}

.quiz-idle {
  min-height: 220px;
  display: grid;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(34,197,94,.08), transparent 48%),
    repeating-linear-gradient(-45deg, rgba(34,197,94,.045) 0 1px, transparent 1px 12px);
  border-radius: 8px;
  padding: 18px;
}

.quiz-idle span,
.quiz-headline span,
.quiz-headline strong {
  color: var(--gd);
  font: 700 .72rem var(--fh);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.quiz-idle p {
  color: var(--tx-muted);
  line-height: 1.55;
}

.quiz-headline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.quiz-review {
  display: grid;
  gap: 12px;
}

.review-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 8px;
  padding: 14px;
  background: #f8fffb;
  border: 1px solid #d9f4e3;
}

.review-score.pass {
  background: linear-gradient(135deg, #ecfdf3, #eff6ff);
}

.review-score.fail {
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
}

.review-score span {
  color: var(--tx-muted);
  font-weight: 800;
}

.review-score strong {
  color: #0a130b;
  font: 800 2rem var(--fh);
}

.review-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.review-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  border: 1px solid #e4efe8;
  border-radius: 8px;
  padding: 9px;
  background: #fff;
}

.review-item > span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: #16a34a;
  font: 800 .72rem var(--fh);
}

.review-item.ko > span { background: #dc2626; }
.review-item p { margin: 0; color: #21382a; font-size: .84rem; }
.review-item small { color: var(--tx-muted); font-size: .76rem; }

.review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.quiz-action {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #2563eb);
  font-weight: 800;
}

.quiz-action.secondary {
  color: #14321f;
  background: #edf9f1;
  border: 1px solid #d9f4e3;
}

.term-ref {
  color: var(--gd);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(34,197,94,.38);
}

.term-ref:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.term-pulse {
  animation: termPulse 1.1s ease;
}

.glossary-tools {
  position: sticky;
  top: 69px;
  z-index: 80;
  padding: 18px 56px;
  background: rgba(244,250,246,.86);
  border-block: 1px solid rgba(34,197,94,.14);
  backdrop-filter: blur(16px);
}

.tools-inner {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.search-box {
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--tx-muted);
  stroke-width: 2;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cdeed9;
  border-radius: 8px;
  padding: 0 14px 0 46px;
  background: #fff;
  color: var(--tx);
  font: 500 .95rem var(--fb);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.search-box input:focus {
  border-color: var(--gd);
  box-shadow: 0 0 0 4px rgba(34,197,94,.14);
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-chip {
  min-height: 38px;
  border: 1px solid #d4efdd;
  border-radius: 999px;
  padding: 0 15px;
  background: #fff;
  color: var(--tx-muted);
  font: 700 .76rem var(--fh);
  letter-spacing: .8px;
  text-transform: uppercase;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}

.filter-chip:hover,
.filter-chip.active {
  transform: translateY(-1px);
  border-color: rgba(34,197,94,.42);
  background: #eafbf0;
  color: var(--gd);
}

.glossary-index {
  position: sticky;
  top: 163px;
  z-index: 70;
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 12px 56px;
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(34,197,94,.12);
  backdrop-filter: blur(14px);
}

.gloss-idx-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #708478;
  text-decoration: none;
  font: 700 .82rem var(--fh);
  transition: background .18s, color .18s, transform .18s;
}

.gloss-idx-link.has-entries { color: var(--gd); }
.gloss-idx-link:hover { background: #e9faef; transform: translateY(-1px); }
.gloss-idx-link.disabled { opacity: .25; pointer-events: none; }

.glossary-results {
  padding: 68px 56px 104px;
  background: linear-gradient(180deg, #f4faf6, #ffffff);
}

.results-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.results-head p {
  color: var(--tx-muted);
  font-weight: 600;
}

.letter-group {
  margin-top: 34px;
  scroll-margin-top: 220px;
}

.letter-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.letter-head h3 {
  color: var(--gd);
  font: 700 2.4rem var(--fh);
}

.letter-head span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(34,197,94,.32), transparent);
}

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

.term-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 20px;
  border: 1px solid rgba(34,197,94,.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(250,255,252,.94)),
    radial-gradient(circle at 88% 16%, rgba(34,197,94,.12), transparent 10rem);
  box-shadow: 0 10px 32px rgba(5,46,22,.06);
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}

.term-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gd), #60a5fa, transparent);
  opacity: .72;
  transform: scaleX(.28);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.term-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(74,222,128,.1) 48%, transparent 64%);
  transform: translateX(-110%);
  transition: transform .7s var(--ease);
}

.term-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34,197,94,.4);
  box-shadow: 0 24px 46px rgba(5,46,22,.12);
}

.term-card:hover::after { transform: translateX(110%); }
.term-card:hover::before { transform: scaleX(1); }

.term-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.term-top h4 {
  color: #09140d;
  font: 700 1.22rem var(--fh);
  line-height: 1.05;
}

.term-tag {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 9px;
  font: 700 .62rem var(--fh);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.term-tag.basi { color: #16a34a; background: #dcfce7; }
.term-tag.tecnica { color: #2563eb; background: #dbeafe; }
.term-tag.fondamentale { color: #b45309; background: #fef3c7; }
.term-tag.ordini { color: #7c3aed; background: #ede9fe; }
.term-tag.risk { color: #dc2626; background: #fee2e2; }
.term-tag.crypto { color: #ea580c; background: #ffedd5; }
.term-tag.forex { color: #0d9488; background: #ccfbf1; }

.term-card p {
  color: #435548;
  font-size: .92rem;
  line-height: 1.7;
}

.term-card strong {
  color: #111d15;
  font-weight: 700;
}

.term-example {
  margin-top: 14px;
  padding: 11px 12px;
  border-left: 3px solid var(--gd);
  border-radius: 0 7px 7px 0;
  background: #f1fbf5;
  color: #4a6352;
  font-size: .84rem;
  line-height: 1.58;
}

.gloss-empty {
  padding: 54px 24px;
  border: 1px dashed #bdeccf;
  border-radius: 8px;
  background: #fff;
  color: var(--tx-muted);
  text-align: center;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.72); }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 58px 58px, 58px 58px, 220px 0; }
}

@keyframes panelPulse {
  0%, 100% { opacity: .25; }
  50% { opacity: .62; }
}

@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

@keyframes candleRise {
  0%, 100% { transform: scaleY(.92); opacity: .86; }
  50% { transform: scaleY(1.06); opacity: 1; }
}

@keyframes shineSweep {
  0%, 35% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

@keyframes cardFloatIn {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes termPulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.0); }
  35% { box-shadow: 0 0 0 6px rgba(34,197,94,.18), 0 24px 46px rgba(5,46,22,.16); }
  100% { box-shadow: 0 10px 32px rgba(5,46,22,.06); }
}

@keyframes waveArm {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(16deg); }
}

@keyframes coachBars {
  0%, 100% { transform: scaleY(.82); }
  50% { transform: scaleY(1.08); }
}

@media (max-width: 1050px) {
  .glossary-hero,
  .learning-zone,
  .glossary-tools,
  .glossary-index,
  .glossary-results {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-grid,
  .academy-shell,
  .tools-inner {
    grid-template-columns: 1fr;
  }

  .filter-row { justify-content: flex-start; }
  .academy-workspace { grid-template-columns: 1fr; }
  .quiz-card { grid-column: auto; }
  .term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .glossary-hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-grid { gap: 28px; }
  .hero-stats,
  .learning-head,
  .term-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel { padding: 18px; }
  .mini-chart { height: 160px; gap: 9px; }
  .academy-panel { padding: 20px; }
  .academy-progress { display: block; }
  .academy-progress div { margin-top: 8px; }
  .glossary-tools { position: relative; top: auto; }
  .glossary-index { position: relative; top: auto; padding-inline: 18px; }
  .results-head { display: block; }
  .results-head p { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   ACADEMY v2 — coach mascot + lesson/quiz/result/review views
══════════════════════════════════════════════════════════════ */
.academy-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}
.academy-coach {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 12px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.coach-mascot {
  width: 300px;
  height: 330px;
  margin: 0 auto;
  animation: coachBob 4s ease-in-out infinite;
}
@keyframes coachBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.coach-mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(15,23,42,.18));
}
.coach-bubble {
  position: relative;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  padding: 11px 16px;
  border-radius: 14px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .3px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(34,197,94,.32);
  animation: bubblePop .5s cubic-bezier(.34,1.56,.64,1) both;
}
.coach-bubble::after {
  content: '';
  position: absolute; top: -7px; left: 50%;
  width: 14px; height: 14px;
  background: #22c55e;
  transform: translateX(-50%) rotate(45deg);
}
@keyframes bubblePop { 0% { opacity: 0; transform: scale(.7); } 100% { opacity: 1; transform: scale(1); } }
.coach-stats-card {
  background: #ffffff;
  border: 1px solid rgba(34,197,94,.18);
  border-radius: 14px;
  padding: 14px 16px 16px;
  box-shadow: 0 4px 14px rgba(34,197,94,.08);
}
.coach-stat { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 8px; }
.coach-stat strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(90deg, #16a34a, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.coach-stat span {
  font-size: .72rem;
  color: rgba(20,40,28,.55);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}
.coach-bar {
  height: 8px;
  background: rgba(34,197,94,.12);
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 0 12px;
}
.coach-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4ade80, #16a34a, #60a5fa);
  background-size: 200% 100%;
  animation: coachBarShimmer 3s linear infinite;
  transition: width .45s cubic-bezier(.34,1.4,.6,1);
}
@keyframes coachBarShimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.coach-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(34,197,94,.12);
}
.coach-stat-row > div { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.coach-stat-row strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a130b;
}
.coach-stat-row span {
  font-size: .58rem;
  color: rgba(20,40,28,.5);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.coach-lesson-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}
.coach-lesson-list::-webkit-scrollbar { width: 5px; }
.coach-lesson-list::-webkit-scrollbar-thumb { background: rgba(34,197,94,.3); border-radius: 3px; }

/* Lista lezioni: striscia orizzontale a chip fissi — altezza costante qualunque sia il numero di lezioni */
.academy-panel > .coach-lesson-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 6px;
  padding: 0 0 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(34,197,94,.14);
  scrollbar-width: thin;
  scrollbar-color: rgba(34,197,94,.3) transparent;
  max-height: none;
}
.academy-panel > .coach-lesson-list::-webkit-scrollbar { height: 4px; }
.academy-panel > .coach-lesson-list::-webkit-scrollbar-thumb { background: rgba(34,197,94,.3); border-radius: 3px; }
.academy-panel > .coach-lesson-list .lesson-tab {
  flex-shrink: 0;
  flex-grow: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  gap: 0;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
}
.academy-panel > .coach-lesson-list .lt-body { display: none; }
.academy-panel > .coach-lesson-list .lt-num {
  width: 100%;
  height: 100%;
  font-size: .8rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.lesson-tab {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(34,197,94,.14);
  cursor: pointer;
  transition: all .2s;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
}
.lesson-tab:hover { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.4); transform: translateX(2px); }
.lesson-tab.active {
  background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(96,165,250,.1));
  border-color: rgba(34,197,94,.55);
  box-shadow: 0 4px 16px rgba(34,197,94,.18);
}
.lesson-tab.locked { opacity: .45; cursor: not-allowed; pointer-events: none; }
.lesson-tab.done .lt-num { background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; }
.lt-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(34,197,94,.12);
  color: #16a34a;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  flex-shrink: 0;
}
.lt-num svg { width: 14px; height: 14px; }
.lt-body { flex: 1; min-width: 0; }
.lt-title { font-size: .85rem; font-weight: 700; color: #0a130b; line-height: 1.2; }
.lesson-tab.locked .lt-title { color: rgba(20,40,28,.45); }
.lt-meta { font-size: .65rem; color: rgba(20,40,28,.5); margin-top: 2px; letter-spacing: .3px; }
.lt-lock { width: 13px; height: 13px; color: rgba(20,40,28,.4); flex-shrink: 0; }

.academy-panel {
  position: relative;
  min-height: 520px;
  background: linear-gradient(165deg, #ffffff 0%, #fafdfb 100%);
  border: 1px solid rgba(34,197,94,.22);
  border-radius: 22px;
  padding: 32px 36px 28px;
  box-shadow: 0 12px 36px rgba(34,197,94,.12), 0 0 0 1px rgba(255,255,255,.6) inset;
  overflow: hidden;
}
.academy-panel::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 280px; height: 280px;
  background: radial-gradient(circle at 100% 0%, rgba(96,165,250,.14), transparent 70%);
  pointer-events: none;
}
.academy-view { position: relative; z-index: 1; animation: viewFadeIn .35s cubic-bezier(.22,1,.36,1) both; }
@keyframes viewFadeIn { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }

.lesson-head { margin-bottom: 22px; }
.lesson-head h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: #0a130b;
  margin: 0 0 8px;
}
.lesson-sub { font-size: .92rem; color: rgba(20,40,28,.6); margin: 0; line-height: 1.5; }
.lesson-content {
  background: linear-gradient(160deg, #f7fdf9, #ffffff);
  border: 1px solid rgba(34,197,94,.16);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 22px;
  line-height: 1.7;
  color: rgba(20,40,28,.85);
  font-size: .98rem;
}
.lesson-content p { margin: 0 0 14px; }
.lesson-content p:last-child { margin-bottom: 0; }
.lesson-content strong { color: #15803d; font-weight: 700; }
.lesson-content .lesson-block {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  background: rgba(34,197,94,.08);
  border-left: 3px solid #16a34a;
  border-radius: 8px;
  margin: 14px 0;
  font-size: .9rem;
}
.lesson-content .lesson-block.warn { background: rgba(251,191,36,.12); border-left-color: #d97706; }
.lesson-content .lesson-block.tip  { background: rgba(59,130,246,.08); border-left-color: #2563eb; }
.lesson-content ul, .lesson-content ol { margin: 10px 0 14px; padding-left: 22px; }
.lesson-content li { margin-bottom: 6px; }
.lesson-actions { display: flex; justify-content: flex-end; }
.proceed-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1.4px;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(34,197,94,.4);
  transition: all .25s;
}
.proceed-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(34,197,94,.55); }
.proceed-btn svg { width: 16px; height: 16px; transition: transform .25s; }
.proceed-btn:hover svg { transform: translateX(3px); }

.quiz-head { margin-bottom: 22px; }
.quiz-back {
  display: inline-flex;
  font-size: .78rem;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  transition: color .2s;
}
.quiz-back:hover { color: #1d4ed8; text-decoration: underline; }
.quiz-head h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #0a130b;
  margin: 0 0 14px;
}
.quiz-meta { display: flex; align-items: center; gap: 14px; }
.quiz-meta > span {
  font-size: .78rem;
  font-weight: 700;
  color: #15803d;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.quiz-bar { flex: 1; height: 6px; background: rgba(34,197,94,.14); border-radius: 3px; overflow: hidden; }
.quiz-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  transition: width .4s cubic-bezier(.34,1.4,.6,1);
}
.quiz-body {
  background: linear-gradient(160deg, #f7fdf9, #ffffff);
  border: 1px solid rgba(34,197,94,.18);
  border-radius: 14px;
  padding: 26px 28px;
  min-height: 280px;
}
.quiz-question {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: #0a130b;
  margin: 0 0 22px;
  line-height: 1.5;
}
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-option {
  display: flex; align-items: center; gap: 12px;
  text-align: left;
  padding: 14px 18px;
  background: #ffffff;
  border: 1.5px solid rgba(34,197,94,.18);
  border-radius: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .94rem;
  font-weight: 500;
  color: rgba(20,40,28,.85);
  cursor: pointer;
  transition: all .2s;
}
.quiz-option:hover:not(:disabled) {
  background: rgba(34,197,94,.06);
  border-color: rgba(34,197,94,.45);
  transform: translateX(2px);
}
.quiz-option:disabled { cursor: not-allowed; }
.qo-letter {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(34,197,94,.12);
  color: #15803d;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  flex-shrink: 0;
}
.quiz-option.correct {
  background: linear-gradient(135deg, rgba(34,197,94,.22), rgba(34,197,94,.08));
  border-color: #16a34a;
  color: #15803d;
}
.quiz-option.correct .qo-letter { background: #16a34a; color: #fff; }
.quiz-option.wrong {
  background: linear-gradient(135deg, rgba(239,68,68,.18), rgba(239,68,68,.06));
  border-color: #dc2626;
  color: #b91c1c;
}
.quiz-option.wrong .qo-letter { background: #dc2626; color: #fff; }
.quiz-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(34,197,94,.1);
  border-left: 3px solid #16a34a;
  border-radius: 8px;
  font-size: .88rem;
  color: rgba(20,40,28,.85);
  animation: viewFadeIn .25s;
}
.quiz-feedback.wrong { background: rgba(239,68,68,.1); border-left-color: #dc2626; }

.view-result { text-align: center; padding: 32px 20px; }
.result-icon {
  width: 88px; height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  box-shadow: 0 12px 36px rgba(34,197,94,.45);
  animation: resultPop .55s cubic-bezier(.34,1.56,.64,1) both;
}
.result-icon svg { width: 44px; height: 44px; }
.result-icon.fail {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 12px 36px rgba(245,158,11,.45);
}
@keyframes resultPop { 0% { transform: scale(.5) rotate(-15deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
#resultTitle {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.85rem;
  color: #0a130b;
  margin: 0 0 8px;
}
#resultSub {
  font-size: .96rem;
  color: rgba(20,40,28,.65);
  margin: 0 auto 24px;
  max-width: 480px;
  line-height: 1.55;
}
.result-score {
  display: inline-flex; align-items: baseline; gap: 4px;
  margin-bottom: 28px;
  padding: 16px 32px;
  background: linear-gradient(135deg, rgba(34,197,94,.16), rgba(96,165,250,.08));
  border: 1px solid rgba(34,197,94,.32);
  border-radius: 14px;
}
.result-score strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #16a34a, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.result-score span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(20,40,28,.5);
}
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.result-btn {
  padding: 12px 22px;
  border-radius: 11px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: 1.3px;
  cursor: pointer;
  transition: all .25s;
  border: 1.5px solid transparent;
}
.result-btn.primary {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  box-shadow: 0 6px 20px rgba(34,197,94,.4);
}
.result-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(34,197,94,.55); }
.result-btn.primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.result-btn.ghost {
  background: rgba(96,165,250,.12);
  color: #1d4ed8;
  border-color: rgba(96,165,250,.4);
}
.result-btn.ghost:hover { background: rgba(96,165,250,.2); border-color: #2563eb; }
.result-btn.outline {
  background: #ffffff;
  color: rgba(20,40,28,.7);
  border-color: rgba(34,197,94,.32);
}
.result-btn.outline:hover { background: rgba(34,197,94,.08); border-color: #16a34a; color: #15803d; }

.review-head { margin-bottom: 20px; }
.review-head h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #0a130b;
  margin: 8px 0 6px;
}
.review-head p { font-size: .88rem; color: rgba(20,40,28,.6); margin: 0; }
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-item {
  padding: 16px 18px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid rgba(34,197,94,.16);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
}
.review-item.ok { border-left: 4px solid #16a34a; }
.review-item.ko { border-left: 4px solid #dc2626; background: linear-gradient(160deg, #fff5f5, #ffffff); }
.review-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: #fff;
}
.review-item.ok .review-mark { background: #16a34a; }
.review-item.ko .review-mark { background: #dc2626; }
.review-q { font-size: .94rem; color: #0a130b; font-weight: 600; margin: 0 0 8px; line-height: 1.45; }
.review-a { font-size: .82rem; color: rgba(20,40,28,.7); margin: 0; line-height: 1.5; }
.review-a .ra-chosen { font-weight: 700; }
.review-a .ra-correct { color: #15803d; font-weight: 700; }
.review-item.ko .ra-chosen { color: #b91c1c; }

@media (max-width: 1100px) {
  .academy-shell { grid-template-columns: 1fr; }
  .academy-coach { position: static; }
  .coach-lesson-list { max-height: none; }
  .quiz-options { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .learning-zone { padding: 0 20px 40px; }
  .academy-panel { padding: 22px 18px 24px; }
  .result-actions { flex-direction: column; }
  .result-actions .result-btn { width: 100%; }
}

.hero-grid { min-height: auto; }
.glossary-hero { padding-bottom: 40px; }
