/* ═══════════════════════════════════════════════════════════════
   Hub pages (shop / music / files)
   Chrome (nav / profile / footer / bottom menu) → factory dark + blur
   Shop: white content on every viewport
   Mobile ≤900px  → music / files: white content
   Desktop ≥901px → music dark; files stay white
   ═══════════════════════════════════════════════════════════════ */

/* ── Hub chrome: dark glass everywhere ── */
html.dm-hub-active .dm-nav,
html.dm-hub-active[data-theme="light"] .dm-nav,
html.dm-hub-active[data-theme="dark"] .dm-nav,
html.dm-hub-active .dm-nav.dm-nav-scrolled,
html.dm-hub-active[data-theme="light"] .dm-nav.dm-nav-scrolled,
html.dm-hub-active body.dm-mob-menu-open .dm-nav {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(20px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.25) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

html.dm-hub-active .dm-nav-brand-sub { color: rgba(255, 255, 255, 0.5) !important; }
html.dm-hub-active .dm-nav-profile-btn,
html.dm-hub-active .dm-nav-username {
  color: rgba(255, 255, 255, 0.8) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
html.dm-hub-active .dm-nav-profile-btn:hover,
html.dm-hub-active .dm-nav-profile-btn.active {
  color: #f5c842 !important;
  background: rgba(245, 200, 66, 0.1) !important;
  border-color: rgba(245, 200, 66, 0.28) !important;
}
html.dm-hub-active .dm-nav-link { color: rgba(255, 255, 255, 0.65) !important; }
html.dm-hub-active .dm-nav-link:hover { color: #fff !important; background: rgba(255, 255, 255, 0.05) !important; }
html.dm-hub-active .dm-nav-link.active { color: #f5c842 !important; background: rgba(245, 200, 66, 0.08) !important; }
html.dm-hub-active .dm-nav-burger span { background: rgba(255, 255, 255, 0.55) !important; }
html.dm-hub-active .dm-nav-profile svg { stroke: rgba(255, 255, 255, 0.45) !important; }
html.dm-hub-active .dm-nav-search-btn { color: rgba(255, 255, 255, 0.75) !important; }
html.dm-hub-active .dm-nav-profile {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
html.dm-hub-active .dm-nav-profile:hover {
  border-color: rgba(245, 200, 66, 0.35) !important;
  background: rgba(245, 200, 66, 0.08) !important;
}

html.dm-hub-active .dm-profile-dropdown {
  background: rgba(12, 12, 12, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
}
html.dm-hub-active .dm-dd-name { color: #fff !important; }
html.dm-hub-active .dm-dd-email { color: rgba(255, 255, 255, 0.45) !important; }
html.dm-hub-active .dm-dd-divider { background: rgba(255, 255, 255, 0.08) !important; }
html.dm-hub-active .dm-dd-item { color: rgba(255, 255, 255, 0.7) !important; }
html.dm-hub-active .dm-dd-item:hover { background: rgba(255, 255, 255, 0.06) !important; color: #fff !important; }

html.dm-hub-active .dm-global-breadcrumb,
html.dm-hub-active[data-theme="light"] .dm-global-breadcrumb,
html.dm-hub-active[data-theme="dark"] .dm-global-breadcrumb {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-bottom: 2px solid #f5c842 !important;
  color: rgba(15, 23, 42, 0.55) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}
html.dm-hub-active .dm-global-breadcrumb a,
html.dm-hub-active[data-theme="light"] .dm-global-breadcrumb a,
html.dm-hub-active[data-theme="dark"] .dm-global-breadcrumb a {
  color: rgba(15, 23, 42, 0.72) !important;
}

html.dm-hub-active .dm-footer,
html.dm-hub-active[data-theme="light"] .dm-footer,
html.dm-hub-active[data-theme="dark"] .dm-footer {
  background: rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}
html.dm-hub-active .dm-footer::before { opacity: 1 !important; }
html.dm-hub-active .dm-footer-brand p,
html.dm-hub-active .dm-footer-col a,
html.dm-hub-active .dm-footer-copy,
html.dm-hub-active .dm-footer-addr,
html.dm-hub-active[data-theme="light"] .dm-footer-brand p,
html.dm-hub-active[data-theme="light"] .dm-footer-col a,
html.dm-hub-active[data-theme="light"] .dm-footer-copy,
html.dm-hub-active[data-theme="light"] .dm-footer-addr {
  color: rgba(255, 255, 255, 0.45) !important;
}
html.dm-hub-active .dm-footer-col h5,
html.dm-hub-active[data-theme="light"] .dm-footer-col h5 {
  color: rgba(255, 255, 255, 0.5) !important;
}
html.dm-hub-active .dm-footer-divider,
html.dm-hub-active[data-theme="light"] .dm-footer-divider {
  background: rgba(255, 255, 255, 0.06) !important;
}
html.dm-hub-active .dm-footer-soc {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Mobile bottom menu — factory dark blur on hub pages */
@media (max-width: 900px) {
  html.dm-hub-active .wb-mobile-bottom-menu {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(20px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
  }
  html.dm-hub-active .wb-menu-item {
    color: rgba(255, 255, 255, 0.55) !important;
  }
  html.dm-hub-active .wb-menu-item.active,
  html.dm-hub-active .wb-menu-item:hover,
  html.dm-hub-active button.wb-menu-item.open {
    color: #ff7a00 !important;
  }
  html.dm-hub-active .wb-menu-item--news i { color: #ff3b3b !important; }
}

/* ── Files hub: white content, dark chrome (header / footer / mobile) ── */
html.dm-hub-files {
  color-scheme: light;
  background: #f4f6fb !important;
}

html.dm-hub-files,
html.dm-hub-files body,
html.dm-hub-files[data-theme="light"] body,
html.dm-hub-files[data-theme="dark"] body {
  background: #f4f6fb !important;
  color: #0f172a !important;
}

html.dm-hub-files .file-page { background: transparent !important; }

html.dm-hub-files .file-grid { max-width: none; }

@media (max-width: 900px) {
  html.dm-hub-files .file-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 2px;
  }
}

/* ── Shop: white storefront on every viewport ── */
html.dm-hub-shop,
html.dm-shop-html {
  color-scheme: light;
  background: #ffffff !important;
}

html.dm-hub-shop,
html.dm-hub-shop body,
html.dm-hub-shop[data-theme="light"] body,
html.dm-hub-shop[data-theme="dark"] body,
html.dm-shop-html,
html.dm-shop-html body {
  background: #ffffff !important;
  color: #111111 !important;
}

html.dm-hub-shop body,
html.dm-shop-html body {
  --bg: #ffffff;
  --card: #ffffff;
  --brd: rgba(15, 23, 42, 0.08);
}

html.dm-hub-shop .shop-page,
html.dm-shop-html .shop-page { background: transparent !important; }
html.dm-hub-shop .shop-hero h1,
html.dm-shop-html .shop-hero h1 { color: #0b1220 !important; }
html.dm-hub-shop .shop-hero p,
html.dm-shop-html .shop-hero p { color: #4b5563 !important; }
html.dm-hub-shop .sec-lbl,
html.dm-shop-html .sec-lbl { color: #6b7280 !important; }
html.dm-hub-shop .sec-lbl::after,
html.dm-shop-html .sec-lbl::after { background: rgba(15, 23, 42, 0.1) !important; }
html.dm-hub-shop .shop-card,
html.dm-shop-html .shop-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10) !important;
}
html.dm-hub-shop .shop-card-name,
html.dm-shop-html .shop-card-name { color: #111111 !important; }
html.dm-hub-shop .shop-card-desc,
html.dm-shop-html .shop-card-desc { color: #4b5563 !important; }
html.dm-hub-shop .shop-filter,
html.dm-shop-html .shop-filter { color: #334155 !important; background: #fff !important; }
html.dm-hub-shop .shop-rating span,
html.dm-shop-html .shop-rating span { color: #6b7280 !important; }
html.dm-hub-shop .admin-note,
html.dm-shop-html .admin-note {
  background: #fffbeb !important;
  border-color: rgba(245, 200, 66, 0.35) !important;
}
html.dm-hub-shop .admin-note h3,
html.dm-shop-html .admin-note h3 { color: #92400e !important; }
html.dm-hub-shop .admin-note p,
html.dm-shop-html .admin-note p { color: #4b5563 !important; }
html.dm-hub-shop [data-dm-reveal],
html.dm-shop-html [data-dm-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

/* ── MOBILE: music white content ── */
@media (max-width: 900px) {
  html.dm-hub-music,
  html.dm-hub-music body,
  html.dm-hub-music[data-theme="light"] body,
  html.dm-hub-music[data-theme="dark"] body {
    background: #ffffff !important;
    color: #0f172a !important;
  }
  html.dm-hub-music .dm-music-brand { color: #0f172a !important; }
  html.dm-hub-music .dm-music-sub { color: rgba(15, 23, 42, 0.55) !important; }
  html.dm-hub-music .dm-music-section-title { color: rgba(15, 23, 42, 0.88) !important; }
}

/* ── DESKTOP: music dark content (shop stays white) ── */
@media (min-width: 901px) {
  html.dm-hub-music:not(.dm-hub-files) {
    color-scheme: dark;
    background: #070707 !important;
  }

  html.dm-hub-music,
  html.dm-hub-music body,
  html.dm-hub-music[data-theme="light"] body {
    background: #070707 !important;
    color: rgba(255, 255, 255, 0.92) !important;
  }

  html.dm-hub-music .dm-music-brand { color: #fff !important; }
  html.dm-hub-music .dm-music-sub { color: rgba(255, 255, 255, 0.55) !important; }
  html.dm-hub-music .dm-music-section-title { color: rgba(255, 255, 255, 0.88) !important; }
}
