/* Phase 18.9.5.28.5.8.9.50.9 — Global Dark Mode Professional Audit
   Purpose: one final, broad, route-aware dark-mode layer for all public pages.
   Loaded last, so it overrides old transparent/light cards without touching product images. */
html[data-marketak-theme="dark"]{
  --dm-bg:#050d1a;
  --dm-bg-2:#081426;
  --dm-surface:#0d1a2d;
  --dm-surface-2:#101f35;
  --dm-surface-3:#142640;
  --dm-border:rgba(148,163,184,.24);
  --dm-border-strong:rgba(96,165,250,.45);
  --dm-text:#f8fbff;
  --dm-muted:#c7d2e7;
  --dm-soft:#93a4bd;
  --dm-blue:#60a5fa;
  --dm-cyan:#67e8f9;
  --dm-purple:#8b5cf6;
  --dm-green:#34d399;
  --dm-warning:#fde68a;
  --dm-danger:#fb7185;
  --dm-shadow:0 24px 70px rgba(0,0,0,.38);
  --dm-glass:linear-gradient(145deg,rgba(15,29,49,.97),rgba(8,18,33,.985));
  color-scheme:dark;
}
html[data-marketak-theme="dark"] body{background:radial-gradient(circle at 20% -10%,rgba(37,99,235,.18),transparent 30%),linear-gradient(180deg,var(--dm-bg),#06101d 48%,#050d1a)!important;color:var(--dm-text)!important;}
html[data-marketak-theme="dark"] :where(h1,h2,h3,h4,h5,h6,.section-head h1,.section-head h2,.section-head h3){color:var(--dm-text)!important;text-shadow:none!important;}
html[data-marketak-theme="dark"] :where(p,small,span,li,em,label,.section-sub,.muted,.eyebrow){color:var(--dm-muted)!important;}
html[data-marketak-theme="dark"] a:not(.btn){color:#93c5fd;}
html[data-marketak-theme="dark"] img,html[data-marketak-theme="dark"] video,html[data-marketak-theme="dark"] iframe{filter:none!important;mix-blend-mode:normal!important;opacity:1!important;}
html[data-marketak-theme="dark"] :where(input,select,textarea){background:#0a1324!important;color:var(--dm-text)!important;border:1px solid var(--dm-border)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)!important;caret-color:#67e8f9!important;}
html[data-marketak-theme="dark"] :where(input::placeholder,textarea::placeholder){color:#94a3b8!important;opacity:1!important;}
html[data-marketak-theme="dark"] :where(.btn,button,.mini-btn){border-color:var(--dm-border)!important;}
html[data-marketak-theme="dark"] :where(.btn:not(.primary),.btn.ghost,.ghost,.mini-btn,button:not(.smart-popup-close):not([class*="arrow"])){background:linear-gradient(135deg,#111d31,#0b1628)!important;color:var(--dm-text)!important;border:1px solid var(--dm-border)!important;box-shadow:0 12px 28px rgba(0,0,0,.24)!important;}
html[data-marketak-theme="dark"] :where(.btn.primary,.btn:not(.ghost):not(.danger),.primary,.checkout-submit-v16,.summary-checkout-v1724,.subscribe-form-v189525 button,[class*="submit"] button){background:linear-gradient(135deg,#2563eb,#7c3aed)!important;color:#fff!important;border:0!important;}

/* Shared surface hardening: no more invisible text on transparent/light cards */
html[data-marketak-theme="dark"] body:not(.role-admin) :where(
  .section,.panel-card,.info-panel,.empty-state,.notice,.card,.box,.modal,.dropdown,.mega-menu,.mega-grid,
  .marketak-smart-popup-v1895231 .smart-popup-card,.marketak-smart-popup-v1895182 .smart-popup-card,
  .share-center-card-v58,.product-share-center-v58,.product-detail-card,.product-buy-panel,.order-card-pro,
  .cart-address-preview-v1895271,.vendor-isolated-carts-v172,.vendor-carts-head-v172,.vendor-cart-card-v172,.cart-line-pro,.cart-summary-pro,
  .checkout-card-v16,.checkout-single-vendor-hero-v173,.checkout-vendor-isolated-hero-v172,.checkout-map-card,.checkout-address-book-pro,.address-choice-pro,.checkout-delivery-real-card,.checkout-payment-pro-card,.checkout-payment-option,.checkout-coupon-box-v1895171,.checkout-loyalty-box-v189518,
  .plans-hero-card,.trial-plan-v189525,.pricing-card-v189525,.compare-table-card,.plan-duration-tile-v1895251,.upgrade-card-v189525,.vendor-plan-status-card-v189525,.plan-feature-preview-v189525,
  .referral-guest-card,.referral-hero,.referral-rules,.referral-page .panel-card,.referral-stats-grid .stat-card,.share-box,
  .store-page-panel-pro,.storefront-pro-hero,.storefront-category-card-v155,.storefront-products-head-v114,.storefront-filter-panel-v155,.storefront-tabs,.store-tabs,.store-delivery-pro,.store-payment-method-card,.store-legal-card-v1242,.store-welcome-card-v155,.storefront-welcome-strip-v155,
  .products-filter-sidebar-v66,.filter-group-v66,.products-result-head-v66,
  .home-wide-promo-v186,.hero-slider-card,.hero-market,.home-category-tile-v186,.home-product-rail-v186,.home-product-tile-v186,.exclusive-offers-pro-v62,.exclusive-offer-card-v62,.deal-card-v186,.home-store-card-v186,.verified-store-shell-v65,.newsletter-pro-v65
){background:var(--dm-glass)!important;color:var(--dm-text)!important;border-color:var(--dm-border)!important;box-shadow:var(--dm-shadow)!important;backdrop-filter:blur(14px);}
html[data-marketak-theme="dark"] body:not(.role-admin) :where(
  .section,.panel-card,.info-panel,.empty-state,.notice,.card,.box,.modal,.dropdown,.mega-menu,.mega-grid,
  .share-center-card-v58,.product-buy-panel,.order-card-pro,.cart-line-pro,.cart-summary-pro,.checkout-card-v16,.checkout-map-card,.address-choice-pro,.pricing-card-v189525,.trial-plan-v189525,.referral-guest-card,.store-page-panel-pro,.products-filter-sidebar-v66
) *:not(img):not(svg):not(path):not(.btn):not(button):not(input):not(textarea):not(select){text-shadow:none!important;}
html[data-marketak-theme="dark"] body:not(.role-admin) :where(.section,.panel-card,.card,.box,.cart-line-pro,.checkout-card-v16,.pricing-card-v189525,.product-buy-panel,.share-center-card-v58,.store-page-panel-pro) :where(b,strong,h1,h2,h3,h4){color:var(--dm-text)!important;}
html[data-marketak-theme="dark"] body:not(.role-admin) :where(.section,.panel-card,.card,.box,.cart-line-pro,.checkout-card-v16,.pricing-card-v189525,.product-buy-panel,.share-center-card-v58,.store-page-panel-pro) :where(p,span,small,li,em,label){color:var(--dm-muted)!important;}

/* Header dropdown / mega menu */
html[data-marketak-theme="dark"] :where(.mega-menu,.mega-menu-v30,.category-bar .mega-menu,.account-dropdown,.user-dropdown,.dropdown-menu){background:linear-gradient(180deg,#0d1a2d,#0a1424)!important;border:1px solid var(--dm-border)!important;box-shadow:0 28px 90px rgba(0,0,0,.45)!important;color:var(--dm-text)!important;}
html[data-marketak-theme="dark"] :where(.mega-menu,.mega-menu-v30) :where(.mega-title,.mega-grid a,.mega-grid div,.mega-grid button){background:linear-gradient(135deg,#15243a,#0e1b2e)!important;color:var(--dm-text)!important;border-color:var(--dm-border)!important;}
html[data-marketak-theme="dark"] :where(.mega-menu,.mega-menu-v30) :where(small,span,p){color:var(--dm-muted)!important;}
html[data-marketak-theme="dark"] :where(.mega-menu,.mega-menu-v30) :where(.badge,.tag,em){background:rgba(96,165,250,.18)!important;color:#bfdbfe!important;border-color:rgba(147,197,253,.35)!important;}

/* Smart promo popups */
html[data-marketak-theme="dark"] :where(.marketak-smart-popup-v1895231,.marketak-smart-popup-v1895182){background:rgba(3,7,18,.76)!important;backdrop-filter:blur(18px)!important;}
html[data-marketak-theme="dark"] :where(.marketak-smart-popup-v1895231,.marketak-smart-popup-v1895182) .smart-popup-card{background:linear-gradient(150deg,#111d31,#0b1425)!important;border:1px solid rgba(147,197,253,.28)!important;color:var(--dm-text)!important;box-shadow:0 36px 120px rgba(0,0,0,.55)!important;}
html[data-marketak-theme="dark"] :where(.marketak-smart-popup-v1895231,.marketak-smart-popup-v1895182) .smart-popup-body{background:transparent!important;}
html[data-marketak-theme="dark"] :where(.marketak-smart-popup-v1895231,.marketak-smart-popup-v1895182) h3{color:#fff!important;background:transparent!important;}
html[data-marketak-theme="dark"] :where(.marketak-smart-popup-v1895231,.marketak-smart-popup-v1895182) p{color:#dbeafe!important;}
html[data-marketak-theme="dark"] :where(.marketak-smart-popup-v1895231,.marketak-smart-popup-v1895182) .smart-popup-meta{background:rgba(14,165,233,.12)!important;color:#bae6fd!important;border-color:rgba(56,189,248,.4)!important;}
html[data-marketak-theme="dark"] :where(.marketak-smart-popup-v1895231,.marketak-smart-popup-v1895182) .smart-popup-close{background:#edf2ff!important;color:#0f172a!important;}

/* Product page */
html[data-marketak-theme="dark"] body.route-product :where(.product-super-page,.product-super-grid,.product-content-grid,.product-buy-panel,.order-card-pro,.product-return-policy-card-v118,.product-digital-policy-card-v189541,.product-stock-pro-v57,.product-offer-strip-v61,.product-variant-picker-v185,.safe-alerts,.product-long-description,.product-specs-table-v28,.review-card-v23,.review-form-v23,.variant-match-card-v185,.variant-compatible-grid-v185,.variant-global-note-v185,.add-cart-box){background:var(--dm-glass)!important;color:var(--dm-text)!important;border:1px solid var(--dm-border)!important;box-shadow:0 18px 60px rgba(0,0,0,.28)!important;}
html[data-marketak-theme="dark"] body.route-product :where(.product-gallery-pro,.main-media-box,.media-stage-v23,.gallery-stage){background:#f8fafc!important;border-color:rgba(96,165,250,.8)!important;box-shadow:0 20px 70px rgba(2,6,23,.35)!important;}
html[data-marketak-theme="dark"] body.route-product :where(.gallery-stage img,.media-stage-v23 img,.product-gallery-pro img){background:#fff!important;}
html[data-marketak-theme="dark"] body.route-product :where(.product-price-line,.rating-line-v23,.views-pill-v61,.count-row,.variant-axis-group-v185,.variant-axis-options-v185,.variant-compatible-head-v185,.selected-color-field-v29,.selected-size-field-v29){background:#0a1324!important;border:1px solid var(--dm-border)!important;color:var(--dm-text)!important;}
html[data-marketak-theme="dark"] body.route-product :where(.variant-color-chip-v185,.variant-size-chip-v185,.thumb-btn,.store-mini-btn-v29,.store-pill-pro,.product-top-store-trust-v189386,.product-detail-verified-inside-v189387,.product-store-pill-verified-v189385){background:#111d31!important;color:#eaf2ff!important;border-color:rgba(147,197,253,.35)!important;opacity:1!important;}
html[data-marketak-theme="dark"] body.route-product :where(.variant-color-chip-v185.active,.variant-size-chip-v185.active,.thumb-btn.active){background:linear-gradient(135deg,#2563eb,#7c3aed)!important;color:#fff!important;border-color:transparent!important;}
html[data-marketak-theme="dark"] body.route-product :where(.product-offer-strip-v61,.offer-countdown,.product-deposit-badge-v18953){background:linear-gradient(135deg,rgba(120,53,15,.95),rgba(69,26,3,.9))!important;color:#fde68a!important;border-color:rgba(251,191,36,.45)!important;}
html[data-marketak-theme="dark"] body.route-product :where(.safe-alerts,.safe-alerts div,.product-specs-table-v28,.product-specs-table-v28 tr,.product-specs-table-v28 td,.product-specs-table-v28 th){background:#0d1a2d!important;color:var(--dm-text)!important;border-color:var(--dm-border)!important;}
html[data-marketak-theme="dark"] body.route-product :where(.safe-alerts li,.safe-alerts p,.product-long-description p,.product-long-description li){color:#dbeafe!important;}

/* Share modal */
html[data-marketak-theme="dark"] :where(.share-center-backdrop-v58){background:rgba(3,7,18,.72)!important;backdrop-filter:blur(18px)!important;}
html[data-marketak-theme="dark"] :where(.share-center-card-v58){background:linear-gradient(150deg,#111d31,#0b1425)!important;border-color:rgba(96,165,250,.38)!important;box-shadow:0 36px 120px rgba(0,0,0,.55)!important;}
html[data-marketak-theme="dark"] :where(.share-actions-grid-v58 a,.share-actions-grid-v58 button,.share-copy-row-v58 input,.share-copy-row-v58 button,.share-action-v58){background:#0a1324!important;color:var(--dm-text)!important;border:1px solid var(--dm-border)!important;}
html[data-marketak-theme="dark"] :where(.share-copy-row-v58 input){direction:ltr!important;color:#dbeafe!important;}

/* Plans page */
html[data-marketak-theme="dark"] body.route-plans :where(.plans-hero-pro,.plans-hero-card,.plans-vendor-status-v189525,.trial-plan-v189525,.trial-plan-wide,.pricing-card-v189525,.pricing-pro-card,.compact-plan,.compare-table-card,.compare-table-card-v189525,.upgrade-card-v189525,.plan-duration-tile-v1895251,.plan-summary-strip,.plan-feature-preview-v189525,.plans-trust-strip-v189525,.store-card){background:linear-gradient(145deg,#0d1a2d,#081426)!important;color:var(--dm-text)!important;border:1px solid var(--dm-border)!important;box-shadow:var(--dm-shadow)!important;opacity:1!important;}
html[data-marketak-theme="dark"] body.route-plans :where(.trial-plan-v189525 .trial-wide-stats > *,.upgrade-funnel-grid-v189525 > *,.compact-features,.plan-chip,.plan-power-v189525,.plan-price,.plan-price-v1895251,.plan-duration-tiles-v1895251 > *,.payment-choice-row,.plan-gateway-method,.plan-wallet-input){background:#0a1324!important;color:var(--dm-text)!important;border:1px solid var(--dm-border)!important;opacity:1!important;}
html[data-marketak-theme="dark"] body.route-plans :where(.plan-feature-preview-v189525,.plan-details-pro){background:#0b1628!important;color:var(--dm-text)!important;border-color:var(--dm-border)!important;}
html[data-marketak-theme="dark"] body.route-plans :where(.compare-table-pro,.compare-table-v189525,.compare-table-pro tr,.compare-table-v189525 tr,.compare-table-pro th,.compare-table-pro td,.compare-table-v189525 th,.compare-table-v189525 td){background:#0c1728!important;color:#eaf2ff!important;border-color:rgba(148,163,184,.2)!important;}
html[data-marketak-theme="dark"] body.route-plans :where(.compare-table-pro tr:nth-child(even),.compare-table-v189525 tr:nth-child(even)){background:#111d31!important;}
html[data-marketak-theme="dark"] body.route-plans :where(.plan-details-pro[open] summary,.plan-details-pro summary,.plan-details-pro div){color:var(--dm-text)!important;background:#0a1324!important;}

/* Referrals / earn with us */
html[data-marketak-theme="dark"] body.route-win-with-marketak :where(.referral-page,.referral-hero,.referral-guest-card,.referral-panels,.referral-panels .panel-card,.referral-rules,.referral-stats-grid .stat-card,.share-box,.activity-item,.withdrawal-card){background:linear-gradient(145deg,#0d1a2d,#081426)!important;color:var(--dm-text)!important;border:1px solid var(--dm-border)!important;box-shadow:var(--dm-shadow)!important;opacity:1!important;}
html[data-marketak-theme="dark"] body.route-win-with-marketak :where(.referral-rules li,.referral-guest-card p,.panel-card p,.activity-item p){color:#dbeafe!important;}
html[data-marketak-theme="dark"] body.route-win-with-marketak :where(.referral-copy,.share-row,input){background:#0a1324!important;color:var(--dm-text)!important;border-color:var(--dm-border)!important;}

/* Storefront */
html[data-marketak-theme="dark"] body :where(.storefront-pro-hero,.storefront-main,.store-page-panel-pro,.storefront-tabs,.store-tabs,.storefront-category-showcase-v155,.storefront-category-card-v155,.storefront-products-head-v114,.storefront-result-head-v155,.storefront-filter-panel-v155,.storefront-filter-head-v155,.storefront-contained-select-v1592,.storefront-select-menu-v1592,.store-legal-card-v1242,.store-delivery-pro,.store-payment-method-card,.store-welcome-card-v155,.storefront-welcome-strip-v155){background:linear-gradient(145deg,#0d1a2d,#081426)!important;color:var(--dm-text)!important;border:1px solid var(--dm-border)!important;box-shadow:var(--dm-shadow)!important;opacity:1!important;}
html[data-marketak-theme="dark"] body :where(.storefront-title-verified-v189385,.sf-verified-pill-v189385,.store-pill-verified-exact-v189385,.product-detail-verified-inside-v189387,.verified-review-chip){opacity:1!important;background:linear-gradient(135deg,#e0f2fe,#bfdbfe)!important;color:#0f172a!important;border-color:#60a5fa!important;text-shadow:none!important;}
html[data-marketak-theme="dark"] body :where(.storefront-tabs a,.store-tabs a,.js-store-tab-link,.storefront-filter-actions-v1591 button,.filter-mobile-toggle-v66,.reset-filter-v66){background:#f8fafc!important;color:#0f172a!important;border-color:rgba(148,163,184,.35)!important;}
html[data-marketak-theme="dark"] body :where(.storefront-tabs a.active,.store-tabs a.active,.js-store-tab-link.active){background:linear-gradient(135deg,#2563eb,#7c3aed)!important;color:#fff!important;border-color:transparent!important;}

/* Products / cart / checkout */
html[data-marketak-theme="dark"] body.route-products :where(.products-filter-sidebar-v66,.products-result-head-v66,.products-searchbar-v66,.products-toolbar-v66,.filter-group-v66,.switch-filter-v66){background:linear-gradient(145deg,#0d1a2d,#081426)!important;color:var(--dm-text)!important;border:1px solid var(--dm-border)!important;box-shadow:var(--dm-shadow)!important;}
html[data-marketak-theme="dark"] body.route-products :where(.filter-group-v66 option,.filter-group-v66 select,.price-filter-v66 input,.filter-search-mini-v66 input){background:#0a1324!important;color:var(--dm-text)!important;border-color:var(--dm-border)!important;}
html[data-marketak-theme="dark"] body.route-cart :where(.cart-page-pro,.vendor-isolated-carts-v172,.vendor-carts-head-v172,.vendor-cart-card-v172,.cart-address-preview-v1895271,.cart-layout-pro,.cart-main-pro,.cart-lines,.cart-line-pro,.cart-summary-pro,.multi-vendor-cart-split-v171,.cart-stores-mini,.auto-qty-note-v1722,.cart-actions-pro,.summary-guard-v1721){background:linear-gradient(145deg,#0d1a2d,#081426)!important;color:var(--dm-text)!important;border:1px solid var(--dm-border)!important;box-shadow:var(--dm-shadow)!important;opacity:1!important;}
html[data-marketak-theme="dark"] body.route-cart :where(.cart-line-pro,.cart-summary-pro,.vendor-cart-card-v172) :where(.cart-cat,.cart-variant-v136,.vendor-coupon-mini-v189517,.summary-line,.cart-store){background:#0a1324!important;color:#dbeafe!important;border-color:var(--dm-border)!important;}
html[data-marketak-theme="dark"] body.route-cart :where(.qty-control-v16,.qty-input-v16){background:#0a1324!important;color:var(--dm-text)!important;border-color:var(--dm-border)!important;}
html[data-marketak-theme="dark"] body.route-cart :where(.cart-img-link,img){background:#f8fafc!important;border-radius:16px;}
html[data-marketak-theme="dark"] body.route-checkout :where(.checkout-v16-page,.checkout-hero-v16,.checkout-single-vendor-hero-v173,.checkout-vendor-isolated-hero-v172,.checkout-card-v16,.order-summary-v16,.checkout-coupon-box-v1895171,.checkout-coupon-box-v1895172,.checkout-item-v16,.checkout-address-book-pro,.address-choice-pro,.checkout-map-card,.checkout-delivery-real-card,.delivery-experience-panel-v189528,.delivery-auto-line,.checkout-payment-pro-card,.checkout-payment-option,.checkout-payment-proof-card-v173,.checkout-loyalty-box-v189518,.legal-acceptance-box-v123,.checkout-digital-policy-box-v189541){background:linear-gradient(145deg,#0d1a2d,#081426)!important;color:var(--dm-text)!important;border:1px solid var(--dm-border)!important;box-shadow:var(--dm-shadow)!important;opacity:1!important;}
html[data-marketak-theme="dark"] body.route-checkout :where(.address-choice-pro.selected,.checkout-payment-option.selected,.delivery-auto-line.selected,.global-payment-option.selected){background:linear-gradient(135deg,rgba(37,99,235,.22),rgba(124,58,237,.20))!important;border-color:rgba(96,165,250,.65)!important;}
html[data-marketak-theme="dark"] body.route-checkout :where(.checkout-item-v16,.proof-store-card-v173,.delivery-line,.delivery-summary-real,.checkout-payment-gate-warning-v1895923,.checkout-safe-v16,.notice.ok){background:#0a1324!important;color:var(--dm-text)!important;border-color:var(--dm-border)!important;}
html[data-marketak-theme="dark"] body.route-checkout :where(.coupon-code-badge-v18951741,.checkout-free-delivery-label-v1895275,.checkout-delivery-pending-label-v1895275){background:rgba(52,211,153,.15)!important;color:#bbf7d0!important;border-color:rgba(52,211,153,.35)!important;}

/* Home sliders and moving cards */
html[data-marketak-theme="dark"] body.route-home :where(.hero-slider-card,.hero-market,.home-wide-promo-v186,.home-category-strip-v186,.home-category-rail-v186,.home-product-rail-v186,.exclusive-offers-pro-v62,.exclusive-offers-marquee-v62,.deal-card-v186,.home-store-rail-v186,.home-store-showcase-v186,.newsletter-pro-v65,.wide-promo-card-v186){background:linear-gradient(145deg,#0d1a2d,#081426)!important;color:var(--dm-text)!important;border:1px solid var(--dm-border)!important;box-shadow:var(--dm-shadow)!important;}
html[data-marketak-theme="dark"] body.route-home :where(.exclusive-offer-card-v62,.home-product-tile-v186,.home-category-tile-v186,.dynamic-card,.mini-product){background:linear-gradient(145deg,#101f35,#0b1628)!important;color:var(--dm-text)!important;border-color:var(--dm-border)!important;}
html[data-marketak-theme="dark"] body.route-home :where(.exclusive-offer-card-v62 img,.home-product-tile-v186 img,.home-category-tile-v186 img,.dynamic-card img,.mini-product img){background:#fff!important;}
html[data-marketak-theme="dark"] body.route-home :where(.exclusive-timer-v62,.offer-card-footer-link,.offer-price-v62){background:#0a1324!important;color:#67e8f9!important;border-color:var(--dm-border)!important;}

/* Product cards: preserve image white but make text/card professional */
html[data-marketak-theme="dark"] :where(.product-card,.product-card-pro,.product-card-v66,.product-card-v186,.product-grid article,.featured-products-grid-v66 article,.storefront-product-grid article){background:linear-gradient(145deg,#0e1b2e,#0a1424)!important;border:1px solid rgba(59,130,246,.45)!important;color:var(--dm-text)!important;box-shadow:0 20px 60px rgba(0,0,0,.32)!important;}
html[data-marketak-theme="dark"] :where(.product-card,.product-card-pro,.product-card-v66,.product-card-v186,.product-grid article,.featured-products-grid-v66 article,.storefront-product-grid article) :where(h3,h4,b,strong){color:#eaf2ff!important;}
html[data-marketak-theme="dark"] :where(.product-card,.product-card-pro,.product-card-v66,.product-card-v186,.product-grid article,.featured-products-grid-v66 article,.storefront-product-grid article) :where(p,span,small){color:#b8c7dc!important;}
html[data-marketak-theme="dark"] :where(.product-card,.product-card-pro,.product-card-v66,.product-card-v186,.product-grid article,.featured-products-grid-v66 article,.storefront-product-grid article) :where(img,.product-img,.pc-img,.hp-img-v186){background:#fff!important;}
html[data-marketak-theme="dark"] :where(.product-card,.product-card-pro,.product-card-v66,.product-card-v186,.product-grid article,.featured-products-grid-v66 article,.storefront-product-grid article) :where(.price,.product-price,.hp-price-v186,.offer-price-v62){background:#f8fafc!important;color:#06142d!important;border-radius:16px!important;}
html[data-marketak-theme="dark"] :where(.product-card,.product-card-pro,.product-card-v66,.product-card-v186,.product-grid article,.featured-products-grid-v66 article,.storefront-product-grid article) :where(.btn,.add-to-cart,.quick-view){background:linear-gradient(135deg,#2563eb,#7c3aed)!important;color:#fff!important;}

/* Explicit light card readability safety: if a design intentionally remains white, force dark readable text */
html[data-marketak-theme="dark"] :where(.light,.white,.bg-white,.media-stage-v23,.gallery-stage,.product-gallery-pro) :where(h1,h2,h3,h4,b,strong){color:#06142d!important;text-shadow:none!important;}
html[data-marketak-theme="dark"] :where(.light,.white,.bg-white,.media-stage-v23,.gallery-stage,.product-gallery-pro) :where(p,span,small,li,label){color:#334155!important;text-shadow:none!important;}
html[data-marketak-theme="dark"] :where(.storefront-title-verified-v189385,.sf-verified-pill-v189385,.product-detail-verified-inside-v189387) *{color:#0f172a!important;}

/* Theme toggle icon only */
html[data-marketak-theme="dark"] .marketak-theme-toggle, .marketak-theme-toggle{width:46px!important;min-width:46px!important;height:46px!important;padding:0!important;border-radius:16px!important;display:inline-grid!important;place-items:center!important;overflow:hidden!important;}
.marketak-theme-toggle :where(.theme-label,[data-theme-label]){display:none!important;visibility:hidden!important;opacity:0!important;width:0!important;height:0!important;position:absolute!important;pointer-events:none!important;}
.marketak-theme-toggle [data-theme-icon]{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;font-size:18px!important;line-height:1!important;margin:0!important;}

/* Mobile tightening */
@media(max-width:800px){
  html[data-marketak-theme="dark"] body:not(.role-admin) :where(.cart-layout-pro,.checkout-grid-v16,.product-super-grid,.products-layout-v66,.storefront-products-layout-v155){gap:14px!important;}
  html[data-marketak-theme="dark"] :where(.cart-line-pro,.checkout-card-v16,.product-buy-panel,.pricing-card-v189525,.store-page-panel-pro){border-radius:22px!important;}
}
