:root {
  /* Bootstrap 5.3 uses CSS variables; override a few to match dodostats. */
  --bs-primary: #ff4d00;
  --bs-primary-rgb: 255, 77, 0;
  --ds-accent2: #0ea5a4;
  --ds-accent2-rgb: 14, 165, 164;
  --bs-font-sans-serif: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body {
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(255, 77, 0, 0.10), transparent 62%),
    radial-gradient(780px 520px at 100% 8%, rgba(14, 165, 164, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0)) ,
    var(--bs-body-bg);
}

.navbar.dodo-nav {
  background: rgba(255,255,255,0.78) !important;
  backdrop-filter: blur(10px);
}

.navbar.dodo-nav .container-xl {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

/* Nav list is empty; do not render burger/collapse placeholders. */
.navbar.dodo-nav .navbar-toggler,
.navbar.dodo-nav .navbar-collapse {
  display: none !important;
}

.ds-nav-quick-actions {
  flex: 0 0 auto;
  margin-left: auto !important;
  justify-content: flex-end;
}

.ds-currency-switcher-wrap {
  flex-wrap: nowrap;
  position: relative;
}

.ds-currency-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ds-currency-trigger {
  border: 0;
  background: transparent;
  padding: 4px 2px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(11, 18, 32, 0.92);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.ds-currency-trigger:hover {
  color: rgba(11, 18, 32, 1);
}

.ds-currency-trigger:focus-visible {
  outline: 2px solid rgba(var(--bs-primary-rgb), 0.36);
  outline-offset: 2px;
}

.ds-currency-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--bs-primary-rgb), 0.98);
  flex: 0 0 auto;
}

.ds-currency-icon svg {
  width: 18px;
  height: 18px;
}

.ds-currency-icon svg path {
  fill: currentColor;
}

.ds-currency-trigger-text {
  font-size: 16px;
  font-weight: 400;
}

.ds-currency-caret {
  font-size: 0.78rem;
  opacity: 0.78;
  color: rgba(11, 18, 32, 0.72);
  transition: transform 0.18s ease;
}

.ds-currency-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  max-width: min(88vw, 320px);
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(11, 18, 32, 0.16);
  backdrop-filter: blur(10px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.ds-currency-menu.is-open .ds-currency-popover,
.ds-currency-menu:hover .ds-currency-popover,
.ds-currency-menu:focus-within .ds-currency-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.ds-currency-menu.is-open .ds-currency-caret,
.ds-currency-menu:hover .ds-currency-caret,
.ds-currency-menu:focus-within .ds-currency-caret {
  transform: rotate(180deg);
}

.ds-currency-option {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: transparent;
  color: rgba(11, 18, 32, 0.92);
  font-size: 1.02rem;
  font-weight: 650;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.ds-currency-option:hover,
.ds-currency-option:focus-visible {
  background: rgba(var(--bs-primary-rgb), 0.11);
  color: rgba(var(--bs-primary-rgb), 1);
}

.ds-currency-option.active {
  background: rgba(var(--bs-primary-rgb), 0.16);
  color: rgba(var(--bs-primary-rgb), 1);
}

.ds-currency-option-check {
  width: 16px;
  text-align: center;
  color: currentColor;
  font-weight: 800;
}

.ds-currency-option.ds-currency-option-link,
.ds-currency-option.ds-currency-option-link:visited {
  color: rgba(11, 18, 32, 0.92);
  text-decoration: none;
}

.dodo-card {
  border: 1px solid rgba(11,18,32,0.10);
  box-shadow: 0 10px 24px rgba(11,18,32,0.06);
}

.dodo-card h2.h6.fw-bold {
  font-size: 22px;
  line-height: 1.2;
}

.dodo-kv dt {
  color: rgba(11,18,32,0.62);
  font-weight: 500;
}
.dodo-kv dd {
  color: rgba(11,18,32,0.92);
}

.dodo-metric {
  border: 1px solid rgba(11,18,32,0.10);
  box-shadow: 0 10px 22px rgba(11,18,32,0.04);
}
.dodo-metric .label {
  color: rgba(11,18,32,0.62);
  font-size: 12px;
}
.dodo-metric .value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.dodo-metric .sub {
  color: rgba(11,18,32,0.52);
  font-size: 12px;
}
.dodo-metric-note {
  font-family: var(--bs-font-sans-serif);
  font-size: 12px;
  font-weight: 500;
  color: rgba(11,18,32,0.62);
  white-space: nowrap;
}

.table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255,255,255,0.92);
}

.dodo-ops-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.dodo-ops-table-equal {
  table-layout: fixed;
  width: max(100%, 900px);
  min-width: 900px;
}

.dodo-ops-table-equal > :not(caption) > * > th,
.dodo-ops-table-equal > :not(caption) > * > td {
  width: 16.6667%;
  white-space: nowrap;
  word-break: normal;
}

.dodo-delta.good { color: #067647; }
.dodo-delta.bad { color: #b42318; }
.dodo-delta.neutral { color: rgba(11,18,32,0.52); }

.dodo-bars-wrap {
  border: 1px solid rgba(11,18,32,0.10);
  background: rgba(255,255,255,0.66);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.dodo-bars {
  height: 160px;
  display: flex;
  gap: var(--ds-bar-gap, 4px);
  align-items: flex-end;
}
.dodo-bar {
  flex: 1 1 0;
  min-width: var(--ds-bar-min, 4px);
  height: 100%;
  border-radius: 8px 8px 4px 4px;
  background: rgba(var(--bs-primary-rgb), 0.14);
  position: relative;
  overflow: hidden;
}
.dodo-bar.is-hover {
  box-shadow: inset 0 0 0 2px rgba(var(--ds-accent2-rgb), 0.65);
}
.dodo-bar > i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--h, 0%);
  background: rgba(var(--bs-primary-rgb), 0.85);
  box-shadow: 0 10px 26px rgba(var(--bs-primary-rgb), 0.12);
}
.dodo-bar.today > i {
  background: rgba(var(--ds-accent2-rgb), 0.85);
  box-shadow: 0 10px 26px rgba(var(--ds-accent2-rgb), 0.14);
}

@media (max-width: 576px) {
  .dodo-card h2.h6.fw-bold {
    font-size: 20px;
  }
}

@media (max-width: 767.98px) {
  .ds-nav-quick-actions {
    gap: 4px !important;
    margin-right: 4px;
  }

  .ds-currency-trigger {
    gap: 0;
    padding: 6px 4px;
  }

  .ds-currency-trigger-text,
  .ds-currency-caret {
    display: none;
  }

  .ds-currency-icon,
  .ds-currency-icon svg {
    width: 20px;
    height: 20px;
  }

  .ds-currency-popover {
    left: auto;
    right: 0;
    min-width: 220px;
  }
}
