/* Phase 18.9.5.28.5.8.9.50.1 — Platform Dark Mode Full Coverage, Contrast & Storefront Polish */
html[data-marketak-theme="dark"]{
  --mk-dark-bg:#050b14;
  --mk-dark-page:#07111f;
  --mk-dark-elevated:#0f172a;
  --mk-dark-elevated-2:#111c31;
  --mk-dark-elevated-3:#162238;
  --mk-dark-line:rgba(148,163,184,.24);
  --mk-dark-line-strong:rgba(191,219,254,.34);
  --mk-dark-text:#eef6ff;
  --mk-dark-text-soft:#dbeafe;
  --mk-dark-muted:#a8b5c8;
  --mk-dark-muted-2:#7f8da3;
  --mk-dark-blue:#60a5fa;
  --mk-dark-green:#34d399;
  --mk-dark-red:#fb7185;
  --mk-dark-yellow:#fbbf24;
  --mk-dark-purple:#a78bfa;
  scrollbar-color:rgba(148,163,184,.45) #050b14;
}
html[data-marketak-theme="dark"] *{scrollbar-color:rgba(148,163,184,.45) rgba(15,23,42,.76)}
html[data-marketak-theme="dark"] ::selection{background:rgba(96,165,250,.34);color:#fff}
html[data-marketak-theme="dark"] body,
html[data-marketak-theme="dark"] .app-shell,
html[data-marketak-theme="dark"] .main-shell,
html[data-marketak-theme="dark"] .page-shell,
html[data-marketak-theme="dark"] .public-page,
html[data-marketak-theme="dark"] .storefront-page,
html[data-marketak-theme="dark"] .products-page,
html[data-marketak-theme="dark"] .home-page,
html[data-marketak-theme="dark"] .customer-page,
html[data-marketak-theme="dark"] .vendor-page,
html[data-marketak-theme="dark"] .admin-page,
html[data-marketak-theme="dark"] .admin-settings-page,
html[data-marketak-theme="dark"] .vendor-shell,
html[data-marketak-theme="dark"] .admin-shell{
  background-color:var(--mk-dark-page)!important;
  color:var(--mk-dark-text)!important;
}
html[data-marketak-theme="dark"] .site-header,
html[data-marketak-theme="dark"] .top-header,
html[data-marketak-theme="dark"] .main-header,
html[data-marketak-theme="dark"] .mobile-header,
html[data-marketak-theme="dark"] .sticky-header,
html[data-marketak-theme="dark"] .navbar,
html[data-marketak-theme="dark"] .header-inner,
html[data-marketak-theme="dark"] .category-bar,
html[data-marketak-theme="dark"] .mobile-bottom-nav{
  background:rgba(7,17,31,.92)!important;
  border-color:var(--mk-dark-line)!important;
  color:var(--mk-dark-text)!important;
  backdrop-filter:blur(18px);
}
html[data-marketak-theme="dark"] .site-header a,
html[data-marketak-theme="dark"] .navbar a,
html[data-marketak-theme="dark"] .mobile-bottom-nav a{color:var(--mk-dark-text-soft)!important}
html[data-marketak-theme="dark"] .site-header a:hover,
html[data-marketak-theme="dark"] .navbar a:hover,
html[data-marketak-theme="dark"] .mobile-bottom-nav a:hover{color:#fff!important;background:rgba(96,165,250,.10)!important}

/* Announcement / promo strips */
html[data-marketak-theme="dark"] .announcement-bar,
html[data-marketak-theme="dark"] .ann-bar,
html[data-marketak-theme="dark"] .top-announcement,
html[data-marketak-theme="dark"] .marketak-announcement,
html[data-marketak-theme="dark"] .promo-strip,
html[data-marketak-theme="dark"] .smart-promo-bar,
html[data-marketak-theme="dark"] .seller-cta-strip{
  background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(49,46,129,.88),rgba(8,47,73,.92))!important;
  border-color:rgba(125,211,252,.24)!important;
  color:#f8fafc!important;
  box-shadow:0 18px 55px rgba(0,0,0,.28)!important;
}
html[data-marketak-theme="dark"] .announcement-bar *,
html[data-marketak-theme="dark"] .ann-bar *,
html[data-marketak-theme="dark"] .top-announcement *,
html[data-marketak-theme="dark"] .marketak-announcement *,
html[data-marketak-theme="dark"] .promo-strip *,
html[data-marketak-theme="dark"] .smart-promo-bar *{color:#f8fafc!important;text-shadow:none!important}
html[data-marketak-theme="dark"] .ann-action,
html[data-marketak-theme="dark"] .promo-strip .btn,
html[data-marketak-theme="dark"] .seller-cta-strip .btn{background:#f8fafc!important;color:#111827!important;border-color:rgba(255,255,255,.6)!important}

/* Cards / white surfaces catch-all */
html[data-marketak-theme="dark"] [class*="card"],
html[data-marketak-theme="dark"] [class*="Card"],
html[data-marketak-theme="dark"] [class*="panel"],
html[data-marketak-theme="dark"] [class*="Panel"],
html[data-marketak-theme="dark"] [class*="box"],
html[data-marketak-theme="dark"] [class*="Box"],
html[data-marketak-theme="dark"] [class*="item"],
html[data-marketak-theme="dark"] [class*="Item"],
html[data-marketak-theme="dark"] [class*="widget"],
html[data-marketak-theme="dark"] [class*="Widget"],
html[data-marketak-theme="dark"] [class*="tile"],
html[data-marketak-theme="dark"] [class*="Tile"]{
  border-color:var(--mk-dark-line)!important;
}
html[data-marketak-theme="dark"] .white,
html[data-marketak-theme="dark"] .bg-white,
html[data-marketak-theme="dark"] .surface,
html[data-marketak-theme="dark"] .filter-box,
html[data-marketak-theme="dark"] .filters-box,
html[data-marketak-theme="dark"] .sidebar-filter,
html[data-marketak-theme="dark"] .filter-sidebar,
html[data-marketak-theme="dark"] .search-box,
html[data-marketak-theme="dark"] .search-card,
html[data-marketak-theme="dark"] .empty-state,
html[data-marketak-theme="dark"] .notice-card,
html[data-marketak-theme="dark"] .summary-box,
html[data-marketak-theme="dark"] .checkout-summary,
html[data-marketak-theme="dark"] .cart-summary,
html[data-marketak-theme="dark"] .mini-cart,
html[data-marketak-theme="dark"] .drawer,
html[data-marketak-theme="dark"] .drawer-panel{
  background:linear-gradient(145deg,rgba(15,23,42,.96),rgba(17,28,49,.94))!important;
  border-color:var(--mk-dark-line)!important;
  color:var(--mk-dark-text)!important;
  box-shadow:0 20px 70px rgba(0,0,0,.28)!important;
}

/* Storefront / home */
html[data-marketak-theme="dark"] .hero,
html[data-marketak-theme="dark"] .home-hero,
html[data-marketak-theme="dark"] .store-hero,
html[data-marketak-theme="dark"] .storefront-hero,
html[data-marketak-theme="dark"] .vendor-store-hero,
html[data-marketak-theme="dark"] .main-hero,
html[data-marketak-theme="dark"] .content-hero,
html[data-marketak-theme="dark"] [class*="hero"]:not(.btn):not(button){
  color:var(--mk-dark-text)!important;
}
html[data-marketak-theme="dark"] .section-title,
html[data-marketak-theme="dark"] .block-title,
html[data-marketak-theme="dark"] .store-title,
html[data-marketak-theme="dark"] .product-title,
html[data-marketak-theme="dark"] .card-title{color:var(--mk-dark-text)!important}
html[data-marketak-theme="dark"] .section-subtitle,
html[data-marketak-theme="dark"] .product-desc,
html[data-marketak-theme="dark"] .store-desc,
html[data-marketak-theme="dark"] .helper-text{color:var(--mk-dark-muted)!important}
html[data-marketak-theme="dark"] .category-card,
html[data-marketak-theme="dark"] .category-chip,
html[data-marketak-theme="dark"] .branch-chip,
html[data-marketak-theme="dark"] .branch-chip-v30,
html[data-marketak-theme="dark"] .tab,
html[data-marketak-theme="dark"] .tabs a,
html[data-marketak-theme="dark"] .store-tab,
html[data-marketak-theme="dark"] .filter-chip{
  background:rgba(15,23,42,.82)!important;
  color:var(--mk-dark-text-soft)!important;
  border-color:var(--mk-dark-line)!important;
}
html[data-marketak-theme="dark"] .tab.active,
html[data-marketak-theme="dark"] .tabs a.active,
html[data-marketak-theme="dark"] .store-tab.active,
html[data-marketak-theme="dark"] .filter-chip.active,
html[data-marketak-theme="dark"] .category-chip.active{
  background:linear-gradient(135deg,var(--mk-dark-primary),var(--mk-dark-accent))!important;
  color:#fff!important;
  border-color:transparent!important;
}

/* Product cards */
html[data-marketak-theme="dark"] .product-card,
html[data-marketak-theme="dark"] .product-card-v2,
html[data-marketak-theme="dark"] .marketak-product-card,
html[data-marketak-theme="dark"] .store-product-card,
html[data-marketak-theme="dark"] .pcard,
html[data-marketak-theme="dark"] .product-mini-card{
  background:linear-gradient(160deg,rgba(15,23,42,.98),rgba(17,28,49,.96))!important;
  border:1px solid var(--mk-dark-line)!important;
  color:var(--mk-dark-text)!important;
  box-shadow:0 18px 55px rgba(0,0,0,.30)!important;
}
html[data-marketak-theme="dark"] .product-card:hover,
html[data-marketak-theme="dark"] .store-product-card:hover,
html[data-marketak-theme="dark"] .marketak-product-card:hover{border-color:rgba(96,165,250,.46)!important;box-shadow:0 24px 75px rgba(0,0,0,.42)!important}
html[data-marketak-theme="dark"] .product-card .image,
html[data-marketak-theme="dark"] .product-card .thumb,
html[data-marketak-theme="dark"] .product-img,
html[data-marketak-theme="dark"] .product-image,
html[data-marketak-theme="dark"] .gallery-main,
html[data-marketak-theme="dark"] .product-gallery,
html[data-marketak-theme="dark"] .product-media{
  background:linear-gradient(145deg,#111827,#020617)!important;
  border-color:var(--mk-dark-line)!important;
}
html[data-marketak-theme="dark"] .price,
html[data-marketak-theme="dark"] .product-price,
html[data-marketak-theme="dark"] .final-price,
html[data-marketak-theme="dark"] .current-price{color:#86efac!important;text-shadow:0 0 18px rgba(52,211,153,.15)}
html[data-marketak-theme="dark"] .old-price,
html[data-marketak-theme="dark"] .compare-price,
html[data-marketak-theme="dark"] del{color:#94a3b8!important}
html[data-marketak-theme="dark"] .discount-badge,
html[data-marketak-theme="dark"] .offer-badge,
html[data-marketak-theme="dark"] .most-requested,
html[data-marketak-theme="dark"] .verified-badge,
html[data-marketak-theme="dark"] .trust-badge{box-shadow:0 12px 30px rgba(0,0,0,.26)!important}

/* Forms / filters */
html[data-marketak-theme="dark"] input[type="text"],
html[data-marketak-theme="dark"] input[type="search"],
html[data-marketak-theme="dark"] input[type="email"],
html[data-marketak-theme="dark"] input[type="tel"],
html[data-marketak-theme="dark"] input[type="number"],
html[data-marketak-theme="dark"] input[type="password"],
html[data-marketak-theme="dark"] input[type="url"],
html[data-marketak-theme="dark"] input[type="date"],
html[data-marketak-theme="dark"] input[type="datetime-local"],
html[data-marketak-theme="dark"] input[type="month"],
html[data-marketak-theme="dark"] input[type="time"],
html[data-marketak-theme="dark"] select,
html[data-marketak-theme="dark"] textarea,
html[data-marketak-theme="dark"] .fake-input,
html[data-marketak-theme="dark"] .select2-selection,
html[data-marketak-theme="dark"] .choices__inner{
  background:rgba(2,6,23,.72)!important;
  color:var(--mk-dark-text)!important;
  border-color:var(--mk-dark-line-strong)!important;
}
html[data-marketak-theme="dark"] option{background:#0f172a!important;color:#e5edf8!important}
html[data-marketak-theme="dark"] input[type="checkbox"],
html[data-marketak-theme="dark"] input[type="radio"]{accent-color:var(--mk-dark-primary);box-shadow:none!important}
html[data-marketak-theme="dark"] .filter-title,
html[data-marketak-theme="dark"] .filter-label,
html[data-marketak-theme="dark"] .form-label{color:var(--mk-dark-text-soft)!important}

/* Tables and rows */
html[data-marketak-theme="dark"] .table,
html[data-marketak-theme="dark"] .data-table,
html[data-marketak-theme="dark"] .table-wrap,
html[data-marketak-theme="dark"] .table-responsive{background:rgba(15,23,42,.92)!important;border-color:var(--mk-dark-line)!important;color:var(--mk-dark-text)!important}
html[data-marketak-theme="dark"] thead,
html[data-marketak-theme="dark"] .table-head{background:#111c31!important;color:#dbeafe!important}
html[data-marketak-theme="dark"] tr,
html[data-marketak-theme="dark"] .list-row,
html[data-marketak-theme="dark"] .order-row,
html[data-marketak-theme="dark"] .notification-row{border-color:var(--mk-dark-line)!important}
html[data-marketak-theme="dark"] tr:hover td,
html[data-marketak-theme="dark"] .list-row:hover{background:rgba(30,64,175,.18)!important}

/* Modals / popups / overlays */
html[data-marketak-theme="dark"] .modal,
html[data-marketak-theme="dark"] .modal-card,
html[data-marketak-theme="dark"] .modal-content,
html[data-marketak-theme="dark"] .popup,
html[data-marketak-theme="dark"] .popup-card,
html[data-marketak-theme="dark"] .popup-content,
html[data-marketak-theme="dark"] .dialog,
html[data-marketak-theme="dark"] .dialog-card,
html[data-marketak-theme="dark"] .activity-modal-card,
html[data-marketak-theme="dark"] .gift-popup,
html[data-marketak-theme="dark"] .welcome-popup,
html[data-marketak-theme="dark"] .promo-popup,
html[data-marketak-theme="dark"] .smart-popup,
html[data-marketak-theme="dark"] .toast-card,
html[data-marketak-theme="dark"] .marketak-flash-card-v189511{
  background:linear-gradient(155deg,rgba(15,23,42,.98),rgba(17,24,39,.96))!important;
  border-color:var(--mk-dark-line-strong)!important;
  color:var(--mk-dark-text)!important;
  box-shadow:0 30px 110px rgba(0,0,0,.55)!important;
}
html[data-marketak-theme="dark"] .modal-backdrop,
html[data-marketak-theme="dark"] .popup-backdrop,
html[data-marketak-theme="dark"] .drawer-backdrop,
html[data-marketak-theme="dark"] .overlay{background:rgba(2,6,23,.78)!important;backdrop-filter:blur(8px)}
html[data-marketak-theme="dark"] .modal *:not(.btn):not(button),
html[data-marketak-theme="dark"] .popup *:not(.btn):not(button),
html[data-marketak-theme="dark"] .dialog *:not(.btn):not(button){color:inherit}

/* Buttons */
html[data-marketak-theme="dark"] .btn:not(.danger):not(.success):not(.primary),
html[data-marketak-theme="dark"] .mini-btn:not(.danger):not(.success):not(.ok),
html[data-marketak-theme="dark"] .ghost-btn,
html[data-marketak-theme="dark"] .outline-btn{
  background:rgba(15,23,42,.86)!important;
  color:#dbeafe!important;
  border-color:var(--mk-dark-line-strong)!important;
}
html[data-marketak-theme="dark"] .btn.primary,
html[data-marketak-theme="dark"] .primary,
html[data-marketak-theme="dark"] button.primary,
html[data-marketak-theme="dark"] .main-btn,
html[data-marketak-theme="dark"] .add-to-cart,
html[data-marketak-theme="dark"] .checkout-btn{
  background:linear-gradient(135deg,var(--mk-dark-primary),#2563eb)!important;
  color:#fff!important;
  border-color:transparent!important;
}
html[data-marketak-theme="dark"] .btn:hover,
html[data-marketak-theme="dark"] .mini-btn:hover,
html[data-marketak-theme="dark"] button:hover{filter:brightness(1.08)}

/* Admin/vendor sidebars */
html[data-marketak-theme="dark"] .admin-sidebar,
html[data-marketak-theme="dark"] .vendor-sidebar,
html[data-marketak-theme="dark"] .side-nav,
html[data-marketak-theme="dark"] .sidebar,
html[data-marketak-theme="dark"] .admin-nav{
  background:linear-gradient(180deg,#07111f,#0f172a)!important;
  border-color:var(--mk-dark-line)!important;
  color:var(--mk-dark-text)!important;
}
html[data-marketak-theme="dark"] .admin-sidebar a,
html[data-marketak-theme="dark"] .vendor-sidebar a,
html[data-marketak-theme="dark"] .side-nav a,
html[data-marketak-theme="dark"] .sidebar a{color:var(--mk-dark-text-soft)!important;border-color:rgba(148,163,184,.14)!important}
html[data-marketak-theme="dark"] .admin-sidebar a.active,
html[data-marketak-theme="dark"] .vendor-sidebar a.active,
html[data-marketak-theme="dark"] .side-nav a.active,
html[data-marketak-theme="dark"] .sidebar a.active{background:linear-gradient(135deg,rgba(124,58,237,.92),rgba(37,99,235,.88))!important;color:#fff!important}

/* Notifications */
html[data-marketak-theme="dark"] .notification-card,
html[data-marketak-theme="dark"] .notif-card,
html[data-marketak-theme="dark"] .notification-item,
html[data-marketak-theme="dark"] .alert-card{
  background:linear-gradient(145deg,rgba(15,23,42,.96),rgba(17,28,49,.94))!important;
  border-color:rgba(96,165,250,.28)!important;
  color:var(--mk-dark-text)!important;
}
html[data-marketak-theme="dark"] .priority-high,
html[data-marketak-theme="dark"] .high{background:rgba(244,63,94,.16)!important;color:#fecdd3!important;border-color:rgba(244,63,94,.32)!important}
html[data-marketak-theme="dark"] .new,
html[data-marketak-theme="dark"] .unread{background:rgba(34,197,94,.16)!important;color:#bbf7d0!important;border-color:rgba(34,197,94,.32)!important}

/* Status notes */
html[data-marketak-theme="dark"] .success,
html[data-marketak-theme="dark"] .ok,
html[data-marketak-theme="dark"] .status-success{color:#bbf7d0!important;border-color:rgba(34,197,94,.34)!important}
html[data-marketak-theme="dark"] .warning,
html[data-marketak-theme="dark"] .warn,
html[data-marketak-theme="dark"] .status-warning{color:#fde68a!important;border-color:rgba(251,191,36,.34)!important}
html[data-marketak-theme="dark"] .danger,
html[data-marketak-theme="dark"] .error,
html[data-marketak-theme="dark"] .status-error{color:#fecdd3!important;border-color:rgba(244,63,94,.34)!important}
html[data-marketak-theme="dark"] .info,
html[data-marketak-theme="dark"] .status-info{color:#bfdbfe!important;border-color:rgba(96,165,250,.34)!important}
html[data-marketak-theme="dark"] .note,
html[data-marketak-theme="dark"] .hint,
html[data-marketak-theme="dark"] .secure-note,
html[data-marketak-theme="dark"] .alert,
html[data-marketak-theme="dark"] .message,
html[data-marketak-theme="dark"] .help-box{
  background:rgba(15,23,42,.82)!important;
  color:var(--mk-dark-text-soft)!important;
  border-color:var(--mk-dark-line)!important;
}

/* Text contrast final layer */
html[data-marketak-theme="dark"] .text-dark,
html[data-marketak-theme="dark"] .dark-text,
html[data-marketak-theme="dark"] .title,
html[data-marketak-theme="dark"] .name,
html[data-marketak-theme="dark"] .label-title{color:var(--mk-dark-text)!important}
html[data-marketak-theme="dark"] .text-gray,
html[data-marketak-theme="dark"] .text-secondary,
html[data-marketak-theme="dark"] .subtitle,
html[data-marketak-theme="dark"] .caption,
html[data-marketak-theme="dark"] .date,
html[data-marketak-theme="dark"] .time{color:var(--mk-dark-muted)!important}
html[data-marketak-theme="dark"] hr{border-color:var(--mk-dark-line)!important}
html[data-marketak-theme="dark"] svg:not([fill="none"]){filter:drop-shadow(0 6px 12px rgba(0,0,0,.16))}

@media(max-width:900px){
  html[data-marketak-theme="dark"] .filter-sidebar,
  html[data-marketak-theme="dark"] .mobile-filter-panel,
  html[data-marketak-theme="dark"] .filters-drawer{background:rgba(7,17,31,.98)!important;border-color:var(--mk-dark-line-strong)!important;color:var(--mk-dark-text)!important}
  html[data-marketak-theme="dark"] .product-card,
  html[data-marketak-theme="dark"] .store-product-card{box-shadow:0 12px 38px rgba(0,0,0,.28)!important}
  html[data-marketak-theme="dark"] .mobile-bottom-nav{box-shadow:0 -18px 55px rgba(0,0,0,.36)!important}
}
