/* ============================================================
   1. GLOBAL VARIABLES & RESETS
   ============================================================ */

:root {
  --background: #fbf9f7;
  --surface: #ffffff;
  --surface-2: #f7f4f1;
  --surface-offset: #f0ebe8;
  --primary: #e8546a;
  --secondary: #9b72cf;
  --text-main: #1c1714;
  --text-muted: #6b5e58;
  --divider: #e8e2de;
  --border: #ddd6d0;

  --shadow-sm:
    0 1px 3px rgba(28, 23, 20, 0.07), 0 1px 2px rgba(28, 23, 20, 0.05);
  --shadow-md:
    0 4px 12px rgba(28, 23, 20, 0.08), 0 2px 4px rgba(28, 23, 20, 0.05);
  --shadow-brand: 0 4px 20px rgba(232, 84, 106, 0.25);

  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --font-heading: "Playfair Display", serif;
  --font-body: "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--background);
  color: var(--text-main);
}

html,
body {
  min-height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}

main.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

img {
  max-width: 100%;
  display: block;
}
button,
a {
  font-family: inherit;
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

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

.gradient-bg {
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hidden {
  display: none !important;
}
.fade-in-up {
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes modalFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   2. COLOUR UTILITIES
   Single source of truth for all status/sentiment colours.
   Used by gauge, verdict, spending results, rent pressure.
   ============================================================ */

/* Surplus / positive / safe → green */
.surplus-color,
.positive-color,
.safe-color,
.gauge-status-stable {
  color: #2d8a4e;
}

/* Deficit / negative / risk → red */
.deficit-color,
.negative-color,
.risk-color,
.gauge-status-risk {
  color: #c0392b;
}

/* Warning / vulnerable → amber */
.warning-color,
.vulnerable-color,
.gauge-status-vulnerable {
  color: #b7791f;
}

/* Rent pressure inline labels */
.rent-pressure-stable {
  color: #2e7d32 !important;
}
.rent-pressure-vulnerable {
  color: #f9a825 !important;
}
.rent-pressure-risk {
  color: #e53935 !important;
}

/* Higher / lower comparison pills */
.higher {
  color: #2d8a4e;
  font-weight: 800;
}
.lower {
  color: #c0392b;
  font-weight: 800;
}

/* Dot colours reused by gauge legend and chart legend */
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot.stable,
.legend-dot.safe {
  background: #2d8a4e;
}
.legend-dot.vulnerable {
  background: #e29b22;
}
.legend-dot.risk {
  background: #e5362f;
}

/* ============================================================
   3. NAVBAR
   One universal sticky navbar. All pages use .navbar.
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

#positionInsight {
  white-space: pre-line;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
  gap: 24px;
}

.logo {
  height: 80px;
  width: auto;
}
.logo-link {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--primary);
}

.nav-link-active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* ============================================================
   4. FOOTER
   ============================================================ */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--divider);
  padding: 2px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
}
.footer-brand p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.footer-modal-link {
  background: none;
  border: none;
  cursor: pointer;

  /* Same as navbar .nav-link */
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding-bottom: 4px;
  transition: color 0.3s ease;

  white-space: nowrap;
}

.footer-modal-link:hover,
.footer-modal-link:focus-visible {
  color: var(--primary);
}

/* ============================================================
   5. MODAL
   One reusable modal system. Used by dashboard, landing,
   income comparison, and knowledge hub pages.
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(28, 23, 20, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-box {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(28, 23, 20, 0.18);
  padding: 36px;
  animation: modalFadeUp 0.25s ease;
}

.modal-box.modal-box-lg {
  width: min(720px, 100%);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--divider);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
}

.modal-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-brand);
  margin-bottom: 20px;
}

.modal-icon .material-symbols-outlined {
  font-size: 30px;
}

.modal-box h2 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1.15;
  color: var(--text-main);
}
.modal-box p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}
.modal-box p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   6. BUTTONS
   .back-home-btn  — pill ghost button (back / close / edit)
   .primary-btn    — gradient CTA button
   ============================================================ */

/* Universal back / ghost pill — replaces all page-specific
   back btn variants: .career-back-btn, .credit-back-btn,
   .debt-back-btn, .hub-back-btn, .income-back-btn etc. */
.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  cursor: pointer;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.back-home-btn:hover,
.back-home-btn:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Gradient CTA — replaces .primary-button, .landing-btn-primary */
.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(232, 84, 106, 0.34);
}

.income-insight-box .primary-btn {
  margin-top: 16px;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   SHARED NEXT STEP CTA
   Used in income comparison and rent comparison pages.
   ============================================================ */

.income-living-hero-cta {
  text-align: center;
  padding: 28px 24px;
  margin-top: 24px;
  background: var(--surface-offset);
  border-radius: var(--radius-md);
}

.income-living-hero-cta h2 {
  margin: 0 0 22px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 525;
  line-height: 1.6;
  letter-spacing: normal;
  text-align: center;
}

.income-living-hero-cta .landing-hero-actions {
  display: flex;
  justify-content: center;
  padding-top: 0;
}

.income-living-hero-cta .landing-btn,
.income-living-hero-cta .landing-btn-primary {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
}

/* ============================================================
   7. PAGE HEADER
   Flex row: title on left, action button on right.
   Used by spending results, income comparison, rent comparison,
   debt projection, and career aspirations.
   ============================================================ */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.page-header h1 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

/* Left content block inside .page-header */
.page-header-left {
  flex: 1;
}

.page-header-left h1 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
}

.page-header-left p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

/* ============================================================
   8. PAGE LAYOUT — sidebar + main
   Two-column layout reused by rent comparison and
   income comparison pages.
   ============================================================ */

.page-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 110px;
}

.page-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* Filter card — sidebar search/filter panel */
.filter-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.filter-card-title {
  margin: 0 0 12px;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
}

/* Info message — blue-tinted contextual note inside filter cards */
.info-message {
  background: rgba(25, 118, 210, 0.08);
  border-left: 4px solid #1976d2;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  padding: 16px;
  margin-bottom: 16px;
}

/* ============================================================
   9. SHARED CARD TYPES
   .content-card  — plain surface card (general use)
   .insight-card  — soft gradient card for callouts
   .empty-state   — hidden by default, shown by JS when no data
   ============================================================ */

.content-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.insight-card {
  background: linear-gradient(
    135deg,
    rgba(232, 84, 106, 0.05) 0%,
    rgba(155, 114, 207, 0.05) 100%
  );
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 180px;
}

/* Hidden by default — JS adds display:block when no data exists */
.empty-state {
  display: none;
  background:
    radial-gradient(
      circle at top right,
      rgba(232, 84, 106, 0.08),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(155, 114, 207, 0.08),
      transparent 36%
    ),
    var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 44px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 12px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 34px;
}
.empty-state p {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================================
   10. CHART UTILITIES
   Shared wrappers and legends used by spending results,
   income comparison, rent comparison, and career pages.
   ============================================================ */

/* Generic chart canvas wrapper — override height per context */
.chart-wrap {
  position: relative;
  width: 100%;
  height: 320px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--divider);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
}

.chart-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ============================================================
   11. TUTORIAL
   One implementation used across all pages.
   JS reads TUTORIAL_STEPS from each page's inline script.
   ============================================================ */

/* Floating help button */
.tutorial-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9500;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.tutorial-fab:hover,
.tutorial-fab:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(232, 84, 106, 0.34);
  outline: none;
}

.tutorial-fab .material-symbols-outlined {
  font-size: 28px;
}

/* Full-screen dim overlay */
.tutorial-spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  pointer-events: none;
}

.tutorial-spotlight-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(28, 23, 20, 0.55);
  pointer-events: none;
}

/* Highlight box around the active element */
.tutorial-highlight-box {
  position: fixed;
  z-index: 20002;
  border: none;
  border-radius: 22px;
  background: transparent;
  pointer-events: none;
  transition: all 0.25s ease;
  opacity: 0;
}

.tutorial-highlight-box.is-ready {
  opacity: 1;
}

.tutorial-highlight-box:not(.is-ready),
.tutorial-popover:not(.is-ready) {
  opacity: 0;
  pointer-events: none;
}

/* Lift the targeted element above the dim overlay */
.tutorial-active-target {
  position: relative;
  z-index: 20001 !important;
  filter: none !important;
  opacity: 1 !important;
  isolation: isolate;
}

/* Floating popover card */
.tutorial-popover {
  position: fixed;
  z-index: 20003;
  width: min(360px, calc(100vw - 32px));
  min-height: 280px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(28, 23, 20, 0.24);
  padding: 26px;
  pointer-events: none;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(8px);
}

.tutorial-popover.is-ready {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tutorial-step-indicator {
  margin-bottom: 14px;
}

.tutorial-step-indicator span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(232, 84, 106, 0.08);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tutorial-popover h2 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.15;
  color: var(--text-main);
}

.tutorial-popover p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.tutorial-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.tutorial-skip-btn,
.tutorial-next-btn {
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  padding: 11px 16px;
  transition: all 0.25s ease;
}

.tutorial-skip-btn {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--divider);
}

.tutorial-next-btn {
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}

.tutorial-skip-btn:hover,
.tutorial-skip-btn:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.tutorial-next-btn:hover,
.tutorial-next-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 84, 106, 0.32);
}

/* Optional close button — hidden by default */
.tutorial-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--divider);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.tutorial-close:hover,
.tutorial-close:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 520px) {
  .tutorial-popover {
    left: 16px !important;
    right: 16px !important;
    width: auto;
  }
  .tutorial-actions {
    flex-direction: column-reverse;
  }
  .tutorial-skip-btn,
  .tutorial-next-btn {
    width: 100%;
  }
}

/* ============================================================
   12. SPENDING RESULTS — SUMMARY STRIP
   Four-card grid at the top of spending results and
   debt projection pages.
   ============================================================ */
/* Force surplus / deficit colour on spending results summary card */
.summary-card .summary-value.surplus-color,
.summary-grid .summary-value.surplus-color,
#summarySurplus.surplus-color {
  color: #2d8a4e !important;
}

.summary-card .summary-value.deficit-color,
.summary-grid .summary-value.deficit-color,
#summarySurplus.deficit-color {
  color: #c0392b !important;
}
.results-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.results-content {
  display: block;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.summary-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at top right,
      rgba(232, 84, 106, 0.07),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(155, 114, 207, 0.07),
      transparent 36%
    ),
    var(--surface);
  border: 1px solid var(--divider);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 84, 106, 0.22);
}

.summary-label {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-value {
  color: var(--text-main);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

/* Status pill inside a summary card e.g. "At Risk" */
.summary-pressure-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 900;
  padding: 9px 13px;
  letter-spacing: normal;
}

/* ============================================================
   13. SPENDING RESULTS — MAIN GRID
   Two-column layout holding the gauge, donut, verdict,
   and benchmark cards.
   ============================================================ */

.results-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.results-left-column,
.results-right-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Shared base for all result cards */
.pressure-card,
.chart-card,
.verdict-card,
.benchmark-card,
.action-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.pressure-card:hover,
.chart-card:hover,
.verdict-card:hover,
.benchmark-card:hover,
.action-card:hover {
  border-color: rgba(232, 84, 106, 0.18);
  box-shadow: var(--shadow-md);
}

.pressure-card h3,
.chart-card h3,
.verdict-card h3,
.benchmark-card h3,
.action-card h3 {
  margin: 0 0 10px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.pressure-card > p,
.chart-card > p,
.benchmark-card > p,
.action-card > p {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================================
   14. RENT PRESSURE CARD
   Gradient card containing the gauge meter.
   ============================================================ */

.pressure-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(232, 84, 106, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at top right,
      rgba(232, 84, 106, 0.08),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(155, 114, 207, 0.08),
      transparent 36%
    ),
    var(--surface);
}

.pressure-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.94) 100%
  );
  pointer-events: none;
}

.pressure-card > * {
  position: relative;
  z-index: 1;
}

.pressure-card h3,
.pressure-card h2 {
  margin: 0 0 10px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.pressure-card > p {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

/* ============================================================
   15. RENT GAUGE
   Semi-circle SVG gauge with needle, labels, and legend.
   Used on spending results and rent comparison pages.
   ============================================================ */

.rent-gauge {
  max-width: 760px;
  margin: 18px auto 0;
  padding: 22px 26px 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--divider);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.gauge-wrap {
  position: relative;
  width: min(420px, 100%);
  height: 190px;
  margin: 0 auto;
  padding-top: 10px;
  filter: drop-shadow(0 8px 18px rgba(28, 23, 20, 0.08));
}

.gauge-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* SVG arc strokes — fill:none prevents default black fill */
.gauge-segment {
  fill: none;
  stroke-width: 21;
  stroke-linecap: round;
}
.gauge-stable {
  stroke: #2d8a4e;
}
.gauge-vulnerable {
  stroke: #e29b22;
}
.gauge-risk {
  stroke: #e5362f;
}

/* Tick marks — hidden; kept for markup compatibility */
.gauge-tick {
  display: none !important;
}

/* Percentage labels positioned absolutely inside .gauge-wrap */
.gauge-label {
  position: absolute;
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--divider);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  z-index: 9;
}

.gauge-label-0 {
  left: 7%;
  bottom: 31px;
}
.gauge-label-30 {
  left: 27%;
  top: 32px;
  z-index: 5;
}
.gauge-label-45 {
  right: 34%;
  top: 32px;
  z-index: 5;
}
.gauge-label-75 {
  right: 7%;
  bottom: 31px;
}

/* Rotating needle */
.gauge-needle {
  position: absolute;
  left: 50%;
  bottom: 44px;
  width: 4px;
  height: 78px;
  background: var(--text-main);
  border-radius: 999px;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-90deg);
  transition: transform 0.5s ease;
  box-shadow: 0 4px 12px rgba(28, 23, 20, 0.16);
}

/* Centre pivot dot */
.gauge-center {
  position: absolute;
  left: 50%;
  bottom: 36px;
  width: 18px;
  height: 18px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: var(--text-main);
  transform: translateX(-50%);
  box-shadow: 0 6px 14px rgba(28, 23, 20, 0.16);
}

/* Large percentage number below the gauge */
.gauge-value {
  margin: -4px 0 18px;
  color: var(--text-main);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  letter-spacing: -0.035em;
}

/* Three-item legend below the value */
.gauge-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 640px;
  margin: 14px auto 0;
}

.gauge-legend-item {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.gauge-legend-item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 900;
}
.gauge-legend-item small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

/* ============================================================
   16. VERDICT CARD
   Split layout: narrative text on left, top-drivers on right.
   ============================================================ */

.verdict-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: stretch;
  background:
    radial-gradient(
      circle at top right,
      rgba(232, 84, 106, 0.08),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(155, 114, 207, 0.08),
      transparent 36%
    ),
    var(--surface);
}

.verdict-left {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.verdict-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  box-shadow: var(--shadow-brand);
  color: #ffffff;
  font-size: 28px;
}

.verdict-copy p:first-child {
  margin: 0 0 10px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.18;
}

.verdict-copy p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Verdict state variants — class added by spending_results.js ── */

.verdict-card.surplus {
  border-color: rgba(45, 138, 78, 0.28);
  background:
    radial-gradient(
      circle at top right,
      rgba(45, 138, 78, 0.09),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(45, 138, 78, 0.05),
      transparent 36%
    ),
    var(--surface);
}

.verdict-card.surplus .verdict-icon {
  background: linear-gradient(135deg, #2d8a4e 0%, #42bd8e 100%);
  box-shadow: 0 4px 20px rgba(45, 138, 78, 0.28);
}

.verdict-card.surplus .verdict-copy p:first-child {
  color: #2d8a4e;
}

.verdict-card.deficit {
  border-color: rgba(192, 57, 43, 0.28);
  background:
    radial-gradient(
      circle at top right,
      rgba(192, 57, 43, 0.09),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(192, 57, 43, 0.05),
      transparent 36%
    ),
    var(--surface);
}

.verdict-card.deficit .verdict-icon {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  box-shadow: 0 4px 20px rgba(192, 57, 43, 0.28);
}

.verdict-card.deficit .verdict-copy p:first-child {
  color: #c0392b;
}

.verdict-card.tight {
  border-color: rgba(183, 121, 31, 0.28);
  background:
    radial-gradient(
      circle at top right,
      rgba(183, 121, 31, 0.09),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(183, 121, 31, 0.05),
      transparent 36%
    ),
    var(--surface);
}

.verdict-card.tight .verdict-icon {
  background: linear-gradient(135deg, #b7791f 0%, #e29b22 100%);
  box-shadow: 0 4px 20px rgba(183, 121, 31, 0.28);
}

.verdict-card.tight .verdict-copy p:first-child {
  color: #b7791f;
}

/* ============================================================
   17. TOP DRIVERS PANEL
   Sits inside the verdict card right column.
   ============================================================ */

.drivers-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--divider);
  border-radius: 24px;
  padding: 22px;
}

.drivers-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.drivers-card h3 {
  margin: 0 0 8px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 24px;
}

.drivers-card > p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.top-drivers {
  display: grid;
  gap: 10px;
}

.driver-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 12px;
}

.driver-name {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 900;
}
.driver-value {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

/* ============================================================
   18. BENCHMARK CARD
   Comparison chart + insight list + data table.
   ============================================================ */

.benchmark-card {
  margin-bottom: 28px;
}

.benchmark-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 26px;
}

.benchmark-chart-wrap {
  position: relative;
  width: 100%;
  height: 360px;
}

.benchmark-insights {
  display: grid;
  gap: 14px;
}

.benchmark-insight-item {
  background: var(--surface-2);
  border: 1px solid var(--divider);
  border-radius: 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  padding: 16px;
}

.benchmark-warning {
  margin-top: 18px;
  color: #b7791f;
  font-size: 14px;
  font-weight: 800;
}

.benchmark-table {
  width: 100%;
  margin-top: 28px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: 20px;
  background: var(--surface);
}

.benchmark-table th {
  background: var(--surface-2);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 14px 16px;
  text-align: left;
  text-transform: uppercase;
}

.benchmark-table td {
  border-top: 1px solid var(--divider);
  color: var(--text-muted);
  font-size: 14px;
  padding: 14px 16px;
}

.benchmark-table td strong {
  color: var(--text-main);
}

/* ============================================================
   19. ACTION / NEXT STEPS CARD
   Gradient feature card with chip tags and link grid.
   Used on spending results page.
   ============================================================ */

.action-card {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  margin-bottom: 20px;
  padding: 36px;
  background:
    radial-gradient(
      circle at top right,
      rgba(232, 84, 106, 0.11),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(155, 114, 207, 0.1),
      transparent 36%
    ),
    var(--surface);
  border: 1px solid var(--divider);
  border-radius: 32px;
  box-shadow: var(--shadow-sm);
}

.action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.94) 100%
  );
  pointer-events: none;
}

.action-card > * {
  position: relative;
  z-index: 1;
}

.action-card h3,
.action-card h2 {
  margin: 0 0 12px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.action-card > p {
  max-width: 980px;
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
}

/* Chip tags row */
.action-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 30px;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid rgba(232, 84, 106, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(232, 84, 106, 0.07);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* Link card grid */
.action-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.action-links a,
.action-link-card {
  min-height: 150px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--divider);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.action-links a:hover,
.action-links a:focus-visible,
.action-link-card:hover,
.action-link-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(232, 84, 106, 0.3);
  box-shadow: var(--shadow-md);
  outline: none;
}

/* Gradient icon box inside each link card */
.action-links a > span:first-child,
.action-link-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(232, 84, 106, 0.24);
  font-size: 28px;
}

.action-links a strong,
.action-link-card strong,
.action-link-title {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
}

.action-links a p,
.action-link-card p,
.action-link-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

/* ============================================================
   20. SPENDING TRACKER
   Income banner, expense cards, totals bar.
   Used by spending_tracker.html.
   ============================================================ */

/* Contextual intro note at top of page */
.intro-note {
  background: linear-gradient(
    135deg,
    rgba(232, 84, 106, 0.08),
    rgba(155, 114, 207, 0.08)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 28px;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.65;
  box-shadow: var(--shadow-sm);
}

/* Income + rent banner strip */
.income-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.split-banner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.banner-half {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 22px;
}
.banner-half:first-child {
  border-right: 1px solid var(--divider);
  padding-left: 0;
}
.banner-half:last-child {
  padding-right: 0;
}

.income-banner-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.income-banner-value {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
}

.income-edit {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.income-edit label {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.income-edit input {
  width: 120px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--background);
  color: var(--text-main);
  outline: none;
}

.income-edit input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232, 84, 106, 0.1);
}

/* Expense sections */
.expenses-section {
  margin-bottom: 28px;
}
.expenses-section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-main);
}
.expenses-section-subtitle {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.section-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.badge-essential {
  background: #e6f0ff;
  color: #2f5aa8;
}
.badge-nonessential {
  background: #ede8f7;
  color: #6b3fa0;
}

.expense-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expense-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.2s,
    transform 0.15s;
}

.expense-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.expense-card.essential-card {
  border-left: 4px solid #4a7bdc;
}
.expense-card.nonessential-card {
  border-left: 4px solid #9b72cf;
}

.expense-icon {
  font-size: 23px;
  flex-shrink: 0;
  width: 38px;
  text-align: center;
}
.expense-info {
  flex: 1;
  min-width: 0;
}
.expense-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 3px;
  color: var(--text-main);
}
.expense-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.expense-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.expense-prefix {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 700;
}
.expense-suffix {
  font-size: 12px;
  color: var(--text-muted);
}

.expense-input {
  width: 92px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  background: var(--background);
  color: var(--text-main);
  outline: none;
}

.expense-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232, 84, 106, 0.1);
}

.remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  line-height: 1;
  border-radius: 50%;
  transition:
    color 0.15s,
    background 0.15s;
  flex-shrink: 0;
}
.remove-btn:hover {
  color: var(--primary);
  background: rgba(232, 84, 106, 0.08);
}

.add-expense-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.add-expense-row select {
  flex: 1;
  min-width: 220px;
  padding: 11px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.add-expense-row select:focus {
  border-color: var(--primary);
  border-style: solid;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.add-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Totals bar */
.totals-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.total-item {
  text-align: center;
}
.total-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}
.total-value {
  font-size: 23px;
  font-weight: 800;
  color: var(--text-main);
}

/* Left over value colour */
.total-value.surplus-color {
  color: #2d8a4e;
}

.total-value.deficit-color {
  color: #c0392b;
}

/* Category colour tokens — used on totals bar and legend dots */
.essential-color {
  color: #2f5aa8;
}
.nonessential-color {
  color: #9b72cf;
}
.total-color {
  color: var(--text-main);
}

.cta-row {
  display: flex;
  justify-content: center;
  margin: 28px 0 38px;
}

@media (max-width: 760px) {
  .split-banner {
    grid-template-columns: 1fr;
  }
  .banner-half {
    padding: 0;
  }
  .banner-half:first-child {
    border-right: none;
    border-bottom: 1px solid var(--divider);
    padding-bottom: 18px;
    margin-bottom: 18px;
  }
  .expense-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .expense-input-wrap {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ============================================================
   21. DASHBOARD PAGE
   Snapshot card, insights grid, feature tiles.
   ============================================================ */

.dashboard-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.dashboard-main {
  flex: 1;
  padding: 48px 0 80px;
}

/* Financial snapshot card */
.dashboard-snapshot-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px;
  margin-bottom: 48px;
}

.dashboard-snapshot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(232, 84, 106, 0.13),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(155, 114, 207, 0.13),
      transparent 34%
    );
  pointer-events: none;
}

.dashboard-snapshot-title,
.dashboard-snapshot-label,
.dashboard-typewriter-text {
  position: relative;
  z-index: 1;
}

.dashboard-snapshot-title {
  margin: 0 0 8px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.dashboard-snapshot-label {
  margin: 0 0 20px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-typewriter-text {
  min-height: 70px;
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.8;
}

.dashboard-typewriter-text::after {
  content: "|";
  color: var(--primary);
  animation: dashboardCursorBlink 0.8s infinite;
}
.dashboard-typewriter-text.typewriter-complete::after {
  content: "";
  animation: none;
}

@keyframes dashboardCursorBlink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Section heading */
.dashboard-section-heading {
  text-align: center;
  margin-bottom: 32px;
}
.dashboard-section-heading h2 {
  margin: 0 0 10px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 42px);
}
.dashboard-section-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* Insight module grid */
.dashboard-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Feature tiles */
.dashboard-feature-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  background-image: var(--tile-bg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.dashboard-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  transition: background 0.28s ease;
}
.dashboard-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.88) 100%
  );
  pointer-events: none;
}

.dashboard-feature-card:hover,
.dashboard-feature-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 84, 106, 0.32);
}

.dashboard-feature-card:hover::before,
.dashboard-feature-card:focus-within::before {
  background: rgba(255, 255, 255, 0.62);
}

.dashboard-feature-link {
  position: relative;
  z-index: 1;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: inherit;
  text-decoration: none;
}

.dashboard-feature-copy {
  width: 100%;
}
.dashboard-feature-title {
  margin: 0 0 8px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 25px;
  line-height: 1.15;
  text-transform: capitalize;
}
.dashboard-feature-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

/* ToS modal content */
.dashboard-tos-content {
  padding-right: 4px;
}
.dashboard-credit-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}
.dashboard-credit-section h3 {
  margin: 0 0 14px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 22px;
}
.dashboard-credit-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.dashboard-credit-list li {
  margin-bottom: 10px;
}
.dashboard-credit-list a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.dashboard-credit-list a:hover {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .dashboard-insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dashboard-insights-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-snapshot-card {
    padding: 24px;
  }
}

/* ============================================================
   22. INCOME COMPARISON PAGE
   Two-column map layout, detail panel, legend, badges.
   ============================================================ */

.income-comparison-container {
  min-height: 100vh;
  background: var(--background);
  padding: 40px 20px;
}
.income-comparison-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Two-column layout */
.income-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.income-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.income-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sidebar filter card — uses global .filter-card but income needs extra inner elements */
.income-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.income-field-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.income-profile-location {
  background: var(--surface-offset);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  margin-bottom: 10px;
}

.income-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
}

.income-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 84, 106, 0.1);
}

/* Search suggestions dropdown */
.income-suggestions {
  position: relative;
  z-index: 20;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.income-suggestion-item {
  width: 100%;
  border: none;
  background: var(--surface);
  color: var(--text-main);
  cursor: pointer;
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px;
  text-align: left;
}

.income-suggestion-item:hover,
.income-suggestion-item:focus-visible {
  background: var(--surface-2);
}
.income-suggestion-item.is-empty {
  color: var(--text-muted);
  cursor: default;
}

/* Map placeholder */
.map-rent-scale {
  display: grid;
  gap: 8px;
}

.map-rent-legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.map-rent-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(28, 23, 20, 0.12);
}

.income-map-placeholder {
  width: 100%;
  height: 450px;
  border: 2px dashed var(--divider);
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    rgba(232, 84, 106, 0.05) 0%,
    rgba(155, 114, 207, 0.05) 100%
  );
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  overflow: hidden;
  text-align: center;
}

#incomeMapContainer {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-md);
}

/* SA3 map labels (Leaflet divIcons) */
.sa3-map-label {
  color: #111;
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}
.sa3-map-label span {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
}

/* Map legend (injected by JS below the filter card) */
.income-map-legend {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-offset);
  border: 1px solid var(--divider);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.income-map-legend strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 6px;
}
.income-map-legend p {
  margin: 0 0 12px;
}
.income-map-legend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.income-map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.income-map-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
}
.income-map-dot.green {
  background: #2e7d32;
}
.income-map-dot.yellow {
  background: #f9a825;
}
.income-map-dot.red {
  background: #c62828;
}
.income-map-dot.grey {
  background: #d9d9d9;
  border: 1px solid #c7c7c7;
}

/* SA3 detail panel */
.income-detail-panel {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.income-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider);
}

.income-detail-title {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  word-break: break-word;
}

.income-detail-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.income-detail-stat {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  min-width: 0;
}
.income-detail-stat-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.income-detail-stat-value {
  margin: 0;
  color: var(--primary);
  font-size: 28px;
  font-weight: 800;
}
.income-detail-stat-sublabel {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

/* Status badge */
.income-badge-row {
  margin: 0;
  padding: 8px 0;
}

.income-badge {
  display: inline-block;
  border-radius: var(--radius-pill);
  background: rgba(255, 193, 7, 0.12);
  color: #f57f17;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  padding: 8px 12px;
  text-transform: uppercase;
}

.income-badge.is-positive {
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
}
.income-badge.is-negative {
  background: rgba(244, 67, 54, 0.12);
  color: #c62828;
}
.income-badge.is-neutral {
  background: rgba(255, 193, 7, 0.12);
  color: #f57f17;
}

/* Trend section */
.income-trend-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
}
.income-trend-title {
  margin: 0 0 16px;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
}
.income-muted-copy {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.income-insight-box {
  background: var(--surface-offset);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}
.income-insight-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.income-insight-box h2 {
  margin: 0;
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.6;
  word-break: break-word;
  text-align: center;
}

.income-chart-container {
  position: relative;
  width: 100%;
  height: 300px;
  margin-bottom: 16px;
}
.income-chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Terms scroll */
.income-terms-box {
  width: min(680px, 100%);
}
.income-terms-scroll {
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 6px;
}

@media (max-width: 1024px) {
  .income-layout {
    grid-template-columns: 1fr;
  }
  .income-detail-content {
    grid-template-columns: 1fr;
  }
  .sa3-map-label {
    display: none;
  }
}

@media (max-width: 768px) {
  .income-map-placeholder,
  #incomeMapContainer {
    height: 360px;
  }
}

/* ============================================================
   23. KNOWLEDGE HUB — LANDING GRID
   Topic tile cards on the hub index page.
   ============================================================ */

.hub-page {
  padding: 48px 0 80px;
  min-height: calc(100vh - 100px);
}

.hub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
}
.hub-heading {
  flex: 1;
  min-width: 0;
}

.hub-title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  color: var(--text-main);
}
.hub-subtitle {
  margin: 0;
  max-width: 900px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.hub-topic-card {
  position: relative;
  min-height: 280px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hub-topic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hub-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--hub-bg-opacity, 0.22);
  z-index: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.hub-topic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hub-overlay, rgba(255, 255, 255, 0.76));
  z-index: 0;
}

.hub-topic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.hub-topic-card:hover::before {
  opacity: 0.36;
  transform: scale(1.05);
}
.hub-topic-card:hover .hub-tile-toggle {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.hub-card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 280px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hub-card-copy {
  margin-top: auto;
}

.hub-tile-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-brand);
}

.hub-tile-icon .material-symbols-outlined {
  font-size: 38px;
}

/* Icon gradient presets — reuse on any icon that needs a colour */
.blue-gradient {
  background: linear-gradient(135deg, #4e9af1, #26c6da);
}
.orange-gradient {
  background: linear-gradient(135deg, #ff7043, #ffa726);
}
.green-gradient {
  background: linear-gradient(135deg, #26a69a, #42bd8e);
}
.purple-gradient {
  background: linear-gradient(135deg, #7e57c2, #ab47bc);
}
.pink-gradient {
  background: linear-gradient(135deg, #ec407a, #d65db1);
}

.hub-tile-title {
  margin: 24px 0 10px;
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.15;
  color: var(--text-main);
}
.hub-tile-preview {
  margin: 0;
  max-width: 420px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.hub-tile-toggle {
  align-self: flex-start;
  margin-top: 22px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--divider);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.hub-disclaimer {
  margin-top: 42px;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 820px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
  .hub-topic-card,
  .hub-card-content {
    min-height: 240px;
    padding: 28px;
  }
  .hub-tile-title {
    font-size: 24px;
  }
}

/* ============================================================
   24. KNOWLEDGE HUB — TOPIC DETAIL PAGES
   Layout for tax/payslip, superannuation, tenancy, budgeting,
   and safe employment detail pages.
   ============================================================ */

.knowledge-detail-page {
  background: var(--background);
  padding: 56px 0 88px;
  min-height: calc(100vh - 100px);
}

.knowledge-detail-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 48px;
}

.knowledge-detail-kicker {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.knowledge-detail-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  color: var(--text-main);
}
.knowledge-detail-subtitle {
  margin: 18px 0 0;
  max-width: 820px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Two-column detail grid */
.knowledge-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.knowledge-detail-column {
  display: grid;
  gap: 40px;
}

.knowledge-info-section h2 {
  margin: 0 0 22px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  color: var(--text-main);
}

.knowledge-white-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
.knowledge-white-card p {
  margin: 0 0 22px;
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.75;
}
.knowledge-white-card p:last-child {
  margin-bottom: 0;
}

/* Animated note used on knowledge pages with profile data */
.personal-scenario-note {
  margin-bottom: 24px;
  padding: 16px 18px;
  background: rgba(232, 84, 106, 0.07);
  border: 1px solid rgba(232, 84, 106, 0.25);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
}

/* Checklist with styled checkmarks */
.knowledge-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.knowledge-checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.5;
}

.knowledge-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #21c45d;
  color: white;
  font-size: 15px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Deductibles expandable sections */
.deductibles-card {
  background: var(--surface-offset);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

.deductible-group {
  margin-bottom: 30px;
}
.deductible-group:last-child {
  margin-bottom: 0;
}
.deductible-group h3 {
  margin: 0 0 10px;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 800;
}
.deductible-group ul {
  margin: 0;
  padding-left: 22px;
}
.deductible-group li {
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.65;
}

/* CTA button */
.knowledge-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.knowledge-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(232, 84, 106, 0.32);
}

.knowledge-detail-cta-row {
  display: flex;
  justify-content: center;
  margin: 16px 0 40px;
}

/* Column order override on tax page */
.tax-left-column {
  order: 2;
}
.deductibles-right-column {
  order: 1;
}

@media (max-width: 980px) {
  .knowledge-detail-topbar {
    flex-direction: column;
  }
  .knowledge-detail-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .tax-left-column,
  .deductibles-right-column {
    order: initial;
  }
}

@media (max-width: 640px) {
  .knowledge-detail-page {
    padding: 40px 0 72px;
  }
  .knowledge-detail-title {
    font-size: 36px;
  }
  .knowledge-white-card,
  .deductibles-card {
    padding: 22px;
  }
  .knowledge-cta-btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   25. PAYSLIP EXPLAINER
   Image with hotspot dots + arrow SVG overlay.
   ============================================================ */

.payslip-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}
.payslip-image-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.payslip-image-wrap {
  position: relative;
  width: 100%;
}
.payslip-image {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--divider);
}

.payslip-explainer-card {
  display: grid;
  gap: 28px;
}

.payslip-explainer-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.payslip-explainer-item h3 {
  margin: 0 0 8px;
  color: var(--text-main);
  font-size: 17px;
  font-weight: 800;
}
.payslip-explainer-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}
.payslip-explainer-item.is-arrow-target {
  background: rgba(232, 84, 106, 0.06);
  transform: translateX(4px);
}

/* Arrow SVG overlay */
.payslip-arrow-section {
  position: relative;
}

.payslip-arrow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 4;
  color: var(--primary);
}

.payslip-arrow-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  marker-end: url(#arrowHead);
  opacity: 0.85;
}

/* Hotspot dots */
.payslip-hotspot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  z-index: 5;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px rgba(232, 84, 106, 0.15);
}
.hotspot-gross {
  background: #2ecc71;
  left: 77%;
  top: 55%;
}
.hotspot-tax {
  background: #f39c12;
  left: 88%;
  top: 64.5%;
}
.hotspot-super {
  background: #2d8cff;
  left: 88%;
  top: 78.5%;
}
.hotspot-net {
  background: #ffd400;
  left: 88%;
  top: 97%;
}

@media (max-width: 980px) {
  .payslip-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .payslip-arrow-svg,
  .payslip-hotspot {
    display: none;
  }
  .payslip-explainer-item {
    padding: 0;
  }
  .payslip-explainer-item.is-arrow-target {
    background: transparent;
    transform: none;
  }
}

/* ============================================================
   26. SUPERANNUATION PAGE
   Question card layout with icon grid items.
   Also used as base for tenancy guide page.
   ============================================================ */

.super-detail-page {
  background: var(--background);
}

.super-question-card {
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 40px 48px;
  margin-bottom: 48px;
  background: linear-gradient(
    135deg,
    rgba(232, 84, 106, 0.06) 0%,
    rgba(155, 114, 207, 0.08) 100%
  );
}

.super-question-card h2 {
  margin: 0 0 28px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  color: var(--text-main);
  font-weight: 800;
}
.super-question-card p {
  margin: 0 0 16px;
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.75;
}
.super-question-card p:last-child {
  margin-bottom: 0;
}

/* Answer grids */
.super-answer-grid,
.super-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.super-answer-grid.single {
  grid-template-columns: 1fr;
}

/* Individual info cards */
.super-check-item {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.super-check-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 84, 106, 0.35);
}

.super-check-item .material-symbols-outlined {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  box-shadow: var(--shadow-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.super-check-item h3 {
  margin: 0 0 8px;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}
.super-check-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.super-action-group {
  margin-bottom: 34px;
}
.super-action-group:last-child {
  margin-bottom: 0;
}
.super-action-group h3 {
  margin: 0 0 10px;
  color: var(--text-main);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
}
.super-action-group p {
  margin-bottom: 8px;
}
.super-action-group ul {
  margin: 0;
  padding-left: 28px;
}
.super-action-group li {
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.65;
}

@media (max-width: 820px) {
  .super-question-card {
    padding: 30px 24px;
    margin-bottom: 32px;
  }
  .super-answer-grid,
  .super-check-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   27. SMART BUDGETING — ABS CHART
   Side-by-side chart and copy cards.
   ============================================================ */

.budgeting-abs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 28px;
  align-items: center;
}

.budgeting-abs-chart-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  align-self: center;
}

.budgeting-chart-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.budgeting-chart-header h3 {
  margin: 0 0 6px;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 800;
}
.budgeting-chart-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.budgeting-chart-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.budgeting-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  display: inline-block;
}
.legend-swatch.essential {
  background: linear-gradient(135deg, #26a69a, #66bb6a);
}
.legend-swatch.non-essential {
  background: linear-gradient(135deg, #e8546a, #9b72cf);
}

.budgeting-chart-wrap {
  position: relative;
  height: 330px;
  width: 100%;
}
.budgeting-chart-caption {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.budgeting-chart-caption a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}
.budgeting-chart-caption a:hover {
  text-decoration: underline;
}

.budgeting-chart-state {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.budgeting-abs-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

@media (max-width: 980px) {
  .budgeting-abs-layout {
    grid-template-columns: 1fr;
  }
  .budgeting-chart-wrap {
    height: 360px;
  }
  .budgeting-chart-header {
    flex-direction: column;
  }
  .budgeting-chart-legend {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ============================================================
   28. VICTORIAN TENANCY GUIDE PAGE
   Moving-in checklist with interactive checkbox items.
   ============================================================ */

.tenancy-detail-page {
  background: var(--background);
}

.tenancy-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tenancy-check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.tenancy-check-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 84, 106, 0.35);
}

.tenancy-check-item input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.tenancy-check-item span {
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.tenancy-check-item.is-complete {
  background: rgba(232, 84, 106, 0.06);
  border-color: rgba(232, 84, 106, 0.3);
}
.tenancy-check-item.is-complete span {
  color: var(--text-muted);
  text-decoration: line-through;
}

.tenancy-cta-row {
  gap: 16px;
  flex-wrap: wrap;
}

.secondary-tenancy-cta {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.secondary-tenancy-cta:hover {
  background: rgba(232, 84, 106, 0.06);
}

@media (max-width: 820px) {
  .tenancy-checklist-grid {
    grid-template-columns: 1fr;
  }
  .tenancy-cta-row {
    flex-direction: column;
  }
  .tenancy-cta-row .knowledge-cta-btn {
    width: 100%;
  }
}

/* ============================================================
   29. SAFE EMPLOYMENT PAGE
   Intro card + scam awareness grid + reminder banner.
   ============================================================ */

.safe-employment-page {
  background: var(--background);
}
.safe-employment-card {
  max-width: 1040px;
  margin: 0 auto;
}
.safe-employment-content {
  display: grid;
  gap: 28px;
}

.safe-employment-intro {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.safe-employment-intro > .material-symbols-outlined {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  box-shadow: var(--shadow-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.safe-employment-intro h3 {
  margin: 0 0 10px;
  color: var(--text-main);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}
.safe-employment-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.safe-scam-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.safe-scam-item {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.safe-scam-item h3 {
  margin: 0 0 10px;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}
.safe-scam-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.safe-employment-reminder {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(232, 84, 106, 0.07);
  border: 1px solid rgba(232, 84, 106, 0.22);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.safe-employment-reminder .material-symbols-outlined {
  color: var(--primary);
  font-size: 30px;
  flex-shrink: 0;
}
.safe-employment-reminder p {
  margin: 0;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
}

@media (max-width: 820px) {
  .safe-scam-grid {
    grid-template-columns: 1fr;
  }
  .safe-employment-intro {
    flex-direction: column;
  }
}

/* ============================================================
   30. LANDING PAGE
   Hero, steps, things-to-know, footer — all landing- prefixed.
   ============================================================ */

.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.landing-main {
  flex: 1;
}
.landing-container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* Nav — identical behaviour to global .navbar */
.landing-navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}
.landing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 0;
}
.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.landing-nav-link {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.landing-nav-link:hover,
.landing-nav-link:focus-visible {
  color: var(--primary);
}
.landing-nav-link-active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* Hero */
.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 128px;
}

.landing-hero-blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
.landing-hero-blob-top {
  width: 600px;
  height: 600px;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(232, 84, 106, 0.1);
  filter: blur(120px);
}
.landing-hero-blob-bottom {
  width: 400px;
  height: 400px;
  right: 0;
  bottom: 0;
  transform: translate(25%, 25%);
  background: rgba(155, 114, 207, 0.1);
  filter: blur(100px);
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.landing-hero-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(42px, 8vw, 76px);
  font-weight: 700;
  line-height: 1.1;
}
.landing-hero-subtitle {
  max-width: 700px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
}
.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding-top: 8px;
}

.landing-btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 40px;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.landing-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  box-shadow: var(--shadow-brand);
}
.landing-btn-primary:hover,
.landing-btn-primary:focus-visible {
  transform: translateY(-4px);
}

/* How it works */
.landing-steps-section {
  background: var(--surface-2);
  padding: 96px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.landing-section-heading {
  text-align: center;
  margin-bottom: 64px;
}
.landing-section-heading h2 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 44px);
}
.landing-section-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}
.landing-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.landing-step-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.landing-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.landing-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}
.landing-step-icon .material-symbols-outlined {
  font-size: 32px;
}
.landing-step-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 24px;
}
.landing-step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Things section */
.landing-things-section {
  background: var(--background);
  padding: 56px 0;
  border-bottom: 1px solid var(--divider);
}
.landing-things-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
.landing-things-left {
  border-right: 1px solid var(--divider);
  padding-right: 32px;
}
.landing-things-left h2 {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}
.landing-things-info-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: linear-gradient(
    135deg,
    rgba(232, 84, 106, 0.06) 0%,
    rgba(155, 114, 207, 0.08) 100%
  );
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 24px;
}
.landing-things-info-box .material-symbols-outlined {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  box-shadow: var(--shadow-brand);
  font-size: 24px;
}
.landing-things-info-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Footer */
.landing-footer {
  background: var(--surface);
  border-top: 1px solid var(--divider);
  padding: 2px 0;
}
.landing-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.landing-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.landing-footer-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}
.landing-footer-modal-link {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  text-transform: uppercase;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.landing-footer-modal-link:hover,
.landing-footer-modal-link:focus-visible {
  color: var(--primary);
}

@media (max-width: 992px) {
  .landing-steps-grid {
    grid-template-columns: 1fr;
  }
  .landing-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .landing-footer-links {
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .landing-hero {
    padding: 72px 0 96px;
  }
  .landing-btn {
    width: 100%;
    max-width: 320px;
    font-size: 17px;
  }
  .landing-step-card {
    padding: 24px;
  }
  .landing-things-section {
    padding: 40px 0;
  }
  .landing-things-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .landing-things-left {
    border-right: none;
    border-bottom: 1px solid var(--divider);
    padding-right: 0;
    padding-bottom: 20px;
  }
  .landing-things-info-box {
    flex-direction: column;
    padding: 20px;
  }
}

/* ============================================================
   31. PROFILE BUILDER
   Wizard card, progress bar, question steps, tile options,
   form inputs, location/industry/allowance sections.
   ============================================================ */

.profile-builder-page {
  min-height: 100vh;
}

/* Centred wizard shell */
.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
  position: relative;
  background: var(--background);
  overflow-y: auto;
}

/* Main wizard card */
.wizard-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--divider);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  padding: 40px;
  backdrop-filter: blur(10px);
}

.card-top-bar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

/* Progress */
.progress-header {
  margin-bottom: 28px;
}
.question-counter {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  width: 16.66%;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  transition: width 0.3s ease;
}

/* Question steps */
.question-step {
  display: none;
}
.question-step.active {
  display: block;
}

.form-title {
  margin: 0 0 10px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
}
.form-subtitle {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}
.input-label {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}
.field-shell {
  position: relative;
}

/* Tile pill options */
.tile-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tile {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.tile.selected {
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}

/* Form inputs */
.form-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  font-size: 16px;
  outline: none;
  background: #ffffff;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232, 84, 106, 0.1);
}
.input-error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}
.field-warning {
  display: inline-block;
  margin-top: 8px;
  color: #c0392b;
  font-size: 14px;
  font-weight: 700;
}
.field-error {
  margin-top: 8px;
  color: #c0392b;
  font-size: 14px;
}
.form-error-box {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff4f4;
  border: 1px solid #f0b8b8;
  color: #a33a3a;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Location, rent, allowance boxes */
.location-search-box,
.rent-box,
.allowance-box {
  margin-top: 22px;
  animation: profileFadeInUp 0.35s ease;
}

.location-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.location-suggestions {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.location-suggestion-item {
  width: 100%;
  border: none;
  background: #ffffff;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-main);
}
.location-suggestion-item:hover,
.location-suggestion-item:focus-visible {
  background: var(--surface-2);
}
.location-suggestion-item.no-result {
  cursor: default;
  color: var(--text-muted);
}

.allowance-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.frequency-select {
  min-width: 130px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.weekly-estimate {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}
.info-icon {
  margin-left: 6px;
  cursor: help;
  color: var(--primary);
  font-weight: 700;
}
.calc-source-link {
  margin-left: 8px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.calc-source-link:hover,
.calc-source-link:focus-visible {
  text-decoration: underline;
}

/* Industry / study options */
.industry-box {
  margin-top: 22px;
  animation: profileFadeInUp 0.35s ease;
  max-height: 260px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--divider);
  border-radius: 18px;
  background: var(--surface-2);
}

.industry-select {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}
.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.industry-option {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.industry-option:hover,
.industry-option:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.industry-option.selected {
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}

.industry-source {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.industry-source a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.industry-source a:hover {
  text-decoration: underline;
}

/* Form actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
}

/* Secondary button — used only in profile builder */
.secondary-button,
.primary-button {
  min-width: 140px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  text-decoration: none;
}

.secondary-button {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-main);
}
.primary-button {
  border: none;
  color: #ffffff;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  box-shadow: var(--shadow-brand);
}

.secondary-button:hover,
.secondary-button:focus-visible,
.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
}

@keyframes profileFadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding: 80px 16px 40px;
  }
  .wizard-card {
    padding: 24px;
    border-radius: 24px;
  }
  .tile-group {
    gap: 10px;
  }
  .tile {
    width: 100%;
    text-align: center;
  }
  .allowance-row {
    flex-direction: column;
    align-items: stretch;
  }
  .frequency-select {
    width: 100%;
  }
  .form-actions {
    flex-direction: column;
  }
  .secondary-button,
  .primary-button {
    width: 100%;
  }
}

/* ============================================================
   32. CAREER ASPIRATIONS PAGE
   Chart card, industry detail panel, gap badge, source card.
   ============================================================ */

.career-page {
  padding: 48px 0 80px;
  min-height: calc(100vh - 100px);
}

/* Page header — title left, back button right */
.career-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 36px;
}

.career-page-heading {
  flex: 1;
  min-width: 0;
}
.career-page-header .page-inner-title {
  margin-top: 0 !important;
}

.page-inner-title {
  margin: 20px 0 12px !important;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.page-inner-subtitle {
  max-width: 840px;
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

/* Two-column layout */
.career-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: start;
}

/* Main chart card */
.career-card {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background:
    radial-gradient(
      circle at top right,
      rgba(232, 84, 106, 0.08),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(155, 114, 207, 0.08),
      transparent 36%
    ),
    var(--surface);
  border: 1px solid var(--divider);
  border-radius: 32px;
  box-shadow: var(--shadow-sm);
  padding: 30px;
}

.career-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.94) 100%
  );
  pointer-events: none;
}
.career-card > * {
  position: relative;
  z-index: 1;
}

.career-card-title {
  margin: 0 0 8px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.career-card-sub {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Chart height — career page needs taller canvas than default .chart-wrap */
.career-card .chart-wrap {
  height: 560px;
  padding: 12px 4px 4px;
}

/* User's industry badge */
.your-industry-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 24px;
  padding: 11px 16px;
  border: 1px solid rgba(232, 84, 106, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(232, 84, 106, 0.07);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.your-industry-badge strong {
  color: var(--primary);
  font-weight: 900;
}

/* Industry info panel */
.industry-info {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at top right,
      rgba(232, 84, 106, 0.07),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(155, 114, 207, 0.07),
      transparent 36%
    ),
    var(--surface);
  border: 1px solid var(--divider);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  padding: 26px;
}

.industry-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.74) 0%,
    rgba(255, 255, 255, 0.95) 100%
  );
  pointer-events: none;
}
.industry-info > * {
  position: relative;
  z-index: 1;
}

.industry-info-name {
  margin: 0 0 18px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.industry-stat {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--divider);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
}
.industry-stat-label {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.industry-stat-value {
  margin: 0;
  color: var(--text-main);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.industry-stat-value.weekly {
  color: var(--primary);
}

/* Pay gap badge */
.gap-badge,
.pay-gap-badge,
.gender-gap-badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  background: rgba(232, 84, 106, 0.08);
  border: 1px solid rgba(232, 84, 106, 0.22);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  padding: 9px 13px;
}

.disclaimer-note {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

/* Data source card */
.source-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  padding: 22px;
}
.source-card strong {
  color: var(--text-main) !important;
  font-size: 15px;
  font-weight: 900;
}
.source-card a {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}
.source-card a:hover {
  text-decoration: underline;
}

/* Loading state */
.loading-state {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  text-align: center;
}
.loading-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(232, 84, 106, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@media (max-width: 1050px) {
  .career-grid {
    grid-template-columns: 1fr;
  }
  .career-card {
    min-height: auto;
  }
  .career-card .chart-wrap {
    height: 520px;
  }
}

@media (max-width: 768px) {
  .career-page-header {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .career-page {
    padding: 36px 0 72px;
  }
  .page-inner-title {
    font-size: 40px;
  }
  .career-card .chart-wrap {
    height: 460px;
  }
  .industry-stat-value {
    font-size: 30px;
  }
}

/* ============================================================
   33. DEBT AWARENESS PAGE
   Multi-step question card with progress dots and option buttons.
   ============================================================ */

.debt-page {
  padding: 48px 0 80px;
  min-height: calc(100vh - 100px);
}
.debt-page-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 28px;
}

/* Centred question card */
.question-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

/* Question step animation */
.q-step {
  display: none;
}
.q-step.active {
  display: block;
  animation: fadeInUp 0.35s ease;
}

/* Step icon */
.q-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: white;
}
.q-icon .material-symbols-outlined {
  font-size: 36px;
}

/* Step copy */
.q-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.q-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 8px;
}
.q-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 32px;
}

/* Option buttons */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  width: 100%;
  padding: 16px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-btn:hover {
  border-color: var(--primary);
  background: rgba(232, 84, 106, 0.04);
  transform: translateY(-1px);
}
.option-btn.selected {
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}
.option-emoji {
  font-size: 20px;
  flex-shrink: 0;
}

/* Navigation row */
.q-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.q-next-btn {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  box-shadow: var(--shadow-brand);
  transition: transform 0.2s;
}
.q-next-btn:hover {
  transform: translateY(-2px);
}
.q-next-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.q-back-btn {
  padding: 15px 24px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: var(--surface-2);
  color: var(--text-main);
  transition: all 0.2s;
}
.q-back-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Progress dots */
.q-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.q-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--divider);
  transition: all 0.3s;
}
.q-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}
.q-dot.done {
  background: var(--secondary);
}

@media (max-width: 768px) {
  .debt-page-header {
    justify-content: flex-start;
    margin-bottom: 24px;
  }
}

/* ============================================================
   34. DEBT PROJECTION PAGE
   Chart + scenario toggle, reveal controls, side cards, CTA.
   ============================================================ */

.proj-page {
  padding: 48px 0 80px;
  min-height: calc(100vh - 100px);
}

/* Two-column layout: chart left, side cards right */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .proj-grid {
    grid-template-columns: 1fr;
  }
}

/* Chart card */
.proj-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.proj-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  margin: 0 0 8px;
}
.proj-card-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 28px;
  line-height: 1.6;
}
.proj-chart-wrap {
  position: relative;
  height: 380px;
  width: 100%;
}

/* Scenario toggle pill */
.scenario-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--surface-2);
  border: 1px solid var(--divider);
  border-radius: var(--radius-pill);
  padding: 4px;
  width: fit-content;
}

.scenario-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.scenario-btn.active {
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  color: white;
  box-shadow: var(--shadow-brand);
}
.scenario-btn:hover:not(.active) {
  color: var(--primary);
}

/* Reveal controls */
.reveal-controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.reveal-btn-primary {
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}
.reveal-btn-primary:hover:not(:disabled) {
  background: #c43a52;
}
.reveal-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.reveal-btn-ghost {
  padding: 10px 20px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s;
}
.reveal-btn-ghost:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: none;
}

/* Duration slider */
.duration-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  outline: none;
  cursor: pointer;
  margin: 8px 0 6px;
}

.duration-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.duration-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.duration-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Custom chart legend */
.chart-legend-custom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Key message callout */
.key-message {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(232, 84, 106, 0.07);
  border-left: 4px solid var(--primary);
}
.key-message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
}
.key-message strong {
  color: var(--primary);
}

/* Side cards */
.side-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.side-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
}

.data-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
}
.data-row:last-child {
  border-bottom: none;
}
.data-label {
  color: var(--text-muted);
  font-weight: 600;
}
.data-value {
  font-weight: 800;
  color: var(--text-main);
}
.data-value.red {
  color: var(--primary);
}

/* CTA box */
.cta-box {
  background: linear-gradient(
    135deg,
    rgba(232, 84, 106, 0.07) 0%,
    rgba(155, 114, 207, 0.07) 100%
  );
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-top: 24px;
}
.cta-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.6;
}

.cta-link {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-brand);
  transition: transform 0.2s;
}
.cta-link:hover {
  transform: translateY(-2px);
}

.source-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ============================================================
   35. CREDIT & BNPL PAGE
   Hero, flip cards, condition cards, question cards, CTA.
   ============================================================ */

.credit-page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 90px;
}

/* Hero */
.credit-hero {
  margin-bottom: 34px;
}
.credit-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.credit-hero-content {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  min-width: 0;
}

.credit-hero-icon {
  width: 78px;
  height: 78px;
  min-width: 78px;
  border-radius: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}

.credit-hero-icon .material-symbols-outlined {
  font-size: 40px;
}
.credit-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  color: var(--text-main);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.credit-hero p {
  margin: 0;
  max-width: 820px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

/* Intro card */
.credit-intro-card {
  margin: 24px 0 48px;
  padding: 30px 34px;
  background: rgba(232, 84, 106, 0.08);
  border: 1px solid rgba(232, 84, 106, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}
.credit-intro-card p {
  margin: 0;
  max-width: 980px;
  color: var(--text-main);
  font-size: 20px;
  line-height: 1.65;
  font-weight: 600;
}

/* Section base */
.credit-section {
  margin-bottom: 52px;
}

.soft-section {
  padding: 42px;
  background: linear-gradient(
    135deg,
    rgba(232, 84, 106, 0.06),
    rgba(155, 114, 207, 0.07)
  );
  border: 1px solid var(--divider);
  border-radius: 34px;
  box-shadow: var(--shadow-sm);
}

/* Section heading row with number badge */
.section-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 20px !important;
  text-align: left !important;
  margin-bottom: 28px;
}

.section-heading > div {
  flex: 1;
  text-align: left !important;
}
.section-heading h2 {
  margin: 0 0 8px !important;
  color: var(--text-main);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: left !important;
}
.section-heading p {
  margin: 0 !important;
  max-width: 780px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  text-align: left !important;
}

.section-number {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  box-shadow: var(--shadow-brand);
  font-size: 18px;
  font-weight: 900;
}

/* Flip cards — Section 1 */
.flip-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.flip-card {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  perspective: 1000px;
  min-height: 190px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 190px;
  transform-style: preserve-3d;
  transition: transform 0.55s ease;
}
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
  backface-visibility: hidden;
}
.flip-card-front {
  background: var(--surface);
}
.flip-card-back {
  background: linear-gradient(
    135deg,
    rgba(232, 84, 106, 0.95),
    rgba(155, 114, 207, 0.95)
  );
  color: #ffffff;
  transform: rotateY(180deg);
}

.card-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.flip-card-back .card-kicker {
  color: rgba(255, 255, 255, 0.82);
}
.flip-card h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 26px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.flip-card-back p {
  margin: 0;
  color: #ffffff;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 800;
}

/* Condition cards — Section 2 */
.condition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.condition-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--divider);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
}

.condition-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}
.condition-icon .material-symbols-outlined {
  font-size: 30px;
}
.condition-card h3 {
  margin: 0 0 8px;
  color: var(--text-main);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 900;
}
.condition-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Two-column question layout — Sections 3 & 4 */
.two-column-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 52px;
}

/* Credit BNPL: reuse existing two-column-section layout */
.credit-page .two-column-section {
  gap: 36px;
}

.credit-page .two-column-section .question-card {
  width: 100%;
  max-width: none;
  margin: 0;
}

.question-card {
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
}
.compact-heading {
  margin-bottom: 24px;
}
.compact-heading h2 {
  font-size: clamp(26px, 2.6vw, 34px);
}

/* Check list — questions with ✓ or ? markers */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
}

.check-list li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 84, 106, 0.14);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.safer-list li::before {
  content: "✓";
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
}

/* Bottom CTA card */
.credit-cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 34px 38px;
  background: linear-gradient(
    135deg,
    rgba(232, 84, 106, 0.1),
    rgba(155, 114, 207, 0.12)
  );
  border: 1px solid rgba(232, 84, 106, 0.18);
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
}
.credit-cta-card h2 {
  margin: 0 0 8px;
  color: var(--text-main);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
}
.credit-cta-card p {
  margin: 0;
  max-width: 660px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}
.credit-cta-btn {
  white-space: nowrap;
  text-decoration: none;
}

@media (max-width: 1020px) {
  .flip-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .condition-grid,
  .two-column-section {
    grid-template-columns: 1fr;
  }
  .credit-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .credit-hero-top {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .credit-page {
    padding-top: 100px;
  }
  .credit-hero-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .flip-card-grid {
    grid-template-columns: 1fr;
  }
  .condition-card {
    flex-direction: column;
  }
  .section-heading {
    flex-direction: column;
    gap: 14px !important;
    align-items: flex-start !important;
  }
}

/* ============================================================
   36. RENT COMPARISON PAGE
   Sidebar filters, Leaflet map, bubble chart, LGA detail panel.
   ============================================================ */

.rent-comparison-page {
  min-height: 100vh;
  background: var(--background);
}
.rent-comparison-container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

/* Two-column layout */
.rent-comparison-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.rent-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: static;
}

/* Bubble controls inside the sidebar — single-column layout */
.bubble-choice-panel--sidebar {
  grid-template-columns: 1fr;
}

.bubble-add-row--sidebar {
  flex-direction: column;
  gap: 0;
}

.bubble-add-row--sidebar .bubble-suburb-search {
  min-width: 0;
  width: 100%;
}
.rent-main {
  min-width: 0;
}

/* Sidebar filter fields */
.rent-field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.budget-input {
  width: 100%;
  border: 1px solid var(--divider);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.budget-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232, 84, 106, 0.1);
}

.budget-button {
  width: 100%;
  margin-top: 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  color: #ffffff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  padding: 14px 18px;
  box-shadow: var(--shadow-brand);
  transition: transform 0.25s ease;
}
.budget-button:hover,
.budget-button:focus-visible {
  transform: translateY(-2px);
}

.profile-location-display {
  margin-top: 12px;
  border: 1px solid rgba(232, 84, 106, 0.18);
  border-radius: 14px;
  background: rgba(232, 84, 106, 0.07);
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.55;
  padding: 12px 14px;
}

/* Map mode legend */
.map-mode-box {
  margin-top: 18px;
  border: 1px solid var(--divider);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 16px;
}
.map-mode-box strong {
  display: block;
  color: var(--text-main);
  font-size: 14px;
  margin-bottom: 8px;
}
.map-mode-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}
.map-mode-legend {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.map-mode-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}
.map-mode-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Budget legend */
.budget-legend {
  margin-top: 18px;
  border: 1px solid var(--divider);
  border-radius: 16px;
  background: #ffffff;
  padding: 16px;
}
.budget-legend strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text-main);
  font-size: 14px;
}
.budget-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
}
.budget-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.budget-legend-dot.affordable {
  background: #2ecc71;
}
.budget-legend-dot.unaffordable {
  background: #e74c3c;
}

/* Map card */
.map-card {
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.map-card-title {
  margin: 0;
  padding: 24px 28px 0;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 34px);
}
.map-placeholder {
  width: 100%;
  height: 560px;
  margin-top: 20px;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.map-loading {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
}
.map-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(232, 84, 106, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.reset-map-btn {
  border: 1px solid var(--divider);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-main);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
.reset-map-btn:hover,
.reset-map-btn:focus-visible {
  transform: translateY(-2px);
  color: var(--primary);
  border-color: var(--primary);
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: 16px;
}
.leaflet-popup-content {
  font-family: var(--font-body);
  color: var(--text-main);
}

/* Bubble chart card */
/* Bubble chart explanation box */
.bubble-chart-guide {
  padding: 22px 24px;
}

.bubble-chart-guide strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--text-main);
}

.bubble-chart-guide p {
  margin: 0 0 14px;
  max-width: 1200px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.bubble-chart-guide .budget-legend-item {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

.bubble-guide-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.bubble-guide-dot.highlighted {
  background: #3568b8;
  border: 3px solid #f6d84b;
}

.bubble-guide-dot.standard {
  background: rgba(220, 220, 220, 0.6);
  border: 2px solid rgba(120, 120, 120, 0.3);
}

.bubble-chart-card {
  padding: 28px;
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.bubble-chart-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.bubble-chart-header h2 {
  margin: 0 0 8px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 34px);
}
.bubble-chart-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.bubble-chart-wrapper {
  height: 480px;
  position: relative;
}
.bubble-chart-insights {
  margin-top: 24px;
  border: 1px solid rgba(232, 84, 106, 0.18);
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(232, 84, 106, 0.06) 0%,
    rgba(155, 114, 207, 0.08) 100%
  );
  padding: 20px;
}
.bubble-chart-insights h3 {
  margin: 0 0 12px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 24px;
}
.bubble-chart-insights ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.bubble-chart-insights li {
  margin-bottom: 8px;
}

/* Bubble axis controls */
.bubble-choice-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.bubble-choice-section {
  border: 1px solid var(--divider);
  border-radius: 20px;
  background: var(--surface-2);
  padding: 18px;
}
.bubble-choice-heading h3 {
  margin: 0 0 6px;
  color: var(--text-main);
  font-size: 17px;
}
.bubble-choice-heading p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.bubble-choice-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bubble-choice-btn {
  border: 1px solid var(--divider);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-main);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}
.bubble-choice-btn:hover,
.bubble-choice-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--primary);
}
.bubble-choice-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}

/* Add suburb comparison */
.bubble-add-suburb {
  border: 1px solid var(--divider);
  border-radius: 20px;
  background: #ffffff;
  padding: 18px;
  margin-bottom: 24px;
}
.bubble-add-title {
  margin-bottom: 6px;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 800;
}
.bubble-add-description {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.bubble-add-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
}
.bubble-add-row .bubble-suburb-search {
  flex: 1 1 auto;
  min-width: 280px;
  height: 52px;
}
.bubble-add-row .reset-map-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 190px;
  height: 52px;
  padding: 0 22px;
  white-space: nowrap;
}

.bubble-suburb-search {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.25s ease;
}
.bubble-suburb-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232, 84, 106, 0.1);
}

.added-suburb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.added-suburb-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(52, 152, 219, 0.25);
  border-radius: 999px;
  background: rgba(52, 152, 219, 0.08);
  color: #2471a3;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
}
.added-suburb-tag button {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(52, 152, 219, 0.18);
  color: #2471a3;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

/* LGA detail panel */
.lga-detail-panel {
  margin-top: 28px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.lga-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.lga-detail-title {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 38px);
}

.lga-detail-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.detail-stat {
  border: 1px solid var(--divider);
  border-radius: 20px;
  background: var(--surface-2);
  padding: 20px;
}
.detail-stat-label {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail-stat-value {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1.1;
}
.detail-stat-sublabel {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* Affordability badge */
.affordability-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
}
.affordability-badge.safe,
.affordability-badge.affordable,
.affordability-badge.affordability-affordable {
  background: rgba(46, 204, 113, 0.12);
  color: #1e8449;
}
.affordability-badge.warning,
.affordability-badge.moderate,
.affordability-badge.affordability-stretched {
  background: rgba(241, 196, 15, 0.16);
  color: #9a6d00;
}
.affordability-badge.danger,
.affordability-badge.high,
.affordability-badge.affordability-unaffordable {
  background: rgba(231, 76, 60, 0.12);
  color: #b03a2e;
}

/* Trend section */
.trend-section {
  border-top: 1px solid var(--divider);
  padding-top: 24px;
}
.trend-title {
  margin: 0 0 6px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
}
.trend-description {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}
.trend-chart-container {
  height: 360px;
  position: relative;
  width: 100%;
}
.trend-insight-box {
  margin-top: 18px;
  border: 1px solid rgba(155, 114, 207, 0.22);
  border-radius: 18px;
  background: rgba(155, 114, 207, 0.08);
  padding: 18px;
}
.trend-insight-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .rent-comparison-grid {
    grid-template-columns: 1fr;
  }
  .rent-sidebar {
    position: static;
  }
  .lga-detail-content {
    grid-template-columns: 1fr 1fr;
  }
  .bubble-choice-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .lga-detail-content {
    grid-template-columns: 1fr;
  }
  .bubble-add-row {
    flex-direction: column;
  }
  .bubble-add-row .reset-map-btn {
    width: 100%;
    min-width: 0;
  }
}

.sweet-spot-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(47, 90, 168, 0.08);
  border: 1px solid rgba(47, 90, 168, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #333;
}

.sweet-spot-card strong {
  color: rgba(47, 90, 168, 1);
  font-size: 13px;
}

/* Add spacing between sweet spot suburb cards */
.bubble-chart-insights li > div,
.bubble-chart-insights .sweet-spot-card {
  margin-bottom: 18px;
}

/* ============================================================
   DEBT PROJECTION WARNING AND CTA CARDS
   ============================================================ */

.debt-warning-card {
  margin-top: 20px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(232, 84, 106, 0.07);
  border: 1px solid rgba(232, 84, 106, 0.22);
  box-shadow: var(--shadow-sm);
}

.debt-warning-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.debt-warning-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  color: #ffffff;
  box-shadow: var(--shadow-brand);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.debt-warning-card h3 {
  margin: 0 0 8px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.2;
}

.debt-warning-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.debt-next-step-card {
  margin-top: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);

  display: flex;
  flex-direction: column;
  gap: 18px;
}

.debt-next-step-copy h3 {
  margin: 0 0 8px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.2;
}

.debt-next-step-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.debt-next-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  color: #ffffff;
  box-shadow: var(--shadow-brand);

  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.debt-next-step-btn:hover,
.debt-next-step-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 84, 106, 0.32);
}

/* ============================================================
   CAREER ASPIRATIONS SIDE PANEL SPACING AND CTA
   ============================================================ */

.career-side-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.career-side-panel .industry-info,
.career-side-panel .source-card {
  margin-bottom: 0;
}

.career-next-step-card {
  padding: 24px;
  background: linear-gradient(
    135deg,
    rgba(232, 84, 106, 0.07),
    rgba(155, 114, 207, 0.08)
  );
  border: 1px solid var(--divider);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.career-next-step-copy h3 {
  margin: 0 0 10px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.2;
}

.career-next-step-copy p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.career-next-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #e8546a 0%, #c45fa8 50%, #9b72cf 100%);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.career-next-step-btn:hover,
.career-next-step-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 84, 106, 0.32);
}
