:root {
  --tether: #26a17b;
  --tether-bright: #41d6aa;
  --tether-ink: #071c17;
  --tether-panel: rgba(9, 35, 29, 0.82);
  --tether-line: rgba(91, 231, 187, 0.16);
}

body {
  color: #ecfff9;
  background:
    radial-gradient(circle at 74% 2%, rgba(38, 161, 123, 0.18), transparent 31rem),
    radial-gradient(circle at 18% 85%, rgba(65, 214, 170, 0.08), transparent 28rem),
    #04100d;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image: linear-gradient(var(--tether-line) 1px, transparent 1px), linear-gradient(90deg, var(--tether-line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.sidebar {
  width: 184px;
  min-width: 184px;
  flex: 0 0 184px;
  background: rgba(4, 18, 15, .94);
  border-right: 1px solid var(--tether-line);
  backdrop-filter: blur(22px);
}
.sidebar.compact { width: 184px; min-width: 184px; flex-basis: 184px; padding: 1rem .7rem; }
.sidebar.compact .logo-title,
.sidebar.compact .side-link-label { display: inline-flex; }
.sidebar.compact .side-link { justify-content: flex-start; padding-inline: .7rem; }
.sidebar.compact .side-create-btn {
  width: 100%; height: auto; margin: .55rem 0 0; padding: .62rem .8rem;
  border-radius: 12px; font-size: .9rem;
}
.sidebar.compact .side-create-btn::before { display: none; content: none; }
.sidebar-toggle { display: none; }

.logo-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 13px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 10px 28px rgba(38,161,123,.24);
}
.logo::before {
  content: none;
  display: none;
}

.logo-name { color: #fff; }
.logo-sep, .logo-tld { color: var(--tether-bright); }
.side-nav .side-link:not(.side-link-home):not(.side-link-profile):not(.side-link-support):not(.side-link-rwa):not(.side-link-bridge) { display: none; }
.side-nav .side-link-profile { display: none; }
.promo-strip { display: none; }
.pumpr-assistant-shell, [class*="airi-companion"], [data-assistant="airi"] { display: none !important; }

/* Tether Support board — intentionally overrides the inherited Pump.fun widget skin. */
.support-widget-overlay.open {
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(1, 10, 8, .72);
  backdrop-filter: blur(10px);
}
.support-widget-card.support-v2 {
  width: min(480px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 40px));
  border: 1px solid rgba(65, 214, 170, .22);
  border-radius: 20px;
  background: #07130f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .62), 0 0 0 1px rgba(38, 161, 123, .06) inset;
}
.support-widget-card.support-v2 #supportWidgetBody { padding: 14px; }
.support-widget-card.support-v2 .support-widget-close {
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-color: rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(3, 18, 14, .9);
  color: #dffff5;
}
.support-widget-card.support-v2 .support-home-hero {
  padding: 16px;
  border: 1px solid rgba(65, 214, 170, .22);
  border-radius: 14px;
  background: radial-gradient(circle at 88% 0%, rgba(65,214,170,.17), transparent 40%), linear-gradient(145deg, #0b2a21, #081713 70%);
  animation: none;
}
.support-home-brand { display: flex; align-items: center; gap: 10px; }
.support-home-brand > div:last-child { display: grid; gap: 1px; }
.support-home-brand strong { color: #f1fff9; font-size: 14px; }
.support-home-brand span { color: #77aa9a; font-size: 11px; }
.support-widget-card .support-home-logo {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  overflow: hidden;
}
.support-widget-card .support-home-logo img { width: 40px; height: 40px; border-radius: 12px; }
.support-home-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 36px;
  padding: 6px 9px;
  border: 1px solid rgba(65,214,170,.18);
  border-radius: 999px;
  color: #a9dbc9;
  background: rgba(38,161,123,.08);
  font-size: 10px;
  font-weight: 700;
}
.support-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #50e3b2; box-shadow: 0 0 10px #50e3b2; }
.support-home-eyebrow { display: block; margin-top: 22px; color: #41d6aa; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.support-widget-card .support-home-hero h3 { margin-top: 7px; font-size: 28px; line-height: 1.05; letter-spacing: -.035em; }
.support-widget-card .support-home-hero p { max-width: 350px; margin-top: 8px; color: #8fbaac; font-size: 13px; line-height: 1.45; font-weight: 500; }
.support-widget-card .support-send-card,
.support-widget-card .support-help-box { margin-top: 10px; border-color: rgba(65,214,170,.12); border-radius: 12px; background: #0a1713; }
.support-widget-card .support-help-quick-item { min-height: 40px; border-color: rgba(65,214,170,.12); background: #0c1c17; }
.support-widget-card .support-help-quick-item:hover { border-color: rgba(65,214,170,.4); background: #10271f; }
.support-widget-card.support-v2 .support-widget-nav { border-top-color: rgba(65,214,170,.12); background: #07130f; }
.support-widget-card.support-v2 .support-widget-nav button.active { color: #04140f; background: #41d6aa; }

.side-link.active, .side-link:hover,
.side-create-btn, .btn-primary {
  color: #032019;
  border-color: transparent;
  background: linear-gradient(135deg, #62e5bc, var(--tether));
  box-shadow: 0 10px 28px rgba(38, 161, 123, .2);
}

.topbar {
  border-bottom-color: var(--tether-line);
  background: rgba(4, 16, 13, .68);
  backdrop-filter: blur(18px);
}

input, textarea, select, .panel-card, .coin-card, .trend-card,
.create-form, .create-preview, .modal-card, details {
  border-color: var(--tether-line) !important;
  background-color: var(--tether-panel) !important;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--tether-bright) !important;
  box-shadow: 0 0 0 3px rgba(65, 214, 170, .12);
}

.top-community-section { display: none; }
.content-section:first-of-type { padding-top: 34px; }
.section-head h2 { letter-spacing: -.04em; }
.muted, small { color: #8cb6aa; }

.main-pane::before {
  content: var(--foal-banner-copy, "RELEASED FROM THE STABLE  \00B7  POWERED BY USDT  \00B7  BUILT TO RUN");
  display: block;
  margin: 24px 32px 0;
  color: var(--tether-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.create-chain-options { grid-template-columns: 1fr !important; }
.create-chain-option { min-height: 94px; border-color: var(--tether-line) !important; }
.create-chain-option.active { border-color: var(--tether-bright) !important; background: rgba(38, 161, 123, .14) !important; }
.create-pumpverse-options, .create-pumpfun-options, #launchStyleCard,
#pumpfunCreatorWalletWrap, .rh-sol-bridge-card { display: none !important; }

.create-form::before {
  content: "USDT ONLY";
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(65, 214, 170, .3);
  border-radius: 999px;
  color: var(--tether-bright);
  background: rgba(38, 161, 123, .1);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

@media (max-width: 760px) {
  .main-pane::before { margin: 18px 18px 0; font-size: 9px; }
  .sidebar, .sidebar.compact {
    width: 100%; min-width: 0; max-width: 100vw; height: auto; flex: none;
    padding: .55rem .72rem; border-right: 0; border-bottom: 1px solid var(--tether-line);
  }
  .sidebar.compact .logo-title { display: inline-flex; }
  .sidebar.compact .side-link { justify-content: center; padding: 0; }
}

/* RWA market board: a sober Tether terminal instead of the inherited neon skin. */
.rwa-pane { background: #06110e; color: #edfdf7; }
.rwa-pane::before { display: none; }
.rwa-topbar { border-bottom-color: rgba(65,214,170,.12); background: rgba(6,17,14,.88); }
.rwa-search { border-color: rgba(65,214,170,.16); background: #0a1d17; }
.rwa-search input { background: transparent !important; box-shadow: none !important; }
.rwa-live i { background: #41d6aa; box-shadow: 0 0 10px rgba(65,214,170,.6); }
.rwa-content { max-width: 1220px; }
.rwa-kicker { color: #41d6aa; }
.rwa-hero { min-height: 300px; }
.rwa-hero h1 { max-width: 780px; font-size: clamp(42px,5vw,68px); font-weight: 700; }
.rwa-hero h1 em { color: #41d6aa; }
.rwa-hero p { color: #87afa2; }
.rwa-orbit {
  width: 230px; height: 230px; padding: 28px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  border: 1px solid rgba(65,214,170,.2); border-radius: 28px;
  background: radial-gradient(circle at 80% 18%, rgba(65,214,170,.22), transparent 34%), linear-gradient(145deg,#0d2e24,#081813);
  box-shadow: 0 30px 70px rgba(0,0,0,.25);
}
.rwa-orbit::before, .rwa-orbit::after, .rwa-orbit i { display: none; }
.rwa-orbit small { color: #78a99a; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.rwa-orbit span { margin: 10px 0 5px; color: #fff; font-size: 48px; line-height: 1; letter-spacing: -.06em; }
.rwa-orbit strong { color: #41d6aa; font-size: 10px; letter-spacing: .12em; }
.rwa-stats, .rwa-board { border-color: rgba(65,214,170,.13); background: #0a1713; box-shadow: 0 20px 60px rgba(0,0,0,.12); }
.rwa-stats article { border-color: rgba(65,214,170,.1); }
.rwa-stats small, .rwa-table th { color: #688f83; }
.rwa-stats strong { color: #f2fff9; font-weight: 650; }
.rwa-stats span { color: #618278; }
.rwa-board-head, .rwa-table th, .rwa-table td { border-color: rgba(65,214,170,.09); }
.rwa-categories button { border-color: rgba(65,214,170,.14); background: #091712; color: #7fa69a; }
.rwa-categories button.active { border-color: rgba(65,214,170,.48); background: rgba(38,161,123,.15); color: #caffef; }
.rwa-tabs { border-color: rgba(65,214,170,.13); background: #07110e; }
.rwa-tabs button.active { background: rgba(38,161,123,.18); color: #bff8e5; }
.rwa-refresh { border-color: rgba(65,214,170,.14); color: #83aa9e; }
.rwa-table tbody tr:hover { background: rgba(38,161,123,.06); }
.rwa-up, .rwa-source a, .rwa-chart-asset small { color: #41d6aa; }
.rwa-chart-card { border-color: rgba(65,214,170,.18); background: #081612; }
.rwa-range button.active { color: #c9ffed; background: rgba(38,161,123,.16); }

/* foal.fun home — a digital stable, not a pump.fun clone. */
.foal-home {
  --foal-cream: #f2eadb;
  --foal-cream-muted: #b9ae9a;
  --foal-emerald: #21b987;
  --foal-mint: #7be3b5;
  --foal-rail: rgba(242, 234, 219, .13);
  background: radial-gradient(circle at 78% -8%, rgba(31,174,126,.11), transparent 30%), #050b09;
}
.foal-home .main-pane {
  background-image: linear-gradient(90deg, rgba(242,234,219,.025) 1px, transparent 1px), linear-gradient(rgba(242,234,219,.025) 1px, transparent 1px);
  background-size: 54px 54px;
}
.foal-home .main-pane::before { display: none; }
.foal-home .topbar {
  position: relative;
  z-index: 1200;
  overflow: visible;
  margin: 14px 22px 0;
  padding: 11px 14px;
  border: 1px solid rgba(123,227,181,.12);
  border-radius: 15px;
  background: rgba(5,23,18,.84);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.foal-home .top-actions,
.foal-home .wallet-hub-wrap {
  position: relative;
  z-index: 1210;
}

.foal-home .wallet-hub-trigger {
  border-color: rgba(123,227,181,.2);
  background: #0b1c17;
  color: var(--foal-cream);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.foal-home .wallet-hub-trigger:hover {
  border-color: rgba(123,227,181,.48);
  background: #10281f;
}

.foal-home .wallet-hub-trigger.connected .wallet-hub-dot {
  background: var(--foal-mint);
  box-shadow: 0 0 0 3px rgba(123,227,181,.18), 0 0 13px rgba(123,227,181,.4);
}

.foal-home .wallet-hub-menu {
  z-index: 5000;
  width: min(390px, calc(100vw - 24px));
  border: 1px solid rgba(123,227,181,.24);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0%, rgba(33,185,135,.13), transparent 38%),
    #071812;
  box-shadow: 0 28px 80px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: none;
  isolation: isolate;
}

.foal-home .wallet-hub-label {
  color: var(--foal-mint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.foal-home .wallet-hub-menu h3 {
  color: var(--foal-cream);
  font-size: 29px;
}

.foal-home .wallet-hub-sub,
.foal-home .wallet-hub-copy span {
  color: #78998e;
}

.foal-home .wallet-hub-sub span,
.foal-home .wallet-hub-copy strong {
  color: #eaf8f1;
}

.foal-home .wallet-hub-address {
  border-color: rgba(123,227,181,.2);
  background: #0a241b;
  color: #aeeed2;
}

.foal-home .wallet-hub-card {
  min-height: 82px;
  border-color: rgba(242,234,219,.1);
  border-radius: 12px;
  background: #0b2119;
  color: #eaf8f1;
}

.foal-home .wallet-hub-card:hover {
  border-color: rgba(123,227,181,.42);
  background: #102c21;
  box-shadow: 0 12px 26px rgba(0,0,0,.3);
}

.foal-home .wallet-hub-icon {
  border-color: rgba(123,227,181,.18);
  background: rgba(123,227,181,.08);
  color: var(--foal-mint);
}

.foal-home .profile-menu {
  z-index: 5000;
  border-color: rgba(123,227,181,.22);
  background: #071812;
  box-shadow: 0 24px 70px rgba(0,0,0,.68);
}
.foal-stable-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(270px,.55fr);
  gap: 18px;
  max-width: 1120px;
  margin: 18px auto 10px;
  padding: 23px 25px;
  border: 1px solid rgba(123,227,181,.16);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(13,53,41,.96), rgba(6,24,19,.94) 62%);
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
}
.foal-stable-hero::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(242,234,219,.08);
  border-radius: 17px;
  pointer-events: none;
}
.foal-stable-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -130px;
  top: -180px;
  border: 50px solid rgba(123,227,181,.055);
  border-radius: 50%;
  pointer-events: none;
}
.foal-hero-copy { position: relative; z-index: 1; padding: 8px 6px; }
.foal-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--foal-mint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.foal-hero-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--foal-mint); box-shadow: 0 0 14px rgba(123,227,181,.8); }
.foal-stable-hero h1 { max-width: 680px; margin: 10px 0 9px; color: var(--foal-cream); font-size: clamp(34px,3.4vw,49px); line-height: .98; letter-spacing: -.05em; }
.foal-stable-hero h1 em { color: var(--foal-mint); font-style: normal; }
.foal-stable-hero p { max-width: 620px; margin: 0; color: #9ab9ad; font-size: 12px; line-height: 1.55; }
.foal-hero-actions { display: flex; gap: 9px; margin-top: 16px; }
.foal-hero-primary, .foal-hero-secondary {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}
.foal-hero-primary { color: #03150f; background: var(--foal-mint); }
.foal-hero-primary span { font-size: 17px; }
.foal-hero-secondary { border: 1px solid var(--foal-rail); color: var(--foal-cream); background: rgba(255,255,255,.03); }
.foal-starting-gate {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  align-content: center;
  padding: 13px;
  border: 1px solid rgba(242,234,219,.12);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(242,234,219,.075), rgba(255,255,255,.025));
}
.foal-starting-gate > img { width: 50px; height: 50px; border: 2px solid rgba(242,234,219,.9); border-radius: 14px; object-fit: cover; box-shadow: 0 10px 22px rgba(0,0,0,.25); }
.foal-gate-copy { display: flex; flex-direction: column; justify-content: center; }
.foal-gate-copy small { color: var(--foal-mint); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.foal-gate-copy strong { margin-top: 3px; color: var(--foal-cream); font-size: 14px; letter-spacing: -.025em; }
.foal-gate-copy span { margin-top: 4px; color: #7f9f94; font-size: 10px; }
.foal-starting-gate dl { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3,1fr); margin: 4px 0 0; border: 1px solid rgba(242,234,219,.09); border-radius: 10px; overflow: hidden; }
.foal-starting-gate dl div { padding: 8px; border-right: 1px solid rgba(242,234,219,.09); }
.foal-starting-gate dl div:last-child { border-right: 0; }
.foal-starting-gate dt { color: #6e8f84; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.foal-starting-gate dd { margin: 3px 0 0; color: var(--foal-cream); font-size: 12px; font-weight: 800; }
.foal-home .content-section { max-width: 1120px; margin-inline: auto; padding-inline: 0; }
.foal-home .content-section:first-of-type { padding-top: 14px; }
.foal-home .section-head { margin-bottom: 12px; }
.foal-home .section-head h2 { color: var(--foal-cream); font-size: 19px; }
.foal-home .section-head h2::before { content: ""; display: inline-block; width: 18px; height: 2px; margin: 0 9px 5px 0; background: var(--foal-mint); }
.foal-home .tag-row { padding: 7px; border: 1px solid rgba(242,234,219,.1); border-radius: 14px; background: rgba(242,234,219,.035); }
.foal-home .tag-row .tag { border-radius: 9px; }
.foal-home .tag-row .tag.active { color: #061810; background: var(--foal-mint); box-shadow: none; }
.foal-home .coin-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.foal-home .coin-card {
  border: 1px solid rgba(242,234,219,.11) !important;
  border-radius: 17px;
  overflow: hidden;
  background: linear-gradient(180deg,#0b211a,#071510) !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.18);
}
.foal-home .coin-card:hover { border-color: rgba(123,227,181,.44) !important; transform: translateY(-3px); box-shadow: 0 22px 54px rgba(0,0,0,.28); }
.foal-home .coin-card h3, .foal-home .coin-card strong { color: var(--foal-cream); }
.launch-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 28px 0 8px;
}
.launch-pagination[hidden] { display: none; }
.launch-page-btn,
.launch-page-direction {
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(242,234,219,.1);
  border-radius: 9px;
  color: #91a79f;
  background: rgba(242,234,219,.035);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.launch-page-btn:hover,
.launch-page-direction:hover:not(:disabled) {
  color: var(--foal-cream);
  border-color: rgba(123,227,181,.35);
  background: rgba(123,227,181,.08);
}
.launch-page-btn.active {
  color: #061810;
  border-color: var(--foal-mint);
  background: var(--foal-mint);
  font-weight: 850;
}
.launch-page-direction { min-width: 82px; border-color: transparent; background: transparent; }
.launch-page-direction:disabled { opacity: .35; cursor: default; }
.launch-page-ellipsis { padding: 0 4px; color: #71877f; }
.foal-home .trend-row { gap: 12px; }
.foal-home .trend-card { border-radius: 17px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.foal-home .sidebar { background: linear-gradient(180deg,rgba(8,38,29,.98),rgba(4,20,15,.99)); }
.foal-home .sidebar::after {
  content: "THE FOAL STABLE";
  margin-top: auto;
  padding: 14px 4px 2px;
  border-top: 1px solid rgba(242,234,219,.08);
  color: rgba(242,234,219,.35);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .18em;
  text-align: center;
}
@media (max-width: 1100px) {
  .foal-stable-hero { grid-template-columns: 1fr; margin-inline: 20px; }
  .foal-home .content-section { padding-inline: 20px; }
  .foal-home .coin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .foal-home .topbar { margin: 10px 10px 0; }
  .foal-stable-hero { margin: 14px 10px 8px; padding: 22px; border-radius: 18px; }
  .foal-stable-hero h1 { font-size: 39px; }
  .foal-hero-actions { flex-direction: column; }
  .foal-home .content-section { padding-inline: 10px; }
  .foal-home .coin-grid { grid-template-columns: 1fr; }
  .launch-pagination { gap: 4px; }
  .launch-page-direction { min-width: 36px; width: 36px; overflow: hidden; white-space: nowrap; color: transparent; }
  .launch-page-direction span { color: #91a79f; }
}

.chart-interval-menu { position: relative; z-index: 30; }
.chart-interval-menu summary {
  display: inline-flex;
  min-width: 112px;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 11px;
  border: 1px solid rgba(123, 227, 181, .17);
  border-radius: 8px;
  color: var(--foal-cream);
  background: #101b17;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.chart-interval-menu summary::-webkit-details-marker { display: none; }
.chart-interval-menu[open] summary {
  color: var(--foal-mint);
  border-color: rgba(123, 227, 181, .42);
}
.chart-interval-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 190px;
  max-height: min(520px, 70vh);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid rgba(123, 227, 181, .18);
  border-radius: 11px;
  background: #101713;
  box-shadow: 0 22px 65px rgba(0, 0, 0, .65);
}
.chart-interval-popover section + section { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.055); }
.chart-interval-popover h4 {
  margin: 0;
  padding: 7px 8px 4px;
  color: #71867f;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.chart-interval-popover button {
  display: block;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  color: #d9e3df;
  background: transparent;
  font: 600 11px Inter, sans-serif;
  text-align: left;
  cursor: pointer;
}
.chart-interval-popover button:hover { color: #fff; background: rgba(123, 227, 181, .08); }
.chart-interval-popover button.active { color: #071a12; background: var(--foal-mint); }

/* Swap / Bridge */
.foal-bridge { color: var(--foal-cream); background: #050b09; }
.foal-bridge .sidebar { background: linear-gradient(180deg, #08251c, #04140f); }
.bridge-main {
  min-width: 0;
  min-height: 100vh;
  padding: 44px clamp(20px, 4vw, 64px) 70px;
  background:
    radial-gradient(circle at 88% 4%, rgba(55, 211, 157, .13), transparent 28rem),
    linear-gradient(rgba(123,227,181,.025) 1px, transparent 1px),
    linear-gradient(90deg,rgba(123,227,181,.025) 1px,transparent 1px),
    #050b09;
  background-size: auto, 54px 54px, 54px 54px, auto;
}
.bridge-topbar { max-width: 1120px; margin: 0 auto 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.bridge-eyebrow { color: var(--foal-mint); font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.bridge-topbar h1 { margin: 10px 0 7px; color: var(--foal-cream); font-size: clamp(36px, 5vw, 64px); letter-spacing: -.055em; line-height: .98; }
.bridge-topbar p { margin: 0; color: #89a69c; font-size: 14px; }
.bridge-network-pill { flex: 0 0 auto; padding: 9px 12px; border: 1px solid rgba(123,227,181,.22); border-radius: 999px; color: var(--foal-mint); background: rgba(7,35,26,.85); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.bridge-layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(280px, 360px); gap: 18px; max-width: 1120px; margin: auto; align-items: start; }
.bridge-card { border: 1px solid rgba(123,227,181,.16); border-radius: 20px; background: linear-gradient(145deg, rgba(9,42,32,.97), rgba(5,22,17,.99)); box-shadow: 0 26px 80px rgba(0,0,0,.3); }
.bridge-form-card { padding: 25px; }
.bridge-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.bridge-card-head small,.bridge-info-card > small,.bridge-safety-card > small { color: var(--foal-mint); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.bridge-card-head h2 { margin: 4px 0 0; font-size: 25px; }
.bridge-powered { color: #718f84; font-size: 9px; }
.bridge-label { display: block; margin: 17px 0 8px; color: #91aa9f; font-size: 10px; font-weight: 750; }
.bridge-source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bridge-source { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; color: #bdd0c8; background: rgba(255,255,255,.025); text-align: left; cursor: pointer; }
.bridge-source.active { color: var(--foal-cream); border-color: rgba(123,227,181,.5); background: rgba(123,227,181,.09); box-shadow: inset 0 0 0 1px rgba(123,227,181,.07); }
.bridge-source strong,.bridge-source small { display: block; }
.bridge-source strong { font-size: 12px; }.bridge-source small { margin-top: 3px; color: #78978b; font-size: 9px; }
.bridge-chain-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #fff; font-weight: 850; }
.bridge-chain-icon.eth { background: #627eea; }.bridge-chain-icon.sol { color: #081711; background: linear-gradient(135deg,#9945ff,#14f195); }.bridge-chain-icon.stable { color: #062219; background: var(--foal-mint); }
.bridge-amount-box { display: flex; min-height: 66px; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid rgba(123,227,181,.16); border-radius: 14px; background: #041510; }
.bridge-amount-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--foal-cream); background: transparent; font: 750 28px Inter; }
.bridge-amount-box span { padding: 8px 10px; border-radius: 9px; color: var(--foal-mint); background: rgba(123,227,181,.1); font-size: 11px; font-weight: 800; }
.bridge-route-line { display: flex; align-items: center; gap: 10px; margin: 15px 0; color: #739187; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.bridge-route-line span { height: 1px; flex: 1; background: rgba(123,227,181,.1); }
.bridge-destination { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 15px; border: 1px solid rgba(123,227,181,.22); border-radius: 14px; background: rgba(123,227,181,.055); }
.bridge-destination small,.bridge-destination strong,.bridge-destination p { display: block; }.bridge-destination small { color: #759287; font-size: 8px; font-weight: 800; letter-spacing: .11em; }.bridge-destination strong { margin-top: 3px; font-size: 13px; }.bridge-destination p { margin: 4px 0 0; color: #78978b; font-size: 9px; }
.bridge-check { color: var(--foal-mint); font-weight: 900; }
.bridge-summary { margin: 18px 0; padding: 13px 15px; border: 1px solid rgba(255,255,255,.065); border-radius: 12px; background: rgba(0,0,0,.15); }
.bridge-summary div { display: flex; justify-content: space-between; gap: 15px; padding: 5px 0; font-size: 10px; }.bridge-summary span { color: #769388; }.bridge-summary b { color: #dce7e2; }
.bridge-action { width: 100%; min-height: 48px; border: 0; border-radius: 12px; color: #041710; background: linear-gradient(90deg,var(--foal-mint),#39bd91); font: 800 12px Inter; cursor: pointer; box-shadow: 0 14px 32px rgba(55,211,157,.12); }
.bridge-action:hover { filter: brightness(1.06); transform: translateY(-1px); }
.foal-bridge .bridge-action {
  position: relative;
  margin-top: 14px;
  min-height: 52px;
  border: 1px solid rgba(173,255,219,.42);
  border-radius: 13px;
  background: linear-gradient(135deg, #80ebbd 0%, #50d5a4 52%, #2eb486 100%);
  color: #032219;
  font-size: 13px;
  letter-spacing: .01em;
  box-shadow: 0 12px 30px rgba(29,176,126,.2), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.foal-bridge .bridge-action:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(29,176,126,.28), inset 0 1px 0 rgba(255,255,255,.3);
}
.foal-bridge .bridge-action:disabled {
  opacity: 1;
  cursor: wait;
  border-color: rgba(95,225,175,.2);
  background: linear-gradient(135deg, rgba(25,89,68,.95), rgba(15,62,48,.95));
  color: #9bc9b7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.foal-bridge .bridge-action[data-state="ready"]::after {
  content: "SECURE ROUTE";
  margin-left: 10px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(3,34,25,.12);
  font-size: 8px;
  letter-spacing: .1em;
}
.foal-bridge .bridge-progress {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(95,225,175,.2);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(7,47,35,.92), rgba(3,27,20,.96));
}
.foal-bridge .bridge-progress-head,
.foal-bridge .bridge-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.foal-bridge .bridge-progress-head > div { display: grid; gap: 3px; }
.foal-bridge .bridge-progress-head small { color: #70b99d; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.foal-bridge .bridge-progress-head strong { color: #f4eee2; font-size: 14px; }
.foal-bridge .bridge-progress-head > b { color: #79e5b8; font-size: 15px; }
.foal-bridge .bridge-progress-track {
  height: 7px;
  margin: 13px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0,0,0,.32);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.foal-bridge .bridge-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #48cca0, #83edc0);
  box-shadow: 0 0 16px rgba(95,225,175,.38);
  transition: width .35s ease;
}
.foal-bridge .bridge-progress-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.foal-bridge .bridge-progress-steps span {
  color: #658f80;
  font-size: 9px;
  font-weight: 750;
  text-align: center;
}
.foal-bridge .bridge-progress-steps span.done { color: #77dfb5; }
.foal-bridge .bridge-progress-steps span.active { color: #f4eee2; }
.foal-bridge .bridge-progress-meta {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid rgba(95,225,175,.1);
  color: #87ad9e;
  font-size: 10px;
}
.foal-bridge .bridge-progress-meta a { color: #76dfb4; font-weight: 800; white-space: nowrap; }
@media (max-width: 640px) {
  .foal-bridge .bridge-progress-meta { align-items: flex-start; flex-direction: column; }
  .foal-bridge .bridge-progress-steps span { font-size: 8px; }
}
.bridge-notice { margin: 10px 0 0; color: #6f8d82; font-size: 9px; text-align: center; }
.bridge-info-stack { display: grid; gap: 18px; }
.bridge-info-card,.bridge-safety-card { padding: 22px; }
.bridge-info-card ol { margin: 19px 0 0; padding: 0; list-style: none; counter-reset: rails; }
.bridge-info-card li { position: relative; padding: 0 0 20px 40px; counter-increment: rails; }
.bridge-info-card li::before { content: counter(rails); position: absolute; left: 0; top: -2px; display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(123,227,181,.23); border-radius: 8px; color: var(--foal-mint); font-size: 9px; font-weight: 800; }
.bridge-info-card li:not(:last-child)::after { content:""; position:absolute; left:12px; top:27px; width:1px; height:17px; background:rgba(123,227,181,.14); }
.bridge-info-card li b,.bridge-info-card li span { display:block; }.bridge-info-card li b { font-size: 11px; }.bridge-info-card li span { margin-top: 4px; color:#79968b; font-size:9px; line-height:1.5; }
.bridge-safety-card h3 { margin: 12px 0 8px; font-size: 18px; line-height: 1.2; }.bridge-safety-card p { color:#7f9c91; font-size:10px; line-height:1.65; }.bridge-safety-card a { display:inline-block; margin-top:10px; color:var(--foal-mint); font-size:10px; font-weight:750; }
@media (max-width: 900px) { .bridge-layout { grid-template-columns: 1fr; }.bridge-info-stack { grid-template-columns: 1fr 1fr; } }
@media (max-width: 650px) { .bridge-main { padding: 24px 12px 50px; }.bridge-topbar { align-items:flex-start; flex-direction:column; }.bridge-source-grid,.bridge-info-stack { grid-template-columns:1fr; }.bridge-form-card { padding:17px; }.bridge-powered { display:none; } }

/* Foal swap desk */
.liquidity-mode-tabs {
  width: min(580px, calc(100% - 24px)); margin: 0 auto 18px; padding: 5px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px;
  border: 1px solid rgba(111,226,180,.18); border-radius: 16px; background: #07130f;
}
.liquidity-mode-tabs button {
  min-height: 43px; border: 0; border-radius: 11px; color: #8ba79c; background: transparent;
  font: 800 14px/1 Inter,sans-serif; cursor: pointer;
}
.liquidity-mode-tabs button.active { color: #06140f; background: linear-gradient(90deg,#79e5b2,#42c99f); box-shadow: 0 8px 24px rgba(55,206,153,.15); }
.foal-swap-stage {
  width: min(980px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0,590px) minmax(260px,330px);
  gap: 18px; align-items: start;
}
.foal-swap-card,.swap-market-rail {
  border: 1px solid rgba(108,225,179,.2); border-radius: 24px;
  background: linear-gradient(150deg,rgba(8,42,32,.98),rgba(4,18,14,.99)); box-shadow: 0 28px 90px rgba(0,0,0,.36);
}
.foal-swap-card { padding: 18px; }
.foal-swap-head,.swap-market-head { display:flex; align-items:center; justify-content:space-between; margin: 2px 3px 14px; }
.foal-swap-head small,.swap-market-head small { color:#70dbaf; font-size:9px; font-weight:900; letter-spacing:.13em; }
.foal-swap-head h2,.swap-market-head h3 { margin:4px 0 0; color:#f6f0e5; }
.foal-swap-head h2 { font-size:25px; }.swap-market-head h3{font-size:17px}
.swap-icon-btn { width:38px;height:38px;border:1px solid rgba(115,224,181,.2);border-radius:12px;background:#0b211a;color:#78deb3;font-size:19px;cursor:pointer}
.swap-asset-panel { padding:17px; border:1px solid rgba(115,224,181,.15);border-radius:17px;background:#0b1d18; }
.swap-asset-panel.receive { background:#06120f; }
.swap-panel-label,.swap-value-row { display:flex;align-items:center;justify-content:space-between;color:#83ad9e;font-size:11px;font-weight:700 }
.swap-panel-label button,.swap-value-row button { border:0;background:transparent;color:#75deb2;font:800 11px Inter;cursor:pointer }
.swap-amount-row {display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;margin:15px 0 11px}
.swap-amount-row input,.swap-amount-row output { min-width:0;text-align:right;border:0;background:transparent;color:#f7f1e6;font:800 39px/1 Inter;outline:none }
.swap-token-button {display:flex;align-items:center;gap:9px;min-height:46px;padding:7px 11px;border:1px solid rgba(120,226,184,.16);border-radius:14px;background:#142a23;color:#f6f0e6;font:800 14px Inter;cursor:pointer}
.swap-token-button img,.swap-token-avatar {width:28px;height:28px;border-radius:50%;object-fit:cover;background:#14372c}
.swap-token-button small {display:block;color:#76b99f;font-size:8px;margin-top:2px;text-align:left}.swap-token-button .chev{color:#78dab2}
.swap-flip { position:relative;z-index:2;display:block;width:40px;height:40px;margin:-9px auto;border:5px solid #08231a;border-radius:13px;background:#123a2d;color:#6fe0ae;font-size:20px;cursor:pointer }
.swap-details {margin:14px 2px 12px;padding:12px 14px;border:1px solid rgba(112,223,180,.12);border-radius:14px;background:#061711}
.swap-details div{display:flex;justify-content:space-between;padding:5px 0;color:#73998b;font-size:10px}.swap-details b{color:#d9e9e1}
.swap-action {width:100%;min-height:50px;border:0;border-radius:14px;background:linear-gradient(90deg,#79e6b3,#3ac59b);color:#06130f;font:900 14px Inter;cursor:pointer}
.swap-action:disabled{opacity:.45;cursor:not-allowed}.swap-status{margin:10px 4px 0;color:#79a494;font-size:10px;text-align:center}
.swap-status.error{color:#ff7883}
.swap-market-rail{padding:18px}.swap-market-head>span{padding:5px 9px;border-radius:999px;background:#123228;color:#75dfb2;font-size:9px;font-weight:800}
.swap-owned-list{display:grid;gap:8px}.swap-owned-list>p{color:#75978b;font-size:11px}
.swap-owned-row{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid rgba(109,222,177,.12);border-radius:13px;background:#081a15}
.swap-owned-row>div{min-width:0}.swap-owned-row b,.swap-owned-row small{display:block}.swap-owned-row b{color:#f5eee4;font-size:12px}.swap-owned-row small{color:#789d90;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.swap-owned-row>span{margin-left:auto;color:#79dfb4;font-size:11px;font-weight:800}
.swap-market-note{display:grid;gap:7px;margin-top:15px;padding:15px;border-radius:15px;background:linear-gradient(135deg,#11392c,#09241b);color:#88aa9d;font-size:10px}.swap-market-note b{color:#f3eee4;font-size:14px}.swap-market-note button{justify-self:start;border:0;border-radius:9px;padding:8px 11px;background:#76dfb2;color:#06130f;font-weight:850;cursor:pointer}
.swap-token-overlay{position:fixed;inset:0;z-index:10020;display:none;place-items:center;padding:18px;background:rgba(1,7,5,.78);backdrop-filter:blur(9px)}
.swap-token-overlay.open{display:grid}.swap-token-modal{width:min(510px,100%);max-height:min(720px,90vh);display:flex;flex-direction:column;padding:18px;border:1px solid rgba(119,228,184,.24);border-radius:21px;background:#09130f;box-shadow:0 35px 120px #000}
.swap-token-modal header{display:flex;align-items:center;justify-content:space-between}.swap-token-modal header small{color:#6fdaae;font-size:9px;font-weight:900;letter-spacing:.12em}.swap-token-modal h2{margin:4px 0 0;color:#f5efe5;font-size:20px}.swap-token-modal header button{border:0;background:transparent;color:#9ab3aa;font-size:25px;cursor:pointer}
.swap-token-search{display:flex;align-items:center;gap:9px;margin:16px 0 12px;padding:0 13px;border:1px solid rgba(115,225,181,.18);border-radius:13px;background:#102019}.swap-token-search input{width:100%;height:45px;border:0;outline:0;background:transparent;color:#f1eee6}
.swap-token-chips{display:flex;gap:7px;overflow:auto;padding-bottom:11px}.swap-token-chips button{display:flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid rgba(116,226,182,.16);border-radius:999px;background:#13271f;color:#d7e9e1;font-size:10px;white-space:nowrap}
.swap-token-list-head{display:flex;justify-content:space-between;padding:10px 7px 7px;border-top:1px solid rgba(114,222,179,.11);color:#638679;font-size:9px;text-transform:uppercase;letter-spacing:.08em}
.swap-token-list{overflow:auto;min-height:170px}.swap-token-row{width:100%;display:flex;align-items:center;gap:11px;padding:11px 8px;border:0;border-radius:12px;background:transparent;color:#eff1e9;text-align:left;cursor:pointer}.swap-token-row:hover{background:#11251e}.swap-token-row>div{min-width:0}.swap-token-row b,.swap-token-row small{display:block}.swap-token-row small{color:#789a8e;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.swap-token-row>span{margin-left:auto;text-align:right;color:#dfeae5;font-weight:800;font-size:11px}.swap-token-row>span small{color:#68b494}
.swap-token-footnote{margin:10px 4px 0;color:#67877c;font-size:9px}
@media(max-width:850px){.foal-swap-stage{grid-template-columns:1fr}.swap-market-rail{order:2}}
@media(max-width:520px){.swap-amount-row input,.swap-amount-row output{font-size:29px}.foal-swap-card{padding:12px}.bridge-topbar h1{font-size:38px}}

/* foal.fun profile — a focused Stable/USDT account surface */
.foal-profile {
  color: var(--foal-cream);
  background:
    radial-gradient(circle at 80% 8%, rgba(48, 188, 139, .09), transparent 26rem),
    #050b09;
}
.foal-profile .main-pane {
  min-width: 0;
  background-image:
    linear-gradient(rgba(123, 227, 181, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 227, 181, .025) 1px, transparent 1px);
  background-size: 52px 52px;
}
.foal-profile .topbar {
  margin: 18px 24px 0;
  border: 1px solid rgba(123, 227, 181, .15);
  border-radius: 16px;
  background: rgba(5, 25, 19, .98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}
.foal-profile .content-section {
  width: auto;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}
.foal-profile .panel-card,
.foal-profile .profile-created-pane,
.foal-profile .profile-stat-item {
  border-color: rgba(123, 227, 181, .14) !important;
  background: linear-gradient(145deg, rgba(8, 41, 31, .96), rgba(5, 22, 17, .98)) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}
.foal-profile .profile-layout-grid { border-radius: 18px; overflow: hidden; }
.foal-profile .profile-hero-avatar,
.foal-profile .profile-avatar {
  border-color: rgba(242, 234, 219, .72);
  background-color: #0b3024;
}
.foal-profile .profile-tabs {
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(123, 227, 181, .12);
  border-radius: 13px;
  background: rgba(5, 25, 19, .94);
  overflow-x: auto;
}
.foal-profile .profile-tab { border-radius: 9px; white-space: nowrap; }
.foal-profile .profile-tab.active {
  color: #052016;
  border-color: transparent;
  background: var(--foal-mint);
}
.foal-profile .modal-overlay {
  z-index: 6000;
  padding: 20px;
  background: rgba(1, 9, 7, .84);
  backdrop-filter: blur(12px);
}
.foal-profile .modal-card {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid rgba(123, 227, 181, .24);
  border-radius: 20px;
  background: linear-gradient(155deg, #0b3024, #061812 70%) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65);
}
.foal-profile .edit-profile-head {
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(123, 227, 181, .12);
}
.foal-profile .edit-profile-card > p { color: #92b2a7; }
.foal-profile .edit-profile-card label { color: var(--foal-cream); }
.foal-profile .edit-profile-card input,
.foal-profile .edit-profile-card textarea {
  color: var(--foal-cream);
  border-color: rgba(123, 227, 181, .22);
  background: rgba(2, 17, 12, .9);
}
.foal-profile .edit-profile-card input:focus,
.foal-profile .edit-profile-card textarea:focus {
  border-color: var(--foal-mint);
  box-shadow: 0 0 0 3px rgba(123, 227, 181, .1);
}
.foal-profile .edit-avatar-trigger {
  border-color: rgba(123, 227, 181, .28);
  background: rgba(4, 24, 17, .8);
}
.foal-profile .profile-menu,
.foal-profile .wallet-hub-menu {
  z-index: 5000;
  border-color: rgba(123, 227, 181, .18);
  background: #071c15 !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .62);
}
.foal-profile .alert:empty { display: none; }

body.foal-bridge .bridge-header-actions,
body.foal-bridge .bridge-wallet-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.foal-bridge .bridge-shared-topbar {
  margin: 14px 22px 0;
  border: 1px solid rgba(95,225,175,.14);
  border-radius: 16px;
  background: rgba(3,25,18,.92);
}
body.foal-bridge .bridge-shared-topbar .search-wrap { max-width: 520px; }
body.foal-bridge .bridge-shared-topbar .wallet-hub-menu,
body.foal-bridge .bridge-shared-topbar .profile-menu { z-index: 5000; }

/* Dense token terminal with a full-height professional chart workspace. */
body.foal-token .main-pane {
  min-width: 0;
  padding: 8px 10px 28px;
}
body.foal-token .main-pane::before {
  margin: 10px 8px 8px;
  font-size: 9px;
}
body.foal-token .topbar {
  position: relative;
  z-index: 7000;
  overflow: visible;
  margin-bottom: 8px;
}
body.foal-token .top-actions,
body.foal-token .wallet-hub-wrap {
  position: relative;
  z-index: 7010;
}
body.foal-token .profile-menu,
body.foal-token .wallet-hub-menu {
  z-index: 7020;
}
body.foal-token .tokenpf-layout {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 8px;
}
body.foal-token .tokenpf-main,
body.foal-token .tokenpf-side { gap: 8px; }
body.foal-token .tokenpf-header-card {
  min-height: 62px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #081a15 !important;
}
body.foal-token .tokenpf-token-img { width: 48px; height: 48px; }
body.foal-token .tokenpf-head-copy h1 { font-size: 1.45rem; }
body.foal-token .tokenpf-head-copy p { font-size: .9rem; }
body.foal-token .tokenpf-chart-card {
  gap: 0;
  padding: 0;
  overflow: visible;
  border-radius: 8px;
  background: #0b1322 !important;
  border-color: rgba(116, 138, 170, .2);
}
body.foal-token .tokenpf-mcap-head {
  min-height: 66px;
  padding: 9px 12px;
  background: #0c1116;
  border-bottom: 1px solid rgba(116, 138, 170, .12);
}
body.foal-token .tokenpf-mcap-head h2 {
  margin-top: 0;
  font-size: 1.75rem;
}
body.foal-token .tokenpf-chart-topline {
  min-height: 42px;
  padding: 4px 8px;
  flex-wrap: nowrap;
  background: #0a1220;
  border-bottom: 1px solid rgba(116, 138, 170, .12);
}
body.foal-token .tokenpf-chart-topline .toolbar-group { flex-wrap: nowrap; }
body.foal-token .toolbar-group .tag {
  color: #aebbd0;
  white-space: nowrap;
}
body.foal-token .toolbar-group .tag.active { color: #6fe7bd; }
body.foal-token .chart-interval-menu summary {
  min-width: 76px;
  border: 0;
  color: #b8c5d8;
  background: transparent;
}
body.foal-token .tokenpf-chart-advanced { margin: 6px 8px; }
body.foal-token .tokenpf-ohlc {
  min-height: 34px;
  padding: 5px 10px;
  gap: 8px;
  color: #97a8bf;
  background: #0b1322;
  border-top: 0;
  border-bottom-color: rgba(116, 138, 170, .12);
}
body.foal-token .tokenpf-chart-shell {
  grid-template-columns: 42px minmax(0, 1fr);
  height: clamp(360px, 48vh, 520px);
  min-height: 360px;
  border-top: 0;
}
body.foal-token .tokenpf-tools {
  padding-top: 8px;
  gap: 7px;
  background: #08111e;
  border-right-color: rgba(116, 138, 170, .14);
}
body.foal-token .tokenpf-tools button {
  width: 30px;
  height: 30px;
  color: #9bacbf;
  border-radius: 5px;
}
body.foal-token .tokenpf-chart-wrap,
body.foal-token .tokenpf-chart-canvas {
  height: 100%;
  min-height: 360px;
  background: #0b1322;
}
body.foal-token .tokenpf-tv-credit {
  left: 12px;
  right: auto;
  bottom: 9px;
}
body.foal-token .tokenpf-chart-watermark {
  left: 12px;
  bottom: 26px;
  color: rgba(189, 201, 219, .42);
}
body.foal-token .tokenpf-side {
  position: sticky;
  top: 8px;
}
body.foal-token .tokenpf-side .panel-card { border-radius: 8px; }
@media (max-width: 1180px) {
  body.foal-token .tokenpf-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  body.foal-token .tokenpf-chart-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 920px) {
  body.foal-token .tokenpf-layout { grid-template-columns: 1fr; }
  body.foal-token .tokenpf-side { position: static; }
  body.foal-token .tokenpf-chart-shell,
  body.foal-token .tokenpf-chart-wrap,
  body.foal-token .tokenpf-chart-canvas {
    height: 420px;
    min-height: 420px;
  }
}
body.foal-bridge .bridge-wallet-button,
body.foal-bridge .bridge-wallet-actions button {
  border: 1px solid rgba(95,225,175,.28); border-radius: 10px; background: #57d7aa;
  color: #031c14; padding: 10px 14px; font-weight: 800; cursor: pointer;
}
body.foal-bridge .bridge-wallet-button.secondary,
body.foal-bridge .bridge-wallet-actions button { background: rgba(8,43,32,.9); color: #dff9ee; }
body.foal-bridge [hidden] { display: none !important; }
body.foal-bridge .bridge-wallet-label { color: #a8d8c6; font-size: 13px; }
body.foal-bridge .bridge-wallet-card {
  margin: 14px 0; padding: 16px; border: 1px solid rgba(95,225,175,.18);
  border-radius: 14px; background: rgba(2,25,18,.56);
}
body.foal-bridge .bridge-wallet-card-head,
body.foal-bridge .bridge-wallet-balance { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
body.foal-bridge .bridge-wallet-card h3 { margin: 4px 0 0; }
body.foal-bridge .bridge-wallet-card p { color: #8ebbaa; font-size: 13px; }
body.foal-bridge .bridge-linked-pill {
  border: 1px solid rgba(255,255,255,.13); border-radius: 999px; padding: 6px 9px;
  color: #8ca69c; font-size: 11px; font-weight: 800; text-transform: uppercase;
}
body.foal-bridge .bridge-linked-pill.active { color: #74e5b8; border-color: rgba(95,225,175,.35); }
body.foal-bridge .bridge-wallet-overview {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px;
  margin: 12px 0; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
body.foal-bridge .bridge-wallet-overview > div { display: grid; gap: 4px; }
body.foal-bridge .bridge-wallet-overview span { color: #78aa98; font-size: 11px; text-transform: uppercase; font-weight: 800; }
body.foal-bridge .bridge-wallet-overview code {
  max-width: 360px; overflow: hidden; text-overflow: ellipsis; color: #dff9ee;
}
body.foal-bridge .bridge-wallet-overview b { color: #75e2b5; }
body.foal-bridge .bridge-wallet-warning { margin-bottom: 0; color: #f1c979 !important; }
body.foal-bridge .bridge-notice.error { color: #ff7979; }
body.foal-bridge .bridge-linked-destination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin: 14px 0 0;
  padding: 13px 15px;
  border: 1px solid rgba(95,225,175,.16);
  border-radius: 12px;
  background: rgba(2,25,18,.5);
}
body.foal-bridge .bridge-linked-destination > div { display: grid; gap: 3px; }
body.foal-bridge .bridge-receiver-field { display: grid; gap: 5px; min-width: 0; }
body.foal-bridge .bridge-linked-destination span {
  color: #78aa98; font-size: 10px; font-weight: 800; text-transform: uppercase;
}
body.foal-bridge .bridge-linked-destination code { color: #e6f8f0; overflow: hidden; text-overflow: ellipsis; }
body.foal-bridge .bridge-receiver-field input {
  width: 100%; min-width: 0; border: 0; outline: 0; padding: 3px 0;
  background: transparent; color: #e6f8f0; font: 600 13px/1.4 Inter, sans-serif;
}
body.foal-bridge .bridge-receiver-field input::placeholder { color: #668d7e; }
body.foal-bridge .bridge-linked-destination b { color: #73e0b4; }
body.foal-bridge .bridge-linked-destination button {
  border: 1px solid rgba(95,225,175,.24); border-radius: 9px; padding: 8px 11px;
  background: rgba(8,43,32,.9); color: #dff9ee; font-weight: 750; cursor: pointer;
}
body.foal-bridge .bridge-receiver-actions {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px;
}
body.foal-bridge .bridge-receiver-actions button {
  border: 1px solid rgba(95,225,175,.2); border-radius: 9px; padding: 8px 11px;
  background: rgba(8,43,32,.7); color: #bfe9d8; font-size: 11px; font-weight: 750; cursor: pointer;
}
body.foal-bridge .bridge-receiver-actions button:disabled {
  opacity: .68;
  cursor: not-allowed;
  border-style: dashed;
  color: #86aa9c;
  background: rgba(4,30,22,.56);
}
body.foal-bridge .bridge-wallet-explanation { margin: 8px 2px 0; color: #789f91; font-size: 11px; }
body.foal-bridge .bridge-market-quote {
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  margin: 8px 2px 0; color: #7fae9d; font-size: 12px;
}
body.foal-bridge .bridge-market-quote b { color: #79e5b8; text-align: right; }
.foal-rwa .wallet-hub-menu {
  border-color: rgba(95,225,175,.22);
  background: #06251b;
  box-shadow: 0 24px 70px rgba(0,0,0,.58);
}
.foal-rwa .wallet-hub-label { color: #77dcb6; }
.foal-rwa .wallet-hub-menu h3 { color: #f4eee2; }
.foal-rwa .wallet-hub-card {
  border-color: rgba(95,225,175,.16);
  background: rgba(8,43,32,.76);
}
.foal-rwa .wallet-hub-card:hover { border-color: rgba(95,225,175,.42); background: rgba(13,59,44,.9); }
.foal-rwa .wallet-hub-icon { color: #68dfb1; border-color: rgba(95,225,175,.25); background: rgba(95,225,175,.07); }
.foal-rwa .wallet-hub-address { border-color: rgba(95,225,175,.28); background: rgba(11,48,37,.8); color: #cceade; }
.deposit-modal-card {
  border: 1px solid rgba(95,225,175,.24) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #06271d, #041b14) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.68) !important;
}
.deposit-modal-card h3 { color: #f4eee2; }
.deposit-modal-card > p { color: #9bc5b5; }
.deposit-modal-card .deposit-address-code {
  border-color: rgba(95,225,175,.24);
  background: rgba(3,20,15,.9);
  color: #dff7ed;
}
.deposit-modal-card .deposit-qr-wrap {
  border-color: rgba(95,225,175,.24);
  background: #edf9f4;
}
.deposit-modal-card .muted { color: #73caa8; }

/* One control rhythm for the shared authenticated topbar on every foal.fun page. */
.topbar .top-actions,
.rwa-topbar .top-actions,
.bridge-shared-topbar .top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 40px;
}
.topbar .top-actions > .top-action-btn,
.rwa-topbar .top-actions > .top-action-btn,
.bridge-shared-topbar .top-actions > .top-action-btn,
.topbar .language-select-wrap,
.rwa-topbar .language-select-wrap,
.bridge-shared-topbar .language-select-wrap,
.topbar .wallet-hub-trigger,
.rwa-topbar .wallet-hub-trigger,
.bridge-shared-topbar .wallet-hub-trigger,
.topbar .profile-trigger,
.rwa-topbar .profile-trigger,
.bridge-shared-topbar .profile-trigger {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  margin: 0;
  transform: none;
  vertical-align: middle;
}
.topbar .top-actions > .top-action-btn,
.rwa-topbar .top-actions > .top-action-btn,
.bridge-shared-topbar .top-actions > .top-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  line-height: 1;
}
.topbar .language-select-wrap,
.rwa-topbar .language-select-wrap,
.bridge-shared-topbar .language-select-wrap {
  padding-block: 0;
}
.topbar .wallet-hub-trigger,
.rwa-topbar .wallet-hub-trigger,
.bridge-shared-topbar .wallet-hub-trigger {
  padding: 0 11px;
}
.topbar .profile-trigger,
.rwa-topbar .profile-trigger,
.bridge-shared-topbar .profile-trigger {
  padding: 5px 9px;
  border-radius: 12px;
}
.topbar .profile-avatar,
.rwa-topbar .profile-avatar,
.bridge-shared-topbar .profile-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

/* Shared foal wallet/profile surfaces must look identical on every route. */
body .wallet-hub-trigger {
  border-color: rgba(123,227,181,.2);
  border-radius: 12px;
  background: #0b1c17;
  color: #f2eadb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
body .wallet-hub-trigger:hover {
  border-color: rgba(123,227,181,.48);
  background: #10281f;
}
body .language-select-wrap {
  gap: 5px;
  padding: 0 8px;
  border-color: rgba(123,227,181,.2);
  border-radius: 12px;
  background: #0b1c17;
  color: #f2eadb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
body .language-select-wrap:hover,
body .language-select-wrap.open {
  border-color: rgba(123,227,181,.48);
  background: #10281f;
  transform: none;
}
body .language-select-icon {
  width: 21px;
  height: 21px;
  color: #7be3b5;
  background: rgba(123,227,181,.13);
  border: 1px solid rgba(123,227,181,.12);
}
body .language-select {
  width: 55px;
  color: #f2eadb;
}
body .language-select-chevron { color: #83aa9b; }
body .language-select-menu {
  border-color: rgba(123,227,181,.24);
  border-radius: 15px;
  background: linear-gradient(160deg,#0c211a,#06130f);
  box-shadow: 0 24px 70px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.025);
}
body .language-select-menu button {
  color: #d9e9e2;
  border: 1px solid transparent;
}
body .language-select-menu button:hover,
body .language-select-menu button.selected {
  color: #7be3b5;
  border-color: rgba(123,227,181,.12);
  background: rgba(123,227,181,.1);
}
body .language-select-menu button strong { color: #78bca2; }
body .wallet-hub-trigger.connected .wallet-hub-dot {
  background: #7be3b5;
  box-shadow: 0 0 0 3px rgba(123,227,181,.18), 0 0 13px rgba(123,227,181,.4);
}
body .wallet-hub-menu {
  z-index: 5000;
  width: min(390px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid rgba(123,227,181,.24);
  border-radius: 17px;
  background: radial-gradient(circle at 100% 0%, rgba(33,185,135,.13), transparent 38%), #071812;
  box-shadow: 0 28px 80px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: none;
}
body .wallet-hub-label {
  color: #7be3b5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
body .wallet-hub-menu h3 { color: #f2eadb; font-size: 29px; }
body .wallet-hub-sub,
body .wallet-hub-copy span { color: #78998e; }
body .wallet-hub-sub span,
body .wallet-hub-copy strong { color: #eaf8f1; }
body .wallet-hub-address {
  border-color: rgba(123,227,181,.2);
  background: #0a241b;
  color: #aeeed2;
}
body .wallet-hub-card {
  min-height: 82px;
  border-color: rgba(242,234,219,.1);
  border-radius: 12px;
  background: #0b2119;
  color: #eaf8f1;
}
body .wallet-hub-card:hover {
  border-color: rgba(123,227,181,.42);
  background: #102c21;
  box-shadow: 0 12px 26px rgba(0,0,0,.3);
}
body .wallet-hub-icon {
  border-color: rgba(123,227,181,.18);
  background: rgba(123,227,181,.08);
  color: #7be3b5;
}
body .profile-trigger {
  border-color: rgba(123,227,181,.2);
  background: #0b1c17;
  color: #f2eadb;
}
body .profile-menu {
  z-index: 5000;
  border-color: rgba(123,227,181,.22);
  background: #071c15;
  box-shadow: 0 24px 70px rgba(0,0,0,.62);
}
.bridge-key-overlay {
  position: fixed; inset: 0; z-index: 10000; display: none; place-items: center;
  padding: 18px; background: rgba(0,8,6,.8); backdrop-filter: blur(8px);
}
.bridge-key-overlay.open { display: grid; }
.bridge-key-modal {
  width: min(520px, 100%); padding: 22px; border: 1px solid rgba(123,227,181,.25);
  border-radius: 20px; background: radial-gradient(circle at 100% 0%, rgba(33,185,135,.16), transparent 40%), #071b14;
  box-shadow: 0 35px 110px rgba(0,0,0,.75); color: #eaf8f1;
}
.bridge-key-modal header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bridge-key-modal header small { color: #7be3b5; font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.bridge-key-modal h2 { margin: 5px 0 0; color: #f2eadb; font-size: 24px; }
.bridge-key-modal header button {
  width: 34px; height: 34px; border: 1px solid rgba(123,227,181,.18); border-radius: 10px;
  background: #0b2a20; color: #bfe9d8; font-size: 20px; cursor: pointer;
}
.bridge-key-warning {
  margin: 18px 0; padding: 14px; border: 1px solid rgba(241,201,121,.28);
  border-radius: 13px; background: rgba(102,72,15,.16);
}
.bridge-key-warning strong { color: #f1c979; }
.bridge-key-warning p { margin: 5px 0 0; color: #cdbb94; font-size: 12px; line-height: 1.55; }
.bridge-key-field { display: grid; gap: 7px; color: #8fb9a9; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.bridge-key-field > div {
  display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid rgba(123,227,181,.18);
  border-radius: 12px; background: #03130e;
}
.bridge-key-field code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #dff7ed; text-transform: none; }
.bridge-key-field button,
.bridge-key-actions button {
  border: 1px solid rgba(123,227,181,.22); border-radius: 10px; padding: 9px 12px;
  background: #0c2d22; color: #c9f2e1; font-weight: 800; cursor: pointer;
}
.bridge-key-confirm { display: flex; gap: 9px; align-items: flex-start; margin: 16px 0; color: #a8c8bc; font-size: 12px; line-height: 1.45; }
.bridge-key-confirm input { margin-top: 2px; accent-color: #55d9a8; }
.bridge-key-actions { display: flex; justify-content: flex-end; gap: 9px; }
.bridge-key-actions #bridgeKeyCopy { background: #63dfae; color: #032017; }
.bridge-key-actions button:disabled { opacity: .4; cursor: not-allowed; }
#bridgeKeyStatus { min-height: 18px; margin: 12px 0 0; color: #77dfb6; font-size: 12px; text-align: right; }
body.foal-bridge .bridge-swap-panel {
  padding: 16px; border: 1px solid rgba(95,225,175,.16); border-radius: 16px;
  background: rgba(3,22,17,.72);
}
body.foal-bridge .bridge-pay-panel { margin-top: 14px; }
body.foal-bridge .bridge-receive-panel { background: rgba(3,15,12,.88); }
body.foal-bridge .bridge-swap-panel-head {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px;
  color: #8bb2a3; font-size: 12px;
}
body.foal-bridge .bridge-swap-panel-head b { color: #cceadf; }
body.foal-bridge .bridge-swap-panel .bridge-amount-box { margin: 0; border: 0; padding: 0; background: transparent; }
body.foal-bridge .bridge-swap-panel .bridge-amount-box input,
body.foal-bridge .bridge-swap-panel .bridge-amount-box output { font-size: 34px; font-weight: 800; }
body.foal-bridge .bridge-amount-box #bridgeMaxAmount {
  border: 0; border-radius: 8px; padding: 7px 9px; background: rgba(95,225,175,.12);
  color: #73e0b4; font-size: 11px; font-weight: 850; cursor: pointer;
}
body.foal-bridge .bridge-output-token { display: inline-flex; align-items: center; gap: 8px; font-weight: 850; color: #eefaf5; }
body.foal-bridge .bridge-output-token .bridge-chain-icon { width: 28px; height: 28px; }
body.foal-bridge .bridge-receive-panel p { margin: 10px 0 0; color: #6f9688; font-size: 11px; }
body.foal-bridge .bridge-flip-route {
  display: grid; place-items: center; width: 38px; height: 38px; margin: -7px auto;
  position: relative; z-index: 2; border: 4px solid #052219; border-radius: 12px;
  background: #102e24; color: #75e2b5; font-size: 18px; cursor: pointer;
}
@media (max-width: 700px) {
  body.foal-bridge .bridge-header-actions { align-items: flex-start; }
  body.foal-bridge .bridge-wallet-overview { grid-template-columns: 1fr; }
  body.foal-bridge .bridge-shared-topbar { margin: 8px; }
  body.foal-bridge .bridge-linked-destination { grid-template-columns: 1fr auto; }
}
@media (max-width: 700px) {
  .foal-profile .topbar { margin: 10px 10px 0; }
  .foal-profile .content-section { padding-inline: 10px; }
  .foal-profile .profile-layout-grid { grid-template-columns: 1fr; }
}
