/* ==========================================================================
   RHEA FINANCE — clone stylesheet
   Colors sampled directly from reference screenshots.
   ========================================================================== */

:root {
  /* Core palette */
  --bg: #000000;
  --surface: #16161b;
  /* sidebar / cards / inputs */
  --surface-2: #1c1c22;
  /* hover state on surface */
  --surface-3: #232329;
  /* input field on swap card */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);

  --green: #00f7a5;
  /* primary accent */
  --green-dim: #008256;
  /* muted accent / borders */
  --green-bg: rgba(0, 247, 165, 0.10);
  --green-bg-soft: rgba(0, 247, 165, 0.06);

  --yellow: #f7c948;
  --blue: #2f7cf6;
  --zec-orange: #f4b728;

  --text-1: #ffffff;
  --text-2: #9a9aa5;
  --text-3: #66666f;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --sidebar-w: 232px;
  --topbar-h: 76px;
  --footer-h: 44px;
  --mobile-topbar-h: 64px;
  --mobile-bottomnav-h: 62px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv05" 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

i[class^="ri-"] {
  line-height: 1;
  display: inline-flex;
}

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

::-webkit-scrollbar-thumb {
  background: #2a2a31;
  border-radius: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.desktop-only {
  display: initial !important;
}

.mobile-only {
  display: none !important;
}

/* ==========================================================================
   ICON BUTTON (shared)
   ========================================================================== */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 17px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text-1);
}

/* ==========================================================================
   CONNECT WALLET BUTTON
   ========================================================================== */
.btn-connect {
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1.5px solid var(--green);
  color: var(--text-1);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 0 0 3px rgba(0, 247, 165, 0.08);
  transition: background .15s ease, transform .1s ease;
  white-space: nowrap;
}

.btn-connect:hover {
  background: var(--green-bg-soft);
}

.btn-connect:active {
  transform: scale(0.98);
}

.btn-connect-full {
  width: 100%;
  height: 52px;
  background: var(--green);
  border-color: var(--green);
  color: #04231a;
  font-weight: 700;
  font-size: 15px;
  box-shadow: none;
  margin-top: 14px;
}

.btn-connect-full:hover {
  background: #12ffb4;
}

.btn-connect-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

/* ==========================================================================
   SIDEBAR (desktop)
   ========================================================================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  z-index: 40;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-1);
}

.brand img {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 22px 6px;
}

.sidebar-collapse-btn {
  width: 30px;
  height: 30px;
  font-size: 15px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-nav-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
}

.nav-item i {
  font-size: 18px;
  width: 18px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text-1);
}

.nav-item.active {
  background: var(--green-bg);
  color: var(--green);
}

.nav-dropdown-trigger {
  position: relative;
}

.dropdown-chevron {
  margin-left: auto;
  transition: transform .2s ease;
  font-size: 16px !important;
}

.nav-dropdown-trigger[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}

.nav-sub.open {
  max-height: 260px;
}

.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13.5px;
  position: relative;
}

.nav-sub-item i {
  font-size: 16px;
  width: 16px;
}

.nav-sub-item:hover {
  background: var(--surface-2);
  color: var(--text-1);
}

.nav-sub-item.active {
  color: var(--green);
}

.tag-new {
  margin-left: auto;
  background: var(--green);
  color: #04231a;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   APP SHELL / TOPBAR
   ========================================================================== */
.app-shell {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding-bottom: var(--footer-h);
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.topbar-left i {
  font-size: 18px;
  color: var(--text-1);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-topbar {
  display: none;
}

/* ==========================================================================
   MAIN CONTENT / GRID
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 0 32px 32px 32px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

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

.content-right {
  position: sticky;
  top: 20px;
}

/* ==========================================================================
   HERO CAROUSEL
   ========================================================================== */
.hero-carousel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  position: relative;
}

.hero-track {
  position: relative;
  min-height: 220px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 26px);
  mask-image: radial-gradient(ellipse 80% 100% at 60% 0%, #000 40%, transparent 90%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.badge-light {
  background: #232329;
  color: var(--text-1);
  border: 1px solid var(--border-strong);
}

.badge-green {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(0, 247, 165, 0.3);
}

.hero-heading {
  position: relative;
  z-index: 1;
  max-width: 640px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.28;
  margin: 20px 0 6px 0;
}

.hero-subheading {
  position: relative;
  z-index: 1;
  max-width: 640px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.28;
  margin: 0 0 26px 0;
}

.accent-green {
  color: var(--green);
}

.accent-yellow {
  color: var(--yellow);
}

.btn-pill-white {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
}

.btn-pill-white i {
  font-size: 15px;
}

.btn-pill-white:hover {
  background: #e8e8e8;
}

.hero-coin {
  position: absolute;
  top: 30px;
  right: 60px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
}

.hero-coin-blue {
  background: radial-gradient(circle at 35% 30%, #4f92ff, #1a56cf);
  color: #eaf1ff;
  box-shadow: 0 0 0 6px rgba(47, 124, 246, 0.12);
}

.hero-coin-secondary {
  top: 22px;
  right: 150px;
  width: 64px;
  height: 64px;
  font-size: 34px;
}

.hero-coin-zec {
  top: 90px;
  right: 76px;
  width: 46px;
  height: 46px;
  background: var(--zec-orange);
  color: #241a00;
  font-weight: 800;
  font-size: 20px;
}

.hero-mini-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.mini-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.mini-card i {
  font-size: 20px;
  color: var(--text-2);
  margin-top: 2px;
}

.mini-card h3 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 700;
}

.mini-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.4;
}

.hero-dots {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  margin-top: 22px;
}

.hero-dot {
  width: 22px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: #2c2c33;
  border: none;
  padding: 0;
  transition: background .2s ease, width .2s ease;
}

.hero-dot.active {
  background: var(--text-1);
  width: 30px;
}

/* ==========================================================================
   FEATURED POOLS
   ========================================================================== */
.pools-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.pools-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pools-tab {
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
}

.sort-select {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--text-1);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
}

.pools-table {
  width: 100%;
}

.pools-row {
  display: grid;
  grid-template-columns: 2.1fr 1fr 1.3fr 1.1fr 0.9fr;
  align-items: center;
  gap: 12px;
  padding: 16px 8px;
}

.pools-head {
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.pools-head>div {
  display: flex;
  align-items: center;
  gap: 3px;
}

.pools-head i {
  font-size: 15px;
}

.pools-body .pools-row {
  border-bottom: 1px solid var(--border);
}

.pools-body .pools-row:last-child {
  border-bottom: none;
}

.pools-body .pools-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.col-market {
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-name {
  font-size: 14.5px;
  font-weight: 700;
}

.market-fee {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 1px;
}

.market-type-badge {
  font-size: 13.5px;
  color: var(--text-2);
  font-weight: 500;
}

.col-apy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

.apy-value {
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.apy-value .ri-question-line {
  font-size: 13px;
  color: var(--text-3);
}

.apy-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-3);
  border-radius: var(--radius-pill);
  padding: 2px 8px 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
}

.apy-tag i {
  color: var(--green);
  font-size: 12px;
}

.col-vol {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
}

.btn-deposit {
  width: 100%;
  padding: 10px 0;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-1);
  font-weight: 600;
  font-size: 13px;
}

.btn-deposit:hover {
  background: var(--surface-2);
  border-color: var(--green-dim);
}

/* Token coin placeholders */
.coin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #04231a;
  border: 2px solid var(--surface);
  flex-shrink: 0;
}

.coin-pair {
  display: inline-flex;
  position: relative;
  width: 44px;
  height: 30px;
  flex-shrink: 0;
}

.coin-pair .coin:first-child {
  position: absolute;
  left: 0;
  z-index: 2;
}

.coin-pair .coin:last-child {
  position: absolute;
  left: 16px;
  z-index: 1;
}

.coin-near {
  background: #ffffff;
  color: #000;
}

.coin-usdc {
  background: #2775ca;
  color: #fff;
}

.coin-usdt {
  background: #26a17b;
  color: #fff;
}

.coin-rhea {
  background: var(--green);
}

.coin-frax {
  background: #000000;
  color: #fff;
  border-color: var(--surface);
}

.coin-zec {
  background: var(--zec-orange);
  color: #241a00;
}

/* ==========================================================================
   POOLS — MOBILE CARDS
   ========================================================================== */
.pools-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pool-card {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.pool-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pool-card-head .col-market {
  gap: 10px;
}

.pool-card-fee {
  font-size: 12px;
  color: var(--text-2);
}

.pool-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-2);
  border-top: 1px solid var(--border);
}

.pool-card-row .value {
  color: var(--text-1);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pool-card .btn-deposit {
  margin-top: 12px;
}

.pools-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.page-arrow,
.page-number {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.page-number.active {
  background: var(--green);
  color: #04231a;
  border-color: var(--green);
}

/* ==========================================================================
   SWAP WIDGET
   ========================================================================== */
.swap-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.swap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.swap-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.swap-header-actions {
  display: flex;
  gap: 8px;
}

.swap-header-actions .icon-btn {
  width: 32px;
  height: 32px;
  font-size: 15px;
}

.swap-field {
  background: var(--surface-3);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
}

.swap-field:focus-within {
  border-color: var(--green-dim);
}

.swap-field-top {
  margin-bottom: 10px;
}

.swap-label {
  font-size: 13px;
  color: var(--text-2);
}

.swap-field-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.token-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 6px 12px 6px 6px;
  color: var(--text-1);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.token-select .coin {
  width: 24px;
  height: 24px;
  font-size: 10px;
  border: none;
}

.token-select i {
  font-size: 16px;
  color: var(--text-2);
}

.swap-amount {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-3);
  text-align: right;
}

.swap-field-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-2);
}

.swap-field-bottom .dim {
  color: var(--text-3);
}

.swap-direction-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  border: 4px solid var(--surface);
  color: var(--text-1);
  font-size: 15px;
  margin: -12px auto;
  position: relative;
  z-index: 2;
}

.swap-direction-btn:hover {
  background: var(--surface-2);
}

/* ==========================================================================
   DESKTOP FOOTER BAR
   ========================================================================== */
.app-footer {
  height: var(--footer-h);
  position: fixed;
  left: var(--sidebar-w);
  right: 0;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 30;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-social a {
  color: var(--text-2);
  font-size: 16px;
}

.footer-social a:hover {
  color: var(--text-1);
}

.footer-terms {
  font-size: 13px;
  color: var(--text-2);
  margin-right: auto;
  margin-left: 24px;
}

.footer-terms:hover {
  color: var(--text-1);
}

.footer-rpc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

/* ==========================================================================
   MOBILE NAV OVERLAY + PANEL
   ========================================================================== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
  z-index: 48;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s ease;
}

.mobile-nav-panel {
  display: none;
}

/* ==========================================================================
   MOBILE BOTTOM NAV (hidden on desktop)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
}

/* ==========================================================================
   RESPONSIVE — MOBILE (<= 900px)
   ========================================================================== */
@media (max-width: 900px) {

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .sidebar {
    display: none;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--mobile-topbar-h);
    padding: 0 16px;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 20;
    border-bottom: 1px solid var(--border);
  }

  .mobile-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .app-shell {
    margin-left: 0;
    padding-bottom: calc(var(--mobile-bottomnav-h) + 12px);
  }

  .topbar {
    display: none;
  }

  .main-content {
    padding: 14px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Swap widget appears ABOVE the hero on mobile */
  .content-right {
    order: -1;
    position: static;
  }

  .content-left {
    order: 0;
  }

  .hero-carousel {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  .hero-heading,
  .hero-subheading {
    font-size: 20px;
    max-width: 100%;
    padding-right: 90px;
  }

  .hero-coin {
    width: 58px;
    height: 58px;
    font-size: 30px;
    top: 20px;
    right: 18px;
  }

  .hero-coin-secondary {
    width: 42px;
    height: 42px;
    font-size: 22px;
    top: 16px;
    right: 84px;
  }

  .hero-coin-zec {
    width: 34px;
    height: 34px;
    font-size: 15px;
    top: 62px;
    right: 24px;
  }

  .hero-mini-cards {
    grid-template-columns: 1fr;
  }

  .pools-section {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .pools-tabs {
    margin-bottom: 14px;
  }

  .swap-widget {
    border-radius: var(--radius-md);
  }

  .app-footer {
    display: none;
  }

  /* Mobile slide-in nav */
  .mobile-nav-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 340px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    z-index: 49;
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: 16px;
    overflow-y: auto;
  }

  .mobile-nav-panel.open {
    transform: translateX(0);
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }

  .mobile-nav-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
  }

  .mnav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    color: var(--text-1);
    font-weight: 600;
    font-size: 14.5px;
  }

  .mnav-item i {
    font-size: 18px;
    color: var(--text-2);
  }

  .mnav-item:hover {
    background: var(--surface-2);
  }

  .mnav-group {
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .mnav-group-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-1);
    font-weight: 600;
    font-size: 14.5px;
  }

  .mnav-group-header i:first-child {
    font-size: 18px;
    color: var(--text-2);
  }

  .mnav-group-header .chevron {
    margin-left: auto;
    transition: transform .2s ease;
    color: var(--text-2);
  }

  .mnav-group.open .mnav-group-header .chevron {
    transform: rotate(180deg);
  }

  .mnav-group.open .mnav-group-header {
    background: var(--surface-2);
  }

  .mnav-group-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    padding-left: 10px;
  }

  .mnav-group.open .mnav-group-body {
    max-height: 300px;
  }

  .mnav-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 500;
  }

  .mnav-sub-item i {
    font-size: 16px;
  }

  .mnav-sub-item.active {
    color: var(--green);
  }

  .mnav-sub-item:hover {
    background: var(--surface-2);
    color: var(--text-1);
  }

  .mobile-nav-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 10px 6px 10px;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text-2);
  }

  .mobile-nav-footer a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-2);
  }

  .mobile-nav-footer a i {
    font-size: 12px;
  }

  .terms-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
  }

  .terms-status a {
    color: var(--text-2);
  }

  /* Mobile bottom nav */
  .mobile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--mobile-bottomnav-h);
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 50;
    padding: 0 6px;
  }

  .mbn-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 21px;
  }

  .mbn-item.active {
    color: var(--green);
  }

  .mbn-new {
    position: absolute;
    top: 2px;
    right: 0px;
    background: var(--green);
    color: #04231a;
    font-size: 7px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: var(--radius-pill);
  }
}

@media (max-width: 480px) {

  .hero-heading,
  .hero-subheading {
    font-size: 18px;
  }

  .pools-row {
    font-size: 13px;
  }
}