/* Phase 18.9.5.28.5.8.9.50.2 — Dark Mode Storefront, Auth, Plans & Legal Final Polish */
html[data-marketak-theme="dark"] body.view-home,
html[data-marketak-theme="dark"] body.view-products,
html[data-marketak-theme="dark"] body.view-stores,
html[data-marketak-theme="dark"] body.view-store,
html[data-marketak-theme="dark"] body.view-login,
html[data-marketak-theme="dark"] body.view-register,
html[data-marketak-theme="dark"] body.view-plans,
html[data-marketak-theme="dark"] body.view-legal,
html[data-marketak-theme="dark"] .section{
  background:#06101d!important;
  color:#eef6ff!important;
}
html[data-marketak-theme="dark"] body::before{
  background:radial-gradient(circle at 18% 0%,rgba(37,99,235,.14),transparent 34%),radial-gradient(circle at 85% 16%,rgba(124,58,237,.12),transparent 34%),#06101d!important;
}

/* Header announcement strip that was still pale */
html[data-marketak-theme="dark"] .market-top-strip,
html[data-marketak-theme="dark"] .seller-open-strip,
html[data-marketak-theme="dark"] .site-marquee,
html[data-marketak-theme="dark"] .header-promo-strip,
html[data-marketak-theme="dark"] [class*="marquee-bar"],
html[data-marketak-theme="dark"] [class*="announcement"],
html[data-marketak-theme="dark"] [class*="ticker"]{
  background:linear-gradient(135deg,#101827,#17233b,#0f2742)!important;
  border-color:rgba(125,211,252,.22)!important;
  color:#eaf6ff!important;
  box-shadow:0 14px 45px rgba(0,0,0,.25)!important;
}
html[data-marketak-theme="dark"] .market-top-strip *,
html[data-marketak-theme="dark"] .seller-open-strip *,
html[data-marketak-theme="dark"] .site-marquee *,
html[data-marketak-theme="dark"] .header-promo-strip *,
html[data-marketak-theme="dark"] [class*="announcement"] *{color:#eaf6ff!important;text-shadow:none!important}
html[data-marketak-theme="dark"] .market-top-strip .btn,
html[data-marketak-theme="dark"] .seller-open-strip .btn,
html[data-marketak-theme="dark"] [class*="announcement"] .btn{background:#e0f2fe!important;color:#0f172a!important}

/* Home: remove white rails/panels and improve text contrast */
html[data-marketak-theme="dark"] .home-category-strip-v186,
html[data-marketak-theme="dark"] .home-commerce-row-v186,
html[data-marketak-theme="dark"] .legacy-categories-home-v1862,
html[data-marketak-theme="dark"] .exclusive-offers-pro-v62,
html[data-marketak-theme="dark"] .promo-ads-pro-v62,
html[data-marketak-theme="dark"] .home-store-showcase-v186,
html[data-marketak-theme="dark"] .verified-stores-v23,
html[data-marketak-theme="dark"] .newsletter-pro-v65{
  background:#06101d!important;
}
html[data-marketak-theme="dark"] .home-product-rail-v186,
html[data-marketak-theme="dark"] .home-category-rail-v186,
html[data-marketak-theme="dark"] .category-marquee-pro,
html[data-marketak-theme="dark"] .product-marquee,
html[data-marketak-theme="dark"] .exclusive-offers-marquee-v62,
html[data-marketak-theme="dark"] .home-store-rail-v186,
html[data-marketak-theme="dark"] .verified-store-shell-v65,
html[data-marketak-theme="dark"] .newsletter-card-v65,
html[data-marketak-theme="dark"] .promo-ads-grid-v62{
  background:linear-gradient(145deg,rgba(10,19,34,.96),rgba(15,23,42,.92))!important;
  border:1px solid rgba(96,165,250,.20)!important;
  color:#eef6ff!important;
  box-shadow:0 28px 90px rgba(0,0,0,.32)!important;
}
html[data-marketak-theme="dark"] .home-product-tile-v186,
html[data-marketak-theme="dark"] .home-category-tile-v186,
html[data-marketak-theme="dark"] .category-motion-card,
html[data-marketak-theme="dark"] .mini-product,
html[data-marketak-theme="dark"] .exclusive-offer-card-v62,
html[data-marketak-theme="dark"] .home-store-card-v186,
html[data-marketak-theme="dark"] .verified-store-pill,
html[data-marketak-theme="dark"] .store-switch-btn-v65,
html[data-marketak-theme="dark"] .wide-promo-card-v186{
  background:linear-gradient(160deg,rgba(15,23,42,.98),rgba(17,28,49,.96))!important;
  border:1px solid rgba(148,163,184,.24)!important;
  color:#eaf6ff!important;
  box-shadow:0 18px 55px rgba(0,0,0,.28)!important;
}
html[data-marketak-theme="dark"] .home-product-tile-v186 h3 a,
html[data-marketak-theme="dark"] .home-product-tile-v186 small,
html[data-marketak-theme="dark"] .home-category-tile-v186 strong,
html[data-marketak-theme="dark"] .category-motion-card b,
html[data-marketak-theme="dark"] .category-motion-card small,
html[data-marketak-theme="dark"] .mini-product span,
html[data-marketak-theme="dark"] .exclusive-offer-card-v62 b,
html[data-marketak-theme="dark"] .exclusive-offer-card-v62 small,
html[data-marketak-theme="dark"] .home-store-card-v186 b,
html[data-marketak-theme="dark"] .home-store-card-v186 small,
html[data-marketak-theme="dark"] .verified-store-pill b,
html[data-marketak-theme="dark"] .verified-store-pill small{
  color:#dbeafe!important;
  opacity:1!important;
}
html[data-marketak-theme="dark"] .hp-price-v186 b,
html[data-marketak-theme="dark"] .mini-product b,
html[data-marketak-theme="dark"] .offer-price-v62 strong{color:#7dd3fc!important}
html[data-marketak-theme="dark"] .hp-img-v186,
html[data-marketak-theme="dark"] .offer-img-v62,
html[data-marketak-theme="dark"] .category-motion-image,
html[data-marketak-theme="dark"] .cat-shape-v186,
html[data-marketak-theme="dark"] .mini-product img{
  background:#f8fafc!important;
  border-color:rgba(191,219,254,.18)!important;
}

/* Product listing: sidebar and controls */
html[data-marketak-theme="dark"] .products-page-pro-v66,
html[data-marketak-theme="dark"] .products-results-v66,
html[data-marketak-theme="dark"] .products-wide-container-v66,
html[data-marketak-theme="dark"] .products-result-head-v66{
  background:#06101d!important;
  color:#eef6ff!important;
}
html[data-marketak-theme="dark"] .products-toolbar-v66,
html[data-marketak-theme="dark"] .products-filter-sidebar-v66,
html[data-marketak-theme="dark"] .filter-panel-v66,
html[data-marketak-theme="dark"] .filter-group-v66,
html[data-marketak-theme="dark"] .filter-search-mini-v66,
html[data-marketak-theme="dark"] .products-toolbar-sort-v1895285853,
html[data-marketak-theme="dark"] .toolbar-meta-v66{
  background:linear-gradient(145deg,rgba(15,23,42,.96),rgba(17,28,49,.94))!important;
  border-color:rgba(148,163,184,.24)!important;
  color:#eaf6ff!important;
}
html[data-marketak-theme="dark"] .filter-group-v66 summary,
html[data-marketak-theme="dark"] .filter-panel-head-v66 b,
html[data-marketak-theme="dark"] .filter-panel-head-v66 small,
html[data-marketak-theme="dark"] .switch-filter-v66 b,
html[data-marketak-theme="dark"] .products-result-head-v66 h2,
html[data-marketak-theme="dark"] .products-result-head-v66 p{color:#dbeafe!important;opacity:1!important}
html[data-marketak-theme="dark"] .switch-filter-v66{background:rgba(2,6,23,.45)!important;border-color:rgba(148,163,184,.20)!important}
html[data-marketak-theme="dark"] .switch-filter-v66 span{background:#334155!important;border-color:#475569!important}
html[data-marketak-theme="dark"] .switch-filter-v66 input:checked + span{background:#38bdf8!important;border-color:#7dd3fc!important}

/* Public legal pages */
html[data-marketak-theme="dark"] .legal-center-page-v123{
  background:#06101d!important;
}
html[data-marketak-theme="dark"] .legal-card-v123{
  background:linear-gradient(145deg,rgba(15,23,42,.98),rgba(17,28,49,.96))!important;
  border-color:rgba(96,165,250,.22)!important;
  color:#eaf6ff!important;
  box-shadow:0 28px 90px rgba(0,0,0,.34)!important;
}
html[data-marketak-theme="dark"] .legal-note-v123{
  background:rgba(120,53,15,.28)!important;
  border-color:rgba(251,191,36,.30)!important;
  color:#fde68a!important;
}
html[data-marketak-theme="dark"] .legal-tabs-v123 a.active{background:#e0f2fe!important;color:#0f172a!important}

/* Auth pages */
html[data-marketak-theme="dark"] .auth-pro-section{
  background:radial-gradient(circle at 20% 0%,rgba(124,58,237,.18),transparent 28%),#06101d!important;
  color:#eef6ff!important;
}
html[data-marketak-theme="dark"] .auth-card-pro,
html[data-marketak-theme="dark"] .login-create-account-v47,
html[data-marketak-theme="dark"] .login-create-account-v49,
html[data-marketak-theme="dark"] .login-resend-box-v49,
html[data-marketak-theme="dark"] .verify-mini-form-wrap-v51{
  background:linear-gradient(145deg,rgba(15,23,42,.98),rgba(17,28,49,.96))!important;
  border-color:rgba(148,163,184,.25)!important;
  color:#eef6ff!important;
  box-shadow:0 24px 80px rgba(0,0,0,.34)!important;
}
html[data-marketak-theme="dark"] .auth-card-pro h2,
html[data-marketak-theme="dark"] .login-main-form-v51 h2,
html[data-marketak-theme="dark"] .auth-pro-copy h1,
html[data-marketak-theme="dark"] .auth-pro-copy p,
html[data-marketak-theme="dark"] .login-resend-title-v49,
html[data-marketak-theme="dark"] .login-create-account-v49 span{color:#eaf6ff!important;opacity:1!important;text-shadow:none!important}
html[data-marketak-theme="dark"] .auth-card-pro input,
html[data-marketak-theme="dark"] .auth-card-pro select,
html[data-marketak-theme="dark"] .verify-mini-form-v49 input{
  background:#07111f!important;
  color:#f8fafc!important;
  border-color:rgba(125,211,252,.28)!important;
}
html[data-marketak-theme="dark"] .auth-card-pro input::placeholder,
html[data-marketak-theme="dark"] .verify-mini-form-v49 input::placeholder{color:#94a3b8!important;opacity:1!important}

/* Plans page */
html[data-marketak-theme="dark"] .plans-v189525-page,
html[data-marketak-theme="dark"] .plans-page-section,
html[data-marketak-theme="dark"] .plans-vendor-status-v189525{
  background:#06101d!important;
  color:#eef6ff!important;
}
html[data-marketak-theme="dark"] .pricing-pro-card,
html[data-marketak-theme="dark"] .pricing-card-v189525,
html[data-marketak-theme="dark"] .trial-plan-wide,
html[data-marketak-theme="dark"] .vendor-plan-status-card-v189525,
html[data-marketak-theme="dark"] .plans-compare-card,
html[data-marketak-theme="dark"] .plans-hero-card-v189525{
  background:linear-gradient(160deg,rgba(15,23,42,.98),rgba(17,28,49,.96))!important;
  border-color:rgba(148,163,184,.26)!important;
  color:#eaf6ff!important;
  box-shadow:0 26px 80px rgba(0,0,0,.34)!important;
}
html[data-marketak-theme="dark"] .pricing-pro-card h3,
html[data-marketak-theme="dark"] .pricing-pro-card p,
html[data-marketak-theme="dark"] .pricing-head h3,
html[data-marketak-theme="dark"] .pricing-head p,
html[data-marketak-theme="dark"] .plan-price b,
html[data-marketak-theme="dark"] .plan-price small,
html[data-marketak-theme="dark"] .plan-price span,
html[data-marketak-theme="dark"] .section-head h2,
html[data-marketak-theme="dark"] .section-head p,
html[data-marketak-theme="dark"] .plan-feature,
html[data-marketak-theme="dark"] .pricing-pro-card li{
  color:#dbeafe!important;
  opacity:1!important;
}
html[data-marketak-theme="dark"] .plan-price,
html[data-marketak-theme="dark"] .compact-price,
html[data-marketak-theme="dark"] .plan-duration-tile-v1895251,
html[data-marketak-theme="dark"] .duration-chips-pro button,
html[data-marketak-theme="dark"] .plan-stat,
html[data-marketak-theme="dark"] .pricing-pro-card .feature,
html[data-marketak-theme="dark"] .pricing-pro-card .plan-feature{
  background:rgba(2,6,23,.52)!important;
  border-color:rgba(148,163,184,.22)!important;
  color:#dbeafe!important;
}
html[data-marketak-theme="dark"] .plan-duration-tile-v1895251.selected,
html[data-marketak-theme="dark"] .duration-chips-pro button.selected{
  background:linear-gradient(135deg,rgba(37,99,235,.28),rgba(14,165,233,.22))!important;
  border-color:rgba(125,211,252,.44)!important;
}
html[data-marketak-theme="dark"] .plan-chip{background:rgba(96,165,250,.16)!important;color:#bfdbfe!important;border-color:rgba(96,165,250,.28)!important}

/* Stores pages */
html[data-marketak-theme="dark"] .page-hero.slim,
html[data-marketak-theme="dark"] .stores-grid.large,
html[data-marketak-theme="dark"] .store-card,
html[data-marketak-theme="dark"] .store-card-stats-v66,
html[data-marketak-theme="dark"] .storefront-pro-hero + .section,
html[data-marketak-theme="dark"] .storefront-tabs,
html[data-marketak-theme="dark"] .storefront-section,
html[data-marketak-theme="dark"] .storefront-panel{
  background:linear-gradient(145deg,rgba(15,23,42,.96),rgba(17,28,49,.94))!important;
  border-color:rgba(148,163,184,.24)!important;
  color:#eaf6ff!important;
}
html[data-marketak-theme="dark"] .page-hero.slim h1,
html[data-marketak-theme="dark"] .page-hero.slim p,
html[data-marketak-theme="dark"] .store-card h3,
html[data-marketak-theme="dark"] .store-card p,
html[data-marketak-theme="dark"] .store-link{color:#dbeafe!important;opacity:1!important}

/* Final catch for text inside light-looking panels without destroying images */
html[data-marketak-theme="dark"] .section [style*="background:#fff"],
html[data-marketak-theme="dark"] .section [style*="background: #fff"],
html[data-marketak-theme="dark"] .section [style*="background-color:#fff"],
html[data-marketak-theme="dark"] .section [style*="background-color: #fff"]{
  background:linear-gradient(145deg,rgba(15,23,42,.96),rgba(17,28,49,.94))!important;
  color:#eaf6ff!important;
}
html[data-marketak-theme="dark"] .empty{
  background:rgba(15,23,42,.88)!important;
  border-color:rgba(148,163,184,.22)!important;
  color:#dbeafe!important;
}

@media(max-width:900px){
  html[data-marketak-theme="dark"] .home-product-rail-v186,
  html[data-marketak-theme="dark"] .home-category-rail-v186,
  html[data-marketak-theme="dark"] .category-marquee-pro,
  html[data-marketak-theme="dark"] .product-marquee,
  html[data-marketak-theme="dark"] .exclusive-offers-marquee-v62,
  html[data-marketak-theme="dark"] .verified-store-shell-v65{
    border-radius:24px!important;
    box-shadow:0 16px 50px rgba(0,0,0,.28)!important;
  }
  html[data-marketak-theme="dark"] .products-filter-sidebar-v66,
  html[data-marketak-theme="dark"] .filter-panel-v66{background:#07111f!important;color:#eaf6ff!important}
}
