/* 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; }
}

@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; }
}

/* 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-trust-row { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dashboard-body .admin-trust-row span { 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; }
.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-trust-row { grid-template-columns: 1fr; }
  .dashboard-body .admin-trust-row span { 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; }
}

@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; }
}
