/* Mobile product controls: keep purchase bar at the bottom; lift only the scroll button. */
@media screen and (max-width: 767px) {
  body:has(.ms-pd-sticky-bar) .scroll-top {
    right: 14px !important;
    bottom: 126px !important;
    z-index: 110 !important;
  }
  .ms-pd-sticky-bar {
    bottom: 10px !important;
    left: 8px !important;
    right: 8px !important;
    z-index: 100 !important;
  }
}

/* Michigostudio theme fixes - light mode must look LIGHT */
/* Cart checkout brand */
#miniCartCheckoutBtn,
.ms-checkout-btn,
a#miniCartCheckoutBtn {
  background-color: var(--ms-brand, #21cc87) !important;
  border-color: var(--ms-brand, #21cc87) !important;
  color: #fff !important;
  border-radius: 999px !important;
}
#miniCartCheckoutBtn:hover,
.ms-checkout-btn:hover {
  filter: brightness(0.95);
  color: #fff !important;
}
#miniCartContent .text-success {
  color: var(--ms-brand, #21cc87) !important;
}
.mini-cart-dropdown .btn--primary {
  background-color: var(--ms-brand, #21cc87) !important;
  border-color: var(--ms-brand, #21cc87) !important;
  color: #fff !important;
}

/* =========================================================
   LIGHT MODE (body without .dark) — force clean white UI
   Theme toggle only adds/removes class "dark" on body.
   ========================================================= */
body:not(.dark) {
  background-color: #f7f8fa !important;
  color: #0f172a !important;
}

/* Hero: soft light gradient, not murky dark */
body:not(.dark) .hero,
body:not(.dark) section.hero.hero-bg {
  background: linear-gradient(180deg, rgba(var(--ms-brand-rgb, 33, 204, 135), .10) 0%, rgba(var(--ms-brand-2-rgb, 33, 204, 135), .08) 45%, #f7f8fa 100%) !important;
  background-color: #f7f8fa !important;
}
@supports (background: color-mix(in srgb, red, white)) {
  body:not(.dark) .hero,
  body:not(.dark) section.hero.hero-bg {
    background-color: color-mix(in srgb, var(--ms-brand, #21cc87) 7%, #f7f8fa) !important;
  }
}
body:not(.dark) .hero .circle1,
body:not(.dark) .hero .circle2,
body:not(.dark) .hero .circle3 {
  opacity: 0.35 !important;
  filter: blur(90px) !important;
}
body:not(.dark) .hero-shape-bg {
  filter: none !important;
  opacity: 0.35 !important;
}
body:not(.dark) .heror-content .heading,
body:not(.dark) .hero .heading,
body:not(.dark) .heror-content h1 {
  color: #0f172a !important;
  text-shadow: none !important;
}
body:not(.dark) .heror-content .sub-heading {
  background-color: var(--ms-brand, #21cc87) !important;
  color: #fff !important;
}
body:not(.dark) .hero .category-card_body {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(8px);
}
body:not(.dark) .hero .category-content h6,
body:not(.dark) .hero .category-content a {
  color: #0f172a !important;
}
body:not(.dark) .hero .search-bar .search-form--control {
  background: #fff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
}

/* Header light + logo always visible */
body:not(.dark) .header-main-area,
body:not(.dark) .header {
  background: #ffffff !important;
}
body:not(.dark) .header-main-area .menu > ul > li > a,
body:not(.dark) .menu-right-wrapper a,
body:not(.dark) .main-menu a {
  color: #0f172a;
}

/*
  ROOT CAUSE (main.css @max-width 991px):
  .header { position:absolute; background:transparent }
  → logo row leaves document flow, looks "missing" on login/cart.
  Fix: force relative + solid bg on all pages EXCEPT mobile browse
  (browse hides .header-main-area and uses .ms-browse-mobile).
*/
.header-main-area {
  position: relative !important;
  z-index: 1000 !important;
  width: 100% !important;
}
.header-main-area .header,
.header#header,
.header.position-relative,
.header.fixed-header {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  z-index: 1001 !important;
  width: 100% !important;
  min-height: 64px !important;
  max-height: none !important;
  overflow: visible !important;
  background-color: #ffffff !important;
}
body.dark .header-main-area .header,
body.dark .header#header,
body.dark .header.position-relative,
body.dark .header.fixed-header {
  background-color: #12151a !important;
}
.header-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 56px !important;
  gap: 12px;
  width: 100%;
}
.header-menu-wrapper,
.logo-wrapper {
  display: flex !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.logo-wrapper a,
.logo-wrapper img,
.header .normal-logo,
.header .normal-logo img {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: 40px !important;
  width: auto !important;
  height: auto !important;
}
.header .dark-logo.hidden {
  display: none !important;
}
body.dark .header .normal-logo { display: none !important; }
body.dark .header .dark-logo.hidden,
body.dark .header .dark-logo {
  display: inline-block !important;
}
body.dark .header-main-area,
body.dark .header {
  background: #12151a !important;
}

/* Mobile: kill absolute transparent header from main.css (login/cart/etc) */
@media screen and (max-width: 991px) {
  /* Browse has its own mobile chrome; hide the desktop header to avoid duplicate logos. */
  body.ms-browse-page .header-main-area {
    display: none !important;
  }
  body:not(.ms-browse-page) .header-main-area {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    background: #ffffff !important;
  }
  body.dark:not(.ms-browse-page) .header-main-area {
    background: #12151a !important;
  }
  body:not(.ms-browse-page) .header,
  body:not(.ms-browse-page) .header#header,
  body:not(.ms-browse-page) .header.position-relative,
  body:not(.ms-browse-page) .header.fixed-header {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    padding: 12px 0 !important;
    max-height: none !important;
    overflow: visible !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    z-index: 100 !important;
  }
  body.dark:not(.ms-browse-page) .header,
  body.dark:not(.ms-browse-page) .header#header,
  body.dark:not(.ms-browse-page) .header.fixed-header {
    background-color: #12151a !important;
    background: #12151a !important;
  }
  body:not(.ms-browse-page) .header-wrapper {
    display: flex !important;
    align-items: center !important;
    min-height: 52px !important;
    position: relative !important;
  }
  body:not(.ms-browse-page) .header-wrapper > .header-menu-wrapper {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2 !important;
    margin: 0 !important;
  }
  body:not(.ms-browse-page) .header-wrapper > .menu-wrapper {
    width: 100% !important;
  }
  body:not(.ms-browse-page) .header-wrapper > .menu-wrapper .main-menu {
    display: none !important;
  }
  body:not(.ms-browse-page) .logo-wrapper,
  body:not(.ms-browse-page) .logo-wrapper a,
  body:not(.ms-browse-page) .logo-wrapper img {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 36px !important;
  }
  /* Fallback without :has() — pages that are not browse still need logo */
  .header#header,
  .header.position-relative {
    position: relative !important;
    background-color: #ffffff !important;
  }
}

/* Breadcrumb BELOW header (relative header, not absolute) */
.ms-breadcrumb,
body .ms-breadcrumb {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 5 !important;
  padding: 12px 16px !important;
  margin: 0 !important;
  background: #eef2f7 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  min-height: 0 !important;
}
@media (max-width: 991.98px) {
  .ms-breadcrumb, body .ms-breadcrumb { padding: 10px 14px !important; }
  body.ms-browse-page .ms-breadcrumb {
    display: none !important;
  }
}

/* Sections */
body:not(.dark) .section-bg,
body:not(.dark) .shop-section,
body:not(.dark) .news-section,
body:not(.dark) .about-section,
body:not(.dark) .faq-section,
body:not(.dark) .blog-section {
  background-color: #f7f8fa !important;
  color: #0f172a !important;
}
body:not(.dark) .news-section h2,
body:not(.dark) .news-section .heading,
body:not(.dark) h1, body:not(.dark) h2, body:not(.dark) h3,
body:not(.dark) h4, body:not(.dark) h5, body:not(.dark) h6 {
  color: #0f172a !important;
}
body:not(.dark) .news-section p,
body:not(.dark) p {
  color: rgba(15, 23, 42, 0.72) !important;
}
body:not(.dark) .news-section .nws-card_wraper .nws-card_body {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

/* Footer light mode = white/light + dark text */
body:not(.dark) .footer-area {
  background: #ffffff !important;
  color: #0f172a !important;
}
body:not(.dark) .footer-area::after {
  background-color: #ffffff !important;
  opacity: 1 !important;
}
body:not(.dark) .footer-area::before {
  opacity: 0.15 !important;
}
body:not(.dark) .footer-item__title,
body:not(.dark) .footer-item__desc,
body:not(.dark) .footer-menu__link,
body:not(.dark) .footer-contact-menu__item p,
body:not(.dark) .footer-area p,
body:not(.dark) .footer-area h5,
body:not(.dark) .footer-area a,
body:not(.dark) .footer-area li {
  color: #0f172a !important;
}
body:not(.dark) .footer-menu__link:hover,
body:not(.dark) .footer-area a:hover {
  color: var(--ms-brand, #21cc87) !important;
}
body:not(.dark) .footer-area .bottom-footer,
body:not(.dark) .bottom-footer,
body:not(.dark) .bottom-footer * {
  color: #334155 !important;
}
body:not(.dark) .footer-area .circle1,
body:not(.dark) .footer-area .circle2,
body:not(.dark) .footer-area .banner-effect-1 {
  opacity: 0.25 !important;
}

/* Cards / shop on home */
body:not(.dark) .card_wraper .card_body {
  background: #fff !important;
}

/* =========================================================
   DARK MODE stays dark (body.dark)
   ========================================================= */
body.dark {
  background-color: hsl(var(--dark, 222 14% 10%)) !important;
  color: #f3f4f6 !important;
}
body.dark .hero,
body.dark section.hero.hero-bg {
  background: #121820 !important;
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--ms-brand-rgb, 33, 204, 135), .16), transparent 55%),
              linear-gradient(180deg, #171d24 0%, #121820 100%) !important;
}
@supports (background: color-mix(in srgb, red, white)) {
  body.dark .hero,
  body.dark section.hero.hero-bg {
    background: radial-gradient(ellipse at 50% 0%, rgba(var(--ms-brand-rgb, 33, 204, 135), .16), transparent 55%),
                linear-gradient(180deg, color-mix(in srgb, var(--ms-brand, #21cc87) 9%, #0f1419) 0%, #121820 100%) !important;
  }
}
body.dark .heror-content .heading,
body.dark .hero .heading,
body.dark .heror-content h1 {
  color: #ffffff !important;
}
body.dark .heror-content .sub-heading {
  color: #fff !important;
}
body.dark .hero .category-content h6,
body.dark .hero .category-content a {
  color: #e5e7eb !important;
}


/* breadcrumb nav styles (padding handled above — header is relative) */
.ms-breadcrumb__nav,
body .ms-breadcrumb__nav {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  max-width: 1200px;
  margin: 0 auto !important;
}
.ms-breadcrumb__link,
body .ms-breadcrumb__link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #1e293b !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.ms-breadcrumb__current,
body .ms-breadcrumb__current {
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
.ms-breadcrumb__sep,
body .ms-breadcrumb__sep { color: #64748b !important; font-weight: 700 !important; }
#msCartBreadcrumb, .ms-cart-trail { display: none !important; }

/* =========================================================
   Mobile drawer — Gemini/Canva reference match (real data)
   ========================================================= */
#offcanvasExample.offcanvas.ms-drawer,
#offcanvasExample.offcanvas {
  width: min(320px, 90vw) !important;
  max-width: 320px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  border: 0 !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.10) !important;
}
#offcanvasExample .ms-drawer-header,
#offcanvasExample .offcanvas-header.ms-drawer-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 72px !important;
  padding: 20px 24px !important;
  border-bottom: 1px solid #f3f4f6 !important;
  background: #fff !important;
}
#offcanvasExample .ms-drawer-logo {
  display: inline-flex !important;
  align-items: center !important;
  max-width: calc(100% - 48px) !important;
  text-decoration: none !important;
}
#offcanvasExample .ms-drawer-logo img {
  display: block !important;
  width: auto !important;
  max-width: 168px !important;
  max-height: 36px !important;
  height: auto !important;
  object-fit: contain !important;
}
#offcanvasExample .ms-drawer-close {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #6b7280 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: background .2s ease, color .2s ease !important;
}
#offcanvasExample .ms-drawer-close:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}
#offcanvasExample .ms-drawer-body,
#offcanvasExample .offcanvas-body.ms-drawer-body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: calc(100dvh - 72px) !important;
  max-height: calc(100dvh - 72px) !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: #fff !important;
}
#offcanvasExample .ms-drawer-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  padding: 8px 0 24px !important;
  scrollbar-width: thin !important;
  scrollbar-color: #e5e7eb transparent !important;
}
#offcanvasExample .ms-drawer-scroll::-webkit-scrollbar { width: 6px; }
#offcanvasExample .ms-drawer-scroll::-webkit-scrollbar-track { background: transparent; }
#offcanvasExample .ms-drawer-scroll::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 20px;
}
#offcanvasExample .ms-drawer-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 8px 16px !important;
}
#offcanvasExample .ms-drawer-nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 48px !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  color: #1f2937 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease !important;
}
#offcanvasExample .ms-drawer-nav-link:hover,
#offcanvasExample .ms-drawer-nav-link.is-active,
#offcanvasExample .ms-drawer-nav-link.active {
  background: #f9fafb !important;
  color: #111827 !important;
}
#offcanvasExample .ms-drawer-nav-icon {
  width: 22px !important;
  min-width: 22px !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 22px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #6b7280 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  transition: color .2s ease !important;
}
#offcanvasExample .ms-drawer-nav-link:hover .ms-drawer-nav-icon,
#offcanvasExample .ms-drawer-nav-link.is-active .ms-drawer-nav-icon,
#offcanvasExample .ms-drawer-nav-link.active .ms-drawer-nav-icon {
  background: transparent !important;
  color: var(--ms-brand, #2DD48F) !important;
}
#offcanvasExample .ms-drawer-external {
  margin-left: auto !important;
  font-size: 11px !important;
  color: #9ca3af !important;
}
#offcanvasExample .ms-drawer-divider {
  height: 1px !important;
  margin: 16px 32px !important;
  background: #f3f4f6 !important;
  border: 0 !important;
}
#offcanvasExample .ms-drawer-preferences {
  padding: 8px 24px 0 !important;
}
#offcanvasExample .ms-drawer-section-title,
#offcanvasExample .ms-drawer-preferences h3 {
  margin: 0 0 16px !important;
  color: #9ca3af !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
#offcanvasExample .ms-drawer-currency {
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
#offcanvasExample .ms-drawer-currency__trigger {
  width: 100% !important;
  min-height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  text-align: left !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
}
#offcanvasExample .ms-drawer-currency__trigger:hover,
#offcanvasExample .ms-drawer-currency.is-open .ms-drawer-currency__trigger {
  border-color: color-mix(in srgb, var(--ms-brand, #2DD48F) 50%, #e5e7eb) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
#offcanvasExample .ms-drawer-currency__icon {
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 32px !important;
  border-radius: 8px !important;
  background: #f9fafb !important;
  color: #6b7280 !important;
  font-size: 16px !important;
  transition: background .2s ease, color .2s ease !important;
}
#offcanvasExample .ms-drawer-currency__trigger:hover .ms-drawer-currency__icon,
#offcanvasExample .ms-drawer-currency.is-open .ms-drawer-currency__icon {
  background: color-mix(in srgb, var(--ms-brand, #2DD48F) 12%, #fff) !important;
  color: var(--ms-brand, #2DD48F) !important;
}
#offcanvasExample .ms-drawer-currency__copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 1px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
#offcanvasExample .ms-drawer-currency__copy strong {
  display: block !important;
  color: #1f2937 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}
#offcanvasExample .ms-drawer-currency__copy small {
  display: block !important;
  color: #6b7280 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}
#offcanvasExample .ms-drawer-currency__chevron {
  margin-left: auto !important;
  color: #6b7280 !important;
  font-size: 12px !important;
  transition: transform .2s ease, color .2s ease !important;
}
#offcanvasExample .ms-drawer-currency.is-open .ms-drawer-currency__chevron {
  transform: rotate(180deg) !important;
  color: var(--ms-brand, #2DD48F) !important;
}
#offcanvasExample .ms-drawer-currency__dropdown {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  z-index: 30 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 8px 0 !important;
  border: 1px solid #f3f4f6 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}
#offcanvasExample .ms-drawer-currency__option {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 40px !important;
  padding: 8px 16px !important;
  color: #1f2937 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  user-select: none !important;
  transition: background .15s ease, color .15s ease !important;
}
#offcanvasExample .ms-drawer-currency__option:hover {
  background: #f9fafb !important;
}
#offcanvasExample .ms-drawer-currency__option.is-active {
  background: color-mix(in srgb, var(--ms-brand, #2DD48F) 12%, #fff) !important;
  color: var(--ms-brand, #2DD48F) !important;
  font-weight: 500 !important;
}
#offcanvasExample .ms-drawer-currency__option span {
  display: block !important;
  line-height: 1.3 !important;
}
#offcanvasExample .ms-drawer-currency__option i {
  color: var(--ms-brand, #2DD48F) !important;
  font-size: 16px !important;
}
#offcanvasExample .ms-drawer-account {
  margin-top: auto !important;
  padding: 48px 24px 0 !important;
  border: 0 !important;
}
#offcanvasExample .ms-drawer-profile {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  margin-bottom: 20px !important;
  color: #1f2937 !important;
  text-decoration: none !important;
}
#offcanvasExample .ms-drawer-avatar {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--ms-brand, #2DD48F) 12%, #fff) !important;
  color: var(--ms-brand, #2DD48F) !important;
  font-size: 18px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
#offcanvasExample .ms-drawer-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
#offcanvasExample .ms-drawer-profile-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}
#offcanvasExample .ms-drawer-profile-copy strong,
#offcanvasExample .ms-drawer-profile-copy small {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#offcanvasExample .ms-drawer-profile-copy strong {
  color: #1f2937 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}
#offcanvasExample .ms-drawer-profile-copy small {
  color: #6b7280 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}
#offcanvasExample .ms-drawer-auth-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-top: 0 !important;
}
#offcanvasExample .ms-drawer-auth-btn {
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease, filter .2s ease !important;
}
#offcanvasExample .ms-drawer-login,
#offcanvasExample .ms-drawer-logout {
  background: var(--ms-brand, #2DD48F) !important;
  border: 1px solid var(--ms-brand, #2DD48F) !important;
  color: #ffffff !important;
}
#offcanvasExample .ms-drawer-login:hover,
#offcanvasExample .ms-drawer-logout:hover {
  filter: brightness(0.95) !important;
  color: #ffffff !important;
}
#offcanvasExample .ms-drawer-register {
  background: #ffffff !important;
  border: 1px solid color-mix(in srgb, var(--ms-brand, #2DD48F) 30%, #fff) !important;
  color: var(--ms-brand, #2DD48F) !important;
}
#offcanvasExample .ms-drawer-register:hover {
  background: #f9fafb !important;
}
#offcanvasExample .ms-drawer-logout {
  width: 100% !important;
  margin-top: 0 !important;
}
body:has(#offcanvasExample.show) .ms-mobile-bottom-nav {
  display: none !important;
}
.offcanvas-backdrop.show {
  opacity: 0.4 !important;
  background-color: #000 !important;
}
body.dark #offcanvasExample.offcanvas.ms-drawer,
body.dark #offcanvasExample.offcanvas {
  background: #12151a !important;
  color: #f3f4f6 !important;
}
body.dark #offcanvasExample .ms-drawer-header,
body.dark #offcanvasExample .ms-drawer-body {
  background: #12151a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
body.dark #offcanvasExample .ms-drawer-close { color: #9ca3af !important; }
body.dark #offcanvasExample .ms-drawer-close:hover { background: rgba(255,255,255,.06) !important; color: #fff !important; }
body.dark #offcanvasExample .ms-drawer-nav-link { color: #e5e7eb !important; }
body.dark #offcanvasExample .ms-drawer-nav-link:hover,
body.dark #offcanvasExample .ms-drawer-nav-link.is-active { background: rgba(255,255,255,.05) !important; color: #fff !important; }
body.dark #offcanvasExample .ms-drawer-nav-icon { color: #9ca3af !important; }
body.dark #offcanvasExample .ms-drawer-divider { background: rgba(255,255,255,.08) !important; }
body.dark #offcanvasExample .ms-drawer-currency__trigger,
body.dark #offcanvasExample .ms-drawer-currency__dropdown,
body.dark #offcanvasExample .ms-drawer-register {
  background: #1a1d23 !important;
  border-color: rgba(255,255,255,.10) !important;
  color: #f3f4f6 !important;
}
body.dark #offcanvasExample .ms-drawer-currency__copy strong,
body.dark #offcanvasExample .ms-drawer-profile-copy strong { color: #f3f4f6 !important; }
body.dark #offcanvasExample .ms-drawer-currency__copy small,
body.dark #offcanvasExample .ms-drawer-profile-copy small { color: #9ca3af !important; }
body.dark #offcanvasExample .ms-drawer-currency__icon { background: rgba(255,255,255,.05) !important; color: #9ca3af !important; }
body.dark #offcanvasExample .ms-drawer-currency__option { color: #e5e7eb !important; }
body.dark #offcanvasExample .ms-drawer-currency__option:hover { background: rgba(255,255,255,.05) !important; }

/* Reference-style footer: four balanced columns with a full-width divider. */
.ms-footer__top {
  width: 100% !important;
  padding: 76px 0 64px !important;
}
.ms-footer__top > .container,
.ms-footer__bottom > .container {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.ms-footer__grid {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1fr) !important;
  gap: 48px !important;
  align-items: start !important;
}
.ms-footer__grid > .footer-item {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ms-footer__brand .footer-item__logo {
  margin-bottom: 20px !important;
}
.ms-footer__brand .footer-item__logo img {
  max-width: 190px !important;
  max-height: 48px !important;
}
.ms-footer__brand .footer-item__desc,
.ms-footer__help .footer-item__desc {
  max-width: 290px !important;
  margin-bottom: 20px !important;
  line-height: 1.7 !important;
}
.ms-footer__support-list {
  display: grid !important;
  gap: 14px !important;
  margin-top: 2px !important;
}
.ms-footer__support-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 11px !important;
  width: fit-content !important;
  color: #0f172a !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
  transition: color .2s ease, transform .2s ease !important;
}
.ms-footer__support-link i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  min-width: 20px !important;
  font-size: 17px !important;
  color: var(--ms-brand, #21cc87) !important;
}
.ms-footer__support-link:hover {
  color: var(--ms-brand, #21cc87) !important;
  transform: translateX(3px) !important;
}
body.dark .ms-footer__support-link {
  color: #f3f4f6 !important;
}
.ms-footer .footer-item__title {
  margin-bottom: 20px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
}
.ms-footer .footer-menu {
  display: grid !important;
  gap: 11px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ms-footer .footer-menu__item {
  margin: 0 !important;
  line-height: 1.45 !important;
}
.ms-footer .footer-menu__link {
  font-size: 14px !important;
}
.ms-footer__bottom {
  border-top: 1px solid rgba(15, 23, 42, .12) !important;
  padding: 24px 0 !important;
  background: transparent !important;
}
.ms-footer__bottom .bottom-footer-text {
  text-align: center !important;
}
.ms-footer__bottom .bottom-footer-text p {
  margin: 0 !important;
  font-size: 13px !important;
}
body.dark .ms-footer__bottom {
  border-top-color: rgba(255, 255, 255, .14) !important;
}
@media (max-width: 991.98px) {
  .ms-footer__top { padding: 52px 0 42px !important; }
  .ms-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 38px 24px !important; }
}
@media (max-width: 575.98px) {
  .ms-footer__top {
    padding: 28px 0 24px !important;
  }
  .ms-footer__top > .container,
  .ms-footer__bottom > .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .ms-footer__grid {
    grid-template-columns: 1fr !important;
    gap: 19px !important;
  }
  .ms-footer__brand .footer-item__logo {
    margin-bottom: 12px !important;
  }
  .ms-footer__brand .footer-item__logo img {
    max-width: 165px !important;
    max-height: 42px !important;
  }
  .ms-footer__brand .footer-item__desc,
  .ms-footer__help .footer-item__desc {
    max-width: 100% !important;
    margin-bottom: 12px !important;
    line-height: 1.5 !important;
  }
  .ms-footer .footer-item__title {
    margin-bottom: 10px !important;
    font-size: 14px !important;
  }
  .ms-footer .footer-menu {
    gap: 5px !important;
  }
  .ms-footer .footer-menu__item {
    padding: 2px 0 !important;
  }
  .ms-footer .footer-menu__link,
  .ms-footer__support-link {
    font-size: 13px !important;
  }
  .ms-footer__support-list {
    gap: 8px !important;
  }
  .ms-footer__support-link {
    gap: 9px !important;
  }
  .ms-footer__bottom {
    padding: 14px 0 !important;
  }
  .ms-footer__bottom .bottom-footer-text p {
    font-size: 12px !important;
  }
}


/* =========================================================
   Order Tracking / Redeem (Gemini UI) — uses --ms-brand
   ========================================================= */
.ms-track {
  --ms-track-brand: var(--ms-brand, #21cc87);
  --ms-track-brand-rgb: var(--ms-brand-rgb, 33, 204, 135);
  --ms-track-ink: #0f172a;
  --ms-track-muted: #64748b;
  --ms-track-line: #e8edf3;
  --ms-track-card: #ffffff;
  --ms-track-soft: #f4f7fa;
  background: #f6f8fb;
  color: var(--ms-track-ink);
  padding-bottom: 64px;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ms-track-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 40px;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(var(--ms-track-brand-rgb), .16), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(var(--ms-track-brand-rgb), .10), transparent 50%),
    linear-gradient(180deg, #f3fbf7 0%, #eef7f2 42%, #f6f8fb 100%);
  color: var(--ms-track-ink);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.ms-track-hero__glow {
  position: absolute;
  inset: auto 50% -40% auto;
  width: 420px; height: 420px;
  transform: translateX(40%);
  background: radial-gradient(circle, rgba(var(--ms-track-brand-rgb), .18) 0%, transparent 68%);
  pointer-events: none;
  filter: blur(8px);
}
.ms-track-hero__inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.ms-track-hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.ms-track-hero__avatar {
  width: 72px; height: 72px;
  border-radius: 22px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--ms-track-brand, #21cc87), #14a86a);
  border: 1px solid rgba(var(--ms-track-brand-rgb), .28);
  box-shadow:
    0 12px 28px rgba(var(--ms-track-brand-rgb), .28),
    0 0 0 6px rgba(var(--ms-track-brand-rgb), .12);
  overflow: hidden;
  position: relative;
  color: #fff;
}
.ms-track-hero__avatar-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 28px;
  line-height: 1;
  color: #fff;
}
.ms-track-hero__avatar-icon i {
  color: #fff !important;
  transform: rotate(-18deg);
}
.ms-track-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(var(--ms-track-brand-rgb), .10);
  border: 1px solid rgba(var(--ms-track-brand-rgb), .22);
  color: #0f172a;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 0;
}
.ms-track-hero__badge i { color: var(--ms-track-brand) !important; }
/* Beat global body:not(.dark) h1 overrides — light hero uses dark ink */
.ms-track .ms-track-hero__title,
.ms-track-hero h1.ms-track-hero__title,
body:not(.dark) .ms-track .ms-track-hero__title,
body.dark .ms-track .ms-track-hero__title,
html:not(.dark) .ms-track .ms-track-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.45rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 0 12px !important;
  letter-spacing: -.02em !important;
  color: #0f172a !important;
  text-shadow: none !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #0f172a !important;
}
.ms-track-hero__redeem {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  vertical-align: baseline;
  min-width: 5.2ch;
  color: var(--ms-track-brand, #21cc87) !important;
  -webkit-text-fill-color: var(--ms-track-brand, #21cc87) !important;
}
.ms-track-hero__redeem-text {
  display: inline;
  color: var(--ms-track-brand, #21cc87) !important;
  -webkit-text-fill-color: var(--ms-track-brand, #21cc87) !important;
  font-weight: 800;
  white-space: pre;
}
.ms-track-hero__cursor {
  display: inline-block;
  width: 2px;
  height: 0.92em;
  margin-left: 2px;
  vertical-align: -0.08em;
  background: var(--ms-track-brand, #21cc87);
  border-radius: 1px;
  animation: ms-track-cursor-blink 0.85s steps(1, end) infinite;
}
.ms-track-hero__cursor.is-paused {
  animation: none;
  opacity: 1;
}
@keyframes ms-track-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-track-hero__cursor {
    animation: none !important;
    opacity: 0 !important;
  }
}
.ms-track .ms-track-hero__sub,
.ms-track-hero .ms-track-hero__sub,
body:not(.dark) .ms-track .ms-track-hero__sub,
body.dark .ms-track .ms-track-hero__sub {
  margin: 0 auto 18px !important;
  max-width: 540px !important;
  color: #475569 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  opacity: 1 !important;
}
.ms-track-hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 22px;
}
.ms-track-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}
.ms-track-hero__pill i {
  color: var(--ms-track-brand) !important;
  font-size: 12px;
}
.ms-track-form { text-align: left; width: 100%; }
.ms-track-form__row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  flex-wrap: nowrap;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
  box-sizing: border-box;
}
.ms-track-form__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.ms-track-form__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8 !important;
  font-size: 14px;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}
.ms-track-form__input {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 0 14px 0 40px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  outline: none !important;
  box-sizing: border-box !important;
  display: block !important;
}
.ms-track-form__input::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}
.ms-track-form__input:focus {
  box-shadow: 0 0 0 3px rgba(var(--ms-track-brand-rgb), .35) !important;
}
.ms-track-form__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--ms-track-brand, #21cc87) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  transition: filter .15s ease, transform .15s ease;
}
.ms-track-form__btn:hover { filter: brightness(.95); color: #fff !important; }
.ms-track-form__btn:disabled { opacity: .75; cursor: wait; }
.ms-track-form__btn i,
.ms-track-form__btn span { color: #fff !important; }
.ms-track-form__hint {
  margin: 12px 0 0 !important;
  color: #64748b !important;
  font-size: 12.5px !important;
  text-align: center !important;
}
.ms-track-form__hint i { margin-right: 4px; color: #94a3b8 !important; }
.ms-track-btn-spin {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: ms-track-spin .7s linear infinite;
  display: inline-block;
}
@keyframes ms-track-spin { to { transform: rotate(360deg); } }

.ms-track-body { margin-top: -8px; position: relative; z-index: 1; }

.ms-track-loading { padding: 28px 0; }
.ms-track-loading__card {
  max-width: 360px; margin: 0 auto; text-align: center;
  background: var(--ms-track-card); border-radius: 18px;
  border: 1px solid var(--ms-track-line); padding: 28px 20px;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}
.ms-track-loading__card p { margin: 12px 0 0; color: var(--ms-track-muted); font-size: 14px; }
.ms-track-spinner {
  width: 36px; height: 36px; margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(var(--ms-track-brand-rgb), .18);
  border-top-color: var(--ms-track-brand);
  animation: ms-track-spin .7s linear infinite;
}

.ms-track-error {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 24px auto; max-width: 720px;
  background: #fff5f5; border: 1px solid #fecaca;
  color: #991b1b; border-radius: 16px; padding: 16px 18px;
}
.ms-track-error.d-none { display: none !important; }
.ms-track-error__icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: #fee2e2; color: #dc2626; flex-shrink: 0;
}
.ms-track-error strong { display: block; margin-bottom: 2px; }
.ms-track-error p { color: #b91c1c; font-size: 14px; }

.ms-track-result { padding-top: 24px; }
.ms-track-result.d-none { display: none !important; }

.ms-track-status {
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: space-between; align-items: center;
  background: var(--ms-track-card);
  border: 1px solid var(--ms-track-line);
  border-radius: 20px; padding: 20px 22px;
  box-shadow: 0 12px 32px rgba(15,23,42,.05);
  margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.ms-track-status::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--ms-track-brand);
}
.ms-track-status.is-ready::before { background: #16a34a; }
.ms-track-status.is-cancelled::before { background: #dc2626; }
.ms-track-status.is-partial::before { background: #d97706; }
.ms-track-status__left { display: flex; gap: 14px; align-items: flex-start; min-width: 0; flex: 1 1 260px; }
.ms-track-status__icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(var(--ms-track-brand-rgb), .12);
  color: var(--ms-track-brand); font-size: 20px;
}
.ms-track-status.is-ready .ms-track-status__icon { background: #dcfce7; color: #16a34a; }
.ms-track-status.is-cancelled .ms-track-status__icon { background: #fee2e2; color: #dc2626; }
.ms-track-status.is-partial .ms-track-status__icon { background: #fef3c7; color: #d97706; }
.ms-track-status__kicker {
  margin: 0 0 2px; font-size: 12px; font-weight: 600;
  color: var(--ms-track-muted); letter-spacing: .03em; text-transform: uppercase;
}
.ms-track-status__title { margin: 0 0 4px; font-size: 1.25rem; font-weight: 700; }
.ms-track-status__msg { margin: 0; color: var(--ms-track-muted); font-size: 14px; line-height: 1.45; }
.ms-track-status__right { flex: 0 0 auto; }
.ms-track-progress { display: flex; align-items: center; gap: 12px; }
.ms-track-progress__ring { position: relative; width: 72px; height: 72px; }
.ms-track-progress__ring svg { transform: rotate(-90deg); display: block; }
.ms-track-progress__bg {
  fill: none; stroke: #eef2f7; stroke-width: 6;
}
.ms-track-progress__fg {
  fill: none; stroke: var(--ms-track-brand); stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 188.4;
  stroke-dashoffset: 188.4;
  transition: stroke-dashoffset .5s ease;
}
.ms-track-status.is-ready .ms-track-progress__fg { stroke: #16a34a; }
.ms-track-status.is-cancelled .ms-track-progress__fg { stroke: #dc2626; }
.ms-track-progress__val {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--ms-track-ink);
}
.ms-track-progress__label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ms-track-muted);
}
.ms-track-progress__eta { display: block; font-size: 13px; font-weight: 600; color: var(--ms-track-ink); max-width: 140px; }

.ms-track-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px;
}
@media (max-width: 991px) {
  .ms-track-grid { grid-template-columns: 1fr; }
}
.ms-track-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.ms-track-card {
  background: var(--ms-track-card);
  border: 1px solid var(--ms-track-line);
  border-radius: 18px; padding: 18px 18px 16px;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.ms-track-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.ms-track-card__title {
  margin: 0; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.ms-track-card__title i { color: var(--ms-track-brand); font-size: 14px; }
.ms-track-card__count {
  font-size: 12px; font-weight: 600; color: var(--ms-track-muted);
  background: var(--ms-track-soft); border-radius: 999px; padding: 4px 10px;
}

/* Timeline */
.ms-track-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.ms-track-timeline__item {
  position: relative; display: grid; grid-template-columns: 22px 1fr;
  gap: 12px; padding-bottom: 18px;
}
.ms-track-timeline__item:last-child { padding-bottom: 0; }
.ms-track-timeline__item:not(:last-child)::before {
  content: ""; position: absolute; left: 10px; top: 22px; bottom: 0;
  width: 2px; background: #e5eaf1;
}
.ms-track-timeline__item.is-done:not(:last-child)::before {
  background: rgba(var(--ms-track-brand-rgb), .45);
}
.ms-track-timeline__dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #d5dbe5; background: #fff;
  box-shadow: 0 0 0 4px #fff;
  position: relative; z-index: 1;
}
.ms-track-timeline__item.is-done .ms-track-timeline__dot {
  border-color: var(--ms-track-brand);
  background: var(--ms-track-brand);
  box-shadow: 0 0 0 4px rgba(var(--ms-track-brand-rgb), .15);
}
.ms-track-timeline__item.is-done .ms-track-timeline__dot::after {
  content: ""; position: absolute; left: 6px; top: 3px;
  width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ms-track-timeline__item.is-current .ms-track-timeline__dot {
  border-color: var(--ms-track-brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--ms-track-brand-rgb), .18);
}
.ms-track-timeline__item.is-current .ms-track-timeline__dot::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: var(--ms-track-brand);
}
.ms-track-timeline__item.is-cancelled .ms-track-timeline__dot {
  border-color: #fca5a5; background: #fee2e2;
}
.ms-track-timeline__content strong {
  display: block; font-size: 14px; font-weight: 700; color: var(--ms-track-ink);
}
.ms-track-timeline__row {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline;
  justify-content: space-between;
}
.ms-track-timeline__row time {
  font-size: 12px; color: var(--ms-track-muted); font-weight: 500;
}
.ms-track-timeline__content p {
  margin: 3px 0 0; font-size: 13px; color: var(--ms-track-muted); line-height: 1.45;
}
.ms-track-timeline__item.is-upcoming .ms-track-timeline__content strong,
.ms-track-timeline__item.is-upcoming .ms-track-timeline__content p {
  color: #94a3b8;
}

/* Meta */
.ms-track-meta__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 0;
}
.ms-track-meta__grid dt {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ms-track-muted); margin-bottom: 3px;
}
.ms-track-meta__grid dd {
  margin: 0; font-size: 14px; font-weight: 600; color: var(--ms-track-ink);
  word-break: break-word;
}

/* Products */
.ms-track-products { display: flex; flex-direction: column; gap: 12px; }
.ms-track-product {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px;
  padding: 12px; border-radius: 14px;
  background: var(--ms-track-soft);
  border: 1px solid #eef2f6;
}
.ms-track-product__img {
  width: 72px; height: 72px; border-radius: 12px; object-fit: cover;
  background: #e8edf3; display: block;
}
.ms-track-product__img--ph {
  display: grid; place-items: center; color: #94a3b8; font-size: 22px;
}
.ms-track-product__top {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start;
  justify-content: space-between;
}
.ms-track-product__name {
  font-size: 14px; font-weight: 700; color: var(--ms-track-ink);
  text-decoration: none; line-height: 1.35;
}
a.ms-track-product__name:hover { color: var(--ms-track-brand); }
.ms-track-product__variant {
  margin: 4px 0 0; font-size: 12px; color: var(--ms-track-muted);
}
.ms-track-product__attrs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.ms-track-attr {
  font-size: 11px; color: #475569;
  background: #fff; border: 1px solid #e5eaf1;
  border-radius: 999px; padding: 3px 8px;
}
.ms-track-attr em { font-style: normal; font-weight: 700; color: #94a3b8; margin-right: 3px; }
.ms-track-product__action { margin-top: 10px; }
.ms-track-download {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: 10px;
  background: var(--ms-track-brand); color: #fff !important;
  font-size: 13px; font-weight: 700; text-decoration: none !important;
  transition: filter .15s ease;
}
.ms-track-download:hover { filter: brightness(.95); color: #fff !important; }
.ms-track-item-msg {
  font-size: 12.5px; color: #475569; line-height: 1.45;
  background: #fff; border: 1px dashed #dbe3ec;
  border-radius: 10px; padding: 8px 10px;
}
.ms-track-product.is-ready { border-color: rgba(22,163,74,.25); background: #f0fdf4; }
.ms-track-product.is-cancelled { opacity: .85; }

.ms-track-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; border-radius: 999px;
  padding: 4px 9px; white-space: nowrap;
}
.ms-track-pill.is-ready { background: #dcfce7; color: #15803d; }
.ms-track-pill.is-pending { background: #fef3c7; color: #b45309; }
.ms-track-pill.is-missing { background: #e2e8f0; color: #475569; }
.ms-track-pill.is-cancelled { background: #fee2e2; color: #b91c1c; }
.ms-track-pill.is-platform {
  background: rgba(var(--ms-track-brand-rgb), .12);
  color: var(--ms-track-brand);
}

/* Stay updated */
.ms-track-stay {
  display: flex; gap: 14px; align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(var(--ms-track-brand-rgb), .08), transparent 55%),
    #fff;
}
.ms-track-stay__icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(var(--ms-track-brand-rgb), .14);
  color: var(--ms-track-brand); font-size: 18px;
}
.ms-track-stay__text {
  margin: 0 0 12px; font-size: 13.5px; color: var(--ms-track-muted); line-height: 1.5;
}
.ms-track-stay__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ms-track-stay__btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1px solid #e5eaf1; background: #fff;
  color: var(--ms-track-ink) !important; font-size: 13px; font-weight: 600;
  text-decoration: none !important;
}
.ms-track-stay__btn:hover { border-color: #cbd5e1; color: var(--ms-track-ink) !important; }
.ms-track-stay__btn--primary {
  background: var(--ms-track-brand); border-color: var(--ms-track-brand);
  color: #fff !important;
}
.ms-track-stay__btn--primary:hover { filter: brightness(.95); color: #fff !important; }
.ms-track-stay__email {
  margin: 0; font-size: 12px; color: var(--ms-track-muted);
}
.ms-track-stay__email a { color: var(--ms-track-brand); font-weight: 600; text-decoration: none; }

/* Tips */
.ms-track-tips { padding: 28px 0 8px; }
.ms-track-tips.d-none { display: none !important; }
.ms-track-tips__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 767px) {
  .ms-track-tips__grid { grid-template-columns: 1fr; }
  .ms-track-hero { padding: 28px 0 24px; }
  .ms-track-hero__inner { padding: 0 4px; }
  .ms-track-hero__avatar { width: 64px; height: 64px; border-radius: 18px; }
  .ms-track-hero__avatar-icon { font-size: 24px; }
  .ms-track-hero__pills { gap: 6px; margin-bottom: 18px; }
  .ms-track-hero__pill { font-size: 11.5px; padding: 5px 10px; }
  .ms-track-form__row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding: 10px !important;
    background: rgba(255,255,255,.10) !important;
  }
  .ms-track-form__field {
    width: 100% !important;
    flex: 0 0 auto !important;
  }
  .ms-track-form__btn {
    width: 100% !important;
    flex: 0 0 auto !important;
  }
  .ms-track-status { padding: 16px; }
  .ms-track-meta__grid { grid-template-columns: 1fr 1fr; }
  .ms-track-product { grid-template-columns: 60px 1fr; }
  .ms-track-product__img { width: 60px; height: 60px; }
}
.ms-track-tip {
  background: #fff; border: 1px solid var(--ms-track-line);
  border-radius: 16px; padding: 18px 16px;
  box-shadow: 0 6px 18px rgba(15,23,42,.03);
}
.ms-track-tip__icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 12px;
  background: rgba(var(--ms-track-brand-rgb), .12);
  color: var(--ms-track-brand); font-size: 16px;
}
.ms-track-tip h3 {
  margin: 0 0 6px; font-size: 14px; font-weight: 700;
}
.ms-track-tip p {
  margin: 0; font-size: 13px; color: var(--ms-track-muted); line-height: 1.5;
}
.ms-track-empty { margin: 0; color: var(--ms-track-muted); font-size: 14px; }

/* Dark mode soft adjustments */
html.dark .ms-track,
html[data-theme="dark"] .ms-track {
  --ms-track-ink: #f1f5f9;
  --ms-track-muted: #94a3b8;
  --ms-track-line: rgba(255,255,255,.08);
  --ms-track-card: #161b22;
  --ms-track-soft: #1c222b;
  background: #0b0f14;
}
html.dark .ms-track-form__input,
html[data-theme="dark"] .ms-track-form__input {
  background: #0f141a; color: #f1f5f9;
}
html.dark .ms-track-product,
html[data-theme="dark"] .ms-track-product {
  background: #1c222b; border-color: rgba(255,255,255,.06);
}
html.dark .ms-track-item-msg,
html[data-theme="dark"] .ms-track-item-msg,
html.dark .ms-track-attr,
html[data-theme="dark"] .ms-track-attr,
html.dark .ms-track-stay__btn,
html[data-theme="dark"] .ms-track-stay__btn,
html.dark .ms-track-tip,
html[data-theme="dark"] .ms-track-tip {
  background: #12171e; border-color: rgba(255,255,255,.08); color: #cbd5e1;
}
html.dark .ms-track-progress__bg,
html[data-theme="dark"] .ms-track-progress__bg { stroke: rgba(255,255,255,.08); }

/* ===== Running Text Marquee (under header) ===== */
.ms-marquee-bar {
  --ms-mq-speed: 25s;
  --ms-mq-bg: color-mix(in srgb, var(--ms-brand, #21cc87) 10%, #ffffff);
  --ms-mq-border: color-mix(in srgb, var(--ms-brand, #21cc87) 22%, transparent);
  --ms-mq-text: color-mix(in srgb, var(--ms-brand, #21cc87) 55%, #0f172a);
  --ms-mq-dot: color-mix(in srgb, var(--ms-brand, #21cc87) 35%, #cbd5e1);
  --ms-mq-icon: #f59e0b;
  --ms-mq-badge-bg: #ffffff;
  --ms-mq-badge-border: color-mix(in srgb, var(--ms-brand, #21cc87) 28%, #e2e8f0);
  --ms-mq-badge-text: var(--ms-brand, #21cc87);
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--ms-brand, #21cc87) 8%, #f0fdf8) 0%,
    color-mix(in srgb, var(--ms-brand, #21cc87) 12%, #ecfdf5) 50%,
    color-mix(in srgb, var(--ms-brand, #21cc87) 8%, #f0fdf8) 100%
  );
  border-bottom: 1px solid var(--ms-mq-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  z-index: 40;
  cursor: default;
  user-select: none;
}
.ms-marquee-bar.is-clickable {
  cursor: pointer;
}
body.dark .ms-marquee-bar,
html.dark .ms-marquee-bar {
  --ms-mq-text: color-mix(in srgb, var(--ms-brand, #21cc87) 45%, #e2e8f0);
  --ms-mq-dot: color-mix(in srgb, var(--ms-brand, #21cc87) 30%, #475569);
  --ms-mq-badge-bg: rgba(15, 23, 42, 0.75);
  --ms-mq-badge-border: color-mix(in srgb, var(--ms-brand, #21cc87) 35%, transparent);
  --ms-mq-badge-text: color-mix(in srgb, var(--ms-brand, #21cc87) 70%, #ffffff);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--ms-brand, #21cc87) 12%, #0b1220) 0%,
    color-mix(in srgb, var(--ms-brand, #21cc87) 16%, #0f172a) 50%,
    color-mix(in srgb, var(--ms-brand, #21cc87) 12%, #0b1220) 100%
  );
  border-bottom-color: color-mix(in srgb, var(--ms-brand, #21cc87) 22%, rgba(255,255,255,.06));
  box-shadow: none;
}
.ms-marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
.ms-marquee-fade--left {
  left: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ms-brand, #21cc87) 8%, #f0fdf8) 0%, transparent 100%);
}
.ms-marquee-fade--right {
  right: 0;
  background: linear-gradient(270deg, color-mix(in srgb, var(--ms-brand, #21cc87) 8%, #f0fdf8) 0%, transparent 100%);
}
body.dark .ms-marquee-fade--left,
html.dark .ms-marquee-fade--left {
  background: linear-gradient(90deg, color-mix(in srgb, var(--ms-brand, #21cc87) 12%, #0b1220) 0%, transparent 100%);
}
body.dark .ms-marquee-fade--right,
html.dark .ms-marquee-fade--right {
  background: linear-gradient(270deg, color-mix(in srgb, var(--ms-brand, #21cc87) 12%, #0b1220) 0%, transparent 100%);
}
@media (min-width: 640px) {
  .ms-marquee-fade { width: 72px; }
}
.ms-marquee-track {
  display: flex;
  width: max-content;
  animation: ms-marquee-scroll var(--ms-mq-speed) linear infinite;
  will-change: transform;
}
.ms-marquee-bar.is-pauseable:hover .ms-marquee-track {
  animation-play-state: paused;
}
@keyframes ms-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ms-marquee-set {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.ms-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ms-mq-text);
  line-height: 1.35;
}
.ms-marquee-icon {
  color: var(--ms-mq-icon);
  font-size: 12px;
  flex-shrink: 0;
}
.ms-marquee-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.ms-marquee-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--ms-mq-badge-bg);
  border: 1px solid var(--ms-mq-badge-border);
  color: var(--ms-mq-badge-text);
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  line-height: 1.4;
}
.ms-marquee-dot {
  color: var(--ms-mq-dot);
  font-size: 10px;
  padding: 0 4px;
  opacity: 0.9;
}
/* Prefer-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .ms-marquee-track {
    animation: none;
    transform: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .ms-marquee-set:last-child { display: none; }
  .ms-marquee-set {
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* Mobile browse sticky chrome: keep marquee under mobile header strip */
@media (max-width: 767px) {
  body.ms-browse-page .ms-marquee-bar {
    position: sticky;
    top: 0;
    z-index: 45;
  }
  .ms-marquee-item {
    font-size: 12px;
    padding: 0 16px;
  }
  .ms-marquee-bar {
    padding: 9px 0;
  }
}

/* Marquee polish: stronger edge fades so text never looks broken */
.ms-marquee-fade { width: 56px; }
@media (min-width: 640px) {
  .ms-marquee-fade { width: 88px; }
}
.ms-marquee-item { padding: 0 28px; }
@media (max-width: 767px) {
  .ms-marquee-item { padding: 0 20px; font-size: 12px; }
  .ms-marquee-fade { width: 40px; }
  body.ms-browse-page .scroll-top,
  body:has(.ms-mobile-bottom-nav) .scroll-top {
    right: 14px !important;
    bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    z-index: 1050 !important;
  }
}

/* r7 marquee mobile edge — stronger fades + no clipped text */
@media (max-width: 767px) {
  .ms-marquee-bar {
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
  }
  .ms-marquee-fade {
    width: 56px !important;
    z-index: 2;
  }
  .ms-marquee-item {
    padding: 0 18px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }
  .ms-marquee-track {
    will-change: transform;
  }
}


/* ===== r8 (2026-08-06): marquee <-> search breathing room ===== */
/* Issue: running text sat flush against the search bar below it. */
.ms-marquee-bar {
  padding: 11px 0 12px;
  margin-bottom: 0;
}
/* Home hero: search sits under the marquee band */
.hero .search-bar {
  margin-top: 10px;
}
@media (max-width: 767px) {
  .ms-marquee-bar {
    padding: 10px 0 11px;
  }
  /* Browse mobile: marquee + mobile header were both sticky at top:0 and
     visually collided with the search field. Let the marquee scroll away
     and keep only the mobile header sticky. */
  body.ms-browse-page .ms-marquee-bar {
    position: static;
    margin-bottom: 8px;
  }
  body.ms-browse-page .ms-browse-mobile {
    padding-top: 2px;
  }
  body.ms-browse-page .ms-browse-mobile__search {
    margin-top: 6px !important;
    margin-bottom: 14px !important;
  }
  .hero .search-bar {
    margin-top: 14px;
  }
}

/* ===== r9 (2026-08-06): kill white glow on marquee left/right =====
   Cause: the bar background was a horizontal gradient whose END stops are
   near-white mint (#f0fdf8 / 8% brand) while the middle is greener
   (#ecfdf5 / 12% brand), AND two 56px near-white .ms-marquee-fade overlays
   sat on top of those same ends. On a ~400px screen that washed 112px of the
   band to white -> "kiri kanan ada putih glow".
   Fix: one flat tint for the whole band + fades that dissolve into that exact
   same tint (so they are invisible, they only soften the scrolling text). */
.ms-marquee-bar {
  --ms-mq-flat: color-mix(in srgb, var(--ms-brand, #21cc87) 11%, #ffffff);
  background: var(--ms-mq-flat) !important;
}
.ms-marquee-fade--left {
  background: linear-gradient(90deg, var(--ms-mq-flat) 0%, transparent 100%) !important;
}
.ms-marquee-fade--right {
  background: linear-gradient(270deg, var(--ms-mq-flat) 0%, transparent 100%) !important;
}
body.dark .ms-marquee-bar,
html.dark .ms-marquee-bar {
  --ms-mq-flat: color-mix(in srgb, var(--ms-brand, #21cc87) 14%, #0b1220);
  background: var(--ms-mq-flat) !important;
}
/* Fallback for engines without color-mix */
@supports not (background: color-mix(in srgb, red, white)) {
  .ms-marquee-bar { --ms-mq-flat: #eafaf2; }
  body.dark .ms-marquee-bar,
  html.dark .ms-marquee-bar { --ms-mq-flat: #16241f; }
}
/* Narrower fades so less of the text is dimmed on phones */
@media (max-width: 767px) {
  .ms-marquee-fade { width: 32px !important; }
}
