/* CoinMinerStats public market workspace */
.public-shell {
  --bg-body: #f4f7fc;
  --bg-surface: #ffffff;
  --bg-surface-2: #f0f5fc;
  --bg-surface-hover: #e6effc;
  --border-subtle: #dce5f1;
  --border-medium: #9eafc6;
  --text-primary: #152440;
  --text-secondary: #465974;
  --accent-blue: #174fb5;
  --accent-deep: #174ab2;
  --accent-green: #08795a;
  --market-radius: 12px;
  --bs-body-color: var(--text-primary);
  --bs-link-color-rgb: 23,79,181;
  --bs-link-hover-color-rgb: 15,53,138;
  --bs-primary-rgb: 28,83,194;
  --bs-success-rgb: 4,110,79;
  --bs-danger-rgb: 171,36,64;
  --bs-warning-rgb: 139,84,5;
  --bs-info-rgb: 12,101,135;
}
.public-shell :focus-visible { outline: 2px solid #2359d1; outline-offset: 3px; }
.skip-to-content {
  position: fixed; z-index: 1040; top: .5rem; left: .5rem;
  padding: .5rem .85rem; background: var(--bg-surface); border-radius: 6px;
  transform: translateY(-160%);
}
.skip-to-content:focus { transform: translateY(0); }
.public-shell .navbar {
  min-height: 60px; padding: .45rem max(0px, calc((100% - 1512px)/2));
  background: #ffffff !important; box-shadow: none;
}
.public-shell .navbar .nav-link.active { color: #17449f !important; background: #e8f0fe; }
.public-shell .brand-wordmark { font-size: 1.08rem; color: var(--text-primary); }
.public-shell .brand-wordmark span { color: #1d55bf; }
.public-shell .site-frame { padding-top: 60px !important; }
.public-shell main > .container-fluid { max-width: 1512px; margin-inline: auto; }
.public-shell .card { border-radius: var(--market-radius); box-shadow: none; }
.public-shell .form-select { padding-right: 2.2rem; }
.public-shell .table-responsive { scrollbar-color: #637c9d #ebf1fa; }
.market-heading {
  display: flex; justify-content: space-between; align-items: flex-end; gap: .75rem 1rem;
}
.market-heading h1 {
  font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 750;
  letter-spacing: -.045em; line-height: 1.1; margin: .25rem 0 .45rem;
}
.market-heading p { font-size: .9rem; }
.overview-heading { margin-bottom: 1.15rem; }
.market-kicker {
  color: #1d4699; font-size: .68rem; font-weight: 750; letter-spacing: .12em;
  line-height: 1.4; text-transform: uppercase;
}
.heading-kicker { display: flex; align-items: center; gap: .48rem; }
.telemetry-dot {
  width: .47rem; height: .47rem; border-radius: 50%; display: inline-block;
  background: #08795a; box-shadow: 0 0 0 3px #08795a24;
  animation: telemetry-pulse 2s ease-out 3;
}
@keyframes telemetry-pulse {
  0%, 15% { box-shadow: 0 0 0 0 #08795a75; }
  75%, 100% { box-shadow: 0 0 0 7px #08795a00; }
}
.overview-heading-aside { display: flex; flex-wrap: wrap; gap: .45rem; }
.partner-link {
  display: inline-flex; align-items: center; gap: .4rem; padding: .44rem .64rem;
  color: #15459e; background: #edf4ff; border: 1px solid #bacdec;
  border-radius: 7px; text-decoration: none; font-size: .76rem; font-weight: 650;
}
.mobile-directory-link { display: none; }
.partner-link:hover { color: #12387d; background: #e0edff; }
.overview-metrics {
  display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); margin: 0 0 .9rem;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--market-radius);
}
.overview-metrics > div { min-width: 0; padding: .72rem .94rem; }
.overview-metrics > div + div { border-left: 1px solid var(--border-subtle); }
.overview-metrics dt {
  display: flex; align-items: center; gap: .45rem;
  font-size: .75rem; font-weight: 600; color: var(--text-secondary);
}
.overview-metrics dt i { color: #245cc9; }
.overview-metrics dd {
  margin: .16rem 0 0; font-size: clamp(.98rem, 1.55vw, 1.4rem); line-height: 1.2;
  font-weight: 720; letter-spacing: -.025em; font-variant-numeric: tabular-nums;
}
.market-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--market-radius); }
.market-chart { display: grid; grid-template-columns: minmax(205px,.9fr) minmax(0,4fr); margin: 0 0 .9rem; }
.market-chart-intro {
  padding: .85rem 1rem; border-right: 1px solid var(--border-subtle);
  background: radial-gradient(ellipse at 2% 2%, #e1edff, transparent 75%);
  border-radius: var(--market-radius) 0 0 var(--market-radius);
}
.chart-overline { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.signal-mark { color: #225ac3; flex: none; }
.signal-trace { stroke-dasharray: 48; animation: draw-signal .85s .12s both ease-out; }
.signal-endpoint { transform-origin: 34px 13px; animation: signal-endpoint 1.8s .85s ease-out 2; }
@keyframes draw-signal { from { stroke-dashoffset: 48; } to { stroke-dashoffset: 0; } }
@keyframes signal-endpoint {
  0%, 100% { opacity: 1; transform: scale(1); }
  52% { opacity: .46; transform: scale(1.55); }
}
.market-chart h2, .directory h2, .listing-callout h2, .discovery-title {
  font-size: 1.05rem; font-weight: 720; letter-spacing: -.02em; margin: 0 0 .35rem;
}
.market-chart-intro select { width: 100%; margin: .55rem 0; }
.chart-note { color: var(--text-secondary); font-size: .73rem; }
.chart-latest {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .4rem;
  color: #174ab2; font-size: 1.17rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.chart-latest small { color: var(--text-secondary); font-size: .7rem; font-weight: 500; }
.market-chart-content { min-width: 0; padding: .7rem .75rem .25rem; }
.market-chart-controls {
  display: flex; align-items: center; justify-content: space-between; gap: .4rem;
  margin: 0 .22rem .15rem; flex-wrap: wrap;
}
.market-segments {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  border: 1px solid var(--border-subtle); border-radius: 8px; background: #f5f8fe;
}
.market-segments button {
  border: 0; border-radius: 5px; background: transparent; color: #455774;
  white-space: nowrap; padding: .33rem .56rem; font-size: .72rem; font-weight: 660;
  transition: background-color .15s, color .15s;
}
.market-segments button:hover { color: #153f8e; background: #e8f0fe; }
.market-segments button[aria-pressed="true"] { color: #ffffff; background: #174ab2; }
.market-chart-frame { position: relative; min-height: 156px; }
#activity-status {
  position: absolute; inset: .35rem; margin: 0; display: grid; place-items: center;
  font-size: .82rem; text-align: center; color: var(--text-secondary); pointer-events: none;
}
#activity-status[hidden] { display: none; }
.market-chart-frame noscript p { margin: 0; padding: 1rem; text-align: center; }
.directory { scroll-margin-top: 70px; }
.directory-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .7rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border-subtle);
}
.directory-header p { font-size: .76rem; }
.directory-filters { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.directory-filters select { width: auto; min-height: 35px; max-width: 15rem; }
.directory-search {
  display: flex; align-items: center; gap: .48rem; min-height: 35px; padding: 0 .65rem;
  background: #f5f8fe; border: 1px solid var(--border-medium); border-radius: 7px; color: var(--text-secondary);
}
.directory-search:focus-within { border-color: var(--accent-blue); }
.directory-search input {
  min-width: 0; width: clamp(7rem, 18vw, 13rem); padding: .38rem 0; font-size: .83rem;
  border: 0; color: var(--text-primary); background: transparent;
}
.directory-search input::placeholder { color: #4e607a; }
.directory-search input:focus-visible { outline-offset: 1px; }
.market-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 35px;
  padding: .35rem .65rem; border: 1px solid var(--border-medium); border-radius: 7px;
  text-decoration: none; color: var(--text-primary); background: #f5f8fe; font-size: .78rem;
  font-weight: 650; white-space: nowrap; transition: background-color .15s, border-color .15s;
}
.market-button:hover { color: #153f8e; background: #e8f0fe; border-color: #7b98c1; }
.market-button-primary { color: #fff; background: #2359d1; border-color: #2359d1; }
.market-button-primary:hover { color: #ffffff; background: #103d9e; border-color: #103d9e; }
.directory-scroll { overflow-x: auto; scrollbar-color: #637c9d #ebf1fa; }
.directory-scroll:focus-visible { outline-offset: -2px; }
.directory-scroll-hint { display: none; }
.directory-table {
  min-width: 1020px; font-size: .87rem;
  --bs-table-color: var(--text-primary); --bs-table-border-color: var(--border-subtle);
}
.directory-table > thead { border-bottom: 1px solid var(--border-medium); background: #edf3fd; }
.directory-table > thead th {
  padding: .61rem .6rem; font-size: .72rem; letter-spacing: 0; text-transform: none;
  border-color: var(--border-medium); color: #263f62; line-height: 1.28;
}
.directory-table td, .directory-table > tbody th, .directory-table > tbody td {
  padding: .5rem .6rem; vertical-align: middle; border-color: var(--border-subtle);
}
.directory-table tr:last-child > * { border-bottom: 0; }
.directory-table > tbody tr:nth-child(even) { background: #f7faff; }
.directory-table > tbody tr:hover { background: #edf4ff; }
.directory-table .rank-column { text-align: center; width: 2.7rem; color: var(--text-secondary); }
.directory-table .number-column { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.directory-table tr > :last-child { padding-right: 1rem; }
.directory-table .directory-sort {
  display: inline-flex; align-items: center; gap: .27rem; justify-content: flex-end; color: inherit;
  font-weight: 700; white-space: nowrap;
}
.directory-sort i { color: #647698; font-size: .65rem; }
.directory-table th[aria-sort] .directory-sort, .directory-table th[aria-sort] i { color: #174ab2; }
.directory-coin { display: flex; align-items: center; gap: .52rem; min-width: 9.25rem; }
.directory-coin-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.directory-coin-label strong { font-weight: 675; }
.directory-coin-label small { font-size: .66rem; color: var(--text-secondary); font-weight: 550; overflow-wrap: anywhere; }
.directory-icon {
  position: relative; display: inline-grid; place-items: center; flex: 0 0 26px; height: 26px;
  font-size: .64rem; font-weight: 720; border-radius: 50%; background: #e1edff; color: #123e90;
}
.directory-icon img { position: absolute; inset: 0; border-radius: inherit; object-fit: contain; background: #edf4ff; }
.directory-icon img[hidden] { display: none; }
.algorithm-tag, .movement { display: inline-block; border-radius: 5px; font-size: .71rem; white-space: nowrap; }
.algorithm-tag { padding: .15rem .4rem; background: #e9eff8; color: #31496b; }
.movement { padding: .15rem .35rem; background: #edf2f8; color: #3c506f; font-weight: 700; }
.movement.up { background: #def5eb; color: #006046; }
.movement.down { background: #fbe6e8; color: #9b203b; }
.directory-table abbr { color: var(--text-secondary); font-size: .65rem; }
.directory-empty { padding: 2.75rem .85rem; text-align: center; }
.directory-empty i { display: inline-block; margin-bottom: .5rem; color: var(--accent-blue); font-size: 1.2rem; }
.directory-empty h3 { font-size: 1.05rem; }
.directory-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem;
  padding: .75rem 1rem; border-top: 1px solid var(--border-subtle); font-size: .82rem;
}
.directory-footer nav { display: flex; align-items: center; gap: .32rem; }
.directory-footer .market-button { min-width: 32px; min-height: 32px; padding: .2rem .45rem; }
.directory-footer .current { border-color: #9ab7eb; background: #e0edff; }
.market-discovery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; margin-top: .9rem; }
.discovery-card .card-header { align-items: center !important; flex-direction: row; }
.discovery-card .card-header > .d-flex { width: 100%; }
.discovery-card .table td, .discovery-card .table th { padding: .52rem .7rem; }
.listing-callout { display: flex; align-items: center; justify-content: space-between; gap: .55rem 1rem; margin-top: .9rem; padding: 1rem; }
.listing-callout p { font-size: .83rem; }
/* Without JavaScript, or if AOS fails, content must remain visible. */
html:not(.aos-ready) [data-aos] { opacity: 1 !important; transform: none !important; }

@media (max-width: 1100px) {
  .directory-scroll-hint {
    display: block; margin: 0; padding: .35rem .8rem; font-size: .69rem;
    color: var(--text-secondary); background: #f4f8ff;
  }
}
@media (max-width: 991px) {
  .overview-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .overview-metrics > div:nth-child(n+4) { border-top: 1px solid var(--border-subtle); }
  .overview-metrics > div:nth-child(4) { border-left: 0; }
  .market-discovery { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .mobile-directory-link { display: inline-flex; }
  .overview-heading { flex-wrap: wrap; align-items: flex-start; margin-bottom: .8rem; }
  .overview-metrics > div { padding: .58rem .48rem; }
  .overview-metrics dt { display: block; font-size: .65rem; }
  .overview-metrics dt i { display: none; }
  .market-chart { grid-template-columns: 1fr; }
  .market-chart-intro {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center;
    gap: .18rem .5rem; padding: .62rem .75rem;
    border-right: 0; border-bottom: 1px solid var(--border-subtle);
    border-radius: var(--market-radius) var(--market-radius) 0 0;
  }
  .chart-overline { grid-column: 1/-1; margin: 0; }
  .signal-mark { width: 25px; height: 25px; }
  .market-chart h2, .market-chart-intro select { margin: 0; }
  .chart-note, .chart-latest { grid-column: 1/-1; }
  .market-chart-content { padding-inline: .35rem; }
  .market-segments button { padding: .33rem .43rem; }
  .directory-header { padding: .7rem; }
  .directory-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  .directory-filters select { width: 100%; }
  .directory-search { grid-column: 1/-1; }
  .directory-search input { width: 100%; }
  .directory-table .rank-column { display: none; }
  .directory-table .coin-name-column {
    position: sticky; left: 0; z-index: 1; background: var(--bg-surface);
    box-shadow: 2px 0 0 var(--border-subtle);
  }
  .directory-table thead .coin-name-column { background: #edf3fd; }
  .directory-table tbody tr:nth-child(even) .coin-name-column { background: #f7faff; }
  .directory-table .directory-coin-label strong { max-width: 8rem; }
  .listing-callout { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .public-shell *, .public-shell *::before, .public-shell *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .public-shell [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* Stronger contrast and motion cues for the public UI. */
.public-shell .navbar .nav-link:hover { color: #164396 !important; background: #eff5ff; }
.public-shell .navbar-toggler { color: #173a74; }
.public-shell .btn-primary:hover { background: #103c98; border-color: #103c98; }
.public-shell .dropdown-item:hover,
.public-shell .page-link:hover { color: #173a74; }
.public-shell .btn-outline-primary { --bs-btn-color: #174ab2; --bs-btn-border-color: #8ca9df; }
.public-shell .btn-outline-info { --bs-btn-color: #0c607a; --bs-btn-border-color: #75aabb; }
.public-shell .table {
  --bs-table-striped-bg: #f5f8fd;
  --bs-table-hover-bg: #edf4ff;
}
.public-shell .form-control::placeholder { color: #576984; }
.public-shell .form-control:focus, .public-shell .form-select:focus {
  box-shadow: 0 0 0 3px #2359d126;
}
.public-shell .nav, .public-shell .nav-tabs {
  --bs-nav-link-color: #174ab2;
  --bs-nav-link-hover-color: #113983;
}
.overview-heading {
  position: relative; isolation: isolate; overflow: hidden; min-height: 114px; padding: 1.15rem 1.25rem;
  background: linear-gradient(108deg, #fff 20%, #edf4ff 85%);
  border: 1px solid var(--border-subtle); border-radius: var(--market-radius);
}
.overview-network {
  position: absolute; z-index: -1; right: 0; top: 0;
  width: min(45%, 448px); height: 100%; color: #457ce4; opacity: .63;
}
.network-traces { stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; }
.network-traces path { stroke-dasharray: 500; animation: draw-network 1.25s .12s both ease-out; }
.network-traces path:nth-child(2) { animation-delay: .24s; }
.network-traces path:nth-child(3) { animation-delay: .36s; }
.network-nodes circle { fill: #fff; stroke: currentColor; stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: signal-endpoint 1.5s .8s ease-out 2; }
.network-nodes circle:nth-child(2n) { animation-delay: 1.05s; }
@keyframes draw-network { from { stroke-dashoffset: 500; } to { stroke-dashoffset: 0; } }
.market-enter { animation: market-enter .42s var(--motion-delay, 0ms) both cubic-bezier(.22,.74,.3,1); }
@keyframes market-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.market-chart { --motion-delay: 165ms; }
.overview-metrics dt i {
  display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem;
  border-radius: 6px; background: #e9f1ff; color: #174caf; flex: none;
  transition: transform .2s ease-out;
}
.overview-metrics > div:nth-child(4) dt i { color: #076949; background: #e0f6ed; }
.overview-metrics > div:nth-child(5) dt i { color: #6134a7; background: #efe7fc; }
.market-segments button { transition: background-color .15s, color .15s, transform .15s; }
.market-segments button:active, .market-button:active { transform: scale(.96); }
.market-chart-intro select { background-color: #fff; }
.chart-loading #activity-status::before {
  content: ''; position: absolute; left: 12px; right: 28px; top: 12px; bottom: 28px;
  opacity: .65; z-index: -1;
  background: linear-gradient(100deg,#e9eff8 25%,#f7faff 48%,#e9eff8 70%);
  background-size: 220% 100%; border-radius: 8px; animation: chart-loading 1.35s linear infinite;
}
.market-chart-frame { isolation: isolate; }
@keyframes chart-loading { to { background-position: -220% 0; } }
.chart-latest:not(:empty) { animation: market-enter .32s ease-out both; }
.directory-table > tbody tr { transition: background-color .17s ease-out; }
.directory-icon { transition: transform .18s ease-out; }
.discovery-pool { transition: transform .2s ease-out, border-color .2s ease-out; }
@media (hover: hover) {
  .overview-metrics > div:hover dt i { transform: translateY(-2px); }
  .directory-coin:hover .directory-icon { transform: scale(1.13); }
  .discovery-card a:hover .discovery-pool { transform: translateY(-3px); border-color: #7195d6; }
}
@media (max-width: 620px) {
  .overview-heading { padding: .85rem; }
  .overview-network { width: 58%; opacity: .25; }
  .overview-metrics dt i { display: none; }
  .directory-table tbody tr:hover .coin-name-column { background: #edf4ff; }
}
@media (prefers-reduced-motion: reduce) {
  .public-shell .market-enter, .public-shell .network-traces path,
  .public-shell .network-nodes circle, .public-shell .chart-loading #activity-status::before,
  .public-shell .chart-latest { animation: none !important; }
  .public-shell .market-segments button:active, .public-shell .market-button:active,
  .public-shell .directory-coin:hover .directory-icon,
  .public-shell .overview-metrics > div:hover dt i,
  .public-shell .discovery-card a:hover .discovery-pool { transform: none; }
}

/* Public theme controls, animated SVG signals, and coin spotlight */
.navbar-quick-actions { order: 2; display: flex; align-items: center; gap: .45rem; }
.navbar-quick-actions:empty { display: none; }
.theme-switch { min-width: 4.65rem; }
@media (min-width: 992px) { .theme-switch { margin-inline-start: .55rem; } }
.theme-switch[hidden], .motion-switch[hidden], .spotlight-controls[hidden] { display: none !important; }
.motion-switch { color: var(--text-primary); }
.network-packets path {
  stroke: #214fbd; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 96;
  animation: network-packet 3.2s linear infinite;
}
.network-packets path:nth-child(2) { animation-delay: -1.05s; }
.network-packets path:nth-child(3) { animation-delay: -2.02s; }
@keyframes network-packet { from { stroke-dashoffset: 10; } to { stroke-dashoffset: -90; } }
.overview-network { opacity: .8; }
.spotlight { --motion-delay: 205ms; padding: .65rem .82rem .75rem; margin-bottom: .9rem; min-width: 0; }
.spotlight-header { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .6rem; }
.spotlight-title { display: flex; gap: .55rem; align-items: center; }
.spotlight-title h2 { margin: 0 0 .11rem; font-size: 1.03rem; font-weight: 720; letter-spacing: -.025em; }
.spotlight-title p { margin: 0; color: var(--text-secondary); font-size: .73rem; }
.spotlight-orbit { flex: none; color: #155ebc; }
.orbit-sweep { transform-origin: 21px 21px; animation: spotlight-orbit 2.8s linear infinite; }
@keyframes spotlight-orbit { to { transform: rotate(360deg); } }
.spotlight-controls { display: flex; gap: .35rem; }
.spotlight-controls .market-button { padding: .3rem .55rem; }
.spotlight-track:not(.owl-loaded) {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(220px, 85%),1fr);
  gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
}
.spotlight-track:not(.owl-loaded) .spotlight-tile { scroll-snap-align: start; }
.spotlight .owl-stage-outer { padding: 3px; margin: -3px; }
.spotlight-track .spotlight-tile { min-width: 0; }
.spotlight-link {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .45rem; align-items: center;
  background: var(--bg-surface-2); border: 1px solid var(--border-subtle); border-radius: 9px;
  padding: .53rem .65rem; color: var(--text-primary); text-decoration: none; min-height: 67px;
  transition: background-color .18s, border-color .18s;
}
.spotlight-link:hover { background: var(--bg-surface-hover); border-color: var(--border-medium); color: var(--text-primary); }
.spotlight-coin, .spotlight-coin strong, .spotlight-coin small { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.spotlight-coin strong { font-size: .84rem; }
.spotlight-coin small, .spotlight-rate small { font-size: .66rem; color: var(--text-secondary); }
.spotlight-rate { grid-column: 2/-1; display: flex; align-items: center; justify-content: space-between; gap: .35rem; line-height: 1.1; }
.spotlight-rate b { color: var(--accent-blue); font-size: .76rem; font-variant-numeric: tabular-nums; }
.spotlight-arrow { color: var(--accent-blue); font-size: .71rem; transition: transform .18s; }
.spotlight-link:hover .spotlight-arrow { transform: translate(2px,-2px); }
.spotlight-link .directory-icon, .spotlight-track.owl-loaded .directory-icon img { width: 26px; }
html:not(.motion-ready) .network-packets path, html:not(.motion-ready) .orbit-sweep,
.motion-paused .network-packets path, .motion-paused .orbit-sweep,
.motion-paused .network-nodes circle, .motion-paused .telemetry-dot { animation-play-state: paused; }
.motion-paused .owl-stage { transition-duration: 0ms !important; }
@media (max-width: 991px) {
  .navbar-quick-actions { order: 0; }
}
@media (max-width: 620px) {
  .overview-network { right: -2%; opacity: .58; }
  .motion-switch { padding: .38rem .5rem; min-height: 32px; }
  .public-shell .navbar .navbar-toggler { padding-inline: .33rem; }
  .theme-switch { min-width: 2.25rem; padding-inline: .42rem; }
  .theme-switch span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .public-shell .network-packets path, .public-shell .orbit-sweep { animation: none !important; }
  .spotlight .owl-stage { transition-duration: 0ms !important; }
  .spotlight-link:hover .spotlight-arrow { transform: none; }
}

/* Night is the default. Day keeps the same layout, motion, and data. */
[data-bs-theme="dark"] .public-shell {
  color-scheme: dark;
  --bg-body: #0e1627;
  --bg-surface: #162237;
  --bg-surface-2: #1d2c44;
  --bg-surface-hover: #233856;
  --border-subtle: #344662;
  --border-medium: #6984ac;
  --text-primary: #f0f5ff;
  --text-secondary: #bccce5;
  --accent-blue: #99c4ff;
  --accent-deep: #2154ad;
  --accent-green: #70ebc6;
  --bs-primary-rgb: 153,196,255;
  --bs-link-color-rgb: 153,196,255;
  --bs-link-hover-color-rgb: 200,223,255;
  --bs-success-rgb: 112,235,198;
  --bs-info-rgb: 145,220,254;
  --bs-warning-rgb: 255,211,136;
  --bs-danger-rgb: 255,161,174;
  --bs-body-color-rgb: 240,245,255;
}
[data-bs-theme="dark"] .public-shell .navbar { background: #101b2f !important; }
[data-bs-theme="dark"] .public-shell .navbar .nav-link.active,
[data-bs-theme="dark"] .public-shell .navbar .nav-link:hover { color: #e6f1ff !important; background: #273f65; }
[data-bs-theme="dark"] .public-shell .brand-wordmark span { color: var(--accent-blue); }
[data-bs-theme="dark"] .public-shell .navbar-toggler { color: var(--text-primary); }
[data-bs-theme="dark"] .public-shell .overview-heading { background: linear-gradient(108deg,#162237 20%,#213b63 85%); }
[data-bs-theme="dark"] .public-shell .overview-network { color: #91baff; }
[data-bs-theme="dark"] .public-shell .network-packets path { stroke: #67f0cd; }
[data-bs-theme="dark"] .public-shell .network-nodes circle { fill: #c9e2ff; }
[data-bs-theme="dark"] .public-shell .market-chart-intro { background: radial-gradient(ellipse at 2% 2%,#263e66,transparent 75%); }
[data-bs-theme="dark"] .public-shell .partner-link,
[data-bs-theme="dark"] .public-shell .directory-search,
[data-bs-theme="dark"] .public-shell .market-button:not(.market-button-primary),
[data-bs-theme="dark"] .public-shell .market-segments { background: #1d2e49; color: #e7f0ff; border-color: #57739e; }
[data-bs-theme="dark"] .public-shell .partner-link:hover,
[data-bs-theme="dark"] .public-shell .market-button:not(.market-button-primary):hover { background: #2b4570; }
[data-bs-theme="dark"] .public-shell .market-kicker,
[data-bs-theme="dark"] .public-shell .signal-mark,
[data-bs-theme="dark"] .public-shell .chart-latest,
[data-bs-theme="dark"] .public-shell .spotlight-orbit { color: var(--accent-blue); }
[data-bs-theme="dark"] .public-shell .telemetry-dot { background: #68e4bc; }
[data-bs-theme="dark"] .public-shell .overview-metrics dt i { color: #b7d6ff; background: #284675; }
[data-bs-theme="dark"] .public-shell .overview-metrics > div:nth-child(4) dt i { color: #8df0cf; background: #215047; }
[data-bs-theme="dark"] .public-shell .overview-metrics > div:nth-child(5) dt i { color: #e3cbff; background: #49376b; }
[data-bs-theme="dark"] .public-shell .market-chart-intro select { background-color: var(--bg-surface-2); }
[data-bs-theme="dark"] .public-shell .market-segments button { color: var(--text-secondary); }
[data-bs-theme="dark"] .public-shell .market-segments button:hover { color: #fff; background: #284370; }
[data-bs-theme="dark"] .public-shell .market-segments button[aria-pressed="true"] { color: #142b4f; background: #b2d3ff; }
[data-bs-theme="dark"] .public-shell .directory-search input::placeholder,
[data-bs-theme="dark"] .public-shell .form-control::placeholder { color: #b1c2df; }
[data-bs-theme="dark"] .public-shell .directory-table > thead,
[data-bs-theme="dark"] .public-shell .directory-table thead .coin-name-column,
[data-bs-theme="dark"] .public-shell .directory-scroll-hint { background: #223551; }
[data-bs-theme="dark"] .public-shell .directory-table > thead th { color: #d7e5ff; }
[data-bs-theme="dark"] .public-shell .directory-table th[aria-sort] .directory-sort,
[data-bs-theme="dark"] .public-shell .directory-sort i { color: var(--accent-blue); }
[data-bs-theme="dark"] .public-shell .directory-table > tbody tr:nth-child(even),
[data-bs-theme="dark"] .public-shell .directory-table tbody tr:nth-child(even) .coin-name-column { background: #1b2940; }
[data-bs-theme="dark"] .public-shell .directory-table > tbody tr:hover,
[data-bs-theme="dark"] .public-shell .directory-table tbody tr:hover .coin-name-column { background: #253c5c; }
[data-bs-theme="dark"] .public-shell .algorithm-tag,
[data-bs-theme="dark"] .public-shell .directory-icon { background: #28446b; color: #d6e8ff; }
[data-bs-theme="dark"] .public-shell .directory-icon img { background: #203655; }
[data-bs-theme="dark"] .public-shell .movement { background: #2b3c58; color: #e0eaff; }
[data-bs-theme="dark"] .public-shell .movement.up { background: #1b473e; color: #9af4d1; }
[data-bs-theme="dark"] .public-shell .movement.down { background: #583048; color: #ffbccb; }
[data-bs-theme="dark"] .public-shell .table { --bs-table-striped-bg: #1b2940; --bs-table-hover-bg: #253c5c; }
[data-bs-theme="dark"] .public-shell .dropdown-item:hover,
[data-bs-theme="dark"] .public-shell .page-link:hover { color: #e7f0ff; }
[data-bs-theme="dark"] .public-shell .btn-outline-primary { --bs-btn-color: #c4deff; --bs-btn-border-color: #96b5e3; }
[data-bs-theme="dark"] .public-shell .btn-outline-info { --bs-btn-color: #a7e6fb; --bs-btn-border-color: #7db6cb; }
[data-bs-theme="dark"] .public-shell .nav, [data-bs-theme="dark"] .public-shell .nav-tabs {
  --bs-nav-link-color: #c4ddff;
  --bs-nav-link-hover-color: #e3efff;
}
[data-bs-theme="dark"] .public-shell .chart-loading #activity-status::before {
  background-image: linear-gradient(100deg,#1d304d 25%,#294265 48%,#1d304d 70%);
}
[data-bs-theme="dark"] .public-shell :is(#blocks-chart,#hashrate-chart,#price-chart,#pool-hashrate-chart) :is(.apexcharts-xaxis-label,.apexcharts-yaxis-label,.apexcharts-datalabel-label,.apexcharts-datalabel-value) { fill: #cbd9ee; }
[data-bs-theme="dark"] .public-shell :is(#blocks-chart,#hashrate-chart,#price-chart,#pool-hashrate-chart) .apexcharts-legend-text { color: #cbd9ee !important; }
[data-bs-theme="dark"] .public-shell :is(#hashrate-chart,#price-chart,#pool-hashrate-chart) .apexcharts-gridline { stroke: #344662; }
