/* ==========================================================================
   ACEVORI INNER PAGES — Velvet & Gold
   All Exams · Flashcards · About · Contact
   ========================================================================== */

/* ==========================================================================
   SHARED — INNER PAGE HERO
   ========================================================================== */
.av-page-hero {
  position: relative;
  padding: clamp(120px, 16vw, 180px) 0 clamp(60px, 9vw, 100px);
  text-align: center;
  background: linear-gradient(180deg, var(--av-bg) 0%, var(--av-bg-alt) 100%);
  overflow: hidden;
}

.av-page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--av-primary) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.14;
  pointer-events: none;
}

.av-page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  max-width: 520px;
  max-height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--av-peach) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
}

.av-page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.av-page-hero .av-h1 {
  margin-bottom: var(--av-space-3);
}

.av-page-hero .av-body-lg {
  margin: 0 auto;
  max-width: 640px;
}

/* Hero with side illustration (Contact / Flashcards) */
.av-page-hero--split .av-page-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(400px, 42%, 500px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  text-align: left;
  max-width: var(--av-max-width);
}

.av-page-hero--split .av-body-lg {
  margin-left: 0;
}

/* ==========================================================================
   "COMING SOON" UI — Flashcards page (and any future pre-launch sections)
   ========================================================================== */
.av-label--soon {
  background: var(--av-secondary-soft);
  color: var(--av-secondary-dark);
  padding: 6px 14px;
  border-radius: var(--av-radius-full);
  border: 1px solid rgba(201, 169, 97, 0.3);
  letter-spacing: 0.12em;
  font-size: 11px;
}

.av-label--soon::before {
  display: none; /* swap dot for the clock icon supplied inline in PHP */
}

.av-label--soon svg {
  margin-right: 4px;
}

.av-page-hero__actions {
  margin-top: var(--av-space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--av-space-2);
}

.av-soon-banner {
  position: relative;
  background: linear-gradient(135deg, var(--av-primary) 0%, var(--av-primary-dark) 100%);
  border-radius: var(--av-radius-xl);
  padding: var(--av-space-4) var(--av-space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--av-space-4);
  color: var(--av-text-on-primary);
  margin-bottom: var(--av-space-8);
  overflow: hidden;
  box-shadow: var(--av-shadow-md);
}

.av-soon-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 50%;
  height: 200%;
  background: radial-gradient(closest-side, rgba(201, 169, 97, 0.22), transparent 70%);
  pointer-events: none;
}

.av-soon-banner__icon {
  position: relative;
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.18);
  color: var(--av-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 169, 97, 0.35);
  animation: av-soon-pulse 2.4s ease-in-out infinite;
}

@keyframes av-soon-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.5);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(201, 169, 97, 0);
  }
}

.av-soon-banner__content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.av-soon-banner__title {
  font-family: var(--av-font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--av-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.av-soon-banner p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  color: rgba(255, 252, 247, 0.9);
}

.av-soon-banner .av-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .av-soon-banner {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
    padding: var(--av-space-4);
  }

  .av-soon-banner__icon {
    margin: 0 auto;
  }

  .av-soon-banner .av-btn {
    width: 100%;
  }
}

/* ==========================================================================
   ACCESS BANNER — premium plum w/ gold accent
   ========================================================================== */
.av-access-banner {
  position: relative;
  background: linear-gradient(135deg, var(--av-primary) 0%, var(--av-primary-dark) 100%);
  border-radius: var(--av-radius-xl);
  padding: var(--av-space-4) var(--av-space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--av-space-4);
  color: var(--av-text-on-primary);
  margin-bottom: var(--av-space-8);
  overflow: hidden;
  box-shadow: var(--av-shadow-md);
}

.av-access-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 50%;
  height: 200%;
  background: radial-gradient(closest-side, rgba(201, 169, 97, 0.22), transparent 70%);
  pointer-events: none;
}

.av-access-banner__icon {
  position: relative;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.18);
  color: var(--av-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 169, 97, 0.3);
}

.av-access-banner__content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.av-access-banner__title {
  font-family: var(--av-font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--av-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.av-access-banner p {
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  color: rgba(255, 252, 247, 0.92);
}

.av-access-banner .av-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ==========================================================================
   LOCKED BUTTON — for non-logged-in users
   ========================================================================== */
.av-btn--locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--av-font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--av-radius-full);
  background: var(--av-secondary-soft);
  color: var(--av-primary);
  border: 1.5px dashed var(--av-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--av-duration-fast) ease,
              color var(--av-duration-fast) ease,
              border-color var(--av-duration-fast) ease,
              transform var(--av-duration-fast) ease;
  width: 100%;
  min-height: 44px;
}

.av-btn--locked:hover {
  background: var(--av-primary);
  color: var(--av-secondary);
  border-color: var(--av-primary);
  border-style: solid;
  transform: translateY(-1px);
}

.av-btn--locked svg {
  flex-shrink: 0;
}

.av-locked-text {
  font-weight: 600;
}

/* ==========================================================================
   ALL EXAMS — FILTER TABS
   ========================================================================== */
.av-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--av-space-6);
  padding: 6px;
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-full);
  max-width: max-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--av-shadow-sm);
}

.av-filter-tab {
  font-family: var(--av-font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--av-radius-full);
  border: none;
  background: transparent;
  color: var(--av-text-secondary);
  cursor: pointer;
  transition: background var(--av-duration-fast) ease,
              color var(--av-duration-fast) ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.av-filter-tab:hover {
  color: var(--av-primary);
  background: var(--av-primary-tint);
}

.av-filter-tab.is-active {
  background: var(--av-primary);
  color: var(--av-secondary);
  box-shadow: 0 4px 12px rgba(31, 10, 44, 0.18);
}

/* ==========================================================================
   ALL EXAMS — EXAM GRID
   ========================================================================== */
.av-exam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--av-space-3);
}

.av-exam-grid-card {
  position: relative;
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  padding: var(--av-space-5);
  text-align: center;
  transition: transform var(--av-duration) var(--av-ease),
              box-shadow var(--av-duration) var(--av-ease),
              border-color var(--av-duration) var(--av-ease),
              opacity 0.4s ease;
  display: flex;
  flex-direction: column;
}

.av-exam-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--av-shadow-lg);
  border-color: var(--av-secondary);
}

.av-exam-grid-card.is-hidden {
  display: none;
}

.av-exam-grid-card.is-fading-in {
  animation: av-fadeIn 0.45s var(--av-ease) both;
}

@keyframes av-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.av-exam-grid-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--av-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--av-space-3);
  background: var(--av-primary-light);
  color: var(--av-primary);
  position: relative;
  transition: transform var(--av-duration) var(--av-ease-spring);
}

.av-exam-grid-card:hover .av-exam-grid-card__icon {
  transform: scale(1.06) rotate(-3deg);
}

.av-exam-grid-card__icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--av-radius-md) + 4px);
  border: 1px solid var(--av-secondary);
  opacity: 0;
  transition: opacity var(--av-duration) ease;
}

.av-exam-grid-card:hover .av-exam-grid-card__icon::after {
  opacity: 0.5;
}

.av-exam-grid-card__name {
  font-family: var(--av-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--av-dark);
  margin-bottom: 4px;
  line-height: 1.25;
}

.av-exam-grid-card__count {
  font-size: 13px;
  color: var(--av-text-muted);
  margin-bottom: var(--av-space-3);
  font-family: var(--av-font-heading);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.av-exam-grid-card .av-btn,
.av-exam-grid-card .av-btn--locked {
  width: 100%;
  font-size: 14px;
  padding: 11px 18px;
  margin-top: auto;
}

/* "Don't see your exam?" CTA card variant */
.av-exam-grid-card--cta {
  background: linear-gradient(160deg, var(--av-primary) 0%, var(--av-primary-deep) 100%);
  border: 1px solid var(--av-primary-dark);
  color: var(--av-text-on-primary);
  position: relative;
  overflow: hidden;
}

.av-exam-grid-card--cta::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(201, 169, 97, 0.22), transparent 70%);
  pointer-events: none;
}

.av-exam-grid-card--cta > * {
  position: relative;
  z-index: 1;
}

.av-exam-grid-card--cta .av-exam-grid-card__icon {
  background: rgba(201, 169, 97, 0.18);
  color: var(--av-secondary);
}

.av-exam-grid-card--cta .av-exam-grid-card__name,
.av-exam-grid-card--cta h3 {
  color: var(--av-text-on-primary);
}

.av-exam-grid-card--cta p {
  color: rgba(255, 252, 247, 0.78);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: var(--av-space-3);
}

/* ==========================================================================
   FLASHCARDS — INTERACTIVE DEMO CARD (3D flip)
   Aspect-ratio locked landscape card — 1.5:1 (matches a real index card).
   ========================================================================== */
.av-flashcard-demo {
  max-width: 500px;
  margin: 0 auto var(--av-space-5);
  perspective: 1600px;
  -webkit-perspective: 1600px;
}

.av-flashcard-demo__card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5 / 1;
  min-height: 260px; /* fallback for browsers w/o aspect-ratio */
  transition: transform 0.85s cubic-bezier(0.34, 1.2, 0.64, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  cursor: pointer;
  outline: none;
  will-change: transform;
  transform-origin: center center;
}

/* Mouse-only subtle tilt — hints the card is clickable and 3D */
@media (hover: hover) and (pointer: fine) {
  .av-flashcard-demo__card:not(.is-flipped):hover {
    transform: rotateY(-10deg) rotateX(3deg);
  }
}

.av-flashcard-demo__card:focus-visible {
  outline: 3px solid var(--av-secondary);
  outline-offset: 6px;
  border-radius: var(--av-radius-xl);
}

.av-flashcard-demo__card.is-flipped {
  transform: rotateY(180deg);
}

.av-flashcard-demo__front,
.av-flashcard-demo__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--av-radius-xl);
  padding: clamp(1.25rem, 4%, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--av-shadow-xl);
  overflow: hidden;
  -webkit-transform: translateZ(0); /* Safari layer promotion */
}

.av-flashcard-demo__front {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
}

.av-flashcard-demo__front::before,
.av-flashcard-demo__back::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--av-secondary) 0%, var(--av-peach) 100%);
}

.av-flashcard-demo__front .av-label {
  margin-bottom: var(--av-space-2);
}

.av-flashcard-demo__front p {
  font-family: var(--av-font-heading);
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 600;
  color: var(--av-dark);
  line-height: 1.4;
  margin: 0;
  max-width: 360px;
}

.av-flashcard-demo__back {
  background: linear-gradient(160deg, var(--av-primary) 0%, var(--av-primary-dark) 100%);
  color: var(--av-text-on-primary);
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  border: 1px solid var(--av-primary-dark);
}

.av-flashcard-demo__back::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(closest-side, rgba(201, 169, 97, 0.18), transparent 70%);
  pointer-events: none;
}

.av-flashcard-demo__back .av-label {
  color: var(--av-secondary);
  margin-bottom: var(--av-space-2);
  position: relative;
  z-index: 1;
}

.av-flashcard-demo__back .av-label::before {
  background: var(--av-secondary);
}

.av-flashcard-demo__back p {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.55;
  color: rgba(255, 252, 247, 0.95);
  margin: 0;
  max-width: 360px;
  position: relative;
  z-index: 1;
}

.av-flashcard-demo__hint {
  text-align: center;
  font-family: var(--av-font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--av-text-muted);
  margin: var(--av-space-3) 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 100%;
  justify-content: center;
  user-select: none;
  transition: color var(--av-duration-fast) ease;
}

.av-flashcard-demo__card:hover + .av-flashcard-demo__hint,
.av-flashcard-demo__card.is-flipped + .av-flashcard-demo__hint {
  color: var(--av-primary);
}

.av-flashcard-demo__hint svg {
  color: var(--av-secondary);
  animation: av-flip-pulse 2.5s ease-in-out infinite;
}

@keyframes av-flip-pulse {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(180deg); }
}

/* Flashcard features (3-up) */
.av-flash-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--av-space-4);
}

.av-flash-feature {
  display: flex;
  gap: var(--av-space-3);
  align-items: flex-start;
  padding: var(--av-space-4);
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  transition: transform var(--av-duration) var(--av-ease),
              box-shadow var(--av-duration) var(--av-ease),
              border-color var(--av-duration) var(--av-ease);
}

.av-flash-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--av-shadow-md);
  border-color: var(--av-secondary);
}

.av-flash-feature__icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--av-radius-md);
  background: var(--av-primary);
  color: var(--av-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--av-duration) var(--av-ease-spring);
}

.av-flash-feature:hover .av-flash-feature__icon {
  transform: scale(1.08) rotate(-3deg);
}

.av-flash-feature__body {
  flex: 1;
}

.av-flash-feature .av-h4 {
  margin-bottom: 4px;
  font-size: 18px;
}

.av-flash-feature .av-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   ABOUT — MISSION SECTION
   ========================================================================== */
.av-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.av-mission__visual {
  background: linear-gradient(135deg, var(--av-primary-tint) 0%, var(--av-secondary-soft) 100%);
  border-radius: var(--av-radius-xl);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--av-border);
}

.av-mission__visual::before,
.av-mission__visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.av-mission__visual::before {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--av-secondary) 0%, transparent 70%);
  opacity: 0.32;
  top: -40px;
  right: -40px;
  filter: blur(40px);
}

.av-mission__visual::after {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--av-primary) 0%, transparent 70%);
  opacity: 0.22;
  bottom: -40px;
  left: -40px;
  filter: blur(50px);
}

.av-mission__visual-icon {
  position: relative;
  z-index: 1;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--av-primary) 0%, var(--av-primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--av-secondary);
  animation: av-pulse-gold 4s ease-in-out infinite;
  box-shadow: 0 12px 48px rgba(31, 10, 44, 0.25);
}

@keyframes av-pulse-gold {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 48px rgba(31, 10, 44, 0.25),
                0 0 0 0 rgba(201, 169, 97, 0.5);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 12px 48px rgba(31, 10, 44, 0.25),
                0 0 0 24px rgba(201, 169, 97, 0);
  }
}

.av-mission__content .av-h2 {
  margin-bottom: var(--av-space-3);
}

.av-mission__content .av-body-lg {
  margin: 0;
}

/* ==========================================================================
   ABOUT — VALUES (3 cards)
   ========================================================================== */
.av-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--av-space-4);
}

.av-value-card {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  padding: var(--av-space-6) var(--av-space-5);
  text-align: center;
  transition: transform var(--av-duration) var(--av-ease),
              box-shadow var(--av-duration) var(--av-ease),
              border-color var(--av-duration) var(--av-ease);
  position: relative;
}

.av-value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--av-shadow-lg);
  border-color: var(--av-secondary);
}

.av-value-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--av-space-3);
  transition: transform var(--av-duration) var(--av-ease-spring);
  position: relative;
}

.av-value-card__icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed var(--av-secondary);
  opacity: 0;
  transition: opacity var(--av-duration) ease,
              transform var(--av-duration) ease;
}

.av-value-card:hover .av-value-card__icon {
  transform: scale(1.06);
}

.av-value-card:hover .av-value-card__icon::after {
  opacity: 0.6;
  transform: rotate(20deg);
}

.av-value-card__icon--plum {
  background: var(--av-primary-light);
  color: var(--av-primary);
}

.av-value-card__icon--gold {
  background: var(--av-secondary-soft);
  color: var(--av-secondary-dark);
}

.av-value-card__icon--coral {
  background: var(--av-peach-light);
  color: var(--av-cta);
}

.av-value-card .av-h3 {
  margin-bottom: var(--av-space-2);
  font-size: 22px;
}

.av-value-card .av-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   ABOUT — ANIMATED TIMELINE (3 steps with line drawing)
   ========================================================================== */
.av-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--av-space-4);
  max-width: 1080px;
  margin: 0 auto;
}

.av-timeline__line {
  position: absolute;
  top: 36px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: var(--av-border-strong);
  z-index: 0;
}

.av-timeline__line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--av-secondary) 0%, var(--av-peach) 100%);
  transition: width 1.4s var(--av-ease);
  border-radius: 2px;
}

.av-timeline.is-line-active .av-timeline__line-fill {
  width: 100%;
}

.av-timeline__step {
  text-align: center;
  position: relative;
  padding: 0 var(--av-space-2);
  z-index: 1;
}

.av-timeline__number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--av-bg-white);
  color: var(--av-primary);
  font-family: var(--av-font-heading);
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--av-space-3);
  border: 2px solid var(--av-border-strong);
  position: relative;
  z-index: 2;
  transition: background var(--av-duration) var(--av-ease),
              color var(--av-duration) var(--av-ease),
              border-color var(--av-duration) var(--av-ease),
              box-shadow var(--av-duration) var(--av-ease),
              transform var(--av-duration) var(--av-ease-spring);
}

.av-timeline__step.is-active .av-timeline__number {
  background: linear-gradient(135deg, var(--av-primary) 0%, var(--av-primary-dark) 100%);
  color: var(--av-secondary);
  border-color: var(--av-primary);
  box-shadow: 0 12px 32px rgba(31, 10, 44, 0.22);
  transform: scale(1.05);
}

.av-timeline__number::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dashed var(--av-secondary);
  opacity: 0;
  transition: opacity var(--av-duration) ease;
}

.av-timeline__step.is-active .av-timeline__number::before {
  opacity: 0.55;
}

.av-timeline__step .av-h3 {
  margin-bottom: var(--av-space-2);
  font-size: 22px;
}

.av-timeline__step .av-body {
  margin: 0 auto;
  max-width: 320px;
  font-size: 15px;
}

/* ==========================================================================
   ABOUT — STATS (4 counters w/ gold gradient text)
   ========================================================================== */
.av-about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--av-space-4);
  text-align: center;
  position: relative;
  z-index: 1;
}

.av-about-stats__item {
  padding: var(--av-space-4) var(--av-space-2);
  position: relative;
}

.av-about-stats__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(201, 169, 97, 0.32) 50%, transparent 100%);
}

.av-about-stats__number {
  font-family: var(--av-font-heading);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--av-space-2);
  letter-spacing: -1.5px;
  background: linear-gradient(180deg, var(--av-secondary) 0%, var(--av-secondary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.av-about-stats__label {
  font-family: var(--av-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: rgba(248, 244, 238, 0.78);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   CONTACT — HERO SPEECH BUBBLE ILLUSTRATION
   ========================================================================== */
.av-speech-bubble {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 1.1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.av-speech-bubble__bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--av-primary-tint) 0%, var(--av-secondary-soft) 100%);
  border: 1px solid var(--av-border);
}

.av-speech-bubble__bubble {
  position: relative;
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: 28px;
  padding: 22px 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--av-shadow-lg);
  animation: av-bubble-bob 3.6s ease-in-out infinite;
}

.av-speech-bubble__bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 32px;
  width: 24px;
  height: 24px;
  background: var(--av-bg-white);
  border-right: 1px solid var(--av-border);
  border-bottom: 1px solid var(--av-border);
  transform: rotate(45deg);
}

@keyframes av-bubble-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.av-speech-bubble__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--av-primary);
  display: inline-block;
  animation: av-dot-pulse 1.4s ease-in-out infinite;
}

.av-speech-bubble__dot:nth-child(2) { animation-delay: 0.18s; background: var(--av-secondary); }
.av-speech-bubble__dot:nth-child(3) { animation-delay: 0.36s; background: var(--av-cta); }

@keyframes av-dot-pulse {
  0%, 60%, 100% { transform: scale(1);   opacity: 0.6; }
  30%           { transform: scale(1.4); opacity: 1;   }
}

/* Floating mini decorations */
.av-speech-bubble__star,
.av-speech-bubble__heart {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--av-bg-white);
  box-shadow: var(--av-shadow-md);
  animation: av-card-float 6s ease-in-out infinite;
}

.av-speech-bubble__star {
  width: 56px;
  height: 56px;
  top: 12%;
  right: 8%;
  color: var(--av-secondary-dark);
  animation-delay: -2s;
}

.av-speech-bubble__heart {
  width: 52px;
  height: 52px;
  bottom: 14%;
  left: 6%;
  color: var(--av-cta);
  animation-delay: -4s;
}

@keyframes av-card-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ==========================================================================
   CONTACT — FORM
   ========================================================================== */
.av-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.av-contact-form-wrap {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  box-shadow: var(--av-shadow-md);
  overflow: hidden;
}

.av-contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--av-secondary) 0%, var(--av-peach) 100%);
}

.av-contact-form-wrap .av-h3 {
  margin-bottom: var(--av-space-4);
}

.av-form-field {
  margin-bottom: var(--av-space-3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--av-ease), transform 0.5s var(--av-ease);
}

.av-form-field.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.av-form-field:nth-child(1).is-visible { transition-delay: 80ms;  }
.av-form-field:nth-child(2).is-visible { transition-delay: 160ms; }
.av-form-field:nth-child(3).is-visible { transition-delay: 240ms; }
.av-form-field:nth-child(4).is-visible { transition-delay: 320ms; }
.av-form-field:nth-child(5).is-visible { transition-delay: 400ms; }

.av-form-field label {
  display: block;
  font-family: var(--av-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--av-dark);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.av-form-input,
.av-form-select,
.av-form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--av-border);
  border-radius: var(--av-radius-md);
  font-family: var(--av-font-body);
  font-size: 15px;
  color: var(--av-text);
  background: var(--av-bg);
  transition: border-color var(--av-duration-fast) ease,
              background var(--av-duration-fast) ease,
              box-shadow var(--av-duration-fast) ease;
}

.av-form-input::placeholder,
.av-form-textarea::placeholder {
  color: var(--av-text-muted);
}

.av-form-input:hover,
.av-form-select:hover,
.av-form-textarea:hover {
  border-color: var(--av-border-strong);
}

.av-form-input:focus,
.av-form-select:focus,
.av-form-textarea:focus {
  outline: none;
  border-color: var(--av-secondary);
  background: var(--av-bg-white);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.18);
}

.av-form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.65;
}

.av-form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A8593' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}

.av-contact-form-wrap .av-btn {
  width: 100%;
  margin-top: var(--av-space-2);
}

/* Inline error banner above the contact form */
.av-form-error {
  display: none;
  background: var(--av-peach-light);
  border: 1px solid rgba(232, 93, 60, 0.3);
  border-radius: var(--av-radius-md);
  color: var(--av-cta-hover);
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: var(--av-space-3);
}

.av-form-error.is-visible {
  display: block;
}

/* Honeypot — visible to bots in HTML, hidden from humans visually */
.av-form-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Form success state — animated checkmark */
.av-form-success {
  display: none;
  text-align: center;
  padding: var(--av-space-5) var(--av-space-3);
}

.av-contact-form-wrap.is-submitted .av-contact-form { display: none; }
.av-contact-form-wrap.is-submitted .av-form-success { display: block; }

.av-form-success__check {
  width: 88px;
  height: 88px;
  margin: 0 auto var(--av-space-3);
  position: relative;
}

.av-form-success__check svg {
  width: 100%;
  height: 100%;
}

.av-form-success__check circle {
  stroke: var(--av-secondary);
  stroke-width: 3;
  fill: var(--av-secondary-soft);
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: av-check-circle 0.7s var(--av-ease) 0.05s forwards;
}

.av-form-success__check path {
  stroke: var(--av-primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: av-check-stroke 0.5s var(--av-ease) 0.7s forwards;
}

@keyframes av-check-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes av-check-stroke {
  to { stroke-dashoffset: 0; }
}

.av-form-success__title {
  font-family: var(--av-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--av-dark);
  margin-bottom: var(--av-space-1);
}

.av-form-success__msg {
  font-size: 15px;
  color: var(--av-text-secondary);
  margin: 0;
  line-height: 1.65;
}

/* Contact info cards (right column) */
.av-contact-info > .av-h3 {
  margin-bottom: var(--av-space-3);
}

.av-contact-info-card {
  display: flex;
  gap: var(--av-space-3);
  align-items: flex-start;
  padding: var(--av-space-4);
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  margin-bottom: var(--av-space-2);
  transition: transform var(--av-duration) var(--av-ease),
              box-shadow var(--av-duration) var(--av-ease),
              border-color var(--av-duration) var(--av-ease);
}

.av-contact-info-card:hover {
  transform: translateX(4px);
  box-shadow: var(--av-shadow-md);
  border-color: var(--av-secondary);
}

.av-contact-info-card__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--av-radius-md);
  background: var(--av-primary);
  color: var(--av-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.av-contact-info-card__title {
  font-family: var(--av-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--av-dark);
  margin-bottom: 2px;
}

.av-contact-info-card__text {
  font-size: 15px;
  color: var(--av-primary);
  font-weight: 600;
  margin-bottom: 4px;
  word-break: break-word;
}

.av-contact-info-card__sub {
  font-size: 13px;
  color: var(--av-text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   SHARED — CTA SECTION
   ========================================================================== */
.av-cta-section {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.av-cta-section .av-h2 {
  margin-bottom: var(--av-space-3);
}

.av-cta-section .av-body-lg {
  margin-bottom: var(--av-space-5);
}

/* ==========================================================================
   REGISTER PAGE — branded signup form
   ========================================================================== */
.av-register-section {
  position: relative;
  padding: clamp(120px, 14vw, 180px) 0 clamp(60px, 9vw, 100px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--av-bg) 0%, var(--av-bg-alt) 100%);
}

.av-register-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.av-register-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.av-register-bg__orb--1 {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, var(--av-primary) 0%, transparent 70%);
  opacity: 0.14;
  top: -20%;
  right: -10%;
}

.av-register-bg__orb--2 {
  width: 38vw;
  height: 38vw;
  max-width: 480px;
  max-height: 480px;
  background: radial-gradient(circle, var(--av-peach) 0%, transparent 70%);
  opacity: 0.22;
  bottom: -15%;
  left: -8%;
}

.av-register-section .av-container {
  position: relative;
  z-index: 1;
}

.av-register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Left column — pitch */
.av-register-pitch__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--av-font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--av-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  margin-bottom: var(--av-space-4);
  transition: color 200ms ease;
}

.av-register-pitch__logo:hover {
  color: var(--av-primary-dark);
}

.av-register-pitch__logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--av-secondary);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.22);
}

.av-register-pitch__title {
  margin: var(--av-space-2) 0 var(--av-space-3);
  line-height: 1.18;
}

.av-register-pitch__lead {
  margin-bottom: var(--av-space-4);
}

.av-register-pitch__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--av-space-2);
}

.av-register-pitch__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--av-space-2);
  font-family: var(--av-font-body);
  font-size: 15px;
  color: var(--av-text-secondary);
  line-height: 1.55;
}

.av-register-pitch__check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--av-primary);
  color: var(--av-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 4px 10px rgba(31, 10, 44, 0.14);
}

/* Right column — form card */
.av-register-card {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(31, 10, 44, 0.10),
              0 4px 14px rgba(31, 10, 44, 0.06);
}

.av-register-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--av-secondary) 0%, var(--av-peach) 100%);
}

.av-register-card__header {
  margin-bottom: var(--av-space-4);
}

.av-register-card__title {
  margin: 0 0 6px;
}

.av-register-card__sub {
  font-size: 14px;
  color: var(--av-text-muted);
  margin: 0;
}

/* Status message (errors / success) */
.av-register-message {
  display: none;
  padding: 12px 16px;
  border-radius: var(--av-radius-md);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--av-space-3);
  border: 1px solid transparent;
}

.av-register-message.is-visible {
  display: block;
}

.av-register-message.is-error {
  background: var(--av-peach-light);
  color: var(--av-cta-hover);
  border-color: rgba(232, 93, 60, 0.25);
}

.av-register-message.is-success {
  background: var(--av-secondary-soft);
  color: var(--av-secondary-dark);
  border-color: rgba(201, 169, 97, 0.4);
}

/* Form fields (overrides for register-specific styling) */
.av-register-form .av-form-field {
  margin-bottom: var(--av-space-3);
  opacity: 1;
  transform: none;
}

.av-form-hint {
  font-size: 12px;
  color: var(--av-text-muted);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* Password show/hide toggle */
.av-form-pw-wrap {
  position: relative;
}

.av-form-pw-wrap .av-form-input {
  padding-right: 50px;
}

.av-form-pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: var(--av-radius-sm);
  border: none;
  background: transparent;
  color: var(--av-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, color 200ms ease;
}

.av-form-pw-toggle:hover {
  background: var(--av-primary-tint);
  color: var(--av-primary);
}

.av-form-pw-toggle .av-form-pw-eye-off { display: none; }
.av-form-pw-toggle[data-state="visible"] .av-form-pw-eye { display: none; }
.av-form-pw-toggle[data-state="visible"] .av-form-pw-eye-off { display: block; }

/* Submit button + spinner */
.av-register-form__submit {
  width: 100%;
  position: relative;
  margin-top: var(--av-space-2);
}

.av-register-form__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  animation: av-spin 0.8s linear infinite;
}

.av-register-form.is-submitting .av-register-form__btn-label,
.av-register-form.is-submitting .av-register-form__submit svg {
  display: none;
}

.av-register-form.is-submitting .av-register-form__spinner {
  display: inline-block;
}

.av-register-form.is-submitting .av-register-form__submit {
  pointer-events: none;
  opacity: 0.85;
}

@keyframes av-spin {
  to { transform: rotate(360deg); }
}

/* Field-level error state */
.av-form-input.is-invalid {
  border-color: var(--av-cta) !important;
  background: var(--av-peach-light) !important;
}

.av-register-form__terms,
.av-register-form__login-link {
  text-align: center;
  font-size: 14px;
  color: var(--av-text-secondary);
  line-height: 1.6;
  margin: var(--av-space-3) 0 0;
}

.av-register-form__terms a,
.av-register-form__login-link a {
  color: var(--av-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.av-register-form__terms a:hover,
.av-register-form__login-link a:hover {
  color: var(--av-primary-dark);
  border-bottom-color: var(--av-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  .av-register-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }

  .av-register-pitch {
    text-align: center;
  }

  .av-register-pitch .av-label {
    justify-content: center;
  }

  .av-register-pitch__list {
    max-width: 440px;
    margin: 0 auto;
  }

  .av-register-pitch__list li {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .av-register-card {
    padding: var(--av-space-4) var(--av-space-3);
  }
}

/* ==========================================================================
   STUDENT DASHBOARD
   ========================================================================== */

/* ---------- Welcome hero ---------- */
.av-dashboard-hero {
  position: relative;
  padding: clamp(110px, 14vw, 160px) 0 clamp(40px, 6vw, 64px);
  background: linear-gradient(180deg, var(--av-bg) 0%, var(--av-bg-alt) 100%);
  overflow: hidden;
}

.av-dashboard-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.av-dashboard-hero__orb {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 580px;
  max-height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--av-primary) 0%, transparent 70%);
  filter: blur(100px);
  opacity: 0.15;
}

.av-dashboard-hero .av-container {
  position: relative;
  z-index: 1;
}

.av-dashboard-hero__content {
  max-width: 760px;
}

.av-dashboard-hero__title {
  margin: var(--av-space-2) 0 var(--av-space-2);
  line-height: 1.1;
}

.av-dashboard-hero__subline {
  display: block;
  font-weight: 600;
  margin-top: 6px;
}

.av-dashboard-hero__lead {
  margin: 0;
}

/* ---------- Stats bar ---------- */
.av-dashboard-stats-section { padding-bottom: clamp(40px, 6vw, 72px); }

.av-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--av-space-3);
}

.av-stat-card {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  padding: var(--av-space-4) var(--av-space-4);
  transition: transform var(--av-duration) var(--av-ease),
              box-shadow var(--av-duration) var(--av-ease),
              border-color var(--av-duration) var(--av-ease);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--av-space-2);
}

.av-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--av-shadow-md);
  border-color: var(--av-secondary);
}

.av-stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--av-radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.av-stat-card__icon--plum  { background: var(--av-primary-light);  color: var(--av-primary); }
.av-stat-card__icon--gold  { background: var(--av-secondary-soft); color: var(--av-secondary-dark); }
.av-stat-card__icon--coral { background: var(--av-peach-light);    color: var(--av-cta); }
.av-stat-card__icon--peach { background: var(--av-peach-light);    color: var(--av-peach); }

.av-stat-card__value {
  font-family: var(--av-font-heading);
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 800;
  color: var(--av-dark);
  line-height: 1;
  letter-spacing: -0.5px;
}

.av-stat-card__label {
  font-family: var(--av-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--av-text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Section header (left-aligned variant for dashboard) ---------- */
.av-section-header--left {
  text-align: left;
  margin-left: 0;
  max-width: 720px;
  margin-bottom: var(--av-space-5);
}

.av-section-header--left .av-h2,
.av-section-header--left .av-h3 {
  margin-bottom: var(--av-space-1);
}

.av-section-header--left .av-body {
  margin: 0;
}

/* ---------- Exam progress card grid ---------- */
.av-exam-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--av-space-3);
}

.av-exam-progress-card {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  padding: var(--av-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--av-space-3);
  transition: transform var(--av-duration) var(--av-ease),
              box-shadow var(--av-duration) var(--av-ease),
              border-color var(--av-duration) var(--av-ease);
}

.av-exam-progress-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--av-shadow-lg);
  border-color: var(--av-secondary);
}

.av-exam-progress-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--av-space-2);
}

.av-exam-progress-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--av-radius-md);
  background: var(--av-primary-light);
  color: var(--av-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.av-exam-progress-card__score {
  font-family: var(--av-font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--av-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--av-secondary-soft);
  border: 1px solid rgba(201, 169, 97, 0.3);
  padding: 4px 10px;
  border-radius: var(--av-radius-full);
}

.av-exam-progress-card__score strong {
  color: var(--av-secondary-dark);
  font-weight: 800;
  font-size: 13px;
}

.av-exam-progress-card__name {
  font-family: var(--av-font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--av-dark);
  line-height: 1.25;
  margin: 0;
}

.av-exam-progress-card__progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.av-exam-progress-card__progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--av-font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--av-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.av-exam-progress-card__progress-bar {
  width: 100%;
  height: 8px;
  background: var(--av-bg-alt);
  border-radius: 4px;
  overflow: hidden;
}

.av-exam-progress-card__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--av-primary) 0%, var(--av-secondary) 100%);
  border-radius: 4px;
  transition: width 0.8s var(--av-ease);
  min-width: 0;
}

.av-exam-progress-card__btn {
  width: 100%;
  font-size: 14px;
  padding: 11px 18px;
  margin-top: auto;
}

/* ---------- Empty state — access code ---------- */
.av-empty-state {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-xl);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(31, 10, 44, 0.06);
}

.av-empty-state::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--av-secondary) 0%, var(--av-peach) 100%);
}

.av-empty-state__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--av-primary) 0%, var(--av-primary-dark) 100%);
  color: var(--av-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--av-space-3);
  box-shadow: 0 12px 32px rgba(31, 10, 44, 0.18);
}

.av-empty-state__title {
  margin: 0 0 var(--av-space-2);
}

.av-empty-state__lead {
  margin: 0 auto var(--av-space-4);
  max-width: 520px;
}

.av-access-code-form {
  max-width: 520px;
  margin: 0 auto;
}

.av-access-code-form__row {
  display: flex;
  gap: var(--av-space-2);
  margin-bottom: var(--av-space-2);
}

.av-access-code-form__input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--av-font-heading);
  font-weight: 600;
}

.av-access-code-form__input::placeholder {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

.av-access-code-form__btn {
  flex-shrink: 0;
  position: relative;
}

.av-access-code-form__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: #FFFFFF;
  animation: av-spin 0.8s linear infinite;
}

.av-access-code-form.is-submitting .av-access-code-form__btn-label,
.av-access-code-form.is-submitting .av-access-code-form__btn svg {
  display: none;
}

.av-access-code-form.is-submitting .av-access-code-form__spinner {
  display: inline-block;
}

.av-access-code-form.is-submitting .av-access-code-form__btn {
  pointer-events: none;
  opacity: 0.85;
}

.av-access-code-form__message {
  display: none;
  margin: var(--av-space-2) 0;
  padding: 12px 16px;
  border-radius: var(--av-radius-md);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  border: 1px solid transparent;
}

.av-access-code-form__message.is-visible { display: block; }
.av-access-code-form__message.is-error {
  background: var(--av-peach-light);
  color: var(--av-cta-hover);
  border-color: rgba(232, 93, 60, 0.25);
}
.av-access-code-form__message.is-success {
  background: var(--av-secondary-soft);
  color: var(--av-secondary-dark);
  border-color: rgba(201, 169, 97, 0.4);
}

.av-access-code-form__hint {
  font-size: 13px;
  color: var(--av-text-muted);
  margin: var(--av-space-2) 0 0;
}

.av-access-code-form__hint a {
  color: var(--av-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--av-duration-fast) ease, color var(--av-duration-fast) ease;
}

.av-access-code-form__hint a:hover {
  color: var(--av-primary-dark);
  border-bottom-color: var(--av-secondary);
}

/* ==========================================================================
   DASHBOARD — verification + access-code tabs
   ========================================================================== */

.av-empty-state__icon--pending {
  background: linear-gradient(135deg, var(--av-secondary) 0%, var(--av-secondary-dark) 100%);
  color: var(--av-primary);
  animation: av-soon-pulse 2.4s ease-in-out infinite;
}

.av-verify-rejected {
  background: var(--av-peach-light);
  border: 1px solid rgba(232, 93, 60, 0.3);
  border-radius: var(--av-radius-md);
  padding: 14px 18px;
  margin: 0 auto var(--av-space-4);
  max-width: 520px;
  text-align: left;
  font-size: 14px;
  line-height: 1.55;
  color: var(--av-cta-hover);
}

.av-verify-rejected strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.av-verify-rejected small {
  display: block;
  margin-top: 6px;
  color: var(--av-text-muted);
  font-size: 12px;
}

/* ==========================================================================
   SEARCHABLE SELECT — reusable combobox for long option lists
   Native <select> stays in the DOM (handles form submission + a11y),
   JS hides it and renders a button + filterable dropdown.
   ========================================================================== */
.av-searchable-select {
  position: relative;
  width: 100%;
}

.av-searchable-select select {
  /* hidden but kept in DOM so the form posts the right value */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.av-searchable-select__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--av-space-2);
  padding: 14px 16px;
  background: var(--av-bg);
  border: 1.5px solid var(--av-border);
  border-radius: var(--av-radius-md);
  font-family: var(--av-font-body);
  font-size: 15px;
  color: var(--av-text);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--av-duration-fast) ease,
              background var(--av-duration-fast) ease,
              box-shadow var(--av-duration-fast) ease;
}

.av-searchable-select__button:hover {
  border-color: var(--av-border-strong);
}

.av-searchable-select__button[aria-expanded="true"],
.av-searchable-select__button:focus-visible {
  outline: none;
  border-color: var(--av-secondary);
  background: var(--av-bg-white);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.18);
}

.av-searchable-select__label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.av-searchable-select__label.is-placeholder {
  color: var(--av-text-muted);
}

.av-searchable-select__chevron {
  flex-shrink: 0;
  color: var(--av-text-muted);
  transition: transform var(--av-duration-fast) ease;
  font-size: 11px;
  line-height: 1;
}

.av-searchable-select__button[aria-expanded="true"] .av-searchable-select__chevron {
  transform: rotate(180deg);
}

.av-searchable-select__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-md);
  box-shadow: var(--av-shadow-lg);
  z-index: 50;
  overflow: hidden;
  animation: av-searchable-fade 180ms var(--av-ease) both;
}

@keyframes av-searchable-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.av-searchable-select__search-wrap {
  position: relative;
  padding: 8px 8px 0;
}

.av-searchable-select__search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--av-text-muted);
  pointer-events: none;
  font-size: 14px;
}

.av-searchable-select__search {
  width: 100%;
  padding: 10px 12px 10px 36px;
  background: var(--av-bg);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-sm);
  font-family: var(--av-font-body);
  font-size: 14px;
  color: var(--av-text);
  outline: none;
  transition: border-color var(--av-duration-fast) ease;
}

.av-searchable-select__search:focus {
  border-color: var(--av-secondary);
}

.av-searchable-select__list {
  list-style: none;
  margin: 0;
  padding: 6px 0 8px;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--av-border-strong) transparent;
}

.av-searchable-select__list::-webkit-scrollbar {
  width: 8px;
}
.av-searchable-select__list::-webkit-scrollbar-thumb {
  background: var(--av-border-strong);
  border-radius: 4px;
}

.av-searchable-select__option {
  padding: 10px 16px;
  font-family: var(--av-font-body);
  font-size: 14px;
  color: var(--av-text);
  cursor: pointer;
  transition: background var(--av-duration-fast) ease,
              color var(--av-duration-fast) ease;
}

.av-searchable-select__option:hover,
.av-searchable-select__option.is-active {
  background: var(--av-primary-tint);
  color: var(--av-primary);
}

.av-searchable-select__option.is-selected {
  background: var(--av-primary-light);
  color: var(--av-primary);
  font-weight: 600;
}

.av-searchable-select__empty {
  padding: 14px 16px;
  font-family: var(--av-font-body);
  font-size: 13px;
  color: var(--av-text-muted);
  text-align: center;
}

/* ---------- Photo verification form (primary, default) ---------- */
.av-verify-form {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.av-verify-form .av-form-field {
  margin-bottom: var(--av-space-3);
  opacity: 1;
  transform: none;
}

.av-verify-form .av-form-field label {
  display: block;
  font-family: var(--av-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--av-dark);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* ---------- Collapsible access-code fallback ----------
   Visible-but-secondary pill — students with codes notice it,
   students without codes don't see it as a competing CTA. */
.av-code-fallback {
  max-width: 520px;
  margin: var(--av-space-5) auto 0;
  padding-top: var(--av-space-4);
  border-top: 1px dashed var(--av-border);
  text-align: center;
}

.av-code-fallback__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--av-font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--av-secondary-dark);
  background: var(--av-secondary-soft);
  border: 1.5px solid rgba(201, 169, 97, 0.4);
  cursor: pointer;
  padding: 10px 22px;
  border-radius: var(--av-radius-full);
  transition: background var(--av-duration-fast) ease,
              color var(--av-duration-fast) ease,
              border-color var(--av-duration-fast) ease,
              transform var(--av-duration-fast) ease,
              box-shadow var(--av-duration-fast) ease;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(201, 169, 97, 0.12);
}

.av-code-fallback__toggle:hover {
  background: var(--av-secondary);
  color: var(--av-primary);
  border-color: var(--av-secondary);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(201, 169, 97, 0.32);
}

.av-code-fallback__toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.28);
}

.av-code-fallback__toggle[aria-expanded="true"] {
  background: var(--av-primary);
  color: var(--av-secondary);
  border-color: var(--av-primary);
}

.av-code-fallback__toggle svg {
  flex-shrink: 0;
}

.av-code-fallback__chevron {
  display: inline-block;
  font-size: 11px;
  transition: transform var(--av-duration-fast) ease;
  margin-left: 2px;
  opacity: 0.85;
}

.av-code-fallback__toggle[aria-expanded="true"] .av-code-fallback__chevron {
  transform: rotate(180deg);
}

.av-code-fallback__body {
  margin-top: var(--av-space-3);
  text-align: left;
  animation: av-code-fallback-in 0.3s var(--av-ease) both;
}

@keyframes av-code-fallback-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- File upload (verification) ---------- */
.av-verify-form__hint {
  margin: 6px 0 10px;
}

.av-verify-upload {
  position: relative;
  width: 100%;
  min-height: 140px;
  border: 1.5px dashed var(--av-border-strong);
  border-radius: var(--av-radius-md);
  background: var(--av-bg);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--av-duration-fast) ease,
              background var(--av-duration-fast) ease;
}

.av-verify-upload:hover,
.av-verify-upload.is-dragover {
  border-color: var(--av-secondary);
  background: var(--av-secondary-soft);
}

.av-verify-upload.has-file {
  border-style: solid;
  border-color: var(--av-secondary);
  background: var(--av-bg-white);
  cursor: default;
  min-height: 220px;
}

.av-verify-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.av-verify-upload.has-file input[type="file"] {
  pointer-events: none;
}

.av-verify-upload__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  color: var(--av-text-secondary);
  pointer-events: none;
}

.av-verify-upload__placeholder svg {
  color: var(--av-secondary-dark);
  margin-bottom: 4px;
}

.av-verify-upload__title {
  font-family: var(--av-font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--av-dark);
}

.av-verify-upload__sub {
  font-size: 12px;
  color: var(--av-text-muted);
  letter-spacing: 0.04em;
}

.av-verify-upload.has-file .av-verify-upload__placeholder {
  display: none;
}

.av-verify-upload__preview {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
  background: var(--av-bg-alt);
  border-radius: calc(var(--av-radius-md) - 2px);
  display: block;
}

.av-verify-upload__clear {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(21, 16, 31, 0.7);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--av-duration-fast) ease;
  z-index: 2;
}

.av-verify-upload__clear:hover {
  background: var(--av-primary-dark);
}

/* ---------- Submit + spinner ---------- */
.av-verify-form__submit {
  width: 100%;
  margin-top: var(--av-space-2);
  position: relative;
}

.av-verify-form.is-submitting .av-verify-form__btn-label,
.av-verify-form.is-submitting .av-verify-form__submit svg {
  display: none;
}

.av-verify-form.is-submitting .av-access-code-form__spinner {
  display: inline-block;
}

.av-verify-form.is-submitting .av-verify-form__submit {
  pointer-events: none;
  opacity: 0.85;
}

/* ---------- Quick links grid ---------- */
.av-quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--av-space-3);
}

.av-quick-link {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  padding: var(--av-space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--av-space-3);
  text-decoration: none;
  color: inherit;
  transition: transform var(--av-duration) var(--av-ease),
              box-shadow var(--av-duration) var(--av-ease),
              border-color var(--av-duration) var(--av-ease);
  position: relative;
}

.av-quick-link:hover:not(.av-quick-link--soon) {
  transform: translateY(-3px);
  box-shadow: var(--av-shadow-md);
  border-color: var(--av-secondary);
}

.av-quick-link__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--av-radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.av-quick-link__icon--plum  { background: var(--av-primary-light);  color: var(--av-primary); }
.av-quick-link__icon--gold  { background: var(--av-secondary-soft); color: var(--av-secondary-dark); }
.av-quick-link__icon--peach { background: var(--av-peach-light);    color: var(--av-cta); }

.av-quick-link__body { flex: 1; min-width: 0; }

.av-quick-link__title {
  font-family: var(--av-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--av-dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.av-quick-link p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--av-text-secondary);
  margin: 0;
}

.av-quick-link__arrow {
  color: var(--av-primary);
  display: inline-flex;
  align-items: center;
  align-self: center;
  transition: transform var(--av-duration-fast) ease;
}

.av-quick-link:hover .av-quick-link__arrow {
  transform: translateX(4px);
}

.av-quick-link--soon {
  cursor: not-allowed;
  background: var(--av-bg-alt);
  opacity: 0.85;
}

.av-quick-link--soon .av-quick-link__title {
  color: var(--av-text-secondary);
}

.av-quick-link__badge {
  font-family: var(--av-font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--av-radius-full);
  background: var(--av-secondary-soft);
  color: var(--av-secondary-dark);
  border: 1px solid rgba(201, 169, 97, 0.4);
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .av-dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .av-quick-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .av-dashboard-hero__title {
    font-size: clamp(28px, 6vw, 36px);
  }

  .av-stat-card {
    padding: var(--av-space-3);
  }

  .av-stat-card__value {
    font-size: 28px;
  }

  .av-exam-progress-grid {
    grid-template-columns: 1fr;
  }

  .av-access-code-form__row {
    flex-direction: column;
  }

  .av-access-code-form__btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .av-dashboard-stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--av-space-2);
  }

  .av-stat-card__icon {
    width: 40px;
    height: 40px;
  }

  .av-stat-card__value {
    font-size: 24px;
  }

  .av-empty-state__icon {
    width: 60px;
    height: 60px;
  }
}

/* ==========================================================================
   ACCORDION (kept for FAQ usage)
   ========================================================================== */
.av-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.av-accordion__item {
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-md);
  margin-bottom: var(--av-space-2);
  background: var(--av-bg-white);
  overflow: hidden;
  transition: border-color var(--av-duration) ease,
              box-shadow var(--av-duration) ease;
}

.av-accordion__item:hover {
  border-color: var(--av-secondary);
}

.av-accordion__item.is-open {
  border-color: var(--av-secondary);
  box-shadow: var(--av-shadow-sm);
}

.av-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--av-space-3);
  padding: var(--av-space-3) var(--av-space-4);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--av-font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--av-dark);
  text-align: left;
  line-height: 1.4;
}

.av-accordion__trigger:hover {
  color: var(--av-primary);
}

.av-accordion__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--av-bg-alt);
  color: var(--av-text-secondary);
  transition: background var(--av-duration) ease,
              color var(--av-duration) ease,
              transform var(--av-duration) ease;
}

.av-accordion__item.is-open .av-accordion__icon {
  background: var(--av-primary);
  color: var(--av-secondary);
  transform: rotate(45deg);
}

.av-accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--av-duration) var(--av-ease);
}

.av-accordion__content {
  padding: 0 var(--av-space-4) var(--av-space-4);
  font-size: 15px;
  line-height: 1.8;
  color: var(--av-text-secondary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .av-mission {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .av-mission__visual {
    height: 320px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .av-mission__content .av-label {
    justify-content: center;
  }

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

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

  .av-flash-features {
    grid-template-columns: 1fr;
  }

  .av-contact-grid {
    grid-template-columns: 1fr;
  }

  .av-page-hero--split .av-page-hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .av-page-hero--split .av-body-lg {
    margin-left: auto;
  }

  .av-page-hero--split .av-label {
    justify-content: center;
  }

  .av-speech-bubble {
    max-width: 280px;
    margin-top: var(--av-space-4);
  }

  .av-timeline {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: var(--av-space-5);
  }

  .av-timeline__line {
    top: 40px;
    bottom: 40px;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }

  .av-timeline__line-fill {
    width: 100%;
    height: 0;
    transition: height 1.4s var(--av-ease);
  }

  .av-timeline.is-line-active .av-timeline__line-fill {
    width: 100%;
    height: 100%;
  }

  .av-about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--av-space-3);
  }

  .av-about-stats__item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .av-access-banner {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
    padding: var(--av-space-4);
  }

  .av-access-banner__icon {
    margin: 0 auto;
  }

  .av-access-banner .av-btn {
    width: 100%;
  }

  .av-values__grid {
    grid-template-columns: 1fr;
  }

  .av-value-card {
    padding: var(--av-space-5) var(--av-space-4);
  }

  .av-exam-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--av-space-2);
  }

  .av-exam-grid-card {
    padding: var(--av-space-4) var(--av-space-3);
  }

  .av-filter-tabs {
    padding: 4px;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .av-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .av-filter-tab {
    font-size: 13px;
    padding: 8px 16px;
    flex-shrink: 0;
  }

  .av-flash-feature {
    padding: var(--av-space-3);
  }

  .av-flashcard-demo__card {
    min-height: 280px;
  }

  .av-flashcard-demo__front,
  .av-flashcard-demo__back {
    padding: var(--av-space-5) var(--av-space-4);
  }

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

  .av-about-stats__item::after {
    display: none;
  }

  .av-contact-form-wrap {
    padding: var(--av-space-4);
  }

  .av-page-hero--split {
    padding-bottom: var(--av-space-6);
  }

  .av-speech-bubble {
    max-width: 240px;
  }

  .av-speech-bubble__star {
    width: 44px;
    height: 44px;
  }

  .av-speech-bubble__heart {
    width: 40px;
    height: 40px;
  }
}

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

  .av-exam-grid-card {
    padding: var(--av-space-4);
  }

  .av-about-stats {
    grid-template-columns: 1fr;
    gap: var(--av-space-2);
  }

  .av-about-stats__number {
    font-size: 44px;
  }

  .av-flashcard-demo__card {
    min-height: 240px;
  }

  .av-flashcard-demo__front p {
    font-size: 16px;
  }

  .av-flashcard-demo__back p {
    font-size: 14px;
  }

  .av-mission__visual {
    height: 260px;
  }

  .av-mission__visual-icon {
    width: 100px;
    height: 100px;
  }

  .av-timeline__number {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }

  .av-timeline__line {
    top: 30px;
    bottom: 30px;
  }
}

/* ===================================================================
   SINGLE COURSE PAGE  (single-courses.php)
   Hero + stats + about + practice-test grid + final CTA band.
   =================================================================== */

/* ---------- container narrow variant (used for About) ---------- */
.av-container.av-container--narrow {
  max-width: var(--av-narrow-width);
}

/* ---------- HERO ---------- */
.av-course-hero {
  position: relative;
  padding: var(--av-space-12) 0 var(--av-space-10);
  background: linear-gradient(180deg, var(--av-bg) 0%, var(--av-bg-alt) 100%);
  overflow: hidden;
  isolation: isolate;
}
.av-course-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.av-course-hero__orb {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.28) 0%, rgba(201, 169, 97, 0) 70%);
  border-radius: 50%;
  filter: blur(20px);
}
.av-course-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 920px;
  gap: var(--av-space-4);
  align-items: center;
}
.av-course-hero__title {
  margin: var(--av-space-2) 0 var(--av-space-3);
  color: var(--av-primary);
  line-height: 1.05;
}
.av-course-hero__lead {
  color: var(--av-text-secondary);
  margin-bottom: var(--av-space-5);
  max-width: 56ch;
}
.av-course-hero__actions {
  display: flex;
  gap: var(--av-space-2);
  flex-wrap: wrap;
}

/* ---------- HERO (card variant) ----------
   Combines the old hero + "About this exam" into one clean block at the
   top of the page. Cream-alt background, narrow column, gold label, big
   plum course title, the description rendered in a soft white card, then
   the primary + ghost CTAs. */
.av-course-hero--card {
  padding: var(--av-space-10) 0 var(--av-space-8);
  background: var(--av-bg-alt);
  /* Override the gradient/orb of the old full-bleed hero — this variant
     is meant to look like the existing About card the user already liked. */
}
.av-course-hero--card .av-course-hero__bg,
.av-course-hero--card .av-course-hero__orb {
  display: none !important;
}
.av-course-hero__heading {
  margin-bottom: var(--av-space-4);
}
.av-course-hero--card .av-course-hero__title {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  margin: var(--av-space-2) 0 0;
  color: var(--av-primary);
}
.av-course-hero__card {
  margin-bottom: var(--av-space-5);
}
.av-course-hero--card .av-course-hero__actions {
  margin-top: var(--av-space-1);
}

@media (max-width: 720px) {
  .av-course-hero--card {
    padding: var(--av-space-6) 0 var(--av-space-5);
  }
}

/* ---------- "What's inside" pill (right side of hero) ---------- */
.av-course-pill {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  padding: var(--av-space-4);
  box-shadow: var(--av-shadow-md);
  position: relative;
}
.av-course-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.4), rgba(232, 93, 60, 0.0) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.av-course-pill__title {
  font-family: var(--av-font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--av-secondary-dark);
  margin-bottom: var(--av-space-3);
}
.av-course-pill__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--av-space-2);
}
.av-course-pill__list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: var(--av-space-2);
  border-bottom: 1px solid var(--av-border-light);
}
.av-course-pill__list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.av-course-pill__num {
  font-family: var(--av-font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--av-primary);
  line-height: 1;
  min-width: 1ch;
}
.av-course-pill__lbl {
  color: var(--av-text-secondary);
  font-size: 14px;
}

/* ---------- ABOUT THIS EXAM ---------- */
.av-course-about {
  background: var(--av-bg-alt);
}
.av-course-about__content {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  padding: var(--av-space-6);
  color: var(--av-text);
  line-height: 1.7;
  box-shadow: var(--av-shadow-sm);
}
.av-course-about__content > *:first-child { margin-top: 0; }
.av-course-about__content > *:last-child { margin-bottom: 0; }
.av-course-about__content h2,
.av-course-about__content h3,
.av-course-about__content h4 {
  font-family: var(--av-font-heading);
  color: var(--av-primary);
  margin-top: var(--av-space-4);
  margin-bottom: var(--av-space-2);
}
.av-course-about__content h2 { font-size: 24px; }
.av-course-about__content h3 { font-size: 20px; }
.av-course-about__content h4 { font-size: 17px; }
.av-course-about__content p {
  margin: 0 0 var(--av-space-2);
}
.av-course-about__content a {
  color: var(--av-primary);
  text-decoration: underline;
  text-decoration-color: var(--av-secondary);
  text-underline-offset: 3px;
}
.av-course-about__content a:hover {
  color: var(--av-cta);
}
.av-course-about__content ul,
.av-course-about__content ol {
  padding-left: 22px;
  margin: 0 0 var(--av-space-3);
}
.av-course-about__content li {
  margin-bottom: 6px;
}

/* ---------- PRACTICE TESTS GRID ---------- */
.av-course-quizzes-section {
  background: var(--av-bg);
}
.av-quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--av-space-3);
  margin-top: var(--av-space-5);
}
.av-quiz-card {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-md);
  padding: var(--av-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--av-space-2);
  box-shadow: var(--av-shadow-sm);
  transition: transform var(--av-duration) var(--av-ease),
              box-shadow var(--av-duration) var(--av-ease),
              border-color var(--av-duration) var(--av-ease);
  position: relative;
}
.av-quiz-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--av-shadow-md);
  border-color: var(--av-border-strong);
}
.av-quiz-card--locked {
  background: var(--av-bg);
  opacity: 0.92;
}
.av-quiz-card--locked:hover {
  transform: none;
}
.av-quiz-card--completed {
  border-color: rgba(34, 197, 94, 0.35);
}
.av-quiz-card--in-progress {
  border-color: rgba(201, 169, 97, 0.5);
}

.av-quiz-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--av-space-2);
}
.av-quiz-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--av-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--av-primary-light);
  color: var(--av-primary);
}
.av-quiz-card__icon--locked      { background: var(--av-bg-alt);          color: var(--av-text-muted); }
.av-quiz-card__icon--idle        { background: var(--av-primary-light);   color: var(--av-primary); }
.av-quiz-card__icon--in-progress { background: var(--av-secondary-soft);  color: var(--av-secondary-dark); }
.av-quiz-card__icon--completed   { background: rgba(34,197,94,0.12);      color: #22c55e; }

.av-quiz-card__chip {
  font-family: var(--av-font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--av-radius-full);
  background: var(--av-bg-alt);
  color: var(--av-text-muted);
  white-space: nowrap;
}
.av-quiz-card__chip--locked      { background: var(--av-bg-alt);          color: var(--av-text-muted); }
.av-quiz-card__chip--idle        { background: var(--av-primary-light);   color: var(--av-primary); }
.av-quiz-card__chip--in-progress { background: var(--av-secondary-soft);  color: var(--av-secondary-dark); }
.av-quiz-card__chip--completed   { background: rgba(34,197,94,0.14);      color: #16a34a; }

.av-quiz-card__title {
  font-family: var(--av-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--av-primary);
  line-height: 1.3;
  margin: 0;
}
.av-quiz-card__meta {
  list-style: none;
  margin: 0;
  padding: var(--av-space-2) 0 var(--av-space-3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed var(--av-border-light);
  border-bottom: 1px dashed var(--av-border-light);
}
.av-quiz-card__meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--av-text-secondary);
}
.av-quiz-card__meta li svg {
  flex: 0 0 auto;
  color: var(--av-secondary-dark);
  opacity: 0.85;
}
.av-quiz-card__meta li strong {
  color: var(--av-primary);
  font-weight: 700;
  font-family: var(--av-font-heading);
}
.av-quiz-card__btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* ---------- FINAL CTA BAND ---------- */
.av-cta-band-section {
  padding: var(--av-space-10) 0 var(--av-space-12);
}
.av-cta-band {
  background: linear-gradient(135deg, var(--av-primary) 0%, var(--av-primary-deep) 100%);
  border-radius: var(--av-radius-xl);
  padding: var(--av-space-8) var(--av-space-6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--av-space-5);
  align-items: center;
  color: var(--av-text-on-primary);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--av-shadow-glow-primary);
}
.av-cta-band::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.32) 0%, rgba(201, 169, 97, 0) 70%);
  z-index: -1;
  pointer-events: none;
}
.av-cta-band__title {
  color: var(--av-text-on-primary);
  margin: 0 0 var(--av-space-2);
  line-height: 1.15;
}
.av-cta-band__title .av-accent {
  color: var(--av-secondary);
}
.av-cta-band__lead {
  color: rgba(248, 244, 238, 0.85);
  margin: 0;
  max-width: 56ch;
}
.av-cta-band__actions {
  display: flex;
  gap: var(--av-space-2);
  flex-wrap: wrap;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .av-course-hero__grid {
    grid-template-columns: 1fr;
  }
  .av-course-pill {
    order: -1;
  }
  .av-cta-band {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--av-space-6);
  }
  .av-cta-band__lead {
    margin: 0 auto;
  }
  .av-cta-band__actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .av-course-hero {
    padding: var(--av-space-8) 0 var(--av-space-6);
  }
  .av-course-hero__title {
    font-size: clamp(28px, 7vw, 40px);
  }
  .av-quiz-grid {
    grid-template-columns: 1fr;
  }
  .av-course-about__content {
    padding: var(--av-space-4);
  }
  .av-course-pill__num {
    font-size: 24px;
  }
}

/* ===================================================================
   COURSE PAGE TABS  (Full-Length Tests | Flashcards)
   =================================================================== */
.av-course-tabs {
  display: inline-flex;
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-full);
  padding: 6px;
  gap: 4px;
  margin: var(--av-space-4) 0 var(--av-space-5);
  box-shadow: var(--av-shadow-sm);
}
.av-course-tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--av-font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--av-text-secondary);
  background: transparent;
  border: 0;
  border-radius: var(--av-radius-full);
  cursor: pointer;
  transition: background var(--av-duration-fast) var(--av-ease),
              color var(--av-duration-fast) var(--av-ease);
}
.av-course-tabs__tab:hover {
  color: var(--av-primary);
}
.av-course-tabs__tab[aria-selected="true"] {
  background: var(--av-primary);
  color: var(--av-text-on-primary);
  box-shadow: var(--av-shadow-sm);
}
.av-course-tabs__tab svg { flex: 0 0 auto; }
.av-course-tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  background: var(--av-bg-alt);
  color: var(--av-text-muted);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--av-radius-full);
  margin-left: 2px;
}
.av-course-tabs__tab[aria-selected="true"] .av-course-tabs__count {
  background: rgba(255,252,247,0.18);
  color: var(--av-text-on-primary);
}
.av-course-tab-panel {
  animation: avTabFade var(--av-duration) var(--av-ease);
}
@keyframes avTabFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Numbered prefix on quiz card titles ---------- */
.av-quiz-card__num {
  display: inline-block;
  font-family: var(--av-font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--av-secondary-dark);
  margin-bottom: 4px;
}

/* ---------- Empty state for tabs ---------- */
.av-course-empty {
  text-align: center;
  padding: var(--av-space-8) var(--av-space-4);
  background: var(--av-bg-white);
  border: 1px dashed var(--av-border-strong);
  border-radius: var(--av-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--av-space-2);
}
.av-course-empty__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--av-primary-light);
  color: var(--av-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--av-space-1);
}
.av-course-empty .av-h3 {
  margin: 0;
  color: var(--av-primary);
}
.av-course-empty .av-body {
  max-width: 48ch;
  color: var(--av-text-secondary);
  margin: 0;
}
.av-course-empty .av-btn {
  margin-top: var(--av-space-3);
}

/* ===================================================================
   FLASHCARDS ON COURSE PAGE
   =================================================================== */
/* ===================================================================
   FLASHCARDS LAUNCHER (the inline tab content — clean preview card)
   =================================================================== */
.av-flashcards-launcher {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--av-space-6);
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 169, 97, 0.10) 0%, rgba(201, 169, 97, 0) 50%),
    var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-xl);
  padding: var(--av-space-6);
  box-shadow: var(--av-shadow-md);
  position: relative;
  overflow: hidden;
}
.av-flashcards-launcher__visual {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.av-flashcards-launcher__deck {
  position: relative;
  width: 140px;
  height: 180px;
}
.av-flashcards-launcher__deck-card {
  position: absolute;
  inset: 0;
  border-radius: var(--av-radius-lg);
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  box-shadow: 0 8px 22px rgba(31, 10, 44, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}
.av-flashcards-launcher__deck-card--3 {
  transform: rotate(-9deg) translateY(8px);
  background: var(--av-bg-alt);
  opacity: 0.7;
}
.av-flashcards-launcher__deck-card--2 {
  transform: rotate(-3deg) translateY(4px);
  background: var(--av-secondary-soft);
  opacity: 0.95;
}
.av-flashcards-launcher__deck-card--1 {
  transform: rotate(2deg);
  background: linear-gradient(135deg, var(--av-primary) 0%, var(--av-primary-deep) 100%);
  color: var(--av-secondary);
  border-color: var(--av-primary-dark);
  box-shadow:
    0 16px 40px -10px rgba(31, 10, 44, 0.40),
    0 8px 16px -8px rgba(31, 10, 44, 0.20);
}
.av-flashcards-launcher__body {
  display: flex;
  flex-direction: column;
  gap: var(--av-space-2);
}
.av-flashcards-launcher__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.av-flashcards-launcher__num {
  font-family: var(--av-font-heading);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1;
  color: var(--av-primary);
}
.av-flashcards-launcher__lbl {
  font-family: var(--av-font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--av-text-muted);
}
.av-flashcards-launcher__title {
  margin: 0;
  color: var(--av-primary);
  font-size: clamp(20px, 2.4vw, 26px);
}
.av-flashcards-launcher__lead {
  margin: 0;
  color: var(--av-text-secondary);
  max-width: 56ch;
}
.av-flashcards-launcher__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--av-space-1) 0;
}
.av-flashcards-launcher__btn {
  align-self: flex-start;
  margin-top: var(--av-space-2);
}
.av-flashcards-launcher__hint {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--av-text-muted);
  margin-top: var(--av-space-1);
}
.av-flashcards-launcher__hint kbd {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--av-font-body);
  font-size: 11px;
  color: var(--av-text-secondary);
}

@media (max-width: 720px) {
  .av-flashcards-launcher {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--av-space-4);
  }
  .av-flashcards-launcher__body {
    align-items: center;
  }
  .av-flashcards-launcher__btn {
    align-self: center;
  }
}

/* ===================================================================
   FLASHCARDS MODAL — fullscreen, blurred backdrop, focus mode
   =================================================================== */
.av-flashcards-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--av-space-3);
}
.av-flashcards-modal[hidden] { display: none; }

.av-flashcards-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 10, 44, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: avFadeIn var(--av-duration) var(--av-ease);
}

.av-flashcards-modal__panel {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  background: var(--av-bg);
  border-radius: var(--av-radius-xl);
  box-shadow: var(--av-shadow-xl);
  border: 1px solid var(--av-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: avModalIn 360ms var(--av-ease-spring);
}

.av-flashcards-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--av-space-3);
  padding: var(--av-space-4) var(--av-space-5);
  border-bottom: 1px solid var(--av-border-light);
  background: var(--av-bg-white);
}
.av-flashcards-modal__heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.av-flashcards-modal__title {
  margin: 0;
  font-family: var(--av-font-heading);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--av-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}
.av-flashcards-modal__toolbar {
  display: flex;
  align-items: center;
  gap: var(--av-space-2);
  flex: 0 0 auto;
}
.av-flashcards-modal__icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--av-bg-alt);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-full);
  padding: 8px 14px;
  font-family: var(--av-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--av-text-secondary);
  cursor: pointer;
  transition: background var(--av-duration-fast) var(--av-ease),
              color var(--av-duration-fast) var(--av-ease);
}
.av-flashcards-modal__icon-btn:hover {
  background: var(--av-primary-light);
  color: var(--av-primary);
}
.av-flashcards-modal__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--av-bg-alt);
  border: 0;
  color: var(--av-text-secondary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--av-duration-fast) var(--av-ease),
              color var(--av-duration-fast) var(--av-ease);
}
.av-flashcards-modal__close:hover {
  background: var(--av-primary);
  color: var(--av-text-on-primary);
}

.av-flashcards-modal__body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--av-space-5) var(--av-space-5) var(--av-space-3);
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 169, 97, 0.06) 0%, rgba(201, 169, 97, 0) 50%),
    var(--av-bg);
}
.av-flashcards-modal__body .av-flashcards-stack {
  margin: 0 auto;
}

.av-flashcards-modal__footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--av-space-2);
  align-items: center;
  padding: var(--av-space-3) var(--av-space-5);
  border-top: 1px solid var(--av-border-light);
  background: var(--av-bg-white);
}
.av-flashcards-modal__footer .av-btn:first-of-type { justify-self: start; }
.av-flashcards-modal__footer .av-btn:last-of-type  { justify-self: end; }
.av-flashcards-modal__hint {
  text-align: center;
  font-size: 12px;
  color: var(--av-text-muted);
}
.av-flashcards-modal__hint kbd {
  background: var(--av-bg);
  border: 1px solid var(--av-border);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--av-font-body);
  font-size: 11px;
  color: var(--av-text-secondary);
}

body.av-flashcards-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .av-flashcards-modal { padding: 0; }
  .av-flashcards-modal__panel {
    max-height: 100vh;
    border-radius: 0;
    width: 100%;
  }
  .av-flashcards-modal__header { padding: var(--av-space-3); }
  .av-flashcards-modal__title { max-width: 200px; font-size: 15px; }
  .av-flashcards-modal__icon-btn span { display: none; }
  .av-flashcards-modal__icon-btn { padding: 8px; }
  .av-flashcards-modal__footer {
    grid-template-columns: 1fr 1fr;
    padding: var(--av-space-2);
  }
  .av-flashcards-modal__hint { display: none; }
}

.av-flashcards-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--av-space-2);
  margin-bottom: var(--av-space-3);
}
.av-flashcards-toolbar__count {
  font-family: var(--av-font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--av-text-secondary);
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-full);
  padding: 8px 18px;
}
.av-flashcards-toolbar__current { color: var(--av-primary); }
.av-flashcards-toolbar__sep    { color: var(--av-text-muted); margin: 0 4px; }

.av-flashcards-stack {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto var(--av-space-5);
  perspective: 1800px;
}

/* Subtle "stack of cards" depth — drawn behind the active card via two
   tilted shadow planes. Looks more polished than a single floating card. */
.av-flashcards-stack::before,
.av-flashcards-stack::after {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  border-radius: var(--av-radius-lg);
  background: var(--av-bg-white);
  border: 1px solid var(--av-border-light);
  pointer-events: none;
  z-index: 0;
  box-shadow: 0 6px 18px rgba(31, 10, 44, 0.05);
}
.av-flashcards-stack::before {
  top: 14px; bottom: -14px;
  transform: rotate(-1.2deg);
  opacity: 0.55;
}
.av-flashcards-stack::after {
  top: 8px; bottom: -8px;
  transform: rotate(0.8deg);
  opacity: 0.8;
}

.av-flashcard {
  width: 100%;
  position: relative;
  z-index: 1;
}
.av-flashcard__inner {
  position: relative;
  width: 100%;
  min-height: 360px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 700ms var(--av-ease);
  display: block;
}
.av-flashcard__inner.is-flipped {
  transform: rotateY(180deg);
}

.av-flashcard__face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  border-radius: var(--av-radius-xl);
  padding: var(--av-space-8) var(--av-space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--av-space-4);
  overflow: hidden;
}

.av-flashcard__face--front {
  background:
    radial-gradient(circle at 85% 0%, rgba(201, 169, 97, 0.10) 0%, rgba(201, 169, 97, 0) 55%),
    var(--av-bg-white);
  border: 1px solid var(--av-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 60px -20px rgba(31, 10, 44, 0.18),
    0 8px 24px -8px rgba(31, 10, 44, 0.08);
}
.av-flashcard__face--front::before {
  /* "FRONT" mark, tiny, top-left, gold — adds character without noise */
  content: 'Q';
  position: absolute;
  top: 18px; left: 22px;
  font-family: var(--av-font-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--av-secondary);
  background: var(--av-secondary-soft);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.av-flashcard__face--back {
  background:
    radial-gradient(circle at 12% 100%, rgba(201, 169, 97, 0.18) 0%, rgba(201, 169, 97, 0) 55%),
    linear-gradient(135deg, var(--av-primary) 0%, var(--av-primary-deep) 100%);
  color: var(--av-text-on-primary);
  transform: rotateY(180deg);
  box-shadow:
    0 24px 60px -20px rgba(31, 10, 44, 0.45),
    0 8px 24px -8px rgba(31, 10, 44, 0.25);
}
.av-flashcard__face--back::before {
  content: 'A';
  position: absolute;
  top: 18px; left: 22px;
  font-family: var(--av-font-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--av-primary-deep);
  background: var(--av-secondary);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.av-flashcard__cat {
  font-family: var(--av-font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--av-secondary-dark);
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  margin-top: -8px;
  position: relative;
}
.av-flashcard__cat::before,
.av-flashcard__cat::after {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--av-secondary);
  vertical-align: middle;
  margin: 0 10px;
  opacity: 0.6;
}
.av-flashcard__face--back .av-flashcard__cat {
  color: var(--av-secondary);
}
.av-flashcard__face--back .av-flashcard__cat::before,
.av-flashcard__face--back .av-flashcard__cat::after {
  background: var(--av-secondary);
  opacity: 0.5;
}

.av-flashcard__text {
  font-family: 'Poppins', var(--av-font-heading);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--av-primary);
  max-width: 52ch;
}
.av-flashcard__face--back .av-flashcard__text {
  color: var(--av-text-on-primary);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 20px);
  font-family: 'Inter', var(--av-font-body);
  font-style: normal;
  line-height: 1.65;
  letter-spacing: 0;
  max-width: 56ch;
}
.av-flashcard__face--back .av-flashcard__text p {
  margin: 0 0 var(--av-space-2);
}
.av-flashcard__face--back .av-flashcard__text p:last-child {
  margin-bottom: 0;
}

.av-flashcard__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--av-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--av-text-muted);
  background: var(--av-bg-alt);
  padding: 6px 12px;
  border-radius: var(--av-radius-full);
  margin-top: auto;
}
.av-flashcard__face--back .av-flashcard__hint {
  color: rgba(248, 244, 238, 0.85);
  background: rgba(255, 252, 247, 0.10);
}

.av-flashcards-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--av-space-2);
  align-items: center;
  margin-top: var(--av-space-3);
}
.av-flashcards-nav button {
  justify-self: stretch;
  width: 100%;
}
.av-flashcards-nav button:first-of-type { justify-self: start; max-width: 200px; }
.av-flashcards-nav button:last-of-type  { justify-self: end;   max-width: 200px; }
.av-flashcards-nav__hint {
  text-align: center;
  font-size: 13px;
  color: var(--av-text-muted);
}
.av-flashcards-nav__hint kbd {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 6px;
  font-family: var(--av-font-body);
  font-size: 11px;
  color: var(--av-text-secondary);
}

.av-flashcards-topics {
  margin-top: var(--av-space-6);
  padding-top: var(--av-space-4);
  border-top: 1px solid var(--av-border-light);
}
.av-flashcards-topics__title {
  font-family: var(--av-font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--av-text-secondary);
  margin-bottom: var(--av-space-2);
}
.av-flashcards-topics__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--av-space-1);
}
.av-flashcards-topics__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--av-primary-light);
  color: var(--av-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--av-radius-full);
}
.av-flashcards-topics__num {
  background: var(--av-primary);
  color: var(--av-text-on-primary);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--av-radius-full);
}

@media (max-width: 640px) {
  .av-course-tabs {
    width: 100%;
    overflow-x: auto;
  }
  .av-flashcard__inner {
    min-height: 260px;
  }
  .av-flashcard__face {
    padding: var(--av-space-4);
  }
  .av-flashcards-nav {
    grid-template-columns: 1fr 1fr;
  }
  .av-flashcards-nav__hint {
    display: none;
  }
}

/* ===================================================================
   QUIZ START MODAL — confirms test details before launching the exam
   =================================================================== */
.av-quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--av-space-3);
}
.av-quiz-modal[hidden] { display: none; }

.av-quiz-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 10, 44, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: avFadeIn var(--av-duration) var(--av-ease);
}
@keyframes avFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes avModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.av-quiz-modal__panel {
  position: relative;
  background: var(--av-bg-white);
  border-radius: var(--av-radius-xl);
  width: 100%;
  max-width: 560px;
  padding: var(--av-space-6);
  box-shadow: var(--av-shadow-xl);
  border: 1px solid var(--av-border);
  animation: avModalIn 360ms var(--av-ease-spring);
  max-height: 92vh;
  overflow-y: auto;
}
.av-quiz-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--av-bg-alt);
  border: 0;
  color: var(--av-text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--av-duration-fast) var(--av-ease),
              color var(--av-duration-fast) var(--av-ease);
}
.av-quiz-modal__close:hover {
  background: var(--av-primary);
  color: var(--av-text-on-primary);
}
.av-quiz-modal__num {
  display: inline-block;
  margin-bottom: var(--av-space-1);
}
.av-quiz-modal__title {
  margin: 0 0 var(--av-space-4);
  color: var(--av-primary);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  padding-right: 40px;
}
.av-quiz-modal__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--av-space-2);
  background: var(--av-bg-alt);
  border-radius: var(--av-radius-md);
  padding: var(--av-space-3);
  margin-bottom: var(--av-space-4);
}
.av-quiz-modal__meta-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.av-quiz-modal__meta-num {
  font-family: var(--av-font-heading);
  font-weight: 800;
  font-size: 26px;
  color: var(--av-primary);
  line-height: 1;
}
.av-quiz-modal__meta-lbl {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--av-text-muted);
  font-weight: 600;
}
.av-quiz-modal__rules {
  background: var(--av-secondary-soft);
  border-left: 4px solid var(--av-secondary);
  border-radius: var(--av-radius-sm);
  padding: var(--av-space-3) var(--av-space-4);
  margin-bottom: var(--av-space-5);
}
.av-quiz-modal__rules-title {
  font-family: var(--av-font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--av-secondary-dark);
  margin: 0 0 var(--av-space-2);
}
.av-quiz-modal__rules ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}
.av-quiz-modal__rules li {
  color: var(--av-text);
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.5;
}
.av-quiz-modal__rules li:last-child {
  margin-bottom: 0;
}
.av-quiz-modal__actions {
  display: flex;
  gap: var(--av-space-2);
  justify-content: flex-end;
}
.av-quiz-modal__actions .av-btn--ghost { min-width: 110px; }
.av-quiz-modal__actions .av-btn--cta   { min-width: 180px; justify-content: center; }

body.av-modal-open {
  overflow: hidden;
}

@media (max-width: 540px) {
  .av-quiz-modal__panel {
    padding: var(--av-space-4);
    border-radius: var(--av-radius-lg);
  }
  .av-quiz-modal__meta-num {
    font-size: 22px;
  }
  .av-quiz-modal__actions {
    flex-direction: column-reverse;
  }
  .av-quiz-modal__actions .av-btn { width: 100%; }
}

/* ===================================================================
   TUTOR LMS QUIZ PAGE — Acevori-branded cover + in-progress + results
   ===================================================================
   The cover screen comes from our own astra-child/tutor/single/quiz/top.php
   override, so we own that markup. The IN-PROGRESS quiz UI and the RESULTS
   page are rendered by Tutor LMS via action hooks — we restyle them here by
   targeting Tutor's existing `.tutor-*` class names. Defensive selectors are
   scoped under body.acevori-page so we don't affect anywhere Tutor renders
   outside our branded surface.
   =================================================================== */

/* ---------- COVER SCREEN ---------- */
body.single-tutor_quiz {
  background: var(--av-bg) !important;
}
.av-quiz-cover {
  padding: var(--av-space-10) 0;
}
.av-quiz-cover__card {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-xl);
  padding: var(--av-space-8) var(--av-space-6);
  box-shadow: var(--av-shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.av-quiz-cover__card::before {
  content: '';
  position: absolute;
  inset: -20% -20% auto auto;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(201,169,97,0.18) 0%, rgba(201,169,97,0) 70%);
  pointer-events: none;
  z-index: 0;
}
.av-quiz-cover__card > * { position: relative; z-index: 1; }
.av-quiz-cover__label { display: inline-block; margin-bottom: var(--av-space-2); }
.av-quiz-cover__title {
  margin: 0 0 var(--av-space-3);
  color: var(--av-primary);
  line-height: 1.1;
  font-size: clamp(28px, 4vw, 40px);
}
.av-quiz-cover__summary {
  color: var(--av-text-secondary);
  max-width: 60ch;
  margin: 0 auto var(--av-space-5);
  line-height: 1.6;
}
.av-quiz-cover__summary p:last-child { margin-bottom: 0; }
.av-quiz-cover__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--av-space-2);
  background: var(--av-bg-alt);
  border-radius: var(--av-radius-lg);
  padding: var(--av-space-4);
  margin-bottom: var(--av-space-5);
}
.av-quiz-cover__stat {
  text-align: center;
}
.av-quiz-cover__stat-num {
  font-family: var(--av-font-heading);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--av-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.av-quiz-cover__stat-lbl {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--av-text-muted);
}
.av-quiz-cover__rules {
  background: var(--av-secondary-soft);
  border-left: 4px solid var(--av-secondary);
  border-radius: var(--av-radius-sm);
  padding: var(--av-space-3) var(--av-space-4);
  text-align: left;
  margin-bottom: var(--av-space-5);
}
.av-quiz-cover__rules-title {
  font-family: var(--av-font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--av-secondary-dark);
  margin-bottom: var(--av-space-2);
}
.av-quiz-cover__rules ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}
.av-quiz-cover__rules li {
  color: var(--av-text);
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.5;
}
.av-quiz-cover__rules li:last-child { margin-bottom: 0; }
.av-quiz-cover__actions {
  display: flex;
  gap: var(--av-space-2);
  justify-content: center;
  flex-wrap: wrap;
}
.av-quiz-cover__form { display: inline-flex; }
.av-quiz-cover__locked {
  background: var(--av-cta-light);
  color: var(--av-cta-hover);
  font-weight: 600;
  padding: var(--av-space-3);
  border-radius: var(--av-radius-md);
}
.av-quiz-cover__back {
  display: inline-block;
  margin-top: var(--av-space-4);
  text-align: center;
  color: var(--av-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: var(--av-space-2);
  width: 100%;
}
.av-quiz-cover__back:hover { color: var(--av-primary); }

/* ---------- IN-PROGRESS QUIZ UI (overlay over Tutor's markup) ---------- */
body.acevori-page.single-tutor_quiz #tutor-quiz-content,
body.single-tutor_quiz .tutor-quiz-content {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-xl);
  padding: var(--av-space-6);
  box-shadow: var(--av-shadow-md);
  max-width: 880px;
  margin: var(--av-space-8) auto;
}

/* Quiz attempt container */
body.single-tutor_quiz .quiz-attempt-single-question,
body.single-tutor_quiz .tutor-quiz-question-wrap,
body.single-tutor_quiz .tutor-quiz-question {
  background: transparent;
  padding: 0;
  margin: 0 0 var(--av-space-5);
}

/* Quiz timer (Tutor's countdown pill) */
body.single-tutor_quiz .tutor-quiz-time-remaining,
body.single-tutor_quiz .tutor-quiz-countdown {
  background: var(--av-secondary-soft) !important;
  color: var(--av-secondary-dark) !important;
  border: 1px solid var(--av-secondary) !important;
  border-radius: var(--av-radius-full) !important;
  padding: 8px 18px !important;
  font-family: var(--av-font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  box-shadow: var(--av-shadow-sm) !important;
}

/* Question text */
body.single-tutor_quiz .question-title,
body.single-tutor_quiz .tutor-quiz-question-title,
body.single-tutor_quiz .tutor-quiz-question h3,
body.single-tutor_quiz .tutor-quiz-question h4 {
  font-family: var(--av-font-heading) !important;
  color: var(--av-primary) !important;
  font-size: clamp(20px, 2.4vw, 26px) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin-bottom: var(--av-space-4) !important;
}

/* Answer options — make them oversized cards */
body.single-tutor_quiz .quiz-answer-options,
body.single-tutor_quiz .tutor-quiz-answer-wrap,
body.single-tutor_quiz .tutor-quiz-answers {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--av-space-2) !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 var(--av-space-5) !important;
}
body.single-tutor_quiz .quiz-answer-options label,
body.single-tutor_quiz .tutor-quiz-answer-single,
body.single-tutor_quiz .tutor-quiz-answer-wrap label,
body.single-tutor_quiz .tutor-quiz-answers li,
body.single-tutor_quiz .tutor-quiz-answers label {
  display: flex !important;
  align-items: center !important;
  gap: var(--av-space-2) !important;
  background: var(--av-bg-white) !important;
  border: 2px solid var(--av-border) !important;
  border-radius: var(--av-radius-md) !important;
  padding: var(--av-space-3) var(--av-space-4) !important;
  cursor: pointer;
  transition: border-color var(--av-duration-fast) var(--av-ease),
              background var(--av-duration-fast) var(--av-ease),
              transform var(--av-duration-fast) var(--av-ease);
  font-family: var(--av-font-body) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: var(--av-text) !important;
  margin: 0 !important;
}
body.single-tutor_quiz .tutor-quiz-answer-single:hover,
body.single-tutor_quiz .tutor-quiz-answer-wrap label:hover,
body.single-tutor_quiz .quiz-answer-options label:hover,
body.single-tutor_quiz .tutor-quiz-answers li:hover {
  border-color: var(--av-secondary) !important;
  background: var(--av-secondary-soft) !important;
  transform: translateY(-1px);
}
body.single-tutor_quiz .tutor-quiz-answer-single input:checked ~ *,
body.single-tutor_quiz .tutor-quiz-answers input:checked + label,
body.single-tutor_quiz .quiz-answer-options input:checked + label,
body.single-tutor_quiz .tutor-quiz-answer-single:has(input:checked),
body.single-tutor_quiz label:has(input:checked) {
  border-color: var(--av-primary) !important;
  background: var(--av-primary-light) !important;
  color: var(--av-primary) !important;
}

/* Answer radio/checkbox circles — beefed up */
body.single-tutor_quiz .tutor-quiz-answer-single input[type="radio"],
body.single-tutor_quiz .tutor-quiz-answer-single input[type="checkbox"],
body.single-tutor_quiz .tutor-quiz-answers input[type="radio"],
body.single-tutor_quiz .tutor-quiz-answers input[type="checkbox"] {
  width: 22px !important;
  height: 22px !important;
  accent-color: var(--av-primary) !important;
  flex: 0 0 auto !important;
}

/* Buttons inside the quiz body — submit/next/prev */
body.single-tutor_quiz .quiz-attempt-button-wrap,
body.single-tutor_quiz .tutor-quiz-btn-wrap,
body.single-tutor_quiz .tutor-quiz-question-pagination {
  display: flex !important;
  gap: var(--av-space-2) !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: var(--av-space-6) !important;
  padding-top: var(--av-space-4) !important;
  border-top: 1px solid var(--av-border-light) !important;
}
body.single-tutor_quiz .tutor-btn,
body.single-tutor_quiz .quiz-attempt-button-wrap button,
body.single-tutor_quiz .tutor-quiz-btn-wrap button {
  font-family: var(--av-font-heading) !important;
  font-weight: 700 !important;
  border-radius: var(--av-radius-full) !important;
  padding: 12px 24px !important;
  font-size: 15px !important;
  border: 2px solid transparent !important;
  cursor: pointer;
  transition: all var(--av-duration-fast) var(--av-ease);
}
body.single-tutor_quiz .tutor-btn-primary,
body.single-tutor_quiz button[name="quiz-attempt-submit"],
body.single-tutor_quiz .tutor-quiz-submit-btn {
  background: var(--av-cta) !important;
  color: var(--av-text-on-primary) !important;
  border-color: var(--av-cta) !important;
}
body.single-tutor_quiz .tutor-btn-primary:hover,
body.single-tutor_quiz button[name="quiz-attempt-submit"]:hover,
body.single-tutor_quiz .tutor-quiz-submit-btn:hover {
  background: var(--av-cta-hover) !important;
  border-color: var(--av-cta-hover) !important;
}
body.single-tutor_quiz .tutor-btn-ghost,
body.single-tutor_quiz .tutor-btn-outline {
  background: transparent !important;
  color: var(--av-primary) !important;
  border-color: var(--av-primary) !important;
}
body.single-tutor_quiz .tutor-btn-ghost:hover,
body.single-tutor_quiz .tutor-btn-outline:hover {
  background: var(--av-primary) !important;
  color: var(--av-text-on-primary) !important;
}

/* ---------- RESULTS / ATTEMPT REVIEW ---------- */
body.single-tutor_quiz .tutor-quiz-result,
body.single-tutor_quiz .tutor-quiz-attempt-result-wrap,
body.single-tutor_quiz .quiz-attempt-ended,
body.single-tutor_quiz .attempt-table {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-xl);
  padding: var(--av-space-6) !important;
  box-shadow: var(--av-shadow-md);
  max-width: 880px;
  margin: var(--av-space-8) auto !important;
}
body.single-tutor_quiz .tutor-quiz-result-percentage,
body.single-tutor_quiz .quiz-attempt-percentage {
  font-family: var(--av-font-heading) !important;
  font-size: clamp(48px, 8vw, 80px) !important;
  font-weight: 800 !important;
  color: var(--av-primary) !important;
  line-height: 1 !important;
  text-align: center !important;
}
body.single-tutor_quiz .tutor-quiz-result-pass,
body.single-tutor_quiz .quiz-attempt-result.passed {
  color: #16a34a !important;
}
body.single-tutor_quiz .tutor-quiz-result-fail,
body.single-tutor_quiz .quiz-attempt-result.failed {
  color: var(--av-cta) !important;
}

/* Attempt summary table — Tutor's bordered list */
body.single-tutor_quiz .tutor-table,
body.single-tutor_quiz .attempt-summary-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
  margin: var(--av-space-3) 0 !important;
}
body.single-tutor_quiz .tutor-table th,
body.single-tutor_quiz .attempt-summary-table th {
  background: var(--av-bg-alt) !important;
  color: var(--av-text-secondary) !important;
  font-family: var(--av-font-heading) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-align: left !important;
  padding: 12px 14px !important;
  border: 0 !important;
}
body.single-tutor_quiz .tutor-table td,
body.single-tutor_quiz .attempt-summary-table td {
  padding: 12px 14px !important;
  background: var(--av-bg-white) !important;
  border-bottom: 1px solid var(--av-border-light) !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  color: var(--av-text) !important;
  font-size: 14px !important;
}

/* ---------- Mobile fixes ---------- */
@media (max-width: 720px) {
  .av-quiz-cover__card { padding: var(--av-space-5) var(--av-space-3); }
  .av-quiz-cover__stats { padding: var(--av-space-3); }
  body.acevori-page.single-tutor_quiz #tutor-quiz-content,
  body.single-tutor_quiz .tutor-quiz-content {
    margin: var(--av-space-4) var(--av-space-2);
    padding: var(--av-space-4);
    border-radius: var(--av-radius-lg);
  }
  body.single-tutor_quiz .quiz-attempt-button-wrap,
  body.single-tutor_quiz .tutor-quiz-btn-wrap {
    flex-direction: column-reverse !important;
    gap: var(--av-space-2) !important;
  }
  body.single-tutor_quiz .tutor-btn { width: 100% !important; }
}

/* ===================================================================
   TUTOR LMS SPOTLIGHT MODE — quiz-taking experience polish
   ===================================================================
   Spotlight mode is Tutor v3's full-screen test-taking layout: blue top
   bar with progress + "Complete Course" button, left "Course Content"
   sidebar, main content area. We rebrand it without breaking Tutor's JS
   (timer, save & next, etc.) by overriding visual properties only.
   =================================================================== */

/* Body class scoping: WordPress always emits `single-tutor_quiz` for the
   quiz CPT, so we use that as our reliable hook (works even if `acevori-page`
   doesn't get applied due to spotlight mode bypassing normal template flow). */

body.single-tutor_quiz {
  background: var(--av-bg) !important;
}

/* --- Top spotlight header (the blue bar) --- */
body.single-tutor_quiz .tutor-course-spotlight-header,
body.single-tutor_quiz .tutor-spotlight-header,
body.single-tutor_quiz [class*="spotlight"][class*="header"],
body.single-tutor_quiz .tutor-quiz-spotlight-header {
  background: linear-gradient(135deg, var(--av-primary) 0%, var(--av-primary-deep) 100%) !important;
  color: var(--av-text-on-primary) !important;
  border-bottom: 1px solid var(--av-primary-dark) !important;
  box-shadow: var(--av-shadow-md) !important;
}
body.single-tutor_quiz [class*="spotlight"] a,
body.single-tutor_quiz [class*="spotlight"] .tutor-iconic-btn,
body.single-tutor_quiz [class*="spotlight"] svg {
  color: var(--av-text-on-primary) !important;
  fill: currentColor;
}

/* Course title in the header */
body.single-tutor_quiz [class*="spotlight"] [class*="course-title"],
body.single-tutor_quiz [class*="spotlight"] .tutor-fs-6,
body.single-tutor_quiz [class*="spotlight"] .tutor-fs-5,
body.single-tutor_quiz [class*="spotlight"] h1,
body.single-tutor_quiz [class*="spotlight"] h2 {
  color: var(--av-text-on-primary) !important;
  font-family: var(--av-font-heading) !important;
  font-weight: 700 !important;
}

/* Progress pill in the header */
body.single-tutor_quiz [class*="spotlight"] .tutor-progress-text,
body.single-tutor_quiz [class*="spotlight"] [class*="progress"],
body.single-tutor_quiz .tutor-spotlight-progress {
  color: rgba(255, 252, 247, 0.85) !important;
  font-family: var(--av-font-heading) !important;
  font-weight: 600 !important;
}
body.single-tutor_quiz [class*="spotlight"] [class*="progress"] strong,
body.single-tutor_quiz [class*="spotlight"] [class*="progress"] b {
  color: var(--av-secondary) !important;
  font-weight: 800 !important;
}

/* "Complete Course" / submit button in the spotlight header */
body.single-tutor_quiz [class*="spotlight"] .tutor-btn-primary,
body.single-tutor_quiz [class*="spotlight"] [class*="complete"] {
  background: var(--av-cta) !important;
  border-color: var(--av-cta) !important;
  color: var(--av-text-on-primary) !important;
  border-radius: var(--av-radius-full) !important;
  font-family: var(--av-font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}
body.single-tutor_quiz [class*="spotlight"] .tutor-btn-primary:hover {
  background: var(--av-cta-hover) !important;
  border-color: var(--av-cta-hover) !important;
}

/* Close (×) button */
body.single-tutor_quiz [class*="spotlight"] .tutor-iconic-btn[class*="close"],
body.single-tutor_quiz [class*="close-btn"],
body.single-tutor_quiz [class*="spotlight"] [class*="close"] {
  color: rgba(255, 252, 247, 0.85) !important;
  transition: color var(--av-duration-fast) var(--av-ease);
}
body.single-tutor_quiz [class*="spotlight"] [class*="close"]:hover {
  color: var(--av-secondary) !important;
}

/* --- Left "Course Content" sidebar --- */
body.single-tutor_quiz .tutor-course-spotlight-sidebar,
body.single-tutor_quiz .tutor-spotlight-sidebar,
body.single-tutor_quiz [class*="spotlight"][class*="sidebar"] {
  background: var(--av-bg-white) !important;
  border-right: 1px solid var(--av-border) !important;
}
body.single-tutor_quiz [class*="spotlight"][class*="sidebar"] [class*="title"],
body.single-tutor_quiz [class*="spotlight"][class*="sidebar"] h3,
body.single-tutor_quiz [class*="spotlight"][class*="sidebar"] h4 {
  font-family: var(--av-font-heading) !important;
  color: var(--av-primary) !important;
  font-weight: 700 !important;
}

/* Sidebar topic header (e.g. "Full Length Practice Test 1") */
body.single-tutor_quiz [class*="topic-title"],
body.single-tutor_quiz [class*="lesson-section-title"],
body.single-tutor_quiz [class*="sidebar"] [class*="topic"] {
  background: var(--av-primary-light) !important;
  color: var(--av-primary) !important;
  font-family: var(--av-font-heading) !important;
  font-weight: 700 !important;
  border-radius: var(--av-radius-sm) !important;
}

/* Sidebar quiz/lesson list items */
body.single-tutor_quiz [class*="sidebar"] [class*="lesson-list"] a,
body.single-tutor_quiz [class*="sidebar"] [class*="topic-item"],
body.single-tutor_quiz [class*="sidebar"] li a {
  color: var(--av-text) !important;
  transition: color var(--av-duration-fast) var(--av-ease),
              background var(--av-duration-fast) var(--av-ease);
  border-radius: var(--av-radius-sm) !important;
}
body.single-tutor_quiz [class*="sidebar"] [class*="lesson-list"] a:hover,
body.single-tutor_quiz [class*="sidebar"] li a:hover,
body.single-tutor_quiz [class*="sidebar"] [class*="topic-item"]:hover {
  color: var(--av-primary) !important;
  background: var(--av-bg-alt) !important;
}
body.single-tutor_quiz [class*="sidebar"] [class*="active"],
body.single-tutor_quiz [class*="sidebar"] .is-active,
body.single-tutor_quiz [class*="sidebar"] [aria-current="true"] {
  background: var(--av-primary) !important;
  color: var(--av-text-on-primary) !important;
}

/* --- Question content area polish --- */
body.single-tutor_quiz [class*="question-no"],
body.single-tutor_quiz [class*="question-num"],
body.single-tutor_quiz [class*="attempts-allowed"],
body.single-tutor_quiz [class*="time-remaining"] {
  font-family: var(--av-font-heading) !important;
  color: var(--av-text-secondary) !important;
}
body.single-tutor_quiz [class*="time-remaining"] strong,
body.single-tutor_quiz [class*="time-remaining"] b {
  color: var(--av-secondary-dark) !important;
  font-weight: 800 !important;
}

/* The question text itself */
body.single-tutor_quiz .tutor-quiz-question h1,
body.single-tutor_quiz .tutor-quiz-question h2,
body.single-tutor_quiz .tutor-quiz-question h3,
body.single-tutor_quiz .tutor-quiz-question h4,
body.single-tutor_quiz [class*="question"] [class*="title"] {
  font-family: var(--av-font-heading) !important;
  color: var(--av-primary) !important;
  font-size: clamp(20px, 2.4vw, 28px) !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

/* Question description (the small grey duplicate text under question) — hide
   it if it duplicates the title; otherwise dim it. Tutor often renders the
   same string twice; this de-noises that. */
body.single-tutor_quiz [class*="question-description"]:empty {
  display: none !important;
}

/* ===================================================================
   AGGRESSIVE FOOTER SUPPRESSION ON QUIZ PAGES
   "Join Our Community" newsletter widget keeps leaking through. Hit it
   from every angle.
   =================================================================== */

body.single-tutor_quiz .site-footer,
body.single-tutor_quiz #colophon,
body.single-tutor_quiz footer:not(.av-footer):not([class*="tutor"]):not([class*="quiz"]),
body.single-tutor_quiz [class*="newsletter"]:not([class*="tutor"]),
body.single-tutor_quiz [class*="subscribe-form"]:not([class*="tutor"]),
body.single-tutor_quiz [class*="email-signup"],
body.single-tutor_quiz [class*="join-our"],
body.single-tutor_quiz [class*="join-community"],
body.single-tutor_quiz .ast-small-footer,
body.single-tutor_quiz .ast-builder-grid-row-container.site-footer-section,
body.single-tutor_quiz .footer-widget-area,
body.single-tutor_quiz .footer-widget,
body.single-tutor_quiz [class*="footer-widget-"],
body.single-tutor_quiz .site-below-footer-wrap,
body.single-tutor_quiz .site-above-footer-wrap,
body.single-tutor_quiz .site-primary-footer-wrap,
body.single-tutor_quiz .wp-block-mailchimp-for-wp,
body.single-tutor_quiz .mc4wp-form,
body.single-tutor_quiz .mailpoet-container,
body.single-tutor_quiz .convertkit-form,
body.single-tutor_quiz .wpforms-container,
body.single-tutor_quiz [data-elementor-type="footer"],
body.single-tutor_quiz [data-elementor-type="archive"] {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Same nuclear option on every Acevori page (catches things our previous
   pass missed) */
body.acevori-page [class*="join-our"],
body.acevori-page [class*="join-community"],
body.acevori-page .wp-block-mailchimp-for-wp,
body.acevori-page .mc4wp-form,
body.acevori-page .mailpoet-container,
body.acevori-page .convertkit-form,
body.acevori-page .wpforms-container,
body.acevori-page [data-elementor-type="footer"],
body.acevori-page [data-elementor-type="archive"] {
  display: none !important;
}

/* ===================================================================
   QUIZ NAV — clean modern dropdown (replaces Tutor's sidebar)
   ===================================================================
   We hide Tutor's spotlight sidebar entirely and inject our own floating
   "Course Content" dropdown via wp_footer. Pure server-rendered, fully
   ours, no Tutor CSS to fight.
   =================================================================== */

/* Kill Tutor's own spotlight sidebar — narrow selectors only.
   We deliberately avoid the broad `[class*="spotlight"][class*="sidebar"]`
   match because Tutor sometimes uses that wording for the question
   container itself, and hiding that nuked the entire question UI on mobile. */
body.single-tutor_quiz .tutor-course-spotlight-sidebar,
body.single-tutor_quiz .tutor-spotlight-sidebar,
body.single-tutor_quiz aside.tutor-course-spotlight-sidebar,
body.single-tutor_quiz .tutor-course-content-sidebar {
  display: none !important;
}

/* FORCE the quiz question UI to stay visible, no matter what Tutor's
   spotlight JS tries to do to it. Overrides display:none / visibility:hidden
   / opacity:0 from Tutor's own animations or third-party JS that's wiping
   the questions after initial render. */
body.single-tutor_quiz .tutor-quiz-question-wrap,
body.single-tutor_quiz .tutor-quiz-question,
body.single-tutor_quiz .quiz-attempt-single-question,
body.single-tutor_quiz [class*="quiz-attempt"],
body.single-tutor_quiz [class*="quiz-question"]:not([class*="hidden"]),
body.single-tutor_quiz #tutor-quiz-content,
body.single-tutor_quiz .tutor-quiz-content,
body.single-tutor_quiz [class*="quiz-attempt-area"],
body.single-tutor_quiz [class*="tutor-wrap"][class*="quiz"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
/* Free up the space the sidebar was using */
body.single-tutor_quiz [class*="spotlight"][class*="content"],
body.single-tutor_quiz [class*="spotlight-main"],
body.single-tutor_quiz .tutor-course-spotlight-content,
body.single-tutor_quiz #tutor-quiz-content {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

/* ----- Our floating dropdown ----- */
.av-quiznav {
  position: fixed;
  top: 80px;
  left: 16px;
  z-index: 200;
  font-family: var(--av-font-body);
}

.av-quiznav__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-full);
  padding: 9px 14px 9px 16px;
  font-family: var(--av-font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--av-primary);
  cursor: pointer;
  box-shadow: var(--av-shadow-sm);
  transition: all var(--av-duration-fast) var(--av-ease);
}
.av-quiznav__btn:hover {
  border-color: var(--av-secondary);
  box-shadow: var(--av-shadow-md);
  transform: translateY(-1px);
}
.av-quiznav__btn-icon { color: var(--av-primary); flex: 0 0 auto; }
.av-quiznav__btn-label { white-space: nowrap; }
.av-quiznav__btn-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: var(--av-primary);
  color: var(--av-text-on-primary);
  border-radius: var(--av-radius-full);
  font-size: 11px;
  font-weight: 800;
}
.av-quiznav__btn-chevron {
  color: var(--av-text-muted);
  transition: transform var(--av-duration) var(--av-ease);
}
.av-quiznav[data-state="expanded"] .av-quiznav__btn {
  border-color: var(--av-primary);
  background: var(--av-primary-light);
}
.av-quiznav[data-state="expanded"] .av-quiznav__btn-chevron {
  transform: rotate(180deg);
  color: var(--av-primary);
}

/* ----- Panel ----- */
.av-quiznav__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(420px, calc(100vw - 32px));
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  box-shadow: var(--av-shadow-xl);
  overflow: hidden;
  animation: avQuizNavIn 220ms var(--av-ease-spring);
  transform-origin: top left;
  max-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
}
@keyframes avQuizNavIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Panel head — course breadcrumb only */
.av-quiznav__head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--av-border-light);
  background: linear-gradient(180deg, var(--av-bg-white) 0%, var(--av-bg) 100%);
}
.av-quiznav__course {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--av-font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--av-primary);
  text-decoration: none;
  transition: color var(--av-duration-fast) var(--av-ease);
}
.av-quiznav__course:hover { color: var(--av-cta); }

/* Sections wrapper — one <details> per content type */
.av-quiznav__sections {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 6px 0 8px;
}
.av-quiznav__section {
  border-bottom: 1px solid var(--av-border-light);
}
.av-quiznav__section:last-child { border-bottom: 0; }

.av-quiznav__section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--av-font-heading);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--av-secondary-dark);
  user-select: none;
  transition: background var(--av-duration-fast) var(--av-ease);
}
.av-quiznav__section-head::-webkit-details-marker,
.av-quiznav__section-head::marker {
  display: none;
  content: '';
}
.av-quiznav__section-head:hover {
  background: var(--av-secondary-soft);
}
.av-quiznav__section-title {
  flex: 1 1 auto;
}
.av-quiznav__section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: var(--av-secondary-soft);
  color: var(--av-secondary-dark);
  border-radius: var(--av-radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}
.av-quiznav__section-chevron {
  flex: 0 0 auto;
  color: var(--av-secondary-dark);
  transition: transform var(--av-duration) var(--av-ease);
}
.av-quiznav__section[open] .av-quiznav__section-chevron {
  transform: rotate(180deg);
}

/* List inside a section */
.av-quiznav__list {
  list-style: none;
  margin: 0;
  padding: 4px 8px 10px;
}
.av-quiznav__item { margin: 0; }
.av-quiznav__item + .av-quiznav__item { margin-top: 2px; }

.av-quiznav__item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--av-radius-md);
  text-decoration: none;
  color: var(--av-text);
  transition: background var(--av-duration-fast) var(--av-ease),
              color var(--av-duration-fast) var(--av-ease),
              transform var(--av-duration-fast) var(--av-ease);
  outline: 0;
}
.av-quiznav__item a:hover {
  background: var(--av-primary-light);
  color: var(--av-primary);
  transform: translateX(2px);
}
.av-quiznav__item a:focus-visible {
  background: var(--av-primary-light);
  box-shadow: 0 0 0 2px var(--av-primary);
}

.av-quiznav__num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  background: var(--av-bg-alt);
  color: var(--av-text-secondary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--av-font-heading);
  font-weight: 800;
  font-size: 12px;
}
.av-quiznav__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.av-quiznav__name {
  font-family: var(--av-font-heading);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.av-quiznav__sub {
  font-size: 12px;
  color: var(--av-text-muted);
}
.av-quiznav__arrow {
  color: var(--av-text-muted);
  flex: 0 0 auto;
  opacity: 0.6;
  transition: opacity var(--av-duration-fast) var(--av-ease),
              transform var(--av-duration-fast) var(--av-ease);
}
.av-quiznav__item a:hover .av-quiznav__arrow {
  opacity: 1;
  transform: translateX(2px);
  color: var(--av-primary);
}

/* Active item */
.av-quiznav__item.is-current a {
  background: var(--av-primary);
  color: var(--av-text-on-primary);
}
.av-quiznav__item.is-current a:hover {
  background: var(--av-primary-dark);
  transform: none;
}
.av-quiznav__item.is-current .av-quiznav__num {
  background: rgba(255, 252, 247, 0.2);
  color: var(--av-secondary);
}
.av-quiznav__item.is-current .av-quiznav__sub {
  color: rgba(255, 252, 247, 0.75);
}

/* Current pill */
.av-quiznav__pill {
  flex: 0 0 auto;
  background: var(--av-secondary);
  color: var(--av-primary-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--av-radius-full);
}

@media (max-width: 720px) {
  .av-quiznav { top: 64px; left: 8px; right: 8px; }
  .av-quiznav__btn-label { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }

  /* On mobile the panel is an overlay sheet so the quiz content underneath
     stays at full width and is easy to scroll back to once the panel is closed. */
  .av-quiznav__panel {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
  }

  /* Dim the rest of the page when the panel is open so the overlay is obvious
     and tap-anywhere-outside-to-close becomes a discoverable gesture. */
  .av-quiznav[data-state="expanded"]::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(21, 16, 31, 0.32);
    z-index: -1;
    pointer-events: none;
  }
}

/* ===================================================================
   (LEGACY — kept hidden) Old sidebar wrapping styles, no longer used
   =================================================================== */

body.single-tutor_quiz .av-quiz-sidebar {
  position: fixed !important;
  top: 76px;
  left: 16px;
  z-index: 200;
  width: auto !important;
  min-width: 0 !important;
  max-width: 360px;
  height: auto !important;
  max-height: calc(100vh - 100px);
  background: var(--av-bg-white) !important;
  border: 1px solid var(--av-border) !important;
  border-radius: var(--av-radius-md) !important;
  box-shadow: var(--av-shadow-lg) !important;
  overflow: hidden !important;
  transition: max-height var(--av-duration) var(--av-ease),
              max-width var(--av-duration) var(--av-ease),
              background var(--av-duration) var(--av-ease);
  display: flex !important;
  flex-direction: column !important;
}

/* The toggle button — looks like a clean dropdown header */
.av-quiz-sidebar__toggle {
  display: flex !important;
  align-items: center;
  gap: 10px;
  background: var(--av-bg-white);
  border: 0;
  padding: 12px 18px;
  font-family: var(--av-font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--av-primary);
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--av-border-light);
  transition: background var(--av-duration-fast) var(--av-ease);
}
.av-quiz-sidebar__toggle:hover {
  background: var(--av-primary-light);
}
.av-quiz-sidebar__icon {
  flex: 0 0 auto;
  color: var(--av-primary);
}
.av-quiz-sidebar__label {
  flex: 1 1 auto;
  letter-spacing: 0.02em;
}
.av-quiz-sidebar__chevron {
  flex: 0 0 auto;
  color: var(--av-text-muted);
  transition: transform var(--av-duration) var(--av-ease);
}
.av-quiz-sidebar:not(.av-quiz-sidebar--collapsed) .av-quiz-sidebar__chevron {
  transform: rotate(180deg);
  color: var(--av-primary);
}

/* Collapsed state — only the toggle button is visible */
.av-quiz-sidebar.av-quiz-sidebar--collapsed {
  max-height: 48px !important;
}
.av-quiz-sidebar.av-quiz-sidebar--collapsed .av-quiz-sidebar__toggle {
  border-bottom: 0 !important;
}
.av-quiz-sidebar.av-quiz-sidebar--collapsed > *:not(.av-quiz-sidebar__toggle) {
  opacity: 0;
  pointer-events: none;
}

/* Expanded state — show the full dropdown */
.av-quiz-sidebar:not(.av-quiz-sidebar--collapsed) > *:not(.av-quiz-sidebar__toggle) {
  opacity: 1;
  transition: opacity var(--av-duration) var(--av-ease) 100ms;
  overflow-y: auto;
  flex: 1 1 auto;
}

/* Hide Tutor's own "Course Content" heading inside the sidebar (we have
   our own heading in the toggle button now) */
body.single-tutor_quiz .av-quiz-sidebar > h2:first-of-type,
body.single-tutor_quiz .av-quiz-sidebar > h3:first-of-type,
body.single-tutor_quiz .av-quiz-sidebar [class*="sidebar-title"]:first-of-type,
body.single-tutor_quiz .av-quiz-sidebar [class*="course-content-header"] {
  display: none !important;
}

/* Polish the actual list inside the dropdown */
body.single-tutor_quiz .av-quiz-sidebar [class*="topic"],
body.single-tutor_quiz .av-quiz-sidebar [class*="lesson-list"] {
  padding: 8px 12px !important;
  margin: 0 !important;
}
body.single-tutor_quiz .av-quiz-sidebar [class*="topic-title"],
body.single-tutor_quiz .av-quiz-sidebar [class*="topic-header"] {
  background: var(--av-bg-alt) !important;
  color: var(--av-primary) !important;
  font-family: var(--av-font-heading) !important;
  font-weight: 700 !important;
  padding: 8px 12px !important;
  border-radius: var(--av-radius-sm) !important;
  font-size: 13px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin: 8px 12px !important;
}
body.single-tutor_quiz .av-quiz-sidebar a,
body.single-tutor_quiz .av-quiz-sidebar [class*="lesson-list"] li {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  margin: 2px 8px !important;
  border-radius: var(--av-radius-sm) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--av-text) !important;
  text-decoration: none !important;
  transition: all var(--av-duration-fast) var(--av-ease);
}
body.single-tutor_quiz .av-quiz-sidebar a:hover {
  background: var(--av-primary-light) !important;
  color: var(--av-primary) !important;
  transform: translateX(2px);
}
body.single-tutor_quiz .av-quiz-sidebar [aria-current="true"],
body.single-tutor_quiz .av-quiz-sidebar .is-active,
body.single-tutor_quiz .av-quiz-sidebar [class*="active"]:not([class*="not-active"]) {
  background: var(--av-primary) !important;
  color: var(--av-text-on-primary) !important;
  font-weight: 700 !important;
}

/* Move the main quiz content over so the floating sidebar button doesn't overlap */
body.single-tutor_quiz [class*="spotlight"][class*="content"],
body.single-tutor_quiz #tutor-quiz-content {
  margin-left: 0 !important;
}

@media (max-width: 720px) {
  body.single-tutor_quiz .av-quiz-sidebar {
    top: 64px;
    left: 8px;
    right: 8px;
    max-width: none;
  }
}

/* ===================================================================
   ATTEMPT DETAILS / REVIEW PAGE — branded styling
   =================================================================== */

body.single-tutor_quiz .quiz-attempt-details,
body.single-tutor_quiz [class*="attempt-details"],
body.single-tutor_quiz [class*="attempt-review"],
body.single-tutor_quiz .tutor-quiz-attempt-table {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-xl);
  padding: var(--av-space-6) !important;
  margin: var(--av-space-6) auto !important;
  max-width: 880px;
  box-shadow: var(--av-shadow-md);
}

/* Per-question review block */
body.single-tutor_quiz [class*="attempt-details"] [class*="quiz-question"],
body.single-tutor_quiz [class*="attempt-review"] [class*="quiz-question"] {
  background: var(--av-bg) !important;
  border: 1px solid var(--av-border-light) !important;
  border-radius: var(--av-radius-md) !important;
  padding: var(--av-space-4) !important;
  margin-bottom: var(--av-space-3) !important;
}

/* Correct / incorrect markers */
body.single-tutor_quiz [class*="answer-correct"],
body.single-tutor_quiz [class*="is-correct"] {
  background: rgba(34, 197, 94, 0.10) !important;
  border-color: #22c55e !important;
  color: #15803d !important;
}
body.single-tutor_quiz [class*="answer-incorrect"],
body.single-tutor_quiz [class*="is-incorrect"],
body.single-tutor_quiz [class*="wrong-answer"] {
  background: var(--av-cta-light) !important;
  border-color: var(--av-cta) !important;
  color: var(--av-cta-hover) !important;
}

/* Explanation / answer description block — make it OBVIOUSLY an explanation
   with a "💡 EXPLANATION" badge, gold accent, and prominent visual hierarchy.
   Targets every Tutor variant we know of. */
body.single-tutor_quiz [class*="answer-explanation"],
body.single-tutor_quiz [class*="answer-description"],
body.single-tutor_quiz [class*="question-explanation"],
body.single-tutor_quiz [class*="quiz-explanation"],
body.single-tutor_quiz .tutor-quiz-question-explanation,
body.single-tutor_quiz .answer-explanation,
body.single-tutor_quiz [class*="ans-description"] {
  background: linear-gradient(135deg, var(--av-secondary-soft) 0%, var(--av-secondary-light) 100%) !important;
  border: 1px solid var(--av-secondary) !important;
  border-left-width: 5px !important;
  padding: var(--av-space-4) var(--av-space-4) var(--av-space-4) var(--av-space-5) !important;
  border-radius: var(--av-radius-md) !important;
  margin-top: var(--av-space-3) !important;
  color: var(--av-text) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  position: relative !important;
  box-shadow: 0 1px 4px rgba(201, 169, 97, 0.18);
}

/* "💡 EXPLANATION" header label injected via CSS pseudo-element so we don't
   need to touch Tutor's HTML. The label is unmissable — gold uppercase pill
   above the explanation text. */
body.single-tutor_quiz [class*="answer-explanation"]::before,
body.single-tutor_quiz [class*="answer-description"]::before,
body.single-tutor_quiz [class*="question-explanation"]::before,
body.single-tutor_quiz [class*="quiz-explanation"]::before,
body.single-tutor_quiz .tutor-quiz-question-explanation::before,
body.single-tutor_quiz .answer-explanation::before,
body.single-tutor_quiz [class*="ans-description"]::before {
  content: '💡  EXPLANATION';
  display: inline-block;
  font-family: var(--av-font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--av-secondary-dark);
  background: var(--av-bg-white);
  border: 1px solid var(--av-secondary);
  padding: 4px 10px 4px 8px;
  border-radius: var(--av-radius-full);
  margin-bottom: var(--av-space-2) !important;
  box-shadow: 0 1px 2px rgba(201, 169, 97, 0.2);
}

/* ===================================================================
   "SUBMIT & NEXT" — disabled state when no answer picked
   =================================================================== */
body.single-tutor_quiz button[disabled],
body.single-tutor_quiz button.av-is-disabled,
body.single-tutor_quiz .tutor-btn[disabled],
body.single-tutor_quiz .tutor-btn-primary[disabled],
body.single-tutor_quiz [class*="quiz-next"][disabled],
body.single-tutor_quiz [class*="submit-next"][disabled] {
  background: var(--av-border) !important;
  border-color: var(--av-border) !important;
  color: var(--av-text-muted) !important;
  cursor: not-allowed !important;
  pointer-events: auto !important; /* keep tooltip showing on hover */
  opacity: 0.7;
  box-shadow: none !important;
  transform: none !important;
}
/* But Skip Question is explicitly NOT disabled by this rule because our
   JS in inner-pages.js never adds [disabled] / .av-is-disabled to a button
   whose label contains "skip". */

/* Review-action footer (Retake / See all attempts) */
.av-quiz-review-actions {
  margin: var(--av-space-6) 0 var(--av-space-4) !important;
}
