/* Final visual alignment across institutional, library, lesson and account pages. */

:root {
  --ve-system-radius: 10px;
  --ve-system-border: rgba(154, 121, 71, .3);
  --ve-system-panel: rgba(10, 18, 31, .94);
  --ve-system-shadow: 0 18px 48px rgba(0, 0, 0, .42);
}

.ve-library-hero,
.ve-spotlight-card,
.ve-catalog-status,
.ve-empty-state,
.ve-book-overview,
.ve-course-syllabus,
.ve-page-hero,
.ve-system-panel,
.ve-card:not(.ve-lesson-cinema-card),
.ve-section-nav-card {
  border-color: var(--ve-system-border);
  border-radius: var(--ve-system-radius);
  box-shadow: var(--ve-system-shadow);
}

.ve-catalog-status {
  position: relative;
  isolation: isolate;
  align-items: center;
  min-height: 104px;
  padding: 20px 22px 20px 25px;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 0, rgba(91, 168, 255, .1), transparent 34%),
    radial-gradient(circle at 0 100%, rgba(189, 116, 255, .055), transparent 38%),
    linear-gradient(135deg, rgba(13, 23, 39, .98), rgba(7, 13, 23, .97));
  border-left: 3px solid rgba(190, 148, 82, .7);
}

.ve-catalog-status::before {
  position: absolute;
  top: 12px;
  right: 16px;
  content: "✦";
  color: rgba(234, 202, 150, .72);
  font-size: 12px;
  text-shadow: 0 0 9px rgba(255, 255, 255, .62), 0 0 18px rgba(91, 168, 255, .55);
}

.ve-catalog-status h2 {
  margin-bottom: 4px;
  color: #faf5ec;
  font-size: clamp(21px, 2vw, 26px);
  letter-spacing: .01em;
}

.ve-catalog-status > p:last-child {
  align-self: center;
  padding: 6px 10px;
  color: var(--ve-gold-soft);
  background: rgba(154, 121, 71, .08);
  border: 1px solid rgba(154, 121, 71, .27);
  border-radius: 4px;
  font-family: var(--ve-font-serif);
  white-space: nowrap;
}

.ve-book-card-link {
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: linear-gradient(180deg, rgba(13, 22, 36, .7), rgba(7, 13, 22, .82));
  border: 1px solid rgba(154, 121, 71, .18);
  border-radius: var(--ve-system-radius);
}

/* The catalogue card owns the magical hover frame; its cover stays quiet. */
@media (hover: hover) and (pointer: fine) {
  .ve-book-card-link:hover .ve-catalog-cover {
    transform: none;
    filter: brightness(1.035) saturate(1.02);
    border-color: rgba(212, 163, 115, .28);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .52);
  }
}

.ve-book-card-copy {
  display: flex;
  min-height: 104px;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 13px 5px 3px;
}

.ve-book-card-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin-bottom: 11px;
  color: #fff9ef;
  font-size: 16.5px;
  line-height: 1.28;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .48);
}

.ve-book-card-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  width: 100%;
  margin: auto 0 0 !important;
  overflow: visible !important;
  white-space: normal !important;
}

.ve-book-card-levels {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  white-space: nowrap;
}

.ve-book-card-levels .ve-school-level-badge {
  min-width: 0;
  padding-right: 7px;
  padding-left: 7px;
}

.ve-author-badge {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  min-height: 27px;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  overflow: hidden;
  color: var(--ve-text-muted);
  background: rgba(11, 18, 29, .72);
  border: 1px solid rgba(154, 121, 71, .28);
  border-radius: 4px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .022);
  font: 600 10.5px/1 var(--ve-font-sans);
  text-decoration: none !important;
  white-space: nowrap;
}

a.ve-author-badge:hover,
a.ve-author-badge:focus-visible {
  color: #f8ddb0;
  background: rgba(212, 163, 115, .13);
  border-color: rgba(226, 183, 126, .62);
  outline: none;
  transform: translateY(-1px);
}

.ve-inline-author-link {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px 2px;
  color: var(--ve-gold-soft);
  background: rgba(212, 163, 115, .055);
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none !important;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ve-inline-author-link:hover,
.ve-inline-author-link:focus-visible {
  color: #fff0d5;
  background: rgba(212, 163, 115, .13);
  border-color: rgba(226, 183, 126, .44);
  box-shadow: 0 0 14px rgba(212, 163, 115, .1);
  outline: none;
  text-decoration: none !important;
}

a.ve-author-badge:hover strong,
a.ve-author-badge:focus-visible strong {
  color: #f8ddb0;
  text-decoration: none;
}

.ve-author-badge strong {
  min-width: 0;
  overflow: hidden;
  color: #c4b49e;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ve-author-badge .ve-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: rgba(198, 163, 105, .82);
}

.ve-school-level-badge {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 27px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 9px 6px;
  color: #d7bf95;
  background:
    radial-gradient(circle at 50% 10%, rgba(225, 185, 112, .09), transparent 50%),
    rgba(11, 18, 29, .82);
  border: 1px solid rgba(202, 158, 89, .42);
  border-radius: 4px 4px 9px 9px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .03), 0 4px 12px rgba(0, 0, 0, .18);
  font: 800 10px/1 var(--ve-font-sans);
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}

a.ve-school-level-badge:hover,
a.ve-school-level-badge:focus-visible {
  color: #f8ddb0;
  background: rgba(212, 163, 115, .16);
  border-color: rgba(226, 183, 126, .72);
  outline: none;
  transform: translateY(-1px);
}

.ve-school-level-badge .ve-icon {
  width: 13px;
  height: 13px;
  color: #d6ad69;
  filter: drop-shadow(0 0 5px rgba(218, 174, 102, .24));
}

.ve-author-level-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.ve-spotlight-era,
.ve-book-overview-byline > span:last-child {
  color: var(--ve-text-muted);
  font: 600 11px/1.35 var(--ve-font-sans);
}

.ve-matriculation-tiers {
  margin-bottom: 48px;
}

.ve-section-center,
.ve-archive-heading {
  margin-bottom: 30px;
  text-align: center;
}

.ve-section-center h2,
.ve-archive-heading h1 {
  justify-content: center;
  margin: 0 0 8px;
  color: var(--ve-heading);
  font: 700 clamp(24px, 3vw, 29px)/1.2 var(--ve-font-serif);
}

.ve-section-center p,
.ve-archive-heading p {
  margin: 0;
  color: var(--ve-text-muted);
  font-size: 13.5px;
}

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

.ve-tier-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(91, 168, 255, .06), transparent 30%),
    linear-gradient(180deg, rgba(13, 23, 38, .96), rgba(8, 14, 24, .97)) !important;
}

.ve-tier-card.ve-matriculation-featured {
  overflow: visible;
  border-color: rgba(190, 148, 82, .62);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .48), 0 0 24px rgba(154, 121, 71, .08);
}

.ve-tier-kicker {
  margin-bottom: 8px;
  color: var(--ve-gold-soft);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ve-tier-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.ve-tier-price {
  min-height: 42px;
  margin-bottom: 16px;
  color: var(--ve-heading);
  font: 700 27px/1.25 var(--ve-font-serif);
}

.ve-tier-price span {
  color: var(--ve-text-muted);
  font: 400 12px/1.3 var(--ve-font-sans);
}

.ve-tier-benefits {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  color: var(--ve-text-story);
  font-size: 13px;
  line-height: 1.5;
  list-style: none;
}

.ve-tier-benefits li {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(154, 121, 71, .13);
}

.ve-tier-benefits .ve-icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--ve-gold-soft);
}

.ve-tier-action {
  margin-top: auto;
}

.ve-tier-action .ve-btn {
  width: 100%;
  justify-content: center;
}

.ve-funnel-hero {
  margin-bottom: 22px;
}

.ve-funnel-proof-list {
  display: flex;
  gap: 9px 16px;
  flex-wrap: wrap;
  margin: 20px 0 22px;
  color: var(--ve-text-story);
  font: 600 12px/1.45 var(--ve-font-sans);
}

.ve-funnel-proof-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ve-funnel-proof-list .ve-icon,
.ve-enrollment-assurances .ve-icon {
  width: 15px;
  height: 15px;
  color: var(--ve-gold-soft);
}

.ve-funnel-microcopy {
  margin: 12px 0 0;
  color: var(--ve-text-muted);
  font: 600 11px/1.45 var(--ve-font-sans);
  letter-spacing: .02em;
}

.ve-funnel-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.ve-funnel-stats article {
  padding: 17px 12px;
  text-align: center;
  background: rgba(9, 17, 29, .82);
  border: 1px solid rgba(154, 121, 71, .24);
  border-radius: 8px;
}

.ve-funnel-stats strong,
.ve-funnel-stats span {
  display: block;
}

.ve-funnel-stats strong {
  color: var(--ve-gold-bright);
  font: 700 25px/1.1 var(--ve-font-serif);
}

.ve-funnel-stats span {
  margin-top: 5px;
  color: var(--ve-text-muted);
  font: 700 10px/1.35 var(--ve-font-sans);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ve-funnel-method,
.ve-funnel-trust,
.ve-funnel-faq,
.ve-funnel-final-cta,
.ve-enrollment-panel {
  margin-bottom: 28px;
  padding: clamp(24px, 4vw, 38px);
}

.ve-funnel-method-grid,
.ve-funnel-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ve-funnel-method-grid article,
.ve-funnel-trust-grid article {
  min-width: 0;
  padding: 20px;
  background: rgba(8, 15, 25, .76);
  border: 1px solid rgba(154, 121, 71, .2);
  border-radius: 8px;
}

.ve-funnel-method-grid span {
  color: var(--ve-gold-soft);
  font: 800 10px/1 var(--ve-font-sans);
  letter-spacing: .13em;
}

.ve-funnel-method-grid h3,
.ve-funnel-trust-grid h3 {
  margin: 9px 0 7px;
  color: var(--ve-heading);
  font-size: 18px;
}

.ve-funnel-method-grid p,
.ve-funnel-trust-grid p {
  margin: 0;
  color: var(--ve-text-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.ve-funnel-trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ve-tier-summary {
  min-height: 42px;
  margin: -4px 0 18px;
  color: var(--ve-text-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.ve-tier-saving {
  width: fit-content;
  margin: -7px 0 12px;
  padding: 5px 8px;
  color: #d9c096;
  background: rgba(154, 121, 71, .1);
  border: 1px solid rgba(190, 148, 82, .24);
  border-radius: 4px;
  font: 700 10.5px/1.35 var(--ve-font-sans);
}

.ve-tier-card.is-selected {
  border-color: rgba(216, 179, 116, .86);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .46), 0 0 26px rgba(190, 148, 82, .14);
}

.ve-pricing-disclosure {
  margin: 16px 0 0;
  color: var(--ve-text-muted);
  font-size: 11.5px;
  text-align: center;
}

.ve-enrollment-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  scroll-margin-top: 90px;
  border-color: rgba(190, 148, 82, .48);
  background:
    radial-gradient(circle at 0 0, rgba(154, 121, 71, .1), transparent 36%),
    linear-gradient(135deg, rgba(13, 23, 39, .98), rgba(7, 13, 23, .97));
}

.ve-enrollment-copy > p:not(.ve-manuscript-kicker) {
  color: var(--ve-text-story);
  line-height: 1.7;
}

.ve-enrollment-assurances {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ve-enrollment-assurances li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ve-text-muted);
  font-size: 12.5px;
}

.ve-enrollment-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 28px);
  background: rgba(5, 10, 18, .72);
  border: 1px solid rgba(154, 121, 71, .3);
  border-radius: 9px;
}

.ve-enrollment-form label:not(.ve-enrollment-consent):not(.ve-form-honeypot) {
  display: grid;
  gap: 7px;
}

.ve-enrollment-form label > span:first-child {
  color: var(--ve-heading);
  font: 700 11px/1.3 var(--ve-font-sans);
  letter-spacing: .04em;
}

.ve-enrollment-form small {
  color: var(--ve-text-muted);
  font-weight: 500;
}

.ve-enrollment-form input[type="text"],
.ve-enrollment-form input[type="email"],
.ve-enrollment-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ve-text-story);
  background: rgba(8, 15, 25, .92);
  border: 1px solid rgba(154, 121, 71, .34);
  border-radius: 6px;
  font: 500 13px/1.4 var(--ve-font-sans);
}

.ve-enrollment-form input:focus,
.ve-enrollment-form select:focus {
  outline: 2px solid rgba(211, 174, 111, .46);
  outline-offset: 1px;
  border-color: rgba(211, 174, 111, .78);
}

.ve-enrollment-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: var(--ve-text-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.ve-enrollment-consent input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: #b98b4e;
}

.ve-form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ve-enrollment-form .ve-btn {
  width: 100%;
  justify-content: center;
}

.ve-enrollment-form .ve-btn:disabled {
  cursor: wait;
  opacity: .68;
}

.ve-enrollment-status {
  min-height: 18px;
  margin: 0;
  color: var(--ve-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.ve-enrollment-status.is-success {
  color: #9ed0aa;
}

.ve-enrollment-status.is-error {
  color: #efaaa0;
}

.ve-faq-list {
  display: grid;
  gap: 10px;
  max-width: 880px;
  margin-inline: auto;
}

.ve-faq-list details {
  background: rgba(8, 15, 25, .76);
  border: 1px solid rgba(154, 121, 71, .2);
  border-radius: 7px;
}

.ve-faq-list summary {
  padding: 15px 18px;
  color: var(--ve-heading);
  cursor: pointer;
  font: 700 14px/1.4 var(--ve-font-serif);
}

.ve-faq-list p {
  margin: 0;
  padding: 0 18px 17px;
  color: var(--ve-text-muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.ve-funnel-final-cta {
  text-align: center;
  background:
    linear-gradient(rgba(7, 11, 18, .78), rgba(7, 11, 18, .93)),
    url("../images/academy-grand-gate-v3.7b666dd3d674.webp") center / cover;
}

.ve-funnel-final-cta > p:not(.ve-manuscript-kicker) {
  max-width: 650px;
  margin: 0 auto 20px;
  color: var(--ve-text-story);
}

.ve-funnel-final-cta .ve-system-actions {
  justify-content: center;
}

.ve-archive-heading {
  margin-bottom: 26px;
}

.ve-archive-card {
  margin-bottom: 24px;
  padding: clamp(20px, 3vw, 28px);
}

.ve-archive-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.ve-archive-stat {
  padding: 16px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(91, 168, 255, .07), transparent 46%),
    rgba(9, 17, 29, .82);
  border: 1px solid rgba(154, 121, 71, .25);
  border-radius: 7px;
}

.ve-archive-stat-value {
  color: var(--ve-gold-bright);
  font: 700 25px/1.2 var(--ve-font-serif);
  text-shadow: 0 0 14px rgba(201, 157, 91, .12);
}

.ve-archive-stat-label {
  margin-top: 4px;
  color: var(--ve-text-muted);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ve-archive-vocab-list {
  min-height: 100px;
}

.ve-archive-loading {
  margin: 0;
  padding: 40px;
  color: var(--ve-text-muted);
  text-align: center;
}

.ve-global-footer {
  position: relative;
  padding-block: 44px 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0, rgba(154, 121, 71, .075), transparent 32%),
    radial-gradient(circle at 88% 100%, rgba(91, 168, 255, .045), transparent 34%),
    #05090f;
  border-top: 1px solid rgba(183, 145, 86, .32);
}

.ve-global-footer::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(760px, 72vw);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(218, 183, 123, .72), rgba(91, 168, 255, .32), transparent);
  box-shadow: 0 0 18px rgba(91, 168, 255, .13);
  transform: translateX(-50%);
}

.ve-footer-grid {
  gap: 18px;
  margin-bottom: 24px;
}

.ve-footer-grid > div {
  min-width: 0;
  padding: 22px;
  background: linear-gradient(180deg, rgba(12, 21, 34, .72), rgba(7, 13, 22, .54));
  border: 1px solid rgba(154, 121, 71, .18);
  border-radius: 8px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .018);
}

.ve-footer-heading {
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 10px;
  color: #ead1aa;
  letter-spacing: .08em;
}

.ve-footer-heading::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, #b68b4f, transparent);
}

.ve-footer-links li + li {
  margin-top: 5px;
}

.ve-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  gap: 6px;
  transition: color .2s ease, text-shadow .2s ease, transform .2s ease;
}

.ve-footer-links a:hover {
  color: #f2d5a9 !important;
  text-shadow: 0 0 12px rgba(91, 168, 255, .18);
  transform: translateX(3px);
}

.ve-footer-legal {
  padding: 16px 18px;
  background: rgba(7, 13, 22, .64);
  border: 1px solid rgba(154, 121, 71, .14);
  border-radius: 7px;
}

@media (max-width: 900px) {
  .ve-tier-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ve-funnel-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ve-funnel-trust-grid,
  .ve-enrollment-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .ve-catalog-status {
    min-height: 0;
    padding: 15px 14px 15px 16px;
  }

  .ve-catalog-status > p:last-child {
    padding: 4px 7px;
  }

  .ve-book-card-link {
    padding: 6px;
  }

  .ve-tier-card {
    padding: 24px 20px;
  }

  .ve-funnel-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ve-funnel-method-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ve-funnel-proof-list {
    display: grid;
  }

  .ve-enrollment-panel {
    padding: 22px 16px;
  }

  .ve-enrollment-form {
    padding: 19px 16px;
  }

  .ve-archive-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .ve-footer-grid > div {
    padding: 19px;
  }

  .ve-footer-legal {
    align-items: flex-start;
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ve-footer-links a {
    transition: none;
  }

  .ve-footer-links a:hover {
    transform: none;
  }
}
