/* MarketPlus.az by Zenix — Premium marketplace */
:root {
  --mp-blue: #0A84FF;
  --mp-blue-dark: #0066d6;
  --mp-blue-soft: #e8f3ff;
  --mp-orange: #FF6A00;
  --mp-orange-soft: #fff0e6;
  --mp-red: #e53935;
  --mp-green: #12b76a;
  --mp-dark: #1E1E1E;
  --mp-muted: #6b7280;
  --mp-border: #e5e7eb;
  --mp-bg: #F5F7FA;
  --mp-card: #FFFFFF;
  --mp-radius: 16px;
  --mp-radius-sm: 12px;
  --mp-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --mp-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --mp-font: Inter, system-ui, -apple-system, sans-serif;
  --mp-glass: rgba(255, 255, 255, 0.72);
  --mp-max: 1280px;
  --mp-topbar-h: 36px;
  --mp-header-h: 76px;
  --mp-menubar-h: 48px;
}

[data-theme="dark"] {
  --mp-bg: #0f1115;
  --mp-card: #1a1d24;
  --mp-dark: #f3f4f6;
  --mp-muted: #9ca3af;
  --mp-border: #2a2f3a;
  --mp-blue-soft: #132238;
  --mp-orange-soft: #2a1a10;
  --mp-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --mp-glass: rgba(26, 29, 36, 0.82);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--mp-font);
  background: var(--mp-bg);
  color: var(--mp-dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }

.mp-wrap {
  width: min(100% - 32px, var(--mp-max));
  margin-inline: auto;
}

/* —— Top bar —— */
.mp-topbar {
  background: var(--mp-bg);
  border-bottom: 1px solid var(--mp-border);
  font-size: 0.78rem;
  color: var(--mp-muted);
}

.mp-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--mp-topbar-h);
  padding: 6px 0;
  flex-wrap: wrap;
}

.mp-topbar__loc {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.mp-topbar__loc strong { color: var(--mp-dark); font-weight: 600; }

.mp-topbar__links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mp-topbar__links a:hover { color: var(--mp-blue); }

.mp-lang {
  display: inline-flex;
  gap: 2px;
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
  border-radius: 999px;
  padding: 2px;
}

.mp-lang button {
  border: none;
  background: transparent;
  color: var(--mp-muted);
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
}

.mp-lang button.is-active {
  background: var(--mp-blue);
  color: #fff;
}

.mp-theme-btn {
  border: 1px solid var(--mp-border);
  background: var(--mp-card);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

/* —— Header —— */
.mp-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--mp-glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--mp-border);
}

.mp-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: var(--mp-header-h);
  padding: 10px 0;
}

.mp-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  max-width: min(220px, 42vw);
}

.mp-logo__img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 658 / 172;
  object-fit: contain;
  object-position: left center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.mp-logo:hover .mp-logo__img {
  transform: translateY(-1px) scale(1.015);
}

.mp-logo--footer {
  max-width: 180px;
  margin-bottom: 10px;
}

.mp-logo--footer .mp-logo__img {
  width: 168px;
}

/* Legacy text logo (unused when full image logo is present) */
.mp-logo__mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.mp-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.mp-logo__text strong {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--mp-dark);
}

.mp-logo__dot { color: var(--mp-blue); }

.mp-logo__text small {
  font-size: 0.72rem;
  color: var(--mp-muted);
  font-weight: 500;
}

.mp-logo__text small em {
  font-style: normal;
  font-weight: 700;
  color: var(--mp-orange);
}

@media (max-width: 720px) {
  .mp-logo { max-width: min(156px, 48vw); }
  .mp-logo__img { width: 148px; }
}

.mp-search {
  display: flex;
  align-items: stretch;
  background: var(--mp-card);
  border: 1.5px solid var(--mp-border);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--mp-shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mp-search:focus-within {
  border-color: var(--mp-blue);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
}

.mp-search__select {
  border-right: 1px solid var(--mp-border);
  background: var(--mp-bg);
}

.mp-search__select select {
  border: none;
  background: transparent;
  padding: 0 12px;
  height: 100%;
  color: var(--mp-muted);
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 150px;
  cursor: pointer;
}

.mp-search input[type="search"] {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 14px;
  min-width: 0;
  color: var(--mp-dark);
}

.mp-search input:focus { outline: none; }

.mp-search__icon-btn {
  border: none;
  background: transparent;
  padding: 0 8px;
  cursor: pointer;
  opacity: 0.7;
}

.mp-search__icon-btn:hover { opacity: 1; }

.mp-search__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: var(--mp-blue);
  color: #fff;
  padding: 0 22px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.mp-search__btn:hover { background: var(--mp-blue-dark); }

.mp-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mp-action {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: var(--mp-radius-sm);
  cursor: pointer;
  color: var(--mp-dark);
  transition: background 0.15s;
}

.mp-action:hover { background: var(--mp-blue-soft); }

.mp-action__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--mp-bg);
  display: grid;
  place-items: center;
  font-size: 1rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.mp-action__icon.has-photo {
  font-size: 0;
}

.mp-action.is-logged-in .mp-action__icon {
  background: var(--mp-blue);
  color: #fff;
  font-weight: 700;
}

.mp-action.is-logged-in .mp-action__icon.has-photo {
  background-color: transparent;
}

.mp-action__label {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
}

.mp-action__label small {
  font-weight: 500;
  color: var(--mp-muted);
}

.mp-action__badge {
  position: absolute;
  top: 4px;
  left: 28px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--mp-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.mp-burger {
  display: none;
  border: 1px solid var(--mp-border);
  background: var(--mp-card);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* —— Menubar —— */
.mp-menubar {
  background: var(--mp-card);
  border-bottom: 1px solid var(--mp-border);
}

.mp-menubar__inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.mp-menubar__inner::-webkit-scrollbar { display: none; }

.mp-menubar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
  color: var(--mp-dark);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.mp-menubar__link:hover {
  background: var(--mp-blue-soft);
  color: var(--mp-blue);
  transform: translateY(-1px);
}

.mp-menubar__link--premium {
  background: linear-gradient(90deg, #fff7e0, #ffe8b8);
  color: #8a5a00;
}

[data-theme="dark"] .mp-menubar__link--premium {
  background: linear-gradient(90deg, #3a2e12, #2a220e);
  color: #ffd57a;
}

/* —— Layout —— */
.mp-main { padding: 20px 0 48px; }

.mp-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.mp-content {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* Sidebar */
.mp-sidebar {
  background: var(--mp-card);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow);
  overflow: hidden;
  position: sticky;
  top: calc(var(--mp-header-h) + 12px);
}

.mp-sidebar__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--mp-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}

.mp-sidebar__close {
  display: none;
  margin-left: auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.mp-sidebar__tools {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--mp-border);
  background: var(--mp-card);
}

.mp-sidebar__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}

.mp-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.mp-sidebar__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mp-dark);
  transition: background 0.15s, padding-left 0.15s;
}

.mp-sidebar__list a:hover {
  background: var(--mp-blue-soft);
  color: var(--mp-blue);
  padding-left: 20px;
}

.mp-sidebar__list .ico {
  width: 22px;
  text-align: center;
  opacity: 0.75;
}

.mp-sidebar__all {
  display: block;
  padding: 14px 16px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mp-blue);
  border-top: 1px solid var(--mp-border);
}

/* Hero */
.mp-hero-row {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.mp-slider {
  position: relative;
  border-radius: var(--mp-radius);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--mp-shadow);
  background: linear-gradient(125deg, #061835 0%, #0a3d8f 45%, #06204a 100%);
}

.mp-slider__track { height: 100%; }

.mp-slide {
  display: none;
  grid-template-columns: 1.1fr 1fr;
  min-height: 320px;
  padding: 28px 32px;
  color: #fff;
  animation: mp-fade 0.45s ease;
}

.mp-slide.is-active { display: grid; }

@keyframes mp-fade {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}

.mp-slide__copy { align-self: center; z-index: 1; }

.mp-slide__badge {
  display: inline-block;
  background: var(--mp-orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.35);
}

.mp-slide__badge--blue { background: var(--mp-blue); }

.mp-slide h1 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.mp-slide p {
  margin: 0 0 18px;
  opacity: 0.85;
  font-size: 0.95rem;
  max-width: 36ch;
}

.mp-slide__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
}

.mp-hero-shot {
  position: absolute;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.35);
  animation: mp-float 3.6s ease-in-out infinite;
}

.mp-hero-shot--phone {
  width: 110px;
  height: 160px;
  right: 12%;
  top: 12%;
  z-index: 3;
}

.mp-hero-shot--laptop {
  width: 180px;
  height: 120px;
  left: 6%;
  bottom: 16%;
  z-index: 2;
  animation-delay: 0.35s;
}

.mp-hero-shot--headphones {
  width: 88px;
  height: 88px;
  left: 28%;
  top: 10%;
  border-radius: 50%;
  z-index: 1;
  animation-delay: 0.15s;
}

.mp-hero-shot--watch {
  width: 72px;
  height: 72px;
  right: 8%;
  bottom: 18%;
  border-radius: 18px;
  z-index: 4;
  animation-delay: 0.55s;
}

.mp-slide__visual--photo {
  overflow: hidden;
  border-radius: 18px;
  margin: 12px;
}

.mp-slide__visual--photo img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

@keyframes mp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mp-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.mp-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.05);
}

.mp-slider__arrow--prev { left: 12px; }
.mp-slider__arrow--next { right: 12px; }

.mp-slider__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.mp-slider__dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: width 0.2s, background 0.2s;
}

.mp-slider__dots button.is-active {
  width: 22px;
  background: #fff;
}

/* Side banners */
.mp-side-banners {
  display: grid;
  gap: 14px;
}

.mp-side-banner {
  position: relative;
  border-radius: var(--mp-radius);
  min-height: 152px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  box-shadow: var(--mp-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mp-side-banner:hover {
  transform: translateY(-3px);
  box-shadow: var(--mp-shadow-lg);
}

.mp-side-banner strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.mp-side-banner--summer,
.mp-side-banner--grocery {
  background:
    linear-gradient(110deg, rgba(20, 24, 32, 0.72) 10%, rgba(20, 24, 32, 0.2) 70%),
    var(--banner) center/cover no-repeat;
  color: #fff;
}

.mp-side-banner--summer strong,
.mp-side-banner--grocery strong {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Buttons */
.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.mp-btn:hover { transform: translateY(-1px); }
.mp-btn:active { transform: scale(0.98); }

.mp-btn--primary {
  background: var(--mp-blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.3);
}

.mp-btn--primary:hover { background: var(--mp-blue-dark); }

.mp-btn--orange {
  background: var(--mp-orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.3);
}

.mp-btn--white {
  background: #fff;
  color: var(--mp-dark);
}

.mp-btn--ghost {
  background: var(--mp-bg);
  color: var(--mp-dark);
  border: 1px solid var(--mp-border);
}

.mp-btn--sm { padding: 8px 14px; font-size: 0.78rem; }
.mp-btn--lg { width: 100%; padding: 14px; }

.mp-link {
  border: none;
  background: none;
  color: var(--mp-blue);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Round cats */
.mp-round-cats {
  margin: 8px 0 22px;
  background: var(--mp-card);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow);
  padding: 18px 8px;
}

.mp-round-cats__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 10px;
  scrollbar-width: none;
}

.mp-round-cats__track::-webkit-scrollbar { display: none; }

.mp-round-cat {
  flex: 0 0 auto;
  width: 88px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: center;
  color: var(--mp-dark);
  transition: transform 0.2s;
}

.mp-round-cat:hover { transform: translateY(-4px); }

.mp-round-cat.is-active .mp-round-cat__ico {
  box-shadow: 0 0 0 3px var(--mp-blue);
}

.mp-sidebar__list a.is-active {
  background: var(--mp-blue-soft);
  color: var(--mp-blue);
  font-weight: 700;
}

.mp-round-cat__ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.mp-round-cat:hover .mp-round-cat__ico {
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.2);
  transform: scale(1.05);
}

.mp-round-cat span {
  font-size: 0.72rem;
  font-weight: 650;
}

/* Flash */
.mp-flash {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.mp-flash__products,
.mp-product-grid,
.mp-hero-row,
.mp-round-cats {
  min-width: 0;
  max-width: 100%;
}

.mp-flash__timer {
  background: linear-gradient(160deg, #e53935, #c62828);
  color: #fff;
  border-radius: var(--mp-radius);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--mp-shadow);
}

.mp-flash__timer h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 800;
}

.mp-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.mp-countdown div {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 48px;
}

.mp-countdown span {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mp-countdown small {
  font-size: 0.65rem;
  opacity: 0.85;
}

.mp-countdown__sep { font-weight: 800; opacity: 0.7; }

.mp-flash__products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Products */
.mp-section { margin-bottom: 28px; }

.mp-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mp-section__head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mp-section__more {
  color: var(--mp-blue);
  font-weight: 700;
  font-size: 0.88rem;
}

.mp-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mp-product-grid--sm {
  grid-template-columns: repeat(6, 1fr);
}

.mp-card {
  background: var(--mp-card);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: mp-card-in 0.4s ease both;
}

.mp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mp-shadow-lg);
}

@keyframes mp-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.mp-card__img {
  position: relative;
  aspect-ratio: 1;
  background: #f3f5f8;
  overflow: hidden;
}

.mp-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.mp-card:hover .mp-card__img img {
  transform: scale(1.05);
}

[data-theme="dark"] .mp-card__img { background-color: #12151c; }

.mp-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--mp-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
}

.mp-card__wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--mp-shadow);
  cursor: pointer;
  color: #bcc0c4;
  font-size: 1rem;
}

.mp-card__wish.is-active { color: var(--mp-red); }

.mp-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mp-card__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.mp-card__rating {
  font-size: 0.75rem;
  color: var(--mp-muted);
}

.mp-card__rating .stars { color: #f5a623; letter-spacing: 1px; }

.mp-card__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.mp-card__price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mp-red);
  letter-spacing: -0.02em;
}

.mp-card__old {
  display: block;
  font-size: 0.75rem;
  color: var(--mp-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.mp-card__cart {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--mp-blue);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 6px 14px rgba(10, 132, 255, 0.3);
  transition: transform 0.15s, background 0.15s;
}

.mp-card__cart:hover {
  background: var(--mp-blue-dark);
  transform: scale(1.06);
}

/* Brands */
.mp-brands {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.mp-brand {
  background: var(--mp-card);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow);
  min-height: 88px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--mp-dark);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

.mp-brand:hover {
  transform: translateY(-3px);
  box-shadow: var(--mp-shadow-lg);
  border-color: var(--mp-blue-soft);
}

/* Promo row */
.mp-promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.mp-premium {
  background: linear-gradient(135deg, #041530, #0a4a9e 60%, #06285e);
  color: #fff;
  border-radius: var(--mp-radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: var(--mp-shadow-lg);
  overflow: hidden;
  position: relative;
}

.mp-premium__crown {
  font-size: 4rem;
  filter: drop-shadow(0 10px 20px rgba(255, 200, 50, 0.4));
  animation: mp-float 3s ease-in-out infinite;
}

.mp-premium h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 800;
}

.mp-premium ul {
  margin: 0 0 16px;
  padding-left: 18px;
  opacity: 0.9;
  font-size: 0.9rem;
}

.mp-app {
  background: linear-gradient(135deg, #e8f8f0, #d6f0ff);
  border-radius: var(--mp-radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--mp-shadow);
}

[data-theme="dark"] .mp-app {
  background: linear-gradient(135deg, #123028, #123040);
}

.mp-app h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 800;
}

.mp-app p {
  margin: 0 0 14px;
  color: var(--mp-muted);
  font-size: 0.9rem;
}

.mp-app__stores { display: flex; gap: 8px; flex-wrap: wrap; }

.mp-store-btn {
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  transition: transform 0.15s;
}

.mp-store-btn span { font-size: 0.6rem; opacity: 0.8; }
.mp-store-btn strong { font-size: 0.85rem; }
.mp-store-btn:hover { transform: scale(1.03); }

.mp-phone {
  width: 110px;
  height: 200px;
  background: #1e1e1e;
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  transform: rotate(6deg);
}

.mp-phone__screen {
  height: 100%;
  background: linear-gradient(180deg, #0A84FF, #4da3ff);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-phone__bar {
  height: 8px;
  width: 40%;
  margin: 4px auto 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}

.mp-phone__card {
  flex: 1;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
}

/* Trust */
.mp-trust {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  background: var(--mp-card);
  border-radius: var(--mp-radius);
  padding: 18px;
  box-shadow: var(--mp-shadow);
}

.mp-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--mp-muted);
}

.mp-trust__item span { font-size: 1.4rem; }
.mp-trust__item strong { color: var(--mp-dark); font-weight: 700; }

/* Footer */
.mp-footer {
  background: var(--mp-card);
  border-top: 1px solid var(--mp-border);
  padding: 40px 0 24px;
  margin-top: 20px;
}

.mp-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

.mp-footer h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

.mp-footer a {
  display: block;
  color: var(--mp-muted);
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.mp-footer a:hover { color: var(--mp-blue); }

.mp-footer__about {
  color: var(--mp-muted);
  font-size: 0.86rem;
  max-width: 32ch;
}

.mp-logo--footer .mp-logo__mark {
  width: 40px;
  height: 40px;
}

.mp-social {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mp-social a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--mp-bg);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin: 0;
  color: var(--mp-dark);
}

.mp-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mp-pay span {
  background: var(--mp-bg);
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--mp-muted);
}

.mp-footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--mp-border);
  font-size: 0.8rem;
  color: var(--mp-muted);
}

/* Drawers / modal */
.mp-drawer[hidden],
.mp-modal[hidden] { display: none !important; }

.mp-drawer,
.mp-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.mp-drawer__backdrop,
.mp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.45);
  backdrop-filter: blur(4px);
}

.mp-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--mp-card);
  box-shadow: var(--mp-shadow-lg);
  display: flex;
  flex-direction: column;
  animation: mp-slide-in 0.28s ease;
}

@keyframes mp-slide-in {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.mp-drawer__panel header,
.mp-drawer__panel footer {
  padding: 16px 18px;
  border-bottom: 1px solid var(--mp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-drawer__panel footer {
  border-bottom: none;
  border-top: 1px solid var(--mp-border);
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.mp-drawer__panel header h2 { margin: 0; font-size: 1.1rem; }
.mp-drawer__panel header button {
  border: none;
  background: var(--mp-bg);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.mp-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 16px 18px;
}

.mp-cart-line {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.mp-cart-line__img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--mp-bg) center/cover;
  flex-shrink: 0;
}

.mp-cart-line strong { display: block; font-size: 0.88rem; }
.mp-cart-line span { color: var(--mp-muted); font-size: 0.8rem; }
.mp-cart-total { font-size: 1rem; }
.mp-coupon-hint { margin: 0; font-size: 0.8rem; color: var(--mp-muted); text-align: center; }

.mp-auth-sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(880px, calc(100% - 24px));
  max-height: 92vh;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  background: var(--mp-card);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  animation: mp-auth-in 0.3s ease;
}

@keyframes mp-auth-in {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.mp-auth-sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  box-shadow: var(--mp-shadow);
}

.mp-auth-aside {
  position: relative;
  min-height: 480px;
  color: #fff;
  overflow: hidden;
}

.mp-auth-aside__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.mp-auth-aside__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 132, 255, 0.88), rgba(4, 30, 70, 0.78));
}

.mp-auth-aside__content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.mp-auth-aside__content img,
.mp-auth-aside__logo {
  width: min(210px, 100%);
  height: auto;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 12px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.mp-auth-aside__content h2,
.mp-auth-aside__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mp-auth-aside__content h2 span { color: #ffd18a; }

.mp-auth-aside__content p {
  margin: 0 0 12px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.mp-auth-aside__content ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.92;
}

.mp-auth-main {
  padding: 32px 28px 28px;
  overflow-y: auto;
  max-height: 92vh;
}

.mp-auth-brand {
  margin-bottom: 14px;
}

.mp-auth-brand strong {
  display: block;
  color: var(--mp-dark);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mp-auth-brand span { color: var(--mp-muted); font-size: 0.9rem; }

.mp-auth-tabs {
  display: flex;
  gap: 6px;
  margin: 16px 0;
  background: var(--mp-bg);
  padding: 5px;
  border-radius: 999px;
}

.mp-auth-tabs button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  color: var(--mp-muted);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.mp-auth-tabs button.active {
  background: var(--mp-card);
  color: var(--mp-blue);
  box-shadow: var(--mp-shadow);
}

.mp-auth-social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mp-auth-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--mp-border);
  background: var(--mp-card);
  border-radius: 12px;
  padding: 11px 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--mp-dark);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.mp-auth-social__btn:hover {
  transform: translateY(-1px);
  border-color: var(--mp-blue);
  box-shadow: var(--mp-shadow);
}

.mp-auth-social__btn--facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.mp-auth-social__btn--zenix img {
  border-radius: 4px;
}

.mp-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
  color: var(--mp-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.mp-auth-divider::before,
.mp-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mp-border);
}

.mp-auth-form .mp-field {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 14px;
  color: var(--mp-dark);
}

.mp-auth-form .mp-field span {
  display: block;
  margin-bottom: 6px;
}

.mp-auth-form input {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--mp-border);
  border-radius: 12px;
  background: var(--mp-bg);
  color: var(--mp-dark);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.mp-auth-form input:focus {
  outline: none;
  border-color: var(--mp-blue);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
  background: var(--mp-card);
}

.mp-auth-hint {
  color: var(--mp-muted);
  font-size: 0.88rem;
  margin: 0 0 12px;
  line-height: 1.45;
}

#socialAuthPanel {
  margin-top: 0.25rem;
}

#socialAuthPanel .mp-btn--link {
  margin-top: 0.5rem;
}

.mp-auth-error {
  color: var(--mp-red);
  font-size: 0.86rem;
  background: rgba(229, 57, 53, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 10px;
}

.mp-auth-success {
  color: var(--mp-green);
  font-size: 0.86rem;
  background: rgba(18, 183, 106, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 10px;
}

@media (max-width: 760px) {
  .mp-auth-sheet {
    grid-template-columns: 1fr;
    width: min(440px, calc(100% - 16px));
  }
  .mp-auth-aside {
    min-height: 160px;
  }
  .mp-auth-aside__content {
    padding: 20px;
    justify-content: center;
  }
  .mp-auth-aside__content ul { display: none; }
  .mp-auth-social { grid-template-columns: 1fr; }
}

/* Chat + toast */
.mp-chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--mp-blue);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
}

.mp-chat-fab:hover { transform: scale(1.06); }

.mp-chat-popup {
  position: fixed;
  right: 22px;
  bottom: 90px;
  z-index: 121;
  width: min(340px, calc(100% - 32px));
  background: var(--mp-card);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow-lg);
  overflow: hidden;
  border: 1px solid var(--mp-border);
}

.mp-chat-popup header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--mp-blue);
  color: #fff;
}

.mp-chat-popup header button {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.mp-chat-popup__body { padding: 14px; font-size: 0.9rem; min-height: 100px; }

.mp-chat-popup form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--mp-border);
}

.mp-chat-popup input {
  flex: 1;
  border: 1px solid var(--mp-border);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--mp-bg);
  color: var(--mp-dark);
}

.mp-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--mp-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
  box-shadow: var(--mp-shadow-lg);
}

/* Skeleton */
.mp-skel {
  background: linear-gradient(90deg, #e8eaee 25%, #f5f7fa 50%, #e8eaee 75%);
  background-size: 200% 100%;
  animation: mp-shimmer 1.2s linear infinite;
  border-radius: var(--mp-radius);
  min-height: 260px;
}

@keyframes mp-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

body.modal-open,
body.sidebar-open,
body.drawer-open {
  overflow: hidden;
  touch-action: none;
}

.mp-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.mp-sidebar-backdrop[hidden] { display: none !important; }

.mp-mobile-search-cats {
  display: none;
  gap: 8px;
  padding: 8px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--mp-card);
  border-bottom: 1px solid var(--mp-border);
  position: sticky;
  top: calc(var(--mp-header-offset, 64px));
  z-index: 40;
}

.mp-mobile-search-cats::-webkit-scrollbar { display: none; }

.mp-mobile-search-cats button {
  flex: 0 0 auto;
  border: 1px solid var(--mp-border);
  background: var(--mp-bg);
  color: var(--mp-dark);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.mp-mobile-search-cats button.is-active {
  background: var(--mp-blue);
  border-color: var(--mp-blue);
  color: #fff;
}

.mp-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--mp-card) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--mp-border);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.mp-bottom-nav__item {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--mp-muted);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mp-bottom-nav__item span[aria-hidden] { font-size: 1.15rem; line-height: 1; }
.mp-bottom-nav__item small { font-size: 0.62rem; font-weight: 700; }
.mp-bottom-nav__item.is-active { color: var(--mp-blue); }

.mp-bottom-nav__badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--mp-orange, #FF6A00);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.mp-cart-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mp-border);
}

.mp-cart-line__img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.mp-cart-line__meta {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.mp-cart-line__meta strong {
  font-size: 0.86rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mp-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--mp-border);
  border-radius: 10px;
  overflow: hidden;
}

.mp-cart-qty button {
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--mp-bg);
  color: var(--mp-dark);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.mp-cart-qty span {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.mp-cart-line__remove {
  border: 0;
  background: transparent;
  color: var(--mp-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
}

@media (hover: hover) {
  .mp-card:hover { transform: translateY(-3px); }
}

/* Responsive */
@media (max-width: 1100px) {
  .mp-layout { grid-template-columns: 1fr; }
  .mp-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 88vw);
    z-index: 150;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    border-radius: 0;
    padding-top: env(safe-area-inset-top, 0px);
    overflow-y: auto;
    box-shadow: var(--mp-shadow-lg);
  }
  .mp-sidebar.is-open { transform: none; }
  .mp-burger { display: grid; place-items: center; }
  .mp-header__inner { grid-template-columns: auto 1fr auto auto; gap: 8px; }
  .mp-action__label { display: none; }
  .mp-flash { grid-template-columns: 1fr; }
  .mp-flash__products { grid-template-columns: repeat(2, 1fr); }
  .mp-product-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-product-grid--sm { grid-template-columns: repeat(2, 1fr); }
  .mp-brands { grid-template-columns: repeat(4, 1fr); }
  .mp-promo-row { grid-template-columns: 1fr; }
  .mp-trust { grid-template-columns: repeat(3, 1fr); }
  .mp-footer__grid { grid-template-columns: 1fr 1fr; }
  .mp-hero-row { grid-template-columns: 1fr; }
  .mp-drawer__panel {
    width: min(420px, 100%);
  }
}

@media (max-width: 760px) {
  .mp-auth-sheet {
    grid-template-columns: 1fr;
    max-height: min(94dvh, 94vh);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 100%;
  }
  .mp-auth-modal .mp-modal__panel,
  .mp-auth-sheet {
    margin: 0;
  }
  .mp-auth-social { grid-template-columns: 1fr; }
  .mp-auth-aside {
    min-height: 120px;
    padding: 20px;
  }
  .mp-auth-aside ul { display: none; }
  .mp-auth-aside__title { display: block !important; font-size: 1.25rem; }
}

/* ========== Premium Mobile App Shell ========== */
@media (max-width: 720px) {
  html {
    scroll-padding-bottom: 80px;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    background:
      radial-gradient(120% 60% at 50% -10%, rgba(10, 132, 255, 0.12), transparent 55%),
      var(--mp-bg);
  }

  .mp-wrap {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Hide desktop chrome clutter */
  .mp-topbar,
  .mp-menubar,
  .mp-mobile-search-cats,
  .mp-side-banners,
  .mp-header__actions #loginBtn,
  .mp-header__actions #wishlistBtn,
  .mp-header__actions #cartBtn,
  .mp-burger,
  .mp-slider__arrow,
  .mp-phone,
  .mp-chat-fab,
  .mp-footer__grid > :nth-child(n+3),
  .mp-promo-row,
  .mp-app {
    display: none !important;
  }

  .mp-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.08);
  }

  [data-theme="dark"] .mp-bottom-nav {
    background: rgba(26, 29, 36, 0.94);
  }

  .mp-bottom-nav__item {
    min-height: 52px;
    border-radius: 14px;
    transition: background 0.15s, color 0.15s;
  }

  .mp-bottom-nav__item.is-active {
    color: var(--mp-blue);
    background: var(--mp-blue-soft);
  }

  .mp-bottom-nav__item small {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  /* Compact premium header */
  .mp-header {
    position: sticky;
    top: 0;
    z-index: 80;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 0 10px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: none;
  }

  [data-theme="dark"] .mp-header {
    background: rgba(15, 17, 21, 0.88);
  }

  .mp-header__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo notif"
      "search search";
    gap: 10px 12px;
    align-items: center;
  }

  .mp-logo { grid-area: logo; }
  .mp-logo__img {
    width: 148px;
    height: auto;
    display: block;
  }

  .mp-header__actions {
    grid-area: notif;
    justify-self: end;
  }

  .mp-header__actions .mp-action {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    background: var(--mp-bg);
  }

  .mp-action__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: transparent;
    font-size: 1.15rem;
  }

  .mp-action__label { display: none !important; }

  .mp-search {
    grid-area: search;
    width: 100%;
    border-radius: 16px;
    border: 0;
    background: var(--mp-bg);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    min-height: 48px;
    overflow: hidden;
  }

  .mp-search__select,
  .mp-search__icon-btn { display: none !important; }

  .mp-search input {
    padding-left: 16px;
    font-size: 0.92rem;
    background: transparent;
  }

  .mp-search__btn {
    display: grid;
    place-items: center;
    font-size: 0;
    padding: 0 16px;
    border-radius: 0;
    min-width: 52px;
  }

  .mp-search__btn svg { width: 20px; height: 20px; }

  .mp-main {
    padding-top: 0;
  }

  .mp-layout {
    gap: 0;
  }

  .mp-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 8px;
  }

  /* Full-bleed cinematic hero */
  .mp-hero-row {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
  }

  .mp-slider {
    border-radius: 0;
    box-shadow: none;
    min-height: 52vw;
    max-height: 320px;
  }

  .mp-slide {
    display: none;
    grid-template-columns: 1fr;
    min-height: 52vw;
    max-height: 320px;
    padding: 0;
    position: relative;
  }

  .mp-slide.is-active { display: grid; }

  .mp-slide__visual,
  .mp-slide__visual--photo {
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 1;
  }

  .mp-slide__visual img,
  .mp-slide__visual--photo img,
  .mp-slide__visual .mp-hero-shot {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    right: auto !important;
    bottom: auto !important;
  }

  .mp-slide__visual .mp-hero-shot--laptop,
  .mp-slide__visual .mp-hero-shot--headphones,
  .mp-slide__visual .mp-hero-shot--watch {
    display: none !important;
  }

  .mp-slide__copy {
    position: relative;
    z-index: 2;
    align-self: end;
    max-width: 100%;
    padding: 28px 20px 36px;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 12, 20, 0.72) 58%, rgba(8, 12, 20, 0.88) 100%);
  }

  .mp-slide__copy h1 {
    font-size: 1.55rem;
    margin-bottom: 8px;
    max-width: 16ch;
  }

  .mp-slide__copy p {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 28ch;
    margin-bottom: 14px;
  }

  .mp-slide__badge {
    margin-bottom: 10px;
  }

  .mp-slider__dots {
    bottom: 12px;
    left: 20px;
    right: auto;
    gap: 6px;
  }

  .mp-slider__dots button {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.4);
  }

  .mp-slider__dots button.is-active {
    width: 18px;
    border-radius: 999px;
    background: #fff;
  }

  /* Categories as clean icon rail */
  .mp-round-cats,
  #categories {
    margin-top: 2px;
  }

  .mp-section-head {
    margin-bottom: 12px;
  }

  .mp-section-head h2 {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
  }

  .mp-round-cats__track {
    gap: 14px;
    padding: 2px 2px 8px;
  }

  .mp-round-cat {
    min-width: 68px;
    gap: 8px;
  }

  .mp-round-cat__ico {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 1.35rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  }

  .mp-round-cat span {
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--mp-dark);
  }

  /* Flash — soft premium block */
  .mp-flash {
    border-radius: 22px;
    padding: 16px;
    gap: 14px;
    background:
      linear-gradient(145deg, rgba(255, 106, 0, 0.12), transparent 40%),
      var(--mp-card);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
  }

  .mp-flash__timer {
    padding: 0;
    background: transparent;
    border: 0;
  }

  .mp-flash__products,
  .mp-product-grid,
  .mp-product-grid--sm {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .mp-card {
    border: 0;
    border-radius: 18px;
    background: var(--mp-card);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
  }

  .mp-card__img {
    aspect-ratio: 1;
    border-radius: 0;
  }

  .mp-card__body {
    padding: 10px 12px 12px;
  }

  .mp-card__title {
    font-size: 0.78rem;
    line-height: 1.35;
    min-height: 2.7em;
  }

  .mp-card__rating {
    font-size: 0.68rem;
  }

  .mp-card__price {
    font-size: 0.95rem;
  }

  .mp-card__wish,
  .mp-card__cart {
    min-width: 36px;
    min-height: 36px;
    border-radius: 12px;
  }

  .mp-brands {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .mp-brand {
    border-radius: 14px;
    padding: 14px 8px;
    font-size: 0.78rem;
  }

  .mp-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mp-trust__item {
    border-radius: 16px;
    padding: 14px 12px;
    background: var(--mp-card);
    border: 0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  }

  .mp-trust__item:nth-child(n+5) { display: none; }

  .mp-premium {
    border-radius: 22px;
    padding: 22px 18px;
  }

  .mp-footer {
    margin-top: 12px;
    padding-bottom: 24px;
  }

  .mp-footer__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mp-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Drawers as premium sheets */
  .mp-drawer:not([hidden]) {
    display: block;
  }

  .mp-drawer__panel {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: min(86dvh, 86vh);
    border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    animation: mp-sheet-up 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes mp-sheet-up {
    from { transform: translateY(40px); opacity: 0.6; }
    to { transform: none; opacity: 1; }
  }

  .mp-chat-popup {
    left: 12px;
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    border-radius: 18px;
  }

  .mp-toast {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100% - 32px);
    border-radius: 14px;
    padding: 12px 16px;
  }

  .mp-sidebar {
    width: min(320px, 90vw);
    border-radius: 0 20px 20px 0;
  }

  .mp-sidebar__close,
  .mp-sidebar__tools {
    display: flex;
  }

  .mp-sidebar__tools .mp-lang button.is-active {
    background: var(--mp-blue);
    color: #fff;
  }
}

@media (max-width: 480px) {
  .mp-slide,
  .mp-slider {
    min-height: 58vw;
    max-height: 280px;
  }

  .mp-slide__copy h1 {
    font-size: 1.35rem;
  }

  .mp-logo__img { width: 132px; }
}

.mp-empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  padding: 48px 24px;
  color: var(--mp-muted, #6b7280);
}

.mp-empty-state__ico {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #eef2f7;
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.mp-empty-state strong {
  color: var(--mp-text, #111827);
  font-size: 1.05rem;
}

.mp-empty-state p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 28ch;
  line-height: 1.4;
}

.mp-wish-list {
  display: grid;
  gap: 10px;
}

.mp-wish-line {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--mp-bg-soft, #f8fafc);
}

.mp-wish-line__img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.mp-wish-line__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mp-wish-line__meta strong {
  font-size: 0.9rem;
  line-height: 1.3;
}

.mp-wish-line__meta span {
  color: var(--mp-blue, #0A84FF);
  font-weight: 700;
}

.mp-wish-line__remove {
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  color: #9ca3af;
  cursor: pointer;
  width: 32px;
  height: 32px;
}

.mp-notif-list {
  display: grid;
  gap: 10px;
}

.mp-notif-item {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: var(--mp-bg-soft, #f8fafc);
  border: 1px solid transparent;
}

.mp-notif-item.is-unread {
  background: #eff6ff;
  border-color: #dbeafe;
}

.mp-notif-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.mp-notif-item p {
  margin: 0 0 8px;
  color: var(--mp-muted, #6b7280);
  font-size: 0.88rem;
  line-height: 1.4;
}

.mp-notif-item time {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Guest: cart / wish / notif panels never visible */
body:not(.is-authed) #cartDrawer,
body:not(.is-authed) #wishDrawer,
body:not(.is-authed) #notifDrawer {
  display: none !important;
}

.mp-near-status {
  margin: -4px 0 14px;
  color: var(--mp-muted, #6b7280);
  font-size: 0.92rem;
}

.mp-near-status.is-ready {
  color: var(--mp-blue, #2563eb);
}

.mp-link {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--mp-blue, #2563eb);
  padding: 0;
}

.mp-card__dist {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 52px);
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 1101px) {
  .mp-sidebar.is-open { transform: none; }
  .mp-sidebar-backdrop { display: none !important; }
  .mp-bottom-nav { display: none !important; }
  .mp-mobile-search-cats { display: none !important; }
}

/* ========== ADMIN PANEL ========== */
body.mp-admin-open { overflow: hidden; }
.mp-admin {
  position: fixed; inset: 0; z-index: 12000;
  display: grid; grid-template-columns: 260px 1fr;
  background: #0b1220; color: #e8eef9;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.mp-admin[hidden] { display: none !important; }
.mp-admin__backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1;
}
.mp-admin__nav {
  background: #0f172a; border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; min-width: 0; z-index: 2;
}
.mp-admin__brand {
  display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px;
}
.mp-admin__brand img { border-radius: 8px; }
.mp-admin__brand strong { display: block; font-size: .95rem; }
.mp-admin__brand small { color: #94a3b8; font-size: .72rem; }
.mp-admin__menu {
  flex: 1; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px;
}
.mp-admin__menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; background: transparent; color: #cbd5e1;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: left; font: inherit;
}
.mp-admin__menu button span { width: 1.4rem; text-align: center; }
.mp-admin__menu button em { font-style: normal; font-size: .9rem; }
.mp-admin__menu button:hover { background: rgba(255,255,255,.05); }
.mp-admin__menu button.is-active {
  background: rgba(34,197,94,.16); color: #86efac; font-weight: 600;
}
.mp-admin__nav-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.06); }
.mp-admin__main { min-width: 0; display: flex; flex-direction: column; background: #0b1220; }
.mp-admin__top {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(15,23,42,.85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 3;
}
.mp-admin__top h1 { margin: 0; font-size: 1.15rem; flex: 1; }
.mp-admin__menu-btn {
  display: none; border: 0; background: #1e293b; color: #fff;
  width: 40px; height: 40px; border-radius: 10px; font-size: 1.1rem; cursor: pointer;
}
.mp-admin__content { padding: 18px; overflow: auto; flex: 1; }
.mp-admin__toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 13000;
  background: #166534; color: #fff; padding: 12px 16px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); font-weight: 600;
}
.mp-admin__toast.is-error { background: #991b1b; }
.mpa-btn {
  border: 0; border-radius: 10px; padding: 9px 14px; cursor: pointer;
  background: #22c55e; color: #052e16; font: inherit; font-weight: 700;
}
.mpa-btn:disabled { opacity: .45; cursor: not-allowed; }
.mpa-btn--ghost { background: #1e293b; color: #e2e8f0; }
.mpa-btn--danger { background: #ef4444; color: #fff; }
.mpa-btn--ok { background: #22c55e; color: #052e16; }
.mpa-btn--sm { padding: 6px 10px; font-size: .8rem; border-radius: 8px; }
.mpa-input, .mpa-select {
  background: #111827; border: 1px solid rgba(255,255,255,.1); color: #fff;
  border-radius: 10px; padding: 10px 12px; font: inherit; min-width: 0;
}
.mpa-kpis {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px;
}
.mpa-kpi {
  background: linear-gradient(180deg, #132033, #0f172a);
  border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 14px;
  min-width: 0;
}
.mpa-kpi__label { display: block; color: #94a3b8; font-size: .75rem; margin-bottom: 6px; }
.mpa-kpi__value { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.mpa-kpi__sub { display: block; margin-top: 4px; color: #86efac; font-size: .75rem; font-weight: 600; }
.mpa-grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; margin-bottom: 14px; }
.mpa-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.mpa-card {
  background: #0f172a; border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 14px 16px; min-width: 0;
}
.mpa-card header h3, .mpa-card__sub h3 { margin: 0 0 12px; font-size: .95rem; }
.mpa-card__sub { margin-top: 18px; }
.mpa-chart { color: #22c55e; margin-bottom: 6px; }
.mpa-chart--users { color: #38bdf8; }
.mpa-spark { width: 100%; height: 72px; display: block; }
.mpa-bar { display: grid; grid-template-columns: 72px 1fr 40px; gap: 8px; align-items: center; margin-bottom: 8px; font-size: .82rem; }
.mpa-bar__track { height: 8px; background: #1e293b; border-radius: 999px; overflow: hidden; }
.mpa-bar__track i { display: block; height: 100%; background: linear-gradient(90deg,#22c55e,#4ade80); }
.mpa-list, .mpa-feed { list-style: none; margin: 0; padding: 0; }
.mpa-list li, .mpa-feed li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .85rem;
}
.mpa-feed li { justify-content: flex-start; }
.mpa-feed li > div { flex: 1; min-width: 0; }
.mpa-feed strong, .mpa-user-cell strong, .mpa-listing-cell strong { display: block; }
.mpa-feed small, .mpa-user-cell small, .mpa-listing-cell small { color: #94a3b8; }
.mpa-feed em { color: #64748b; font-style: normal; font-size: .75rem; white-space: nowrap; }
.mpa-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #14532d; color: #bbf7d0;
  display: grid; place-items: center; font-weight: 800; flex: 0 0 auto;
}
.mpa-muted { color: #64748b; font-size: .85rem; }
.mpa-loading, .mpa-empty, .mpa-coming { padding: 40px 20px; text-align: center; color: #94a3b8; }
.mpa-coming__icon { font-size: 2.4rem; margin-bottom: 10px; }
.mpa-coming h2 { color: #fff; margin: 0 0 8px; }
.mpa-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.mpa-toolbar .mpa-input { flex: 1 1 220px; }
.mpa-table-wrap { overflow: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); }
.mpa-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.mpa-table th, .mpa-table td {
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.05);
  text-align: left; vertical-align: middle; font-size: .86rem;
}
.mpa-table th { background: #111827; color: #94a3b8; font-weight: 600; position: sticky; top: 0; }
.mpa-table tr:hover td { background: rgba(255,255,255,.02); }
.mpa-user-cell, .mpa-listing-cell { display: flex; align-items: center; gap: 10px; }
.mpa-listing-cell img, .mpa-thumb-ph {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #1e293b;
  display: grid; place-items: center;
}
.mpa-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mpa-badge {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; text-transform: lowercase; background: #334155; color: #e2e8f0;
}
.mpa-badge--active, .mpa-badge--reviewed { background: rgba(34,197,94,.18); color: #86efac; }
.mpa-badge--pending, .mpa-badge--open { background: rgba(245,158,11,.18); color: #fcd34d; }
.mpa-badge--rejected, .mpa-badge--blocked, .mpa-badge--dismissed { background: rgba(239,68,68,.18); color: #fca5a5; }
.mpa-badge--hidden, .mpa-badge--admin { background: rgba(59,130,246,.18); color: #93c5fd; }
.mpa-pager {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; color: #94a3b8;
}
.mpa-msg { display: grid; grid-template-columns: 320px 1fr; gap: 12px; min-height: 420px; }
.mpa-msg__list {
  background: #0f172a; border: 1px solid rgba(255,255,255,.06); border-radius: 14px;
  overflow: auto; max-height: 60vh;
}
.mpa-msg__item {
  display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid rgba(255,255,255,.05);
  background: transparent; color: inherit; padding: 12px 14px; cursor: pointer; font: inherit;
}
.mpa-msg__item.is-active, .mpa-msg__item:hover { background: rgba(34,197,94,.1); }
.mpa-msg__item strong { display: block; margin-bottom: 2px; }
.mpa-msg__item small, .mpa-msg__item em { display: block; color: #94a3b8; font-size: .75rem; font-style: normal; }
.mpa-msg__chat {
  background: #0f172a; border: 1px solid rgba(255,255,255,.06); border-radius: 14px;
  padding: 14px; overflow: auto; max-height: 60vh;
}
.mpa-bubble { background: #111827; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.mpa-bubble.is-hidden { opacity: .55; }
.mpa-bubble header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: #94a3b8; font-size: .75rem; }
.mpa-bubble p { margin: 0 0 8px; white-space: pre-wrap; word-break: break-word; }
.mp-account-sheet { position: fixed; inset: 0; z-index: 11000; }
.mp-account-sheet[hidden] { display: none !important; }
.mp-account-sheet__backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.55); }
.mp-account-sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  max-height: 70vh; overflow: auto;
}
.mp-account-sheet__panel header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.mp-account-sheet__panel header h2 { margin: 0; font-size: 1.1rem; }
.mp-account-sheet__panel header button {
  border: 0; background: #f1f5f9; width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
}
.mp-account-user { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mp-account-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: #dcfce7; color: #166534;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
}
.mp-account-sheet__body .mp-btn { width: 100%; margin-bottom: 8px; }
.mp-account-menu { display: grid; gap: 8px; }
.mp-account-back {
  border: 0; background: transparent; color: #0f766e; font-weight: 700; cursor: pointer;
  padding: 4px 0 12px; text-align: left;
}
.mp-account-grid { display: grid; gap: 10px; margin-top: 12px; }
.mp-account-item {
  display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid #e2e8f0;
  background: #fff; color: #0f172a; border-radius: 12px; padding: 9px; text-align: left;
}
button.mp-account-item { cursor: pointer; }
.mp-account-item img,
.mp-account-item > button img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; background: #f8fafc; }
.mp-account-item > button { border: 0; background: transparent; padding: 0; cursor: pointer; }
.mp-account-item span { display: grid; gap: 3px; flex: 1; min-width: 0; }
.mp-account-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-account-item small, .mp-account-note { color: #64748b; }
.mp-account-item__actions { display: flex; gap: 6px; }
.mp-account-item__actions button {
  border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; padding: 6px 8px; cursor: pointer;
}
.mp-account-chat { display: grid; gap: 8px; max-height: 48vh; overflow: auto; padding: 8px 0; }
.mp-account-msg { justify-self: start; max-width: 85%; background: #f1f5f9; border-radius: 12px; padding: 8px 10px; }
.mp-account-msg.is-mine { justify-self: end; background: #dcfce7; }
.mp-account-msg p { margin: 0 0 3px; white-space: pre-wrap; }
.mp-account-msg small { color: #64748b; }
.mp-account-chat-form { display: grid; gap: 8px; }
.mp-account-chat-form textarea {
  border: 1px solid #cbd5e1; border-radius: 12px; padding: 10px; min-height: 70px; resize: vertical;
}

/* Listing detail + sell modal (desktop + shared) */
.mp-listing-detail,
.mp-sell-modal {
  position: fixed; inset: 0; z-index: 12000; background: rgba(15, 23, 42, .55);
  display: grid; place-items: center; padding: 16px;
}
.mp-listing-detail[hidden],
.mp-sell-modal[hidden] { display: none !important; }
.mp-listing-detail__panel,
.mp-sell-modal__panel {
  width: min(560px, 100%); max-height: min(90vh, 820px); overflow: auto;
  background: #fff; border-radius: 18px; padding: 18px 18px 22px; position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.mp-listing-detail__close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0;
  border-radius: 50%; background: #f1f5f9; cursor: pointer; font-size: 1.25rem;
}
.mp-listing-detail__img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #f8fafc;
}
.mp-listing-detail__price { font-size: 1.35rem; font-weight: 800; color: #0f766e; margin: 8px 0; }
.mp-listing-detail__meta { color: #64748b; font-size: .92rem; margin-bottom: 10px; }
.mp-listing-detail__desc { white-space: pre-wrap; line-height: 1.45; color: #334155; }
.mp-listing-detail__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mp-sell-form { display: grid; gap: 10px; margin-top: 8px; }
.mp-sell-form input,
.mp-sell-form textarea,
.mp-sell-form select {
  width: 100%; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; font: inherit;
}

@media (max-width: 1200px) {
  .mpa-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mpa-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .mp-admin { grid-template-columns: 1fr; }
  .mp-admin__menu-btn { display: inline-grid; place-items: center; }
  .mp-admin__nav {
    position: fixed; inset: 0 auto 0 0; width: min(86vw, 300px);
    transform: translateX(-105%); transition: transform .22s ease; z-index: 5;
  }
  body.mp-admin-nav-open .mp-admin__nav { transform: translateX(0); }
  body.mp-admin-nav-open .mp-admin__backdrop { display: block; }
  .mpa-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mpa-grid-2 { grid-template-columns: 1fr; }
  .mpa-msg { grid-template-columns: 1fr; }
  .mpa-msg__list, .mpa-msg__chat { max-height: none; }
  .mpa-table { min-width: 0; }
  .mpa-table thead { display: none; }
  .mpa-table, .mpa-table tbody, .mpa-table tr, .mpa-table td { display: block; width: 100%; }
  .mpa-table tr { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .mpa-table td {
    border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 10px;
  }
  .mpa-table td::before {
    content: attr(data-label); color: #94a3b8; font-weight: 600; flex: 0 0 40%;
  }
  .mp-admin__content { padding: 12px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
