:root {
  --bg: #f0f0ee;
  --surface: #ffffff;
  --navy: #182a4d;
  --text: #2b3648;
  --text-mute: #6b7480;
  --blue: #1e5fd6;
  --blue-light: #4fa3de;
  --blue-dark: #154aae;
  --red: #dd4b37;
  --gold: #f0b429;
  --line: #e4e3df;
  --shadow:
    0 1px 2px rgba(24, 42, 77, 0.05), 0 12px 28px -16px rgba(24, 42, 77, 0.22);
  --font-display: "Sora", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --c-surface-2: #f1f4f8;
  --c-ink: #0f172a;
  --c-ink-2: #475569;
  --c-ink-3: #8a97a8;
  --c-rule: #e3e8ef;
  --c-rule-strong: #cbd5e1;
  --c-accent: #0f172a;
  --c-accent-press: #1e293b;
  --c-accent-fg: #fff;
  --c-accent-soft: #eef1f5;
  --c-hover: var(--c-surface-2);
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;
}
body.body--dark {
  --bg: #0b1220;
  --surface: #121b2e;
  --navy: #f2f4f8;
  --text: #d7dce5;
  --text-mute: #8b94a6;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 28px -16px rgba(0, 0, 0, 0.6);
  --c-surface-2: #161d26;
  --c-ink: #e6edf3;
  --c-ink-2: #9daec0;
  --c-ink-3: #6b7a8d;
  --c-rule: #232b36;
  --c-rule-strong: #313c49;
  --c-accent: #e6edf3;
  --c-accent-press: #c7d3e0;
  --c-accent-fg: #0b0f14;
  --c-accent-soft: #1b232e;
}
* {
  box-sizing: border-box;
}
body,
#q-app {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
a {
  color: inherit;
  cursor: pointer;
}
::selection {
  background: var(--blue-light);
  color: #fff;
}
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.site-header .wrap-wide,
.site-footer .wrap-wide {
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
}

.site-container {
  background: var(--bg);
  max-width: 1480px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 20px 24px 60px;
  z-index: 2;
  position: relative;
}

.content-body {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  /* gap: 16px; */
  gap: 30px;
  display: grid;
}

@media (max-width: 768px) {
  .content-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-container {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .site-container {
    padding: 16px 16px 40px;
  }

  .site-header .wrap-wide {
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 16px 16px 12px;
  }

  .site-header .wrap-wide .brand img {
    height: 30px;
    width: auto;
  }

  .site-header .wrap-wide .campaign-badge img {
    height: 50px;
    width: auto;
  }

  .campaign-script {
    display: none;
  }
}

/* .wrap {
  padding: 0 24px;
} */

.wrap-wide {
  /* max-width: 1480px;
  margin: 0 auto; */
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.site-header.scrolled {
  background: var(--surface);
  border-bottom-color: var(--line);
}
.site-header .wrap-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
}

@media (max-width: 480px) {
  .site-header .wrap-wide,
  .site-footer .wrap-wide {
    padding: 20px 16px 16px;
  }
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 2px;
  cursor: pointer;
}
.brand-the {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--blue-light);
  letter-spacing: 0.02em;
}
.brand-ledger {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  font-weight: 600;
  margin-top: 1px;
}
.campaign-badge {
  display: flex;
  align-items: center;
  gap: 9px;
}
.campaign-badge svg {
  flex-shrink: 0;
}
.campaign-text {
  line-height: 1.15;
}
.campaign-script {
  font-family: "Sora", cursive;
  font-style: italic;
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
  display: block;
}
.campaign-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14.5px;
  color: var(--navy);
  letter-spacing: 0.01em;
  display: block;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.layout-actions {
  display: flex;
  justify-content: flex-end;
  /* padding: 20px 24px 16px; */
  padding: 20px 0 24px;
}

@media (max-width: 480px) {
  .layout-actions {
    padding: 16px 0;
  }
}

/* ===== Hero ===== */
.hero {
  padding: 6px 0 40px;
}
.eyebrow-word {
  color: var(--blue-light);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.hero p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
  /* max-width: 62ch; */
  margin: 0;
}
.hero p b {
  color: var(--navy);
  font-weight: 700;
}
.hero p + p {
  margin-top: 10px;
}

/* ============= LEADERBOARD AD ============= */
.leaderboard-ad-container {
  padding-top: 30px;
  margin: 0 auto;
  width: 100%;
}

.leaderboard-ad-container div {
  text-align: center;
}

.leaderboard-ad-container img {
  max-width: 728px;
  width: 100%;
  height: auto;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .leaderboard-ad-container img {
    max-width: 468px;
    height: auto;
  }
}

@media screen and (max-width: 480px) {
  .leaderboard-ad-container img {
    max-width: 300px;
    height: auto;
  }
}

/* ============= QUIZ SECTION ============= */
.quiz-section {
  padding-bottom: 30px;
}

.quiz-section div {
  text-align: center;
}

.quiz-section img {
  max-width: 728px;
  width: 100%;
  height: auto;
  cursor: pointer;
}

@media screen and (max-width: 468px) {
  .quiz-section {
    margin-left: -16px;
    margin-right: -16px;
  }

  .quiz-section img {
    max-width: 468px;
    height: auto;
  }
}

/* ============= QUIZ DIALOG ============= */
.quiz-modal {
  position: relative;
  width: 100%;
  max-width: 860px !important;
  background: var(--surface);
  border-radius: 16px !important;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--font-body);
}

.quiz-modal--wide {
  max-width: 860px !important;
}

/* Result view: scroll the inner body (not the card) so the card keeps its
   rounded corners — the scrollbar stays inset from the edges instead of
   sitting on top of the top-right / bottom-right corner. */
.quiz-modal--wide .quiz-body {
  margin: 6px;
  max-height: min(72vh, calc(100vh - 160px));
  overflow-y: auto;
  border-radius: 10px;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.quiz-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.quiz-close:hover {
  background: var(--bg);
  color: var(--navy);
}

/* ----- progress bar ----- */
.quiz-progress {
  height: 6px;
  background: var(--line);
}
.quiz-progress-bar {
  height: 100%;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
  transition: width 0.35s ease;
}

/* ----- shared state (loading / error) ----- */
.quiz-state {
  padding: 56px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.quiz-state-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-mute);
}
.quiz-state-icon--err {
  color: var(--red);
}

/* ----- start page ----- */
.quiz-start {
  padding: 54px 40px 48px;
  text-align: center;
}
.quiz-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 12px;
}
.quiz-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.quiz-lead {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  max-width: 42ch;
  margin: 0 auto 28px;
}

/* ----- body wrapper (quiz + result) ----- */
.quiz-body {
  padding: 26px 34px 30px;
}
.quiz-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.quiz-count span {
  color: var(--text-mute);
}
.quiz-question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
  color: var(--navy);
  margin: 0 0 20px;
}

/* ----- answer options ----- */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}
.quiz-option:hover {
  border-color: var(--blue);
  background: var(--bg);
}
.quiz-option:active {
  transform: scale(0.99);
}
.quiz-option--selected {
  border-color: var(--blue);
  background: #bbdefb;
  color: #0d47a1;
}
.quiz-option--selected .quiz-option-caret {
  color: #0d47a1;
}
.quiz-option-caret {
  color: var(--text-mute);
  flex-shrink: 0;
  transition:
    transform 0.15s ease,
    color 0.15s ease;
}
.quiz-option:hover .quiz-option-caret {
  color: var(--blue);
  transform: translateX(3px);
}

/* ----- back link ----- */
.quiz-back {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 6px 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mute);
  cursor: pointer;
  transition: color 0.15s ease;
}
.quiz-back:hover {
  color: var(--blue);
}

/* ----- buttons ----- */
.quiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--r-pill);
  padding: 11px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.quiz-btn--primary {
  background: var(--blue);
  color: #fff;
}
.quiz-btn--primary:hover {
  background: var(--blue-dark);
}
.quiz-btn--outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--line);
  gap: 6px;
}
.quiz-btn--outline:hover {
  border-color: var(--blue);
  background: var(--bg);
}
.quiz-btn--lg {
  padding: 14px 34px;
  font-size: 15px;
}
.quiz-btn:active {
  transform: scale(0.98);
}

/* ----- result page ----- */
.quiz-result-head {
  text-align: center;
  margin-bottom: 24px;
}
.quiz-result-check {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(30, 95, 214, 0.12);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.quiz-result-head .quiz-question {
  margin-bottom: 0;
}

/* Shown when a shared link's answers no longer fully match the current
   quiz (a question was removed/changed since the link was created). */
.quiz-restore-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(240, 180, 41, 0.14);
  border: 1px solid rgba(240, 180, 41, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--navy);
}
.quiz-restore-notice .q-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.quiz-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 26px;
}
@media (min-width: 620px) {
  .quiz-benefits {
    grid-template-columns: 1fr 1fr;
  }
}
.quiz-benefit {
  background: #fbf1e0;
  border-radius: 12px;
  padding: 16px 16px 14px;
}
body.body--dark .quiz-benefit {
  background: var(--c-surface-2);
  border: 1px solid var(--line);
}
.quiz-benefit-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.quiz-benefit-icon {
  color: var(--blue);
  flex-shrink: 0;
}
.quiz-benefit-cat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy);
}
.quiz-benefit-tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(21, 128, 61, 0.12);
  color: #15803d;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
body.body--dark .quiz-benefit-tag {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.14);
}
.quiz-benefit-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.quiz-benefits-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
  padding: 20px;
}
.quiz-result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ----- export / share row (above the main result actions) ----- */
.quiz-export-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.quiz-btn--ghost {
  background: transparent;
  color: var(--text-mute);
  border: 1px dashed var(--line);
  padding: 8px 16px;
  font-size: 12.5px;
  gap: 6px;
}
.quiz-btn--ghost:hover {
  color: var(--blue);
  border-color: var(--blue);
}
.quiz-btn--ghost:disabled {
  opacity: 0.6;
  cursor: default;
}

/* While html2canvas captures the modal for "Save Image", hide the parts
   that shouldn't appear in the exported picture. */
.quiz-modal--capturing .quiz-close,
.quiz-modal--capturing .quiz-export-actions,
.quiz-modal--capturing .quiz-result-actions {
  visibility: hidden;
}

/* "Save PDF" clones the benefits card into #quiz-print-root (appended
   directly to <body>) and prints just that — using display:none (which
   removes elements from layout entirely) instead of visibility:hidden
   avoids Chrome's known quirk of repeating fixed/absolute-positioned
   content on every generated page. See downloadPdf() in quiz.js. */
#quiz-print-root {
  display: none;
}
body.printing-quiz-result > *:not(#quiz-print-root) {
  display: none !important;
}
body.printing-quiz-result #quiz-print-root {
  display: block;
}
#quiz-print-root .quiz-modal {
  max-width: 100% !important;
  box-shadow: none;
  border-radius: 0 !important;
}
#quiz-print-root .quiz-body {
  max-height: none !important;
  overflow: visible !important;
}
#quiz-print-root .quiz-close,
#quiz-print-root .quiz-export-actions,
#quiz-print-root .quiz-result-actions {
  display: none !important;
}
@media print {
  body.printing-quiz-result {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .quiz-start {
    padding: 44px 22px 36px;
  }
  .quiz-body {
    padding: 22px 20px 26px;
  }
  .quiz-question {
    font-size: 17px;
  }
}

/* ============= HIGHLIGHT SECTION ============= */
.hl-section {
  padding-bottom: 40px;
}
.hl-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--navy);
  margin-bottom: 14px;
}
.hl-label .accent {
  color: var(--blue-light);
}
.hl-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}
/* ===== highlights: toolbar (burger + refresh) ===== */
.hl-toolbar {
  display: flex;
  align-items: stretch;
}
.hl-burger {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  background: var(--blue-dark);
  color: #fff;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.15s ease;
}
.hl-burger:hover {
  background: var(--blue);
}

.hl-refresh {
  flex: 1;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 13px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hl-refresh:hover {
  background: var(--blue-dark);
}
.hl-refresh:disabled {
  opacity: 0.5;
  cursor: default;
}
.hl-refresh .q-icon {
  transition: transform 0.4s ease;
}
.hl-refresh.spinning .q-icon {
  transform: rotate(180deg);
}
/* Contained layout that hosts the collapsible category drawer.
   Fixed height so toggling the drawer never changes the section height.
   The bullet list (.hl-body) is the ONLY scroll region; the "Next Category"
   button keeps its natural height and stays anchored at the bottom —
   flexbox handles that, so no hardcoded button-height math is needed. */
.hl-section {
  --hl-h: 430px;
}
.hl-layout.hl-layout {
  height: var(--hl-h);
  min-height: var(--hl-h);
}
/* Quasar only sets min-height on .q-page; pin the real height so the
   flex children below it are actually bounded and can scroll. */
.hl-layout .hl-page {
  height: var(--hl-h);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hl-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.hl-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 26px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.hl-body::-webkit-scrollbar {
  width: 6px;
}
.hl-body::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}
.hl-empty {
  font-size: 13px;
  color: var(--text-mute);
}
.hl-fade-enter-active,
.hl-fade-leave-active {
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}
.hl-fade-enter-from {
  opacity: 0;
  transform: translateY(4px);
}
.hl-fade-leave-to {
  opacity: 0;
  transform: translateY(-4px);
}
.hl-cat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--navy);
  margin: 0 0 10px;
}
.hl-list {
  margin: 0;
  padding-left: 19px;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hl-list li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.hl-link {
  color: var(--blue-light);
  font-weight: 600;
}

/* ===== highlights: category drawer (pushes content, no overlay) ===== */
.hl-drawer .q-drawer__content {
  overflow-y: auto;
  background: var(--surface);
}
.hl-topicList {
  margin: 0;
  padding: 14px 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  list-style: none;
}
.hl-topicList li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  padding: 7px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.hl-topicList li:hover {
  background: var(--bg);
}
.hl-topicList li.active {
  background: var(--bg);
  color: var(--blue);
  font-weight: 600;
}

/* Mobile: tighter, smaller category list (collapsed by default via JS). */
@media (max-width: 1023px) {
  .hl-topicList {
    padding: 8px 6px 8px 8px;
    gap: 2px;
  }
  .hl-topicList li {
    font-size: 11.5px;
    line-height: 1.35;
    padding: 6px 7px;
  }
}

.hl-next-btn {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px 18px;
  background: var(--surface);
  border: none;
  border-top: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: background 0.15s ease;
}
.hl-next-btn:hover {
  background: var(--bg);
}
.hl-next-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  flex-shrink: 0;
}
.hl-next-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hl-next-btn .q-icon {
  color: var(--text-mute);
  flex-shrink: 0;
}
.hl-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 14px 0 0;
}
.hl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
}
.hl-dot.active {
  background: var(--blue);
  width: 16px;
  border-radius: 4px;
}

/* ===== charts section ===== */
.charts-section {
  background: #d9d9d6;
  position: relative;
  padding: 56px 0;
}
body.body--dark .charts-section {
  background: #1a2333;
}
.charts-inner {
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}
.charts-card {
  touch-action: pan-y;
  aspect-ratio: 4/5;
  background: var(--surface);
  border-radius: 4px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* padding: 38px 34px; */
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.charts-swipe-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25%;
  z-index: 2;
}
.charts-swipe-zone.left {
  left: 0;
}
.charts-swipe-zone.right {
  right: 0;
}
.charts-bg-lines {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}
.charts-title-1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--blue);
  line-height: 1.15;
}
.charts-title-2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--navy);
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.charts-arrow-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.charts-brand {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: var(--navy);
  opacity: 0.7;
}
.charts-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.charts-nav.prev {
  left: -18px;
}
.charts-nav.next {
  right: -18px;
}
@media (max-width: 520px) {
  .charts-nav.prev {
    left: 6px;
  }
  .charts-nav.next {
    right: 6px;
  }

  .charts-section {
    padding: 56px 16px;
    margin-left: -16px;
    margin-right: -16px;
  }
}

.charts-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
}
.charts-dots .hl-dot {
  background: rgba(24, 42, 77, 0.25);
}
.charts-dots .hl-dot.active {
  background: var(--navy);
}

/* ===== Economy reels (9:16 shelf) ===== */
.econ-section {
  padding: 30px 0 20px;
}
.econ-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.econ-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
}
.econ-nav-btns {
  display: flex;
  gap: 6px;
}
.reel-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.reel-arrow:hover {
  background: var(--bg);
  border-color: var(--blue-light);
}

.reels-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reels-track::-webkit-scrollbar {
  display: none;
}

/* ======= Carousel Cards ======= */
.carousel-section {
  /* padding: 30px 0 10px; */
  padding: 0 0 10px;
}
.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.carousel-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
}
.carousel-nav-btns {
  display: flex;
  gap: 6px;
}

.carousel-card {
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  height: 250px;
  aspect-ratio: 6/5;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.carousel-card:hover {
  transform: translateY(-3px);
}

.carousel-lightbox-card {
  border-radius: 14px !important;
}

/* Image lightbox — keep the slide fully visible on any screen */
.img-lightbox-card {
  width: auto;
  max-width: 96vw;
  max-height: 92vh;
  margin: auto;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.img-lightbox-section {
  overflow: auto;
}
.img-lightbox-img {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}
@media (max-width: 600px) {
  .img-lightbox-card {
    max-width: 100vw;
  }
  .img-lightbox-img {
    max-height: 68vh;
  }
}

.reel-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(148px, 30vw, 208px);
  aspect-ratio: 9/16;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.reel-card:hover {
  transform: translateY(-3px);
}
.reel-poster {
  position: absolute;
  inset: 0;
  background-color: #0b1420;
}
.reel-skyline {
  position: absolute;
  inset: 0;
}
.reel-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0) 65%
  );
  background-size: 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  z-index: 1;
}
@keyframes shimmer {
  from {
    background-position: 150% 0;
  }
  to {
    background-position: -50% 0;
  }
}
.reel-badge-duration {
  position: absolute;
  top: 9px;
  right: 9px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  z-index: 2;
}
.reel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.reel-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.78) 100%
  );
  z-index: 1;
}
.reel-meta {
  position: absolute;
  left: 11px;
  bottom: 32px;
  z-index: 2;
  color: #edeff2;
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.9;
}
.reel-author {
  opacity: 0.85;
  font-weight: 500;
}
.reel-caption {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 10px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.3;
}
.reels-hint {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 10px;
}
@media (min-width: 768px) {
  .reels-hint {
    display: none;
  }
}

/* Reel lightbox */
.reel-modal {
  position: relative;
  width: min(88vw, calc(85vh * 9 / 16));
  height: 85vh;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}
.reel-embed-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}
/* Shown over the bottom of the TikTok player if it fails to load. */
.reel-fallback {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12.5px;
}
.reel-fallback button,
.reel-fallback a {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.carousel-embed-wrap {
  width: 95%;
  height: 100%;
  margin: 0 auto;
}

/* Landscape variant for YouTube (16:9) — overrides the portrait .reel-modal */
.reel-modal--wide {
  width: min(92vw, 960px);
  height: auto;
  aspect-ratio: 16 / 9;
}
.reel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  color: #fff;
  gap: 10px;
}
.ph-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.ph-body {
  font-size: 12.5px;
  color: #b9c4d4;
  line-height: 1.6;
  max-width: 34ch;
}
.ph-body code {
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 11.5px;
}
.reel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ===== MRec Ad section ===== */
.ad-container {
  margin: 30px auto;
  max-width: 300px;
  justify-content: center;
}

/* ===== News section ===== */
.news-section {
  padding: 30px 0 20px;
}
.news-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 16px;
}
.news-card {
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 22px 22px 8px;
}
.news-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 18px;
}
.news-filter-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.6;
  margin-right: 2px;
}
.news-filter-chips .q-chip {
  cursor: pointer;
}
.news-refresh-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--c-rule);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.news-refresh-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--blue);
}
.news-refresh-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.news-refresh-btn.spinning .q-icon {
  animation: news-refresh-spin 0.8s linear infinite;
}
@keyframes news-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 22px;
}
/* @media (min-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
} */
.news-row {
  display: flex;
  gap: 13px;
  padding-bottom: 16px;
  align-items: flex-start;
  text-decoration: none;
}
.news-thumb {
  width: 78px;
  height: 60px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-thumb .q-icon {
  font-size: 20px !important;
  color: rgba(255, 255, 255, 0.92);
}
.news-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
}
.news-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  margin-top: 3px;
}
.load-more-btn {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 13px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  margin: 8px 0 20px;
  transition: background 0.15s ease;
}
.load-more-btn:hover {
  background: var(--blue-dark);
}
.load-more-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ========== Pinned News Section ========== */
.pinned-news {
  border-bottom: 2px solid var(--c-rule);
  margin-bottom: 12px;
  padding-bottom: 12px;
  text-decoration: none;
  display: block;
}

.pinned-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-md, 8px);
  width: 100%;
  margin-bottom: 8px;
  display: block;
}

.pinned-body {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.pinned-badge {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
  color: var(--c-accent-fg);
  background: var(--c-accent);
  border-radius: var(--r-pill);
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 700;
  display: inline-block;
}

.pinned-title {
  color: var(--c-ink);
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 26px 0 20px;
  margin-top: 10px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-badges {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  border-radius: 5px;
  padding: 6px 11px;
  font-size: 10.5px;
  font-weight: 600;
}
.store-badge small {
  display: block;
  font-weight: 400;
  font-size: 8px;
  opacity: 0.75;
}
.footer-social {
  display: flex;
  gap: 7px;
}
.soc {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.footer-copy {
  text-align: center;
  font-size: 10.5px;
  color: var(--text-mute);
  margin-top: 16px;
}
.footer-fine {
  text-align: center;
  font-size: 10px;
  color: var(--text-mute);
  opacity: 0.7;
  margin-top: 6px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .footer-row {
    justify-content: center;
    text-align: center;
  }

  .footer-badges,
  .footer-social {
    justify-content: center;
  }

  .site-footer {
    padding: 20px 0 20px;
  }
}

/* ===== Scroll to top ===== */
.scroll-top-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  border: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
