/* ==========================================================
   Affly Theme — "Boutique Catalog" Modern Minimal
   Stone canvas, ink text, moss-green accent, golden-ochre
   price tags. Flat hairline borders, restrained shadows.
   ========================================================== */

:root {
  --mx-sidebar-bg: #21231f;
  --mx-sidebar-text: #ece9df;
  --mx-sidebar-text-muted: #a3a196;
  --mx-canvas-bg: #f4f3ee;
  --mx-card-bg: #ffffff;
  --mx-accent: #3f6b4a;
  --mx-accent-dark: #2e5038;
  --mx-accent-light: #e7eee7;
  --mx-price: #b8862e;
  --mx-price-light: #fbf2e1;
  --mx-border: #e4e1d8;
  --mx-text: #21231f;
  --mx-text-muted: #6b6a62;
  --mx-success: #3f6b4a;
  --mx-warning: #b8862e;
  --mx-danger: #b23b3b;
  --mx-radius: 10px;
  --mx-shadow: 0 2px 14px rgba(33, 35, 31, 0.06);
  --mx-font-display: 'Exo 2', sans-serif;
  --mx-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4,
.mx-display,
.mx-logo,
.mx-sidebar .mx-brand {
  font-family: var(--mx-font-display);
  letter-spacing: -0.01em;
}

/* Hide scrollbars site-wide (scrolling still works, just no visible bar) */
* {
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE / legacy Edge */
}
*::-webkit-scrollbar {         /* Chrome, Safari, new Edge, Opera */
  display: none;
  width: 0;
  height: 0;
}

/* Skeleton preloader blocks */
.mx-skeleton-block {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, #e9ebf0 25%, #dfe2e9 37%, #e9ebf0 63%);
  background-size: 400% 100%;
  animation: mx-shimmer 1.4s ease infinite;
}
@keyframes mx-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.mx-fade-in { animation: mx-fadein .4s ease; }
@keyframes mx-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Simple icon loader shown while a dashboard/admin page's content loads (see _layout_top.php) */
.mx-page-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  color: var(--mx-accent);
}
.mx-page-loader i { font-size: 32px; }
.mx-page-loader .mx-loader-text { font-weight: 700; font-size: 14px; }

/* Site-wide page preloader overlay (see includes/preloader.php) */
#mxPagePreloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--mx-canvas-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility .35s ease;
}
#mxPagePreloader.mx-preloader-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.mx-preloader-inner {
  width: 100%;
  max-width: 380px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.mx-preloader-inner i {
  font-size: 40px;
  color: var(--mx-accent);
}
.mx-preloader-text {
  font-weight: 700;
  color: var(--mx-accent);
  font-size: 15px;
  text-align: center;
}

body {
  background: var(--mx-canvas-bg);
  color: var(--mx-text);
  font-family: var(--mx-font-body);
}

.mx-card {
  background: var(--mx-card-bg);
  border-radius: var(--mx-radius);
  box-shadow: var(--mx-shadow);
  border: 1px solid var(--mx-border);
}

.mx-btn-primary {
  background: var(--mx-accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: background .15s ease;
}
.mx-btn-primary:hover { background: var(--mx-accent-dark); }
.mx-btn-primary:disabled { opacity: .55; cursor: not-allowed; }

.mx-btn-secondary {
  background: #fff;
  color: var(--mx-text);
  border: 1px solid var(--mx-border);
  border-radius: 8px;
  font-weight: 600;
}
.mx-btn-secondary:hover { background: var(--mx-canvas-bg); }

/* Price ticket — used wherever a product price is shown */
.mx-price-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--mx-price);
  background: var(--mx-price-light);
  padding: 3px 9px 3px 8px;
  border-radius: 4px;
}
.mx-price-tag::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--mx-price);
  flex-shrink: 0;
}

.mx-sidebar {
  background: var(--mx-sidebar-bg);
  color: var(--mx-sidebar-text);
}

.mx-sidebar-link {
  color: var(--mx-sidebar-text-muted);
  border-radius: 8px;
  transition: all .15s ease;
}
.mx-sidebar-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.mx-sidebar-link.active {
  color: #fff;
  background: var(--mx-accent);
  font-weight: 600;
  border-radius: 8px;
}

.mx-input {
  width: 100%;
  border: 1px solid var(--mx-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mx-input:focus {
  border-color: var(--mx-accent);
  box-shadow: 0 0 0 3px var(--mx-accent-light);
}

.mx-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mx-text-muted);
  margin-bottom: 6px;
  display: block;
}

.mx-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.mx-badge-success { background: #e7f8ee; color: var(--mx-success); }
.mx-badge-warning { background: #fdf3e0; color: var(--mx-warning); }
.mx-badge-danger  { background: #fce9ec; color: var(--mx-danger); }
.mx-badge-accent  { background: var(--mx-accent-light); color: var(--mx-accent); }

/* ---------------------------------------------------------------
 * Toast notifications (flash messages: "Product updated.", errors, etc.)
 * Slides in from the left edge of the screen, sits for a few seconds,
 * then slides back out and removes itself. Triggered by mxShowToast()
 * in assets/js/ui.js.
 * ------------------------------------------------------------- */
.mx-toast-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.mx-toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 17, 25, .15);
  font-size: 13px;
  font-weight: 600;
  transform: translateX(130%);
  transition: transform .35s cubic-bezier(.34, 1.4, .64, 1);
  pointer-events: auto;
  max-width: min(90vw, 360px);
}
.mx-toast.mx-toast-show { transform: translateX(0); }
.mx-toast-success { color: var(--mx-success); }
.mx-toast-error { color: var(--mx-danger); }
.mx-toast i { font-size: 16px; flex-shrink: 0; }

.mx-badge-trending {
  cursor: pointer;
  justify-content: center;
}
.mx-badge-trending i { font-size: 14px; } /* matches the wishlist heart icon size, so both end up the same circle size */
/* Trending badge: on mobile, show the full "Trending" text briefly on load,
   then collapse down to a clean circle (matching the wishlist heart button
   size/shape) with just the icon, to save space on small cards. Desktop
   always keeps the text. Tapping the icon again re-shows the text for 2.5s
   (see the JS click handler that restarts this animation). */
@media (max-width: 767px) {
  .mx-badge-trending {
    animation: mxCollapseBadgePad 0.4s ease 2.5s forwards;
  }
  .mx-badge-trending .mx-badge-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    max-width: 70px;
    opacity: 1;
    animation: mxCollapseBadgeText 0.4s ease 2.5s forwards;
  }
}
@keyframes mxCollapseBadgePad {
  to { padding: 8px; gap: 0; }
}
@keyframes mxCollapseBadgeText {
  to { max-width: 0; opacity: 0; }
}

/* ==========================================================
   Product card image gallery (auto-rotating, no manual scroll)
   ========================================================== */
.mx-gallery { position: relative; width: 100%; height: 100%; }
.mx-gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: zoom-in;
  pointer-events: none; /* hidden images must not intercept clicks */
}
.mx-gallery-img.active { opacity: 1; pointer-events: auto; }
.mx-zoomable { cursor: zoom-in; }

/* ==========================================================
   Lightbox popup shown when a product image is clicked
   ========================================================== */
.mx-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, .82);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mx-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.mx-lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #111;
}
.mx-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #111;
}
.mx-lightbox-nav:hover { background: #fff; }
.mx-lightbox-prev { left: 14px; }
.mx-lightbox-next { right: 14px; }
.mx-lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ==========================================================
   Surface & elevation (flat, hairline-border minimal)
   Plain stone canvas behind every page; cards sit on top with
   a thin border and only the faintest shadow.
   ========================================================== */
html, body { min-height: 100%; }
body {
  position: relative;
  color: var(--mx-text);
}

.mx-glass-bar {
  background: var(--mx-card-bg);
  border-color: var(--mx-border);
  /* Elevated above normal page content so absolutely-positioned dropdowns
     inside the topbar (notifications, profile menu) sit above content
     that appears later in the DOM (e.g. dashboard stat cards).
     Deliberately does NOT set `position` here: several headers combine
     this class with Tailwind's `sticky` utility, and a plain CSS class
     setting position:relative can win the cascade over that utility
     depending on stylesheet load order, silently breaking the sticky
     header. Callers that aren't already positioned (admin/seller topbars)
     add `position: relative` themselves inline instead. */
  z-index: 100;
}

.mx-input {
  background: #ffffff;
  color: var(--mx-text);
}

.mx-icon-btn {
  width: 32px; height: 32px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  color: var(--mx-text-muted);
  flex-shrink: 0;
  transition: background .15s ease;
}
.mx-icon-btn:hover { background: rgba(0, 0, 0, 0.1); }

/* Share modal */
.mx-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 8, 14, 0.55);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 16px;
}
.mx-modal-backdrop.mx-open { display: flex; }
.mx-modal {
  background: #ffffff;
  border: 1px solid var(--mx-border);
  border-radius: 18px;
  box-shadow: var(--mx-shadow);
  width: 100%; max-width: 360px;
  padding: 20px;
}
.mx-share-option {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  color: var(--mx-text);
  transition: background .15s ease;
}
.mx-share-option:hover { background: var(--mx-accent-light); }
.mx-share-icon {
  width: 34px; height: 34px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; flex-shrink: 0;
}

/* ==========================================================
   Site-wide accessibility polish (additive only)
   Every existing page that already uses these shared classes
   picks up a visible keyboard-focus ring and a pressed state
   without any change to size, color or layout.
   ========================================================== */
.mx-btn-primary:focus-visible,
.mx-btn-secondary:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--mx-accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.mx-btn-primary:active { background: var(--mx-accent-dark); }
.mx-btn-secondary:active { background: #eef0f4; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================
   Topbar: search field, notification bell, profile menu
   ========================================================== */
.mx-topbar-search {
  position: relative;
  width: 100%;
  max-width: 340px;
}
.mx-topbar-search input {
  width: 100%;
  border: 1px solid var(--mx-border);
  background: var(--mx-canvas-bg);
  border-radius: 10px;
  padding: 9px 12px 9px 36px;
  font-size: 13px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mx-topbar-search input:focus {
  border-color: var(--mx-accent);
  box-shadow: 0 0 0 3px var(--mx-accent-light);
  background: #fff;
}
.mx-topbar-search i.mx-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--mx-text-muted); font-size: 13px; pointer-events: none;
}
.mx-kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 10px; font-weight: 700; color: var(--mx-text-muted);
  background: #fff; border: 1px solid var(--mx-border); border-radius: 5px;
  padding: 2px 5px; pointer-events: none;
}

.mx-dropdown-wrap { position: relative; }
.mx-dropdown-panel {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 10px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--mx-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(20,17,25,.14);
  z-index: 200;
  overflow: hidden;
  padding: 6px;
}
.mx-dropdown-panel.mx-open { display: block; }
.mx-dropdown-panel.mx-wide { min-width: 300px; }
.mx-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--mx-text);
  transition: background .15s ease; width: 100%; text-align: left;
}
.mx-dropdown-item:hover { background: var(--mx-canvas-bg); }
.mx-dropdown-item i { width: 16px; text-align: center; color: var(--mx-text-muted); flex-shrink: 0; }
.mx-dropdown-header {
  font-size: 12px; font-weight: 700; color: var(--mx-text-muted);
  padding: 8px 10px 4px;
}
.mx-dropdown-divider { border-top: 1px solid var(--mx-border); margin: 4px 0; }
.mx-notif-empty { padding: 18px 10px; text-align: center; font-size: 12.5px; color: var(--mx-text-muted); }

/* Searchable, select-only category picker (no free text can be submitted) */
.mx-cat-picker { position: relative; }
.mx-cat-panel {
  display: none;
  position: absolute;
  left: 0; right: 0; top: calc(100% + 6px);
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--mx-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(20,17,25,.14);
  z-index: 200;
  padding: 6px;
}
.mx-cat-panel.mx-open { display: block; }
.mx-cat-item {
  display: block; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--mx-text);
  background: none; border: 0; cursor: pointer;
  transition: background .15s ease;
}
.mx-cat-item:hover, .mx-cat-item.mx-active { background: var(--mx-canvas-bg); }
.mx-cat-empty { padding: 10px; text-align: center; font-size: 12.5px; color: var(--mx-text-muted); }

/* Seller "Add/Edit Product" live preview card — mirrors .product-card-wrap /
   .mx-buy-btn from store/index.php so the preview matches the public store. */
#previewCard .product-card-wrap { border-radius: 18px; padding: 12px; }
#previewCard .product-card-wrap .mx-buy-btn {
  display: block;
  border: 1.5px solid var(--mx-accent) !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  background: color-mix(in srgb, var(--mx-accent) 12%, white) !important;
  color: var(--mx-accent) !important;
  font-weight: 600;
}

.mx-notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--mx-danger);
  border: 2px solid #fff;
}
.mx-notif-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: var(--mx-danger);
  color: #fff; font-size: 10px; font-weight: 700;
  line-height: 16px; text-align: center;
  border: 2px solid #fff;
}
.mx-notif-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 4px;
}
.mx-notif-panel-title { font-size: 12px; font-weight: 700; color: var(--mx-text-muted); }
.mx-notif-mark-all {
  font-size: 11px; font-weight: 700; color: var(--mx-accent);
  background: none; border: 0; cursor: pointer; padding: 2px 4px;
}
.mx-notif-mark-all:hover { text-decoration: underline; }
.mx-notif-list { max-height: 340px; overflow-y: auto; }
.mx-notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px; border-radius: 8px;
  position: relative; transition: background .15s ease;
}
.mx-notif-item:hover { background: var(--mx-canvas-bg); }
.mx-notif-item i { width: 16px; text-align: center; margin-top: 2px; flex-shrink: 0; }
.mx-notif-item.mx-notif-unread { background: var(--mx-accent-light); }
.mx-notif-item.mx-notif-unread:hover { background: color-mix(in srgb, var(--mx-accent-light) 80%, var(--mx-canvas-bg)); }
.mx-notif-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.mx-notif-title { font-size: 12.5px; font-weight: 700; color: var(--mx-text); }
.mx-notif-msg { font-size: 12px; color: var(--mx-text-muted); line-height: 1.4; }
.mx-notif-time { font-size: 10.5px; color: var(--mx-text-muted); margin-top: 2px; }
.mx-notif-unread-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--mx-accent); flex-shrink: 0; margin-top: 5px;
}
.mx-notif-view-all { justify-content: center; color: var(--mx-accent); font-size: 12.5px; }
.mx-notif-view-all i { color: var(--mx-accent); }
.mx-profile-btn {
  display: flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 3px 8px 3px 3px;
  transition: background .15s ease;
}
.mx-profile-btn:hover { background: var(--mx-canvas-bg); }

/* Stat card icon badges */
.mx-stat-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  overflow: hidden; /* keep the icon glyph from touching/overflowing the badge edge on smaller size variants */
}
.mx-stat-icon i { line-height: 1; }
.mx-trend {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 700;
}
.mx-trend-up { color: var(--mx-success); }
.mx-trend-down { color: var(--mx-danger); }
.mx-trend-flat { color: var(--mx-text-muted); }
.mx-stat-arrow {
  width: 26px; height: 26px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mx-canvas-bg); color: var(--mx-text-muted); font-size: 11px;
  transition: background .15s ease, color .15s ease;
}
.mx-card:hover .mx-stat-arrow { background: var(--mx-accent-light); color: var(--mx-accent); }

/* Sidebar "Upgrade to Pro" widget */
.mx-sidebar-upgrade {
  background: linear-gradient(155deg, #2e5038 0%, #3f6b4a 55%, #56916a 100%);
  border-radius: 14px;
  padding: 16px 16px 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.mx-sidebar-upgrade::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(255,255,255,0.14), transparent 55%);
  pointer-events: none;
}
.mx-sidebar-upgrade .mx-crown {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--mx-price); font-size: 15px; margin-bottom: 10px;
}
.mx-sidebar-upgrade p.mx-su-title { font-size: 13.5px; font-weight: 800; margin-bottom: 3px; }
.mx-sidebar-upgrade p.mx-su-sub { font-size: 11.5px; color: rgba(255,255,255,0.78); line-height: 1.35; margin-bottom: 12px; }
.mx-sidebar-upgrade a.mx-su-btn {
  display: block; text-align: center;
  background: #fff; color: var(--mx-accent-dark);
  font-size: 12.5px; font-weight: 800;
  border-radius: 8px; padding: 8px;
  transition: opacity .15s ease;
}
.mx-sidebar-upgrade a.mx-su-btn:hover { opacity: .9; }

/* Storefront share icon buttons */
.mx-share-mini {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px; border-radius: 10px; flex: 1;
  transition: background .15s ease;
}
.mx-share-mini:hover { background: var(--mx-canvas-bg); }
.mx-share-mini .mx-share-mini-icon {
  width: 38px; height: 38px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
}
.mx-share-mini span { font-size: 11px; font-weight: 700; color: var(--mx-text); }

/* Empty state illustration */
.mx-empty-illustration {
  width: 76px; height: 76px; border-radius: 999px;
  background: var(--mx-accent-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--mx-accent); font-size: 28px;
  margin: 0 auto 14px;
}
/* Public-facing rendering of admin-managed page content (About, Contact,
   Terms, Privacy, Refund — see /includes/db.php get_page()). Scopes plain
   HTML from the admin rich-text editor to the site's look. */
.mx-page-content { color: var(--mx-text); font-size: 14px; line-height: 1.7; }
.mx-page-content section { margin-bottom: 28px; }
.mx-page-content section:last-child { margin-bottom: 0; }
.mx-page-content h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--mx-text); }
.mx-page-content h3 { font-size: 15px; font-weight: 700; margin: 16px 0 6px; color: var(--mx-text); }
.mx-page-content p { margin-bottom: 10px; color: var(--mx-text-muted); }
.mx-page-content p:last-child { margin-bottom: 0; }
.mx-page-content ul, .mx-page-content ol { margin: 8px 0 10px 20px; color: var(--mx-text-muted); }
.mx-page-content ul { list-style: disc; }
.mx-page-content ol { list-style: decimal; }
.mx-page-content li { margin-bottom: 4px; }
.mx-page-content a { color: var(--mx-accent); font-weight: 600; text-decoration: none; }
.mx-page-content a:hover { text-decoration: underline; }
.mx-page-content strong { color: var(--mx-text); }

/* Homepage stats bar (Active Creators / Products Listed / Clicks Delivered /
   Avg. Creator Rating) — dividers that correctly match the grid's actual
   column count at each breakpoint (2 cols on mobile, 4 on desktop), instead
   of always assuming 4 columns. */
.mx-stat-divider { border-left: 0; border-top: 0; }
@media (max-width: 767px) {
  .mx-stat-divider:nth-child(even) { border-left: 1px solid var(--mx-border); }
  .mx-stat-divider:nth-child(n+3) { border-top: 1px solid var(--mx-border); }
}
@media (min-width: 768px) {
  .mx-stat-divider:not(:first-child) { border-left: 1px solid var(--mx-border); }
}
