:root {
  --rf-bg: #000306;
  --rf-bg-deep: #000000;
  --rf-bg-soft: #02060b;
  --rf-surface-soft: rgba(255, 255, 255, 0.035);
  --rf-surface-hover: rgba(255, 255, 255, 0.055);
  --rf-surface-active: rgba(255, 255, 255, 0.085);
  --rf-surface-raised: rgba(12, 17, 25, 0.94);
  --rf-border-soft: rgba(247, 248, 251, 0.07);
  --rf-border-strong: rgba(247, 248, 251, 0.20);
  --rf-text-primary: #f7f8fb;
  --rf-text-secondary: rgba(247, 248, 251, 0.72);
  --rf-text-muted: rgba(247, 248, 251, 0.52);
  --rf-accent: #7b61ff;
  --rf-accent-dark: #4f36c9;
  --rf-accent-soft: rgba(123, 97, 255, 0.18);
  --rf-success: #74d99f;
  --rf-danger: #e06c75;
  --rf-warning: #d6a85c;
  --rf-font-hero-mobile: 58px;
  --rf-font-hero-desktop: clamp(84px, 8.4vw, 124px);
  --rf-font-page-title-mobile: 28px;
  --rf-font-page-title-desktop: 44px;
  --rf-font-section-title-mobile: 22px;
  --rf-font-section-title-desktop: 32px;
  --rf-font-component-title: 16px;
  --rf-font-body: 15px;
  --rf-font-dense: 13px;
  --rf-font-meta: 11px;
  --rf-leading-page-title: 1.12;
  --rf-leading-section-title: 1.2;
  --rf-leading-body: 1.6;
  --rf-space-gutter-mobile: 20px;
  --rf-space-gutter-tablet: 28px;
  --rf-space-gutter-desktop: 48px;
  --rf-space-section-mobile: 40px;
  --rf-space-section-desktop: 72px;
  --rf-space-component: 16px;
  --rf-space-row: 12px;
  --rf-radius-xs: 4px;
  --rf-radius-sm: 6px;
  --rf-radius-md: 10px;
  --rf-radius-lg: 14px;
  --rf-radius-xl: 18px;
  --rf-radius-2xl: 24px;
  --rf-radius-pill: 999px;
  --rf-shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.22);
  --rf-shadow-raised: 0 24px 80px rgba(0, 0, 0, 0.46);
  --rf-scrollbar-track: rgba(15, 23, 42, 0.35);
  --rf-scrollbar-thumb: rgba(148, 163, 184, 0.35);
  --rf-scrollbar-thumb-hover: rgba(148, 163, 184, 0.55);
  --rf-page: #000306;
  --rf-page-deep: #02060b;
  --rf-page-edge: #000000;
  --rf-ink: #f7f8fb;
  --rf-muted: rgba(247, 248, 251, 0.58);
  --rf-soft: rgba(247, 248, 251, 0.74);
  --rf-line: rgba(247, 248, 251, 0.16);
  --rf-panel: rgba(4, 9, 15, 0.62);
  --rf-site-background-color: #000306;
  --rf-site-background: linear-gradient(112deg, #02060b 0%, #02070d 50%, #000000 100%);
  --app-text: #f7f8fb;
  --app-muted: rgba(247, 248, 251, 0.68);
  --app-line: rgba(247, 248, 251, 0.16);
  --rf-overlay-z: 30050;
  --rf-overlay-backdrop-z: 30040;
  --rf-overlay-close-z: 30060;
}

html,
body {
  background: var(--rf-site-background) !important;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--app-text);
  color: var(--rf-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}

main {
  flex: 1 1 0%;
  background: transparent;
}

input,
textarea,
select,
[contenteditable="true"],
[data-rf-allow-select] {
  -webkit-user-select: text;
  user-select: text;
}

@media print {
  body * {
    visibility: hidden !important;
  }

  body::before {
    content: "Printing is disabled for RicherFin protected content.";
    visibility: visible !important;
    display: block;
    padding: 48px;
    color: #111827;
    font: 16px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
  }
}

html,
body,
* {
  scrollbar-width: thin;
  scrollbar-color: var(--rf-scrollbar-thumb) var(--rf-scrollbar-track);
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--rf-scrollbar-track);
  border-radius: var(--rf-radius-pill);
}

*::-webkit-scrollbar-thumb {
  background: var(--rf-scrollbar-thumb);
  border: 1px solid var(--rf-scrollbar-track);
  border-radius: var(--rf-radius-pill);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--rf-scrollbar-thumb-hover);
}

.rf-type-hero {
  font-size: var(--rf-font-hero-mobile);
  font-weight: 180;
  letter-spacing: -0.071em;
  line-height: 0.92;
}

.rf-type-page-title {
  font-size: var(--rf-font-page-title-mobile);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: var(--rf-leading-page-title);
}

.rf-type-section-title {
  font-size: var(--rf-font-section-title-mobile);
  font-weight: 540;
  letter-spacing: -0.025em;
  line-height: var(--rf-leading-section-title);
}

.rf-type-component-title {
  font-size: var(--rf-font-component-title);
  font-weight: 560;
  line-height: 1.35;
}

.rf-type-body {
  font-size: var(--rf-font-body);
  line-height: var(--rf-leading-body);
}

.rf-type-dense {
  font-size: var(--rf-font-dense);
  line-height: 1.45;
}

.rf-type-meta {
  font-size: var(--rf-font-meta);
  font-weight: 620;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

:where(.markets-shell, .company-detail-page, .exchange-detail-page, .news-page, .education-page, .finchat-page, .portfolio-shell, .holdings-shell, .funding-shell) h1 {
  font-size: var(--rf-font-page-title-mobile);
  line-height: var(--rf-leading-page-title);
}

:where(.markets-shell, .company-detail-page, .exchange-detail-page, .news-page, .education-page, .finchat-page, .portfolio-shell, .holdings-shell, .funding-shell) h2 {
  font-size: var(--rf-font-section-title-mobile);
  line-height: var(--rf-leading-section-title);
}

@media (min-width: 1024px) {
  .rf-type-hero {
    font-size: var(--rf-font-hero-desktop);
  }

  .rf-type-page-title,
  :where(.markets-shell, .company-detail-page, .exchange-detail-page, .news-page, .education-page, .finchat-page, .portfolio-shell, .holdings-shell, .funding-shell) h1 {
    font-size: var(--rf-font-page-title-desktop);
  }

  .rf-type-section-title,
  :where(.markets-shell, .company-detail-page, .exchange-detail-page, .news-page, .education-page, .finchat-page, .portfolio-shell, .holdings-shell, .funding-shell) h2 {
    font-size: var(--rf-font-section-title-desktop);
  }
}

.rf-flag-svg {
  display: inline-block !important;
  width: 1.35rem !important;
  height: 0.9rem !important;
  min-width: 1.35rem !important;
  max-width: 1.35rem !important;
  min-height: 0.9rem !important;
  max-height: 0.9rem !important;
  flex: 0 0 1.35rem !important;
  overflow: hidden !important;
  border-radius: 0;
  vertical-align: middle;
}

.rf-flag-svg--sm {
  width: 1.15rem !important;
  height: 0.76rem !important;
  min-width: 1.15rem !important;
  max-width: 1.15rem !important;
  min-height: 0.76rem !important;
  max-height: 0.76rem !important;
  flex-basis: 1.15rem !important;
}

.rf-flag-code {
  display: inline-flex;
  min-width: 1.35rem;
  height: 0.9rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.14rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  padding: 0 0.2rem;
  color: rgba(203, 213, 225, 0.78);
  font-size: 0.47rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rf-global-mobile-nav-spacer {
  height: calc(76px + env(safe-area-inset-bottom));
}

.finchat-auth-modal .finchat-auth-overlay {
  z-index: 0 !important;
}

.finchat-auth-modal .finchat-auth-card {
  z-index: calc(var(--rf-overlay-z, 10050) + 1) !important;
}

.finchat-auth-modal .finchat-auth-close,
.finchat-auth-modal .finchat-auth-actions {
  z-index: calc(var(--rf-overlay-z, 10050) + 2) !important;
}

@media (max-width: 1023px) {
  body:not(.rf-profile-page) .rf-site-footer {
    display: none !important;
  }
}

.rf-site-chrome,
.rf-site-subnav {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.rf-site-chrome.rf-mobile-bottom-nav {
  background: rgba(2, 7, 13, 0.94) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 -20px 48px rgba(0, 0, 0, 0.42) !important;
}

.rf-site-chrome.rf-mobile-top-nav {
  background: rgba(2, 7, 13, 0.94) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36) !important;
}

.rf-mobile-top-nav-shell {
  overflow: visible;
  padding-top: env(safe-area-inset-top);
  z-index: 3000 !important;
}

.rf-mobile-bottom-nav {
  padding-bottom: env(safe-area-inset-bottom);
}

.rf-mobile-subnav,
.rf-desktop-subnav {
  z-index: 100 !important;
}

.rf-desktop-header-shell {
  overflow: visible;
  z-index: 3000 !important;
}

.rf-mobile-auth-link {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

#filtersDrawer,
#detailDrawer,
#trade-modal,
#ledger-proof-modal,
#richeraiToolsFilterDrawer,
#previewDrawer,
#withdrawalModal,
#positionHistoryPanel,
#authRequiredModal,
#connectWorkflow,
[data-sgi-detail-panel],
[data-opcvm-detail-panel],
[data-coverage-detail-panel],
.finchat-modal,
.finchat-auth-modal,
.funding-modal-overlay,
.patrimoine-modal,
.auth-required-modal,
.position-history-panel {
  z-index: var(--rf-overlay-z) !important;
  isolation: isolate;
}

#filtersBackdrop,
#detailBackdrop,
#drawerBackdrop,
#richeraiToolsFilterBackdrop,
#previewBackdrop,
.funding-modal-backdrop,
.funding-shell.drawer-open::before,
.rf-drawer__backdrop,
.sgi-filter-backdrop.is-open,
.opcvm-filter-backdrop.is-open,
.coverage-filter-backdrop.is-open,
.finchat-modal-overlay {
  z-index: var(--rf-overlay-backdrop-z) !important;
}

.funding-shell.drawer-open .funding-side,
.rf-drawer__panel,
.sgi-filters.is-open,
.opcvm-filters.is-open,
.coverage-filters.is-open {
  z-index: var(--rf-overlay-z) !important;
}

#filtersDrawer > div:not([id$="Backdrop"]),
#detailDrawer > div:not([id$="Backdrop"]),
#richeraiToolsFilterDrawer > div:not([id$="Backdrop"]),
[data-sgi-detail-panel] > aside,
[data-opcvm-detail-panel] > aside,
[data-coverage-detail-panel] > aside {
  z-index: calc(var(--rf-overlay-backdrop-z) + 1) !important;
}

.position-history-x,
.patrimoine-modal__close,
.sgi-detail-close-button,
.opcvm-detail-close-button,
.coverage-detail-close-button {
  z-index: var(--rf-overlay-close-z) !important;
}

#filtersDrawer,
#detailDrawer,
#richeraiToolsFilterDrawer,
[data-sgi-detail-panel],
[data-opcvm-detail-panel],
[data-coverage-detail-panel],
.funding-modal-overlay,
.patrimoine-modal,
.auth-required-modal,
.position-history-panel {
  max-height: 100dvh;
  overflow: hidden;
}

.funding-shell.drawer-open .funding-side,
.funding-preview-modal,
.patrimoine-modal__panel,
.auth-required-modal__panel,
.position-history-panel__body,
.sgi-filters.is-open,
.opcvm-filters.is-open,
.coverage-filters.is-open,
.rf-drawer-open {
  overflow: hidden;
}

.rf-drawer__backdrop {
  background: rgba(0, 0, 0, 0.54);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 160ms ease;
  z-index: var(--rf-overlay-backdrop-z);
}

.rf-drawer__backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  z-index: var(--rf-overlay-backdrop-z) !important;
}

.rf-drawer__panel {
  background: var(--rf-bg-soft);
  border-right: 1px solid var(--rf-border-soft);
  bottom: 0;
  left: 0;
  max-width: 390px;
  overflow: hidden;
  position: fixed;
  top: 0;
  transform: translateX(-100%);
  transition: transform 180ms ease;
  width: min(88vw, 390px);
  z-index: var(--rf-overlay-z) !important;
}

.rf-drawer__panel.is-open {
  transform: translateX(0);
  z-index: var(--rf-overlay-z) !important;
}

.rf-drawer__form {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.rf-drawer__header {
  align-items: center;
  border-bottom: 1px solid var(--rf-border-soft);
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  min-height: 5.2rem;
  padding: 1.45rem 1.75rem;
}

.rf-drawer__title {
  color: var(--rf-text-primary);
  font-size: 1.25rem;
  font-weight: 520;
  letter-spacing: -0.02em;
}

.rf-drawer__close {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--rf-text-secondary);
  cursor: pointer;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
  z-index: var(--rf-overlay-close-z);
}

.rf-drawer__close:hover {
  color: var(--rf-text-primary);
}

.rf-drawer__close svg {
  height: 1.6rem;
  stroke-width: 1.45;
  width: 1.6rem;
}

.rf-drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 1.75rem;
  scrollbar-width: thin;
}

.rf-drawer__actions {
  align-items: center;
  background: var(--rf-bg-soft);
  border-top: 1px solid var(--rf-border-soft);
  display: flex;
  flex: 0 0 auto;
  gap: 0.75rem;
  padding: 1.1rem 1.75rem;
}

.rf-filter-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--rf-border-strong);
  border-radius: var(--rf-radius-md);
  color: var(--rf-text-secondary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.96rem;
  gap: 0.62rem;
  min-height: 2.65rem;
  padding: 0 1.05rem;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.rf-filter-button:hover,
.rf-filter-button:focus-visible {
  background: var(--rf-surface-soft);
  border-color: var(--rf-border-strong);
  color: var(--rf-text-primary);
}

.rf-filter-button svg {
  height: 1.05rem;
  width: 1.05rem;
}

.rf-list-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--rf-border-soft);
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  min-height: 2.75rem;
  padding-bottom: 0.75rem;
}

.rf-list-toolbar__meta {
  min-width: 0;
}

.rf-list-toolbar__count {
  color: var(--rf-text-primary);
  display: block;
  font-size: 0.95rem;
  font-weight: 560;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-filter-strip {
  align-items: center;
  border-bottom: 1px solid var(--rf-border-soft);
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 0.6rem;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x;
  white-space: nowrap;
}

.active-filter-strip::-webkit-scrollbar {
  display: none;
}

.active-filter-chip {
  align-items: center;
  background: var(--rf-surface-soft);
  border: 1px solid var(--rf-border-soft);
  color: var(--rf-text-secondary);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.5rem;
  min-height: 1.9rem;
  padding: 0 0.55rem 0 0.65rem;
}

.active-filter-chip .chip-kicker {
  color: var(--rf-text-muted);
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.active-filter-chip .chip-label {
  color: var(--rf-text-secondary);
  font-size: 0.82rem;
}

.active-filter-chip .chip-remove {
  align-items: center;
  color: var(--rf-text-muted);
  display: inline-flex;
  font-size: 1.1rem;
  height: 1.35rem;
  justify-content: center;
  line-height: 1;
  width: 1.15rem;
}

.active-filter-chip .chip-remove:hover,
.active-filter-chip .chip-remove:focus-visible {
  color: var(--rf-text-primary);
}

.rf-pagination {
  align-items: center;
  border-top: 1px solid var(--rf-border-soft);
  color: var(--rf-text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  gap: 0.75rem;
  justify-content: space-between;
  margin: 1rem 0;
  padding-top: 0.9rem;
}

.rf-pagination__actions {
  display: inline-flex;
  gap: 0.5rem;
}

.rf-page-link {
  align-items: center;
  border: 1px solid var(--rf-border-soft);
  color: var(--rf-text-primary);
  display: inline-flex;
  font-size: 0.78rem;
  justify-content: center;
  min-height: 2.35rem;
  min-width: 2.55rem;
  padding: 0 0.9rem;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.rf-page-link:hover,
.rf-page-link:focus-visible {
  background: var(--rf-surface-soft);
  border-color: var(--rf-border-strong);
}

.rf-page-link:disabled,
.rf-page-link.is-disabled {
  color: var(--rf-text-muted);
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 760px) {
  .rf-drawer__panel {
    max-width: none;
    width: min(92vw, 390px);
  }

  .rf-drawer__header {
    min-height: 4.6rem;
    padding: 1.15rem 1.1rem;
  }

  .rf-drawer__body {
    padding: 0 1.1rem;
  }

  .rf-drawer__actions {
    padding: 0.85rem 1.1rem calc(0.85rem + env(safe-area-inset-bottom));
  }
}

.rf-site-footer {
  align-items: center;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(148, 163, 184, 0.7);
  display: flex;
  font-size: 0.78rem;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  width: min(1160px, 100%);
}

.rf-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.rf-site-footer a {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 0.16s ease;
}

.rf-site-footer a:hover,
.rf-site-footer a:focus-visible {
  color: #fff;
  outline: none;
}

.rf-site-footer p {
  margin: 0;
}

.rf-brand-mark {
  display: block;
  height: 45px;
  object-fit: contain;
  width: 31px;
}

.rf-brand-word {
  color: rgba(255, 255, 255, 0.96);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.38em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.rf-dashboard-brand {
  background: transparent !important;
  gap: 19px !important;
  padding: 0 !important;
}

.rf-dashboard-brand img {
  height: 45px !important;
  width: 31px !important;
}

.rf-dashboard-brand span {
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 0.38em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.rf-top-nav-link,
.rf-top-nav-summary {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
}

.rf-top-nav-link:hover,
.rf-top-nav-summary:hover,
.rf-top-nav-link.is-active,
.rf-top-nav-summary.is-active {
  color: rgba(255, 255, 255, 0.96) !important;
}

.rf-top-nav-link.is-active::after,
.rf-top-nav-summary.is-active::after {
  content: none !important;
  display: none !important;
}

.rf-top-nav-link.is-active,
.rf-top-nav-summary.is-active {
  font-weight: 640 !important;
}

.rf-market-selector summary {
  background: transparent !important;
  border: 0 !important;
  color: rgba(255, 255, 255, 0.84) !important;
  min-height: 36px;
}

.rf-market-selector[open] summary {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.96) !important;
}

.rf-market-selector-summary {
  position: relative;
}

.rf-market-selector-summary::after {
  background: rgba(255, 255, 255, 0.45);
  bottom: 3px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 18px;
}

.rf-market-selector-menu {
  background: #02070d !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.52) !important;
}

.rf-market-selector-menu a[role="menuitem"] {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

.rf-market-selector-menu a[role="menuitem"]:hover {
  background: rgba(255, 255, 255, 0.055) !important;
  color: rgba(255, 255, 255, 0.96) !important;
}

.rf-flag-svg {
  display: inline-block !important;
  flex: 0 0 1.45rem !important;
  height: 1rem !important;
  max-height: 1rem !important;
  max-width: 1.45rem !important;
  min-height: 1rem !important;
  min-width: 1.45rem !important;
  object-fit: contain;
  overflow: hidden !important;
  vertical-align: middle;
  width: 1.45rem !important;
}

.rf-flag-svg--sm {
  flex-basis: 1.25rem !important;
  height: 0.9rem !important;
  max-height: 0.9rem !important;
  max-width: 1.25rem !important;
  min-height: 0.9rem !important;
  min-width: 1.25rem !important;
  width: 1.25rem !important;
}

.rf-theme-page {
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.rf-theme-page::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 15%, transparent 84%, rgba(255, 255, 255, 0.012)),
    linear-gradient(90deg, transparent 0%, transparent 72%, rgba(0, 0, 0, 0.54) 100%);
  content: "";
  inset: 0;
  opacity: 0.88;
  pointer-events: none;
  position: absolute;
  z-index: -2;
}

.rf-theme-page::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.rf-landing {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: min(100svh, 820px);
  overflow: hidden;
  padding: clamp(72px, 7svh, 96px) clamp(28px, 3.4vw, 64px) 0;
}

.rf-landing::before,
.rf-landing::after {
  display: none;
}

.rf-landing-copy,
.rf-landing-copy *,
.rf-landing-cta {
  background: transparent;
}

.rf-landing-hero {
  align-items: stretch;
  display: block;
  margin: 0 auto;
  max-width: 1512px;
  min-height: clamp(450px, 52svh, 540px);
  padding: 0;
  position: relative;
  width: 100%;
  z-index: 2;
}

.rf-landing-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: clamp(450px, 52svh, 540px);
  max-width: 520px;
  padding-bottom: 0;
  padding-top: clamp(4px, 0.8svh, 14px);
  position: relative;
  z-index: 2;
}

.rf-landing-title {
  color: var(--rf-ink);
  font-size: clamp(84px, 8.4vw, 124px);
  font-weight: 180;
  letter-spacing: -0.071em;
  line-height: 0.92;
  margin: 0;
  text-shadow: 0 0 34px rgba(255, 255, 255, 0.1);
}

.rf-landing-subtitle {
  color: var(--rf-muted);
  font-size: 18px;
  font-weight: 350;
  line-height: 1.72;
  margin: 38px 0 0;
  max-width: 330px;
}

.rf-landing-cta {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  display: inline-flex;
  gap: 34px;
  font-size: 17px;
  font-weight: 420;
  margin-top: clamp(42px, 5svh, 58px);
  padding-bottom: 13px;
  width: max-content;
}

.rf-landing-cta span {
  display: inline-block;
  font-size: 26px;
  line-height: 1;
  transform: translateY(-1px);
}

.rf-landing-drop {
  background-image: url("../images/landing/droplet-light-cutout.png");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: auto 100%;
  display: block;
  inset: 0 0 0 auto;
  height: auto;
  min-height: 100%;
  position: absolute;
  width: 62%;
  z-index: 1;
}

.rf-landing-drop img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.rf-exchange-strip {
  margin: clamp(10px, 1.7svh, 20px) auto 0;
  max-width: 1512px;
  overflow-x: visible;
  padding: 0;
  position: relative;
  width: 100%;
  z-index: 3;
}

.rf-exchange-track {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr 1px 1fr;
}

.rf-exchange-group {
  display: contents;
}

.rf-exchange-group[aria-hidden="true"] {
  display: none;
}

.rf-exchange {
  align-items: center;
  color: rgba(255, 255, 255, 0.56);
  display: grid;
  gap: 5px;
  grid-template-rows: 40px 18px;
  justify-content: center;
  justify-items: center;
  min-height: 72px;
  opacity: 0.85;
}

.rf-exchange.has-logo {
  column-gap: 10px;
  grid-template-columns: auto auto;
  grid-template-rows: 40px 18px;
  justify-items: start;
}

.rf-exchange-separator {
  background: rgba(255, 255, 255, 0.18);
  height: 38px;
}

.rf-exchange-logo {
  display: block;
  max-height: 42px;
  object-fit: contain;
  width: auto;
}

.rf-exchange-logo.brvm {
  max-height: 36px;
  width: 114px;
}

.rf-exchange-logo.bvmac {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  max-height: 34px;
  width: 34px;
}

.rf-exchange-logo.ngx {
  max-height: 37px;
  width: 122px;
}

.rf-exchange-logo.cse {
  align-self: center;
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  max-height: 34px;
  min-width: 30px;
  opacity: 0.78;
  width: 30px;
}

.rf-exchange-logo-mask {
  align-self: center;
  background: rgba(255, 255, 255, 0.58);
  display: block;
  height: 36px;
  width: 104px;
}

.rf-exchange-logo-mask.jse {
  -webkit-mask: url("../images/landing/jse_logo.svg") center / contain no-repeat;
  mask: url("../images/landing/jse_logo.svg") center / contain no-repeat;
}

.rf-exchange-label {
  align-self: center;
  font-size: 28px;
  font-weight: 520;
  letter-spacing: 0.02em;
  line-height: 1;
}

.rf-exchange-label.cse-text {
  color: rgba(255, 255, 255, 0.62);
  font-size: 28px;
  font-weight: 560;
  letter-spacing: 0.02em;
  line-height: 1;
}

.rf-exchange-copy {
  display: contents;
}

.rf-exchange-region {
  align-self: start;
  color: rgba(255, 255, 255, 0.54);
  display: block;
  font-size: 11px;
  grid-row: 2;
  font-weight: 360;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
}

.rf-exchange.has-logo .rf-exchange-label {
  grid-column: 2;
  grid-row: 1;
}

.rf-exchange.has-logo .rf-exchange-region {
  grid-column: 1 / -1;
  justify-self: center;
}

.rf-home-sections {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 auto;
  max-width: 1512px;
  padding: 0 clamp(28px, 3.4vw, 64px) 42px;
  position: relative;
  width: 100%;
}

.rf-home-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(28px, 5vw, 72px) 0;
}

.rf-home-kicker {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 450;
  letter-spacing: 0.42em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.rf-home-section h2 {
  color: var(--rf-ink);
  font-size: clamp(30px, 4.15vw, 64px);
  font-weight: 240;
  letter-spacing: -0.06em;
  line-height: 1.04;
  margin: 0;
}

.rf-home-section h3 {
  color: var(--rf-ink);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.35;
  margin: 0;
}

.rf-home-section p,
.rf-home-section span,
.rf-home-section select,
.rf-home-section textarea {
  color: var(--rf-muted);
}

.rf-home-section p {
  font-size: 15px;
  font-weight: 350;
  line-height: 1.72;
  margin: 18px 0 0;
}

.rf-home-link {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--rf-ink);
  display: inline-flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 460;
  margin-top: 26px;
  padding-bottom: 10px;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.rf-home-link:hover,
.rf-home-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
}

.rf-home-link span {
  color: inherit;
  font-size: 20px;
  line-height: 1;
}

.rf-home-invest {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  min-height: 440px;
}

.rf-home-invest-copy {
  align-self: center;
  max-width: 680px;
}

.rf-home-invest-copy > p:not(.rf-home-kicker) {
  max-width: 590px;
}

.rf-home-invest-panel {
  align-items: center;
  display: grid;
  gap: clamp(24px, 3vw, 46px);
  grid-template-columns: minmax(320px, 1fr) minmax(150px, 210px);
  justify-content: center;
  min-height: clamp(260px, 32vw, 460px);
  overflow: visible;
}

.rf-home-invest-panel .rf-home-africa-map {
  align-self: center;
  aspect-ratio: 1 / 1;
  display: block;
  flex: 0 0 clamp(280px, 38vw, 520px);
  height: clamp(280px, 38vw, 520px);
  justify-self: center;
  max-height: clamp(280px, 38vw, 520px);
  max-width: 100%;
  min-height: 0;
  opacity: 0.86;
  width: clamp(280px, 38vw, 520px);
}

.rf-home-market-list {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 14px;
  padding-left: 22px;
}

.rf-home-market-list a {
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.rf-home-market-list a:hover,
.rf-home-market-list a:focus-visible {
  color: #fff;
  transform: translateX(2px);
}

.rf-home-market-list span {
  display: grid;
  gap: 2px;
}

.rf-home-market-list strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 580;
  letter-spacing: 0.02em;
}

.rf-home-market-list small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  line-height: 1.25;
}

.rf-home-invest-panel .rf-home-africa-map .africa-svg {
  display: block;
  height: 100%;
  overflow: visible;
  width: 100%;
}

.rf-home-africa-map .africa-country {
  fill: rgba(255, 255, 255, 0.12);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
  transition: fill 160ms ease, opacity 160ms ease, stroke 160ms ease;
}

.rf-home-africa-map .africa-country[data-available] {
  fill: rgba(126, 161, 255, 0.28);
  stroke: rgba(180, 204, 255, 0.3);
}

.rf-home-africa-map .africa-country[data-active] {
  fill: rgba(158, 187, 255, 0.82);
  stroke: rgba(232, 240, 255, 0.9);
}

.rf-home-africa-map .africa-country[data-clickable] {
  cursor: pointer;
}

.rf-home-africa-map .africa-country[data-clickable]:hover {
  fill: rgba(235, 241, 255, 0.95);
  stroke: rgba(255, 255, 255, 0.95);
}

.rf-home-features {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  padding-bottom: clamp(34px, 5vw, 72px);
  padding-top: clamp(34px, 5vw, 72px);
}

.rf-home-feature {
  display: grid;
  grid-template-rows: auto auto minmax(112px, auto) auto 1fr;
  min-height: 420px;
  padding: 0 clamp(16px, 2.4vw, 32px);
}

.rf-home-feature + .rf-home-feature {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.rf-home-feature:first-child {
  padding-left: 0;
}

.rf-home-feature:last-child {
  padding-right: 0;
}

.rf-home-feature h2 {
  font-size: clamp(26px, 2.5vw, 40px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.rf-home-feature > p:not(.rf-home-kicker) {
  max-width: 420px;
}

.rf-home-feature > .rf-home-link {
  align-self: start;
  margin-top: 0;
}

.rf-home-richerai-card {
  min-height: 420px;
}

.rf-home-richerai-lead {
  max-width: 420px;
}

.rf-home-richerai-preview {
  align-self: end;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  margin-top: 28px;
  padding-top: 18px;
}

.rf-home-richerai-stats {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0 0 16px;
}

.rf-home-richerai-stats div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rf-home-richerai-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: clamp(16px, 2vw, 32px);
}

.rf-home-richerai-stats dt {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.rf-home-richerai-stats dd {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 350;
  margin: 0;
}

.rf-home-richerai-list {
  display: grid;
  margin-top: 0;
}

.rf-home-richerai-row {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 14px 0;
  text-decoration: none;
}

.rf-home-richerai-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.68);
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.rf-home-richerai-icon svg {
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  width: 18px;
}

.rf-home-richerai-row strong {
  color: rgba(255, 255, 255, 0.92);
  display: block;
  font-size: 14px;
  font-weight: 520;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.rf-home-richerai-row small {
  color: rgba(255, 255, 255, 0.56);
  display: block;
  font-size: 12px;
  font-weight: 340;
  line-height: 1.45;
  margin-top: 3px;
  max-width: 520px;
}

.rf-home-richerai-row-arrow {
  color: rgba(255, 255, 255, 0.48);
  font-size: 26px;
  font-weight: 220;
  line-height: 1;
}

@media (min-width: 941px) {
  .rf-home-feature h2 {
    min-height: 96px;
  }

  .rf-home-feature > p:not(.rf-home-kicker) {
    min-height: 104px;
  }

}

.rf-home-portfolio-preview {
  align-self: end;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
  box-shadow: none;
  display: grid;
  gap: 9px;
  height: 300px;
  margin-top: 28px;
  padding: 18px;
}

.rf-home-portfolio-preview span,
.rf-home-portfolio-preview small,
.rf-home-portfolio-preview em {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-style: normal;
}

.rf-home-portfolio-preview strong {
  color: var(--rf-ink);
  font-size: 22px;
  font-weight: 450;
}

.rf-home-portfolio-preview em {
  color: #74d796;
}

.rf-home-portfolio-preview i {
  border-bottom: 1px solid rgba(174, 157, 255, 0.36);
  border-radius: 50%;
  display: block;
  height: 54px;
  position: relative;
}

.rf-home-portfolio-preview i::before {
  background: linear-gradient(110deg, transparent 0 12%, rgba(174, 157, 255, 0.25) 13%, rgba(174, 157, 255, 0.7) 55%, rgba(255, 255, 255, 0.48) 100%);
  content: "";
  height: 2px;
  inset: 32px 0 auto 0;
  position: absolute;
  transform: skewY(-12deg);
}

.rf-home-education-news {
  align-self: end;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin-top: 28px;
  min-width: 0;
  padding-top: 0;
}

.rf-home-education-news-head {
  display: grid;
  gap: 16px;
  padding: 0;
}

.rf-home-education-news-head .rf-home-kicker {
  margin: 0;
}

.rf-home-education-news-head p {
  color: var(--rf-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.rf-home-news-feature {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  box-sizing: border-box;
  color: inherit;
  display: grid;
  gap: 8px;
  min-height: 154px;
  margin-top: 0;
  min-width: 0;
  padding: 14px 16px 13px;
  text-decoration: none;
}

.rf-home-news-feature[hidden] {
  display: none;
}

.rf-home-news-title {
  color: var(--rf-ink);
  display: -webkit-box;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rf-home-news-summary {
  color: var(--rf-muted);
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rf-home-news-meta {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.68);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  letter-spacing: 0.02em;
  margin-top: auto;
  padding-top: 9px;
}

.rf-home-news-meta span:last-child {
  align-items: center;
  background: transparent;
  color: var(--rf-ink);
  display: inline-flex;
  font-size: 22px;
  height: auto;
  justify-content: center;
  line-height: 1;
  width: auto;
}

.rf-home-news-feature:hover,
.rf-home-news-feature:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
}

.rf-home-news-feature:hover .rf-home-news-title,
.rf-home-news-feature:focus-visible .rf-home-news-title {
  color: #fff;
}

.rf-home-news-dots {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.rf-home-news-dots button {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  height: 5px;
  padding: 0;
  width: 5px;
}

.rf-home-news-dots button.is-active {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.82);
}

.rf-home-news-dots button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.rf-home-access {
  display: grid;
  gap: clamp(26px, 6vw, 96px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rf-home-access article {
  display: grid;
  grid-template-rows: auto minmax(78px, auto) minmax(104px, auto) auto;
  min-height: 230px;
  padding: 0 clamp(12px, 2.5vw, 44px);
}

.rf-home-access article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.rf-home-access h2 {
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 450;
  letter-spacing: -0.025em;
  max-width: 540px;
}

.rf-home-access .rf-home-link {
  align-self: start;
  margin-top: 0;
}

@media (max-width: 1023px) {
  .rf-dashboard-brand img,
  .rf-brand-mark {
    height: 32px !important;
    width: 23px !important;
  }

  .rf-dashboard-brand span,
  .rf-brand-word {
    font-size: 12px !important;
    letter-spacing: 0.28em !important;
  }
}

@media (min-width: 1024px) {
  .rf-landing-copy > .rf-landing-cta {
    margin-top: clamp(42px, 5svh, 58px);
  }
}

@media (max-width: 1023px) {
  .rf-landing {
    padding-top: clamp(72px, 9svh, 104px);
  }

  .rf-landing-hero {
    min-height: clamp(430px, 60svh, 600px);
  }

  .rf-landing-copy {
    min-height: clamp(430px, 60svh, 600px);
    max-width: min(46vw, 440px);
  }

  .rf-landing-title {
    font-size: clamp(72px, 10vw, 104px);
  }

  .rf-landing-subtitle {
    font-size: 17px;
    margin-top: 28px;
    max-width: min(42vw, 300px);
  }

  .rf-landing-cta {
    width: min(42vw, 300px);
  }
}

@media (max-width: 940px) {
  .rf-landing {
    min-height: max(100svh, 760px);
    padding: calc(env(safe-area-inset-top) + 56px) 24px calc(env(safe-area-inset-bottom) + 86px);
  }

  .rf-landing-hero {
    align-items: stretch;
    display: block;
    min-height: clamp(430px, 61svh, 560px);
  }

  .rf-landing-copy {
    min-height: clamp(430px, 61svh, 560px);
    max-width: min(50vw, 300px);
  }

  .rf-landing-title {
    font-size: clamp(52px, 14vw, 82px);
    letter-spacing: -0.066em;
    line-height: 0.98;
  }

  .rf-landing-subtitle {
    font-size: clamp(15px, 4vw, 19px);
    line-height: 1.62;
    margin-top: clamp(22px, 3svh, 34px);
    max-width: min(46vw, 270px);
  }

  .rf-landing-cta {
    gap: clamp(22px, 6vw, 45px);
    font-size: clamp(16px, 4vw, 22px);
    margin-top: clamp(34px, 6svh, 62px);
    padding-bottom: 16px;
    width: min(46vw, 244px);
  }

  .rf-landing-drop {
    background-position: right center;
    background-size: auto 100%;
    min-height: 100%;
    opacity: 0.88;
    position: absolute;
    width: 62%;
    z-index: 1;
  }

  .rf-exchange-strip {
    max-width: none;
    margin-top: clamp(24px, 3svh, 38px);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .rf-exchange-strip::-webkit-scrollbar {
    display: none;
  }

  .rf-exchange-track {
    align-items: center;
    column-gap: 0;
    display: flex;
    min-width: max-content;
    padding: 0;
    width: max-content;
  }

  .rf-exchange-group,
  .rf-exchange-group[aria-hidden="true"] {
    column-gap: 18px;
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 154px 1px 182px 1px 158px 1px 158px 1px 214px;
    padding: 0 clamp(34px, 8vw, 58px);
    width: max-content;
  }

  .rf-exchange-separator {
    height: 40px;
    justify-self: center;
  }

  .rf-exchange {
    gap: 5px;
    min-height: 72px;
  }

  .rf-exchange.has-logo {
    column-gap: 10px;
  }

  .rf-exchange-region {
    font-size: 11px;
  }

  .rf-exchange-copy {
    gap: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    .rf-exchange-track {
      animation: rf-exchange-mobile-loop 22s linear infinite;
      will-change: transform;
    }

    .rf-exchange-strip:hover .rf-exchange-track,
    .rf-exchange-strip:focus-within .rf-exchange-track {
      animation-play-state: paused;
    }
  }

  .rf-site-footer {
    flex-direction: column;
    gap: 0.45rem;
    justify-content: center;
    padding: 0.8rem 0.35rem 0;
    text-align: center;
    font-size: 0.76rem;
  }

  .rf-site-footer nav {
    gap: 0.8rem;
    justify-content: center;
  }

  .rf-home-sections {
    padding: 0 24px calc(env(safe-area-inset-bottom) + 94px);
  }

  .rf-home-invest,
  .rf-home-features,
  .rf-home-access {
    grid-template-columns: 1fr;
  }

  .rf-home-feature {
    border-left: 0;
    min-height: auto;
    padding: 0;
  }

  .rf-home-feature + .rf-home-feature {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 34px;
    padding-top: 34px;
  }

  .rf-home-richerai-stats {
    grid-template-columns: 1fr;
    padding: 0 0 16px;
  }

  .rf-home-richerai-stats div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 10px;
    padding-left: 0;
    padding-top: 10px;
  }

  .rf-home-richerai-stats dt {
    font-size: 18px;
  }

  .rf-home-richerai-row {
    gap: 12px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 14px 0;
  }

  .rf-home-richerai-icon {
    height: 30px;
    width: 30px;
  }

  .rf-home-richerai-icon svg {
    height: 18px;
    width: 18px;
  }

  .rf-home-richerai-row strong {
    font-size: 14px;
  }

  .rf-home-richerai-row small {
    font-size: 12px;
  }

  .rf-home-invest-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .rf-home-invest-panel .rf-home-africa-map {
    flex-basis: min(74vw, 360px);
    height: min(74vw, 360px);
    margin: 0 auto;
    max-height: 360px;
    width: min(74vw, 360px);
  }

  .rf-home-invest-panel .rf-home-africa-map .africa-svg {
    height: 100%;
    width: 100%;
  }

  .rf-home-market-list {
    display: none;
  }

  .rf-home-access article {
    padding: 0;
  }

  .rf-home-access article + article {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 34px;
  }
}

@keyframes rf-exchange-mobile-loop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 520px) {
  .rf-landing-drop {
    opacity: 0.68;
  }

  .rf-home-section h2 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .rf-home-market-list {
    display: none;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .rf-landing {
    padding-top: 72px;
  }

  .rf-landing-hero {
    min-height: 520px;
  }

  .rf-exchange-strip {
    margin-top: 12px;
  }
}

/* Global navbar component rules moved from core/components/navbar.html. */
:root {
    --rf-overlay-z: 30050;
    --rf-overlay-backdrop-z: 30040;
    --rf-overlay-close-z: 30060;
  }

  #filtersDrawer,
  #detailDrawer,
  #trade-modal,
  #ledger-proof-modal,
  #richeraiToolsFilterDrawer,
  #previewDrawer,
  #withdrawalModal,
  #positionHistoryPanel,
  #authRequiredModal,
  #connectWorkflow,
  [data-sgi-detail-panel],
  [data-opcvm-detail-panel],
  [data-coverage-detail-panel],
  .finchat-modal,
  .finchat-auth-modal,
  .funding-modal-overlay,
  .patrimoine-modal,
  .auth-required-modal,
  .position-history-panel {
    z-index: var(--rf-overlay-z) !important;
    isolation: isolate;
  }

  #filtersBackdrop,
  #detailBackdrop,
  #drawerBackdrop,
  #richeraiToolsFilterBackdrop,
  #previewBackdrop,
  .funding-modal-backdrop,
  .funding-shell.drawer-open::before,
  .rf-drawer__backdrop,
  .sgi-filter-backdrop.is-open,
  .opcvm-filter-backdrop.is-open,
  .coverage-filter-backdrop.is-open,
  .finchat-modal-overlay,
  .finchat-auth-overlay {
    z-index: var(--rf-overlay-backdrop-z) !important;
  }

  .funding-shell.drawer-open .funding-side,
  .rf-drawer__panel,
  .sgi-filters.is-open,
  .opcvm-filters.is-open,
  .coverage-filters.is-open {
    z-index: var(--rf-overlay-z) !important;
  }

  #filtersDrawer > div:not([id$="Backdrop"]),
  #detailDrawer > div:not([id$="Backdrop"]),
  #richeraiToolsFilterDrawer > div:not([id$="Backdrop"]),
  [data-sgi-detail-panel] > aside,
  [data-opcvm-detail-panel] > aside,
  [data-coverage-detail-panel] > aside {
    z-index: calc(var(--rf-overlay-backdrop-z) + 1) !important;
  }

  .position-history-x,
  .patrimoine-modal__close,
  .sgi-detail-close-button,
  .opcvm-detail-close-button,
  .coverage-detail-close-button {
    z-index: var(--rf-overlay-close-z) !important;
  }

  #filtersDrawer,
  #detailDrawer,
  #richeraiToolsFilterDrawer,
  [data-sgi-detail-panel],
  [data-opcvm-detail-panel],
  [data-coverage-detail-panel],
  .funding-modal-overlay,
  .patrimoine-modal,
  .auth-required-modal,
  .position-history-panel {
    max-height: 100dvh;
    overflow: hidden;
  }

  .funding-shell.drawer-open .funding-side,
  .funding-preview-modal,
  .patrimoine-modal__panel,
  .auth-required-modal__panel,
  .position-history-panel__body,
  .sgi-filters.is-open,
  .opcvm-filters.is-open,
  .coverage-filters.is-open {
    max-height: calc(100dvh - max(1rem, env(safe-area-inset-top)) - max(1rem, env(safe-area-inset-bottom))) !important;
    overscroll-behavior: contain;
  }

  .rf-market-selector summary::-webkit-details-marker { display: none; }
  .rf-market-selector { position: relative; }
  .rf-market-selector[open] { z-index: 4200 !important; }
  .rf-market-selector a[role="menuitem"] { min-height: 42px; }
  .rf-market-selector[open] summary { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.055); }
  .rf-market-selector-menu {
    z-index: 4201 !important;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: #020B1F !important;
    background-image: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 22px 54px rgba(0,0,0,0.52);
  }
  .rf-market-selector-menu a[role="menuitem"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.625rem 0.875rem;
    color: #fff;
    font-size: 0.875rem;
    transition: background 150ms ease;
  }
  .rf-market-selector-menu a[role="menuitem"]:first-child { border-top: 0; }
  .rf-market-selector-menu a[role="menuitem"]:hover { background: rgba(255,255,255,0.06); }
  .rf-nav-flag {
    position: relative;
    display: inline-flex;
    flex: 0 0 1.15rem;
    width: 1.15rem;
    height: 0.76rem;
    min-width: 1.15rem;
    max-width: 1.15rem;
    min-height: 0.76rem;
    max-height: 0.76rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    vertical-align: middle;
  }
  .rf-nav-flag .rf-flag-svg {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    flex: none !important;
    overflow: hidden !important;
  }
  .rf-top-nav {
    display: flex;
    align-items: stretch;
    gap: 2.05rem;
    height: 68px;
  }
  .rf-top-nav-link,
  .rf-top-nav-summary {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 68px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease;
  }
  .rf-top-nav-link:hover,
  .rf-top-nav-summary:hover,
  .rf-top-nav-link.is-active,
  .rf-top-nav-summary.is-active {
    color: rgba(255, 255, 255, 0.96);
  }
  .rf-top-nav-link.is-active,
  .rf-top-nav-summary.is-active {
    font-weight: 640;
  }
  .rf-top-nav-link:hover,
  .rf-top-nav-summary:hover {
    color: #fff;
  }
  .rf-nav-dropdown summary::-webkit-details-marker { display: none; }
  .rf-nav-dropdown {
    position: relative;
    z-index: 4200 !important;
  }
  .rf-nav-dropdown[open] {
    z-index: 4400 !important;
  }
  .rf-nav-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    z-index: 4401 !important;
    min-width: 12rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: #020B1F !important;
    background-image: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 22px 54px rgba(0,0,0,0.52);
  }
  .rf-nav-dropdown-menu a {
    display: flex;
    min-height: 42px;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.65rem 0.9rem;
    color: #fff;
    font-size: 0.84rem;
    text-decoration: none;
  }
  .rf-nav-dropdown-menu a:first-child { border-top: 0; }
  .rf-nav-dropdown-menu a:hover { background: rgba(255,255,255,0.06); }
  .rf-user-action {
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    color: rgba(255, 255, 255, 0.88);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    padding: 0;
    width: 36px;
  }
  .rf-user-action svg {
    display: block;
    height: 22px;
    stroke-width: 1.55;
    width: 22px;
  }
  .rf-language-chip {
    align-items: center;
    color: rgba(255, 255, 255, 0.88);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 640;
    height: 36px;
    justify-content: center;
    letter-spacing: 0.08em;
    min-width: 2.1rem;
    text-decoration: none;
  }
  .rf-language-chip:hover {
    color: #fff;
  }
  .rf-mobile-nav-item,
  .rf-mobile-nav-summary {
    display: flex;
    min-height: 58px;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0 0.25rem;
    color: var(--app-muted);
    text-align: center;
    text-decoration: none;
    transition: color 160ms ease;
  }
  .rf-mobile-nav-item.is-active,
  .rf-mobile-nav-summary.is-active {
    color: #d7e1ee;
  }
  .rf-mobile-nav-item svg,
  .rf-mobile-nav-summary svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
  }
  .rf-mobile-nav-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.64rem;
    font-weight: 560;
    line-height: 1;
  }
  .rf-mobile-more {
    position: relative;
    z-index: 120;
  }
  .rf-mobile-more[open] {
    z-index: 220;
  }
  .rf-mobile-more summary::-webkit-details-marker { display: none; }
  .rf-mobile-more-menu {
    position: absolute;
    right: 0.15rem;
    bottom: calc(100% + 0.5rem);
    z-index: 230;
    width: min(12rem, calc(100vw - 1rem));
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: #020B1F;
    box-shadow: 0 -18px 42px rgba(0,0,0,0.34);
  }
  .rf-mobile-more-menu a {
    display: flex;
    min-height: 42px;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.65rem 0.9rem;
    color: #fff;
    font-size: 0.84rem;
    text-decoration: none;
  }
  .rf-mobile-more-menu a:first-child { border-top: 0; }
  .rf-site-chrome {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  .rf-site-chrome.rf-mobile-bottom-nav {
    background: rgba(2, 7, 13, 0.94) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -20px 48px rgba(0, 0, 0, 0.42) !important;
  }
  .rf-site-chrome.rf-mobile-top-nav {
    background: rgba(2, 7, 13, 0.94) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36) !important;
  }
  header.rf-site-chrome {
    position: relative !important;
    z-index: 3000 !important;
    isolation: isolate;
  }
  .rf-site-subnav {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    z-index: 100 !important;
  }
  .rf-dashboard-brand {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    gap: 19px;
    padding: 0;
    background: transparent;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
  }
  .rf-dashboard-brand img {
    height: 45px;
    width: 31px;
    object-fit: contain;
  }
  .rf-dashboard-brand span {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.38em;
    line-height: 1;
    text-transform: uppercase;
  }
  .rf-dashboard-profile {
    display: inline-grid;
    grid-template-columns: 2.1rem auto;
    align-items: center;
    gap: 0.48rem;
    border-left: 1px solid rgba(255,255,255,0.08);
    padding-left: 1.45rem;
    color: #fff;
    text-decoration: none;
  }
  .rf-dashboard-avatar {
    position: relative;
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border-radius: 999px;
    background: #7c4dff;
    font-size: 0.82rem;
    font-weight: 760;
    letter-spacing: 0;
  }
  .rf-dashboard-avatar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -0.05rem;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: #16d85b;
  }

  .rf-brand-mark {
    display: block;
    height: 32px;
    width: 23px;
    object-fit: contain;
  }

  .rf-market-selector-summary {
    position: relative;
    min-height: 36px;
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
  }

  .rf-market-selector[open] .rf-market-selector-summary {
    color: rgba(255, 255, 255, 0.96) !important;
  }

  .rf-market-selector-summary::after {
    position: absolute;
    right: 18px;
    bottom: 3px;
    left: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.45);
    content: "";
  }

  @media (max-width: 940px) {
    .rf-dashboard-brand img,
    .rf-brand-mark {
      height: 32px !important;
      width: 23px !important;
    }

    .rf-dashboard-brand span {
      font-size: 12px !important;
      letter-spacing: 0.28em !important;
    }
  }
