@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #09070a;
  --bg-soft: #100c10;
  --panel: rgba(22, 16, 21, 0.82);
  --panel-solid: #171116;
  --panel-2: #1d151c;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(196, 94, 137, 0.3);
  --text: #f8f3f6;
  --muted: #a2949b;
  --muted-2: #76666f;
  --mint: #b85b82;
  --mint-strong: #d06f98;
  --mint-dim: #3b1d2b;
  --danger: #ff8e98;
  --warning: #f4d28f;
  --success: #d98aaa;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --max: 1280px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 12% -5%,
      rgba(184, 91, 130, 0.1),
      transparent 29rem
    ),
    radial-gradient(
      circle at 88% 12%,
      rgba(184, 91, 130, 0.055),
      transparent 27rem
    ),
    var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
img {
  max-width: 100%;
  display: block;
}
::selection {
  background: var(--mint);
  color: #08100c;
}
.hidden,
[hidden] {
  display: none !important;
}
.grid-overlay {
  display: none !important;
}

.mw-ambient {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}
.mw-ambient span {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.06;
  background: var(--mint);
}
.mw-ambient span:nth-child(1) {
  width: 34rem;
  height: 34rem;
  top: -17rem;
  left: -10rem;
}
.mw-ambient span:nth-child(2) {
  width: 26rem;
  height: 26rem;
  top: 35%;
  right: -16rem;
}
.mw-ambient span:nth-child(3) {
  width: 22rem;
  height: 22rem;
  bottom: -14rem;
  left: 36%;
}

/* Navigation */
.top-nav {
  width: min(calc(100% - 36px), 1380px);
  height: 72px;
  margin: 18px auto 0;
  padding: 0 14px 0 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  position: sticky;
  top: 16px;
  z-index: 100;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 13, 15, 0.82);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.22);
}
.mw-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}
.mw-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #111715;
  border: 1px solid rgba(184, 91, 130, 0.2);
  box-shadow: inset 0 0 18px rgba(184, 91, 130, 0.04);
}
.mw-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 7px;
  border: 1px solid rgba(184, 91, 130, 0.22);
  transform: rotate(45deg);
}
.mw-mark i {
  position: absolute;
  width: 18px;
  height: 1px;
  background: var(--mint);
  transform: rotate(-45deg);
  opacity: 0.5;
}
.mw-mark b {
  position: relative;
  font-size: 13px;
  line-height: 1;
  color: var(--mint);
  font-weight: 800;
}
.mw-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.mw-wordmark strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}
.mw-wordmark small {
  color: var(--muted);
  font:
    500 8px/1 DM Mono,
    monospace;
  letter-spacing: 0.22em;
}
.mw-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 3px;
}
.mw-nav a {
  color: #aab3af;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 11px;
  border-radius: 9px;
  transition: 0.2s ease;
}
.mw-nav a:hover,
.mw-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}
.mw-nav a.is-active::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--mint);
  margin: 0 7px 1px 0;
  box-shadow: 0 0 10px var(--mint);
}
.mw-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mw-account-link,
.mw-icon-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: #d7dfdb;
  background: rgba(255, 255, 255, 0.025);
}
.mw-account-link:hover,
.mw-icon-link:hover {
  border-color: var(--line-strong);
  background: rgba(184, 91, 130, 0.05);
}
.mw-icon-link b {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--mint);
  color: #07100b;
  font-size: 9px;
}
.mw-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  place-items: center;
}
.mw-menu-button span {
  display: block;
  width: 17px;
  height: 1px;
  background: var(--text);
  margin: 3px auto;
}

/* Base layout */
main,
.page-shell,
.dashboard-shell,
.admin-shell,
.auth-shell,
.vouches-main,
.community-page,
.legal-page,
.confirmation-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}
main {
  padding: 90px 0 110px;
}
.page-shell,
.dashboard-shell,
.admin-shell,
.auth-shell,
.vouches-main,
.community-page,
.legal-page {
  padding: 74px 0 110px;
}
section {
  position: relative;
}
.reveal {
  animation: mwIn 0.55s ease both;
}
@keyframes mwIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow,
.featured-label,
.avatars-clean-label,
.confirmation-eyebrow,
.chat-label,
.legal-updated {
  margin: 0 0 12px;
  color: var(--mint);
  font:
    500 10px/1.2 DM Mono,
    monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.08;
}
h1 {
  font-size: clamp(38px, 5vw, 72px);
  margin-bottom: 18px;
}
h2 {
  font-size: clamp(30px, 3.4vw, 50px);
  margin-bottom: 16px;
}
h3 {
  font-size: 20px;
}
.gradient-text {
  color: var(--mint);
  background: none;
  -webkit-text-fill-color: initial;
}
.section-copy,
.auth-subtitle,
.hero-text,
.helper {
  color: var(--muted);
}

/* Homepage */
.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
  gap: 70px;
  align-items: center;
  padding: 30px 0 80px;
}
.hero-copy {
  max-width: 810px;
}
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.kicker {
  color: #aab4af;
  font-size: 12px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  margin-top: -2px;
}
.hero h2 {
  font-size: clamp(46px, 6vw, 86px);
  max-width: 1000px;
}
.hero-text {
  max-width: 650px;
  font-size: 17px;
  line-height: 1.75;
}
.hero-actions,
.auth-actions,
.inline-actions,
.form-actions,
.spaced-actions,
.confirmation-shop-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.mini-stats div {
  padding: 20px 24px 0 0;
}
.mini-stats strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.mini-stats span {
  color: var(--muted);
  font-size: 11px;
}
.timezone-card {
  min-height: 420px;
  container-type: inline-size;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(
    150deg,
    rgba(184, 91, 130, 0.075),
    rgba(255, 255, 255, 0.018) 45%,
    rgba(255, 255, 255, 0.01)
  );
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.timezone-card::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 24px;
}
.timezone-card__glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--mint);
  filter: blur(90px);
  opacity: 0.1;
  right: -120px;
  top: -80px;
}
.timezone-card__content {
  position: absolute;
  inset: auto 34px 34px;
}
.timezone-card__time {
  font:
    500 clamp(28px, 13cqw, 72px)/1 DM Mono,
    monospace;
  letter-spacing: -0.06em;
  margin: 14px 0 18px;
  white-space: nowrap;
}
.timezone-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.featured-section,
.avatars-clean-section,
.section,
.form-card,
.panel,
.notice-card,
.activity-card,
.legal-card,
.chat-panel,
.chat-rules-card,
.partnership-card,
.confirmation-card,
.confirmation-details-card,
.cart-summary {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  margin-top: 22px;
}
.featured-head,
.avatars-clean-head,
.section-head,
.standard-section-head,
.section-heading-row,
.shop-spotlight,
.chat-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  margin-bottom: 28px;
}
.featured-grid,
.product-grid,
.avatar-grid,
.vouch-grid,
.mini-product-grid,
.feature-grid,
.partnership-grid,
.dashboard-grid,
.metrics-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.featured-card,
.product-card,
.avatar-showcase-card,
.vouch-card,
.feature-card,
.metric-card,
.partnership-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  padding: 18px;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
  overflow: hidden;
}
.featured-card:hover,
.product-card:hover,
.avatar-showcase-card:hover,
.vouch-card:hover,
.feature-card:hover,
.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 91, 130, 0.22);
  background: rgba(184, 91, 130, 0.025);
}
.avatars-clean-head > div {
  max-width: 600px;
}
.avatars-clean-copy {
  max-width: 570px;
  margin: 0;
}
.avatars-clean-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: rgba(255, 255, 255, 0.018);
}
.avatars-clean-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.avatars-clean-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 22px;
}
.avatars-clean-gallery > * {
  border-radius: 12px;
  overflow: hidden;
}
.avatars-clean-info {
  color: var(--muted);
  font-size: 12px;
  margin-top: 14px;
}

/* Buttons and controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.18s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--mint);
  color: #07100b;
  border-color: var(--mint);
  box-shadow: 0 8px 22px rgba(184, 91, 130, 0.09);
}
.btn-primary:hover {
  background: #b4f7d8;
}
.btn-secondary,
.btn-ghost {
  color: #e6ece9;
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}
.btn-secondary:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-danger {
  background: rgba(255, 142, 152, 0.08);
  color: var(--danger);
  border-color: rgba(255, 142, 152, 0.18);
}
input,
textarea,
select {
  width: 100%;
  color: var(--text);
  background: #0d1113;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  padding: 12px 13px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}
input,
select {
  min-height: 45px;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
input::placeholder,
textarea::placeholder {
  color: #5f6964;
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(184, 91, 130, 0.48);
  box-shadow: 0 0 0 3px rgba(184, 91, 130, 0.07);
  background: #0f1416;
}
select {
  appearance: auto;
}
label {
  color: #aab4af;
  font-size: 12px;
  font-weight: 700;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.checkbox-row input,
[type="checkbox"],
[type="radio"] {
  width: auto;
  min-height: 0;
  accent-color: var(--mint);
}
.auth-error {
  color: var(--danger);
  font-size: 12px;
}

/* Standard page heroes */
.page-hero,
.dashboard-topbar,
.admin-topbar,
.community-hero,
.partnerships-hero,
.mw-surface-hero {
  padding: 46px 0 38px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1,
.dashboard-topbar h1,
.admin-topbar h1,
.community-hero h1,
.partnerships-hero h1 {
  max-width: 900px;
}
.page-hero p,
.dashboard-topbar p,
.community-hero p,
.partnerships-hero p {
  max-width: 700px;
  color: var(--muted);
}
.shop-spotlight {
  padding: 24px 0 12px;
}
.result-pill,
.user-badge,
.chat-status,
.confirmation-link-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font:
    500 10px DM Mono,
    monospace;
}
.result-pill::before,
.chat-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 7px;
}
.toolbar,
.vouch-toolbar,
.service-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 210px auto;
  gap: 9px;
  margin: 14px 0 24px;
}
.category-select-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d1113;
}
.category-select-wrap select {
  border: 0;
  background: transparent;
}
.category-select-wrap span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Forms/auth */
.auth-shell {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding-top: 70px;
  padding-bottom: 100px;
}
.auth-grid {
  width: min(100%, 480px);
}
.auth-grid-centered {
  margin: 0 auto;
}
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(17, 21, 24, 0.72);
  padding: 34px;
  box-shadow: var(--shadow);
}
.auth-card::before {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  background: var(--mint);
  margin-bottom: 28px;
}
.auth-card h1,
.auth-card h2 {
  font-size: 34px;
}
.auth-card form,
.auth-form,
.settings-form,
.form-grid {
  display: grid;
  gap: 10px;
}
.auth-actions {
  margin-top: 12px;
}
.auth-actions .btn {
  flex: 1;
}
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid .full,
.full {
  grid-column: 1/-1;
}
.address-form-grid,
.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.address-form-grid .full,
.profile-form-grid .full {
  grid-column: 1/-1;
}
.form-card {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.018);
}

/* Dashboard/account */
.dashboard-shell {
  max-width: 1180px;
}
.dashboard-grid,
.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metric-card {
  padding: 22px;
}
.metric-card strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.04em;
}
.metric-card span {
  color: var(--muted);
  font-size: 11px;
}
.activity-list {
  display: grid;
  gap: 8px;
}
.activity-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.018);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.profile-section {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  align-items: start;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* Cart and confirmation */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: start;
}
.cart-items {
  display: grid;
  gap: 10px;
}
.cart-summary {
  position: sticky;
  top: 110px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--panel);
}
.summary-row,
.total-row,
.confirmation-total-row,
.confirmation-status-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.total-row {
  font-size: 18px;
  font-weight: 800;
  border-bottom: 0;
  padding-top: 18px;
}
.promo-row,
.promo-fields {
  display: flex;
  gap: 8px;
}
.checkout-confirmation-page .top-nav {
  position: relative;
}
.confirmation-shell {
  padding: 76px 0 110px;
  max-width: 900px;
}
.confirmation-check {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(184, 91, 130, 0.1);
  color: var(--mint);
  border: 1px solid rgba(184, 91, 130, 0.2);
  font-size: 22px;
}
.confirmation-card,
.confirmation-details-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: rgba(255, 255, 255, 0.018);
}
.confirmation-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.confirmation-detail-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.confirmation-products {
  display: grid;
  gap: 9px;
}
.confirmation-product-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.confirmation-product-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 9px;
}

/* Community */
.chat-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.6fr);
  gap: 18px;
}
.chat-panel,
.chat-rules-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.018);
  margin: 0;
}
.chat-messages {
  height: min(58vh, 600px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: #2e3b35 transparent;
}
.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.chat-form-actions {
  display: flex;
  gap: 8px;
}
.chat-empty,
.chat-login-note {
  color: var(--muted);
  text-align: center;
  padding: 30px;
}

/* Admin */
.admin-shell {
  width: min(calc(100% - 34px), 1450px);
}
.admin-tabs {
  display: flex;
  gap: 5px;
  overflow: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
  margin-bottom: 20px;
  scrollbar-width: none;
}
.admin-tab {
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.admin-tab:hover,
.admin-tab.active {
  color: #07100b;
  background: var(--mint);
}
.admin-panel {
  display: none;
}
.admin-panel.active {
  display: block;
}
.admin-grid {
  grid-template-columns: minmax(340px, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
}
.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.admin-table th {
  color: #75817b;
  font:
    500 9px DM Mono,
    monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: #0c1012;
}
.admin-table td {
  color: #c4ccc8;
  font-size: 12px;
}
.admin-table tbody tr:hover {
  background: rgba(184, 91, 130, 0.025);
}
.admin-avatar-preview {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}
.staff-clock-list {
  display: grid;
  gap: 8px;
}
.clock-status-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

/* Legal/about/team/partnerships */
.legal-page {
  max-width: 940px;
}
.legal-card {
  border: 0;
  padding: 0;
  margin: 0;
}
.legal-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.legal-section h2,
.legal-section h3 {
  font-size: 22px;
}
.legal-section p,
.legal-section li {
  color: #9da7a2;
}
.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 30px;
  color: var(--muted);
}
.feature-grid,
.partnership-grid {
  grid-template-columns: repeat(3, 1fr);
}
.feature-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(184, 91, 130, 0.08);
  color: var(--mint);
  margin-bottom: 20px;
}
.partner-checklist {
  padding-left: 20px;
  color: var(--muted);
}
.partnership-application-form {
  display: grid;
  gap: 10px;
}

/* Vouches/downloads/avatars */
.vouches-main {
  max-width: 1180px;
}
.vouches-content {
  padding-top: 34px;
}
.vouch-grid {
  grid-template-columns: repeat(3, 1fr);
}
.vouches-bottom-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.avatar-grid {
  grid-template-columns: repeat(5, 1fr);
}
.avatar-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

/* Modal / toast */
.review-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}
.review-modal.visible,
.review-modal.active {
  display: grid;
}
.review-modal-card {
  width: min(100%, 560px);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #111619;
  padding: 24px;
  box-shadow: var(--shadow);
}
.modal-close {
  float: right;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 400;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: #eefcf5;
  color: #09110d;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 800;
  transition: 0.2s;
}
.toast.visible,
.toast.show {
  opacity: 1;
  transform: none;
}

/* Discord widget */
.discord-online-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
}
.discord-online-widget__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(12, 16, 18, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.discord-online-widget__icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(184, 91, 130, 0.08);
  color: var(--mint);
  padding: 6px;
}
.discord-online-widget strong,
.discord-online-widget small {
  display: block;
  line-height: 1.2;
}
.discord-online-widget small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}

/* Footer */
.mw-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #0c1012;
  overflow: hidden;
}
.mw-footer-top {
  display: grid;
  grid-template-columns: 1fr 1.6fr auto;
  align-items: center;
  gap: 30px;
  padding: 30px;
  border-bottom: 1px solid var(--line);
}
.mw-footer-top p {
  color: var(--muted);
  margin: 0;
  max-width: 560px;
}
.mw-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px;
  gap: 30px;
}
.mw-footer-grid div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mw-footer-grid span {
  color: #626e68;
  font:
    500 9px DM Mono,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 5px;
}
.mw-footer-grid a {
  color: #aab4af;
  font-size: 12px;
}
.mw-footer-grid a:hover {
  color: var(--mint);
}
.mw-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 30px;
  border-top: 1px solid var(--line);
  color: #5d6762;
  font:
    500 9px DM Mono,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mw-brand--footer {
  width: max-content;
}

/* Compatibility helpers */
.project-info-box,
.promo-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(184, 91, 130, 0.025);
}
.apple-pay-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 7px;
  background: #fff;
  color: #000;
  font-weight: 800;
}
.compact {
  padding: 10px !important;
}
.promotions-section-gap {
  margin-top: 20px;
}
.fa-dev,
.fa-discord,
.fa-github,
.fa-link,
.fa-reddit,
.fa-spotify,
.fa-twitter,
.fa-youtube,
.fab,
.fas {
  line-height: 1;
}

@media (max-width: 1100px) {
  .mw-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #0c1012;
    box-shadow: var(--shadow);
  }
  .mw-nav-open .mw-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .mw-menu-button {
    display: block;
    justify-self: end;
  }
  .top-nav {
    grid-template-columns: auto 1fr auto;
  }
  .mw-nav-actions {
    grid-column: 3;
    grid-row: 1;
  }
  .mw-menu-button {
    grid-column: 2;
    grid-row: 1;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .timezone-card {
    min-height: 300px;
  }
  .dashboard-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-grid,
  .product-grid,
  .feature-grid,
  .partnership-grid,
  .vouch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .avatar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .mw-footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .top-nav {
    width: calc(100% - 20px);
    margin-top: 10px;
    top: 8px;
    height: 64px;
    padding: 0 10px 0 13px;
    gap: 10px;
  }
  .mw-wordmark {
    display: none;
  }
  .mw-nav-actions .mw-icon-link span {
    display: none;
  }
  .mw-account-link {
    padding: 0 10px;
  }
  .mw-nav-open .mw-nav {
    grid-template-columns: 1fr;
    top: 70px;
  }
  main,
  .page-shell,
  .dashboard-shell,
  .admin-shell,
  .auth-shell,
  .vouches-main,
  .community-page,
  .legal-page,
  .confirmation-shell {
    width: calc(100% - 28px);
  }
  main,
  .page-shell,
  .dashboard-shell,
  .admin-shell,
  .vouches-main,
  .community-page,
  .legal-page {
    padding-top: 48px;
    padding-bottom: 74px;
  }
  .hero {
    gap: 30px;
    padding-top: 12px;
  }
  .hero h2 {
    font-size: clamp(39px, 12vw, 60px);
  }
  .mini-stats {
    grid-template-columns: 1fr;
  }
  .mini-stats div {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .timezone-card {
    min-height: 250px;
    border-radius: 22px;
  }
  .featured-head,
  .avatars-clean-head,
  .section-head,
  .standard-section-head,
  .section-heading-row,
  .shop-spotlight,
  .chat-panel-head,
  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .featured-grid,
  .product-grid,
  .avatar-grid,
  .vouch-grid,
  .mini-product-grid,
  .feature-grid,
  .partnership-grid,
  .dashboard-grid,
  .metrics-grid,
  .vouches-bottom-stats {
    grid-template-columns: 1fr;
  }
  .avatars-clean-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .avatars-clean-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .toolbar,
  .vouch-toolbar,
  .service-filter {
    grid-template-columns: 1fr;
  }
  .category-select-wrap {
    grid-template-columns: auto 1fr;
  }
  .form-grid,
  .address-form-grid,
  .profile-form-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .profile-section {
    grid-template-columns: 1fr;
  }
  .cart-layout,
  .chat-shell {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
  .confirmation-summary {
    grid-template-columns: 1fr;
  }
  .confirmation-product-row {
    grid-template-columns: 52px 1fr;
  }
  .confirmation-product-row > :last-child {
    grid-column: 2;
  }
  .auth-card {
    padding: 24px 18px;
  }
  .mw-footer {
    width: calc(100% - 20px);
  }
  .mw-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 22px;
  }
  .mw-footer-top {
    padding: 22px;
  }
  .mw-footer-bottom {
    flex-direction: column;
    padding: 14px 22px;
  }
}

/* API-rendered component styling */
.product-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.product-card img,
.mini-product img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 12px;
  background: #0c1012;
  margin-bottom: 14px;
}
.product-card h3,
.mini-product h3 {
  margin-bottom: 8px;
}
.product-card p,
.mini-product p {
  color: var(--muted);
  font-size: 12px;
}
.category,
.badge,
.inventory-pill,
.status-pill,
.inventory-infinite {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #98a49e;
  background: rgba(255, 255, 255, 0.025);
  font:
    500 9px DM Mono,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.price,
.sale-price {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.original-price {
  color: #68726d;
  text-decoration: line-through;
  font-size: 12px;
  margin-right: 6px;
}
.add-to-cart {
  width: 100%;
  margin-top: 12px;
}
.mini-product {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.018);
}
.empty-state,
.download-placeholder,
.avatar-showcase-empty,
.vouch-empty {
  grid-column: 1/-1;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.cart-item,
.order-item,
.review-item,
.admin-avatar-item,
.staff-clock-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}
.cart-item {
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
}
.cart-item img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
}
.cart-controls,
.qty-btn {
  display: flex;
  align-items: center;
  gap: 7px;
}
.qty-btn {
  width: 30px;
  height: 30px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111619;
  color: var(--text);
  cursor: pointer;
}

.review-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.review-item-head,
.review-modal-header,
.vouch-card-top,
.vouch-user,
.vouch-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stars,
.rating-summary {
  color: var(--warning);
  font-size: 12px;
}
.review-form,
.reply-form,
.payroll-staff-form {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.empty-reviews {
  color: var(--muted);
  font-size: 12px;
}

.avatar-card,
.avatar-showcase-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}
.avatar-card img,
.avatar-showcase-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #0b0e10;
}
.avatar-card-body,
.avatar-showcase-info-label {
  padding: 11px 12px;
}
.avatar-filename-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.copy-filename-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
  cursor: pointer;
}
.avatar-page-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.avatar-page-btn,
.avatar-page-select {
  width: auto;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 9px;
}
.avatar-page-summary {
  color: var(--muted);
  font-size: 11px;
}

.chat-message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  background: #121719;
}
.chat-bubble {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px 13px 13px 13px;
  background: rgba(255, 255, 255, 0.025);
}
.chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 3px;
}
.chat-delete {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--danger);
  cursor: pointer;
}

.vouch-body {
  margin-top: 12px;
}
.vouch-review {
  color: #cbd3cf;
}
.vouch-proof {
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.vouch-user {
  justify-content: flex-start;
}

.status-select,
.license-duration-select {
  width: auto;
  min-width: 130px;
}
.license-duration-picker {
  display: flex;
  gap: 8px;
  align-items: center;
}
.metric-label {
  color: var(--muted);
  font:
    500 9px DM Mono,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 760px) {
  .cart-item {
    grid-template-columns: 60px 1fr;
  }
  .cart-item img {
    width: 60px;
    height: 60px;
  }
  .cart-controls {
    grid-column: 2;
  }
}

/* MERIDIAN WORKS — NOCTURNE ROSE 2026 */
:root {
  --rose: #b85b82;
  --rose-hi: #d879a0;
  --rose-deep: #54263a;
  --ink: #09070a;
  --hairline: rgba(255, 235, 244, 0.075);
}
body {
  background:
    radial-gradient(
      ellipse 70% 48% at 50% -12%,
      rgba(184, 91, 130, 0.18),
      transparent 68%
    ),
    radial-gradient(
      circle at 95% 38%,
      rgba(116, 46, 78, 0.1),
      transparent 30rem
    ),
    radial-gradient(
      circle at 3% 72%,
      rgba(184, 91, 130, 0.07),
      transparent 28rem
    ),
    #09070a;
}
body::before {
  opacity: 0.16;
  background-size: 64px 64px;
  background-image:
    linear-gradient(rgba(255, 235, 244, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 235, 244, 0.028) 1px, transparent 1px);
}
.top-nav {
  height: 76px;
  border-radius: 22px;
  background: rgba(13, 9, 12, 0.74);
  border-color: rgba(255, 235, 244, 0.085);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.025);
}
.mw-mark {
  border-radius: 13px;
  background: linear-gradient(145deg, #21131a, #120d10);
  border-color: rgba(216, 121, 160, 0.28);
  box-shadow:
    inset 0 0 24px rgba(184, 91, 130, 0.08),
    0 0 28px rgba(184, 91, 130, 0.07);
}
.mw-nav a {
  border: 1px solid transparent;
}
.mw-nav a:hover,
.mw-nav a.is-active {
  background: rgba(184, 91, 130, 0.07);
  border-color: rgba(184, 91, 130, 0.1);
}
.hero {
  min-height: 680px;
  position: relative;
}
.hero::before {
  content: "MERIDIAN";
  position: absolute;
  right: -1vw;
  top: 8%;
  font:
    800 clamp(80px, 14vw, 190px)/1 Manrope,
    sans-serif;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 121, 160, 0.055);
  pointer-events: none;
  z-index: -1;
}
.hero h2 {
  letter-spacing: -0.065em;
}
.hero-text {
  font-size: 18px;
  color: #aa9ba3;
}
.eyebrow,
.featured-label,
.avatars-clean-label,
.confirmation-eyebrow,
.chat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before,
.featured-label::before,
.avatars-clean-label::before,
.confirmation-eyebrow::before,
.chat-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}
.timezone-card {
  border-radius: 38px;
  background: linear-gradient(
    145deg,
    rgba(184, 91, 130, 0.13),
    rgba(25, 16, 22, 0.75) 38%,
    rgba(10, 8, 10, 0.88)
  );
  border-color: rgba(216, 121, 160, 0.15);
  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.44),
    inset 0 1px rgba(255, 255, 255, 0.035);
}
.featured-card,
.product-card,
.avatar-showcase-card,
.vouch-card,
.feature-card,
.metric-card,
.partnership-panel,
.avatars-clean-card,
.form-card,
.panel,
.notice-card,
.activity-card,
.legal-card,
.chat-panel,
.chat-rules-card,
.partnership-card,
.confirmation-card,
.confirmation-details-card,
.cart-summary {
  position: relative;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.035),
    rgba(184, 91, 130, 0.018) 55%,
    rgba(255, 255, 255, 0.008)
  );
  border-color: var(--hairline);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.018);
}
.featured-card::before,
.product-card::before,
.metric-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(216, 121, 160, 0.28),
    transparent
  );
}
.featured-card:hover,
.product-card:hover,
.avatar-showcase-card:hover,
.vouch-card:hover,
.feature-card:hover,
.metric-card:hover {
  transform: translateY(-5px);
  border-color: rgba(216, 121, 160, 0.23);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
.btn {
  border-radius: 13px;
  min-height: 46px;
}
.btn-primary {
  background: linear-gradient(135deg, #a94e75, #c86891);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 32px rgba(132, 47, 84, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.16);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #bb5b84, #d4779f);
}
input,
textarea,
select,
.category-select-wrap {
  background: rgba(13, 9, 12, 0.86);
  border-color: rgba(255, 235, 244, 0.085);
  border-radius: 13px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(216, 121, 160, 0.48);
  box-shadow: 0 0 0 4px rgba(184, 91, 130, 0.075);
  background: #120d11;
}
.page-hero,
.dashboard-topbar,
.admin-topbar,
.community-hero,
.partnerships-hero,
.mw-surface-hero {
  position: relative;
  padding-top: 58px;
  padding-bottom: 48px;
}
.page-hero::after,
.dashboard-topbar::after,
.admin-topbar::after,
.community-hero::after,
.partnerships-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(180px, 28%);
  height: 1px;
  background: linear-gradient(90deg, var(--rose-hi), transparent);
}
.metric-card strong {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.055em;
}
.status-pill,
.result-pill,
.user-badge,
.chat-status,
.confirmation-link-pill {
  background: rgba(184, 91, 130, 0.055);
  border-color: rgba(216, 121, 160, 0.14);
}
th {
  color: #c4adb8 !important;
  background: rgba(184, 91, 130, 0.035);
}
tr:hover td {
  background: rgba(184, 91, 130, 0.025);
}
.auth-grid {
  width: min(100%, 520px);
}
.auth-grid::before {
  content: "MERIDIAN / SECURE ACCESS";
  display: block;
  margin-bottom: 16px;
  color: #765966;
  font:
    500 9px DM Mono,
    monospace;
  letter-spacing: 0.22em;
}
::selection {
  background: #b85b82;
  color: white;
}

/* =========================================================
   MERIDIAN WORKS — SPACING NORMALIZATION
   Fixes shell/hero stacking and legacy compact collisions.
   ========================================================= */
:root {
  --space-page-top: 52px;
  --space-page-bottom: 88px;
  --space-hero-y: 34px;
  --space-section-y: 34px;
  --space-section-gap: 18px;
}

/* Page shells: one predictable outer rhythm */
main,
.page-shell,
.dashboard-shell,
.admin-shell,
.auth-shell,
.vouches-main,
.community-page,
.legal-page,
.confirmation-shell {
  margin-left: auto;
  margin-right: auto;
}

main {
  padding-top: var(--space-page-top);
  padding-bottom: var(--space-page-bottom);
}
.page-shell,
.dashboard-shell,
.admin-shell,
.vouches-main,
.community-page,
.legal-page {
  padding-top: var(--space-page-top);
  padding-bottom: var(--space-page-bottom);
}

/* Auth pages keep centering without stacking excessive top/bottom padding */
.auth-shell {
  padding-top: 48px;
  padding-bottom: 72px;
}

/* Normal page heroes no longer stack 100px+ inside an already padded shell */
.page-hero,
.dashboard-topbar,
.admin-topbar,
.community-hero,
.partnerships-hero,
.mw-surface-hero {
  padding-top: var(--space-hero-y);
  padding-bottom: 30px;
  margin-bottom: 24px;
}

/* Legacy compact helper must never collapse an entire hero */
.hero.compact,
.page-hero.compact,
.community-hero.compact,
.partnerships-hero.compact,
.admin-topbar.compact,
.dashboard-topbar.compact {
  padding: 28px 0 30px !important;
  min-height: 0;
}

/* Keep generic compact utility useful only for component-level elements */
.compact:not(.hero):not(.page-hero):not(.community-hero):not(
    .partnerships-hero
  ):not(.admin-topbar):not(.dashboard-topbar) {
  padding: 10px !important;
}

/* Marketing/editorial heroes */
.hero {
  min-height: 560px;
  padding-top: 24px;
  padding-bottom: 56px;
}
.hero.compact {
  display: grid;
  align-items: center;
  gap: 34px;
}
.hero.compact h1,
.hero.compact h2 {
  margin-bottom: 14px;
}

/* Sections use consistent separation instead of padding + margin inflation */
.featured-section,
.avatars-clean-section,
.section {
  padding-top: var(--space-section-y);
  padding-bottom: var(--space-section-y);
  margin-top: var(--space-section-gap);
}
.featured-section:first-child,
.avatars-clean-section:first-child,
.section:first-child {
  margin-top: 0;
}

/* Surface components should own internal padding, not section-sized spacing */
.form-card,
.panel,
.notice-card,
.activity-card,
.partnership-card,
.confirmation-card,
.confirmation-details-card,
.cart-summary {
  margin-top: 0;
}
.panel,
.notice-card,
.activity-card,
.partnership-card {
  padding: 22px;
}
.form-card {
  padding: 22px;
}
.confirmation-card,
.confirmation-details-card {
  padding: 26px;
}
.cart-summary {
  padding: 22px;
}

/* Avoid huge gaps between a hero and the first functional row */
.page-hero + .shop-spotlight,
.page-hero + .toolbar,
.page-hero + .product-grid,
.page-hero + .cart-layout,
.dashboard-topbar + .metrics-grid,
.dashboard-topbar + .dashboard-grid,
.dashboard-topbar + .section,
.admin-topbar + .admin-tabs,
.community-hero + .chat-shell {
  margin-top: 0;
}

.shop-spotlight {
  padding-top: 18px;
  padding-bottom: 14px;
  margin-bottom: 10px;
}
.toolbar,
.vouch-toolbar,
.service-filter {
  margin-top: 10px;
  margin-bottom: 20px;
}

.featured-head,
.avatars-clean-head,
.section-head,
.standard-section-head,
.section-heading-row,
.shop-spotlight,
.chat-panel-head {
  margin-bottom: 22px;
}

/* Grid/card rhythm */
.featured-grid,
.product-grid,
.avatar-grid,
.vouch-grid,
.mini-product-grid,
.feature-grid,
.partnership-grid,
.dashboard-grid,
.metrics-grid,
.admin-grid {
  gap: 16px;
}
.dashboard-grid + .section,
.metrics-grid + .dashboard-grid,
.metrics-grid + .section,
.admin-tabs + .admin-panel {
  margin-top: 20px;
}

/* Dashboard/account sections were receiving both shell and section inflation */
.dashboard-shell > .section,
.dashboard-shell > section.section {
  margin-top: 18px;
}
.dashboard-shell > .dashboard-topbar + .section,
.dashboard-shell > .dashboard-topbar + section.section {
  margin-top: 0;
}

/* Legal pages */
.legal-card {
  padding: 0;
}
.legal-section {
  padding: 24px 0;
}
.legal-page .section {
  padding-top: 28px;
  padding-bottom: 28px;
}

/* Vouches */
.vouches-content {
  padding-top: 20px;
}
.vouches-bottom-stats {
  margin-top: 18px;
}

/* Confirmation */
.confirmation-shell {
  padding-top: 52px;
  padding-bottom: 88px;
}
.confirmation-shell > section + section {
  margin-top: 16px;
}
.confirmation-card,
.confirmation-details-card {
  margin-top: 0;
}

/* Footer breathing room without a giant dead zone above it */
.mw-footer {
  margin-top: 0;
  margin-bottom: 20px;
}
.mw-footer-top {
  padding: 26px 28px;
}
.mw-footer-grid {
  padding: 26px 28px;
}
.mw-footer-bottom {
  padding: 14px 28px;
}

/* Responsive rhythm */
@media (max-width: 1100px) {
  .hero {
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 48px;
  }
  .page-hero,
  .dashboard-topbar,
  .admin-topbar,
  .community-hero,
  .partnerships-hero,
  .mw-surface-hero {
    padding-top: 28px;
    padding-bottom: 26px;
  }
}

@media (max-width: 760px) {
  :root {
    --space-page-top: 34px;
    --space-page-bottom: 58px;
    --space-hero-y: 22px;
    --space-section-y: 26px;
    --space-section-gap: 10px;
  }

  main,
  .page-shell,
  .dashboard-shell,
  .admin-shell,
  .vouches-main,
  .community-page,
  .legal-page {
    padding-top: var(--space-page-top);
    padding-bottom: var(--space-page-bottom);
  }

  .auth-shell {
    padding-top: 34px;
    padding-bottom: 58px;
  }

  .hero {
    gap: 26px;
    padding-top: 12px;
    padding-bottom: 38px;
  }
  .hero.compact,
  .page-hero.compact,
  .community-hero.compact,
  .partnerships-hero.compact,
  .admin-topbar.compact,
  .dashboard-topbar.compact {
    padding: 20px 0 24px !important;
  }

  .page-hero,
  .dashboard-topbar,
  .admin-topbar,
  .community-hero,
  .partnerships-hero,
  .mw-surface-hero {
    padding-top: 20px;
    padding-bottom: 22px;
    margin-bottom: 18px;
  }

  .featured-section,
  .avatars-clean-section,
  .section {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .featured-head,
  .avatars-clean-head,
  .section-head,
  .standard-section-head,
  .section-heading-row,
  .shop-spotlight,
  .chat-panel-head {
    gap: 12px;
    margin-bottom: 18px;
  }

  .featured-grid,
  .product-grid,
  .avatar-grid,
  .vouch-grid,
  .mini-product-grid,
  .feature-grid,
  .partnership-grid,
  .dashboard-grid,
  .metrics-grid,
  .admin-grid {
    gap: 12px;
  }

  .form-card,
  .panel,
  .notice-card,
  .activity-card,
  .partnership-card,
  .cart-summary {
    padding: 18px;
  }

  .confirmation-card,
  .confirmation-details-card {
    padding: 20px;
  }

  .mw-footer-top,
  .mw-footer-grid {
    padding: 20px;
  }
  .mw-footer-bottom {
    padding: 14px 20px;
  }
}

/* =========================================================
   CART — ORDER SUMMARY FOOTER OVERLAP FIX
   Keep the summary in document flow so it can never overlap
   the footer, while slightly tightening its vertical rhythm.
   ========================================================= */
body[data-page="cart"] .cart-layout {
  align-items: start;
  gap: 24px;
}

body[data-page="cart"] .cart-summary {
  position: relative;
  top: auto;
  align-self: start;
  margin-top: 0;
  padding: 18px;
  max-height: none;
  overflow: visible;
}

body[data-page="cart"] .cart-summary h3 {
  margin-bottom: 12px;
}

body[data-page="cart"] .cart-summary .summary-row,
body[data-page="cart"] .cart-summary .total-row {
  padding-top: 8px;
  padding-bottom: 8px;
}

body[data-page="cart"] .cart-summary .total-row {
  padding-top: 12px;
}

body[data-page="cart"] .cart-summary .project-info-box,
body[data-page="cart"] .cart-summary .promo-box {
  padding: 12px;
  margin-top: 10px;
}

body[data-page="cart"] .cart-summary .helper {
  margin-bottom: 8px;
  line-height: 1.55;
}

body[data-page="cart"] .cart-summary textarea {
  min-height: 96px;
  max-height: 150px;
  resize: vertical;
}

body[data-page="cart"] .cart-summary .promo-fields {
  gap: 6px;
}

body[data-page="cart"] .cart-summary #checkoutBtn,
body[data-page="cart"] .cart-summary #checkoutBtn + .btn {
  margin-top: 10px;
}

body[data-page="cart"] .page-shell {
  padding-bottom: 80px;
}

@media (max-width: 760px) {
  body[data-page="cart"] .cart-summary {
    padding: 16px;
  }

  body[data-page="cart"] .page-shell {
    padding-bottom: 60px;
  }
}

/* =========================================================
   CART — COLLAPSIBLE SUMMARY SECTIONS
   Discounts/gift cards and project requirements are collapsed
   by default and expand from their arrow/header.
   ========================================================= */
body[data-page="cart"] .summary-accordion {
  display: block;
  padding: 0;
  overflow: hidden;
}

body[data-page="cart"] .summary-accordion-trigger {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  color: var(--text);
  font-weight: 650;
}

body[data-page="cart"] .summary-accordion-trigger::-webkit-details-marker {
  display: none;
}

body[data-page="cart"] .summary-accordion-trigger::marker {
  display: none;
  content: "";
}

body[data-page="cart"] .summary-accordion-trigger:hover {
  background: rgba(184, 91, 130, 0.045);
}

body[data-page="cart"] .summary-accordion-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}

body[data-page="cart"] .summary-accordion[open] .summary-accordion-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
  border-color: var(--rose-hi, var(--mint-strong));
}

body[data-page="cart"] .summary-accordion-content {
  padding: 0 14px 14px;
  animation: cartAccordionIn 0.18s ease both;
}

body[data-page="cart"] .summary-accordion-content .helper:first-child {
  margin-top: 0;
}

body[data-page="cart"] .summary-accordion[open] .summary-accordion-trigger {
  border-bottom: 1px solid rgba(255, 235, 244, 0.055);
}

body[data-page="cart"] .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes cartAccordionIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="cart"] .summary-accordion-chevron,
  body[data-page="cart"] .summary-accordion-content {
    transition: none;
    animation: none;
  }
}

/* =========================================================
   CART — PREMIUM ORDER SUMMARY
   Exact layout pass based on the approved visual direction.
   ========================================================= */
body[data-page="cart"] .cart-summary-premium {
  width: 100%;
  padding: 22px;
  border: 1px solid rgba(255, 235, 244, 0.09);
  border-radius: 24px;
  background:
    linear-gradient(
      150deg,
      rgba(255, 255, 255, 0.026),
      rgba(184, 91, 130, 0.016) 58%,
      rgba(255, 255, 255, 0.009)
    ),
    rgba(12, 9, 12, 0.9);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.018);
}

body[data-page="cart"] .cart-summary-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

body[data-page="cart"] .cart-summary-heading-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(216, 121, 160, 0.16);
  border-radius: 12px;
  color: var(--rose-hi, #d879a0);
  background: rgba(184, 91, 130, 0.035);
}

body[data-page="cart"] .cart-summary-heading-icon svg {
  width: 21px;
  height: 21px;
}

body[data-page="cart"] .cart-summary-heading h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

body[data-page="cart"] .cart-summary-pricing {
  padding: 6px 0 2px;
}

body[data-page="cart"] .cart-summary-pricing .summary-row {
  min-height: 44px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  font-size: 14px;
}

body[data-page="cart"] .cart-summary-pricing .summary-row:last-child {
  border-bottom: 0;
}

body[data-page="cart"] .cart-summary-pricing .summary-row strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

body[data-page="cart"] .cart-summary-pricing .total-row {
  min-height: 64px;
  margin-top: 1px;
  padding: 17px 0 13px;
  font-size: 19px;
  border-top: 0;
}

body[data-page="cart"] .cart-summary-pricing .total-row span {
  font-weight: 750;
}

body[data-page="cart"] .cart-summary-pricing .total-row strong {
  color: var(--rose-hi, #d879a0);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

body[data-page="cart"] .cart-summary-options {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

body[data-page="cart"] .cart-summary-premium .summary-accordion {
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 235, 244, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.012);
  overflow: hidden;
}

body[data-page="cart"] .cart-summary-premium .summary-accordion:hover {
  border-color: rgba(216, 121, 160, 0.18);
  background: rgba(184, 91, 130, 0.022);
}

body[data-page="cart"] .cart-summary-premium .summary-accordion-trigger {
  min-height: 82px;
  padding: 15px 16px;
  gap: 12px;
}

body[data-page="cart"] .summary-accordion-leading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

body[data-page="cart"] .summary-option-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  color: var(--rose-hi, #d879a0);
}

body[data-page="cart"] .summary-option-icon svg {
  width: 24px;
  height: 24px;
}

body[data-page="cart"] .summary-option-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

body[data-page="cart"] .summary-option-copy strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.018em;
}

body[data-page="cart"] .summary-option-copy small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 450;
}

body[data-page="cart"] .cart-summary-premium .summary-accordion-chevron {
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-right-width: 1.5px;
  border-bottom-width: 1.5px;
}

body[data-page="cart"] .cart-summary-premium .summary-accordion-content {
  padding: 0 16px 16px 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

body[data-page="cart"]
  .cart-summary-premium
  .summary-accordion-content
  .promo-fields {
  padding-top: 14px;
}

body[data-page="cart"]
  .cart-summary-premium
  .summary-accordion-content
  > .helper:first-child {
  padding-top: 14px;
}

body[data-page="cart"] .cart-summary-actions {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

body[data-page="cart"] .cart-summary-actions .btn {
  width: 100%;
  min-height: 49px;
  margin: 0 !important;
  border-radius: 13px;
}

body[data-page="cart"] .cart-checkout-primary {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  padding: 0 15px;
  font-size: 13.5px;
  font-weight: 750;
  background: linear-gradient(110deg, #b8507e 0%, #d96e9d 52%, #c9527f 100%);
  box-shadow:
    0 12px 30px rgba(184, 80, 126, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.16);
}

body[data-page="cart"] .cart-checkout-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(110deg, #c15c89 0%, #e17ba8 52%, #d05d89 100%);
}

body[data-page="cart"] .checkout-lock,
body[data-page="cart"] .shopping-cart-icon {
  display: grid;
  place-items: center;
}

body[data-page="cart"] .checkout-lock svg {
  width: 17px;
  height: 17px;
}

body[data-page="cart"] .checkout-arrow {
  justify-self: end;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

body[data-page="cart"] .cart-keep-shopping {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(255, 235, 244, 0.11);
  font-size: 13px;
  font-weight: 700;
}

body[data-page="cart"] .cart-keep-shopping:hover {
  background: rgba(184, 91, 130, 0.035);
  border-color: rgba(216, 121, 160, 0.18);
}

body[data-page="cart"] .shopping-cart-icon {
  color: var(--rose-hi, #d879a0);
}

body[data-page="cart"] .shopping-cart-icon svg {
  width: 20px;
  height: 20px;
}

body[data-page="cart"] .cart-summary-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  color: var(--muted);
}

body[data-page="cart"] .cart-summary-secure > span {
  display: grid;
  place-items: center;
  color: var(--rose-hi, #d879a0);
}

body[data-page="cart"] .cart-summary-secure svg {
  width: 17px;
  height: 17px;
}

body[data-page="cart"] .cart-summary-secure p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
}

body[data-page="cart"] .cart-summary-secure strong {
  color: var(--rose-hi, #d879a0);
  font-weight: 700;
}

body[data-page="cart"] .cart-summary-premium #cartError:empty,
body[data-page="cart"] .cart-summary-premium #paypal-button-container:empty {
  display: none;
}

@media (max-width: 760px) {
  body[data-page="cart"] .cart-summary-premium {
    padding: 18px;
    border-radius: 20px;
  }

  body[data-page="cart"] .cart-summary-heading {
    padding-bottom: 15px;
  }

  body[data-page="cart"] .cart-summary-premium .summary-accordion-trigger {
    min-height: 76px;
    padding: 13px 14px;
  }

  body[data-page="cart"] .cart-summary-premium .summary-accordion-content {
    padding: 0 14px 14px;
  }

  body[data-page="cart"] .summary-option-copy small {
    font-size: 11px;
  }
}

/* =========================================================
   MERIDIAN WORKS — GLOBAL TOAST NOTIFICATIONS
   ========================================================= */
.mw-toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 32px));
  pointer-events: none;
}

.mw-toast {
  --mw-toast-color: #d879a0;
  --mw-toast-soft: rgba(216, 121, 160, 0.12);
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  align-items: start;
  gap: 12px;
  min-height: 78px;
  padding: 14px 14px 14px 15px;
  border: 1px solid rgba(255, 235, 244, 0.09);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.035),
      rgba(184, 91, 130, 0.025) 64%,
      rgba(255, 255, 255, 0.012)
    ),
    rgba(13, 9, 12, 0.96);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.38),
    0 3px 14px rgba(0, 0, 0, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.97);
  transition:
    opacity 0.26s ease,
    transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.2s ease;
}

.mw-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.mw-toast.is-leaving {
  opacity: 0;
  transform: translate3d(22px, 12px, 0) scale(0.96);
}

.mw-toast:hover {
  border-color: color-mix(in srgb, var(--mw-toast-color) 28%, transparent);
}

.mw-toast-success {
  --mw-toast-color: #70d8ad;
  --mw-toast-soft: rgba(112, 216, 173, 0.1);
}

.mw-toast-error {
  --mw-toast-color: #f07498;
  --mw-toast-soft: rgba(240, 116, 152, 0.11);
}

.mw-toast-warning {
  --mw-toast-color: #e7b86e;
  --mw-toast-soft: rgba(231, 184, 110, 0.11);
}

.mw-toast-info {
  --mw-toast-color: #d879a0;
  --mw-toast-soft: rgba(216, 121, 160, 0.11);
}

.mw-toast-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--mw-toast-color) 20%,
    var(--mw-toast-color) 80%,
    transparent
  );
  box-shadow: 0 0 16px
    color-mix(in srgb, var(--mw-toast-color) 35%, transparent);
}

.mw-toast-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--mw-toast-color) 26%, transparent);
  border-radius: 11px;
  color: var(--mw-toast-color);
  background: var(--mw-toast-soft);
}

.mw-toast-icon svg {
  width: 19px;
  height: 19px;
}

.mw-toast-copy {
  min-width: 0;
  padding-top: 1px;
}

.mw-toast-copy strong {
  display: block;
  margin: 0 0 4px;
  color: var(--text, #f8f3f6);
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.mw-toast-copy p {
  margin: 0;
  color: var(--muted, #a2949b);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mw-toast-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -2px -3px 0 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted-2, #76666f);
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.mw-toast-close:hover {
  color: var(--text, #f8f3f6);
  background: rgba(255, 255, 255, 0.055);
}

.mw-toast-close svg {
  width: 15px;
  height: 15px;
}

.mw-toast-progress {
  --mw-toast-duration: 4600ms;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, var(--mw-toast-color));
  opacity: 0.7;
  animation: mwToastProgress var(--mw-toast-duration) linear forwards;
}

.mw-toast-source-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes mwToastProgress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (max-width: 640px) {
  .mw-toast-stack {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .mw-toast {
    grid-template-columns: 36px minmax(0, 1fr) 28px;
    gap: 10px;
    min-height: 72px;
    padding: 12px;
    border-radius: 14px;
  }

  .mw-toast-icon {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mw-toast {
    transition: opacity 0.15s ease;
    transform: none !important;
  }

  .mw-toast-progress {
    display: none;
  }
}

/* =========================================================
   MERIDIAN WORKS — PREMIUM PRODUCT CARD
   ========================================================= */
.product-grid {
  align-items: stretch;
}

.mw-product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 235, 244, 0.09);
  border-radius: 22px;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.027),
      rgba(184, 91, 130, 0.014) 56%,
      rgba(255, 255, 255, 0.007)
    ),
    rgba(11, 8, 11, 0.88);
  box-shadow:
    0 22px 65px rgba(0, 0, 0, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.018);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.2s ease,
    box-shadow 0.28s ease;
}

.mw-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(216, 121, 160, 0.2);
  box-shadow:
    0 28px 75px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(184, 91, 130, 0.028);
}

.mw-product-media {
  position: relative;
  aspect-ratio: 1.18 / 1;
  min-height: 250px;
  margin: 14px 14px 0;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 50% 70%,
      rgba(184, 91, 130, 0.11),
      transparent 40%
    ),
    #090d0e;
}

.mw-product-media > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.3s ease;
}

.mw-product-card:hover .mw-product-media > img {
  transform: scale(1.025);
}

.mw-product-media-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(5, 5, 7, 0.08),
      transparent 42%,
      rgba(5, 4, 6, 0.24)
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(184, 91, 130, 0.12),
      transparent 45%
    );
}

.mw-product-badge,
.mw-product-image-count,
.mw-product-favorite {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 235, 244, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mw-product-badge {
  top: 14px;
  left: 14px;
  min-height: 31px;
  padding: 7px 11px;
  border-radius: 10px;
  color: #fff;
  background: rgba(178, 74, 119, 0.78);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.13),
    0 6px 20px rgba(0, 0, 0, 0.16);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mw-product-favorite {
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  color: #d879a0;
  background: rgba(8, 7, 9, 0.72);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.mw-product-favorite:hover {
  transform: scale(1.06);
  border-color: rgba(216, 121, 160, 0.3);
  background: rgba(184, 91, 130, 0.09);
}

.mw-product-favorite.is-active {
  color: #f285b0;
  background: rgba(184, 91, 130, 0.14);
  border-color: rgba(216, 121, 160, 0.32);
}

.mw-product-favorite.is-active svg path {
  fill: currentColor;
}

.mw-product-favorite svg {
  width: 19px;
  height: 19px;
}

.mw-product-image-count {
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ded2d8;
  background: rgba(8, 7, 9, 0.7);
  font-size: 10px;
  line-height: 1;
  font-weight: 650;
}

.mw-product-image-count svg {
  width: 14px;
  height: 14px;
}

.mw-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.mw-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.mw-product-card .category {
  display: inline-flex;
  width: fit-content;
  min-height: 27px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid rgba(255, 235, 244, 0.12);
  border-radius: 999px;
  color: #d6c8cf;
  background: rgba(255, 255, 255, 0.015);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mw-product-stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b8abb2;
  font:
    600 9.5px/1 "DM Mono",
    monospace;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.mw-product-stock i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #72d79c;
  box-shadow: 0 0 10px rgba(114, 215, 156, 0.34);
}

.mw-product-stock.is-sold-out i {
  background: #e66f90;
  box-shadow: 0 0 10px rgba(230, 111, 144, 0.3);
}

.mw-product-title {
  margin: 0 0 9px;
  color: var(--text);
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.mw-product-card .rating-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
}

.mw-product-card .rating-summary .stars {
  letter-spacing: 1px;
}

.mw-product-description {
  margin: 0 0 16px !important;
  color: var(--muted) !important;
  font-size: 12.5px !important;
  line-height: 1.62 !important;
}

.mw-product-card .license-duration-picker {
  margin: 0 0 15px;
}

.mw-product-purchase {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.mw-product-price-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 13px;
}

.mw-product-card .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.mw-product-card .price .sale-price {
  color: var(--text);
  font-size: inherit;
}

.mw-product-card .price .original-price {
  color: #675e63;
  font-size: 14px;
  font-weight: 600;
  text-decoration-thickness: 1px;
}

.mw-product-discount {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 9px;
  color: #ee84ad;
  background: rgba(184, 91, 130, 0.1);
  border: 1px solid rgba(216, 121, 160, 0.08);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.mw-product-actions {
  display: grid;
  gap: 9px;
}

.mw-product-actions .btn {
  width: 100%;
  min-height: 48px;
  margin: 0;
  border-radius: 13px;
}

.mw-product-cart,
.mw-product-reviews {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.mw-product-cart svg,
.mw-product-reviews svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.mw-product-cart {
  background: linear-gradient(105deg, #b34f7a, #ce6892 52%, #bd507c) !important;
  box-shadow:
    0 13px 32px rgba(170, 67, 111, 0.17),
    inset 0 1px rgba(255, 255, 255, 0.14) !important;
}

.mw-product-reviews {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.008) !important;
  border-color: rgba(255, 235, 244, 0.105) !important;
}

.mw-product-reviews:hover {
  border-color: rgba(216, 121, 160, 0.2) !important;
  background: rgba(184, 91, 130, 0.03) !important;
}

@media (max-width: 760px) {
  .mw-product-media {
    min-height: 220px;
    margin: 11px 11px 0;
  }

  .mw-product-body {
    padding: 15px;
  }

  .mw-product-title {
    font-size: 21px;
  }

  .mw-product-card .price {
    font-size: 23px;
  }
}

/* =========================================================
   PRODUCTS PAGE — IMMERSIVE MARKETPLACE EXPERIENCE
   ========================================================= */
body[data-page="products"] .page-shell.products-experience {
  width: min(1500px, calc(100% - 42px));
  padding-top: 34px;
}

.products-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 0.78fr);
  min-height: 430px;
  align-items: center;
  gap: 42px;
  padding: 34px 26px 30px;
  overflow: hidden;
}

.products-hero::before {
  content: "";
  position: absolute;
  inset: auto 3% 0 40%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(216, 121, 160, 0.28),
    transparent
  );
}

.products-hero-copy {
  position: relative;
  z-index: 2;
}

.products-hero h1 {
  max-width: 720px;
  margin: 12px 0 17px;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.products-hero h1 span {
  color: var(--rose-hi, #d879a0);
}

.products-hero-text {
  max-width: 630px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.products-trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 27px;
}

.products-trust-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 235, 244, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.014);
}

.products-trust-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  color: var(--rose-hi);
  background: rgba(184, 91, 130, 0.08);
  border: 1px solid rgba(216, 121, 160, 0.09);
  font-size: 18px;
}

.products-trust-card div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.products-trust-card strong {
  color: var(--text);
  font-size: 10.5px;
  white-space: nowrap;
}

.products-trust-card small {
  color: var(--muted-2);
  font-size: 8.5px;
  white-space: nowrap;
}

.products-hero-art {
  position: relative;
  min-height: 390px;
  isolation: isolate;
}

.products-hero-art::before {
  content: "";
  position: absolute;
  inset: 10% 5% 0;
  z-index: -3;
  background: radial-gradient(
    circle at 50% 52%,
    rgba(213, 67, 131, 0.24),
    rgba(184, 91, 130, 0.08) 32%,
    transparent 68%
  );
  filter: blur(7px);
}

.products-hero-pedestal {
  position: absolute;
  left: 50%;
  bottom: 38px;
  width: 310px;
  height: 52px;
  transform: translateX(-50%);
  border: 1px solid rgba(232, 108, 163, 0.55);
  border-radius: 50%;
  background: linear-gradient(180deg, #25111d, #0d090c 70%);
  box-shadow:
    0 0 0 7px rgba(184, 91, 130, 0.035),
    0 0 34px rgba(213, 67, 131, 0.26),
    inset 0 4px 15px rgba(216, 121, 160, 0.08);
}

.products-hero-pedestal::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: #de6e9f;
  box-shadow:
    0 0 16px #c74d85,
    0 0 34px rgba(199, 77, 133, 0.5);
}

.products-hero-box {
  position: absolute;
  left: 50%;
  bottom: 70px;
  display: flex;
  width: 190px;
  height: 245px;
  transform: translateX(-50%) perspective(600px) rotateY(-5deg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 108, 163, 0.36);
  border-radius: 5px;
  background: linear-gradient(145deg, #17131a 0%, #090a0c 55%, #151017 100%);
  box-shadow:
    -16px 16px 35px rgba(0, 0, 0, 0.34),
    0 0 42px rgba(184, 91, 130, 0.14),
    inset -2px 0 rgba(216, 121, 160, 0.07);
}

.products-hero-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.04),
    transparent 25%,
    transparent 72%,
    rgba(216, 121, 160, 0.04)
  );
  pointer-events: none;
}

.products-hero-mark {
  width: 68px !important;
  height: 68px !important;
  margin-bottom: 20px;
  border-radius: 20px !important;
  transform: scale(1.2);
}

.products-hero-box > strong {
  color: #fff;
  font-size: 17px;
  letter-spacing: 0.22em;
}

.products-hero-box > small {
  margin-top: 5px;
  color: var(--rose-hi);
  font-size: 9px;
  letter-spacing: 0.4em;
}

.products-orbit {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: -1;
  border: 1px solid rgba(216, 121, 160, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
}

.products-orbit-a {
  width: 470px;
  height: 180px;
}
.products-orbit-b {
  width: 390px;
  height: 290px;
  transform: translate(-50%, -50%) rotate(58deg);
  opacity: 0.55;
}

.products-float-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 74px;
  height: 82px;
  border: 1px solid rgba(216, 121, 160, 0.22);
  border-radius: 12px;
  color: var(--rose-hi);
  background: linear-gradient(
    145deg,
    rgba(184, 91, 130, 0.12),
    rgba(11, 8, 11, 0.82)
  );
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  font-size: 25px;
  transform: rotate(var(--r, 0deg));
}

.products-float-card small {
  color: #9c8993;
  font:
    600 6px/1 "DM Mono",
    monospace;
  letter-spacing: 0.15em;
}

.products-float-card-a {
  left: 10%;
  top: 22%;
  --r: -8deg;
}
.products-float-card-b {
  right: 7%;
  top: 12%;
  --r: 7deg;
}
.products-float-card-c {
  right: 3%;
  bottom: 23%;
  --r: 3deg;
}

.products-market {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 14px;
  margin-top: 4px;
  padding: 0 0 18px;
}

.products-filter-panel,
.products-catalogue {
  border: 1px solid rgba(255, 235, 244, 0.075);
  background: rgba(12, 9, 12, 0.62);
}

.products-filter-panel {
  align-self: start;
  padding: 16px;
  border-radius: 16px;
}

.products-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.products-filter-heading > div {
  display: grid;
  gap: 3px;
}

.products-filter-heading span,
.products-filter-label {
  color: var(--rose-hi);
  font:
    600 8px/1 "DM Mono",
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.products-filter-heading strong {
  font-size: 13px;
}

.products-clear-filter {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}

.products-clear-filter:hover {
  color: var(--text);
  border-color: rgba(216, 121, 160, 0.2);
}

.products-filter-section {
  display: grid;
  gap: 9px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.products-filter-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.products-category-list {
  display: grid;
  gap: 4px;
}

.products-category-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.products-category-list button b {
  color: var(--muted-2);
  font-size: 13px;
}

.products-category-list button:hover,
.products-category-list button.is-active {
  color: var(--text);
  border-color: rgba(216, 121, 160, 0.1);
  background: linear-gradient(
    90deg,
    rgba(184, 91, 130, 0.12),
    rgba(184, 91, 130, 0.025)
  );
}

.products-category-list button.is-active b {
  color: var(--rose-hi);
}

.products-filter-panel #categorySelect {
  width: 100%;
  min-height: 38px;
}

.products-filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 35px;
  padding: 7px 9px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 10px;
}

.products-filter-link:hover {
  color: var(--text);
  background: rgba(184, 91, 130, 0.04);
}

.products-filter-link b {
  color: var(--rose-hi);
}

.products-catalogue {
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
}

.products-catalogue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.products-search {
  position: relative;
  display: flex;
  width: min(430px, 100%);
  align-items: center;
}

.products-search svg {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  pointer-events: none;
}

.products-search input {
  width: 100%;
  min-height: 42px;
  padding-left: 39px;
}

.products-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.products-toolbar-actions .result-pill {
  white-space: nowrap;
}

.products-sort-wrap {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 8px 0 11px;
  border: 1px solid rgba(255, 235, 244, 0.085);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(13, 9, 12, 0.8);
  font-size: 10px;
}

.products-sort-wrap select {
  min-height: 32px;
  padding: 0 26px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-size: 10px;
}

.products-view-toggle {
  display: flex;
  gap: 4px;
}

.products-view-toggle button {
  display: grid;
  width: 42px;
  height: 42px;
  place-content: center;
  padding: 0;
  border: 1px solid rgba(255, 235, 244, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
}

.products-view-toggle button.is-active {
  border-color: rgba(216, 121, 160, 0.2);
  color: var(--rose-hi);
  background: rgba(184, 91, 130, 0.08);
}

#productGridView {
  grid-template-columns: repeat(2, 5px);
  gap: 3px;
}

#productGridView span {
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 1px;
}

#productListView i {
  display: block;
  width: 14px;
  height: 1px;
  margin: 2px 0;
  background: currentColor;
}

.products-grid-enhanced {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.products-grid-enhanced .mw-product-card {
  border-radius: 16px;
}

.products-grid-enhanced .mw-product-media {
  min-height: 190px;
  margin: 9px 9px 0;
  border-radius: 12px;
}

.products-grid-enhanced .mw-product-body {
  padding: 13px;
}

.products-grid-enhanced .mw-product-title {
  font-size: 18px;
}

.products-grid-enhanced .mw-product-description {
  font-size: 11px !important;
}

.products-grid-enhanced.is-list-view {
  grid-template-columns: 1fr;
}

.products-grid-enhanced.is-list-view .mw-product-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.products-grid-enhanced.is-list-view .mw-product-media {
  min-height: 245px;
  height: calc(100% - 18px);
}

.products-grid-enhanced.is-list-view .mw-product-body {
  padding: 18px 20px 18px 12px;
}

.products-benefits {
  display: grid;
  grid-template-columns: 0.85fr 0.9fr 0.95fr 1.35fr;
  margin: 0 0 34px;
  border: 1px solid rgba(255, 235, 244, 0.075);
  border-radius: 16px;
  background: rgba(12, 9, 12, 0.62);
  overflow: hidden;
}

.products-benefits article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
}

.products-benefits article:last-child {
  border-right: 0;
}

.products-benefits article > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--rose-hi);
  background: rgba(184, 91, 130, 0.08);
  font-size: 20px;
}

.products-benefits article > div {
  min-width: 0;
}

.products-benefits strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

.products-benefits p {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.products-help-card {
  display: grid !important;
  grid-template-columns: 40px 1fr auto;
}

.products-help-card .btn {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
  font-size: 9.5px;
}

@media (max-width: 1180px) {
  .products-hero {
    grid-template-columns: 1fr;
  }

  .products-hero-art {
    display: none;
  }

  .products-trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 700px;
  }

  .products-grid-enhanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-benefits article:nth-child(2) {
    border-right: 0;
  }

  .products-benefits article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  }
}

@media (max-width: 860px) {
  body[data-page="products"] .page-shell.products-experience {
    width: min(100% - 24px, 1500px);
  }

  .products-hero {
    min-height: auto;
    padding: 24px 4px 28px;
  }

  .products-hero h1 {
    font-size: clamp(38px, 10vw, 58px);
  }

  .products-market {
    grid-template-columns: 1fr;
  }

  .products-filter-panel {
    display: none;
  }

  .products-catalogue-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .products-search {
    width: 100%;
  }

  .products-toolbar-actions {
    flex-wrap: wrap;
  }

  .products-toolbar-actions .result-pill {
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .products-trust-row,
  .products-grid-enhanced,
  .products-benefits {
    grid-template-columns: 1fr;
  }

  .products-trust-card strong,
  .products-trust-card small {
    white-space: normal;
  }

  .products-benefits article {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  }

  .products-benefits article:last-child {
    border-bottom: 0;
  }

  .products-help-card {
    grid-template-columns: 40px 1fr !important;
  }

  .products-help-card .btn {
    grid-column: 1 / -1;
  }

  .products-grid-enhanced.is-list-view .mw-product-card {
    display: flex;
  }

  .products-grid-enhanced.is-list-view .mw-product-media {
    min-height: 210px;
    height: auto;
  }

  .products-view-toggle {
    display: none;
  }
}

.products-hero-image-wrap {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.products-hero-image {
  width: 100%;
  max-width: 620px;
  height: auto;
  max-height: 390px;
  object-fit: contain;
  display: block;
}

/* =========================================================
   PRODUCTS — SORT DROPDOWN VISIBILITY FIX
   ========================================================= */
body[data-page="products"] .products-sort-wrap {
  position: relative;
  min-width: 170px;
  padding: 0 10px 0 12px;
  background: rgba(13, 9, 12, 0.96);
  border: 1px solid rgba(255, 235, 244, 0.1);
  border-radius: 11px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.018);
}

body[data-page="products"] .products-sort-wrap span {
  color: var(--muted-2);
  font-size: 10px;
  white-space: nowrap;
}

body[data-page="products"] .products-sort-wrap select {
  width: 100%;
  min-width: 118px;
  min-height: 40px;
  padding: 0 28px 0 4px;
  border: 0;
  outline: 0;
  background-color: #0f0b0e;
  color: #f8f3f6;
  color-scheme: dark;
  box-shadow: none;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

body[data-page="products"] .products-sort-wrap select:hover {
  color: #ffffff;
}

body[data-page="products"] .products-sort-wrap select:focus {
  background-color: #120d11;
  box-shadow: none;
}

body[data-page="products"] .products-sort-wrap select option,
body[data-page="products"] .products-sort-wrap select optgroup {
  background: #120d11;
  color: #f8f3f6;
}

body[data-page="products"] .products-sort-wrap select option:checked {
  background: #3b1d2b;
  color: #ffffff;
}

/* Helps Chromium/Windows keep a readable native dropdown palette */
@supports (color-scheme: dark) {
  body[data-page="products"] .products-sort-wrap select {
    color-scheme: dark;
  }
}

@media (max-width: 640px) {
  body[data-page="products"] .products-sort-wrap {
    min-width: 155px;
    flex: 1 1 155px;
  }

  body[data-page="products"] .products-sort-wrap select {
    min-width: 0;
  }
}

/* =========================================================
   PRODUCTS — CUSTOM SORT POPOVER
   ========================================================= */
.products-sort-popover {
  position: relative;
  z-index: 40;
}

.products-sort-trigger {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 10px;
  min-width: 184px;
  min-height: 44px;
  padding: 7px 11px 7px 9px;
  border: 1px solid rgba(255, 235, 244, 0.09);
  border-radius: 12px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.025),
      rgba(184, 91, 130, 0.018)
    ),
    rgba(13, 9, 12, 0.88);
  color: var(--text);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.018);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.products-sort-trigger:hover,
.products-sort-popover.is-open .products-sort-trigger {
  border-color: rgba(216, 121, 160, 0.22);
  background:
    linear-gradient(
      145deg,
      rgba(184, 91, 130, 0.05),
      rgba(184, 91, 130, 0.018)
    ),
    rgba(13, 9, 12, 0.94);
}

.products-sort-trigger:active {
  transform: translateY(1px);
}

.products-sort-trigger-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(216, 121, 160, 0.12);
  border-radius: 9px;
  color: var(--rose-hi, #d879a0);
  background: rgba(184, 91, 130, 0.055);
}

.products-sort-trigger-icon svg {
  width: 16px;
  height: 16px;
}

.products-sort-trigger-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.products-sort-trigger-copy small {
  color: var(--muted-2);
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.products-sort-trigger-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-sort-trigger-chevron {
  width: 7px;
  height: 7px;
  justify-self: end;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.products-sort-popover.is-open .products-sort-trigger-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
  border-color: var(--rose-hi, #d879a0);
}

.products-sort-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 270px;
  padding: 7px;
  border: 1px solid rgba(255, 235, 244, 0.09);
  border-radius: 14px;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.035),
      rgba(184, 91, 130, 0.024) 58%,
      rgba(255, 255, 255, 0.01)
    ),
    rgba(12, 8, 11, 0.985);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 5px 18px rgba(0, 0, 0, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform-origin: top right;
  animation: productsSortPopoverIn 0.18s ease both;
}

.products-sort-menu[hidden] {
  display: none !important;
}

.products-sort-menu::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 22px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border-left: 1px solid rgba(255, 235, 244, 0.08);
  border-top: 1px solid rgba(255, 235, 244, 0.08);
  background: #100b0f;
}

.products-sort-menu button {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.products-sort-menu button:hover,
.products-sort-menu button:focus-visible {
  outline: 0;
  color: var(--text);
  border-color: rgba(216, 121, 160, 0.08);
  background: rgba(184, 91, 130, 0.045);
}

.products-sort-menu button.is-active {
  color: var(--text);
  border-color: rgba(216, 121, 160, 0.14);
  background: linear-gradient(
    90deg,
    rgba(184, 91, 130, 0.12),
    rgba(184, 91, 130, 0.03)
  );
}

.products-sort-option-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--rose-hi, #d879a0);
  background: rgba(184, 91, 130, 0.06);
  border: 1px solid rgba(216, 121, 160, 0.08);
  font:
    700 12px/1 "DM Mono",
    monospace;
}

.products-sort-menu button > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.products-sort-menu button strong {
  color: inherit;
  font-size: 10.5px;
  line-height: 1.15;
  font-weight: 700;
}

.products-sort-menu button small {
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.2;
}

.products-sort-menu button > b {
  justify-self: end;
  color: transparent;
  font-size: 11px;
}

.products-sort-menu button.is-active > b {
  color: var(--rose-hi, #d879a0);
}

@keyframes productsSortPopoverIn {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .products-sort-popover {
    flex: 1 1 180px;
  }

  .products-sort-trigger {
    width: 100%;
    min-width: 0;
  }

  .products-sort-menu {
    left: 0;
    right: auto;
    width: min(290px, calc(100vw - 32px));
    transform-origin: top left;
  }

  .products-sort-menu::before {
    left: 22px;
    right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .products-sort-menu {
    animation: none;
  }

  .products-sort-trigger-chevron,
  .products-sort-trigger {
    transition: none;
  }
}

/* =========================================================
   PRODUCTS — CUSTOM CATEGORY POPOVER
   ========================================================= */
.products-category-popover {
  position: relative;
}
.products-category-trigger {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 7px 11px 7px 9px;
  border: 1px solid rgba(255, 235, 244, 0.09);
  border-radius: 12px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.023),
      rgba(184, 91, 130, 0.014)
    ),
    rgba(13, 9, 12, 0.88);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}
.products-category-trigger:hover,
.products-category-popover.is-open .products-category-trigger {
  border-color: rgba(216, 121, 160, 0.22);
  background:
    linear-gradient(
      145deg,
      rgba(184, 91, 130, 0.05),
      rgba(184, 91, 130, 0.018)
    ),
    rgba(13, 9, 12, 0.94);
}
.products-category-trigger-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(216, 121, 160, 0.11);
  border-radius: 9px;
  color: var(--rose-hi, #d879a0);
  background: rgba(184, 91, 130, 0.05);
}
.products-category-trigger-icon svg {
  width: 16px;
  height: 16px;
}
.products-category-trigger-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.products-category-trigger-copy small {
  color: var(--muted-2);
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.products-category-trigger-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.products-category-trigger-chevron {
  width: 7px;
  height: 7px;
  justify-self: end;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.products-category-popover.is-open .products-category-trigger-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
  border-color: var(--rose-hi, #d879a0);
}
.products-category-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 65;
  width: min(290px, calc(100vw - 38px));
  max-height: 310px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid rgba(255, 235, 244, 0.09);
  border-radius: 14px;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.035),
      rgba(184, 91, 130, 0.024) 58%,
      rgba(255, 255, 255, 0.01)
    ),
    rgba(12, 8, 11, 0.985);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 5px 18px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: productsCategoryPopoverIn 0.18s ease both;
}
.products-category-menu[hidden] {
  display: none !important;
}
.products-category-menu button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}
.products-category-menu button:hover,
.products-category-menu button:focus-visible {
  outline: 0;
  color: var(--text);
  border-color: rgba(216, 121, 160, 0.08);
  background: rgba(184, 91, 130, 0.045);
}
.products-category-menu button.is-active {
  color: var(--text);
  border-color: rgba(216, 121, 160, 0.14);
  background: linear-gradient(
    90deg,
    rgba(184, 91, 130, 0.12),
    rgba(184, 91, 130, 0.03)
  );
}
.products-category-option-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--rose-hi, #d879a0);
  background: rgba(184, 91, 130, 0.06);
  border: 1px solid rgba(216, 121, 160, 0.08);
  font:
    700 12px/1 "DM Mono",
    monospace;
}
.products-category-menu button > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.products-category-menu button strong {
  color: inherit;
  font-size: 10.5px;
  line-height: 1.15;
  font-weight: 700;
}
.products-category-menu button small {
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.2;
}
.products-category-menu button > b {
  justify-self: end;
  color: transparent;
  font-size: 11px;
}
.products-category-menu button.is-active > b {
  color: var(--rose-hi, #d879a0);
}
.products-category-menu::-webkit-scrollbar {
  width: 7px;
}
.products-category-menu::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(216, 121, 160, 0.22);
  background-clip: padding-box;
}
@keyframes productsCategoryPopoverIn {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .products-category-menu {
    animation: none;
  }
  .products-category-trigger-chevron,
  .products-category-trigger {
    transition: none;
  }
}

/* =========================================================
   MERIDIAN WORKS — GLOBAL PREMIUM FOOTER
   ========================================================= */
.mw-footer {
  position: relative;
  width: min(1480px, calc(100% - 40px));
  margin: 42px auto 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 235, 244, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.018),
      rgba(184, 91, 130, 0.012) 55%,
      rgba(255, 255, 255, 0.006)
    ),
    rgba(10, 9, 11, 0.94);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.018);
}

.mw-footer-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  right: -120px;
  top: -180px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(184, 91, 130, 0.12),
    transparent 68%
  );
  filter: blur(14px);
}

.mw-footer-inner {
  position: relative;
  z-index: 1;
}

.mw-footer-cta {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr) auto;
  align-items: center;
  gap: 34px;
  min-height: 132px;
  padding: 26px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.mw-footer-brand-block {
  display: grid;
  gap: 12px;
}

.mw-brand--footer {
  width: fit-content;
}

.mw-footer-brand-block p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.mw-footer-cta-copy {
  display: grid;
  gap: 8px;
}

.mw-footer-kicker,
.mw-footer-mini-label {
  color: var(--rose-hi, #d879a0);
  font:
    600 8px/1 "DM Mono",
    monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mw-footer-cta-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.mw-footer-cta-copy h3 span {
  color: #bfaab5;
  font-weight: 500;
}

.mw-footer-store-btn {
  min-width: 162px;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 12px 32px rgba(184, 80, 126, 0.16);
}

.mw-footer-store-btn b {
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}

.mw-footer-main {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 2fr);
  gap: 60px;
  padding: 28px 30px 30px;
}

.mw-footer-about {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.mw-footer-about-top {
  display: grid;
  gap: 11px;
}

.mw-footer-about p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.mw-footer-socials {
  display: flex;
  gap: 8px;
}

.mw-footer-socials a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 235, 244, 0.085);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.012);
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.mw-footer-socials a:hover {
  color: var(--rose-hi, #d879a0);
  border-color: rgba(216, 121, 160, 0.2);
  background: rgba(184, 91, 130, 0.05);
  transform: translateY(-2px);
}

.mw-footer-socials svg {
  width: 16px;
  height: 16px;
}

.mw-footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.mw-footer-links > div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.mw-footer-links > div > span {
  margin-bottom: 3px;
  color: #77666f;
  font:
    600 8px/1 "DM Mono",
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mw-footer-links a {
  width: fit-content;
  color: #aaa0a5;
  font-size: 11px;
  line-height: 1.45;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.mw-footer-links a:hover {
  color: var(--text);
  transform: translateX(2px);
}

.mw-footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 54px;
  padding: 14px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.006);
}

.mw-footer-copyright {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mw-footer-copyright span,
.mw-footer-copyright small,
.mw-footer-status,
.mw-footer-signoff {
  color: #6f656a;
  font:
    500 8px/1.2 "DM Mono",
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mw-footer-copyright small {
  color: #524a4e;
}

.mw-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.008);
  white-space: nowrap;
}

.mw-footer-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #67d999;
  box-shadow: 0 0 10px rgba(103, 217, 153, 0.32);
}

.mw-footer-signoff {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  text-align: right;
}

.mw-footer-signoff b {
  color: #8d7b84;
  font-weight: 600;
}

@media (max-width: 1050px) {
  .mw-footer-cta {
    grid-template-columns: 1fr auto;
  }

  .mw-footer-cta-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .mw-footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mw-footer-about {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

@media (max-width: 760px) {
  .mw-footer {
    width: min(100% - 24px, 1480px);
    margin-top: 28px;
    border-radius: 18px;
  }

  .mw-footer-cta {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 20px;
  }

  .mw-footer-cta-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .mw-footer-store-btn {
    width: 100%;
  }

  .mw-footer-main {
    padding: 24px 20px;
  }

  .mw-footer-about {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mw-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }

  .mw-footer-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 20px;
  }

  .mw-footer-status {
    justify-self: start;
  }

  .mw-footer-signoff {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 440px) {
  .mw-footer-links {
    grid-template-columns: 1fr;
  }

  .mw-footer-copyright {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

/* =========================================================
   FOOTER — HOSTED LOGO IMAGE
   Replace the URL in meridian-shell.js:
   https://YOUR-HOSTED-IMAGE-URL-HERE.png
   ========================================================= */
.mw-footer-logo-wrap {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  overflow: hidden;
}

.mw-footer-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

@media (max-width: 760px) {
  .mw-footer-logo-wrap {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}

/* =========================================================
   CART — DISCOUNTS & GIFT CARDS SPACING REFINEMENT
   ========================================================= */
body[data-page="cart"]
  .cart-summary-premium
  .promo-box
  .summary-accordion-content {
  padding: 16px 16px 17px 60px;
}

body[data-page="cart"] .cart-summary-premium .promo-box .promo-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
  padding-top: 0;
  margin: 0 0 10px;
}

body[data-page="cart"] .cart-summary-premium .promo-box .promo-fields input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 0 13px;
}

body[data-page="cart"] .cart-summary-premium .promo-box #applyPromoBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 112px;
  min-height: 42px;
  margin: 0 0 10px !important;
  padding: 0 15px;
}

body[data-page="cart"] .cart-summary-premium .promo-box #promoMessage {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

body[data-page="cart"] .cart-summary-premium .promo-box #promoMessage a {
  color: #c98aa7;
  text-decoration: none;
}

body[data-page="cart"] .cart-summary-premium .promo-box #promoMessage a:hover {
  color: var(--rose-hi, #d879a0);
}

@media (max-width: 680px) {
  body[data-page="cart"]
    .cart-summary-premium
    .promo-box
    .summary-accordion-content {
    padding: 14px;
  }

  body[data-page="cart"] .cart-summary-premium .promo-box .promo-fields {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-page="cart"] .cart-summary-premium .promo-box #applyPromoBtn {
    width: 100%;
  }
}

/* =========================================================
   ACCOUNT BALANCE — REDEEMED GIFT CARD CREDIT
   ========================================================= */
body[data-page="cart"] .cart-summary-premium .promo-box .promo-fields-single {
  grid-template-columns: 1fr;
  margin-bottom: 10px;
}

.cart-account-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 10px;
  padding: 11px 12px;
  border: 1px solid rgba(216, 121, 160, 0.1);
  border-radius: 11px;
  background: rgba(184, 91, 130, 0.035);
}

.cart-account-balance > span {
  display: grid;
  gap: 3px;
}

.cart-account-balance small {
  color: var(--muted);
  font-size: 9px;
}

.cart-account-balance strong {
  color: var(--rose-hi, #d879a0);
  font-size: 15px;
  letter-spacing: -0.025em;
}

.cart-account-balance a {
  color: #c98aa7;
  font-size: 9.5px;
  white-space: nowrap;
}

.cart-account-balance a:hover {
  color: var(--rose-hi, #d879a0);
}

.redeem-balance-total,
.account-balance-summary {
  display: grid;
  gap: 5px;
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid rgba(216, 121, 160, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      rgba(184, 91, 130, 0.08),
      rgba(184, 91, 130, 0.025)
    ),
    rgba(255, 255, 255, 0.008);
}

.redeem-balance-total span,
.account-balance-summary span {
  color: var(--muted);
  font-size: 10px;
}

.redeem-balance-total strong,
.account-balance-summary strong {
  color: var(--rose-hi, #d879a0);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.account-balance-summary small {
  color: var(--muted-2);
  font-size: 9px;
}

.redeem-cards-heading {
  margin: 20px 0 10px;
  font-size: 13px;
}

.gift-balance-auto {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 9px;
  border: 1px solid rgba(216, 121, 160, 0.1);
  border-radius: 999px;
  color: #c98aa7;
  background: rgba(184, 91, 130, 0.035);
  font-size: 9px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .cart-account-balance {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   MERIDIAN WORKS — INTERACTION STABILITY
   ========================================================= */
body.mw-modal-open {
  overflow: hidden;
}

.review-modal[aria-hidden="true"],
.review-modal.hidden {
  display: none !important;
  pointer-events: none !important;
}

.review-modal.active,
.review-modal.visible {
  display: grid !important;
  pointer-events: auto;
}

.products-sort-menu[hidden],
.products-category-menu[hidden] {
  display: none !important;
  pointer-events: none !important;
}

button:disabled,
.btn:disabled {
  cursor: not-allowed;
}

.mw-toast-stack {
  contain: layout style;
}

/* =========================================================
   DASHBOARD — READ-ONLY BUSINESS OVERVIEW
   ========================================================= */
body[data-page="dashboard"] .dashboard-shell.dashboard-overview {
  width: min(1380px, calc(100% - 42px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.dashboard-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.dashboard-overview-head h1 {
  margin: 8px 0 10px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.dashboard-overview-subtitle {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.dashboard-user-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 4px;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 12px;
}

.dashboard-kpi {
  min-width: 0;
  min-height: 142px;
  padding: 17px;
  border: 1px solid rgba(255, 235, 244, 0.08);
  border-radius: 15px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.024),
      rgba(184, 91, 130, 0.013)
    ),
    rgba(12, 9, 12, 0.78);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.015);
}

.dashboard-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}

.dashboard-kpi-top span {
  color: var(--muted);
  font:
    600 8px/1 "DM Mono",
    monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dashboard-kpi-top i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(216, 121, 160, 0.1);
  border-radius: 8px;
  color: var(--rose-hi, #d879a0);
  background: rgba(184, 91, 130, 0.045);
  font-style: normal;
  font-size: 10px;
}

.dashboard-kpi > strong {
  display: block;
  margin-bottom: 9px;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.dashboard-kpi small {
  color: var(--muted-2);
  font-size: 9px;
}

.dashboard-kpi small span {
  font-weight: 600;
}

.dashboard-kpi .is-up {
  color: #78cfa7;
}
.dashboard-kpi .is-down {
  color: #e97799;
}
.dashboard-kpi .is-warning {
  color: #d9a86d;
}
.dashboard-kpi .is-flat {
  color: var(--muted-2);
}

.dashboard-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.8fr);
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-secondary-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.55fr);
  gap: 12px;
}

.dashboard-insight-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid rgba(255, 235, 244, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.022),
      rgba(184, 91, 130, 0.01) 62%
    ),
    rgba(11, 8, 11, 0.76);
}

.dashboard-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.dashboard-card-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.dashboard-card-kicker,
.dashboard-card-note {
  color: #806a75;
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-card-note {
  padding-top: 4px;
}

.dashboard-chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-2);
  font-size: 8px;
}

.dashboard-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dashboard-chart-legend i,
.dashboard-chart-legend b {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--rose-hi, #d879a0);
}

.dashboard-chart-legend b {
  border-radius: 50%;
  background: #d8b56a;
}

.dashboard-chart-summary {
  display: flex;
  gap: 34px;
  margin-bottom: 18px;
}

.dashboard-chart-summary > div {
  display: grid;
  gap: 4px;
}

.dashboard-chart-summary span {
  color: var(--muted-2);
  font-size: 9px;
}

.dashboard-chart-summary strong {
  font-size: 19px;
  letter-spacing: -0.035em;
}

.dashboard-sales-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(20px, 1fr));
  align-items: end;
  gap: 7px;
  min-height: 218px;
  padding: 12px 2px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 52px,
    rgba(255, 255, 255, 0.035) 53px
  );
}

.dashboard-chart-column {
  display: grid;
  grid-template-rows: 18px 165px 22px;
  align-items: end;
  min-width: 0;
  height: 100%;
  text-align: center;
}

.dashboard-chart-value {
  overflow: hidden;
  color: #806f78;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-chart-track {
  position: relative;
  display: flex;
  height: 160px;
  align-items: end;
  justify-content: center;
}

.dashboard-chart-bar {
  width: min(22px, 64%);
  min-height: 4px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #d975a0, #9d3f68);
  box-shadow: 0 0 18px rgba(184, 91, 130, 0.12);
}

.dashboard-chart-order-dot {
  position: absolute;
  right: 0;
  top: 7px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border: 1px solid rgba(216, 181, 106, 0.14);
  border-radius: 999px;
  color: #d8b56a;
  background: rgba(216, 181, 106, 0.055);
  font-size: 7px;
}

.dashboard-chart-column > span {
  overflow: hidden;
  color: var(--muted-2);
  font:
    500 6.5px/1 "DM Mono",
    monospace;
  text-overflow: clip;
  white-space: nowrap;
}

.dashboard-chart-loading {
  grid-column: 1 / -1;
  align-self: center;
  color: var(--muted);
  text-align: center;
}

.dashboard-attention-count {
  display: grid;
  min-width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(216, 121, 160, 0.12);
  border-radius: 9px;
  color: var(--rose-hi);
  background: rgba(184, 91, 130, 0.06);
  font-size: 10px;
  font-weight: 700;
}

.dashboard-attention-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.008);
}

.dashboard-attention-tabs button {
  min-height: 31px;
  padding: 5px;
  border: 0;
  border-radius: 7px;
  color: var(--muted-2);
  background: transparent;
  font-size: 8px;
  cursor: pointer;
}

.dashboard-attention-tabs button:hover,
.dashboard-attention-tabs button.is-active {
  color: var(--text);
  background: rgba(184, 91, 130, 0.075);
}

.dashboard-attention-list {
  display: grid;
  gap: 7px;
}

.dashboard-attention-item {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.008);
}

.dashboard-attention-item > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-attention-item strong {
  overflow: hidden;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-attention-item small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dashboard-attention-item a,
.dashboard-attention-item > span {
  flex: 0 0 auto;
  color: var(--rose-hi);
  font-size: 8.5px;
}

.dashboard-attention-item .is-warning {
  color: #d9a86d;
}
.dashboard-attention-item .is-bad {
  color: #e97799;
}

.dashboard-attention-clear,
.dashboard-empty-mini {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
}

.dashboard-attention-clear > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(112, 216, 173, 0.13);
  border-radius: 50%;
  color: #70d8ad;
  background: rgba(112, 216, 173, 0.05);
}

.dashboard-attention-clear strong {
  color: var(--text);
  font-size: 11px;
}

.dashboard-attention-clear small {
  color: var(--muted-2);
  font-size: 8.5px;
}

.dashboard-top-products {
  display: grid;
  gap: 7px;
}

.dashboard-product-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-product-row:last-child {
  border-bottom: 0;
}

.dashboard-product-rank {
  color: #67565f;
  font:
    600 8px/1 "DM Mono",
    monospace;
}

.dashboard-product-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-product-info strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-product-info span {
  color: var(--muted-2);
  font-size: 8px;
}

.dashboard-product-info i {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.045);
}

.dashboard-product-info i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9f456d, #d879a0);
}

.dashboard-product-revenue {
  color: #d7cbd1;
  font-size: 10px;
}

.dashboard-orders-table-wrap {
  overflow-x: auto;
}

.dashboard-orders-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-orders-table th,
.dashboard-orders-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  white-space: nowrap;
}

.dashboard-orders-table th {
  color: #77666f !important;
  background: transparent !important;
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dashboard-orders-table td {
  color: var(--muted);
  font-size: 9px;
}

.dashboard-orders-table td:first-child {
  min-width: 150px;
}

.dashboard-orders-table td strong {
  display: block;
  color: var(--text);
  font-size: 9.5px;
}

.dashboard-orders-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 7.5px;
}

.dashboard-status {
  display: inline-flex;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
  font-size: 7.5px;
  text-transform: capitalize;
}

.dashboard-status.is-good {
  color: #70d8ad;
  border-color: rgba(112, 216, 173, 0.12);
  background: rgba(112, 216, 173, 0.045);
}

.dashboard-status.is-warn {
  color: #d9a86d;
  border-color: rgba(217, 168, 109, 0.12);
  background: rgba(217, 168, 109, 0.045);
}

.dashboard-status.is-bad {
  color: #e97799;
  border-color: rgba(233, 119, 153, 0.12);
  background: rgba(233, 119, 153, 0.045);
}

.dashboard-order-link {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: var(--rose-hi);
  background: rgba(255, 255, 255, 0.008);
}

.dashboard-order-link:hover {
  border-color: rgba(216, 121, 160, 0.18);
  background: rgba(184, 91, 130, 0.05);
}

.dashboard-table-empty {
  height: 120px;
  color: var(--muted-2) !important;
  text-align: center !important;
}

@media (max-width: 1050px) {
  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-primary-grid,
  .dashboard-secondary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body[data-page="dashboard"] .dashboard-shell.dashboard-overview {
    width: min(100% - 24px, 1380px);
    padding-top: 30px;
  }

  .dashboard-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-user-actions {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-sales-chart {
    gap: 3px;
    overflow-x: auto;
  }

  .dashboard-chart-column {
    min-width: 30px;
  }
}

@media (max-width: 460px) {
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .dashboard-attention-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* GLOBAL AUTH-AWARE NAVIGATION */
.top-nav [data-auth][hidden],
.mw-nav-actions [data-auth][hidden] {
  display: none !important;
}

/* =========================================================
   ADMIN — SHARED PREMIUM NAVBAR
   ========================================================= */
body[data-page="admin"] .top-nav,
body[data-page="users"] .top-nav {
  border-color: rgba(216, 121, 160, 0.12);
  background:
    linear-gradient(
      145deg,
      rgba(184, 91, 130, 0.035),
      rgba(255, 255, 255, 0.008)
    ),
    rgba(12, 9, 12, 0.88);
}

body[data-page="admin"] .mw-nav,
body[data-page="users"] .mw-nav {
  justify-content: center;
}

body[data-page="admin"] .mw-nav a.is-active,
body[data-page="users"] .mw-nav a.is-active {
  color: var(--text);
  border-color: rgba(216, 121, 160, 0.16);
  background: rgba(184, 91, 130, 0.075);
}

.mw-admin-store-link b {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--rose-hi, #d879a0);
  background: transparent;
  font-size: 13px;
}

@media (max-width: 900px) {
  body[data-page="admin"] .mw-nav-actions,
  body[data-page="users"] .mw-nav-actions {
    gap: 6px;
  }
}

/* =========================================================
   ADMIN — NOCTURNE ROSE PREMIUM OPERATIONS CONSOLE
   ========================================================= */
body[data-page="admin"] {
  --admin-surface: rgba(12, 9, 12, 0.86);
  --admin-surface-soft: rgba(255, 255, 255, 0.014);
  --admin-line: rgba(255, 235, 244, 0.075);
  --admin-line-strong: rgba(216, 121, 160, 0.18);
}

body[data-page="admin"] .admin-shell {
  width: min(1480px, calc(100% - 42px));
  padding-top: 38px;
  padding-bottom: 90px;
}

.admin-command-hero {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  min-height: 250px;
  padding: 44px 6px 35px;
  border-bottom: 1px solid var(--admin-line);
}

.admin-command-hero::after {
  content: "";
  position: absolute;
  right: 2%;
  top: 10%;
  width: 330px;
  height: 220px;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(184, 91, 130, 0.09),
    transparent 68%
  );
  filter: blur(18px);
}

.admin-command-copy {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.admin-command-copy h1 {
  margin: 9px 0 16px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.93;
  letter-spacing: -0.07em;
}

.admin-command-subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.admin-command-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.admin-live-pill,
.admin-role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  color: #a8969f;
  background: rgba(255, 255, 255, 0.012);
  font:
    600 8px/1 "DM Mono",
    monospace;
  letter-spacing: 0.06em;
}

.admin-live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #70d8ad;
  box-shadow: 0 0 10px rgba(112, 216, 173, 0.35);
}

.admin-command-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
  padding-bottom: 4px;
}

.admin-command-actions .btn {
  min-height: 44px;
  padding-inline: 16px;
}

.admin-command-actions .btn b {
  margin-left: 8px;
  font-size: 15px;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 16px 0 28px;
}

.admin-overview-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 106px;
  padding: 16px;
  border: 1px solid var(--admin-line);
  border-radius: 15px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.022),
      rgba(184, 91, 130, 0.012)
    ),
    var(--admin-surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.014);
}

.admin-overview-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(216, 121, 160, 0.12);
  border-radius: 12px;
  color: var(--rose-hi, #d879a0);
  background: rgba(184, 91, 130, 0.055);
  font-size: 16px;
}

.admin-overview-card > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 10px;
  min-width: 0;
}

.admin-overview-card small {
  color: #806d77;
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.admin-overview-card strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.admin-overview-card p {
  margin: 6px 0 0;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.35;
}

.admin-workspace-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 30px 0 13px;
}

.admin-workspace-heading > div {
  display: grid;
  gap: 5px;
}

.admin-workspace-heading span {
  color: var(--rose-hi, #d879a0);
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.15em;
}

.admin-workspace-heading h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.045em;
}

.admin-workspace-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
}

.admin-command-tabs {
  position: sticky;
  top: 12px;
  z-index: 60;
  display: flex;
  gap: 5px;
  margin: 0 0 14px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--admin-line);
  border-radius: 15px;
  background: rgba(11, 8, 11, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.admin-command-tabs::-webkit-scrollbar {
  display: none;
}

.admin-command-tabs .admin-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #8f8088;
  background: transparent;
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    color 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.admin-command-tabs .admin-tab:hover {
  color: #d8ccd2;
  background: rgba(255, 255, 255, 0.018);
}

.admin-command-tabs .admin-tab.active {
  color: #fff;
  border-color: rgba(216, 121, 160, 0.16);
  background: linear-gradient(
    120deg,
    rgba(184, 91, 130, 0.19),
    rgba(184, 91, 130, 0.075)
  );
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.admin-tab-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--rose-hi, #d879a0);
  font:
    700 9px/1 "DM Mono",
    monospace;
}

.admin-panel {
  padding: 0;
}

.admin-panel.active {
  animation: adminPanelIn 0.24s ease both;
}

@keyframes adminPanelIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.admin-panel-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 92px;
  margin: 0 0 12px;
  padding: 18px 20px;
  border: 1px solid var(--admin-line);
  border-radius: 15px;
  background:
    linear-gradient(
      125deg,
      rgba(184, 91, 130, 0.045),
      rgba(255, 255, 255, 0.01) 42%,
      transparent
    ),
    var(--admin-surface);
}

.admin-panel-intro > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.admin-panel-intro > div > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 38px;
  border: 1px solid rgba(216, 121, 160, 0.12);
  border-radius: 11px;
  color: var(--rose-hi, #d879a0);
  background: rgba(184, 91, 130, 0.05);
  font-size: 14px;
}

.admin-panel-intro small {
  color: #79656f;
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.14em;
}

.admin-panel-intro h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.admin-panel-intro > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
  text-align: right;
}

body[data-page="admin"] .admin-grid {
  grid-template-columns: minmax(330px, 0.76fr) minmax(0, 1.35fr);
  gap: 12px;
  align-items: start;
}

body[data-page="admin"] .admin-panel > .admin-grid + .admin-grid {
  margin-top: 12px;
}

body[data-page="admin"] .form-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 15px;
  background: var(--admin-surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.012);
}

body[data-page="admin"] .form-card::before {
  display: none;
}

.admin-card-heading {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 15px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.008);
}

.admin-card-heading h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.025em;
}

body[data-page="admin"] .form-card > form,
body[data-page="admin"] .form-card > .table-wrap,
body[data-page="admin"] .form-card > .activity-list,
body[data-page="admin"] .form-card > .admin-avatar-preview,
body[data-page="admin"] .form-card > p:not(.auth-error),
body[data-page="admin"]
  .form-card
  > div:not(.admin-card-heading):not(.table-wrap) {
  margin-left: 16px;
  margin-right: 16px;
}

body[data-page="admin"] .form-card > form {
  padding-top: 16px;
  padding-bottom: 17px;
}

body[data-page="admin"] .form-grid {
  gap: 10px;
}

body[data-page="admin"] input,
body[data-page="admin"] select,
body[data-page="admin"] textarea {
  min-height: 44px;
  border: 1px solid rgba(255, 235, 244, 0.085);
  border-radius: 11px;
  background: rgba(7, 6, 8, 0.54);
  color: var(--text);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.01);
}

body[data-page="admin"] textarea {
  min-height: 104px;
  padding-top: 12px;
  line-height: 1.55;
}

body[data-page="admin"] input::placeholder,
body[data-page="admin"] textarea::placeholder {
  color: #665a60;
}

body[data-page="admin"] input:focus,
body[data-page="admin"] select:focus,
body[data-page="admin"] textarea:focus {
  border-color: rgba(216, 121, 160, 0.28);
  box-shadow: 0 0 0 3px rgba(184, 91, 130, 0.055);
}

body[data-page="admin"] input[type="file"] {
  min-height: 48px;
  padding: 7px;
  color: #8f8088;
}

body[data-page="admin"] input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 10px;
  padding: 0 11px;
  border: 1px solid rgba(216, 121, 160, 0.12);
  border-radius: 8px;
  background: rgba(184, 91, 130, 0.07);
  color: #d9cdd3;
  cursor: pointer;
}

body[data-page="admin"] label.helper {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 9px;
  color: #918188;
  background: rgba(255, 255, 255, 0.006);
  font-size: 9px;
  line-height: 1.4;
}

body[data-page="admin"] label.helper:has(input[type="file"]),
body[data-page="admin"] label.helper:has(textarea) {
  display: grid;
  align-items: stretch;
}

body[data-page="admin"] input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: #c6608d;
}

body[data-page="admin"] .inline-actions {
  gap: 7px;
}

body[data-page="admin"] .inline-actions .btn {
  min-height: 36px;
  border-radius: 9px;
  font-size: 9px;
}

body[data-page="admin"] .form-grid > .full.inline-actions {
  padding-top: 4px;
}

body[data-page="admin"] .table-wrap {
  margin-top: 0;
  margin-bottom: 16px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
  background: rgba(5, 5, 7, 0.32);
}

body[data-page="admin"] .admin-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

body[data-page="admin"] .admin-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0d0b0e;
  color: #806d77;
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-page="admin"] .admin-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: #b5a8ae;
  font-size: 9.5px;
  line-height: 1.5;
  vertical-align: middle;
}

body[data-page="admin"] .admin-table tbody tr:last-child td {
  border-bottom: 0;
}

body[data-page="admin"] .admin-table tbody tr {
  transition: background 0.15s ease;
}

body[data-page="admin"] .admin-table tbody tr:hover {
  background: rgba(184, 91, 130, 0.018);
}

body[data-page="admin"] .admin-table td strong {
  color: #f0e8ec;
  font-size: 10px;
}

body[data-page="admin"] .admin-table .helper {
  color: #74676d;
  font-size: 8px;
}

body[data-page="admin"] .status-select {
  min-width: 110px;
  min-height: 34px;
  border-radius: 8px;
  font-size: 8.5px;
}

body[data-page="admin"] .status-pill {
  border-color: rgba(216, 121, 160, 0.1);
  color: #cf9bb2;
  background: rgba(184, 91, 130, 0.045);
}

body[data-page="admin"] .auth-error:empty {
  display: none;
}

body[data-page="admin"] .auth-error {
  margin-top: 2px;
  margin-bottom: 0;
  padding: 10px 11px;
  border: 1px solid rgba(240, 116, 152, 0.1);
  border-radius: 9px;
  background: rgba(240, 116, 152, 0.035);
  font-size: 9px;
}

body[data-page="admin"] .promotions-section-gap {
  margin-top: 12px !important;
}

body[data-page="admin"] .admin-avatar-preview,
body[data-page="admin"] .activity-list {
  padding-top: 14px;
  padding-bottom: 16px;
}

body[data-page="admin"] .admin-avatar-item {
  border-color: var(--admin-line);
  background: rgba(255, 255, 255, 0.008);
}

body[data-page="admin"] .activity-item {
  border-color: rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.007);
}

body[data-page="admin"] .mw-nav a.is-active {
  border-color: rgba(216, 121, 160, 0.16);
  color: #fff;
  background: rgba(184, 91, 130, 0.07);
}

.mw-admin-store-link b {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--rose-hi, #d879a0);
  background: transparent;
  font-size: 13px;
}

@media (min-width: 1081px) {
  body[data-page="admin"] .admin-grid > .form-card:first-child {
    position: sticky;
    top: 72px;
  }
}

@media (max-width: 1180px) {
  .admin-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="admin"] .admin-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="admin"] .admin-grid > .form-card:first-child {
    position: static;
  }
}

@media (max-width: 820px) {
  body[data-page="admin"] .admin-shell {
    width: min(100% - 24px, 1480px);
    padding-top: 24px;
  }

  .admin-command-hero {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding: 30px 2px 27px;
  }

  .admin-command-actions {
    width: 100%;
  }

  .admin-command-actions .btn {
    flex: 1 1 0;
  }

  .admin-workspace-heading,
  .admin-panel-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-workspace-heading p,
  .admin-panel-intro > p {
    max-width: none;
    text-align: left;
  }

  .admin-command-tabs {
    top: 8px;
  }
}

@media (max-width: 560px) {
  .admin-overview-grid {
    grid-template-columns: 1fr;
  }

  .admin-command-copy h1 {
    font-size: 48px;
  }

  .admin-command-actions {
    flex-direction: column;
  }

  .admin-overview-card {
    min-height: 92px;
  }

  body[data-page="admin"] .form-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="admin"] .form-grid > * {
    grid-column: 1 !important;
  }
}

/* =========================================================
   ADMIN — AVATARS / TIME CLOCK / PAYROLL LAYOUT REFINEMENT
   ========================================================= */

/* Shared vertical rhythm for the three operational tabs */
body[data-page="admin"] .admin-panel-avatars,
body[data-page="admin"] .admin-panel-timeclock,
body[data-page="admin"] .admin-panel-payroll {
  padding-bottom: 22px;
}

body[data-page="admin"] .admin-panel-avatars .admin-panel-intro,
body[data-page="admin"] .admin-panel-timeclock .admin-panel-intro,
body[data-page="admin"] .admin-panel-payroll .admin-panel-intro {
  margin-bottom: 14px;
}

/* AVATARS ------------------------------------------------ */
body[data-page="admin"] .admin-avatar-grid {
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  align-items: stretch;
}

body[data-page="admin"] .admin-panel-avatars .admin-avatar-grid > .form-card {
  min-height: 330px;
}

body[data-page="admin"] .admin-panel-avatars #avatarUploadForm {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  gap: 12px;
  padding-top: 15px;
}

body[data-page="admin"]
  .admin-panel-avatars
  #avatarUploadForm
  > input[type="file"] {
  min-height: 56px;
}

body[data-page="admin"] .admin-panel-avatars #avatarUploadForm > .helper {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9b8d94;
  font-size: 10px;
  line-height: 1.65;
}

body[data-page="admin"]
  .admin-panel-avatars
  #avatarUploadForm
  > .inline-actions {
  margin-top: 4px;
}

body[data-page="admin"] .admin-panel-avatars #avatarUploadStatus {
  margin-top: auto;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #aa9aa2;
}

body[data-page="admin"] .admin-panel-avatars #avatarUploadStatus:empty {
  display: none;
}

body[data-page="admin"] .admin-panel-avatars #adminAvatarPreview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
  min-height: 270px;
  max-height: 470px;
  overflow-y: auto;
  align-content: start;
  margin-top: 0;
  padding: 14px 16px 16px;
}

body[data-page="admin"] .admin-panel-avatars .admin-avatar-item {
  min-width: 0;
  padding: 8px;
  border-radius: 11px;
}

body[data-page="admin"] .admin-panel-avatars .admin-avatar-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

body[data-page="admin"] .admin-panel-avatars .admin-avatar-item span {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  color: #95878e;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   ADMIN — AVATAR TAB HARD LAYOUT FIX
   Fixes preview grid collapsing into a narrow left column.
   ========================================================= */
body[data-page="admin"] .admin-panel-avatars .admin-avatar-grid {
  grid-template-columns: minmax(320px, 0.75fr) minmax(520px, 1.35fr);
  align-items: start;
}

body[data-page="admin"] .admin-panel-avatars .admin-avatar-grid > .form-card {
  width: 100%;
  min-width: 0;
}

body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview.admin-avatar-preview {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-columns: unset !important;
  align-items: start !important;
  align-content: start !important;
  justify-items: stretch !important;
  gap: 12px !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 285px !important;
  max-height: 520px !important;

  margin: 0 16px 16px !important;
  padding: 14px !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;

  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 11px;
  background: rgba(5, 5, 7, 0.24);
  box-sizing: border-box;
}

body[data-page="admin"] .admin-panel-avatars #adminAvatarPreview > * {
  min-width: 0 !important;
  max-width: none !important;
}

body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview
  .admin-avatar-item {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  flex-direction: column !important;

  margin: 0 !important;
  padding: 8px !important;

  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.008);
  box-sizing: border-box;
}

body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview
  .admin-avatar-item
  img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  min-width: 0 !important;
  max-width: none !important;

  object-fit: cover !important;
  border-radius: 8px;
}

body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview
  .admin-avatar-item
  span {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;

  margin-top: 7px !important;

  overflow: hidden !important;
  color: #95878e;
  font-size: 8px;
  line-height: 1.3;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-page="admin"] .admin-panel-avatars #adminAvatarPreview > .helper {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  margin: 0 !important;
  padding: 26px !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
}

/* Cleaner scrollbar contained inside the preview card */
body[data-page="admin"] .admin-panel-avatars #adminAvatarPreview {
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 121, 160, 0.24) transparent;
}

body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview::-webkit-scrollbar {
  width: 7px;
}

body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview::-webkit-scrollbar-track {
  background: transparent;
}

body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(216, 121, 160, 0.24);
  background-clip: padding-box;
}

@media (max-width: 1180px) {
  body[data-page="admin"] .admin-panel-avatars .admin-avatar-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="admin"]
    .admin-panel-avatars
    #adminAvatarPreview.admin-avatar-preview {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body[data-page="admin"]
    .admin-panel-avatars
    #adminAvatarPreview.admin-avatar-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-inline: 12px !important;
    padding: 10px !important;
  }
}

/* =========================================================
   ADMIN — AVATAR PREVIEW OVERLAP FIX
   Keeps every image inside a fixed media box.
   ========================================================= */
body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview.admin-avatar-preview {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
  grid-auto-rows: auto !important;
  align-items: stretch !important;
}

body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview
  .admin-avatar-item {
  display: grid !important;
  grid-template-rows: 120px auto !important;
  align-content: start !important;

  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 158px !important;

  padding: 8px !important;
  margin: 0 !important;

  overflow: hidden !important;
  box-sizing: border-box !important;
}

body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview
  .admin-avatar-item
  img {
  display: block !important;

  width: 100% !important;
  height: 120px !important;
  min-height: 0 !important;
  max-height: 120px !important;

  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;

  margin: 0 !important;
  padding: 4px !important;

  overflow: hidden !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.012);
  box-sizing: border-box !important;
}

body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview
  .admin-avatar-item
  span {
  align-self: end !important;
  margin-top: 7px !important;
  padding: 0 2px 1px !important;

  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Make banner-style uploads preview cleanly without becoming giant cards */
body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview
  .admin-avatar-item
  img[width],
body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview
  .admin-avatar-item
  img[height] {
  width: 100% !important;
  height: 120px !important;
}

@media (min-width: 1500px) {
  body[data-page="admin"]
    .admin-panel-avatars
    #adminAvatarPreview.admin-avatar-preview {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)) !important;
  }

  body[data-page="admin"]
    .admin-panel-avatars
    #adminAvatarPreview
    .admin-avatar-item {
    grid-template-rows: 132px auto !important;
  }

  body[data-page="admin"]
    .admin-panel-avatars
    #adminAvatarPreview
    .admin-avatar-item
    img {
    height: 132px !important;
    max-height: 132px !important;
  }
}

@media (max-width: 640px) {
  body[data-page="admin"]
    .admin-panel-avatars
    #adminAvatarPreview.admin-avatar-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-page="admin"]
    .admin-panel-avatars
    #adminAvatarPreview
    .admin-avatar-item {
    grid-template-rows: 110px auto !important;
    min-height: 148px !important;
  }

  body[data-page="admin"]
    .admin-panel-avatars
    #adminAvatarPreview
    .admin-avatar-item
    img {
    height: 110px !important;
    max-height: 110px !important;
  }
}

/* =========================================================
   ADMIN — AVATAR GALLERY HEIGHT + SCROLLBAR REFINEMENT
   ========================================================= */
body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview.admin-avatar-preview {
  min-height: 360px !important;
  height: clamp(360px, 43vh, 520px) !important;
  max-height: 520px !important;

  /* Keep the scrollbar away from the avatar cards */
  padding: 14px 20px 14px 14px !important;
  scrollbar-gutter: stable !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;

  scrollbar-width: thin;
  scrollbar-color: rgba(207, 104, 149, 0.38) transparent;
}

body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview.admin-avatar-preview::-webkit-scrollbar {
  width: 10px;
}

body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview.admin-avatar-preview::-webkit-scrollbar-track {
  margin-block: 10px;
  background: transparent;
}

body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview.admin-avatar-preview::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(207, 104, 149, 0.34);
  background-clip: padding-box;
}

body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview.admin-avatar-preview::-webkit-scrollbar-thumb:hover {
  background: rgba(220, 121, 164, 0.54);
  background-clip: padding-box;
}

/* Let the right gallery card breathe more without making the upload card huge */
body[data-page="admin"] .admin-panel-avatars .admin-avatar-grid {
  align-items: start !important;
}

body[data-page="admin"]
  .admin-panel-avatars
  .admin-avatar-grid
  > .form-card:last-child {
  min-height: 430px !important;
}

body[data-page="admin"]
  .admin-panel-avatars
  .admin-avatar-grid
  > .form-card:first-child {
  min-height: 0 !important;
}

/* Slightly denser gallery so the extra height actually shows more content */
body[data-page="admin"]
  .admin-panel-avatars
  #adminAvatarPreview.admin-avatar-preview {
  gap: 10px !important;
}

@media (max-width: 1180px) {
  body[data-page="admin"]
    .admin-panel-avatars
    #adminAvatarPreview.admin-avatar-preview {
    height: clamp(340px, 48vh, 500px) !important;
    min-height: 340px !important;
  }

  body[data-page="admin"]
    .admin-panel-avatars
    .admin-avatar-grid
    > .form-card:last-child {
    min-height: 410px !important;
  }
}

@media (max-width: 640px) {
  body[data-page="admin"]
    .admin-panel-avatars
    #adminAvatarPreview.admin-avatar-preview {
    height: 390px !important;
    min-height: 390px !important;
    padding: 10px 16px 10px 10px !important;
  }
}

/* =========================================================
   ADMIN — CENTER AVATAR UPLOAD CONTENT
   ========================================================= */
body[data-page="admin"] .admin-panel-avatars #avatarUploadForm {
  justify-content: center !important;
}

body[data-page="admin"]
  .admin-panel-avatars
  #avatarUploadForm
  > input[type="file"] {
  width: 100% !important;
  margin-top: auto !important;
}

body[data-page="admin"] .admin-panel-avatars #avatarUploadForm > .helper {
  margin-top: 0 !important;
}

body[data-page="admin"]
  .admin-panel-avatars
  #avatarUploadForm
  > .inline-actions {
  margin-bottom: auto !important;
}

/* Keep status feedback below the centred control group without distorting it. */
body[data-page="admin"] .admin-panel-avatars #avatarUploadStatus:not(:empty) {
  margin-top: 12px !important;
}

/* =========================================================
   GLOBAL NAVBAR — HOSTED LOGO IMAGE
   Replace this URL in meridian-shell.js:
   https://YOUR-HOSTED-IMAGE-URL-HERE.png
   ========================================================= */
.mw-nav-logo-wrap {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  overflow: hidden;
}

.mw-nav-logo {
  display: block;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .mw-nav-logo-wrap {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}

/* =========================================================
   GLOBAL NAVBAR — HOSTED LOGO HARD CONTAINMENT FIX
   Prevents hosted logo images from changing navbar/page layout.
   ========================================================= */
.top-nav .mw-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  height: 42px !important;
  max-height: 42px !important;
  overflow: visible !important;
}

.top-nav .mw-nav-logo-wrap {
  position: relative !important;
  display: block !important;

  width: 74px !important;
  height: 74px !important;
  min-width: 74px !important;
  min-height: 74px !important;
  max-width: 74px !important;
  max-height: 74px !important;
  flex: 0 0 74px !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden !important;

  transform: none !important;
  inset: auto !important;
  box-sizing: border-box !important;
}

.top-nav .mw-nav-logo-wrap .mw-nav-logo,
.top-nav .mw-brand .mw-nav-logo {
  position: absolute !important;
  inset: 4px !important;

  display: block !important;
  width: calc(100% - 8px) !important;
  height: calc(100% - 8px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: calc(100% - 8px) !important;
  max-height: calc(100% - 8px) !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: contain !important;
  object-position: center !important;

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  transform: none !important;
  scale: 1 !important;
  filter: none !important;

  z-index: 1 !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
}

.top-nav .mw-wordmark {
  position: static !important;
  transform: none !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

.top-nav .mw-wordmark strong,
.top-nav .mw-wordmark small {
  position: static !important;
  transform: none !important;
}

/* Defensively neutralise generic navbar/brand image rules */
.top-nav img {
  float: none !important;
  vertical-align: middle !important;
}

@media (max-width: 760px) {
  .top-nav .mw-brand {
    height: 40px !important;
    max-height: 40px !important;
  }

  .top-nav .mw-nav-logo-wrap {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    flex-basis: 36px !important;
  }
}

/* =========================================================
   GLOBAL NAVBAR — INTRINSIC-SIZE-PROOF HOSTED LOGO
   The hosted image is a CSS background, never a layout <img>.
   ========================================================= */
.top-nav {
  contain: layout paint !important;
}

.top-nav .mw-brand {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  gap: 10px !important;

  width: auto !important;
  min-width: max-content !important;
  max-width: 190px !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden !important;
  transform: none !important;
}

.top-nav .mw-nav-logo-wrap {
  position: relative !important;
  inset: auto !important;

  display: block !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  flex: 0 0 38px !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden !important;

  background-image: var(--mw-nav-logo-url) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;

  box-sizing: border-box !important;
  transform: none !important;
}

/* There should no longer be an image here, but kill any stale/cached one safely. */
.top-nav .mw-nav-logo,
.top-nav .mw-nav-logo-wrap > img {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
}

.top-nav .mw-wordmark {
  position: static !important;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;

  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: 110px !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden !important;
  transform: none !important;
}

.top-nav .mw-nav {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  align-self: center !important;
}

.top-nav .mw-nav-actions {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  align-self: center !important;
}

@media (min-width: 1101px) {
  .top-nav {
    display: grid !important;
    grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto !important;
    align-items: center !important;
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    overflow: hidden !important;
  }

  .top-nav .mw-menu-button {
    display: none !important;
  }

  .top-nav .mw-nav {
    display: flex !important;
    justify-self: center !important;
  }
}

@media (max-width: 760px) {
  .top-nav .mw-brand {
    max-width: 48px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }

  .top-nav .mw-nav-logo-wrap {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    flex-basis: 36px !important;
  }
}

/* ABOUT: shared navbar and hero must remain separate layout regions. */
body[data-page="about"] .top-nav {
  margin-bottom: 0 !important;
}

body[data-page="about"] main {
  position: relative !important;
  z-index: 1 !important;
}

body[data-page="about"] .hero {
  position: relative !important;
  z-index: 1 !important;
  margin-top: 0 !important;
}

body[data-page="about"] .hero-copy {
  position: relative !important;
  z-index: 2 !important;
}

/* =========================================================
   ACCOUNT — NOCTURNE ROSE PREMIUM CUSTOMER HUB
   ========================================================= */
body[data-page="account"] {
  --account-surface: rgba(13, 9, 12, 0.84);
  --account-surface-2: rgba(255, 255, 255, 0.012);
  --account-line: rgba(255, 235, 244, 0.075);
  --account-line-strong: rgba(216, 121, 160, 0.18);
}

body[data-page="account"] .account-shell {
  width: min(1380px, calc(100% - 42px));
  margin: 0 auto;
  padding: 44px 0 88px;
}

.account-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: 60px;
  min-height: 310px;
  padding: 44px 4px 36px;
  border-bottom: 1px solid var(--account-line);
}

.account-hero::after {
  content: "";
  position: absolute;
  right: 4%;
  top: 5%;
  width: 390px;
  height: 250px;
  background: radial-gradient(circle, rgba(184, 91, 130, 0.1), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.account-hero-copy,
.account-identity-card {
  position: relative;
  z-index: 1;
}

.account-hero h1 {
  margin: 9px 0 10px;
  font-size: clamp(48px, 5.5vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.account-hero-meta {
  margin: 0;
  color: #b4a3ab;
  font:
    500 10px/1.4 "DM Mono",
    monospace;
}

.account-hero-subtitle {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.account-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.account-identity-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--account-line);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(184, 91, 130, 0.065),
      rgba(255, 255, 255, 0.012) 55%
    ),
    rgba(12, 9, 12, 0.84);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.18);
}

.account-avatar-large {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(216, 121, 160, 0.18);
  border-radius: 18px;
  background: rgba(184, 91, 130, 0.06);
  color: var(--rose-hi, #d879a0);
  font-size: 22px;
  font-weight: 800;
}

.account-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-identity-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-identity-copy small {
  color: #816c76;
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.14em;
}

.account-identity-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity-copy span {
  color: var(--muted);
  font-size: 9px;
}

.account-security-mark {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #8f8088;
  font-size: 9px;
}

.account-security-mark i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #70d8ad;
  box-shadow: 0 0 10px rgba(112, 216, 173, 0.3);
}

.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 28px;
}

.account-overview-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 104px;
  padding: 15px;
  border: 1px solid var(--account-line);
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.02),
      rgba(184, 91, 130, 0.012)
    ),
    var(--account-surface);
}

.account-overview-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(216, 121, 160, 0.11);
  border-radius: 11px;
  color: var(--rose-hi, #d879a0);
  background: rgba(184, 91, 130, 0.045);
  font:
    700 13px/1 "DM Mono",
    monospace;
}

.account-overview-card div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 8px;
}

.account-overview-card small {
  color: #7b6972;
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-overview-card strong {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--text);
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.account-overview-card strong.is-secure {
  color: #77d8ad;
}

.account-overview-card p {
  margin: 6px 0 0;
  color: var(--muted-2);
  font-size: 8.5px;
}

.account-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--account-line);
  border-radius: 14px;
  background: rgba(11, 8, 11, 0.72);
  backdrop-filter: blur(16px);
}

.account-sidebar-label {
  padding: 8px 9px 10px;
  color: #6f5d66;
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.15em;
}

.account-sidebar a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #93858c;
  font-size: 9.5px;
  font-weight: 650;
}

.account-sidebar a span {
  width: 18px;
  color: var(--rose-hi, #d879a0);
  text-align: center;
}

.account-sidebar a:hover,
.account-sidebar a.is-active {
  color: var(--text);
  border-color: rgba(216, 121, 160, 0.1);
  background: rgba(184, 91, 130, 0.05);
}

.account-content {
  min-width: 0;
}

.account-section {
  padding: 0 0 34px;
  margin: 0 0 34px;
  border-bottom: 1px solid var(--account-line);
  scroll-margin-top: 110px;
}

.account-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.account-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 13px;
}

.account-section-head > div:first-child {
  max-width: 700px;
}

.account-section-head > div:first-child > span {
  color: var(--rose-hi, #d879a0);
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.15em;
}

.account-section-head h2 {
  margin: 5px 0 7px;
  font-size: 28px;
  letter-spacing: -0.045em;
}

.account-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.account-section-badge {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(216, 121, 160, 0.1);
  border-radius: 999px;
  color: #b38ba0;
  background: rgba(184, 91, 130, 0.035);
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--account-line);
  border-radius: 15px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.018),
      rgba(184, 91, 130, 0.008)
    ),
    var(--account-surface);
}

.account-card-gap {
  margin-top: 12px;
}

.account-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 15px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.006);
}

.account-card-heading small {
  color: #78656e;
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.14em;
}

.account-card-heading h3 {
  margin: 4px 0 0;
  font-size: 15px;
}

.account-card-heading > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.5;
  text-align: right;
}

.account-form {
  display: grid;
  gap: 11px;
  padding: 16px 17px 17px;
}

.account-profile-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-address-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-form label {
  display: grid;
  gap: 6px;
  color: #93858c;
  font-size: 8.5px;
  font-weight: 600;
}

.account-form label > span {
  padding-left: 2px;
}

.account-form input,
.account-form select,
.account-form textarea {
  min-height: 44px;
  border-color: rgba(255, 235, 244, 0.08);
  border-radius: 10px;
  background: rgba(7, 6, 8, 0.5);
}

.account-form textarea {
  min-height: 92px;
}

.account-form-full {
  grid-column: 1 / -1;
}

.account-check {
  display: flex !important;
  min-height: 40px;
  flex-direction: row !important;
  align-items: center;
  gap: 9px !important;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.006);
}

.account-check input {
  width: 15px;
  height: 15px;
  min-height: 0;
  accent-color: #c6608d;
}

.account-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.account-form-actions .btn {
  min-width: 130px;
}

.account-message {
  margin: 0 17px 15px;
}

.account-message:empty {
  display: none;
}

.account-split-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
  gap: 12px;
  align-items: start;
}

.account-billing-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
}

.account-list {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.account-list-item,
body[data-page="account"] .account-list > .activity-item,
body[data-page="account"] .account-list > .order-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.007);
}

.account-list-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(216, 121, 160, 0.1);
  border-radius: 9px;
  color: var(--rose-hi, #d879a0);
  background: rgba(184, 91, 130, 0.04);
}

.account-list-copy {
  min-width: 0;
}

.account-list-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.account-list-title strong {
  overflow: hidden;
  color: var(--text);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-list-copy p {
  margin: 3px 0 2px;
  color: #b3a6ac;
  font-size: 9px;
}

.account-list-copy small {
  display: block;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.5;
}

.account-item-pill,
.gift-balance-auto {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(216, 121, 160, 0.1);
  border-radius: 999px;
  color: #c990aa;
  background: rgba(184, 91, 130, 0.04);
  font-size: 7.5px;
}

.account-empty-state {
  display: grid;
  min-height: 120px;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 22px;
  color: var(--muted-2);
  text-align: center;
}

.account-empty-state > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(216, 121, 160, 0.1);
  border-radius: 50%;
  color: var(--rose-hi, #d879a0);
  background: rgba(184, 91, 130, 0.035);
}

.account-empty-state strong {
  color: #b9abb1;
  font-size: 10px;
}

.account-empty-state small {
  max-width: 340px;
  font-size: 8.5px;
  line-height: 1.45;
}

.account-empty-wide {
  grid-column: 1 / -1;
}

.account-recent-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 14px;
}

body[data-page="account"] .account-recent-grid .mini-product {
  padding: 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.007);
}

body[data-page="account"] .account-recent-grid .mini-product img {
  margin-bottom: 9px;
  border-radius: 8px;
  aspect-ratio: 16 / 10;
}

body[data-page="account"] .account-recent-grid .mini-product span {
  display: grid;
  gap: 3px;
}

body[data-page="account"] .account-recent-grid .mini-product strong {
  overflow: hidden;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="account"] .account-recent-grid .mini-product small {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 14px 14px;
}

.account-security-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 0;
}

.account-security-copy {
  display: flex;
  gap: 13px;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  background: linear-gradient(145deg, rgba(184, 91, 130, 0.045), transparent);
}

.account-security-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(216, 121, 160, 0.12);
  border-radius: 12px;
  color: var(--rose-hi, #d879a0);
  background: rgba(184, 91, 130, 0.05);
}

.account-security-copy small {
  color: #7e6973;
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.14em;
}

.account-security-copy h3 {
  margin: 5px 0 8px;
  font-size: 16px;
}

.account-security-copy p {
  margin: 0;
  font-size: 9.5px;
  line-height: 1.55;
}

.account-security-forms {
  padding: 17px;
}

.account-security-forms form + form {
  margin-top: 10px;
}

.account-secret {
  display: block;
  overflow-wrap: anywhere;
  padding: 11px;
  border: 1px solid rgba(216, 121, 160, 0.1);
  border-radius: 9px;
  color: #dba0b9;
  background: rgba(184, 91, 130, 0.035);
  font:
    500 10px/1.5 "DM Mono",
    monospace;
}

body[data-page="account"] .account-balance-summary {
  margin: 0 0 8px;
}

body[data-page="account"] .receipt-btn,
body[data-page="account"] .delete-address,
body[data-page="account"] .generate-download-link,
body[data-page="account"] .manage-subscription-btn {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 8px;
}

@media (max-width: 1100px) {
  .account-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: sticky;
    top: 86px;
    z-index: 50;
    display: flex;
    overflow-x: auto;
    padding: 6px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .account-sidebar::-webkit-scrollbar {
    display: none;
  }

  .account-sidebar-label {
    display: none;
  }

  .account-sidebar a {
    flex: 0 0 auto;
  }

  .account-split-grid,
  .account-billing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body[data-page="account"] .account-shell {
    width: min(100% - 24px, 1380px);
    padding-top: 28px;
  }

  .account-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 28px 2px;
  }

  .account-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .account-profile-form,
  .account-address-form {
    grid-template-columns: 1fr;
  }

  .account-form-full {
    grid-column: 1;
  }

  .account-section-head,
  .account-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-card-heading > p {
    max-width: none;
    text-align: left;
  }

  .account-recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-security-card {
    grid-template-columns: 1fr;
  }

  .account-security-copy {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  }
}

@media (max-width: 480px) {
  .account-overview-grid {
    grid-template-columns: 1fr;
  }

  .account-hero-actions {
    flex-direction: column;
  }

  .account-hero-actions .btn {
    width: 100%;
  }

  .account-recent-grid {
    grid-template-columns: 1fr;
  }

  .account-list-item,
  body[data-page="account"] .account-list > .activity-item,
  body[data-page="account"] .account-list > .order-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .account-list-item > .btn,
  body[data-page="account"] .account-list > .activity-item > .btn,
  body[data-page="account"] .account-list > .order-item > .btn {
    grid-column: 2;
    justify-self: start;
  }
}

/* =========================================================
   SUCCESS — PREMIUM ORDER CONFIRMATION
   ========================================================= */
body[data-page="success"] .success-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 88px;
}

.success-hero {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 22px;
  align-items: center;
  min-height: 240px;
  padding: 34px 0 32px;
  border-bottom: 1px solid rgba(255, 235, 244, 0.075);
}

.success-status-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  align-self: start;
  margin-top: 5px;
  border: 1px solid rgba(216, 121, 160, 0.18);
  border-radius: 17px;
  color: #e08daf;
  background: linear-gradient(
    145deg,
    rgba(184, 91, 130, 0.12),
    rgba(184, 91, 130, 0.035)
  );
  font-size: 21px;
  box-shadow: 0 15px 36px rgba(126, 45, 81, 0.12);
}

.success-hero-copy {
  min-width: 0;
}

.success-confirmation-number {
  margin: 0 0 6px;
  color: #9b8791;
  font:
    500 9px/1.3 "DM Mono",
    monospace;
  letter-spacing: 0.04em;
}

.success-hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.success-hero-text {
  max-width: 680px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.success-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.success-trust-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 235, 244, 0.075);
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(184, 91, 130, 0.1),
      transparent 55%
    ),
    rgba(13, 9, 12, 0.78);
}

.success-trust-kicker,
.success-card-head span,
.success-support-card > span,
.success-items-heading > span {
  color: #8b6c7a;
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.14em;
}

.success-trust-card > strong {
  display: block;
  margin: 7px 0 7px;
  font-size: 16px;
}

.success-trust-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.success-trust-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #9e9097;
  font-size: 8.5px;
}

.success-trust-row i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #70d8ad;
  box-shadow: 0 0 9px rgba(112, 216, 173, 0.3);
}

.success-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(290px, 0.52fr);
  gap: 12px;
  align-items: start;
  margin-top: 16px;
}

.success-main-column,
.success-side-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.success-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 235, 244, 0.075);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.02),
      rgba(184, 91, 130, 0.008)
    ),
    rgba(12, 9, 12, 0.82);
}

.success-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.success-card-head h2 {
  margin: 5px 0 0;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.success-status-pill {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(112, 216, 173, 0.12);
  border-radius: 999px;
  color: #75d8ae !important;
  background: rgba(112, 216, 173, 0.045);
  letter-spacing: 0.04em !important;
}

.success-text-link {
  color: #c68aa4;
  font-size: 9px;
}

.success-order-summary {
  padding: 14px 18px 17px;
}

.success-loading-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 76px;
}

.success-loading-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.success-loading-row strong,
.success-loading-row small {
  display: block;
}

.success-loading-row strong {
  font-size: 10px;
}

.success-loading-row small {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 8px;
}

.success-product-list {
  display: grid;
  gap: 7px;
}

.success-product-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.006);
}

.success-product-media {
  position: relative;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}

.success-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.success-product-media span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  color: white;
  background: rgba(20, 12, 17, 0.86);
  font-size: 7px;
}

.success-product-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.success-product-copy strong {
  overflow: hidden;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.success-product-copy small {
  color: var(--muted-2);
  font-size: 8px;
}

.success-product-row > b {
  font-size: 10px;
}

.success-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 13px;
  padding: 14px 2px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.success-total-row > div {
  display: grid;
  gap: 3px;
}

.success-total-row span {
  color: #c7b9c0;
  font-size: 10px;
  font-weight: 700;
}

.success-total-row small {
  color: var(--muted-2);
  font-size: 7.5px;
}

.success-total-row > strong {
  font-size: 19px;
  letter-spacing: -0.04em;
}

.success-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 18px 8px;
}

.success-detail-block {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.006);
}

.success-detail-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(216, 121, 160, 0.1);
  border-radius: 9px;
  color: var(--rose-hi, #d879a0);
  background: rgba(184, 91, 130, 0.04);
  font:
    700 10px/1 "DM Mono",
    monospace;
}

.success-detail-block small {
  color: #77636d;
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.12em;
}

.success-detail-block h3 {
  margin: 5px 0 6px;
  font-size: 11px;
}

.success-detail-block p {
  margin: 0;
  color: #b3a7ad;
  font-size: 9px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.success-payment-pill {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  margin-right: 5px;
  padding: 0 7px;
  border: 1px solid rgba(216, 121, 160, 0.1);
  border-radius: 999px;
  color: #c98da7;
  background: rgba(184, 91, 130, 0.04);
  font-size: 7px;
}

.success-items-breakdown {
  margin: 0 18px 17px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.006);
}

.success-items-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.success-items-heading > strong {
  color: #9c8e95;
  font-size: 8px;
}

.success-items-list {
  display: grid;
}

.success-items-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #ab9fa5;
  font-size: 9px;
}

.success-items-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.success-items-list > div strong {
  color: #d7cbd1;
  font-size: 8px;
}

.success-step-list {
  display: grid;
  padding: 9px 17px 16px;
}

.success-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.success-step:last-child {
  border-bottom: 0;
}

.success-step > span {
  color: var(--rose-hi, #d879a0);
  font:
    600 8px/1.4 "DM Mono",
    monospace;
}

.success-step > div {
  display: grid;
  gap: 4px;
}

.success-step strong {
  font-size: 9.5px;
}

.success-step small {
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.45;
}

.success-support-card {
  padding: 18px;
}

.success-support-card h3 {
  margin: 8px 0 8px;
  font-size: 17px;
}

.success-support-card p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.success-support-card .btn {
  width: 100%;
}

.success-empty-detail {
  padding: 20px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 900px) {
  .success-hero {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .success-trust-card {
    grid-column: 1 / -1;
    margin-left: 76px;
  }

  .success-layout {
    grid-template-columns: 1fr;
  }

  .success-side-column {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body[data-page="success"] .success-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 28px;
  }

  .success-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 0;
    padding-top: 24px;
  }

  .success-status-mark {
    width: 48px;
    height: 48px;
  }

  .success-trust-card {
    grid-column: auto;
    margin-left: 0;
  }

  .success-side-column,
  .success-detail-grid {
    grid-template-columns: 1fr;
  }

  .success-product-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .success-product-row > b {
    grid-column: 2;
  }

  .success-actions {
    flex-direction: column;
  }

  .success-actions .btn {
    width: 100%;
  }
}

/* ============================================================
   MERIDIAN WORKS — PREMIUM 404 / INVALID LINK PAGE
   ============================================================ */
.not-found-page {
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(208, 111, 152, 0.09),
      transparent 26rem
    ),
    radial-gradient(
      circle at 18% 85%,
      rgba(184, 91, 130, 0.05),
      transparent 25rem
    ),
    #09070a;
}

.not-found-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(
    circle at center,
    #000 0%,
    transparent 72%
  );
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.not-found-ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.not-found-ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  background: #d06f98;
  opacity: 0.055;
}

.not-found-ambient span:nth-child(1) {
  width: 30rem;
  height: 30rem;
  left: -15rem;
  top: -13rem;
}

.not-found-ambient span:nth-child(2) {
  width: 24rem;
  height: 24rem;
  right: -12rem;
  top: 28%;
}

.not-found-ambient span:nth-child(3) {
  width: 20rem;
  height: 20rem;
  left: 42%;
  bottom: -14rem;
}

.not-found-shell {
  width: min(100% - 36px, 720px);
  padding: 42px 0;
  position: relative;
  z-index: 2;
}

.not-found-card {
  position: relative;
  padding: 34px 42px 30px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(216, 121, 160, 0.14);
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(27, 19, 26, 0.93),
    rgba(15, 11, 15, 0.96)
  );
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.48),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

.not-found-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(224, 141, 175, 0.8),
    transparent
  );
}

.not-found-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  margin-bottom: 30px;
}

.not-found-brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #e08daf;
  font-size: 13px;
  font-weight: 800;
  background: rgba(184, 91, 130, 0.09);
  border: 1px solid rgba(216, 121, 160, 0.2);
}

.not-found-brand strong {
  display: block;
  color: #f8f3f6;
  font-size: 12px;
  line-height: 1.2;
}

.not-found-brand small {
  display: block;
  margin-top: 5px;
  color: #76666f;
  font:
    500 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.2em;
}

.not-found-code-wrap {
  width: 250px;
  height: 150px;
  margin: 0 auto 8px;
  position: relative;
  display: grid;
  place-items: center;
}

.not-found-code-wrap::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 90px;
  border-radius: 50%;
  background: rgba(208, 111, 152, 0.11);
  filter: blur(35px);
}

.not-found-code {
  position: relative;
  font-size: clamp(82px, 15vw, 124px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.085em;
  color: transparent;
  background: linear-gradient(180deg, #fff6fa 4%, #d8759e 72%, #8c3f61 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 14px 32px rgba(184, 91, 130, 0.14));
}

.not-found-orbit {
  position: absolute;
  width: 226px;
  height: 78px;
  border: 1px solid rgba(216, 121, 160, 0.18);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.not-found-orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: 28px;
  top: 5px;
  border-radius: 50%;
  background: #d06f98;
  box-shadow: 0 0 18px rgba(208, 111, 152, 0.8);
}

.not-found-eyebrow {
  margin: 10px 0 10px;
  color: #d879a0;
  font:
    600 9px/1.2 "DM Mono",
    monospace;
  letter-spacing: 0.2em;
}

.not-found-card h1 {
  margin: 0;
  color: #fff8fb;
  font-size: clamp(27px, 5vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.not-found-copy {
  width: min(100%, 520px);
  margin: 15px auto 0;
  color: #9e8e96;
  font-size: 13px;
  line-height: 1.75;
}

.not-found-actions {
  margin-top: 27px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.not-found-primary,
.not-found-secondary {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.not-found-primary {
  min-width: 164px;
  color: #fff;
  background: linear-gradient(180deg, #ca678f, #ae4f77);
  border: 1px solid rgba(239, 155, 190, 0.28);
  box-shadow: 0 12px 30px rgba(184, 91, 130, 0.15);
}

.not-found-secondary {
  color: #d8cdd2;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.not-found-primary:hover,
.not-found-secondary:hover {
  transform: translateY(-2px);
}

.not-found-secondary:hover {
  border-color: rgba(216, 121, 160, 0.2);
  background: rgba(216, 121, 160, 0.045);
}

.not-found-meta {
  min-height: 20px;
  margin-top: 29px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #62545b;
  font:
    500 8px/1.4 "DM Mono",
    monospace;
  letter-spacing: 0.08em;
}

.not-found-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.not-found-meta i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
  background: #c8658e;
  box-shadow: 0 0 9px rgba(200, 101, 142, 0.6);
}

@media (max-width: 620px) {
  .not-found-shell {
    width: min(100% - 24px, 720px);
    padding: 20px 0;
  }

  .not-found-card {
    padding: 27px 20px 23px;
    border-radius: 22px;
  }

  .not-found-brand {
    margin-bottom: 22px;
  }

  .not-found-code-wrap {
    width: 210px;
    height: 130px;
  }

  .not-found-orbit {
    width: 194px;
    height: 68px;
  }

  .not-found-actions {
    flex-direction: column;
  }

  .not-found-primary,
  .not-found-secondary {
    width: 100%;
  }

  .not-found-meta {
    justify-content: center;
  }

  .not-found-meta span:last-child {
    display: none;
  }
}

/* ============================================================
   MERIDIAN WORKS — REAL BRAND LOGO OVERRIDES
   Replaces every remaining visual "M" placeholder.
   ============================================================ */
.mw-mark.mw-mark-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mw-mark.mw-mark-logo::before,
.mw-mark.mw-mark-logo::after,
.mw-mark.mw-mark-logo i,
.mw-mark.mw-mark-logo b {
  display: none !important;
  content: none !important;
}

.mw-logo-image {
  display: block;
  width: 46px;
  height: 46px;
  max-width: 46px;
  max-height: 46px;
  object-fit: contain;
  object-position: center;
  border: 0;
  outline: 0;
  background: transparent;
  filter: none;
}

.not-found-brand-mark.not-found-brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

.not-found-brand-logo img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 0;
  outline: 0;
  background: transparent;
}

@media (max-width: 680px) {
  .mw-mark.mw-mark-logo,
  .mw-logo-image {
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
  }
}

/* ============================================================
   ABOUT HERO — EYEBROW / PREMIUM BADGE ALIGNMENT
   Keeps "Premium Digital Products" perfectly inline with
   "About Meridian" instead of sitting slightly lower.
   ============================================================ */
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.eyebrow-row .eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.eyebrow-row .kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  line-height: 1;
}

/* ============================================================
   ACCOUNT — 2026 PREMIUM LAYOUT REFINEMENT
   Final overrides: spacing, typography, order cards, billing,
   responsive navigation and consistent content hierarchy.
   ============================================================ */

body[data-page="account"] {
  --account-content-max: 1240px;
}

body[data-page="account"] .account-shell {
  width: min(var(--account-content-max), calc(100% - 48px));
  padding: 54px 0 96px;
}

body[data-page="account"] .account-hero {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  min-height: 330px;
  padding: 50px 0 42px;
}

body[data-page="account"] .account-hero h1 {
  max-width: 760px;
  margin: 10px 0 12px;
  font-size: clamp(54px, 6vw, 84px);
}

body[data-page="account"] .account-hero-meta {
  font-size: 11px;
}

body[data-page="account"] .account-hero-subtitle {
  max-width: 650px;
  font-size: 14px;
}

body[data-page="account"] .account-identity-card {
  padding: 22px;
  border-radius: 20px;
}

body[data-page="account"] .account-overview-grid {
  gap: 14px;
  margin: 20px 0 34px;
}

body[data-page="account"] .account-overview-card {
  min-height: 118px;
  padding: 18px;
  border-radius: 16px;
}

body[data-page="account"] .account-overview-card small {
  font-size: 8px;
}

body[data-page="account"] .account-overview-card p {
  font-size: 9px;
}

body[data-page="account"] .account-layout {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 30px;
}

body[data-page="account"] .account-sidebar {
  top: 112px;
  gap: 5px;
  padding: 12px;
  border-radius: 16px;
}

body[data-page="account"] .account-sidebar-label {
  padding: 9px 11px 12px;
  font-size: 8px;
}

body[data-page="account"] .account-sidebar a {
  gap: 11px;
  min-height: 44px;
  padding: 10px 11px;
  border-radius: 10px;
  font-size: 11px;
}

body[data-page="account"] .account-sidebar a span {
  width: 20px;
  font-size: 12px;
}

body[data-page="account"] .account-section {
  padding-bottom: 44px;
  margin-bottom: 44px;
}

body[data-page="account"] .account-section-head {
  margin-bottom: 18px;
}

body[data-page="account"] .account-section-head > div:first-child > span {
  font-size: 8px;
}

body[data-page="account"] .account-section-head h2 {
  margin: 7px 0 8px;
  font-size: clamp(30px, 3vw, 38px);
}

body[data-page="account"] .account-section-head p {
  max-width: 680px;
  font-size: 12px;
  line-height: 1.6;
}

body[data-page="account"] .account-section-badge {
  padding: 8px 11px;
  font-size: 8px;
}

body[data-page="account"] .account-card {
  border-radius: 18px;
}

body[data-page="account"] .account-card-gap {
  margin-top: 16px;
}

body[data-page="account"] .account-card-heading {
  min-height: 72px;
  padding: 18px 20px;
}

body[data-page="account"] .account-card-heading small {
  font-size: 8px;
}

body[data-page="account"] .account-card-heading h3 {
  margin-top: 6px;
  font-size: 17px;
}

body[data-page="account"] .account-card-heading > p {
  max-width: 420px;
  font-size: 10px;
  line-height: 1.55;
}

body[data-page="account"] .account-form {
  gap: 14px;
  padding: 20px;
}

body[data-page="account"] .account-form label {
  gap: 7px;
  font-size: 10px;
}

body[data-page="account"] .account-form input,
body[data-page="account"] .account-form select {
  min-height: 48px;
}

body[data-page="account"] .account-form textarea {
  min-height: 112px;
}

body[data-page="account"] .account-form-actions {
  padding-top: 5px;
}

body[data-page="account"] .account-form-actions .btn {
  min-width: 150px;
}

body[data-page="account"] .account-split-grid {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

body[data-page="account"] .account-billing-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: stretch;
}

body[data-page="account"] .account-billing-grid > .account-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

body[data-page="account"]
  .account-billing-grid
  > .account-card
  > .account-list {
  flex: 1;
}

body[data-page="account"] .account-list {
  gap: 10px;
  padding: 18px;
}

body[data-page="account"] .account-list-item,
body[data-page="account"] .account-download-card,
body[data-page="account"] .account-subscription-card,
body[data-page="account"] .account-gift-card-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.009);
}

body[data-page="account"] .account-list-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

body[data-page="account"] .account-list-title strong {
  font-size: 12px;
}

body[data-page="account"] .account-list-copy p {
  margin: 5px 0 2px;
  font-size: 11px;
}

body[data-page="account"] .account-list-copy small {
  font-size: 9.5px;
  line-height: 1.6;
}

/* Orders: replace raw stacked activity text with a deliberate receipt row. */
body[data-page="account"] .account-order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(184, 91, 130, 0.024),
      rgba(255, 255, 255, 0.007)
    ),
    rgba(7, 6, 8, 0.25);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

body[data-page="account"] .account-order-card:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 121, 160, 0.16);
  background:
    linear-gradient(
      135deg,
      rgba(184, 91, 130, 0.045),
      rgba(255, 255, 255, 0.009)
    ),
    rgba(7, 6, 8, 0.3);
}

body[data-page="account"] .account-order-main {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

body[data-page="account"] .account-order-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(216, 121, 160, 0.13);
  border-radius: 12px;
  color: #d879a0;
  background: rgba(184, 91, 130, 0.05);
}

body[data-page="account"] .account-order-copy {
  min-width: 0;
}

body[data-page="account"] .account-order-topline {
  display: flex;
  align-items: center;
  gap: 9px;
}

body[data-page="account"] .account-order-topline strong {
  color: #fff8fb;
  font-size: 17px;
  line-height: 1.1;
}

body[data-page="account"] .account-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 7px;
  color: #8e7f87;
  font:
    500 9px/1.4 "DM Mono",
    monospace;
}

body[data-page="account"] .account-order-copy p {
  overflow: hidden;
  margin: 8px 0 0;
  color: #b3a5ac;
  font-size: 10.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="account"] .account-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid rgba(216, 121, 160, 0.12);
  border-radius: 999px;
  color: #cf86a5;
  background: rgba(184, 91, 130, 0.045);
  font:
    600 8px/1 "DM Mono",
    monospace;
  text-transform: capitalize;
}

body[data-page="account"] .account-order-action {
  flex: 0 0 auto;
  min-height: 38px;
  padding-inline: 13px;
  font-size: 9px;
}

/* Empty states need breathing room, not generic activity-item styling. */
body[data-page="account"] .account-empty-state {
  min-height: 150px;
  padding: 28px 20px;
  border: 0;
  background: transparent;
}

body[data-page="account"] .account-empty-state > span {
  width: 42px;
  height: 42px;
}

body[data-page="account"] .account-empty-state strong {
  font-size: 12px;
}

body[data-page="account"] .account-empty-state small {
  font-size: 9.5px;
}

/* Payment preferences should read as one premium form, not a tall stack. */
body[data-page="account"] #paymentPreferencesForm {
  grid-template-columns: 1fr 1fr;
  align-content: start;
}

body[data-page="account"] #paymentPreferencesForm label:first-child,
body[data-page="account"] #paymentPreferencesForm label:last-of-type,
body[data-page="account"] #paymentPreferencesForm .account-form-actions {
  grid-column: 1 / -1;
}

body[data-page="account"] #paymentPreferencesForm .account-form-actions {
  justify-content: flex-end;
}

/* Subscription card actions. */
body[data-page="account"] .account-card-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 18px 18px;
}

body[data-page="account"] .account-card-actions .btn {
  min-width: 138px;
}

/* Prevent old generic activity/order CSS from breaking this page. */
body[data-page="account"] #accountOrders > .account-order-card,
body[data-page="account"] #accountSubscriptions > .account-subscription-card,
body[data-page="account"] #accountDownloads > .account-download-card,
body[data-page="account"] #accountGiftCards > .account-gift-card-row {
  width: 100%;
}

/* Sidebar becomes a clean horizontal section switcher at tablet width. */
@media (max-width: 1100px) {
  body[data-page="account"] .account-shell {
    width: min(100% - 34px, var(--account-content-max));
  }

  body[data-page="account"] .account-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  body[data-page="account"] .account-sidebar {
    top: 82px;
    display: flex;
    gap: 5px;
    padding: 7px;
  }

  body[data-page="account"] .account-sidebar a {
    min-height: 39px;
    padding: 8px 11px;
  }

  body[data-page="account"] .account-split-grid,
  body[data-page="account"] .account-billing-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="account"] .account-billing-grid > .account-card {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  body[data-page="account"] .account-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
    padding: 34px 0;
  }

  body[data-page="account"] .account-identity-card {
    max-width: 520px;
  }

  body[data-page="account"] .account-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="account"] .account-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  body[data-page="account"] #paymentPreferencesForm {
    grid-template-columns: 1fr;
  }

  body[data-page="account"] #paymentPreferencesForm label,
  body[data-page="account"] #paymentPreferencesForm label:first-child,
  body[data-page="account"] #paymentPreferencesForm label:last-of-type,
  body[data-page="account"] #paymentPreferencesForm .account-form-actions {
    grid-column: 1;
  }

  body[data-page="account"] .account-order-card {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  body[data-page="account"] .account-order-action {
    align-self: flex-start;
  }
}

@media (max-width: 560px) {
  body[data-page="account"] .account-shell {
    width: calc(100% - 22px);
    padding-top: 24px;
  }

  body[data-page="account"] .account-overview-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="account"] .account-profile-form,
  body[data-page="account"] .account-address-form {
    grid-template-columns: 1fr;
  }

  body[data-page="account"] .account-form-full {
    grid-column: 1;
  }

  body[data-page="account"] .account-list-item,
  body[data-page="account"] .account-download-card,
  body[data-page="account"] .account-subscription-card,
  body[data-page="account"] .account-gift-card-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  body[data-page="account"] .account-list-item > .btn,
  body[data-page="account"] .account-download-card > .btn,
  body[data-page="account"] .account-subscription-card > .btn {
    grid-column: 2;
    justify-self: start;
  }

  body[data-page="account"] .account-order-meta {
    flex-direction: column;
    gap: 3px;
  }

  body[data-page="account"] .account-order-copy p {
    white-space: normal;
  }
}

/* ============================================================
   AVATARS — PREMIUM CARD REFINEMENT
   Long filenames may never push/crop the Copy action.
   ============================================================ */

body[data-page="avatars"] main {
  width: min(calc(100% - 40px), 1280px);
  padding-top: 54px;
}

body[data-page="avatars"] .section {
  margin-top: 0;
  padding-top: 30px;
}

body[data-page="avatars"] .avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

body[data-page="avatars"] .avatar-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(24, 17, 22, 0.94),
    rgba(13, 10, 13, 0.98)
  );
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

body[data-page="avatars"] .avatar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 121, 160, 0.18);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(184, 91, 130, 0.025);
}

body[data-page="avatars"] .avatar-card > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  object-fit: cover;
  background: #0b090c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

body[data-page="avatars"] .avatar-card-body {
  min-width: 0;
  min-height: 108px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 13px 12px;
}

body[data-page="avatars"] .avatar-filename-row {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

body[data-page="avatars"] .avatar-filename-row strong {
  min-width: 0;
  max-width: 100%;
  display: block;
  overflow: hidden;
  color: #f7eff3;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="avatars"] .copy-filename-btn {
  width: auto;
  min-width: 54px;
  min-height: 30px;
  flex: 0 0 auto;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 121, 160, 0.12);
  border-radius: 8px;
  background: rgba(184, 91, 130, 0.035);
  color: #bfaeb6;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

body[data-page="avatars"] .copy-filename-btn:hover {
  color: #fff8fb;
  background: rgba(184, 91, 130, 0.09);
  border-color: rgba(216, 121, 160, 0.22);
  transform: translateY(-1px);
}

body[data-page="avatars"] .avatar-card-meta {
  min-width: 0;
  margin-top: auto;
  display: grid;
  gap: 3px;
}

body[data-page="avatars"] .avatar-card-meta span,
body[data-page="avatars"] .avatar-card-meta small {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="avatars"] .avatar-card-meta span {
  color: #9d8d95;
  font-size: 9px;
  line-height: 1.45;
}

body[data-page="avatars"] .avatar-card-meta small {
  color: #695b62;
  font:
    500 8px/1.4 "DM Mono",
    monospace;
}

/* Consistent pagination spacing below the refined grid. */
body[data-page="avatars"] .avatar-pagination {
  margin-top: 26px;
}

body[data-page="avatars"] .avatar-page-summary {
  margin-bottom: 10px;
  text-align: center;
}

/* Graceful grid reduction instead of crushing the card footer. */
@media (max-width: 1180px) {
  body[data-page="avatars"] .avatar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body[data-page="avatars"] .avatar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  body[data-page="avatars"] main {
    width: min(calc(100% - 24px), 1280px);
    padding-top: 32px;
  }

  body[data-page="avatars"] .avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  body[data-page="avatars"] .avatar-card-body {
    min-height: 104px;
    padding: 11px;
  }

  body[data-page="avatars"] .avatar-filename-row {
    gap: 7px;
  }

  body[data-page="avatars"] .copy-filename-btn {
    min-width: 46px;
    padding: 0 8px;
  }
}

@media (max-width: 390px) {
  body[data-page="avatars"] .avatar-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ACCOUNT — PROFILE PICTURE UPLOAD
   ============================================================ */
body[data-page="account"] .account-profile-image-field {
  min-width: 0;
}

body[data-page="account"] .account-profile-upload {
  min-height: 94px;
  padding: 13px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(184, 91, 130, 0.025), transparent),
    rgba(7, 6, 8, 0.28);
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

body[data-page="account"] .account-profile-upload:focus-within,
body[data-page="account"] .account-profile-upload:hover {
  border-color: rgba(216, 121, 160, 0.2);
  background:
    linear-gradient(135deg, rgba(184, 91, 130, 0.045), transparent),
    rgba(7, 6, 8, 0.34);
}

body[data-page="account"] .account-profile-upload-preview {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(216, 121, 160, 0.14);
  border-radius: 17px;
  color: #d879a0;
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(216, 121, 160, 0.09),
      transparent 65%
    ),
    #120d11;
  font-size: 19px;
  font-weight: 800;
}

body[data-page="account"] .account-profile-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="account"] .account-profile-upload-copy {
  min-width: 0;
}

body[data-page="account"] .account-profile-upload-copy > strong {
  display: block;
  overflow: hidden;
  color: #eee4e9;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="account"] .account-profile-upload-copy > small {
  display: block;
  margin-top: 4px;
  color: #786a71;
  font-size: 8.5px;
  line-height: 1.5;
}

body[data-page="account"] .account-profile-upload-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

body[data-page="account"] .account-profile-upload-actions .btn {
  min-height: 34px;
  padding: 0 11px;
  font-size: 9px;
}

body[data-page="account"] .account-file-button {
  cursor: pointer;
}

@media (max-width: 560px) {
  body[data-page="account"] .account-profile-upload {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  body[data-page="account"] .account-profile-upload-preview {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }
}

/* ============================================================
   VOUCHES — PREMIUM REPUTATION PAGE
   ============================================================ */

body.vouches-page {
  background:
    radial-gradient(
      circle at 70% 13%,
      rgba(207, 102, 146, 0.1),
      transparent 28rem
    ),
    radial-gradient(
      circle at 13% 38%,
      rgba(116, 46, 78, 0.07),
      transparent 26rem
    ),
    #09070a;
}

body.vouches-page .vouches-main {
  width: min(calc(100% - 48px), 1240px);
  padding: 58px 0 110px;
}

/* Hero */
.vouches-hero {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 70px;
  align-items: center;
  padding: 42px 0 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.vouches-hero-copy {
  max-width: 760px;
}

.vouches-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-bottom: 19px;
}

.vouches-eyebrow {
  color: #d879a0;
  font:
    600 9px/1.2 "DM Mono",
    monospace;
  letter-spacing: 0.18em;
}

.vouches-live-pill {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(216, 121, 160, 0.12);
  border-radius: 999px;
  color: #99878f;
  background: rgba(184, 91, 130, 0.035);
  font-size: 9px;
  font-weight: 700;
}

.vouches-live-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d879a0;
  box-shadow: 0 0 11px rgba(216, 121, 160, 0.65);
}

.vouches-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(52px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.vouches-hero h1 span {
  color: #c6648c;
}

.vouches-hero-copy > p {
  max-width: 650px;
  margin: 23px 0 0;
  color: #a2929a;
  font-size: 15px;
  line-height: 1.8;
}

.vouches-hero-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 27px;
}

/* Score card */
.vouches-score-card {
  min-height: 360px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 121, 160, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(216, 121, 160, 0.09),
      transparent 15rem
    ),
    linear-gradient(145deg, rgba(28, 19, 26, 0.96), rgba(14, 10, 14, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
}

.vouches-score-card::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -100px;
  bottom: -120px;
  border: 1px solid rgba(216, 121, 160, 0.08);
  border-radius: 50%;
}

.vouches-score-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(216, 121, 160, 0.8),
    transparent
  );
}

.vouches-score-top,
.vouches-score-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.vouches-score-top > span:first-child {
  color: #83727b;
  font:
    600 8px/1 "DM Mono",
    monospace;
  letter-spacing: 0.15em;
}

.vouches-score-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(216, 121, 160, 0.13);
  border-radius: 999px;
  color: #d17c9f;
  background: rgba(184, 91, 130, 0.04);
  font:
    700 8px/1 "DM Mono",
    monospace;
}

.vouches-score-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 34px;
}

.vouches-score-value strong {
  color: #fff8fb;
  font-size: clamp(64px, 7vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.vouches-score-value span {
  color: #725f69;
  font:
    500 15px/1 "DM Mono",
    monospace;
}

.vouches-score-stars {
  position: relative;
  width: max-content;
  margin-top: 17px;
  color: rgba(255, 255, 255, 0.09);
  font-size: 22px;
  letter-spacing: 4px;
}

.vouches-score-stars::before {
  content: "★★★★★";
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--rating-fill, 0%);
  overflow: hidden;
  color: #e1ad74;
  white-space: nowrap;
}

.vouches-score-card > p {
  margin: 16px 0 28px;
  color: #97878f;
  font-size: 12px;
}

.vouches-score-card > p strong {
  color: #e9dde3;
}

.vouches-score-foot {
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #685961;
  font:
    500 8px/1.4 "DM Mono",
    monospace;
}

.vouches-score-foot span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.vouches-score-foot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c96690;
}

/* Trust strip */
.vouches-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 76px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.vouches-trust-strip > div {
  min-height: 140px;
  padding: 26px 30px 28px 0;
  position: relative;
}

.vouches-trust-strip > div + div {
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.vouches-trust-strip span {
  display: block;
  margin-bottom: 15px;
  color: #c1688e;
  font:
    600 8px/1 "DM Mono",
    monospace;
}

.vouches-trust-strip strong {
  display: block;
  color: #efe5ea;
  font-size: 13px;
}

.vouches-trust-strip p {
  max-width: 280px;
  margin: 7px 0 0;
  color: #786a71;
  font-size: 10px;
  line-height: 1.6;
}

/* Section heading */
.vouches-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 35px;
  margin-bottom: 25px;
}

.vouches-section-head h2 {
  margin: 8px 0 9px;
  font-size: clamp(34px, 4vw, 50px);
}

.vouches-section-head p {
  max-width: 600px;
  margin: 0;
  color: #8f7f87;
  font-size: 12px;
}

.vouches-inline-stats {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

.vouches-inline-stats > div {
  min-width: 112px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.012);
}

.vouches-inline-stats small {
  display: block;
  color: #716169;
  font:
    600 8px/1 "DM Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.vouches-inline-stats strong {
  display: block;
  margin-top: 7px;
  color: #f3e9ee;
  font-size: 20px;
}

/* Toolbar */
body.vouches-page .vouch-toolbar {
  margin: 0 0 22px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.012);
}

.vouch-toolbar-copy span {
  display: block;
  color: #b75f84;
  font:
    600 8px/1 "DM Mono",
    monospace;
  letter-spacing: 0.14em;
}

.vouch-toolbar-copy strong {
  display: block;
  margin-top: 7px;
  color: #b8aab1;
  font-size: 10px;
  font-weight: 600;
}

.vouch-filter-field {
  min-width: 270px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
}

.vouch-filter-field > span {
  color: #786870;
  font:
    600 8px/1 "DM Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

body.vouches-page .service-filter {
  min-width: 0;
  width: 100%;
  margin: 0;
  display: block;
  min-height: 42px;
  padding: 0 38px 0 12px;
  border-radius: 10px;
  background: #100c10;
  color: #e9dde3;
  font-size: 10px;
}

/* Review grid */
body.vouches-page .vouch-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

body.vouches-page .vouch-card {
  min-width: 0;
  padding: 21px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(25, 18, 23, 0.76),
    rgba(13, 10, 13, 0.92)
  );
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.09);
}

body.vouches-page .vouch-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 121, 160, 0.17);
  background: linear-gradient(
    145deg,
    rgba(29, 20, 27, 0.88),
    rgba(14, 10, 14, 0.96)
  );
}

body.vouches-page .vouch-card-top {
  margin: 0;
  align-items: center;
}

body.vouches-page .vouch-user {
  min-width: 0;
  gap: 11px;
}

.vouch-avatar-wrap {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  position: relative;
}

.vouch-avatar-wrap img {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(216, 121, 160, 0.13);
  border-radius: 13px;
  object-fit: cover;
  background: #100d10;
}

.vouch-avatar-wrap i {
  position: absolute;
  width: 10px;
  height: 10px;
  right: -2px;
  bottom: -2px;
  border: 2px solid #100c10;
  border-radius: 50%;
  background: #c96690;
}

.vouch-user-copy {
  min-width: 0;
}

.vouch-user-copy h3 {
  overflow: hidden;
  margin: 0;
  color: #f5ecf0;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vouch-user-copy p {
  margin: 4px 0 0;
  color: #6d5e66;
  font:
    500 8px/1.4 "DM Mono",
    monospace;
}

body.vouches-page .rating-summary {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 4px;
}

body.vouches-page .rating-summary > strong {
  color: #fff6fa;
  font-size: 15px;
  line-height: 1;
}

body.vouches-page .stars {
  display: flex;
  gap: 2px;
  color: rgba(255, 255, 255, 0.09);
  font-size: 10px;
}

body.vouches-page .stars .filled {
  color: #e1ad74;
}

.vouch-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
}

.vouch-service-pill {
  max-width: 72%;
  min-height: 27px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(216, 121, 160, 0.12);
  border-radius: 999px;
  color: #c982a0;
  background: rgba(184, 91, 130, 0.045);
  font:
    600 8px/1 "DM Mono",
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vouch-price {
  color: #8d7d85;
  font:
    600 9px/1 "DM Mono",
    monospace;
}

body.vouches-page blockquote.vouch-review {
  min-height: 76px;
  margin: 0;
  color: #ddd0d7;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.75;
}

.vouch-proof-wrap {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  background: #0d0a0d;
}

body.vouches-page .vouch-proof {
  width: 100%;
  height: 190px;
  margin: 0;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.vouch-proof-wrap:hover .vouch-proof {
  transform: scale(1.018);
}

.vouch-proof-wrap figcaption {
  min-height: 44px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vouch-proof-wrap figcaption span {
  color: #b45d83;
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.12em;
}

.vouch-proof-wrap figcaption strong {
  color: #74656d;
  font-size: 8px;
}

.vouch-no-proof {
  min-height: 54px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.008);
}

.vouch-no-proof > span {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #c9789b;
  background: rgba(184, 91, 130, 0.05);
  font-size: 9px;
}

.vouch-no-proof p {
  margin: 0;
  color: #706168;
  font-size: 8.5px;
  line-height: 1.55;
}

.vouch-card-footer {
  margin-top: auto;
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #5f5158;
  font:
    500 7px/1.4 "DM Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vouch-card-footer span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vouch-card-footer i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c96690;
}

/* Loading and empty states */
.vouch-card-loading {
  min-height: 300px;
  pointer-events: none;
}

.vouch-loading-line,
.vouch-loading-block {
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.025),
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.025)
  );
  background-size: 200% 100%;
  animation: vouchShimmer 1.4s linear infinite;
}

.vouch-loading-line {
  width: 66%;
  height: 14px;
}

.vouch-loading-line.short {
  width: 38%;
}

.vouch-loading-block {
  width: 100%;
  height: 190px;
  margin-top: 20px;
}

@keyframes vouchShimmer {
  to {
    background-position: -200% 0;
  }
}

.vouch-empty-state {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 34px;
  text-align: center;
  border: 1px dashed rgba(216, 121, 160, 0.12);
  border-radius: 18px;
  background: rgba(184, 91, 130, 0.015);
}

.vouch-empty-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border: 1px solid rgba(216, 121, 160, 0.14);
  border-radius: 13px;
  color: #d879a0;
  background: rgba(184, 91, 130, 0.045);
}

.vouch-empty-state strong {
  color: #eee4e9;
  font-size: 13px;
}

.vouch-empty-state p {
  max-width: 430px;
  margin: 0;
  color: #786970;
  font-size: 10px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 980px) {
  .vouches-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
  }

  .vouches-score-card {
    min-height: 0;
  }

  .vouches-trust-strip {
    grid-template-columns: 1fr;
  }

  .vouches-trust-strip > div {
    min-height: 0;
    padding: 22px 0;
  }

  .vouches-trust-strip > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
  }

  body.vouches-page .vouch-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.vouches-page .vouches-main {
    width: calc(100% - 24px);
    padding-top: 32px;
  }

  .vouches-hero {
    padding-top: 26px;
  }

  .vouches-hero h1 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .vouches-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .vouches-inline-stats {
    width: 100%;
  }

  .vouches-inline-stats > div {
    flex: 1;
  }

  body.vouches-page .vouch-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .vouch-filter-field {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  body.vouches-page .vouch-card {
    padding: 17px;
  }
}

/* ============================================================
   VOUCHES — CUSTOM SERVICE POPOVER
   Mirrors the premium Products page category selector.
   ============================================================ */

body.vouches-page .vouch-filter-field {
  min-width: 300px;
  display: grid;
  grid-template-columns: auto minmax(230px, 1fr);
  align-items: center;
  gap: 12px;
}

body.vouches-page .vouch-filter-field > span {
  color: #786870;
  font:
    600 8px/1 "DM Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.vouch-service-popover {
  position: relative;
  min-width: 0;
}

.vouch-service-trigger {
  width: 100%;
  min-height: 48px;
  padding: 7px 11px 7px 9px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 235, 244, 0.09);
  border-radius: 12px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.023),
      rgba(184, 91, 130, 0.014)
    ),
    rgba(13, 9, 12, 0.9);
  color: #f8f3f6;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.vouch-service-trigger:hover,
.vouch-service-popover.is-open .vouch-service-trigger {
  border-color: rgba(216, 121, 160, 0.24);
  background:
    linear-gradient(
      145deg,
      rgba(184, 91, 130, 0.06),
      rgba(184, 91, 130, 0.018)
    ),
    rgba(13, 9, 12, 0.96);
}

.vouch-service-trigger:active {
  transform: translateY(1px);
}

.vouch-service-trigger:disabled {
  opacity: 0.55;
  cursor: default;
}

.vouch-service-trigger-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 121, 160, 0.11);
  border-radius: 9px;
  color: #d879a0;
  background: rgba(184, 91, 130, 0.05);
}

.vouch-service-trigger-icon svg {
  width: 16px;
  height: 16px;
}

.vouch-service-trigger-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.vouch-service-trigger-copy small {
  color: #76666f;
  font:
    600 7px/1 "DM Mono",
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vouch-service-trigger-copy strong {
  overflow: hidden;
  color: #f8f3f6;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vouch-service-trigger-chevron {
  width: 7px;
  height: 7px;
  justify-self: end;
  border-right: 1.5px solid #a2949b;
  border-bottom: 1.5px solid #a2949b;
  transform: rotate(45deg) translateY(-2px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.vouch-service-popover.is-open .vouch-service-trigger-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
  border-color: #d879a0;
}

.vouch-service-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  width: min(310px, calc(100vw - 38px));
  max-height: 320px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid rgba(255, 235, 244, 0.09);
  border-radius: 14px;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.035),
      rgba(184, 91, 130, 0.024) 58%,
      rgba(255, 255, 255, 0.01)
    ),
    rgba(12, 8, 11, 0.985);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.44),
    0 5px 18px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: vouchServicePopoverIn 0.18s ease both;
}

.vouch-service-menu[hidden] {
  display: none !important;
}

.vouch-service-menu button {
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #a2949b;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.vouch-service-menu button:hover,
.vouch-service-menu button:focus-visible {
  outline: 0;
  color: #f8f3f6;
  border-color: rgba(216, 121, 160, 0.08);
  background: rgba(184, 91, 130, 0.045);
}

.vouch-service-menu button.is-active {
  color: #f8f3f6;
  border-color: rgba(216, 121, 160, 0.14);
  background: linear-gradient(
    90deg,
    rgba(184, 91, 130, 0.12),
    rgba(184, 91, 130, 0.03)
  );
}

.vouch-service-option-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 121, 160, 0.08);
  border-radius: 9px;
  color: #d879a0;
  background: rgba(184, 91, 130, 0.06);
  font:
    700 12px/1 "DM Mono",
    monospace;
}

.vouch-service-menu button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.vouch-service-menu button strong {
  overflow: hidden;
  color: inherit;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vouch-service-menu button small {
  overflow: hidden;
  color: #76666f;
  font-size: 8.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vouch-service-menu button > b {
  justify-self: end;
  color: transparent;
  font-size: 11px;
}

.vouch-service-menu button.is-active > b {
  color: #d879a0;
}

.vouch-service-menu::-webkit-scrollbar {
  width: 7px;
}

.vouch-service-menu::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(216, 121, 160, 0.22);
  background-clip: padding-box;
}

@keyframes vouchServicePopoverIn {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.975);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  body.vouches-page .vouch-filter-field {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .vouch-service-menu {
    left: 0;
    right: auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vouch-service-menu {
    animation: none;
  }

  .vouch-service-trigger,
  .vouch-service-trigger-chevron {
    transition: none;
  }
}
