/* Reference-aligned OrbitX dashboard. This layer is presentation-only. */
:root {
  --db-bg: #050a17;
  --db-surface: #091328;
  --db-surface-2: #0c1832;
  --db-border: rgba(117, 148, 211, 0.34);
  --db-text: #f4f7ff;
  --db-muted: #98a7c3;
  --db-purple: #8b4dff;
  --db-blue: #2f8cff;
  --db-green: #16d6a1;
  --db-pink: #e85ac8;
  --db-orange: #ff7a19;
}

html,
body.dashboard-body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--db-bg);
}

.dashboard-body *,
.dashboard-body *::before,
.dashboard-body *::after {
  min-width: 0;
  box-sizing: border-box;
  letter-spacing: 0;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dashboard-body .sidebar {
  top: 0;
  width: 230px;
  height: 100dvh;
  padding: 0 10px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(98, 126, 190, 0.26);
  background: linear-gradient(180deg, #060b1a, #060a17 60%, #080b20);
}

.dashboard-body .sidebar-head {
  height: 78px;
  padding: 8px 4px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(98, 126, 190, 0.18);
}

.dashboard-body .sidebar .brand {
  width: 166px;
  height: 60px;
  display: block;
  overflow: hidden;
}

.dashboard-body .sidebar .brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dashboard-body .side-nav {
  padding: 12px 0;
  display: grid;
  gap: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.dashboard-body .nav-link {
  min-height: 42px;
  padding: 0 13px;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #a9b4ca;
  font-size: 12px;
}

.dashboard-body .nav-link:hover {
  border-color: rgba(103, 130, 195, 0.28);
  background: rgba(35, 54, 96, 0.28);
  color: #fff;
}

.dashboard-body .nav-link.active {
  border-color: rgba(132, 83, 255, 0.8);
  background: linear-gradient(100deg, #4723c9, #341a80 72%, #432077);
  box-shadow: inset 0 0 20px rgba(149, 91, 255, 0.2), 0 6px 20px rgba(65, 27, 173, 0.24);
  color: #fff;
}

.sidebar-refer-card {
  margin-top: auto;
  padding: 14px;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(119, 91, 219, 0.48);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(50, 36, 111, 0.64), rgba(12, 20, 45, 0.94));
  text-align: center;
}

.sidebar-refer-card > svg { width: 34px; height: 34px; color: #9b62ff; }
.sidebar-refer-card strong { color: #fff; font-size: 14px; }
.sidebar-refer-card span { color: var(--db-muted); font-size: 10px; line-height: 1.5; }
.sidebar-refer-card a { width: 100%; padding: 9px; border-radius: 6px; background: linear-gradient(90deg, #5430ff, #7841ff); color: #fff; font-size: 11px; font-weight: 700; }

.dashboard-body .topbar {
  left: 230px;
  min-height: 72px;
  height: 72px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(100, 132, 204, 0.24);
  background: rgba(5, 10, 23, 0.94);
  backdrop-filter: blur(18px);
}

.dashboard-body .topbar-spacer { flex: 1; }
.dashboard-body .topbar .wallet-actions { margin-left: auto; gap: 9px; }
.dashboard-body .top-mobile-logo { display: none; }
.topbar-tool {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #bbc7dc;
}
.topbar-tool:hover { border-color: var(--db-border); background: #0d1830; color: #fff; }
.topbar-tool svg { width: 19px; height: 19px; }
.topbar-tool span { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: #ff394f; }

.dashboard-body .main,
.dashboard-body .sidebar.closed + .main {
  width: auto;
  max-width: none;
  margin: 72px 0 0 230px;
  padding: 14px 16px 30px;
  background: radial-gradient(circle at 70% -10%, rgba(42, 75, 145, 0.18), transparent 36%), var(--db-bg);
}

.dashboard-body .sidebar.closed { transform: translateX(-230px); }
.dashboard-body .sidebar.closed + .main { margin-left: 0; }
.dashboard-body .sidebar.closed + .main .topbar { left: 0; }

.dashboard-body .mobile-tab-bar svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.dashboard-body .dashboard-board { width: 100%; max-width: none; }
body.dashboard-body[data-dashboard-view="overview"] .dashboard-aside { display: none; }

.member-info-bar {
  width: 100%;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr 1fr;
  gap: 0;
  border: 1px solid rgba(91, 130, 204, 0.7);
  border-radius: 8px;
  background: linear-gradient(105deg, rgba(13, 29, 60, 0.98), rgba(8, 18, 39, 0.98));
  box-shadow: inset 0 0 30px rgba(50, 100, 190, 0.06);
}

.member-info-item {
  position: relative;
  min-height: 68px;
  padding: 4px 18px 4px 60px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-left: 1px solid rgba(107, 137, 196, 0.28);
}
.member-info-item:first-child { border-left: 0; }
.member-info-item > svg {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 34px;
  height: 34px;
  padding: 8px;
  transform: translateY(-50%);
  border: 1px solid rgba(124, 75, 255, 0.46);
  border-radius: 8px;
  background: rgba(100, 55, 202, 0.22);
  color: #b88cff;
}
.member-info-item > span { color: #b5c0d5; font-size: 11px; }
.member-info-item > strong { max-width: 100%; overflow: hidden; color: #f5f8ff; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.member-info-item.wallet-info { padding-right: 44px; }
.member-info-item.wallet-info button { position: absolute; right: 12px; bottom: 14px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: transparent; color: #aebbd2; }
.member-info-item.wallet-info button svg { width: 15px; height: 15px; }
.rank-info > strong { width: fit-content; min-width: 110px; padding: 7px 18px; border: 1px solid #8d6325; border-radius: 999px; background: linear-gradient(90deg, rgba(142, 89, 8, 0.35), rgba(88, 52, 7, 0.7)); color: #ffc14d; }
.rank-info > strong[data-rank="NONE"] { border-color: #526078; background: #182238; color: #b5c0d3; }
.rank-info > strong[data-rank="BRONZE"] { border-color: #9a5d35; color: #e89a62; }
.rank-info > strong[data-rank="SILVER"] { border-color: #7a8ca5; background: #202c3d; color: #d7e0ee; }
.rank-info > strong[data-rank="DIAMOND"] { border-color: #2ccfe8; background: rgba(12, 91, 121, 0.42); color: #70eaff; }

.dashboard-body .dashboard-center { gap: 14px; }
.dashboard-body .earnings-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dashboard-body .earnings-row > .earning-card {
  min-height: 212px;
  padding: 20px;
  border-width: 1px;
  border-radius: 8px;
  justify-content: flex-start;
  background: #0b1730;
}
.earning-card.total-card { border-color: rgba(74, 104, 255, 0.8); background: radial-gradient(circle at 100% 100%, rgba(65, 46, 220, 0.32), transparent 45%), #0b1730; }
.earning-card.direct-card { border-color: rgba(20, 208, 157, 0.72); background: radial-gradient(circle at 100% 100%, rgba(4, 151, 126, 0.26), transparent 45%), #091d28; }
.earning-card.rank-card-main { border-color: rgba(178, 77, 255, 0.75); background: radial-gradient(circle at 100% 100%, rgba(130, 39, 207, 0.28), transparent 45%), #15132d; }
.earning-card.auto-card { border-color: rgba(255, 112, 24, 0.78); background: radial-gradient(circle at 100% 100%, rgba(185, 71, 8, 0.3), transparent 45%), #21150f; }
.earning-card .stat-card-head { align-items: center; }
.earning-card .stat-card-head > svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; }
.earning-card .stat-card-head span { display: grid; gap: 4px; text-transform: none; }
.earning-card .stat-card-head b { color: #f5f8ff; font-size: 14px; }
.earning-card .stat-card-head small { margin: 0; color: var(--db-muted); font-size: 9px; }
.dashboard-body .earnings-row .earning-card > strong { margin: 24px 0 0; overflow-wrap: anywhere; color: #f8faff; font-family: Inter, sans-serif; font-size: 28px; line-height: 1.15; }
.trend-line { height: 42px; margin-top: auto; display: flex; align-items: flex-end; gap: 5px; overflow: hidden; }
.trend-line i { width: 16.666%; height: 25%; border-top: 2px solid #7c4dff; transform: skewY(-15deg); }
.trend-line i:nth-child(2) { height: 40%; }.trend-line i:nth-child(3) { height: 32%; }.trend-line i:nth-child(4) { height: 58%; }.trend-line i:nth-child(5) { height: 52%; }.trend-line i:nth-child(6) { height: 86%; }
.direct-card .trend-line i { border-color: var(--db-green); }.rank-card-main .trend-line i { border-color: #d14cff; }.auto-card .trend-line i { border-color: var(--db-orange); }

.secondary-stats { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.secondary-card {
  position: relative;
  min-height: 108px;
  padding: 18px 58px 18px 68px;
  display: grid;
  align-content: center;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(43, 183, 210, 0.55);
  border-radius: 8px;
  background: linear-gradient(120deg, #092536, #0b1b30);
}
.secondary-card > svg { position: absolute; left: 20px; top: 50%; width: 38px; height: 38px; padding: 9px; transform: translateY(-50%); border: 1px solid rgba(34, 216, 222, 0.5); border-radius: 9px; background: rgba(17, 173, 182, 0.2); color: #46e1e2; }
.secondary-card > span { color: #c2ccdc; font-size: 11px; }
.secondary-card > strong { max-width: 100%; overflow-wrap: anywhere; color: #f5f8ff; font-size: 21px; }
.secondary-card > small { color: var(--db-muted); font-size: 9px; }
.directs-card { border-color: rgba(43, 126, 255, 0.64); background: linear-gradient(120deg, #0a1b36, #0b2141); }.directs-card > svg { border-color: rgba(43, 126, 255, 0.6); background: rgba(31, 104, 220, 0.2); color: #69aaff; }
.team-card { border-color: rgba(222, 69, 181, 0.55); background: linear-gradient(120deg, #251126, #241334); }.team-card > svg { border-color: rgba(222, 69, 181, 0.55); background: rgba(187, 43, 146, 0.2); color: #f078d2; }

body[data-dashboard-view="overview"] .dashboard-panels { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 12px; }
body[data-dashboard-view="overview"] #pools { order: 1; }
body[data-dashboard-view="overview"] #rank { order: 2; }
.dashboard-body .dashboard-panels > .panel { padding: 18px; border-radius: 8px; border-color: var(--db-border); background: linear-gradient(145deg, #0a1730, #081124); }
.premium-panel-head { padding-bottom: 12px; border-bottom: 1px solid rgba(112, 139, 199, 0.22); }
.premium-panel-head > div { display: flex; align-items: center; gap: 10px; }
.premium-panel-head svg { width: 20px; height: 20px; color: #a879ff; }
.premium-panel-head h2 { font-family: Inter, sans-serif; font-size: 13px; text-transform: uppercase; }

.auto-pool-summary { display: grid; gap: 15px; }
.auto-pool-facts { display: grid; grid-template-columns: 1.35fr 0.8fr 0.8fr; }
.auto-pool-facts > div { padding: 3px 14px; display: grid; gap: 8px; border-left: 1px solid rgba(104, 137, 202, 0.25); }
.auto-pool-facts > div:first-child { padding-left: 0; border: 0; }
.auto-pool-facts span, .slot-progress-head span, .auto-pool-foot span { color: var(--db-muted); font-size: 10px; }
.auto-pool-facts strong { color: #4aa2ff; font-size: 22px; }
.slot-progress-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.slot-progress-head div { display: grid; gap: 5px; }.slot-progress-head strong { color: #45a7ff; font-size: 18px; }.slot-progress-head b { color: #e2ebff; font-size: 13px; }
.dashboard-body .auto-progress-bar > span { background: linear-gradient(90deg, #1889ff, #6844ff); }
.slot-indicators { min-height: 34px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slot-indicators i { width: 30px; height: 30px; border: 1px dashed #6380ac; border-radius: 50%; background: #0b1529; }
.slot-indicators i.filled { border-style: solid; border-color: #45a6ff; background: #168bff; box-shadow: 0 0 14px rgba(22, 139, 255, 0.45); }
.auto-pool-foot { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 12px; }
.auto-pool-foot > div { min-height: 72px; padding: 13px; display: grid; align-content: center; gap: 5px; border: 1px solid rgba(61, 128, 207, 0.45); border-radius: 7px; background: rgba(8, 24, 48, 0.72); }
.auto-pool-foot > div > strong { color: var(--db-green); font-size: 19px; }
.placement-status { grid-template-columns: 36px minmax(0, 1fr) !important; align-items: center; border-color: rgba(31, 204, 143, 0.5) !important; }
.placement-status > svg { width: 28px; height: 28px; color: var(--db-green); }.placement-status > span { display: grid; gap: 4px; }.placement-status > span strong { color: #51e6af; font-size: 13px; }.placement-status > span small { color: var(--db-muted); font-size: 9px; }
.placement-status.pending { border-color: rgba(239, 183, 28, 0.65) !important; }.placement-status.pending > svg, .placement-status.pending > span strong { color: #ffd132; }

.rank-overview-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 110px; align-items: center; gap: 12px; }
.rank-overview-summary > svg { width: 20px; color: #8293b1; }
.rank-transition, .rank-progress-percent { display: grid; gap: 6px; }
.rank-transition span, .rank-progress-percent span { color: var(--db-muted); font-size: 10px; }
.rank-transition strong { color: #c0cbe0; font-size: 21px; }.rank-transition.next strong { color: #ffc347; }.rank-progress-percent strong { color: #9a5aff; font-size: 28px; }
.dashboard-body #rank .progress-bar { margin-top: 17px; }
.rank-cap-row { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.rank-cap-row > div { display: grid; gap: 5px; }.rank-cap-row strong { color: #cbd6eb; font-size: 18px; }.rank-cap-row span { max-width: 56ch; color: var(--db-muted); font-size: 9px; line-height: 1.45; }.rank-cap-row > b { flex: none; padding: 9px 14px; border: 1px solid rgba(148, 84, 255, 0.5); border-radius: 7px; color: #d7c2ff; font-size: 11px; }

.dashboard-body .dashboard-aside[data-dashboard-view="overview"] { display: none; }
.dashboard-body .system-strip { border-radius: 8px; }
.dashboard-body .dashboard-footer { border-radius: 8px; }

@media (max-width: 1180px) {
  .member-info-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-info-item:nth-child(3) { border-left: 0; border-top: 1px solid rgba(107, 137, 196, 0.28); }
  .member-info-item:nth-child(4) { border-top: 1px solid rgba(107, 137, 196, 0.28); }
  body[data-dashboard-view="overview"] .dashboard-panels { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .dashboard-body .sidebar { z-index: 180; transform: translateX(-105%); box-shadow: 24px 0 60px rgba(0, 0, 0, 0.66); }
  .dashboard-body .sidebar.open { transform: translateX(0); }
  .dashboard-body .sidebar-close { display: grid; }
  .dashboard-body .topbar { left: 0; height: 64px; min-height: 64px; }
  .dashboard-body .top-mobile-logo { width: 112px; height: 48px; display: block; overflow: hidden; }
  .dashboard-body .top-mobile-logo img { width: 100%; height: 100%; object-fit: contain; }
  .dashboard-body .main,
  .dashboard-body .sidebar.closed + .main { margin: 64px 0 0; padding: 12px 12px 84px; }
  .dashboard-body .earnings-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .secondary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .secondary-card:first-child { grid-column: 1 / -1; }
  .fullscreen-tool { display: none; }
}

@media (max-width: 768px) {
  .dashboard-body .topbar { display: grid; grid-template-columns: 40px 92px minmax(0, 1fr); gap: 7px; padding: 0 8px; }
  .dashboard-body .topbar-spacer { display: none; }
  .dashboard-body .topbar .wallet-actions { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) 40px; gap: 6px; }
  .dashboard-body .topbar-tool, .dashboard-body .language-picker { width: 40px; height: 40px; }
  .dashboard-body .topbar .wallet-actions #connectBtn { grid-column: 2 / 4; width: 100%; min-width: 0; padding-inline: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dashboard-body .topbar .wallet-actions .disconnect-wallet { grid-column: 3; }
  .dashboard-body .network-badge, .dashboard-body .header-pill, .dashboard-body .header-wallet, .topbar-tool { display: none; }
  .dashboard-body .wallet-actions .topbar-tool { display: none; }
  .member-info-bar { padding: 8px; }
  .member-info-item { min-height: 74px; padding: 8px 10px 8px 48px; }
  .member-info-item > svg { left: 8px; width: 30px; height: 30px; padding: 7px; }
  .member-info-item.wallet-info { padding-right: 34px; }
  .member-info-item > strong { font-size: 14px; }
  .rank-info > strong { min-width: 0; padding: 6px 10px; }
  .dashboard-body .earnings-row > .earning-card { min-height: 172px; padding: 14px; }
  .earning-card .stat-card-head > svg { width: 38px; height: 38px; padding: 9px; }
  .earning-card .stat-card-head b { font-size: 12px; }
  .dashboard-body .earnings-row .earning-card > strong { margin-top: 17px; font-size: 20px; }
  .trend-line { height: 30px; }
  .secondary-card { min-height: 100px; padding: 14px 12px 14px 56px; }
  .secondary-card > svg { left: 12px; width: 34px; height: 34px; }
  .secondary-card > strong { font-size: 17px; }
  .auto-pool-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .auto-pool-facts > div { padding: 8px 10px; border: 1px solid rgba(104, 137, 202, 0.24); border-radius: 6px; }
  .auto-pool-facts > div:first-child { grid-column: 1 / -1; padding: 8px 10px; border: 1px solid rgba(104, 137, 202, 0.24); }
  .auto-pool-foot { grid-template-columns: 1fr; }
  .rank-overview-summary { grid-template-columns: 1fr auto 1fr; }
  .rank-progress-percent { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid rgba(104, 137, 202, 0.22); }
  .rank-cap-row { align-items: stretch; flex-direction: column; }
  .rank-cap-row > b { width: fit-content; }
}

/* Premium overview controls and verified-data presentation */
.overview-command-bar {
  min-height: 42px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 139, 31, 0.2);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(255, 116, 8, 0.07), rgba(255, 255, 255, 0.015));
  color: #858585;
  font: 600 10px Inter, sans-serif;
}
.overview-command-bar .live-data-status { display: inline-flex; align-items: center; gap: 7px; color: #d7d7d7; text-transform: uppercase; }
.overview-command-bar .live-data-status i { width: 7px; height: 7px; border-radius: 50%; background: #37d77a; box-shadow: 0 0 12px rgba(55, 215, 122, 0.65); }
.overview-command-bar > span { margin-left: auto; }
.overview-command-bar > div:last-child { display: flex; gap: 6px; }
.overview-command-bar button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 139, 31, 0.25);
  border-radius: 5px;
  background: #0b0a09;
  color: #ff9822;
}
.overview-command-bar button:hover { border-color: #ff8a14; background: #17100a; }
.overview-command-bar button svg { width: 15px; height: 15px; }
.dashboard-refreshing #overviewRefreshBtn svg { animation: overview-spin 700ms linear infinite; }
@keyframes overview-spin { to { transform: rotate(360deg); } }

.member-info-bar { grid-template-columns: 1.25fr 0.75fr 0.8fr 0.85fr 0.9fr; }
.earning-source {
  min-height: 34px;
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid rgba(255, 139, 31, 0.13);
  color: #888;
  font: 600 9px Inter, sans-serif;
  text-transform: uppercase;
}
.earning-source svg { width: 14px; height: 14px; color: #ff941f; }
.secondary-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.indirect-card, .leg-card { border-color: rgba(255, 139, 31, 0.25); background: linear-gradient(120deg, #15130f, #090909); }
.indirect-card > svg, .leg-card > svg { border-color: rgba(255, 139, 31, 0.42); background: rgba(255, 111, 0, 0.1); color: #ff991f; }
.overview-activity .section-head .eyebrow { color: #ff8c18; font-size: 8px; }
.overview-activity .ghost-btn { display: inline-flex; align-items: center; gap: 6px; }
.overview-activity .ghost-btn svg { width: 14px; height: 14px; }

.privacy-mode .private-value,
.privacy-mode #headerWallet,
.privacy-mode #referralLink,
.privacy-mode #dashboardUsdtBalance,
.privacy-mode #contractBalance,
.privacy-mode #claimableRankRewards,
.privacy-mode #claimableRankDetail {
  filter: blur(7px);
  user-select: none;
}

.skeleton {
  position: relative;
  min-width: 86px;
  width: fit-content;
  overflow: hidden !important;
  color: transparent !important;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255, 148, 31, 0.22), transparent);
  animation: skeleton-sweep 1.15s ease-in-out infinite;
}
@keyframes skeleton-sweep { to { transform: translateX(110%); } }

.referral-qr-modal {
  position: relative;
  width: min(390px, calc(100vw - 28px));
  padding: 28px;
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 139, 31, 0.55);
  border-radius: 8px;
  background: #090806;
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.75), 0 0 38px rgba(255, 103, 0, 0.1);
  text-align: center;
}
.referral-qr-modal h2 { margin: 0; color: #f5f5f5; font: 700 20px Inter, sans-serif; }
.referral-qr-modal > strong { color: #ff951f; font: 800 17px Orbitron, sans-serif; }
.referral-qr-modal > p { width: 100%; margin: 0; overflow: hidden; color: #8e8e8e; font: 500 10px Inter, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.referral-qr-modal .primary-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.referral-qr-modal .primary-btn svg { width: 16px; height: 16px; }
.qr-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #292929; border-radius: 50%; background: #111; color: #eee; }
.qr-close svg { width: 17px; height: 17px; }
.referral-qr-code { width: 226px; height: 226px; padding: 10px; display: grid; place-items: center; border-radius: 6px; background: #fff; }
.referral-qr-code img { width: 100%; height: 100%; image-rendering: pixelated; }
body.modal-open { overflow: hidden; }

.dashboard-body .referral-actions { grid-template-columns: repeat(5, 40px); }

@media (max-width: 1180px) {
  .member-info-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-info-item:nth-child(odd):not(:first-child) { border-left: 0; }
  .member-info-item:nth-child(n + 3) { border-top: 1px solid rgba(255, 139, 31, 0.15); }
  .member-info-item:last-of-type { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .overview-command-bar { min-height: 40px; padding: 0 8px; gap: 7px; }
  .overview-command-bar .live-data-status span { display: none; }
  .overview-command-bar > span { font-size: 9px; }
  .secondary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .secondary-card:first-child { grid-column: auto; }
  .dashboard-body .referral-actions { grid-template-columns: repeat(5, 34px); gap: 4px; }
  .dashboard-body .referral-actions a,
  .dashboard-body .referral-actions button { width: 34px; height: 34px; }
}

@media (max-width: 430px) {
  .member-info-bar { grid-template-columns: 1fr; }
  .member-info-item:last-of-type { grid-column: auto; }
  .secondary-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .secondary-card { min-height: 104px; padding: 12px 9px 12px 49px; }
  .secondary-card > svg { left: 9px; width: 31px; height: 31px; padding: 7px; }
  .secondary-card > span { font-size: 9px; }
  .secondary-card > strong { font-size: 15px; }
  .secondary-card > small { font-size: 8px; line-height: 1.25; }
  .earning-source { min-height: 28px; padding-top: 8px; font-size: 7px; }
  .earning-source svg { width: 11px; height: 11px; }
  .referral-qr-modal { padding: 24px 18px 18px; }
  .referral-qr-code { width: min(210px, 70vw); height: min(210px, 70vw); }
}

@media (max-width: 430px) {
  .dashboard-body .main,
  .dashboard-body .sidebar.closed + .main { padding-inline: 8px; }
  .member-info-bar { grid-template-columns: 1fr; }
  .member-info-item { border-left: 0; border-top: 1px solid rgba(107, 137, 196, 0.28); }
  .member-info-item:first-child { border-top: 0; }
  .dashboard-body .earnings-row { gap: 8px; }
  .dashboard-body .earnings-row > .earning-card { min-height: 158px; padding: 11px; }
  .earning-card .stat-card-head { align-items: flex-start; gap: 7px; }
  .earning-card .stat-card-head > svg { width: 32px; height: 32px; padding: 7px; }
  .earning-card .stat-card-head b { font-size: 10px; line-height: 1.25; }
  .earning-card .stat-card-head small { display: none; }
  .dashboard-body .earnings-row .earning-card > strong { font-size: 16px; line-height: 1.25; }
  .secondary-stats { grid-template-columns: 1fr; }
  .secondary-card:first-child { grid-column: auto; }
  .dashboard-body .dashboard-panels > .panel { padding: 13px; }
  .rank-transition strong { font-size: 16px; }
  .rank-progress-percent strong { font-size: 23px; }
}

@media (max-width: 340px) {
  .dashboard-body .topbar { grid-template-columns: 38px 76px minmax(0, 1fr); }
  .dashboard-body .top-mobile-logo { width: 76px; }
  .dashboard-body .earnings-row { grid-template-columns: 1fr; }
  .dashboard-body .earnings-row > .earning-card { min-height: 150px; }
  .auto-pool-facts { grid-template-columns: 1fr; }
  .auto-pool-facts > div:first-child { grid-column: auto; }
}

/* OrbitX graphite and ignition-orange brand layer. */
:root {
  --db-bg: #030303;
  --db-surface: #0b0b0b;
  --db-surface-2: #12110f;
  --db-border: rgba(255, 139, 31, 0.25);
  --db-text: #f7f7f7;
  --db-muted: #929292;
  --db-purple: #ff7a00;
  --db-blue: #ff9d16;
  --db-green: #37ca78;
  --db-pink: #ffd06a;
  --db-orange: #ff6500;
}

body.dashboard-body {
  color: var(--db-text);
  background:
    radial-gradient(circle at 78% 0, rgba(255, 104, 0, 0.1), transparent 28%),
    #030303;
}

.dashboard-body .sidebar {
  border-right-color: rgba(255, 139, 31, 0.22);
  background: linear-gradient(180deg, #050505, #090806 55%, #030303);
  box-shadow: 12px 0 38px rgba(0, 0, 0, 0.42);
}

.dashboard-body .sidebar-head {
  border-bottom-color: rgba(255, 139, 31, 0.16);
}

.dashboard-body .nav-link {
  color: #a5a5a5;
}

.dashboard-body .nav-link:hover {
  border-color: rgba(255, 139, 31, 0.25);
  background: rgba(255, 122, 0, 0.07);
  color: #fff;
}

.dashboard-body .nav-link.active {
  border-color: rgba(255, 145, 28, 0.8);
  background: linear-gradient(100deg, rgba(255, 91, 0, 0.92), rgba(174, 57, 0, 0.74));
  box-shadow: inset 0 0 18px rgba(255, 187, 70, 0.15), 0 7px 24px rgba(255, 85, 0, 0.19);
}

.sidebar-refer-card {
  border-color: rgba(255, 139, 31, 0.38);
  background: linear-gradient(145deg, rgba(43, 24, 7, 0.94), rgba(8, 8, 8, 0.98));
}

.sidebar-refer-card > svg,
.sidebar-refer-card strong { color: #ff9a22; }
.sidebar-refer-card a { background: linear-gradient(90deg, #ff6100, #ff9c19); color: #080808; }

.dashboard-body .topbar {
  border-bottom-color: rgba(255, 139, 31, 0.18);
  background: rgba(3, 3, 3, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
}

.topbar-tool:hover,
.dashboard-body .language-picker:hover {
  border-color: rgba(255, 139, 31, 0.4);
  background: rgba(255, 112, 0, 0.08);
  color: #ff9d24;
}

.dashboard-body .main,
.dashboard-body .sidebar.closed + .main {
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    radial-gradient(circle at 86% 0, rgba(255, 104, 0, 0.09), transparent 31%),
    #030303;
  background-size: 38px 38px, 38px 38px, auto, auto;
}

.member-info-bar {
  border-color: rgba(255, 139, 31, 0.46);
  background: linear-gradient(110deg, rgba(21, 18, 14, 0.98), rgba(7, 7, 7, 0.99));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 18px 44px rgba(0, 0, 0, 0.24);
}

.member-info-item { border-color: rgba(255, 139, 31, 0.15); }
.member-info-item > svg {
  border-color: rgba(255, 139, 31, 0.5);
  background: rgba(255, 112, 0, 0.11);
  color: #ff9419;
}
.member-info-item > span { color: #919191; }

.dashboard-body .earnings-row > .earning-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 139, 31, 0.28);
  background: linear-gradient(145deg, #12110f, #080808 70%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 18px 38px rgba(0, 0, 0, 0.25);
}

.dashboard-body .earnings-row > .earning-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 139, 31, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 46px rgba(255, 92, 0, 0.09);
  pointer-events: none;
}

.earning-card.total-card { border-color: rgba(255, 111, 0, 0.72); background: linear-gradient(145deg, #241207, #090909 68%); }
.earning-card.direct-card { border-color: rgba(255, 187, 64, 0.52); background: linear-gradient(145deg, #1c170c, #090909 68%); }
.earning-card.rank-card-main { border-color: rgba(218, 222, 229, 0.34); background: linear-gradient(145deg, #171717, #080808 68%); }
.earning-card.auto-card { border-color: rgba(255, 91, 0, 0.65); background: linear-gradient(145deg, #211006, #080808 68%); }

.earning-card .stat-card-head > svg {
  border: 1px solid rgba(255, 145, 32, 0.42);
  background: linear-gradient(145deg, rgba(255, 147, 32, 0.22), rgba(255, 86, 0, 0.08));
  color: #ff9b25;
}
.rank-card-main .stat-card-head > svg { border-color: rgba(220, 224, 231, 0.34); background: rgba(222, 226, 233, 0.08); color: #eceff4; }
.direct-card .stat-card-head > svg { color: #ffc052; }

.trend-line i,
.direct-card .trend-line i,
.rank-card-main .trend-line i,
.auto-card .trend-line i { border-color: #ff7810; }
.direct-card .trend-line i { border-color: #ffbd46; }
.rank-card-main .trend-line i { border-color: #d8dde5; }

.secondary-card,
.directs-card,
.team-card {
  border-color: rgba(255, 139, 31, 0.25);
  background: linear-gradient(120deg, #15130f, #090909);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}
.secondary-card > svg,
.directs-card > svg,
.team-card > svg {
  border-color: rgba(255, 139, 31, 0.42);
  background: rgba(255, 111, 0, 0.1);
  color: #ff991f;
}

.dashboard-body .dashboard-panels > .panel,
.dashboard-body .panel,
.dashboard-body .metric-card,
.dashboard-body .rank-card,
.dashboard-body .pool-card,
.dashboard-body .rank-balance-card {
  border-color: rgba(255, 139, 31, 0.23);
  background: linear-gradient(145deg, #11100e, #070707);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 16px 34px rgba(0, 0, 0, 0.22);
}

.premium-panel-head { border-bottom-color: rgba(255, 139, 31, 0.16); }
.premium-panel-head svg,
.dashboard-body .metric-card > svg { color: #ff961c; }
.auto-pool-facts > div { border-color: rgba(255, 139, 31, 0.18); }
.auto-pool-facts strong,
.slot-progress-head strong { color: #ff9c22; }
.dashboard-body .auto-progress-bar > span,
.dashboard-body #rank .progress-bar > span { background: linear-gradient(90deg, #ff5b00, #ffad24); }
.slot-indicators i { border-color: #775330; background: #0b0a08; }
.slot-indicators i.filled { border-color: #ff9a1c; background: #ff6a00; box-shadow: 0 0 15px rgba(255, 106, 0, 0.38); }
.auto-pool-foot > div { border-color: rgba(255, 139, 31, 0.27); background: rgba(18, 13, 8, 0.78); }
.auto-pool-foot > div > strong { color: #ffb238; }

.rank-transition.next strong,
.rank-progress-percent strong { color: #ffac28; }
.rank-cap-row > b { border-color: rgba(255, 139, 31, 0.4); color: #ffc264; background: rgba(255, 112, 0, 0.06); }

.dashboard-body .primary-btn,
.dashboard-body .secondary-btn {
  border-color: #ff7b0b;
  background: linear-gradient(100deg, #ff5e00, #ff9817);
  color: #080808;
  box-shadow: 0 8px 24px rgba(255, 91, 0, 0.18);
}
.dashboard-body .ghost-btn,
.dashboard-body .disconnect-wallet {
  border-color: rgba(255, 139, 31, 0.34);
  background: #0b0b0b;
  color: #ff9c2a;
}

.dashboard-body table thead,
.dashboard-body .distribution-card,
.dashboard-body .system-strip,
.dashboard-body .dashboard-footer {
  border-color: rgba(255, 139, 31, 0.2);
  background: linear-gradient(120deg, #100e0b, #060606);
}
.dashboard-body table tbody tr:hover { background: rgba(255, 112, 0, 0.055); }
.dashboard-body .referral-share-bar {
  border-color: rgba(255, 139, 31, 0.28);
  background: linear-gradient(110deg, #13100c, #080808);
}
.dashboard-body .referral-share-id { border-color: rgba(255, 139, 31, 0.18); }
.dashboard-body .icon-action,
.dashboard-body .referral-share-bar nav a {
  border-color: rgba(255, 139, 31, 0.28);
  background: #0d0b09;
  color: #ff9820;
}

.dashboard-body .metric-card:nth-child(n) {
  border-color: rgba(255, 139, 31, 0.23);
  background: linear-gradient(145deg, #11100e, #070707);
}
.dashboard-body .metric-card:nth-child(n) > svg {
  border-color: rgba(255, 139, 31, 0.36);
  background: rgba(255, 112, 0, 0.09);
  color: #ff971d;
}

.dashboard-body .rank-claim-card,
.dashboard-body .rank-requirements span,
.dashboard-body .quick-grid a,
.dashboard-body .quick-grid button {
  border-color: rgba(255, 139, 31, 0.26);
  background: rgba(255, 112, 0, 0.055);
  color: #c7c7c7;
}

.dashboard-body .tree-panel {
  border-color: rgba(255, 139, 31, 0.28) !important;
  background: radial-gradient(circle at 50% 0, rgba(255, 104, 0, 0.12), transparent 42%), #080706 !important;
}
.dashboard-body .tree-head { border-bottom-color: rgba(255, 139, 31, 0.17); }
.dashboard-body .tree-head strong { color: #fff4e8; }
.dashboard-body .tree-head span { color: #99938d; }
.dashboard-body .premium-pool-tree::before,
.dashboard-body .premium-pool-tree::after { background: linear-gradient(90deg, transparent, rgba(255, 174, 64, 0.72), transparent); }
.dashboard-body .premium-pool-tree .tree-tier-label {
  border-color: rgba(255, 139, 31, 0.28);
  background: #171008;
  color: #d6b58c;
}
.dashboard-body .premium-pool-tree .tree-row::before { border-color: rgba(255, 174, 64, 0.55); }
.dashboard-body .premium-pool-tree .tree-node {
  border-color: rgba(255, 139, 31, 0.5);
  background: linear-gradient(145deg, #201307, #0d0a07);
  color: #fff0dd;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.dashboard-body .premium-pool-tree .tree-node.filled {
  border-color: #ff9b24;
  background: linear-gradient(145deg, #4a2305, #171008);
  box-shadow: 0 0 18px rgba(255, 115, 0, 0.22);
}
.dashboard-body .premium-pool-tree .tree-node.empty {
  border-color: #40352a;
  background: #0d0c0a;
  color: #71695f;
}
.dashboard-body .premium-pool-tree .tree-node.empty::after { color: #776650; }

.dashboard-body .admin-panel {
  border-color: rgba(255, 139, 31, 0.4) !important;
  background: linear-gradient(140deg, #1b1108, #080808 66%) !important;
}
.dashboard-body .admin-console-grid > div {
  border-color: rgba(255, 139, 31, 0.24);
  background: #0e0c09;
}
.dashboard-body .mobile-tab-bar { border-top-color: rgba(255, 139, 31, 0.25); background: rgba(4, 4, 4, 0.97); }
.dashboard-body .mobile-tab-bar a.active { color: #ff971f; }

.dashboard-body .network-badge,
.dashboard-body .header-pill,
.dashboard-body .header-wallet { display: none; }

@media (max-width: 768px) {
  .dashboard-body .main,
  .dashboard-body .sidebar.closed + .main { background-size: 28px 28px, 28px 28px, auto, auto; }
}

.dashboard-body .route-loader {
  position: fixed;
  inset: 68px 0 0 230px;
  z-index: 145;
  display: grid;
  place-items: center;
  background: rgba(2, 2, 2, 0.62);
  backdrop-filter: blur(5px);
}
.dashboard-body .route-loader.hidden { display: none; }
.dashboard-body .route-loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 145, 28, 0.2);
  border-top-color: #ff971f;
  border-right-color: #ffd16d;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255, 112, 0, 0.2);
  animation: orbitx-route-spin 0.7s linear infinite;
}
.dashboard-body .sidebar.closed + .main .route-loader { left: 0; }
@keyframes orbitx-route-spin { to { transform: rotate(360deg); } }
@media (max-width: 1024px) {
  .dashboard-body .route-loader { inset: 64px 0 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-body .route-loader-spinner { animation-duration: 1.4s; }
}

/* Unified dashboard footer across every route. */
.dashboard-body .dashboard-footer {
  position: relative;
  width: 100%;
  min-height: 56px;
  margin: 6px 0 0 !important;
  padding: 7px 10px !important;
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) auto auto !important;
  align-items: center !important;
  gap: 12px !important;
  border: 1px solid rgba(255, 139, 31, 0.18) !important;
  border-radius: 8px !important;
  background: linear-gradient(120deg, #0d0c0a 0%, #060606 58%, #100b06 100%) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 12px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.dashboard-body .dashboard-footer::before { content: ""; position: absolute; top: 0; left: 10px; width: 82px; height: 1px; background: linear-gradient(90deg, #ff6a00, #ffbd4a, transparent); box-shadow: 0 0 10px rgba(255, 125, 22, 0.45); }
.dashboard-body .dashboard-footer::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 1px; background: #ff8617; box-shadow: 0 0 10px rgba(255, 125, 22, 0.35); }
.dashboard-body .dashboard-footer-identity { min-width: 0; display: flex; align-items: center; gap: 9px; }
.dashboard-body .dashboard-footer-identity > img { width: 74px !important; height: 37px !important; flex: none; object-fit: contain; filter: none !important; }
.dashboard-body .dashboard-footer-identity > div { min-width: 0; }
.dashboard-body .dashboard-footer-identity strong { color: #eaeaea; font: 700 9px Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .dashboard-footer-identity small { display: block; margin-top: 3px; color: #777; font: 500 8px Inter, sans-serif; }
.dashboard-body .dashboard-footer-identity small span { display: inline; margin: 0; }
.dashboard-body .dashboard-footer-status { display: flex; align-items: center; gap: 8px; }
.dashboard-body .dashboard-footer-status span { min-height: 30px; margin: 0; padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 139, 31, 0.13); border-radius: 5px; color: #9d9d9d; background: rgba(255, 255, 255, 0.018); font: 600 8px Inter, sans-serif; white-space: nowrap; }
.dashboard-body .dashboard-footer-status span:first-child i { width: 7px; height: 7px; border-radius: 50%; background: #34d276; box-shadow: 0 0 10px rgba(52, 210, 118, 0.45); }
.dashboard-body .dashboard-footer-status svg { width: 14px; height: 14px; color: #ff9a24; }
.dashboard-body .dashboard-footer-actions { width: auto !important; display: grid !important; grid-template-columns: repeat(4, minmax(92px, auto)) !important; justify-content: end !important; gap: 6px !important; }
.dashboard-body .dashboard-footer-actions a { width: auto !important; height: 36px !important; min-width: 92px; min-height: 36px; margin: 0 !important; padding: 0 10px !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255, 139, 31, 0.2) !important; border-radius: 5px !important; color: #b7b7b7 !important; background: #0c0b09 !important; text-decoration: none; transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease; }
.dashboard-body .dashboard-footer-actions a:hover { color: #ff9d29 !important; border-color: rgba(255, 139, 31, 0.55) !important; background: #15100b !important; transform: translateY(-2px); }
.dashboard-body .dashboard-footer-actions svg { width: 17px; height: 17px; flex: none; color: #ff941f; }
.dashboard-body .dashboard-footer-actions span { display: inline; margin: 0; font: 700 8px Inter, sans-serif; white-space: nowrap; }

@media (max-width: 900px) {
  .dashboard-body .dashboard-footer { grid-template-columns: minmax(170px, 1fr) auto !important; gap: 10px !important; }
  .dashboard-body .dashboard-footer-status { display: none; }
  .dashboard-body .dashboard-footer-actions { grid-template-columns: repeat(2, minmax(104px, 1fr)) !important; }
}
@media (max-width: 560px) {
  .dashboard-body .dashboard-footer { min-height: 0; margin: 6px 0 0 !important; padding: 9px !important; grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
  .dashboard-body .dashboard-footer-identity { gap: 0; }
  .dashboard-body .dashboard-footer-identity > img,
  .dashboard-body .dashboard-footer-identity strong { display: none !important; }
  .dashboard-body .dashboard-footer-identity small { width: 100%; max-width: none; margin: 0; text-align: center; font-size: 8px; line-height: 1.35; }
  .dashboard-body .dashboard-footer-actions { width: 100% !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; justify-content: stretch !important; gap: 6px !important; }
  .dashboard-body .dashboard-footer-actions a { width: 100% !important; height: 38px !important; min-width: 0; min-height: 38px; padding: 0 7px !important; }
  .dashboard-body .dashboard-footer-actions span { font-size: 8px; }
}

/* Persistent referral controls below the dashboard header. */
.dashboard-body .referral-share-bar {
  position: relative;
  min-height: 64px;
  margin: 0 auto 14px;
  padding: 10px 12px 10px 16px;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 12px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 10px 30px rgba(0, 0, 0, 0.18);
}
.dashboard-body .referral-share-bar > strong { font-size: 12px; }
.dashboard-body .referral-actions { display: grid; grid-template-columns: repeat(4, 40px); gap: 7px; }
.dashboard-body .referral-actions a,
.dashboard-body .referral-actions button { width: 40px; height: 40px; flex: none; }
.dashboard-body .dashboard-footer-brand { width: 150px; height: 68px; display: grid; place-items: center; flex: none; overflow: hidden; }
.dashboard-body .dashboard-footer-brand img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 640px) {
  .dashboard-body .referral-share-bar {
    min-height: 0;
    padding: 9px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .dashboard-body .referral-share-id { grid-column: 1 / -1; padding: 0 0 7px; }
  .dashboard-body .referral-share-bar > strong { min-width: 0; font-size: 10px; }
  .dashboard-body .referral-actions { grid-template-columns: repeat(4, 36px); gap: 5px; }
  .dashboard-body .referral-actions a,
  .dashboard-body .referral-actions button { display: grid !important; width: 36px; height: 36px; }
  .dashboard-body .dashboard-footer-brand { width: 132px; height: 60px; }
}

/* Final mobile and interaction polish. */
.dashboard-body .sidebar-session {
  margin-top: auto;
  padding: 10px 2px 0;
  border-top: 1px solid rgba(255, 139, 31, 0.16);
}
.dashboard-body .sidebar-session button {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 111, 20, 0.3);
  border-radius: 7px;
  background: rgba(255, 95, 0, 0.06);
  color: #ff9b2d;
  font: 700 12px Inter, sans-serif;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.dashboard-body .sidebar-session button:hover:not(:disabled) { border-color: #ff8b1d; background: rgba(255, 104, 0, 0.13); color: #fff; }
.dashboard-body .sidebar-session button:disabled { cursor: not-allowed; opacity: 0.42; }
.dashboard-body .sidebar-session svg { width: 18px; height: 18px; }

.dashboard-body .connection-status {
  min-height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(49, 207, 111, 0.28);
  border-radius: 8px;
  background: rgba(28, 160, 83, 0.08);
  color: #70e698;
  font-size: 10px;
  white-space: nowrap;
}
.dashboard-body .connection-status.hidden { display: none; }
.dashboard-body .connection-status i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #39d774;
  box-shadow: 0 0 0 4px rgba(57, 215, 116, 0.1), 0 0 12px rgba(57, 215, 116, 0.55);
  animation: orbitx-status-pulse 2.2s ease-in-out infinite;
}
.dashboard-body .connection-status b { font-weight: 700; }

.dashboard-body .admin-panel { position: relative; overflow: hidden; }
.dashboard-body .admin-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff7a00, #ffc35c, transparent);
  content: "";
}
.dashboard-body .admin-command-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}
.dashboard-body .admin-command-head h2 { margin: 3px 0 5px; color: #fff; font: 700 20px Orbitron, sans-serif; }
.dashboard-body .admin-command-head p { margin: 0; color: #9d968f; font-size: 12px; }
.dashboard-body .admin-command-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 143, 31, 0.35);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 125, 12, 0.17), rgba(255, 125, 12, 0.035));
  color: #ffa32e;
  box-shadow: 0 0 24px rgba(255, 104, 0, 0.1);
}
.dashboard-body .admin-command-icon svg { width: 26px; height: 26px; }
.dashboard-body .admin-chain-status {
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(52, 211, 112, 0.25);
  border-radius: 999px;
  color: #77e89f;
  background: rgba(32, 171, 88, 0.07);
  font-size: 9px;
  font-weight: 800;
}
.dashboard-body .admin-chain-status i { width: 7px; height: 7px; border-radius: 50%; background: #39d774; box-shadow: 0 0 9px rgba(57, 215, 116, 0.7); }
.dashboard-body .admin-actions {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 139, 31, 0.24);
  border-radius: 8px;
  background: rgba(255, 112, 0, 0.045);
}
.dashboard-body .admin-action-copy { display: flex; align-items: center; gap: 12px; }
.dashboard-body .admin-action-copy > svg { width: 34px; height: 34px; padding: 8px; flex: none; border-radius: 8px; background: rgba(255, 125, 15, 0.12); color: #ffa32e; }
.dashboard-body .admin-action-copy div { display: grid; gap: 4px; }
.dashboard-body .admin-action-copy strong { color: #fff3e3; font-size: 13px; }
.dashboard-body .admin-action-copy span { color: #99918a; font-size: 10px; }
.dashboard-body .admin-actions .primary-btn {
  width: 100%;
  min-height: 54px;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 10px 28px rgba(255, 94, 0, 0.25);
}
.dashboard-body .admin-actions .primary-btn:disabled { filter: saturate(0.45); opacity: 0.72; }
.dashboard-body .admin-leader-console { margin-top: 14px; padding-top: 16px; border-top: 1px solid rgba(255, 139, 31, 0.18); }
.dashboard-body .admin-leader-head { display: flex; align-items: center; gap: 12px; }
.dashboard-body .admin-leader-head > svg { width: 38px; height: 38px; padding: 9px; flex: none; border-radius: 8px; color: #ffa32e; background: rgba(255, 125, 15, 0.11); }
.dashboard-body .admin-leader-head h3 { margin: 2px 0 3px; color: #fff3e3; font: 700 15px Orbitron, sans-serif; }
.dashboard-body .admin-leader-head p { margin: 0; color: #99918a; font-size: 10px; }
.dashboard-body .admin-leader-form { margin-top: 14px; display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(140px, 0.7fr) minmax(150px, 0.8fr) minmax(180px, 0.9fr); align-items: end; gap: 10px; }
.dashboard-body .admin-leader-form label { min-width: 0; display: grid; gap: 6px; color: #b5ada4; font-size: 10px; font-weight: 700; }
.dashboard-body .admin-field { min-width: 0; height: 48px; padding: 0 12px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255, 139, 31, 0.22); border-radius: 7px; background: #090b0d; }
.dashboard-body .admin-field:focus-within { border-color: rgba(255, 153, 43, 0.72); box-shadow: 0 0 0 3px rgba(255, 116, 0, 0.08); }
.dashboard-body .admin-field svg { width: 16px; height: 16px; flex: none; color: #ff9224; }
.dashboard-body .admin-field input,
.dashboard-body .admin-field select { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; color: #fff; background: transparent; font: 600 12px Inter, sans-serif; }
.dashboard-body .admin-field select { cursor: pointer; color-scheme: dark; }
.dashboard-body .admin-sponsor-tools { min-height: 20px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dashboard-body .admin-sponsor-tools button { min-height: 22px; padding: 3px 7px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(255, 139, 31, 0.38); border-radius: 5px; color: #ffb35f; background: rgba(255, 112, 0, 0.08); font: 700 8px Inter, sans-serif; cursor: pointer; }
.dashboard-body .admin-sponsor-tools button svg { width: 11px; height: 11px; }
.dashboard-body .admin-sponsor-tools span { min-width: 0; color: #918a82; font: 600 8px Inter, sans-serif; text-align: right; overflow-wrap: anywhere; }
.dashboard-body .admin-sponsor-tools span[data-status="success"] { color: #5cdb98; }
.dashboard-body .admin-sponsor-tools span[data-status="error"] { color: #ff8175; }
.dashboard-body .admin-leader-form > .primary-btn { width: 100%; min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border-radius: 7px; }
.dashboard-body .admin-leader-form > .primary-btn svg { width: 17px; height: 17px; }
.dashboard-body .admin-leader-policy { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.dashboard-body .admin-leader-policy span { min-height: 32px; padding: 6px 9px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(61, 208, 120, 0.16); border-radius: 6px; color: #9bcfaf; background: rgba(34, 177, 91, 0.045); font-size: 9px; font-weight: 700; }
.dashboard-body .admin-leader-policy svg { width: 14px; height: 14px; }
.dashboard-body .admin-trust-row { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dashboard-body .admin-trust-row span,
.dashboard-body .admin-trust-row a { min-height: 42px; padding: 8px 10px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255, 139, 31, 0.14); border-radius: 7px; background: #0d0c0a; color: #a59d94; font-size: 10px; text-decoration: none; }
.dashboard-body .admin-trust-row a { color: #ffb25b; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease; }
.dashboard-body .admin-trust-row a:hover { border-color: rgba(255, 139, 31, 0.48); background: #15100b; color: #fff; }
.dashboard-body .admin-trust-row svg { width: 16px; height: 16px; color: #ff9823; }

.dashboard-body .dashboard-center > [data-dashboard-view]:not([hidden]),
.dashboard-body .dashboard-panels > [data-dashboard-view]:not([hidden]),
.dashboard-body .dashboard-aside > [data-dashboard-view]:not([hidden]),
.dashboard-body .referral-share-bar:not([hidden]) { animation: orbitx-view-enter 0.34s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.dashboard-body .panel,
.dashboard-body .metric-card,
.dashboard-body .earnings-row > div { transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease; }
@media (hover: hover) and (pointer: fine) {
  .dashboard-body .metric-card:hover,
  .dashboard-body .earnings-row > div:hover { transform: translateY(-3px); border-color: rgba(255, 145, 35, 0.5); }
}
@keyframes orbitx-view-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbitx-status-pulse { 50% { opacity: 0.65; box-shadow: 0 0 0 6px rgba(57, 215, 116, 0.04), 0 0 15px rgba(57, 215, 116, 0.6); } }

@media (max-width: 768px) {
  .dashboard-body .topbar {
    grid-template-columns: 38px 96px minmax(0, 1fr) !important;
    gap: 5px !important;
    padding: 0 7px !important;
  }
  .dashboard-body .topbar-spacer { display: none !important; }
  .dashboard-body .top-mobile-logo { width: 96px !important; height: 48px !important; overflow: hidden; }
  .dashboard-body .top-mobile-logo img { width: 100% !important; height: 100% !important; object-fit: contain; }
  .dashboard-body .topbar .wallet-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 46px minmax(60px, 1fr) 38px !important;
    align-items: center;
    gap: 4px !important;
  }
  .dashboard-body .topbar .language-picker { grid-column: 1; width: 46px !important; min-width: 46px !important; height: 38px; padding: 0 4px !important; }
  .dashboard-body .topbar .language-picker select { width: 38px !important; font-size: 10px !important; }
  .dashboard-body .topbar #connectBtn { grid-column: 2 / 4 !important; min-height: 38px; }
  .dashboard-body .topbar .connection-status { grid-column: 2; min-height: 36px; padding: 0 6px; justify-content: center; gap: 5px; }
  .dashboard-body .topbar .connection-status b { font-size: 9px; }
  .dashboard-body .topbar .disconnect-wallet { grid-column: 3 !important; width: 38px; height: 38px; }

  .dashboard-body .sidebar { padding-bottom: 12px; }
  .dashboard-body .side-nav { height: auto; flex: 1; padding-bottom: 8px; }
  .dashboard-body .sidebar-session { margin: 0 10px; padding-top: 10px; }

  .dashboard-body .tree-panel { padding: 12px !important; overflow: hidden !important; }
  .dashboard-body .tree-head { display: grid; gap: 6px; }
  .dashboard-body .tree-head strong { font-size: 15px; }
  .dashboard-body .tree-head span { max-width: 100%; font-size: 9px; line-height: 1.4; text-align: left; overflow-wrap: anywhere; }
  .dashboard-body .tree-panel .premium-pool-tree {
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 0 4px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: auto 48px auto 54px auto 48px !important;
    row-gap: 7px !important;
    overflow: hidden !important;
  }
  .dashboard-body .premium-pool-tree::before { top: 77px; left: 25%; right: 25%; }
  .dashboard-body .premium-pool-tree::after { top: 169px; left: 12.5%; right: 12.5%; }
  .dashboard-body .premium-pool-tree .tree-tier-label { padding: 3px 7px; font-size: 7px; }
  .dashboard-body .premium-pool-tree .root { min-width: 118px; min-height: 44px; padding: 0 10px; border-radius: 8px; font-size: 13px; }
  .dashboard-body .premium-pool-tree .root::after { height: 19px; }
  .dashboard-body .premium-pool-tree .tree-row.two { gap: 22px; padding: 0 13%; }
  .dashboard-body .premium-pool-tree .tree-row.four { gap: 5px; }
  .dashboard-body .premium-pool-tree .tree-row.two::before { top: -27px; height: 27px; }
  .dashboard-body .premium-pool-tree .tree-row.four::before { top: -27px; height: 27px; }
  .dashboard-body .premium-pool-tree .tree-node { width: 100%; max-width: 72px; min-height: 43px; padding: 5px 3px; border-radius: 7px; font-size: 10px; overflow-wrap: anywhere; }
  .dashboard-body .premium-pool-tree .tree-node.empty::after { font-size: 6px; }

  .dashboard-body .admin-command-head { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .dashboard-body .admin-command-icon { width: 44px; height: 44px; }
  .dashboard-body .admin-command-head h2 { font-size: 15px; }
  .dashboard-body .admin-command-head p { font-size: 10px; line-height: 1.45; }
  .dashboard-body .admin-chain-status { grid-column: 1 / -1; justify-self: start; }
  .dashboard-body .admin-console-grid { gap: 8px; margin: 14px 0; }
  .dashboard-body .admin-console-grid > div { padding: 13px; }
  .dashboard-body .admin-actions { padding: 10px; grid-template-columns: 1fr; gap: 11px; }
  .dashboard-body .admin-actions .primary-btn { min-height: 52px; font-size: 12px; }
  .dashboard-body .admin-leader-form { grid-template-columns: 1fr; }
  .dashboard-body .admin-sponsor-tools { align-items: flex-start; flex-direction: column; gap: 5px; }
  .dashboard-body .admin-sponsor-tools span { text-align: left; }
  .dashboard-body .admin-leader-head { align-items: flex-start; }
  .dashboard-body .admin-leader-head h3 { font-size: 13px; }
  .dashboard-body .admin-leader-form > .primary-btn { min-height: 52px; }
  .dashboard-body .admin-leader-policy { display: grid; grid-template-columns: 1fr; }
  .dashboard-body .admin-trust-row { grid-template-columns: 1fr; }
  .dashboard-body .admin-trust-row span,
  .dashboard-body .admin-trust-row a { justify-content: flex-start; }
}

@media (max-width: 380px) {
  .dashboard-body .topbar { grid-template-columns: 36px 82px minmax(0, 1fr) !important; }
  .dashboard-body .top-mobile-logo { width: 82px !important; }
  .dashboard-body .topbar .wallet-actions { grid-template-columns: 42px minmax(52px, 1fr) 36px !important; }
  .dashboard-body .topbar .language-picker { width: 42px !important; min-width: 42px !important; }
  .dashboard-body .topbar .connection-status { padding: 0 4px; }
  .dashboard-body .topbar .connection-status b { font-size: 8px; }
}

/* Payment clarity and on-chain reward explanations. */
.dashboard-body .income-clarity {
  display: grid;
  grid-template-columns: minmax(250px, .85fr) minmax(0, 2.15fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #3c2a1b;
  border-radius: 7px;
  background: linear-gradient(110deg, #090b0e 0%, #0d1014 62%, #171006 100%);
  box-shadow: inset 3px 0 #ff7412, 0 14px 34px rgba(0,0,0,.18);
}
.dashboard-body .income-clarity-head { min-width: 0; display: flex; align-items: center; gap: 12px; }
.dashboard-body .income-clarity-head > span { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid #75421d; border-radius: 7px; color: #ff9a32; background: #1b1008; }
.dashboard-body .income-clarity-head svg { width: 21px; height: 21px; }
.dashboard-body .income-clarity-head small { color: #f58a29; font: 800 9px Rajdhani, Inter, sans-serif; }
.dashboard-body .income-clarity-head h2 { margin: 2px 0 3px; color: #f6f7f8; font: 800 17px Rajdhani, Inter, sans-serif; }
.dashboard-body .income-clarity-head p { margin: 0; color: #929aa4; font: 600 11px/1.35 Rajdhani, Inter, sans-serif; }
.dashboard-body .income-clarity-grid { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.dashboard-body .income-clarity-grid article { min-width: 0; padding: 11px 12px; border: 1px solid #27313b; border-radius: 6px; background: #0b0f13; }
.dashboard-body .income-clarity-grid article.direct { border-color: #175f50; background: linear-gradient(145deg, #0a1515, #0a0f12); }
.dashboard-body .income-clarity-grid article.rank { border-color: #563479; background: linear-gradient(145deg, #130e1b, #0a0e12); }
.dashboard-body .income-clarity-grid article.auto { border-color: #784018; background: linear-gradient(145deg, #191007, #0a0e12); }
.dashboard-body .income-clarity-grid span { display: flex; align-items: center; gap: 6px; color: #c4cbd2; font: 700 10px Rajdhani, Inter, sans-serif; }
.dashboard-body .income-clarity-grid span svg { width: 14px; height: 14px; }
.dashboard-body .income-clarity-grid strong { display: block; min-width: 0; margin: 7px 0 3px; overflow: hidden; color: #fff; font: 800 19px Rajdhani, Inter, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-body .income-clarity-grid small { display: block; color: #828b95; font: 600 9px/1.3 Rajdhani, Inter, sans-serif; }
.dashboard-body .pool-payment-explainer { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #3b2b1d; border-radius: 6px; background: linear-gradient(90deg, #151008, #0b0e11); }
.dashboard-body .pool-payment-explainer > svg { width: 20px; height: 20px; flex: none; color: #ff9229; }
.dashboard-body .pool-payment-explainer div { min-width: 0; }
.dashboard-body .pool-payment-explainer strong { display: block; color: #f1f3f5; font: 800 12px Rajdhani, Inter, sans-serif; }
.dashboard-body .pool-payment-explainer small { display: block; margin-top: 2px; color: #9aa2aa; font: 600 10px/1.3 Rajdhani, Inter, sans-serif; }
.dashboard-body #events .event-item.event-payment { position: relative; grid-template-columns: minmax(112px, .8fr) minmax(130px, 1fr) minmax(180px, 1.5fr) auto; align-items: center; }
.dashboard-body #events .event-item .event-type { width: fit-content; padding: 4px 7px; border: 1px solid #39434d; border-radius: 4px; color: #c8d0d8; background: #11161b; font: 800 9px Rajdhani, Inter, sans-serif; }
.dashboard-body #events .event-item.direct .event-type { border-color: #17715b; color: #62dfbb; background: #071b17; }
.dashboard-body #events .event-item.auto .event-type { border-color: #9a5018; color: #ffad4d; background: #211107; }
.dashboard-body #events .event-item.rank .event-type { border-color: #68408e; color: #ca8dff; background: #180d22; }
.dashboard-body #events .event-item.event-payment > strong { font-size: 14px; }
.dashboard-body #events .event-item.event-payment > span:not(.event-type) { font-size: 10px; }

@media (max-width: 820px) {
  .dashboard-body .income-clarity { grid-template-columns: 1fr; padding: 12px; }
  .dashboard-body .income-clarity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-body #events .event-item.event-payment { grid-template-columns: minmax(105px, .8fr) minmax(120px, 1fr); }
  .dashboard-body #events .event-item.event-payment > span:not(.event-type),
  .dashboard-body #events .event-item.event-payment > small { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .dashboard-body .income-clarity-head { align-items: flex-start; }
  .dashboard-body .income-clarity-head > span { width: 36px; height: 36px; }
  .dashboard-body .income-clarity-head h2 { font-size: 15px; }
  .dashboard-body .income-clarity-grid { grid-template-columns: 1fr; }
  .dashboard-body .income-clarity-grid article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; padding: 10px; }
  .dashboard-body .income-clarity-grid article strong { grid-column: 2; grid-row: 1; margin: 0; max-width: 130px; font-size: 16px; text-align: right; }
  .dashboard-body .income-clarity-grid article small { grid-column: 1 / -1; margin-top: 5px; }
  .dashboard-body .pool-payment-explainer { align-items: flex-start; }
  .dashboard-body #events .event-item.event-payment { grid-template-columns: 1fr auto; gap: 5px 8px; }
  .dashboard-body #events .event-item.event-payment > strong { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-body .dashboard-center > [data-dashboard-view]:not([hidden]),
  .dashboard-body .dashboard-panels > [data-dashboard-view]:not([hidden]),
  .dashboard-body .dashboard-aside > [data-dashboard-view]:not([hidden]),
  .dashboard-body .referral-share-bar:not([hidden]),
  .dashboard-body .connection-status i { animation: none !important; }
  .dashboard-body .panel,
  .dashboard-body .metric-card,
  .dashboard-body .earnings-row > div { transition: none !important; }
}

/* Keep overview enhancements authoritative after legacy responsive layers. */
@media (min-width: 1181px) {
  .dashboard-body .member-info-bar { grid-template-columns: 1.25fr 0.75fr 0.8fr 0.85fr 0.9fr !important; }
}
.dashboard-body .secondary-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-body .referral-actions { grid-template-columns: repeat(5, 40px) !important; }
@media (max-width: 768px) {
  .dashboard-body .secondary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .dashboard-body .secondary-card:first-child { grid-column: auto !important; }
  .dashboard-body .referral-actions { grid-template-columns: repeat(5, 34px) !important; }
  .dashboard-body .referral-actions a,
  .dashboard-body .referral-actions button { width: 34px !important; height: 34px !important; }
}
@media (max-width: 430px) {
  .dashboard-body .secondary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Compact live Pool Overview card. Auto Pool tree is intentionally unchanged. */
.dashboard-body .pool-overview { width: 100%; max-width: 100%; min-width: 0; padding: 14px; overflow: hidden; }
.pool-overview-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pool-overview-title .eyebrow { color: #ff8e19; font: 700 7px Orbitron, sans-serif; letter-spacing: 0; }
.pool-overview-title h2 { margin: 3px 0 0; color: #fff4e7; font: 800 15px Orbitron, sans-serif; letter-spacing: 0; }
.pool-overview-title > svg { width: 35px; height: 35px; padding: 8px; flex: none; border: 1px solid rgba(255, 139, 31, 0.3); border-radius: 7px; background: rgba(255, 112, 0, 0.08); color: #ff941f; }
.pool-ring-wrap { margin: 10px 0 8px; display: grid; justify-items: center; gap: 7px; }
.dashboard-body .pool-overview .pool-ring {
  width: clamp(104px, 34vw, 132px);
  height: clamp(104px, 34vw, 132px);
  max-width: 100%;
  margin: 0;
  padding: 9px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#ff6900 0 var(--pool-progress), #202b36 var(--pool-progress) 360deg);
  box-shadow: 0 0 0 1px rgba(255, 139, 31, 0.15), 0 15px 34px rgba(0, 0, 0, 0.32), 0 0 28px rgba(255, 105, 0, 0.11);
}
.dashboard-body .pool-overview .pool-ring > div { width: 78%; height: 78%; display: grid; place-content: center; border: 1px solid rgba(255, 139, 31, 0.14); border-radius: 50%; background: radial-gradient(circle at 50% 35%, #17130f, #060606 72%); box-shadow: inset 0 0 22px rgba(255, 116, 0, 0.08); }
.dashboard-body .pool-overview .pool-ring span { color: #fff; font: 800 clamp(20px, 6vw, 25px) Rajdhani, sans-serif; line-height: 1; letter-spacing: 0; }
.dashboard-body .pool-overview .pool-ring small { margin-top: 5px; color: #807a74; font: 700 7px Inter, sans-serif; text-transform: uppercase; }
.pool-ring-status { display: inline-flex; align-items: center; gap: 6px; color: #807d78; font: 600 7px Inter, sans-serif; text-transform: uppercase; }
.pool-ring-status i { width: 6px; height: 6px; border-radius: 50%; background: #35d778; box-shadow: 0 0 9px rgba(53, 215, 120, 0.58); }
.pool-overview-meter { margin: 0 0 9px; }
.pool-overview-meter > div:first-child { margin-bottom: 4px; display: flex; justify-content: space-between; color: #6f6a65; font: 700 7px Orbitron, sans-serif; }
.pool-overview-track { height: 4px; overflow: hidden; border-radius: 99px; background: #211e1b; }
.pool-overview-track i { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #ff5f00, #ffae2d); box-shadow: 0 0 10px rgba(255, 113, 0, 0.38); transition: width 350ms ease; }
.pool-overview-facts { display: grid; gap: 0; border-top: 1px solid rgba(255, 139, 31, 0.12); }
.dashboard-body .pool-overview .pool-legend { min-width: 0; min-height: 39px; margin: 0; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.dashboard-body .pool-overview .pool-legend:first-child { border-top: 0; }
.dashboard-body .pool-overview .pool-legend span { min-width: 0; display: inline-flex; align-items: center; gap: 7px; color: #8f8982; font: 600 9px Inter, sans-serif; }
.dashboard-body .pool-overview .pool-legend span svg { width: 13px; height: 13px; flex: none; color: #ff921e; }
.dashboard-body .pool-overview .pool-legend strong { flex: none; margin: 0; color: #f5eee7; font: 800 13px Rajdhani, sans-serif; }
@media (max-width: 430px) {
  .dashboard-body .pool-overview { padding: 12px; }
  .dashboard-body .pool-overview .pool-ring { width: 112px; height: 112px; }
}

/* Unified OrbitX dashboard visual system. Auto Pool tree is excluded. */
body.dashboard-body,
.dashboard-body button,
.dashboard-body input,
.dashboard-body select,
.dashboard-body textarea,
.dashboard-body table { font-family: Rajdhani, Inter, sans-serif; letter-spacing: 0; }
.dashboard-body h1,
.dashboard-body h2,
.dashboard-body h3,
.dashboard-body .dashboard-section-title h2,
.dashboard-body .section-head h2,
.dashboard-body .premium-panel-head h2,
.dashboard-body .admin-command-head h2,
.dashboard-body .admin-leader-head h3 { font-family: Orbitron, Rajdhani, sans-serif; letter-spacing: 0; }
.dashboard-body .eyebrow,
.dashboard-body .member-info-item > span,
.dashboard-body .stat-card-head b,
.dashboard-body .metric-card > span,
.dashboard-body .secondary-card > span,
.dashboard-body .rank-balance-card > span,
.dashboard-body .distribution-card,
.dashboard-body .side-nav b,
.dashboard-body .mobile-tab-bar a { font-family: Rajdhani, Inter, sans-serif; font-weight: 700; letter-spacing: 0; }
.dashboard-body .member-info-item > strong,
.dashboard-body .earning-card > strong,
.dashboard-body .metric-card > strong,
.dashboard-body .secondary-card > strong,
.dashboard-body .rank-balance-card > strong,
.dashboard-body .rank-transition strong,
.dashboard-body .rank-progress-percent strong,
.dashboard-body .rank-cap-row strong,
.dashboard-body .admin-console-grid strong { font-family: Rajdhani, Inter, sans-serif; font-weight: 800; letter-spacing: 0; }

.dashboard-body .dashboard-center { min-width: 0; }
.dashboard-body .dashboard-center > .panel,
.dashboard-body .dashboard-panels > .panel,
.dashboard-body .dashboard-aside > .panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 139, 31, 0.22);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 113, 7, 0.045), transparent 38%),
    linear-gradient(150deg, #11100e, #070707 72%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 16px 36px rgba(0, 0, 0, 0.24);
}
.dashboard-body .dashboard-center > .panel::after,
.dashboard-body .dashboard-panels > .panel::after,
.dashboard-body .dashboard-aside > .panel::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 76px;
  height: 2px;
  background: linear-gradient(90deg, #ff6200, #ffb233, transparent);
  box-shadow: 0 0 12px rgba(255, 111, 0, 0.36);
  content: "";
  pointer-events: none;
}
.dashboard-body .section-head,
.dashboard-body .premium-panel-head { min-width: 0; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 139, 31, 0.13); }
.dashboard-body .section-head h2,
.dashboard-body .premium-panel-head h2 { color: #fff5e9; font-size: 14px; line-height: 1.25; }
.dashboard-body .section-head > div,
.dashboard-body .premium-panel-head > div { min-width: 0; }
.dashboard-body .section-head svg,
.dashboard-body .premium-panel-head svg { color: #ff951f; }

.dashboard-body .overview-command-bar {
  border-color: rgba(255, 139, 31, 0.24);
  background: linear-gradient(90deg, rgba(255, 105, 0, 0.08), rgba(7, 7, 7, 0.98));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}
.dashboard-body .member-info-bar { border-radius: 7px; background: linear-gradient(105deg, #17130f, #080808 72%); }
.dashboard-body .member-info-item > span { color: #8e8881; font-size: 10px; text-transform: uppercase; }
.dashboard-body .member-info-item > strong { color: #fff5e9; font-size: 16px; }
.dashboard-body .rank-info > strong { color: #ffb033; }

.dashboard-body .earnings-row > .earning-card {
  min-height: 188px;
  padding: 17px;
  border-radius: 7px;
  background: linear-gradient(145deg, #18130e, #080808 70%);
}
.dashboard-body .earnings-row > .earning-card::before { display: none !important; }
.dashboard-body .earning-card .stat-card-head b { color: #fff4e6; font-size: 13px; }
.dashboard-body .earning-card .stat-card-head small { color: #817b75; font-size: 9px; }
.dashboard-body .earnings-row .earning-card > strong { margin-top: 19px; color: #fff; font-size: clamp(25px, 2.2vw, 34px); }
.dashboard-body .earning-source { color: #756f68; }

.dashboard-body .secondary-card,
.dashboard-body .metric-card {
  min-width: 0;
  overflow: hidden;
  border-color: rgba(255, 139, 31, 0.22);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 110, 0, 0.07), #090909 62%);
}
.dashboard-body .secondary-card > span,
.dashboard-body .metric-card > span { color: #928b84; text-transform: uppercase; }
.dashboard-body .secondary-card > strong,
.dashboard-body .metric-card > strong { color: #fff5e9; }
.dashboard-body .secondary-card > small,
.dashboard-body .metric-card > small { color: #706b65; font-family: Rajdhani, Inter, sans-serif; font-weight: 600; }

.dashboard-body .dashboard-section-title {
  min-height: 48px;
  margin: 0 0 10px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 139, 31, 0.19);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.08), transparent);
}
.dashboard-body .dashboard-section-title h2 { color: #fff3e2; font-size: 14px; }

.dashboard-body .table-wrap { max-width: 100%; border: 1px solid rgba(255, 139, 31, 0.12); border-radius: 6px; background: #080808; }
.dashboard-body table { border-collapse: collapse; }
.dashboard-body th { color: #a79f96; background: #12100e; font-family: Orbitron, Rajdhani, sans-serif; font-size: 8px; letter-spacing: 0; }
.dashboard-body td { color: #d7d0c8; font-size: 12px; }
.dashboard-body tbody tr { border-top-color: rgba(255, 139, 31, 0.1); }
.dashboard-body tbody tr:hover { background: rgba(255, 111, 0, 0.045); }
.dashboard-body code { color: #ffb04c; font-family: Rajdhani, monospace; font-weight: 700; }

.dashboard-body .rank-overview-summary,
.dashboard-body .rank-claim-card,
.dashboard-body .distribution-card {
  border-color: rgba(255, 139, 31, 0.2);
  border-radius: 7px;
  background: rgba(255, 111, 0, 0.045);
}
.dashboard-body .rank-transition span,
.dashboard-body .rank-progress-percent span { font-family: Rajdhani, Inter, sans-serif; font-weight: 700; text-transform: uppercase; }
.dashboard-body .rank-transition strong { color: #ddd4ca; }
.dashboard-body .rank-transition.next strong,
.dashboard-body .rank-progress-percent strong { color: #ffad2d; }
.dashboard-body .rank-card,
.dashboard-body .pool-card,
.dashboard-body .rank-balance-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(255, 112, 0, 0.07), #090909 60%);
}
.dashboard-body .rank-card strong,
.dashboard-body .pool-card strong,
.dashboard-body .rank-balance-card strong { font-family: Rajdhani, Inter, sans-serif; font-weight: 800; overflow-wrap: anywhere; }

.dashboard-body #referrals .table-wrap + .table-wrap { margin-top: 12px; }
.dashboard-body #events .event-list { display: grid; gap: 7px; }
.dashboard-body #events .event-item {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 139, 31, 0.13);
  border-radius: 6px;
  background: #0b0a09;
}
.dashboard-body #events .event-item strong { color: #fff1df; font-family: Rajdhani, Inter, sans-serif; font-size: 13px; }
.dashboard-body #events .event-item span,
.dashboard-body #events .event-item small { color: #807a73; font-family: Rajdhani, Inter, sans-serif; }

.dashboard-body .admin-console-grid > div {
  border-color: rgba(255, 139, 31, 0.2);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(255, 110, 0, 0.07), #090909);
}
.dashboard-body .admin-console-grid span { color: #8f8881; font-family: Rajdhani, Inter, sans-serif; font-weight: 700; }
.dashboard-body .admin-console-grid strong { color: #fff1df; }

.dashboard-body .side-nav a { border-radius: 6px; }
.dashboard-body .side-nav b { font-size: 12px; }
.dashboard-body .side-nav a.active { background: linear-gradient(90deg, #ff6000, #b73c00); box-shadow: 0 8px 22px rgba(255, 88, 0, 0.2); }
.dashboard-body .mobile-tab-bar a { font-size: 9px; }
.dashboard-body .primary-btn,
.dashboard-body .secondary-btn,
.dashboard-body .ghost-btn { font-family: Rajdhani, Inter, sans-serif; font-weight: 800; letter-spacing: 0; }

@media (max-width: 768px) {
  .dashboard-body .dashboard-center > .panel,
  .dashboard-body .dashboard-panels > .panel { padding: 13px; }
  .dashboard-body .section-head h2,
  .dashboard-body .premium-panel-head h2 { font-size: 12px; }
  .dashboard-body .earnings-row > .earning-card { min-height: 156px; padding: 12px; }
  .dashboard-body .earnings-row .earning-card > strong { font-size: 20px; }
  .dashboard-body .dashboard-section-title { min-height: 43px; padding: 0 11px; }
  .dashboard-body .dashboard-section-title h2 { font-size: 12px; }
  .dashboard-body th { font-size: 7px; }
  .dashboard-body td { font-size: 10px; }
}

@media (max-width: 430px) {
  .dashboard-body .member-info-item > strong { font-size: 14px; }
  .dashboard-body .secondary-card > strong,
  .dashboard-body .metric-card > strong { font-size: 16px; }
  .dashboard-body .section-head { align-items: flex-start; gap: 8px; }
  .dashboard-body .section-head .ghost-btn { min-height: 34px; padding-inline: 9px; }
}

/* Compact professional overview hierarchy. */
.dashboard-body .dashboard-section-title h2,
.dashboard-body .section-head h2,
.dashboard-body .premium-panel-head h2,
.dashboard-body .admin-command-head h2,
.dashboard-body .admin-leader-head h3 {
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (min-width: 981px) {
  .dashboard-body .member-info-bar {
    min-height: 72px;
    padding: 7px 10px;
    grid-template-columns: minmax(230px, 1.35fr) repeat(3, minmax(118px, .72fr)) minmax(145px, .86fr) !important;
    align-items: stretch;
  }
  .dashboard-body .member-info-item {
    min-width: 0;
    min-height: 56px;
    padding: 5px 12px 5px 47px;
    align-content: center;
    gap: 1px;
  }
  .dashboard-body .member-info-item > svg {
    left: 9px;
    width: 29px;
    height: 29px;
    padding: 7px;
    border-radius: 6px;
  }
  .dashboard-body .member-info-item.wallet-info { padding-right: 37px; }
  .dashboard-body .member-info-item.wallet-info button { right: 7px; bottom: 14px; width: 26px; height: 26px; }
  .dashboard-body .member-info-item > span { font-size: 9px; line-height: 1.1; }
  .dashboard-body .member-info-item > strong { font-size: 14px; line-height: 1.15; }
  .dashboard-body .rank-info > strong { min-width: 92px; padding: 4px 12px; }

  .dashboard-body .earnings-row { gap: 10px; }
  .dashboard-body .earnings-row > .earning-card {
    min-height: 132px;
    height: 132px;
    padding: 13px 14px;
    justify-content: space-between;
  }
  .dashboard-body .earnings-row .stat-card-head { align-items: center; gap: 9px; }
  .dashboard-body .earnings-row .stat-card-head > svg {
    width: 35px;
    height: 35px;
    padding: 8px;
    border-radius: 7px;
  }
  .dashboard-body .earning-card .stat-card-head b { font-size: 12px; line-height: 1.1; }
  .dashboard-body .earning-card .stat-card-head small { margin-top: 2px; font-size: 8px; line-height: 1.1; }
  .dashboard-body .earnings-row .earning-card > strong {
    margin: 8px 0 2px;
    font-size: clamp(22px, 1.85vw, 29px);
    line-height: 1;
  }
  .dashboard-body .earning-source { font-size: 8px; line-height: 1.1; }
  .dashboard-body .earning-source svg { width: 11px; height: 11px; }
}

@media (max-width: 980px) {
  .dashboard-body .member-info-bar {
    padding: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0;
  }
  .dashboard-body .member-info-item {
    min-height: 62px;
    padding: 5px 9px 5px 44px;
  }
  .dashboard-body .member-info-item > svg { left: 8px; width: 28px; height: 28px; padding: 7px; }
  .dashboard-body .member-info-item.wallet-info { grid-column: 1 / -1; min-height: 58px; padding-right: 40px; }
  .dashboard-body .member-info-item.wallet-info button { right: 8px; bottom: 14px; }
  .dashboard-body .member-info-item > span { font-size: 9px; }
  .dashboard-body .member-info-item > strong { font-size: 14px; }
  .dashboard-body .rank-info > strong { min-width: 0; padding: 4px 9px; }

  .dashboard-body .earnings-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .dashboard-body .earnings-row > .earning-card {
    min-height: 124px;
    height: 124px;
    padding: 11px;
  }
  .dashboard-body .earnings-row .stat-card-head > svg { width: 31px; height: 31px; padding: 7px; border-radius: 7px; }
  .dashboard-body .earning-card .stat-card-head b { font-size: 11px; }
  .dashboard-body .earning-card .stat-card-head small { font-size: 7px; }
  .dashboard-body .earnings-row .earning-card > strong { margin: 7px 0 1px; font-size: 21px; }
  .dashboard-body .earning-source { font-size: 7px; }
}

@media (max-width: 430px) {
  .dashboard-body .member-info-bar { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .dashboard-body .member-info-item { min-height: 57px; padding-left: 38px; padding-right: 6px; }
  .dashboard-body .member-info-item > svg { left: 6px; width: 25px; height: 25px; padding: 6px; }
  .dashboard-body .member-info-item > strong { font-size: 12px; }
  .dashboard-body .earnings-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .dashboard-body .earnings-row > .earning-card { min-height: 116px; height: 116px; padding: 10px; }
  .dashboard-body .earnings-row .stat-card-head { gap: 6px; }
  .dashboard-body .earnings-row .stat-card-head > svg { width: 28px; height: 28px; padding: 6px; }
  .dashboard-body .earning-card .stat-card-head b { font-size: 10px; }
  .dashboard-body .earnings-row .earning-card > strong { font-size: 18px; }
  .dashboard-body .earning-source { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Earnings values must remain visible at every responsive width. */
.dashboard-body .earnings-row > .earning-card {
  display: grid;
  grid-template-rows: auto minmax(24px, auto) auto;
  align-content: stretch;
  gap: 8px;
}
.dashboard-body .earnings-row > .earning-card::before,
.dashboard-body .earnings-row > .earning-card::after { display: none !important; content: none !important; }
.dashboard-body .earnings-row .earning-card > .stat-card-head,
.dashboard-body .earnings-row .earning-card > strong,
.dashboard-body .earnings-row .earning-card > .earning-source {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.dashboard-body .earnings-row .earning-card > strong {
  width: 100%;
  margin: 0;
  align-self: center;
  overflow: visible;
  overflow-wrap: normal;
  text-overflow: clip;
  white-space: nowrap;
}
.dashboard-body .earnings-row .earning-card > .earning-source {
  min-height: 0;
  margin: 0;
  padding: 0;
  align-self: end;
}

@media (max-width: 980px) {
  .dashboard-body .earnings-row > .earning-card {
    height: auto;
    min-height: 122px;
    grid-template-rows: auto minmax(23px, auto) auto;
    gap: 7px;
  }
  .dashboard-body .earnings-row .earning-card > strong {
    margin: 0;
    font-size: clamp(18px, 4.4vw, 22px);
  }
  .dashboard-body .earnings-row .earning-card > .earning-source { min-height: 0; padding: 0; }
}

@media (max-width: 430px) {
  .dashboard-body .earnings-row > .earning-card {
    height: auto;
    min-height: 118px;
    padding: 10px;
    gap: 6px;
  }
  .dashboard-body .earning-card .stat-card-head small { display: none; }
  .dashboard-body .earnings-row .earning-card > strong {
    font-size: clamp(16px, 4.8vw, 19px);
    line-height: 1.05;
  }
  .dashboard-body .earnings-row .earning-card > .earning-source {
    font-size: 7px;
    line-height: 1.1;
  }
}

/* Promoted claimable Rank Pool reward statistic. */
.dashboard-body .claimable-rank-banner {
  position: relative;
  min-width: 0;
  min-height: 92px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(170px, .55fr) minmax(170px, .55fr);
  align-items: center;
  gap: 14px;
  overflow: visible;
  border: 1px solid rgba(255, 142, 31, .38);
  border-radius: 7px;
  background: linear-gradient(105deg, #16110c, #090909 58%, #171008);
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 16px 32px rgba(0,0,0,.25);
}
.dashboard-body .claimable-rank-banner::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(#ffb12f, #ff5e00);
  box-shadow: 0 0 16px rgba(255, 112, 0, .55);
  content: "";
}
.dashboard-body .claimable-rank-main { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; }
.dashboard-body .claimable-rank-icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 153, 35, .45);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(255, 140, 16, .2), rgba(255, 94, 0, .05));
  color: #ffae32;
}
.dashboard-body .claimable-rank-icon > svg { width: 23px; height: 23px; }
.dashboard-body .claimable-rank-icon > span { position: absolute; right: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: #39da78; box-shadow: 0 0 9px rgba(57,218,120,.7); }
.dashboard-body .claimable-rank-main .eyebrow { color: #ff9422; font-size: 8px; }
.dashboard-body .claimable-rank-main h2 { margin: 2px 0 1px; color: #fff5e8; font: 800 17px Rajdhani, Inter, sans-serif; letter-spacing: 0; text-transform: uppercase; }
.dashboard-body .claimable-rank-main p { margin: 0; color: #827b73; font: 600 10px/1.25 Rajdhani, Inter, sans-serif; }
.dashboard-body .claimable-rank-value { min-width: 0; padding-left: 14px; display: grid; gap: 1px; border-left: 1px solid rgba(255, 142, 31, .17); }
.dashboard-body .claimable-rank-value span,
.dashboard-body .claimable-rank-value small { color: #817a73; font: 700 8px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .claimable-rank-value strong { max-width: 100%; overflow: hidden; color: #ffb13b; font: 800 clamp(20px, 2vw, 27px)/1 Rajdhani, Inter, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-body .claim-reward-btn {
  position: relative;
  min-height: 48px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 7px 18px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  border: 1px solid #ff9b20;
  border-radius: 6px;
  background: linear-gradient(100deg, #ff5f00, #ff9c19);
  color: #090909;
  box-shadow: 0 8px 22px rgba(255, 91, 0, .22), inset 0 1px rgba(255,255,255,.28);
  font-family: Rajdhani, Inter, sans-serif;
  cursor: pointer;
}
.dashboard-body .claim-reward-btn > svg { width: 17px; height: 17px; }
.dashboard-body .claim-reward-btn b { font-size: 13px; font-weight: 800; text-transform: uppercase; }
.dashboard-body .claim-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #1bdf6b; box-shadow: 0 0 0 0 rgba(27,223,107,.7); }
.dashboard-body .claim-reward-btn:not(:disabled) .claim-live-dot { animation: claim-ready-pulse 1.45s ease-out infinite; }
.dashboard-body .claim-reward-btn:not(:disabled) { animation: claim-button-glow 2.2s ease-in-out infinite; }
.dashboard-body .claim-reward-btn:disabled { border-color: #4a4033; background: #2a251f; color: #756d63; box-shadow: none; cursor: not-allowed; }
.dashboard-body .claim-reward-btn:disabled .claim-live-dot { background: #625d57; box-shadow: none; }
@keyframes claim-ready-pulse { 0% { box-shadow: 0 0 0 0 rgba(27,223,107,.65); } 70%, 100% { box-shadow: 0 0 0 7px rgba(27,223,107,0); } }
@keyframes claim-button-glow { 0%, 100% { box-shadow: 0 8px 22px rgba(255,91,0,.2), 0 0 0 rgba(255,155,32,0); } 50% { box-shadow: 0 8px 25px rgba(255,91,0,.28), 0 0 16px rgba(255,155,32,.2); } }

@media (max-width: 980px) {
  .dashboard-body .claimable-rank-banner { grid-template-columns: minmax(0, 1fr) minmax(145px, .48fr); }
  .dashboard-body .claim-reward-btn { grid-column: 1 / -1; min-height: 45px; }
}
@media (max-width: 540px) {
  .dashboard-body .claimable-rank-banner { padding: 12px; grid-template-columns: minmax(0, 1fr) minmax(102px, .62fr); gap: 10px; }
  .dashboard-body .claimable-rank-main { grid-template-columns: 37px minmax(0, 1fr); gap: 8px; }
  .dashboard-body .claimable-rank-icon { width: 37px; height: 37px; }
  .dashboard-body .claimable-rank-icon > svg { width: 18px; height: 18px; }
  .dashboard-body .claimable-rank-main h2 { font-size: 13px; line-height: 1.08; }
  .dashboard-body .claimable-rank-main p { display: none; }
  .dashboard-body .claimable-rank-value { padding-left: 9px; }
  .dashboard-body .claimable-rank-value strong { font-size: 18px; }
  .dashboard-body .claim-reward-btn { min-height: 43px; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-body .claim-reward-btn,
  .dashboard-body .claim-live-dot { animation: none !important; }
}

/* Premium Auto Pool progress summary. Binary tree styles remain untouched. */
.dashboard-body #pools > .premium-panel-head { align-items: center; }
.dashboard-body .auto-pool-live {
  min-height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(46, 214, 113, .25);
  border-radius: 99px;
  background: rgba(25, 141, 74, .07);
  color: #76d99c;
  font: 700 8px Rajdhani, Inter, sans-serif;
  text-transform: uppercase;
}
.dashboard-body .auto-pool-live > i { width: 6px; height: 6px; border-radius: 50%; background: #36d978; box-shadow: 0 0 9px rgba(54,217,120,.7); animation: pool-live-pulse 1.8s ease-out infinite; }
.dashboard-body .auto-pool-summary { padding-top: 14px; display: grid; gap: 13px; }
.dashboard-body .auto-pool-facts {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(88px, .65fr));
  gap: 8px;
}
.dashboard-body .auto-pool-facts > div {
  min-width: 0;
  min-height: 69px;
  padding: 10px 11px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 139, 31, .17) !important;
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(255, 113, 0, .07), rgba(8,8,8,.9));
}
.dashboard-body .auto-pool-facts > div:first-child { padding-left: 11px; }
.dashboard-body .auto-pool-facts span { min-width: 0; display: inline-flex; align-items: center; gap: 5px; color: #817a72; font: 700 8px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .auto-pool-facts span svg { width: 12px; height: 12px; flex: none; color: #ff941e; }
.dashboard-body .auto-pool-facts strong { max-width: 100%; overflow: hidden; color: #fff3e3; font: 800 19px/1 Rajdhani, Inter, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-body .auto-pool-facts .pool-identity { border-color: rgba(255, 139, 31, .34) !important; background: linear-gradient(135deg, rgba(255, 113, 0, .14), rgba(8,8,8,.94)); }
.dashboard-body .auto-pool-facts .pool-identity strong { color: #ffad32; font-size: 21px; }
.dashboard-body .slot-progress-head { padding-top: 2px; align-items: end; }
.dashboard-body .slot-progress-head > div { gap: 2px; }
.dashboard-body .slot-progress-head span { color: #817a72; font: 700 8px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .slot-progress-head strong { color: #f4ebdf; font: 800 15px Rajdhani, Inter, sans-serif; }
.dashboard-body .slot-progress-head b { color: #ffad32; font: 800 17px Rajdhani, Inter, sans-serif; }
.dashboard-body .auto-progress-bar { height: 7px; overflow: hidden; border: 1px solid rgba(255, 139, 31, .13); border-radius: 99px; background: #18130f; }
.dashboard-body .auto-progress-bar > span { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff5e00, #ffad2d); box-shadow: 0 0 14px rgba(255,107,0,.35); }
.dashboard-body .slot-indicators { min-height: 32px; gap: 7px; flex-wrap: nowrap; }
.dashboard-body .slot-indicators i { position: relative; width: 25px; height: 25px; flex: none; border: 1px dashed #614a35; background: #0c0a08; }
.dashboard-body .slot-indicators i::after { position: absolute; inset: 50% auto auto 50%; width: 5px; height: 5px; border-radius: 50%; background: #554b42; transform: translate(-50%, -50%); content: ""; }
.dashboard-body .slot-indicators i.filled { border-style: solid; border-color: #ff9a1c; background: linear-gradient(145deg, #ff7a00, #d94b00); box-shadow: 0 0 13px rgba(255,106,0,.3); }
.dashboard-body .slot-indicators i.filled::after { background: #fff2d9; box-shadow: 0 0 6px rgba(255,255,255,.6); }
.dashboard-body .auto-pool-foot { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 8px; }
.dashboard-body .auto-pool-foot > div { min-width: 0; min-height: 78px; padding: 11px; border-radius: 6px; }
.dashboard-body .completion-reward { position: relative; padding-left: 46px !important; grid-template-columns: 1fr; }
.dashboard-body .completion-reward > svg { position: absolute; left: 11px; top: 50%; width: 27px; height: 27px; padding: 6px; border: 1px solid rgba(255, 153, 31, .28); border-radius: 6px; background: rgba(255,113,0,.08); color: #ff9c24; transform: translateY(-50%); }
.dashboard-body .completion-reward > span { color: #817a72; font: 700 8px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .auto-pool-foot > .completion-reward > strong { color: #ffb237; font: 800 18px/1 Rajdhani, Inter, sans-serif; white-space: nowrap; }
.dashboard-body .completion-reward > small { color: #6d665f; font: 600 8px/1.15 Rajdhani, Inter, sans-serif; }
.dashboard-body .placement-status { grid-template-columns: 31px minmax(0, 1fr) !important; gap: 7px; border-color: rgba(55, 213, 119, .25) !important; background: linear-gradient(145deg, rgba(25,140,74,.08), rgba(8,8,8,.9)) !important; }
.dashboard-body .placement-status > svg { width: 24px; height: 24px; padding: 5px; border: 1px solid rgba(55,213,119,.25); border-radius: 50%; }
.dashboard-body .placement-status > span { min-width: 0; gap: 2px; }
.dashboard-body .placement-status > span strong { overflow: hidden; color: #73dea0; font: 800 11px Rajdhani, Inter, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-body .placement-status > span small { color: #716c66; font: 600 8px/1.2 Rajdhani, Inter, sans-serif; }
.dashboard-body .placement-status.pending { border-color: rgba(255, 174, 45, .28) !important; background: linear-gradient(145deg, rgba(255,145,20,.07), rgba(8,8,8,.9)) !important; }
.dashboard-body .placement-status.pending > svg,
.dashboard-body .placement-status.pending > span strong { color: #ffb332; }
@keyframes pool-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(54,217,120,.6); } 70%,100% { box-shadow: 0 0 0 6px rgba(54,217,120,0); } }

@media (max-width: 540px) {
  .dashboard-body .auto-pool-summary { padding-top: 11px; gap: 10px; }
  .dashboard-body .auto-pool-facts { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(66px, .7fr)); gap: 6px; }
  .dashboard-body .auto-pool-facts > div { min-height: 60px; padding: 8px; }
  .dashboard-body .auto-pool-facts > div:first-child { padding-left: 8px; }
  .dashboard-body .auto-pool-facts span { font-size: 7px; }
  .dashboard-body .auto-pool-facts strong { font-size: 15px; }
  .dashboard-body .auto-pool-facts .pool-identity strong { font-size: 17px; }
  .dashboard-body .auto-pool-foot { grid-template-columns: 1fr; }
  .dashboard-body .auto-pool-foot > div { min-height: 67px; }
  .dashboard-body .completion-reward { padding-left: 45px !important; }
  .dashboard-body .placement-status > span strong { font-size: 10px; }
  .dashboard-body .slot-indicators { overflow-x: auto; scrollbar-width: none; }
  .dashboard-body .slot-indicators::-webkit-scrollbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-body .auto-pool-live > i { animation: none !important; }
}

/* Stable premium earnings grid. Overrides obsolete last-card spanning. */
.dashboard-body .earnings-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 9px;
  overflow: visible;
}
.dashboard-body .earnings-row > .earning-card,
.dashboard-body .earnings-row > .earning-card:last-child {
  --earning-accent: #ff8720;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 128px;
  height: auto;
  padding: 13px;
  display: grid;
  grid-column: auto !important;
  grid-template-columns: minmax(0, 1fr) 36px;
  grid-template-rows: auto minmax(31px, auto) auto;
  column-gap: 9px;
  row-gap: 7px;
  align-content: stretch;
  overflow: hidden;
  container-type: inline-size;
  border: 1px solid color-mix(in srgb, var(--earning-accent) 45%, #25201b);
  border-radius: 7px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--earning-accent) 9%, #11100e), #080808 68%);
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 12px 26px rgba(0,0,0,.22);
}
.dashboard-body .earning-card.total-card { --earning-accent: #ff7200; }
.dashboard-body .earning-card.direct-card { --earning-accent: #29d486; }
.dashboard-body .earning-card.rank-card-main { --earning-accent: #cf7bff; }
.dashboard-body .earning-card.auto-card { --earning-accent: #ff9c28; }
.dashboard-body .earnings-row > .earning-card::before {
  position: absolute;
  inset: 0 0 auto;
  width: auto;
  height: 2px;
  display: block !important;
  background: linear-gradient(90deg, var(--earning-accent), transparent 78%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--earning-accent) 35%, transparent);
  content: "" !important;
  pointer-events: none;
}
.dashboard-body .earnings-row > .earning-card::after { display: none !important; content: none !important; }
.dashboard-body .earnings-row .stat-card-head {
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.dashboard-body .earnings-row .stat-card-head > svg {
  width: 35px;
  height: 35px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--earning-accent) 38%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--earning-accent) 10%, transparent);
  color: var(--earning-accent);
}
.dashboard-body .earnings-row .stat-card-head span { min-width: 0; display: grid; gap: 1px; }
.dashboard-body .earnings-row .stat-card-head b {
  min-width: 0;
  overflow: hidden;
  color: #fff3e6;
  font: 800 12px/1.1 Rajdhani, Inter, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-body .earnings-row .stat-card-head small {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #77716b;
  font: 600 8px/1.1 Rajdhani, Inter, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-body .earnings-row .earning-card > strong {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  margin: 0;
  align-self: center;
  overflow: hidden;
  color: #fff;
  font: 800 clamp(17px, 10.5cqi, 29px)/1 Rajdhani, Inter, sans-serif;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}
.dashboard-body .earnings-row .earning-source {
  grid-column: 1 / -1;
  grid-row: 3;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 7px 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  border-top: 1px solid color-mix(in srgb, var(--earning-accent) 14%, transparent);
  color: #716b65;
  font: 700 8px/1 Rajdhani, Inter, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-body .earnings-row .earning-source > svg { width: 11px; height: 11px; flex: none; color: var(--earning-accent); }

@media (max-width: 1100px) {
  .dashboard-body .earnings-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .dashboard-body .earnings-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 7px; }
  .dashboard-body .earnings-row > .earning-card,
  .dashboard-body .earnings-row > .earning-card:last-child {
    min-height: 116px;
    padding: 10px;
    grid-template-columns: minmax(0, 1fr) 29px;
    grid-template-rows: auto minmax(27px, auto) auto;
    column-gap: 6px;
    row-gap: 5px;
  }
  .dashboard-body .earnings-row .stat-card-head { grid-template-columns: 28px minmax(0, 1fr); gap: 6px; }
  .dashboard-body .earnings-row .stat-card-head > svg { width: 28px; height: 28px; padding: 6px; }
  .dashboard-body .earnings-row .stat-card-head b { font-size: 10px; }
  .dashboard-body .earnings-row .stat-card-head small { display: none; }
  .dashboard-body .earnings-row .earning-card > strong { font-size: clamp(15px, 10.5cqi, 19px); }
  .dashboard-body .earnings-row .earning-source { padding-top: 6px; font-size: 7px; }
}
@media (max-width: 340px) {
  .dashboard-body .earnings-row { grid-template-columns: 1fr !important; }
  .dashboard-body .earnings-row > .earning-card { min-height: 108px; }
  .dashboard-body .earnings-row .earning-card > strong { font-size: 20px; }
}

/* International dashboard palette and data-led infographic layer. */
body.dashboard-body {
  --premium-ink: #080d14;
  --premium-surface: #101821;
  --premium-surface-raised: #151f2a;
  --premium-line: rgba(135, 157, 181, .2);
  --premium-orange: #ff7a16;
  --premium-gold: #f6b73c;
  --premium-cyan: #35c8e8;
  --premium-emerald: #36d58b;
  --premium-violet: #a978ff;
  background-color: var(--premium-ink);
  background-image:
    linear-gradient(rgba(87, 110, 136, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 110, 136, .035) 1px, transparent 1px),
    linear-gradient(135deg, #080d14, #0b1119 54%, #080c12);
  background-size: 36px 36px, 36px 36px, 100% 100%;
}
.dashboard-body .main,
.dashboard-body .sidebar.closed + .main {
  background:
    linear-gradient(120deg, rgba(255, 122, 22, .035), transparent 32%),
    linear-gradient(180deg, rgba(20, 31, 43, .72), rgba(8, 13, 20, .92));
}
.dashboard-body .overview-command-bar,
.dashboard-body .member-info-bar,
.dashboard-body .referral-share-bar {
  border-color: var(--premium-line);
  background: linear-gradient(110deg, rgba(23, 34, 46, .98), rgba(12, 18, 26, .98));
  box-shadow: inset 0 1px rgba(255,255,255,.045), 0 12px 26px rgba(0,0,0,.18);
}
.dashboard-body .member-info-item { border-left-color: rgba(128, 153, 179, .16); }
.dashboard-body .member-info-item > svg {
  border-color: rgba(53, 200, 232, .32);
  background: rgba(53, 200, 232, .08);
  color: var(--premium-cyan);
}
.dashboard-body .member-info-item:nth-child(2) > svg { border-color: rgba(169,120,255,.32); background: rgba(169,120,255,.09); color: var(--premium-violet); }
.dashboard-body .member-info-item:nth-child(3) > svg { border-color: rgba(54,213,139,.3); background: rgba(54,213,139,.08); color: var(--premium-emerald); }
.dashboard-body .member-info-item:nth-child(4) > svg { border-color: rgba(246,183,60,.3); background: rgba(246,183,60,.08); color: var(--premium-gold); }
.dashboard-body .member-info-item:nth-child(5) > svg { border-color: rgba(255,122,22,.34); background: rgba(255,122,22,.09); color: var(--premium-orange); }

.dashboard-body .earnings-row > .earning-card,
.dashboard-body .earnings-row > .earning-card:last-child {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--earning-accent) 12%, #17212c), #0d141c 70%);
  border-color: color-mix(in srgb, var(--earning-accent) 46%, #31404f);
  box-shadow: inset 0 1px rgba(255,255,255,.055), 0 13px 30px rgba(0,0,0,.22);
}
.dashboard-body .earnings-row > .earning-card::before {
  height: 3px;
  background: linear-gradient(90deg, var(--earning-accent), color-mix(in srgb, var(--earning-accent) 38%, transparent) 55%, transparent);
}
.dashboard-body .earnings-row .stat-card-head > svg {
  background: color-mix(in srgb, var(--earning-accent) 14%, #101720);
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 6px 15px color-mix(in srgb, var(--earning-accent) 12%, transparent);
}
.dashboard-body .earnings-row .earning-source { color: #92a0ae; }

.dashboard-body .secondary-card {
  --secondary-accent: var(--premium-cyan);
  border-color: color-mix(in srgb, var(--secondary-accent) 35%, #33404e);
  background: linear-gradient(130deg, color-mix(in srgb, var(--secondary-accent) 9%, #17212b), #0e151d 72%);
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 10px 22px rgba(0,0,0,.16);
}
.dashboard-body .secondary-card:nth-child(2) { --secondary-accent: var(--premium-emerald); }
.dashboard-body .secondary-card:nth-child(3) { --secondary-accent: var(--premium-violet); }
.dashboard-body .secondary-card:nth-child(4) { --secondary-accent: var(--premium-cyan); }
.dashboard-body .secondary-card:nth-child(5) { --secondary-accent: var(--premium-gold); }
.dashboard-body .secondary-card:nth-child(6) { --secondary-accent: var(--premium-orange); }
.dashboard-body .secondary-card > svg {
  border-color: color-mix(in srgb, var(--secondary-accent) 36%, transparent);
  background: color-mix(in srgb, var(--secondary-accent) 10%, #111922);
  color: var(--secondary-accent);
}
.dashboard-body .secondary-card > span { color: #aab5c0; }
.dashboard-body .secondary-card > strong { color: #f8fbff; }
.dashboard-body .secondary-card > small { color: #7e8b98; }

.dashboard-body .dashboard-center > .panel,
.dashboard-body .dashboard-panels > .panel,
.dashboard-body .dashboard-aside > .panel {
  border-color: var(--premium-line);
  background: linear-gradient(145deg, rgba(21,31,42,.98), rgba(11,17,24,.98) 72%);
  box-shadow: inset 0 1px rgba(255,255,255,.045), 0 16px 34px rgba(0,0,0,.2);
}
.dashboard-body .dashboard-panels > #rank {
  border-color: rgba(169,120,255,.28);
  background: linear-gradient(145deg, rgba(33,26,51,.98), rgba(13,18,27,.98) 66%);
}
.dashboard-body .dashboard-panels > #pools {
  border-color: rgba(53,200,232,.26);
  background: linear-gradient(145deg, rgba(17,39,48,.98), rgba(12,18,26,.98) 66%);
}
.dashboard-body #events {
  border-color: rgba(54,213,139,.24);
  background: linear-gradient(145deg, rgba(17,39,35,.96), rgba(12,18,25,.98) 62%);
}
.dashboard-body .dashboard-panels > #rank::after { background: linear-gradient(90deg, var(--premium-violet), transparent); }
.dashboard-body .dashboard-panels > #pools::after { background: linear-gradient(90deg, var(--premium-cyan), transparent); }
.dashboard-body #events::after { background: linear-gradient(90deg, var(--premium-emerald), transparent); }
.dashboard-body .section-head,
.dashboard-body .premium-panel-head { border-bottom-color: rgba(139,159,179,.16); }
.dashboard-body .section-head h2,
.dashboard-body .premium-panel-head h2 { color: #f7fafc; }

.dashboard-body .overview-infographics {
  position: relative;
  min-width: 0;
  padding: 15px;
  display: grid;
  gap: 13px;
  overflow: hidden;
  border: 1px solid rgba(112, 142, 171, .25);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(23,34,46,.98), rgba(11,17,24,.98));
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 15px 32px rgba(0,0,0,.2);
}
.dashboard-body .overview-infographics::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--premium-orange), var(--premium-violet) 35%, var(--premium-cyan) 68%, var(--premium-emerald));
  content: "";
}
.dashboard-body .insight-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dashboard-body .insight-heading .eyebrow { color: var(--premium-orange); font: 800 8px Rajdhani, Inter, sans-serif; }
.dashboard-body .insight-heading h2 { margin: 2px 0 0; color: #f8fafc; font: 800 15px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .insight-verified { min-height: 28px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(54,213,139,.25); border-radius: 99px; background: rgba(54,213,139,.07); color: #79dca8; font: 700 8px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .insight-verified svg { width: 13px; height: 13px; }
.dashboard-body .insight-grid { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .9fr); gap: 10px; }
.dashboard-body .insight-card {
  --insight-accent: var(--premium-orange);
  min-width: 0;
  min-height: 150px;
  padding: 13px;
  display: grid;
  align-content: start;
  gap: 13px;
  border: 1px solid color-mix(in srgb, var(--insight-accent) 28%, #354351);
  border-radius: 7px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--insight-accent) 7%, #18222d), #0e151d 72%);
}
.dashboard-body .network-insight { --insight-accent: var(--premium-cyan); }
.dashboard-body .protocol-insight { --insight-accent: var(--premium-violet); }
.dashboard-body .insight-card-head { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; }
.dashboard-body .insight-card-head > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--insight-accent) 36%, transparent); border-radius: 7px; background: color-mix(in srgb, var(--insight-accent) 11%, #111922); color: var(--insight-accent); }
.dashboard-body .insight-card-head svg { width: 17px; height: 17px; }
.dashboard-body .insight-card-head > div { min-width: 0; display: grid; gap: 1px; }
.dashboard-body .insight-card-head strong { overflow: hidden; color: #f5f8fb; font: 800 12px Rajdhani, Inter, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-body .insight-card-head small { overflow: hidden; color: #778593; font: 600 8px Rajdhani, Inter, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-body .income-composition { display: grid; gap: 9px; }
.dashboard-body .income-composition > div { min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr) 35px; align-items: center; gap: 8px; }
.dashboard-body .income-composition span { color: #9ba8b5; font: 700 9px Rajdhani, Inter, sans-serif; }
.dashboard-body .income-composition i { height: 6px; overflow: hidden; border-radius: 99px; background: #27323d; }
.dashboard-body .income-composition b { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #ff6b15, #f6b73c); transition: width .45s ease; }
.dashboard-body .income-composition > div:nth-child(2) b { background: linear-gradient(90deg, #8f5eff, #c58cff); }
.dashboard-body .income-composition > div:nth-child(3) b { background: linear-gradient(90deg, #21accb, #4bd4e9); }
.dashboard-body .income-composition strong { color: #dbe3eb; font: 800 10px Rajdhani, Inter, sans-serif; text-align: right; }
.dashboard-body .network-composition { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 12px; }
.dashboard-body .composition-ring { width: 78px; height: 78px; padding: 7px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--premium-cyan) 0 var(--direct-share), var(--premium-violet) var(--direct-share) 360deg); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.dashboard-body .composition-ring > span { width: 100%; height: 100%; display: grid; place-content: center; border-radius: 50%; background: #101821; text-align: center; }
.dashboard-body .composition-ring strong { color: #f7fbff; font: 800 18px/1 Rajdhani, Inter, sans-serif; }
.dashboard-body .composition-ring small { margin-top: 3px; color: #758391; font: 700 7px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .composition-legend { display: grid; gap: 8px; }
.dashboard-body .composition-legend > div { min-width: 0; display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.dashboard-body .composition-legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--premium-cyan); }
.dashboard-body .composition-legend > div:nth-child(2) i { background: var(--premium-violet); }
.dashboard-body .composition-legend span { overflow: hidden; color: #8f9daa; font: 700 8px Rajdhani, Inter, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-body .composition-legend strong { color: #eef3f8; font: 800 10px Rajdhani, Inter, sans-serif; }
.dashboard-body .protocol-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dashboard-body .protocol-facts > div { min-width: 0; min-height: 69px; padding: 9px; display: grid; align-content: center; gap: 4px; border: 1px solid rgba(137,157,179,.15); border-radius: 6px; background: rgba(8,13,20,.48); }
.dashboard-body .protocol-facts span { color: #768492; font: 700 7px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .protocol-facts strong { overflow: hidden; color: #edf3f8; font: 800 12px Rajdhani, Inter, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-body .protocol-facts .live-protocol { display: inline-flex; align-items: center; gap: 5px; color: #78dba7; }
.dashboard-body .live-protocol i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--premium-emerald); box-shadow: 0 0 8px rgba(54,213,139,.6); }

@media (max-width: 1100px) {
  .dashboard-body .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-body .protocol-insight { grid-column: 1 / -1; min-height: 118px; }
}
@media (max-width: 620px) {
  .dashboard-body .overview-infographics { padding: 12px; gap: 11px; }
  .dashboard-body .insight-heading h2 { font-size: 13px; }
  .dashboard-body .insight-grid { grid-template-columns: 1fr; gap: 8px; }
  .dashboard-body .insight-card,
  .dashboard-body .protocol-insight { grid-column: auto; min-height: 0; padding: 11px; gap: 11px; }
  .dashboard-body .network-composition { grid-template-columns: 74px minmax(0, 1fr); }
  .dashboard-body .composition-ring { width: 70px; height: 70px; }
  .dashboard-body .protocol-facts > div { min-height: 61px; padding: 7px; }
}
@media (max-width: 380px) {
  .dashboard-body .insight-verified { padding: 0 7px; font-size: 7px; }
  .dashboard-body .protocol-facts { grid-template-columns: 1fr; }
  .dashboard-body .protocol-facts > div { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-body .income-composition b { transition: none; }
}

/* Compact, aligned dashboard wallet controls. */
.dashboard-body .topbar .wallet-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.dashboard-body .topbar .language-picker,
.dashboard-body .topbar .topbar-tool,
.dashboard-body .topbar .disconnect-wallet,
.dashboard-body .topbar .connection-status,
.dashboard-body .topbar #connectBtn {
  height: 38px;
  min-height: 38px;
  border-radius: 7px;
}
.dashboard-body .topbar .language-picker {
  min-width: 70px;
  padding: 0 9px;
  border-color: rgba(126, 151, 176, .24);
  background: #101821;
}
.dashboard-body .topbar .language-picker svg,
.dashboard-body .topbar .topbar-tool svg,
.dashboard-body .topbar .disconnect-wallet svg { width: 16px; height: 16px; }
.dashboard-body .topbar .topbar-tool,
.dashboard-body .topbar .disconnect-wallet {
  width: 38px;
  min-width: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(126,151,176,.24);
  background: #101821;
  color: #aebcca;
}
.dashboard-body .topbar .disconnect-wallet {
  border-color: rgba(255,122,22,.36);
  background: rgba(255,122,22,.075);
  color: #ff9a48;
}
.dashboard-body .topbar .connection-status {
  width: auto;
  min-width: 0;
  max-width: 88px;
  padding: 0 9px;
  justify-content: center;
  gap: 6px;
  border-color: rgba(54,213,139,.3);
  border-radius: 99px;
  background: rgba(54,213,139,.075);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
  color: #79dca8;
}
.dashboard-body .topbar .connection-status i { width: 6px; height: 6px; }
.dashboard-body .topbar .connection-status b { font: 800 9px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .topbar #connectBtn { padding-inline: 15px; }
.dashboard-body .network-badge,
.dashboard-body .header-pill,
.dashboard-body .header-wallet { min-height: 34px; display: inline-flex; align-items: center; }

@media (max-width: 768px) {
  .dashboard-body .topbar .network-badge,
  .dashboard-body .topbar .header-pill,
  .dashboard-body .topbar .header-wallet,
  .dashboard-body .topbar .topbar-tool { display: none !important; }
  .dashboard-body .topbar .wallet-actions {
    width: auto !important;
    justify-self: end;
    display: grid !important;
    grid-template-columns: 44px auto 38px !important;
    justify-content: end;
    gap: 5px !important;
  }
  .dashboard-body .topbar .language-picker {
    grid-column: 1;
    width: 44px !important;
    min-width: 44px !important;
    height: 38px !important;
    padding: 0 4px !important;
  }
  .dashboard-body .topbar .connection-status {
    grid-column: 2;
    width: auto;
    min-width: 0;
    max-width: 78px;
    min-height: 34px;
    height: 34px;
    padding: 0 8px;
    justify-self: end;
  }
  .dashboard-body .topbar .disconnect-wallet {
    grid-column: 3 !important;
    width: 38px;
    min-width: 38px;
    height: 38px;
  }
  .dashboard-body .topbar #connectBtn {
    grid-column: 2 / 4 !important;
    width: auto;
    min-width: 122px;
    justify-self: end;
  }
}
@media (max-width: 380px) {
  .dashboard-body .topbar .wallet-actions { grid-template-columns: 40px auto 36px !important; gap: 4px !important; }
  .dashboard-body .topbar .language-picker { width: 40px !important; min-width: 40px !important; }
  .dashboard-body .topbar .connection-status { max-width: 70px; padding: 0 6px; gap: 4px; }
  .dashboard-body .topbar .connection-status b { font-size: 8px; }
  .dashboard-body .topbar .disconnect-wallet { width: 36px; min-width: 36px; height: 36px; }
}

/* High-contrast member and referral utility bars. */
.dashboard-body .member-info-bar,
.dashboard-body .referral-share-bar {
  border-color: rgba(126, 151, 176, .3) !important;
  background: #080b0f !important;
  box-shadow: inset 0 1px rgba(255,255,255,.045), 0 12px 28px rgba(0,0,0,.24) !important;
}
.dashboard-body .member-info-item { border-color: rgba(126,151,176,.18) !important; }
.dashboard-body .member-info-item > span {
  color: #aeb9c4 !important;
  font-size: 11px !important;
  font-weight: 700;
}
.dashboard-body .member-info-item > strong {
  color: #f7fafc !important;
  font-size: 16px !important;
  font-weight: 800;
}
.dashboard-body .member-info-item.wallet-info button {
  border: 1px solid rgba(126,151,176,.2);
  border-radius: 6px;
  background: #111820;
  color: #d3dbe3;
}
.dashboard-body .rank-info > strong { color: #ffba4d !important; }
.dashboard-body .rank-info > strong[data-rank="NONE"] { color: #c0cad4 !important; }
.dashboard-body .rank-info > strong[data-rank="SILVER"] { color: #e4eaf0 !important; }
.dashboard-body .rank-info > strong[data-rank="DIAMOND"] { color: #74e9ff !important; }

.dashboard-body .referral-share-bar { border-left: 3px solid var(--premium-orange) !important; }
.dashboard-body .referral-share-id { border-color: rgba(126,151,176,.2) !important; }
.dashboard-body .referral-share-id span {
  color: #aeb9c4;
  font-size: 10px;
  font-weight: 800;
}
.dashboard-body .referral-share-id b {
  color: #ff9f3c;
  font-size: 15px;
  font-weight: 800;
}
.dashboard-body .referral-share-bar > strong {
  color: #edf2f6 !important;
  font-size: 13px !important;
  font-weight: 700;
}
.dashboard-body .referral-actions a,
.dashboard-body .referral-actions button {
  border-color: rgba(126,151,176,.24) !important;
  border-radius: 7px;
  background: #111820 !important;
  color: #f1f5f8 !important;
}
.dashboard-body .referral-actions a:hover,
.dashboard-body .referral-actions button:hover {
  border-color: rgba(255,139,31,.6) !important;
  background: #19140f !important;
  color: #ff9e3b !important;
}
.dashboard-body .referral-actions svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .dashboard-body .member-info-item > span { font-size: 10px !important; }
  .dashboard-body .member-info-item > strong { font-size: 14px !important; }
  .dashboard-body .referral-share-id span { font-size: 9px; }
  .dashboard-body .referral-share-id b { font-size: 13px; }
  .dashboard-body .referral-share-bar > strong { font-size: 11px !important; }
  .dashboard-body .referral-actions svg { width: 17px; height: 17px; }
}
@media (max-width: 380px) {
  .dashboard-body .member-info-item > strong { font-size: 13px !important; }
  .dashboard-body .referral-share-bar > strong { font-size: 10px !important; }
}

/* Contract-backed notifications, rank qualification map, and admin member search. */
.dashboard-body .notification-tool { overflow: visible; }
.dashboard-body .notification-tool[aria-expanded="true"] { border-color: rgba(255,122,22,.52); background: rgba(255,122,22,.1); color: #ff9c45; }
.dashboard-body .notification-tool .notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  width: auto;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid #080d14;
  border-radius: 99px;
  background: #ef4136;
  color: #fff;
  font: 800 8px/1 Rajdhani, Inter, sans-serif;
  box-shadow: 0 4px 10px rgba(239,65,54,.3);
}
.dashboard-body .notification-tool .notification-count.hidden { display: none; }
.dashboard-body .notification-panel {
  position: fixed;
  z-index: 260;
  top: 66px;
  right: 16px;
  width: min(390px, calc(100vw - 24px));
  max-height: min(620px, calc(100dvh - 82px));
  padding: 14px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(126,151,176,.3);
  border-top: 3px solid var(--premium-orange);
  border-radius: 8px;
  background: #0b1016;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.045);
}
.dashboard-body .notification-panel.hidden { display: none; }
.dashboard-body .notification-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dashboard-body .notification-head > div { display: grid; gap: 1px; }
.dashboard-body .notification-head span { color: #ff983d; font: 800 8px Rajdhani, Inter, sans-serif; }
.dashboard-body .notification-head h2 { margin: 0; color: #f8fafc; font: 800 17px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .notification-head button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(126,151,176,.22); border-radius: 7px; background: #121922; color: #b9c4ce; }
.dashboard-body .notification-head button svg { width: 16px; height: 16px; }
.dashboard-body .notification-toolbar { min-height: 37px; padding: 0 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid rgba(126,151,176,.15); border-radius: 6px; background: #0f161e; }
.dashboard-body .notification-toolbar span { overflow: hidden; color: #84919e; font: 700 9px Rajdhani, Inter, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-body .notification-toolbar button { flex: none; border: 0; background: transparent; color: #ff9f48; font: 800 9px Rajdhani, Inter, sans-serif; cursor: pointer; }
.dashboard-body .notification-list { min-height: 110px; display: grid; align-content: start; gap: 7px; overflow-y: auto; scrollbar-width: thin; }
.dashboard-body .notification-item { --notice-accent: #8292a2; position: relative; min-width: 0; min-height: 76px; padding: 10px; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: start; gap: 9px; border: 1px solid rgba(126,151,176,.14); border-radius: 7px; background: #0e151c; }
.dashboard-body .notification-item.unread { border-color: color-mix(in srgb, var(--notice-accent) 36%, #34404c); background: linear-gradient(120deg, color-mix(in srgb, var(--notice-accent) 7%, #111922), #0d141b 70%); }
.dashboard-body .notification-item.unread::after { position: absolute; top: 10px; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--notice-accent); box-shadow: 0 0 8px color-mix(in srgb, var(--notice-accent) 60%, transparent); content: ""; }
.dashboard-body .notification-item.rank { --notice-accent: #f6b73c; }
.dashboard-body .notification-item.progress { --notice-accent: #a978ff; }
.dashboard-body .notification-item.pool { --notice-accent: #35c8e8; }
.dashboard-body .notification-item.reward,
.dashboard-body .notification-item.payout,
.dashboard-body .notification-item.success { --notice-accent: #36d58b; }
.dashboard-body .notification-item.error { --notice-accent: #f45d68; }
.dashboard-body .notification-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--notice-accent) 35%, transparent); border-radius: 7px; background: color-mix(in srgb, var(--notice-accent) 9%, #111922); color: var(--notice-accent); }
.dashboard-body .notification-icon svg { width: 17px; height: 17px; }
.dashboard-body .notification-item > div { min-width: 0; display: grid; gap: 3px; padding-right: 9px; }
.dashboard-body .notification-item strong { color: #f1f5f8; font: 800 11px Rajdhani, Inter, sans-serif; }
.dashboard-body .notification-item p { margin: 0; color: #8d9aa6; font: 600 9px/1.35 Rajdhani, Inter, sans-serif; }
.dashboard-body .notification-item small { color: #687582; font: 700 7px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .notification-empty { min-height: 150px; padding: 18px; display: grid; place-items: center; align-content: center; gap: 7px; border: 1px dashed rgba(126,151,176,.2); border-radius: 7px; color: #72808d; text-align: center; }
.dashboard-body .notification-empty svg { width: 27px; height: 27px; color: #ff9437; }
.dashboard-body .notification-empty strong { color: #dce4eb; font: 800 12px Rajdhani, Inter, sans-serif; }
.dashboard-body .notification-empty span { max-width: 250px; font: 600 9px/1.4 Rajdhani, Inter, sans-serif; }

.dashboard-body .rank-qualification-visualizer { margin-top: 12px; padding: 13px; display: grid; gap: 10px; border: 1px solid rgba(169,120,255,.24); border-radius: 7px; background: linear-gradient(140deg, rgba(169,120,255,.07), rgba(10,15,22,.8) 65%); }
.dashboard-body .rank-viz-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dashboard-body .rank-viz-head > div { min-width: 0; display: grid; gap: 1px; }
.dashboard-body .rank-viz-head .eyebrow { color: #b990ff; font: 800 7px Rajdhani, Inter, sans-serif; }
.dashboard-body .rank-viz-head h3 { margin: 0; overflow: hidden; color: #f7f3ff; font: 800 13px Rajdhani, Inter, sans-serif; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.dashboard-body .rank-viz-status { min-height: 27px; padding: 0 8px; display: inline-flex; align-items: center; border: 1px solid rgba(246,183,60,.25); border-radius: 99px; background: rgba(246,183,60,.07); color: #f6c55e; font: 800 8px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .rank-viz-status.ready,
.dashboard-body .rank-viz-status.complete { border-color: rgba(54,213,139,.28); background: rgba(54,213,139,.07); color: #75dda6; }
.dashboard-body .rank-qualification-visualizer > p { margin: 0; color: #8d98a4; font: 600 9px/1.4 Rajdhani, Inter, sans-serif; }
.dashboard-body .rank-viz-legs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.dashboard-body .rank-viz-legs article { min-width: 0; min-height: 88px; padding: 10px; display: grid; align-content: center; gap: 8px; border: 1px solid rgba(126,151,176,.16); border-radius: 6px; background: #0e151d; }
.dashboard-body .rank-viz-legs article.wide { grid-column: 1 / -1; }
.dashboard-body .rank-viz-legs article.hidden { display: none; }
.dashboard-body .rank-viz-legs article > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dashboard-body .rank-viz-legs span { color: #9ba7b2; font: 700 8px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .rank-viz-legs strong { flex: none; color: #f2f6fa; font: 800 12px Rajdhani, Inter, sans-serif; }
.dashboard-body .rank-viz-track { height: 6px; overflow: hidden; border-radius: 99px; background: #28313b; }
.dashboard-body .rank-viz-track i { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#8456df,#ba8dff); box-shadow: 0 0 10px rgba(169,120,255,.35); transition: width .4s ease; }
.dashboard-body .rank-viz-legs small { overflow: hidden; color: #788592; font: 600 8px Rajdhani, Inter, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-body .rank-viz-milestones { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
.dashboard-body .rank-viz-milestones span { min-height: 29px; padding: 0 5px; display: grid; place-items: center; border: 1px solid rgba(126,151,176,.15); border-radius: 5px; background: #0d141b; color: #697683; font: 800 8px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .rank-viz-milestones span.complete { border-color: rgba(54,213,139,.24); background: rgba(54,213,139,.06); color: #72dba3; }
.dashboard-body .rank-viz-milestones span.active { border-color: rgba(246,183,60,.32); background: rgba(246,183,60,.08); color: #f6c45b; }

.dashboard-body .admin-member-search { margin-top: 14px; padding-top: 16px; display: grid; gap: 12px; border-top: 1px solid rgba(255,139,31,.18); }
.dashboard-body .admin-search-head { display: flex; align-items: center; gap: 12px; }
.dashboard-body .admin-search-head > svg { width: 38px; height: 38px; padding: 9px; flex: none; border: 1px solid rgba(53,200,232,.25); border-radius: 8px; background: rgba(53,200,232,.08); color: #47cce7; }
.dashboard-body .admin-search-head > div { min-width: 0; }
.dashboard-body .admin-search-head h3 { margin: 2px 0 3px; color: #f4f8fb; font: 800 15px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .admin-search-head p { margin: 0; color: #8996a2; font: 600 10px Rajdhani, Inter, sans-serif; }
.dashboard-body .admin-search-form { display: grid; gap: 6px; }
.dashboard-body .admin-search-form > label { color: #aeb8c1; font: 700 9px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .admin-search-form > div { min-width: 0; min-height: 49px; padding-left: 12px; display: grid; grid-template-columns: 18px minmax(0,1fr) minmax(140px,auto); align-items: center; gap: 9px; border: 1px solid rgba(53,200,232,.23); border-radius: 7px; background: #090e14; }
.dashboard-body .admin-search-form > div:focus-within { border-color: rgba(53,200,232,.58); box-shadow: 0 0 0 3px rgba(53,200,232,.07); }
.dashboard-body .admin-search-form svg { width: 17px; height: 17px; color: #47cce7; }
.dashboard-body .admin-search-form input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: #f4f7fa; font: 700 12px Rajdhani, Inter, sans-serif; }
.dashboard-body .admin-search-form .primary-btn { min-height: 47px; border-radius: 0 6px 6px 0; }
.dashboard-body .admin-search-empty { min-height: 74px; padding: 12px; display: flex; align-items: center; gap: 10px; border: 1px dashed rgba(126,151,176,.18); border-radius: 7px; color: #7f8c98; background: rgba(10,15,21,.5); }
.dashboard-body .admin-search-empty.hidden { display: none; }
.dashboard-body .admin-search-empty svg { width: 24px; height: 24px; flex: none; color: #ff983b; }
.dashboard-body .admin-search-empty span { font: 600 9px/1.4 Rajdhani, Inter, sans-serif; }
.dashboard-body .admin-search-result { display: grid; gap: 9px; }
.dashboard-body .admin-search-result.hidden { display: none; }
.dashboard-body .admin-search-identity { min-height: 47px; padding: 8px 10px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid rgba(54,213,139,.19); border-radius: 7px; background: rgba(54,213,139,.045); }
.dashboard-body .admin-search-identity > span { display: inline-flex; align-items: center; gap: 5px; color: #71dba2; font: 800 8px Rajdhani, Inter, sans-serif; }
.dashboard-body .admin-search-identity svg { width: 13px; height: 13px; }
.dashboard-body .admin-search-identity > strong { color: #f4f8fb; font: 800 14px Rajdhani, Inter, sans-serif; }
.dashboard-body .admin-search-identity > a { display: inline-flex; align-items: center; gap: 5px; color: #51cce4; font: 800 9px Rajdhani, Inter, sans-serif; text-decoration: none; }
.dashboard-body .admin-search-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.dashboard-body .admin-search-grid > div,
.dashboard-body .admin-search-earnings > div { min-width: 0; min-height: 65px; padding: 9px; display: grid; align-content: center; gap: 4px; border: 1px solid rgba(126,151,176,.15); border-radius: 6px; background: #0d141b; }
.dashboard-body .admin-search-grid span,
.dashboard-body .admin-search-earnings span { color: #798693; font: 700 7px Rajdhani, Inter, sans-serif; text-transform: uppercase; }
.dashboard-body .admin-search-grid strong,
.dashboard-body .admin-search-earnings strong { overflow: hidden; color: #edf3f7; font: 800 11px Rajdhani, Inter, sans-serif; overflow-wrap: anywhere; }
.dashboard-body .admin-search-earnings { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.dashboard-body .admin-search-earnings > div { border-color: rgba(255,139,31,.16); background: rgba(255,111,0,.035); }
.dashboard-body .admin-search-earnings strong { color: #ffb052; }

@media (max-width: 768px) {
  .dashboard-body .topbar .notification-tool { display: inline-grid !important; grid-column: 2; width: 36px; min-width: 36px; height: 36px; }
  .dashboard-body .topbar .wallet-actions { grid-template-columns: 42px 36px auto 38px !important; }
  .dashboard-body .topbar .connection-status { grid-column: 3; }
  .dashboard-body .topbar .disconnect-wallet { grid-column: 4 !important; }
  .dashboard-body .topbar #connectBtn { grid-column: 2 / 5 !important; }
  .dashboard-body .notification-panel { top: 62px; right: 7px; width: min(370px, calc(100vw - 14px)); max-height: calc(100dvh - 76px); }
  .dashboard-body .rank-viz-legs { grid-template-columns: 1fr; }
  .dashboard-body .rank-viz-legs article.wide { grid-column: auto; }
  .dashboard-body .admin-search-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-body .admin-search-earnings { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-body .admin-search-earnings > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 430px) {
  .dashboard-body .notification-panel { padding: 11px; }
  .dashboard-body .notification-item { min-height: 72px; padding: 9px; }
  .dashboard-body .rank-qualification-visualizer { padding: 10px; }
  .dashboard-body .rank-viz-head h3 { font-size: 11px; }
  .dashboard-body .rank-viz-milestones span { font-size: 7px; }
  .dashboard-body .admin-search-form > div { padding: 8px; grid-template-columns: 17px minmax(0,1fr); }
  .dashboard-body .admin-search-form .primary-btn { grid-column: 1 / -1; width: 100%; min-height: 43px; border-radius: 6px; }
  .dashboard-body .admin-search-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-body .admin-search-identity { grid-template-columns: 1fr auto; }
  .dashboard-body .admin-search-identity > span { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .dashboard-body .topbar .wallet-actions { grid-template-columns: 38px 34px auto 36px !important; }
  .dashboard-body .topbar .notification-tool { width: 34px; min-width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-body .rank-viz-track i { transition: none; }
}

/* Final header alignment: keep wallet states in one stable control row. */
@media (min-width: 769px) {
  .dashboard-body .topbar {
    display: flex !important;
    align-items: center !important;
  }
  .dashboard-body .topbar .wallet-actions {
    min-width: 0;
    margin-left: auto !important;
    flex: 0 1 auto;
    align-items: center;
  }
  .dashboard-body .topbar #connectBtn {
    position: static !important;
    flex: 0 0 auto;
    min-width: 132px;
    margin: 0 !important;
    white-space: nowrap;
  }
}
@media (max-width: 768px) {
  .dashboard-body .topbar {
    align-items: center !important;
  }
  .dashboard-body .topbar .wallet-actions {
    align-self: center;
    grid-template-columns: 42px 36px minmax(0, 1fr) 38px !important;
  }
  .dashboard-body .topbar #connectBtn {
    grid-column: 3 / 5 !important;
    width: 100%;
    min-width: 0;
    max-width: 126px;
    margin: 0 !important;
    justify-self: end;
    font-size: 10px !important;
    white-space: nowrap;
  }
  .dashboard-body .topbar #connectBtn::before {
    display: none !important;
    content: none !important;
  }
}
@media (max-width: 380px) {
  .dashboard-body .topbar .wallet-actions {
    grid-template-columns: 38px 34px minmax(0, 1fr) 36px !important;
  }
  .dashboard-body .topbar #connectBtn {
    grid-column: 3 / 5 !important;
    max-width: 116px;
    padding-inline: 9px;
    font-size: 10px;
  }
}
