/* Member Dashboard - small custom styles on top of Tailwind's CDN utilities */
/* The dashboard is dark only, but the browser did not know it: the drop-down list of a <select>, the suggestion list of a text box and date pickers were drawn light (a white box on a
   dark page). `color-scheme: dark` on the controls themselves makes the browser draw them dark. It is NOT set on <html>: that would also change how embedded frames (charts, ads) are painted. */
input, select, textarea { color-scheme: dark; }
body { font-family: 'Inter', sans-serif; background: #03060d; }
.card { background: #070c16; border: 1px solid #1a2332; border-radius: 1rem; }
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #1a2332; border-radius: 4px; }

/* Root cause of the "wide table spills out of its card / overlaps the
   sibling column" bug reported on Mining Profitability Calculator (and
   silently affecting every other dashboard page using the same markup
   pattern): every page wraps its <table> in a <div class="table-wrapper">,
   but that class was only ever defined in the main site's /styles.css, not
   here in the dashboard's own stylesheet - so on every dashboard page the
   wrapper had zero effect and wide tables overflowed uncontained. */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrapper::-webkit-scrollbar { height: 6px; }
.table-wrapper::-webkit-scrollbar-track { background: #0a1020; border-radius: 3px; }
.table-wrapper::-webkit-scrollbar-thumb { background: #E5A93C; border-radius: 3px; opacity: 0.7; }
.table-wrapper::-webkit-scrollbar-thumb:hover { background: #FFB800; }

/* Sitewide: form input placeholders were reading as near-invisible (browser
   defaults + Firefox's automatic opacity dimming). Force a legible, still
   clearly "placeholder-dim" gray at full opacity across every input/select/
   textarea on the dashboard. */
input::placeholder, textarea::placeholder { color: #94a3b8; opacity: 1; }
select { color: #e5e7eb; }

/* Prominent card CTA buttons — replaces plain "Open/Manage/View All" text
   links so users can tell at a glance that a card opens a full dedicated
   page, not just an inline widget. Pill-shaped, fills solid on hover. */
.dc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.8rem;
  border-radius: 9999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.dc-cta-btn:hover {
  background: #fbbf24;
  color: #03060d;
  border-color: #fbbf24;
  transform: translateY(-1px);
}
.dc-cta-btn .dc-cta-arrow { transition: transform .15s ease; }
.dc-cta-btn:hover .dc-cta-arrow { transform: translateX(2px); }

/* Inline "this text is a clickable link" affordance for plain-looking table
   cells (a token name, a block height, an address, a proposal title) that
   link out to an explorer/profile/source but otherwise read as static text -
   user-reported 2026-09-18: real clickable cells across the site were going
   unnoticed with no visual cue. Not for full buttons (those use .dc-cta-btn
   above) - a quiet dashed underline plus a small outward arrow, subtle at
   rest, brighter on hover. */
.dc-inline-link { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(251, 191, 36, 0.35); }
.dc-inline-link:hover { color: #fbbf24; border-bottom-color: #fbbf24; }
.dc-inline-link::after { content: '↗'; display: inline-block; margin-left: 0.15em; font-size: 0.75em; opacity: 0.55; transform: translateY(-0.05em); }
.dc-inline-link:hover::after { opacity: 1; }

/* Small looping animated icon used on the 3 standalone-tool dashboard cards
   (Compounding / Risk of Ruin / Drawdown) - CSS-only (transform/opacity),
   cheap to render, paused for users who prefer reduced motion. */
@keyframes dc-icon-pulse-line {
  0%, 100% { stroke-dashoffset: 0; opacity: .85; }
  50% { stroke-dashoffset: 12; opacity: 1; }
}
@keyframes dc-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
/* Small looping animated icon used on dashboard tool-preview cards. Uses a
   scale+opacity "breathe" pulse on the whole SVG wrapper (not dependent on
   internal <path>/<circle> specifics) so it's reliably visible no matter
   what the icon's internal markup looks like - the previous stroke-dash
   approach silently did nothing on icons built from <circle> elements or
   paths without a dasharray. Paused for users who prefer reduced motion. */
@keyframes dc-icon-breathe {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.18); opacity: 1; }
}
.dc-anim-icon { transform-origin: center; animation: dc-icon-breathe 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .dc-anim-icon, .dc-anim-icon path { animation: none !important; }
}

/* Growing/shrinking bars used for the Martingale icon - visually ties to
   "escalating bet size." */
@keyframes dc-bar-grow-1 { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }
@keyframes dc-bar-grow-2 { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.5); } }
.dc-bar-a { transform-box: fill-box; transform-origin: bottom; animation: dc-bar-grow-1 1.4s ease-in-out infinite; }
.dc-bar-b { transform-box: fill-box; transform-origin: bottom; animation: dc-bar-grow-2 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .dc-bar-a, .dc-bar-b { animation: none !important; } }

/* Connect Wallet button — a proper pill with a gradient sheen + lift on
   hover instead of a flat rectangle, and a genuinely distinct "connected"
   look (emerald + live pulse dot) instead of just swapping an emoji inside
   the same amber rectangle. */
.dc-wallet-btn {
  position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
}
.dc-wallet-btn--disconnected {
  background: linear-gradient(135deg, rgba(251,191,36,0.16), rgba(217,119,6,0.10));
  border: 1px solid rgba(251,191,36,0.4);
  color: #fbbf24;
}
.dc-wallet-btn--disconnected:hover {
  background: linear-gradient(135deg, rgba(251,191,36,0.28), rgba(217,119,6,0.18));
  border-color: rgba(251,191,36,0.7);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(251,191,36,0.15);
}
.dc-wallet-btn--connected {
  background: linear-gradient(135deg, rgba(52,211,153,0.16), rgba(16,185,129,0.08));
  border: 1px solid rgba(52,211,153,0.45);
  color: #34d399;
}
.dc-wallet-btn--connected:hover {
  background: linear-gradient(135deg, rgba(52,211,153,0.26), rgba(16,185,129,0.14));
  border-color: rgba(52,211,153,0.75);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(52,211,153,0.18);
}
.dc-live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 9999px;
  background: #34d399; box-shadow: 0 0 0 rgba(52,211,153,0.6);
  animation: dc-live-pulse 1.8s ease-out infinite;
}
@keyframes dc-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); }
  70% { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
@media (prefers-reduced-motion: reduce) { .dc-live-dot { animation: none; } }

/* ==========================================================================
   Premium sidebar + discovery chrome (Pinned Pages, related, command palette)
   ========================================================================== */

/* Wider, calmer sidebar — labels stay single-line */
#dcSidebar.dc-sidebar,
aside#dcSidebar {
  width: 18.5rem; /* ~296px */
  max-width: 86vw;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(251,191,36,0.07), transparent 55%),
    linear-gradient(180deg, #070b14 0%, #050910 48%, #04070f 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.08);
  padding: 1rem 0.85rem 0.85rem;
  box-shadow: 8px 0 40px rgba(0,0,0,0.25);
}

#dcSidebarMount {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: 0.65rem;
}

/* Desktop rail layout.
   The rail is NOT height-capped and does NOT scroll internally - it renders
   exactly as it always has. The only rule here is about the sponsor square:
   the nav list must take its natural height instead of stretching, so the
   square sits DIRECTLY under the last menu item, in the same place on every
   page. Previously `.dc-side-nav { flex: 1 }` made the list absorb all the
   leftover height of a very tall page, which shoved the square hundreds
   (sometimes thousands) of pixels down, to a different spot on every page
   depending on how long that page happened to be.
   The mobile drawer keeps the original scrolling behaviour. */
@media (min-width: 768px) {
  #dcSidebarMount { height: auto; }
  .dc-side-nav { flex: 0 0 auto; overflow: visible; }
  .dc-ad-side { margin-top: 0; }
}

/* Brand */
.dc-side-brand { padding: 0.15rem 0.35rem 0.25rem; }
.dc-side-logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.dc-side-mark {
  width: 2.25rem; height: 2.25rem; border-radius: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(251,191,36,0.95), rgba(217,119,6,0.85));
  box-shadow: 0 0 0 1px rgba(251,191,36,0.25), 0 8px 22px rgba(251,191,36,0.18);
  flex-shrink: 0;
}
.dc-side-mark svg { color: #03060d !important; }
.dc-side-wordmark { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.dc-side-name { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.01em; color: #f8fafc; line-height: 1.1; }
.dc-side-name span { color: #fbbf24; }
.dc-side-badge {
  display: inline-flex; width: fit-content;
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #cbd5e1; border: 1px solid rgba(148,163,184,0.22);
  border-radius: 999px; padding: 0.12rem 0.45rem; background: rgba(15,23,42,0.55);
}

/* Menu search */
.dc-side-search-wrap { position: relative; padding: 0 0.15rem; }
.dc-side-search {
  display: flex; align-items: center; gap: 0.45rem;
  background: rgba(2,6,14,0.85);
  border: 1px solid rgba(148,163,184,0.14);
  border-radius: 0.8rem;
  padding: 0.55rem 0.65rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dc-side-search:focus-within {
  border-color: rgba(251,191,36,0.45);
  box-shadow: 0 0 0 3px rgba(251,191,36,0.08);
}
.dc-side-search-ico { color: #94a3b8; font-size: 0.95rem; line-height: 1; }
.dc-side-search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: #e2e8f0; font-size: 0.8rem; font-weight: 500;
}
.dc-side-search input::placeholder { color: #8b9cb3; opacity: 1; }
.dc-side-search-kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem; color: #94a3b8;
  border: 1px solid rgba(148,163,184,0.2); border-radius: 0.35rem;
  padding: 0.1rem 0.3rem; background: rgba(15,23,42,0.7); cursor: pointer;
}
.dc-side-search-results {
  position: absolute; left: 0.15rem; right: 0.15rem; top: calc(100% + 0.35rem);
  z-index: 40; max-height: 16rem; overflow: auto;
  background: #0a101c; border: 1px solid rgba(148,163,184,0.16);
  border-radius: 0.85rem; box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.dc-side-search-hit {
  display: flex; align-items: flex-start; gap: 0.55rem;
  padding: 0.6rem 0.75rem; text-decoration: none;
  border-bottom: 1px solid rgba(148,163,184,0.06);
  color: #e2e8f0;
}
.dc-side-search-hit:last-child { border-bottom: 0; }
.dc-side-search-hit:hover { background: rgba(251,191,36,0.08); }
.dc-side-search-hit-body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.dc-side-search-hit-body strong { font-size: 0.78rem; font-weight: 700; color: #f8fafc; }
.dc-side-search-hit-body em { font-style: normal; font-size: 0.68rem; color: #94a3b8; }
.dc-side-search-empty { padding: 0.85rem; text-align: center; font-size: 0.75rem; color: #94a3b8; }

/* Pinned strip */
.dc-side-pins {
  margin: 0.1rem 0.1rem 0;
  padding: 0.55rem 0.55rem 0.45rem;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(251,191,36,0.07), rgba(251,191,36,0.02));
  border: 1px solid rgba(251,191,36,0.14);
}
.dc-side-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.4rem; padding: 0 0.1rem;
}
.dc-side-section-title {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: #e2e8f0;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.dc-side-section-count {
  min-width: 1.25rem; height: 1.25rem; padding: 0 0.35rem;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800; color: #fbbf24;
  background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.25);
}
.dc-side-pins-list { display: flex; flex-direction: column; gap: 0.15rem; max-height: 9.5rem; overflow: auto; }
.dc-pin-link {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.45rem; border-radius: 0.55rem;
  text-decoration: none; color: #cbd5e1; font-size: 0.78rem; font-weight: 600;
  border: 1px solid transparent;
}
.dc-pin-link:hover { background: rgba(255,255,255,0.03); color: #f8fafc; }
.dc-pin-link.is-active {
  color: #fbbf24; background: rgba(251,191,36,0.1);
  border-color: rgba(251,191,36,0.22);
}
.dc-pin-link-ico { width: 1.1rem; text-align: center; flex-shrink: 0; }
.dc-pin-link-txt {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dc-pin-empty { padding: 0.45rem 0.25rem 0.55rem; }
.dc-pin-empty p { margin: 0; font-size: 0.78rem; font-weight: 700; color: #e2e8f0; }
.dc-pin-empty span { display: block; margin-top: 0.15rem; font-size: 0.68rem; color: #94a3b8; line-height: 1.35; }
.dc-side-pins-manage {
  display: inline-flex; margin-top: 0.35rem; padding: 0.15rem 0.2rem;
  font-size: 0.68rem; font-weight: 700; color: #fbbf24; text-decoration: none;
}
.dc-side-pins-manage:hover { text-decoration: underline; }

.dc-side-divider {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.15rem 0.35rem 0;
  color: #93a6bd; font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.dc-side-divider::before,
.dc-side-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(148,163,184,0.12);
}

/* Nav accordion */
.dc-side-nav {
  flex: 1; min-height: 0; overflow: auto;
  padding: 0.15rem 0.1rem 0.5rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.dc-nav-group {
  border-radius: 0.75rem;
  border: 1px solid transparent;
}
.dc-nav-group.is-open {
  background: rgba(255,255,255,0.015);
  border-color: rgba(148,163,184,0.08);
}
.dc-nav-group-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; padding: 0.55rem 0.6rem; border: 0; background: transparent;
  color: #e2e8f0; cursor: pointer; border-radius: 0.75rem;
  transition: background .15s ease;
}
.dc-nav-group-btn:hover { background: rgba(255,255,255,0.03); }
.dc-nav-group-left { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.dc-nav-group-icon {
  width: 1.35rem; height: 1.35rem; border-radius: 0.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; color: #fbbf24;
  background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.14);
  flex-shrink: 0;
}
.dc-nav-group-label {
  font-size: 0.78rem; font-weight: 750; letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-nav-group-meta { display: inline-flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.dc-nav-group-count {
  font-size: 0.62rem; font-weight: 800; color: #94a3b8;
  min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(148,163,184,0.1); border: 1px solid rgba(148,163,184,0.12);
}
.dc-nav-chevron {
  width: 0.4rem; height: 0.4rem;
  border-right: 1.5px solid #94a3b8; border-bottom: 1.5px solid #94a3b8;
  transform: rotate(-45deg); transition: transform .18s ease;
  margin-bottom: 0.1rem;
}
.dc-nav-group.is-open .dc-nav-chevron { transform: rotate(45deg); margin-bottom: 0.25rem; }
.dc-nav-group-body {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0 0.3rem 0.4rem 0.35rem;
}
.dc-nav-group.is-open > .dc-nav-group-body {
  display: flex;
}
/* HTML [hidden] must always win over display:flex (browser quirk) */
.dc-nav-group-body[hidden] {
  display: none !important;
}

/* Large categories (Network Stats etc, currently 38 items and growing) get
   a height-capped, internally scrollable list instead of dumping every item
   flat into the sidebar - keeps the same layout usable at 20 items or 100. */
.dc-nav-group-body--scroll { gap: 0.3rem; }
.dc-nav-group-search { padding: 0 0.05rem; }
.dc-nav-group-search-input {
  width: 100%; background: rgba(2,6,14,0.7);
  border: 1px solid rgba(148,163,184,0.14); border-radius: 0.6rem;
  padding: 0.36rem 0.55rem; color: #e2e8f0; font-size: 0.72rem; font-weight: 500;
  outline: none; transition: border-color .15s ease;
}
.dc-nav-group-search-input::placeholder { color: #8b9cb3; opacity: 1; }
.dc-nav-group-search-input:focus { border-color: rgba(251,191,36,0.4); }
.dc-nav-group-scroll-wrap { position: relative; }
/* Fade masks hint that content continues past the edge, on top of the
   scrollbar itself - only shown on the side that still has more to reveal. */
.dc-nav-group-scroll-wrap::before,
.dc-nav-group-scroll-wrap::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1rem;
  pointer-events: none; z-index: 2; opacity: 0; transition: opacity .15s ease;
}
.dc-nav-group-scroll-wrap::before { top: 0; background: linear-gradient(180deg, #070b12, transparent); }
.dc-nav-group-scroll-wrap::after { bottom: 0; background: linear-gradient(0deg, #070b12, transparent); }
.dc-nav-group-scroll-wrap.can-scroll-up::before { opacity: 1; }
.dc-nav-group-scroll-wrap.can-scroll-down::after { opacity: 1; }
.dc-nav-group-scroll {
  display: flex; flex-direction: column; gap: 0.1rem;
  max-height: 23rem; overflow-y: auto; scroll-behavior: smooth;
  padding-right: 0.2rem;
}
.dc-nav-group-scroll::-webkit-scrollbar { width: 5px; }
.dc-nav-group-scroll::-webkit-scrollbar-track { background: transparent; }
.dc-nav-group-scroll::-webkit-scrollbar-thumb { background: rgba(251,191,36,0.3); border-radius: 999px; }
.dc-nav-group-scroll::-webkit-scrollbar-thumb:hover { background: rgba(251,191,36,0.5); }
/* Up/down scroll buttons - only visible on the side there's still more to
   see (toggled via JS on scroll), so they double as a "more below" hint. */
.dc-nav-scroll-btn {
  /* Stays in place and clickable at BOTH ends of the list (opacity-dimmed,
     never opacity:0/pointer-events:none) - previously the button vanished
     the instant scroll hit the top/bottom, so a repeated click aimed at
     "scroll more" landed on whatever nav item was newly revealed
     underneath instead, causing an unintended navigation (real bug found
     2026-08-21). A dimmed-but-present, still-clickable button is a safe
     no-op when there's nothing left to scroll (scrollBy() with no room to
     move just does nothing), and gives the user clear "you're at the end"
     feedback instead of a moving target. */
  position: absolute; left: 50%; transform: translateX(-50%) scale(0.85);
  width: 1.8rem; height: 1.1rem; display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,0.95); border: 1px solid rgba(251,191,36,0.35);
  border-radius: 999px; color: #fbbf24; font-size: 0.5rem; line-height: 1;
  cursor: pointer; z-index: 3; opacity: 0.28; pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: opacity .15s ease, transform .15s ease, background .15s ease;
}
.dc-nav-scroll-btn--up { top: -0.15rem; }
.dc-nav-scroll-btn--down { bottom: -0.15rem; }
.dc-nav-group-scroll-wrap.can-scroll-up .dc-nav-scroll-btn--up,
.dc-nav-group-scroll-wrap.can-scroll-down .dc-nav-scroll-btn--down {
  opacity: 1; transform: translateX(-50%) scale(1);
}
.dc-nav-scroll-btn:hover { background: rgba(251,191,36,0.18); }
.dc-nav-group-filter-empty {
  padding: 0.6rem 0.4rem; text-align: center;
  font-size: 0.72rem; color: #8b9cb3;
}

.dc-nav-item {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.42rem 0.55rem; border-radius: 0.55rem;
  text-decoration: none; color: #cbd5e1;
  font-size: 0.78rem; font-weight: 600;
  border: 1px solid transparent;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.dc-nav-item:hover { background: rgba(255,255,255,0.035); color: #f8fafc; }
.dc-nav-item.is-active {
  color: #fbbf24;
  background: linear-gradient(90deg, rgba(251,191,36,0.14), rgba(251,191,36,0.04));
  border-color: rgba(251,191,36,0.2);
  box-shadow: inset 2px 0 0 #fbbf24;
}
.dc-nav-item--top {
  margin: 0.1rem 0.1rem 0.25rem;
  padding: 0.55rem 0.7rem;
  background: rgba(251,191,36,0.04);
  border: 1px solid rgba(251,191,36,0.1);
}
.dc-nav-item--top.is-active {
  background: linear-gradient(90deg, rgba(251,191,36,0.16), rgba(251,191,36,0.05));
}
.dc-nav-ico { width: 1.15rem; text-align: center; flex-shrink: 0; opacity: 0.95; }
.dc-nav-label {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Footer */
.dc-side-footer {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding-top: 0.35rem; border-top: 1px solid rgba(148,163,184,0.1);
}
.dc-side-cmd {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0.5rem 0.65rem; border-radius: 0.65rem;
  background: rgba(2,6,14,0.7); border: 1px solid rgba(148,163,184,0.12);
  color: #cbd5e1; font-size: 0.72rem; font-weight: 650; cursor: pointer;
}
.dc-side-cmd:hover { border-color: rgba(251,191,36,0.3); color: #f8fafc; }
.dc-side-cmd kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem; color: #94a3b8;
  border: 1px solid rgba(148,163,184,0.18); border-radius: 0.3rem; padding: 0.05rem 0.3rem;
}
.dc-side-logout {
  display: flex; align-items: center; gap: 0.5rem;
  width: 100%; padding: 0.55rem 0.65rem; border-radius: 0.65rem;
  background: transparent; border: 1px solid transparent;
  color: #94a3b8; font-size: 0.78rem; font-weight: 650; cursor: pointer;
}
.dc-side-logout:hover {
  color: #f87171; background: rgba(248,113,113,0.08);
  border-color: rgba(248,113,113,0.18);
}

/* Page actions / Pin button */
.dc-page-actions {
  display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
}
.dc-page-actions--floating { justify-content: flex-end; margin-bottom: 0.75rem; }
.dc-back-link {
  font-size: 0.72rem !important; font-weight: 750 !important;
  color: #fbbf24 !important; text-decoration: none !important;
  white-space: nowrap;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(251,191,36,0.25);
  background: rgba(251,191,36,0.06);
}
.dc-back-link:hover { background: rgba(251,191,36,0.14); }
.dc-pin-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.75rem; border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(15,23,42,0.7);
  color: #e2e8f0; font-size: 0.72rem; font-weight: 800;
  cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.dc-pin-btn:hover { border-color: rgba(251,191,36,0.4); color: #fbbf24; }
.dc-pin-btn.is-pinned {
  color: #03060d; background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: #fbbf24; box-shadow: 0 6px 18px rgba(251,191,36,0.22);
}
.dc-pin-ico { font-size: 0.85rem; line-height: 1; }

/* Related cards */
.dc-related {
  margin-top: 2rem;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(148,163,184,0.12);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(251,191,36,0.08), transparent 55%),
    linear-gradient(180deg, rgba(11,18,32,0.95), rgba(7,12,22,0.95));
}
.dc-related-head { margin-bottom: 0.85rem; }
.dc-related-kicker {
  margin: 0; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fbbf24;
}
.dc-related-title {
  margin: 0.2rem 0 0; font-size: 1.05rem; font-weight: 800; color: #f8fafc;
}
.dc-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .dc-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .dc-related-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.dc-related-card {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.85rem 0.85rem 0.9rem;
  border-radius: 0.85rem; text-decoration: none;
  background: rgba(3,6,13,0.55);
  border: 1px solid rgba(148,163,184,0.1);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  min-width: 0;
}
.dc-related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251,191,36,0.35);
  background: rgba(251,191,36,0.06);
}
.dc-related-ico {
  width: 2rem; height: 2rem; border-radius: 0.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.18);
  flex-shrink: 0; font-size: 0.95rem;
}
.dc-related-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.dc-related-body strong {
  font-size: 0.82rem; font-weight: 800; color: #f8fafc;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-related-body em {
  font-style: normal; font-size: 0.7rem; color: #94a3b8; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dc-related-arrow {
  color: #fbbf24; font-weight: 800; opacity: 0.7; margin-top: 0.15rem; flex-shrink: 0;
}
.dc-related-card:hover .dc-related-arrow { opacity: 1; }

/* Command palette */
.dc-cmd {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 1rem 1rem;
}
.dc-cmd.hidden { display: none !important; }
.dc-cmd-backdrop { position: absolute; inset: 0; background: rgba(2,6,14,0.72); backdrop-filter: blur(6px); }
.dc-cmd-panel {
  position: relative; width: min(560px, 100%);
  background: #0a101c; border: 1px solid rgba(148,163,184,0.16);
  border-radius: 1rem; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.dc-cmd-input-wrap {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1rem; border-bottom: 1px solid rgba(148,163,184,0.1);
}
.dc-cmd-ico { color: #94a3b8; }
.dc-cmd-input-wrap input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: #f8fafc; font-size: 0.95rem; font-weight: 600;
}
.dc-cmd-input-wrap kbd {
  font-size: 0.65rem; color: #94a3b8; border: 1px solid rgba(148,163,184,0.2);
  border-radius: 0.3rem; padding: 0.1rem 0.35rem;
}
.dc-cmd-list { max-height: 22rem; overflow: auto; padding: 0.4rem; }
.dc-cmd-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.75rem; border-radius: 0.7rem; text-decoration: none;
  color: #e2e8f0; border: 1px solid transparent;
}
.dc-cmd-item.is-active, .dc-cmd-item:hover {
  background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.18); color: #fbbf24;
}
.dc-cmd-item-body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.dc-cmd-item-body strong { font-size: 0.85rem; font-weight: 750; color: inherit; }
.dc-cmd-item-body em { font-style: normal; font-size: 0.7rem; color: #94a3b8; }
.dc-cmd-empty { padding: 1.25rem; text-align: center; color: #94a3b8; font-size: 0.85rem; }
.dc-cmd-foot {
  display: flex; gap: 0.9rem; flex-wrap: wrap;
  padding: 0.55rem 0.9rem; border-top: 1px solid rgba(148,163,184,0.1);
  color: #93a6bd; font-size: 0.68rem;
}
.dc-cmd-foot kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  border: 1px solid rgba(148,163,184,0.18); border-radius: 0.25rem;
  padding: 0 0.25rem; margin: 0 0.1rem; color: #94a3b8;
}

/* Pinned Pages grids (dashboard home + dedicated page) */
/* Compact pinned cards — related-card density so 12 pins stay short */
.dc-pinned-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
@media (min-width: 640px) {
  .dc-pinned-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .dc-pinned-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.dc-pinned-card {
  position: relative;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.85rem; text-decoration: none;
  background: rgba(3,6,13,0.55);
  border: 1px solid rgba(148,163,184,0.1);
  min-height: 0;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.dc-pinned-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251,191,36,0.35);
  background: rgba(251,191,36,0.06);
}
.dc-pinned-card-ico {
  width: 2rem; height: 2rem; border-radius: 0.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
  background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.18);
}
.dc-pinned-card-body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1; }
.dc-pinned-card-body strong {
  font-size: 0.8rem; font-weight: 800; color: #f8fafc;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-pinned-card-body em {
  font-style: normal; font-size: 0.68rem; color: #94a3b8; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-pinned-card-go {
  flex-shrink: 0;
  font-size: 0.65rem; font-weight: 800; color: #03060d;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 999px; padding: 0.28rem 0.6rem;
  box-shadow: 0 4px 12px rgba(251,191,36,0.18);
}
.dc-pinned-card:hover .dc-pinned-card-go { filter: brightness(1.05); }
.dc-pinned-card-x {
  position: absolute; top: 0.35rem; right: 0.35rem;
  width: 1.35rem; height: 1.35rem; border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.18); background: rgba(3,6,13,0.7);
  color: #94a3b8; font-size: 0.9rem; line-height: 1; cursor: pointer; z-index: 2;
}
.dc-pinned-card-x:hover { color: #f87171; border-color: rgba(248,113,113,0.35); }
.dc-pinned-empty-card {
  text-align: center; padding: 1.1rem 1rem;
  border-radius: 0.9rem; border: 1px dashed rgba(251,191,36,0.28);
  background: rgba(251,191,36,0.04);
}
.dc-pinned-empty-ico {
  width: 2.4rem; height: 2.4rem; margin: 0 auto 0.5rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(251,191,36,0.12); color: #fbbf24; font-size: 1rem;
}
.dc-pinned-empty-card h3 { margin: 0; color: #f8fafc; font-size: 0.95rem; font-weight: 800; }
.dc-pinned-empty-card p { margin: 0.35rem auto 0.75rem; max-width: 28rem; color: #94a3b8; font-size: 0.78rem; line-height: 1.45; }
.dc-pinned-empty-card strong { color: #e2e8f0; }

/* Recently visited — horizontal timeline cards */
.dc-recent-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .dc-recent-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .dc-recent-row { grid-template-columns: repeat(4, 1fr); }
}
.dc-recent-chip {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.65rem 0.75rem; border-radius: 0.85rem; text-decoration: none;
  font-size: 0.78rem; font-weight: 700; color: #e2e8f0;
  background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(7,12,22,0.95));
  border: 1px solid rgba(148,163,184,0.12);
  min-width: 0;
  transition: border-color .15s ease, transform .15s ease;
}
.dc-recent-chip:hover { border-color: rgba(251,191,36,0.4); color: #fbbf24; transform: translateY(-1px); }
.dc-recent-chip > span:first-child {
  width: 1.85rem; height: 1.85rem; border-radius: 0.55rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.16);
  flex-shrink: 0;
}
.dc-recent-chip-body { min-width: 0; display: flex; flex-direction: column; gap: 0.05rem; }
.dc-recent-chip-body strong {
  font-size: 0.78rem; font-weight: 800; color: inherit;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-recent-chip-body em {
  font-style: normal; font-size: 0.65rem; color: #94a3b8; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-recent-empty {
  padding: 0.85rem 1rem; border-radius: 0.85rem;
  border: 1px dashed rgba(148,163,184,0.18);
  color: #94a3b8; font-size: 0.78rem; background: rgba(15,23,42,0.4);
}

/* Desk category cards with mini sub-links */
.dc-desk-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem;
}
@media (min-width: 900px) {
  .dc-desk-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.dc-desk-card {
  border-radius: 1rem; padding: 0.95rem 0.95rem 0.85rem;
  border: 1px solid rgba(148,163,184,0.12);
  background: linear-gradient(165deg, rgba(251,191,36,0.07), rgba(7,12,22,0.96) 42%);
  min-height: 100%;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.dc-desk-card[data-tone="cyan"] {
  background: linear-gradient(165deg, rgba(56,189,248,0.09), rgba(7,12,22,0.96) 42%);
}
.dc-desk-card[data-tone="emerald"] {
  background: linear-gradient(165deg, rgba(52,211,153,0.09), rgba(7,12,22,0.96) 42%);
}
.dc-desk-kicker {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fbbf24;
}
.dc-desk-card[data-tone="cyan"] .dc-desk-kicker { color: #38bdf8; }
.dc-desk-card[data-tone="emerald"] .dc-desk-kicker { color: #34d399; }
.dc-desk-title { margin: 0; color: #f8fafc; font-size: 0.98rem; font-weight: 800; }
.dc-desk-sub {
  display: flex; flex-direction: column; gap: 0.28rem; margin-top: 0.15rem;
}
.dc-desk-link {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.45rem; border-radius: 0.5rem;
  text-decoration: none; color: #cbd5e1; font-size: 0.72rem; font-weight: 650;
  border: 1px solid transparent; background: rgba(3,6,13,0.35);
}
.dc-desk-link:hover {
  color: #fbbf24; border-color: rgba(251,191,36,0.22); background: rgba(251,191,36,0.07);
}
.dc-desk-link span { width: 1rem; text-align: center; flex-shrink: 0; }

/* Equal-height network / flow preview cards */
.dc-eq-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem;
}
@media (min-width: 900px) {
  .dc-eq-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.dc-eq-card {
  display: flex; flex-direction: column;
  border-radius: 1rem; padding: 0.95rem;
  border: 1px solid rgba(148,163,184,0.12);
  background: #070c16;
  min-height: 17.5rem;
}
.dc-eq-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.dc-eq-card-head h2 {
  margin: 0; font-size: 0.9rem; font-weight: 800; color: #f8fafc;
}
.dc-eq-blurb {
  margin: 0 0 0.7rem; font-size: 0.72rem; color: #94a3b8; line-height: 1.4;
  min-height: 2rem;
}
.dc-eq-body { flex: 1; min-height: 0; }
.dc-eq-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem;
}
.dc-eq-stats.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.dc-eq-stat {
  border-radius: 0.6rem; padding: 0.45rem 0.5rem;
  background: rgba(3,6,13,0.55); border: 1px solid rgba(148,163,184,0.08);
  text-align: center;
}
.dc-eq-stat .lbl {
  display: block; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: #94a3b8; margin-bottom: 0.15rem;
}
.dc-eq-stat .val {
  display: block; font-size: 0.78rem; font-weight: 800; color: #f8fafc;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-eq-chart {
  margin-top: 0.55rem; height: 4.25rem;
  border-radius: 0.55rem; overflow: hidden;
  background: rgba(3,6,13,0.45); border: 1px solid rgba(148,163,184,0.08);
}
.dc-eq-chart svg { width: 100%; height: 100%; display: block; }
.dc-eq-foot { margin-top: 0.75rem; }
.dc-open-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  width: 100%; padding: 0.55rem 0.8rem; border-radius: 0.7rem;
  font-size: 0.75rem; font-weight: 800; text-decoration: none;
  color: #03060d;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
  border: 1px solid rgba(251,191,36,0.55);
  box-shadow: 0 8px 20px rgba(251,191,36,0.18), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .15s ease, filter .15s ease;
}
.dc-open-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.dc-open-btn--cyan {
  color: #041018;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 60%, #0284c7 100%);
  border-color: rgba(56,189,248,0.55);
  box-shadow: 0 8px 20px rgba(14,165,233,0.18), inset 0 1px 0 rgba(255,255,255,0.22);
}
.dc-open-btn--emerald {
  color: #03140d;
  background: linear-gradient(135deg, #34d399 0%, #10b981 60%, #059669 100%);
  border-color: rgba(52,211,153,0.55);
  box-shadow: 0 8px 20px rgba(16,185,129,0.18), inset 0 1px 0 rgba(255,255,255,0.22);
}
.dc-open-btn--violet {
  color: #0c0618;
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 60%, #7c3aed 100%);
  border-color: rgba(168,85,247,0.55);
  box-shadow: 0 8px 20px rgba(168,85,247,0.18), inset 0 1px 0 rgba(255,255,255,0.22);
}


/* Make sure slate utility fallbacks exist if a page doesn't use Tailwind slate */
.text-slate-400 { color: #94a3b8; }


/* Sidebar loading skeleton — visible until dcRenderSidebar finishes */
.dc-side-skel { padding: 4px 2px 12px; animation: dcSkelPulse 1.2s ease-in-out infinite; }
.dc-skel-brand { height: 40px; border-radius: 12px; background: linear-gradient(90deg,#0f172a,#1e293b,#0f172a); background-size: 200% 100%; margin-bottom: 14px; }
.dc-skel-search { height: 36px; border-radius: 10px; background: #0f172a; margin-bottom: 16px; border: 1px solid rgba(255,255,255,.04); }
.dc-skel-line { height: 28px; border-radius: 8px; background: rgba(15,23,42,.95); margin: 8px 0; border: 1px solid rgba(255,255,255,.03); }
.dc-skel-line.w80 { width: 80%; }
.dc-skel-line.w70 { width: 70%; }
.dc-skel-line.w60 { width: 60%; }
@keyframes dcSkelPulse {
  0%,100% { opacity: .55; }
  50% { opacity: 1; }
}
/* Keep sidebar rail visible on desktop even before mount fills */
#dcSidebar { min-height: 100vh; }
#dcSidebarMount:empty::before {
  content: '';
  display: block;
  height: 220px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15,23,42,.9), transparent);
}

/* ── Slow-load hint (heavy derivatives pages: OI / Funding / Arb / Long-Short) ── */
.dc-slow-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
  margin-top: 10px;
  padding: 8px 14px;
  /* Was a fully-rounded 999px pill, which only looks right on a single line
     - a longer message (e.g. DeFi TVL Rankings' chart-card hint) wraps to
     multiple lines and the huge pill radius then clips/crowds the icon and
     timer badge against the curved corners (confirmed live 2026-09-19). A
     fixed, modest radius renders correctly at any number of wrapped lines. */
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: #fbbf24;
  background: rgba(251, 191, 36, .08);
  border: 1px solid rgba(251, 191, 36, .28);
  animation: dcSlowHintPulse 2.2s ease-in-out infinite;
}
.dc-slow-hint .dc-slow-ico { font-size: 13px; flex-shrink: 0; }
.dc-slow-hint .dc-slow-timer {
  font-variant-numeric: tabular-nums;
  color: #67e8f9;
  background: rgba(103, 232, 249, .1);
  border: 1px solid rgba(103, 232, 249, .25);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  flex-shrink: 0;
}
@keyframes dcSlowHintPulse {
  0%, 100% { opacity: .8; }
  50% { opacity: 1; }
}

/* ── Membership card (right rail) ─────────────────────────────────────── */
.dc-mem-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.15rem 1.15rem 1.05rem;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(251, 191, 36, .16) 0%, rgba(251, 191, 36, 0) 55%),
    linear-gradient(165deg, #0f172a 0%, #070c16 100%);
  border: 1px solid rgba(251, 191, 36, .30);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.dc-mem-card.is-pro {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(52, 211, 153, .16) 0%, rgba(52, 211, 153, 0) 55%),
    linear-gradient(165deg, #0f172a 0%, #070c16 100%);
  border-color: rgba(52, 211, 153, .30);
}
.dc-mem-card.is-expiring {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(251, 146, 60, .18) 0%, rgba(251, 146, 60, 0) 55%),
    linear-gradient(165deg, #0f172a 0%, #070c16 100%);
  border-color: rgba(251, 146, 60, .35);
}
.dc-mem-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  color: #fbbf24; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .28);
}
.dc-mem-badge.pro { color: #34d399; background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .28); }
.dc-mem-badge.warn { color: #fb923c; background: rgba(251, 146, 60, .12); border-color: rgba(251, 146, 60, .30); }
.dc-mem-title { font-size: 16px; font-weight: 800; color: #fff; margin: 10px 0 4px; }
.dc-mem-sub { font-size: 12px; line-height: 1.5; color: #cbd5e1; margin-bottom: 12px; }
.dc-mem-perks { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 5px; }
.dc-mem-perks li { display: flex; gap: 7px; align-items: flex-start; font-size: 11.5px; color: #e2e8f0; }
.dc-mem-perks li span:first-child { color: #34d399; font-weight: 800; line-height: 1.35; }
.dc-mem-xp {
  border-top: 1px dashed rgba(255, 255, 255, .10);
  padding-top: 10px; margin-bottom: 12px;
}
.dc-mem-xp-head { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: #94a3b8; margin-bottom: 6px; }
.dc-mem-xp-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.dc-mem-xp-bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.dc-mem-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-mem-btn {
  flex: 1 1 auto; text-align: center; white-space: nowrap;
  padding: 9px 12px; border-radius: 11px; font-size: 12.5px; font-weight: 800; text-decoration: none;
  background: #fbbf24; color: #000; transition: background .15s ease;
}
.dc-mem-btn:hover { background: #fcd34d; }
.dc-mem-btn.ghost {
  background: transparent; color: #cbd5e1; border: 1px solid rgba(255, 255, 255, .12);
}
.dc-mem-btn.ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .25); }
.dc-mem-btn.green { background: #34d399; }
.dc-mem-btn.green:hover { background: #6ee7b7; }
.dc-mem-foot {
  margin-top: 11px; padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
/* The ad-free perk: teal instead of the default list colour, so the one
   benefit a member notices on every page does not read like fine print. */
.dc-mem-perks li.hi > span:last-child { color: #7dd3fc; font-weight: 650; }
.dc-mem-perks li.hi > span:last-child strong { color: #a5f3fc; font-weight: 800; }
.dc-mem-perks li.hi > span:first-child { color: #22d3ee; }

.dc-mem-priceline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.dc-mem-price { font-size: 19px; font-weight: 800; color: #fbbf24; line-height: 1; letter-spacing: -.02em; }
.dc-mem-per { font-size: 11px; font-weight: 700; color: #94a3b8; }
.dc-mem-save {
  font-size: 10px; font-weight: 700; color: #34d399;
  background: rgba(52, 211, 153, .10); border: 1px solid rgba(52, 211, 153, .22);
  border-radius: 999px; padding: 2px 7px;
}
.dc-mem-payline { font-size: 11px; font-weight: 700; color: #cbd5e1; margin-top: 6px; }
.dc-mem-freeline { font-size: 11px; color: #a8b8cc; margin-top: 4px; line-height: 1.5; }
.dc-mem-xp-val { color: #f1f5f9; font-weight: 800; }
.dc-mem-xp-foot { font-size: 10.5px; font-weight: 600; color: #a8b8cc; margin-top: 5px; }
.dc-mem-skel-line { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .06); }
.dc-mem-skel { animation: dcSkelPulse 1.2s ease-in-out infinite; }

/* ── Daily Task card + page ───────────────────────────────────────────── */
.dc-dt-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.1rem;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(56, 189, 248, .16) 0%, rgba(56, 189, 248, 0) 55%),
    linear-gradient(165deg, #0f172a 0%, #070c16 100%);
  border: 1px solid rgba(56, 189, 248, .28);
}
.dc-dt-card.is-ready {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(251, 191, 36, .20) 0%, rgba(251, 191, 36, 0) 55%),
    linear-gradient(165deg, #0f172a 0%, #070c16 100%);
  border-color: rgba(251, 191, 36, .45);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, .10), 0 12px 40px rgba(251, 191, 36, .08);
}
.dc-dt-card.is-claimed { border-color: rgba(52, 211, 153, .28); }
.dc-dt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.dc-dt-title { font-size: 13px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 6px; }
.dc-dt-reset {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #67e8f9;
  background: rgba(103, 232, 249, .09);
  border: 1px solid rgba(103, 232, 249, .22);
  border-radius: 999px; padding: 3px 8px 3px 6px;
}
.dc-dt-reset svg { width: 11px; height: 11px; opacity: .9; }
.dc-dt-card.is-ready .dc-dt-reset { color: #fbbf24; background: rgba(251,191,36,.10); border-color: rgba(251,191,36,.25); }
.dc-dt-sub { font-size: 11.5px; color: #94a3b8; margin-bottom: 10px; line-height: 1.5; }
.dc-dt-list { display: grid; gap: 7px; margin-bottom: 11px; }
.dc-dt-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 11px; text-decoration: none;
  background: rgba(3, 6, 13, .65); border: 1px solid rgba(255, 255, 255, .05);
  transition: border-color .15s ease, transform .15s ease;
}
.dc-dt-item:hover { border-color: rgba(56, 189, 248, .35); transform: translateX(2px); }
.dc-dt-item.done { border-color: rgba(52, 211, 153, .30); background: rgba(52, 211, 153, .06); }
.dc-dt-ico { font-size: 15px; line-height: 1; flex-shrink: 0; }
.dc-dt-body { min-width: 0; flex: 1; }
.dc-dt-name { font-size: 12px; font-weight: 700; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-dt-cat { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: #93a6bd; }
.dc-dt-state { font-size: 10.5px; font-weight: 800; flex-shrink: 0; }
.dc-dt-state.ok { color: #34d399; }
.dc-dt-state.pending { color: #38bdf8; }
.dc-dt-prog { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-bottom: 10px; }
.dc-dt-prog > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #38bdf8, #22d3ee); transition: width .3s ease; }
.dc-dt-card.is-ready .dc-dt-prog > i { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.dc-dt-claim {
  width: 100%; padding: 9px 12px; border-radius: 11px; border: none; cursor: pointer;
  font-size: 12.5px; font-weight: 800; background: #fbbf24; color: #000;
}
.dc-dt-claim:disabled { background: rgba(255, 255, 255, .06); color: #8fa0b6; cursor: not-allowed; }
.dc-dt-claim.claimed { background: rgba(52, 211, 153, .15); color: #34d399; }
.dc-dt-foot {
  font-size: 10.5px; margin-top: 10px; padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.dc-dt-streak {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 800; color: #fdba74;
}
.dc-dt-flame { filter: drop-shadow(0 0 5px rgba(251, 146, 60, .55)); }
.dc-dt-help {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 800; color: #fbbf24; text-decoration: none;
  transition: gap .15s ease, color .15s ease;
}
.dc-dt-help span { transition: transform .15s ease; }
.dc-dt-help:hover { color: #fcd34d; }
.dc-dt-help:hover span { transform: translateX(2px); }
.dc-dt-skel { height: 120px; border-radius: 12px; background: rgba(255, 255, 255, .04); animation: dcSkelPulse 1.2s ease-in-out infinite; }

/* ── Sponsor slots ────────────────────────────────────────────────────────
   Deliberately quiet: same card language as the rest of the desk, one small
   "Sponsored" tag, no flashing, no colour that fights the UI. Sizes are
   reserved up-front so a slot can never shift the layout.
   ─────────────────────────────────────────────────────────────────────── */
.dc-ad { width: 100%; }
.dc-ad-shell {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(15, 23, 42, .85), rgba(7, 12, 22, .95));
  border: 1px solid rgba(255, 255, 255, .06);
  text-decoration: none;
  transition: border-color .15s ease;
}
a.dc-ad-shell:hover { border-color: rgba(251, 191, 36, .35); }
.dc-ad-tag {
  position: absolute; top: 7px; right: 8px; z-index: 2;
  font-size: 8.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #94a3b8; background: rgba(3, 6, 13, .78);
  border: 1px solid rgba(255, 255, 255, .07);
  padding: 2px 6px; border-radius: 999px;
}

/* Banner zones ───────────────────────────────────────────────────────────
   HARD RULE: a creative is never scaled ABOVE its own pixel size.
   The frame is exactly as tall as the booked format (--dc-ad-h) and the
   image is centred inside it with a max-width of its own natural width
   (--dc-ad-w). On a 1600px desk a 728x90 file therefore still renders at
   728x90 in a slim card instead of being blown up into a giant blurry
   strip that shoves the whole dashboard down the page. */
.dc-ad-banner {
  display: flex; align-items: center; justify-content: center;
  height: var(--dc-ad-h, 90px);
  padding: 7px 12px;
}
.dc-ad-banner picture { display: block; line-height: 0; max-width: 100%; }
.dc-ad-img {
  width: auto; height: auto; display: block;
  max-width: min(100%, var(--dc-ad-w, 728px));
  max-height: var(--dc-ad-h, 90px);
  object-fit: contain;
}
/* Text-only creative: no fixed banner height, the copy decides. */
.dc-ad-banner--text { height: auto; padding: 0; }
.dc-ad-text { padding: 13px 15px; text-align: left; width: 100%; }
.dc-ad-title {
  font-size: 13px; font-weight: 800; color: #f1f5f9; line-height: 1.35; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dc-ad-body {
  font-size: 11.5px; color: #94a3b8; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dc-ad-by { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: #7c8da3; margin-top: 7px; }
/* Native row / in-feed card.
   The copy and the button form ONE cluster on the left. Earlier the body was
   flex:1 and the button was pushed to the far right edge, which on a full
   width row left a huge empty gap in the middle and made the placement read
   as broken rather than premium. */
.dc-ad-native {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 15px; padding-right: 110px;
  justify-content: flex-start;
}
.dc-ad-thumb {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
  flex-shrink: 0; background: #0b1220; border: 1px solid rgba(255,255,255,.06);
}
.dc-ad-thumb--mark { display: flex; align-items: center; justify-content: center; color: #fbbf24; font-size: 19px; border: 1px solid rgba(251,191,36,.25); background: rgba(251,191,36,.07); }
.dc-ad-native-body { min-width: 0; flex: 0 1 auto; max-width: 760px; }
.dc-ad-native .dc-ad-title { margin-bottom: 3px; font-size: 13.5px; color: #f8fafc; }
/* One small marker per line so the two sentences read as an offer, not as
   two lines of grey body copy that disappear into the page. */
.dc-ad-native .dc-ad-title,
.dc-ad-native .dc-ad-body { display: flex; align-items: flex-start; gap: 7px; }
.dc-ad-native .dc-ad-title > span,
.dc-ad-native .dc-ad-body > span {
  min-width: 0; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.dc-ad-ico {
  flex-shrink: 0; font-style: normal; line-height: 1.45;
  display: inline-flex; align-items: center; justify-content: center;
}
.dc-ad-ico--t { color: #fbbf24; font-size: 11px; margin-top: 1px; }
.dc-ad-ico--b { color: #38bdf8; font-weight: 800; font-size: 12px; }
.dc-ad-native .dc-ad-body { color: #a3b4c8; }
.dc-ad-cta {
  flex-shrink: 0; font-size: 11.5px; font-weight: 800; color: #03060d;
  background: linear-gradient(140deg, #fbbf24, #f59e0b);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  margin-left: 4px; display: inline-flex; gap: 5px; align-items: center;
}
a.dc-ad-native:hover .dc-ad-cta { filter: brightness(1.08); }
a.dc-ad-native:hover .dc-ad-cta b { transform: translateX(2px); }
.dc-ad-cta b { font-weight: 800; transition: transform .15s ease; }
.dc-ad-net { display: flex; align-items: center; justify-content: center; padding: 8px; min-height: 60px; }
.dc-ad-net img, .dc-ad-net iframe { max-width: 100%; height: auto; }
/* Sidebar slot sits at the bottom of the nav rail */
.dc-ad-side { margin-top: auto; padding-top: 12px; padding-bottom: 4px; flex-shrink: 0; }
.dc-ad-side .dc-ad-shell { max-width: 250px; margin-inline: auto; }
/* Auto-injected top slot on tool pages: no reserved space when unsold. */
.dc-ad-auto:empty { display: none; }
.dc-ad-auto { margin-bottom: 18px; }
/* Mobile: a wide desktop leaderboard must NOT keep its 728x90 box on a
   360px screen. Below 768px the frame becomes height:auto and the image
   is capped so it scales down as a whole - never cropped, never stretched.
   If the advertiser supplied a 320x50 creative, <picture> swaps to it. */
@media (max-width: 767px) {
  .dc-ad-banner { height: auto; min-height: 0; padding: 8px 10px; }
  .dc-ad-banner .dc-ad-img { max-height: 84px; max-width: 100%; object-fit: contain; }
  .dc-ad-text { padding: 11px 13px 12px; }
  .dc-ad-title { font-size: 12.5px; -webkit-line-clamp: 2; }
  .dc-ad-body { font-size: 11px; -webkit-line-clamp: 2; }
  .dc-ad-by { margin-top: 5px; }
  .dc-ad-tag { top: 6px; right: 6px; font-size: 8px; padding: 1px 5px; }
  .dc-ad[data-ad-zone="dashboard_top"] { margin-bottom: 14px; }
}
@media (max-width: 767px) {
  .dc-ad-native { padding-right: 15px; flex-wrap: wrap; }
  .dc-ad-native-body { flex: 1 1 auto; }
}
@media (max-width: 640px) {
  .dc-ad-native { gap: 10px; padding: 10px 11px; }
  .dc-ad-cta { font-size: 11px; padding: 6px 12px; }
  .dc-ad-thumb { width: 40px; height: 40px; }
}
/* Text creatives keep the tag from sitting on top of the headline */
.dc-ad-text .dc-ad-title { padding-right: 84px; }

/* Anchor / Sticky Text Bar (Ad Placement #6) styling moved to a self-
   injected <style> tag inside dashboard/anchor-bar.js (see dc_inject_styles
   there). Reason: this shared stylesheet is served as styles.css?v=dcv18
   across all 95 dashboard pages, and that version string wasn't bumped when
   this block was first added here - browsers with an already-cached copy of
   styles.css never fetched the new rules, so the bar rendered as unstyled
   raw HTML. anchor-bar.js already has its own independent cache-busting
   version (bumped on every change to that file), so keeping this component
   fully self-contained there means its styling can never go stale
   independently of its logic again. Do not re-add .dc-anchor-* rules here. */
@media (max-width: 767px) { .dc-ad-text .dc-ad-title { padding-right: 70px; } }

/* Wide screens (2026-10-16): the content column of the dashboard pages was capped at 64rem (1024 px) on 315 pages and 72rem (1152 px) on 55 more, which left wide
   monitors mostly empty and the tables cramped. From 1280 px up the column may grow to 87.5rem (1400 px). Below 1280 px nothing changes, so laptops and phones
   look exactly as before. `main.max-w-*` outranks Tailwind's own single-class rule, so no page file needs a change. */
@media (min-width: 1280px) {
  main.max-w-5xl, main.max-w-6xl { max-width: 87.5rem; }
}
/* the trend charts stretch their drawing to the box width (preserveAspectRatio="none"): keep the line the same thickness at every width */
svg[preserveAspectRatio="none"] polyline { vector-effect: non-scaling-stroke; }
