/* Moon of Lilith — custom styles (pixel-matched to React original) */

:root {
  --font-sans: "Nunito", sans-serif;
  --font-serif: "Merriweather", serif;
  --color-accent: #c291ff;
  --color-accent-hover: #b070fb;
  --color-dark-bg: #0a0a0a;
  --color-card-bg: #141414;
}

body {
  background-color: #0a0a0a;
  color: #e5e7eb;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: #fff;
}

::selection {
  background: var(--color-accent);
  color: #000;
}

/* ── Header currency / language switchers (aligned + flagpack) ── */
.hdr-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2rem;
  padding: 0 0.15rem;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #d1d5db;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
  vertical-align: middle;
}
.hdr-switcher-btn:hover {
  color: #cca8ff;
}
.hdr-switcher-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hdr-switcher-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  opacity: 0.75;
}
.hdr-switcher-chev svg {
  display: block;
  width: 14px;
  height: 14px;
}
.hdr-switcher-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 2px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1;
}
.hdr-switcher-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.hdr-switcher-option.is-active {
  background: rgba(204, 168, 255, 0.15);
  color: #cca8ff;
}
/* Flagpack: hidden in nav bar by default; only on hover of the label/button */
.hdr-switcher-btn .fp {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  border-radius: 1px;
  width: 0 !important;
  max-width: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.18s ease, max-width 0.18s ease, margin 0.18s ease;
}
.hdr-switcher-btn:hover .fp,
.hdr-switcher-btn:focus-visible .fp {
  width: 1.15em !important;
  max-width: 1.4em;
  margin-right: 0.05rem;
  opacity: 1;
}
/* Dropdown options always show flags */
.hdr-switcher-option .fp,
#mobile-menu .fp {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  border-radius: 1px;
  opacity: 1;
  width: 1.15em !important;
  max-width: none;
  margin: 0;
}
.fp.fp-sm {
  width: 1.15em !important;
  height: 0.86em !important;
  font-size: 14px;
}

/* Cursor trail stars */
.magic-trail-star {
  position: fixed;
  left: 0;
  top: 0;
  width: 5px;
  height: 5px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  z-index: 99998;
  color: #e9d5ff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  animation: magicTrailFade var(--trail-dur, 520ms) ease-out forwards;
  will-change: transform, opacity;
}
.magic-trail-star svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 2px currentColor);
}
@keyframes magicTrailFade {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.85) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x, 0px)), calc(-50% + var(--drift-y, 6px))) scale(0.25) rotate(40deg);
  }
}

/* ── Magical click: tiny stars + dots diffuse slowly in all directions ── */
@keyframes magicSparkleDiffuse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(calc(var(--rot, 0deg) * 0.12));
  }
  35% {
    opacity: 0.95;
    transform: translate(
        calc(-50% + var(--mid-x, 0px)),
        calc(-50% + var(--mid-y, 0px))
      )
      scale(0.95)
      rotate(calc(var(--rot, 0deg) * 0.45));
  }
  100% {
    opacity: 0;
    transform: translate(
        calc(-50% + var(--end-x, 0px)),
        calc(-50% + var(--end-y, 0px))
      )
      scale(0.25)
      rotate(var(--rot, 90deg));
  }
}

@keyframes magicBurstRing {
  0% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.25);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.2);
  }
}

@keyframes magicBurstFlash {
  0% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.6);
  }
}

.magic-sparkle-item {
  position: fixed;
  pointer-events: none;
  z-index: 100000;
  will-change: transform, opacity;
  /* Slow radial fade-out */
  animation: magicSparkleDiffuse var(--duration, 3.5s) cubic-bezier(0.15, 0.55, 0.25, 1) var(--delay, 0ms) forwards;
}

.magic-burst-ring {
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  border: 1px solid var(--ring-color, #cca8ff);
  box-shadow: 0 0 10px var(--ring-color, #cca8ff);
  animation: magicBurstRing 1.5s cubic-bezier(0.15, 0.55, 0.25, 1) forwards;
  will-change: transform, opacity;
}

.magic-burst-flash {
  position: fixed;
  pointer-events: none;
  z-index: 99997;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(204, 168, 255, 0.35) 40%,
    transparent 70%
  );
  animation: magicBurstFlash 1s ease-out forwards;
  will-change: transform, opacity;
}

/* ── Magic cursor: star by default, native hand on clickables ── */
@media (hover: hover) and (pointer: fine) {
  body.magic-cursor-enabled,
  body.magic-cursor-enabled * {
    cursor: none !important;
  }
  /* Over links / buttons: restore system pointer (hand) */
  body.magic-cursor-enabled.magic-cursor-pointer,
  body.magic-cursor-enabled.magic-cursor-pointer * {
    cursor: pointer !important;
  }
}

.magic-cursor-el {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99999;
  pointer-events: none;
  width: 0;
  height: 0;
  display: none;
  will-change: transform, opacity;
  opacity: 1;
  transition: opacity 0.12s ease;
}
@media (min-width: 768px) {
  .magic-cursor-el {
    display: block;
  }
}
.magic-cursor-el.is-off,
.magic-cursor-el.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.magic-cursor-inner {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.magic-cursor-glow {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #cca8ff;
  filter: blur(5px);
  opacity: 0.75;
  animation: magicCursorPulse 2.2s ease-in-out infinite;
}
.magic-cursor-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.magic-cursor-face svg {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 8px rgba(204, 168, 255, 0.55));
}
.magic-cursor-el.is-clicking .magic-cursor-inner {
  transform: scale(0.88);
}

@keyframes magicCursorPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.12); }
}

/* ═══════════════════════════════════════════════════════════
   Article / journal images — full-bleed fill + max sharpness
   ═══════════════════════════════════════════════════════════ */
.media-fill-frame {
  position: relative;
  overflow: hidden;
  background: #0c0c0e;
  isolation: isolate;
  /* Force a proper containing block so cover always fills */
  transform: translateZ(0);
}

/*
 * Fill the box completely (cover), centered, high-quality resample.
 * Avoid image-rendering: crisp-edges / pixelated (destroys photos).
 */
.media-fill,
.article-img,
img.media-fill,
img.article-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover !important;
  object-position: center center;
  /* High-quality scaling (photos) */
  image-rendering: auto;
  image-rendering: high-quality;
  -ms-interpolation-mode: bicubic;
  /* Cleaner GPU composite — less blur on scaled layers */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  transform: translate3d(0, 0, 0) scale(1);
  -webkit-transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  -webkit-transform-origin: center center;
  /* Prefer full-res decode when browser supports it */
  image-orientation: from-image;
}

/* Subtle dim without muddying (was opacity 0.7 — looked soft/pixelated) */
.media-fill--dim {
  opacity: 0.94;
  filter: none;
}
.group:hover .media-fill--dim,
.group:focus-within .media-fill--dim {
  opacity: 1;
}

/* Sharp hover zoom (GPU-only transform, no layout reflow) */
.media-fill--zoom {
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
  will-change: transform;
}
.group:hover .media-fill--zoom,
.group:focus-within .media-fill--zoom {
  transform: translate3d(0, 0, 0) scale(1.045);
  -webkit-transform: translate3d(0, 0, 0) scale(1.045);
}

/* Absolute fill helper when parent is relative */
.media-fill-abs {
  position: absolute !important;
  inset: 0;
}

/* Prefer full-resolution when WP serves size variants in src */
img.media-fill[src*="-300x"],
img.article-img[src*="-300x"],
img.media-fill[src*="-150x"],
img.article-img[src*="-150x"] {
  /* Can't rewrite URL in CSS — flagged for JS; keep cover anyway */
  image-rendering: auto;
}

/* Article hero — below fixed nav (90px free), soft edge blend into page bg */
.post-article-hero {
  /* Match #site-header height — nav stays clear of the image */
  padding-top: 72px;
  margin-top: 0;
}
@media (min-width: 640px) {
  .post-article-hero { padding-top: 80px; }
}
@media (min-width: 1024px) {
  .post-article-hero { padding-top: 90px; }
}
.post-hero-wrap {
  position: absolute;
  inset: 0;
  /* visible so edge blur can spill and erase hard box edges */
  overflow: visible;
  transform: translateZ(0);
  background: transparent;
  pointer-events: none;
}
.post-hero-wrap > .post-hero-img {
  pointer-events: auto;
}
.post-hero-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
  image-rendering: auto;
  image-rendering: high-quality;
  -ms-interpolation-mode: bicubic;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1.02);
  -webkit-transform: translate3d(0, 0, 0) scale(1.02);
  /*
   * Ultra-soft edge dissolve — long ramps so no hard edge is visible.
   * Image only stays fully opaque in the center core.
   */
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.15) 8%,
      rgba(0, 0, 0, 0.55) 18%,
      #000 32%,
      #000 68%,
      rgba(0, 0, 0, 0.55) 82%,
      rgba(0, 0, 0, 0.15) 92%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.12) 6%,
      rgba(0, 0, 0, 0.5) 16%,
      #000 28%,
      #000 48%,
      rgba(0, 0, 0, 0.55) 62%,
      rgba(0, 0, 0, 0.22) 78%,
      transparent 100%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.15) 8%,
      rgba(0, 0, 0, 0.55) 18%,
      #000 32%,
      #000 68%,
      rgba(0, 0, 0, 0.55) 82%,
      rgba(0, 0, 0, 0.15) 92%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.12) 6%,
      rgba(0, 0, 0, 0.5) 16%,
      #000 28%,
      #000 48%,
      rgba(0, 0, 0, 0.55) 62%,
      rgba(0, 0, 0, 0.22) 78%,
      transparent 100%
    );
  mask-composite: intersect;
  /* Soft blur helps kill remaining pixel edges of the photo itself */
  filter: blur(0.4px);
}
/* Multi-layer fog into page bg — no detectable rectangle */
.post-hero-edge {
  position: absolute;
  inset: -8% -6%;
  pointer-events: none;
  background:
    /* bottom melt (very long) */
    linear-gradient(
      to bottom,
      rgba(5, 5, 5, 0.55) 0%,
      rgba(5, 5, 5, 0.15) 8%,
      transparent 22%,
      transparent 36%,
      rgba(5, 5, 5, 0.2) 48%,
      rgba(5, 5, 5, 0.45) 58%,
      rgba(5, 5, 5, 0.72) 70%,
      rgba(5, 5, 5, 0.9) 82%,
      #050505 92%,
      #050505 100%
    ),
    /* left / right melt */
    linear-gradient(
      to right,
      #050505 0%,
      rgba(5, 5, 5, 0.85) 4%,
      rgba(5, 5, 5, 0.4) 12%,
      transparent 24%,
      transparent 76%,
      rgba(5, 5, 5, 0.4) 88%,
      rgba(5, 5, 5, 0.85) 96%,
      #050505 100%
    );
  filter: blur(12px);
}
.post-hero-edge::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 70% at 50% 100%, #050505 0%, rgba(5, 5, 5, 0.95) 18%, rgba(5, 5, 5, 0.55) 40%, transparent 72%),
    radial-gradient(ellipse 70% 55% at 50% 35%, transparent 30%, rgba(5, 5, 5, 0.12) 70%, rgba(5, 5, 5, 0.55) 100%),
    radial-gradient(ellipse 50% 80% at 0% 50%, #050505 0%, transparent 55%),
    radial-gradient(ellipse 50% 80% at 100% 50%, #050505 0%, transparent 55%);
  opacity: 1;
  filter: blur(8px);
}
.post-hero-edge::before {
  content: '';
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -5%;
  height: 55%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(5, 5, 5, 0.15) 20%,
    rgba(5, 5, 5, 0.45) 45%,
    rgba(5, 5, 5, 0.8) 70%,
    #050505 88%,
    #050505 100%
  );
  filter: blur(18px);
}
.post-share-rail {
  top: 8.5rem;
  margin-top: 2.5rem;
  z-index: 30;
}

/* Journal / shop shared polish — rich article body */
.journal-prose p + p { margin-top: 1.15rem; }
.journal-prose h1,
.journal-prose h2,
.journal-prose h3,
.journal-prose h4 {
  font-family: var(--font-serif, Merriweather, Georgia, serif);
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-top: 2.25rem;
  margin-bottom: 0.9rem;
  line-height: 1.3;
}
.journal-prose h1 { font-size: 1.85rem; }
.journal-prose h2 { font-size: 1.45rem; }
.journal-prose h3 { font-size: 1.25rem; }
.journal-prose h4 { font-size: 1.1rem; color: #e4e4e7; }
@media (min-width: 768px) {
  .journal-prose h1 { font-size: 2.1rem; }
  .journal-prose h2 { font-size: 1.75rem; }
  .journal-prose h3 { font-size: 1.4rem; }
}
.journal-prose strong,
.journal-prose b { color: #f4f4f5; font-weight: 600; }
.journal-prose em,
.journal-prose i { font-style: italic; color: #d4d4d8; }
.journal-prose a {
  color: #cca8ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(204, 168, 255, 0.4);
  transition: color 0.15s, text-decoration-color 0.15s;
}
.journal-prose a:hover {
  color: #e9d5ff;
  text-decoration-color: #cca8ff;
}
.journal-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.journal-prose blockquote {
  border-left: 2px solid rgba(204, 168, 255, 0.55);
  padding: 0.75rem 0 0.75rem 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: #c4b5fd;
  background: linear-gradient(90deg, rgba(204, 168, 255, 0.06), transparent);
}
.journal-prose ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}
.journal-prose ul li {
  position: relative;
  padding-left: 1.35rem;
  margin: 0.5rem 0;
  color: #9ca3af;
}
.journal-prose ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #cca8ff;
  font-size: 0.65rem;
  top: 0.2rem;
}
.journal-prose ol {
  margin: 1.25rem 0;
  padding-left: 1.4rem;
  color: #9ca3af;
}
.journal-prose ol li {
  margin: 0.45rem 0;
  padding-left: 0.35rem;
}
.journal-prose ol li::marker {
  color: #cca8ff;
  font-weight: 600;
}
.journal-prose pre,
.journal-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}
.journal-prose pre {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  color: #e4e4e7;
}
.journal-prose code {
  background: rgba(204, 168, 255, 0.1);
  color: #e9d5ff;
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
.journal-prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.journal-prose hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}
.journal-prose .ql-align-center { text-align: center; }
.journal-prose .ql-align-right { text-align: right; }
.journal-prose .ql-align-justify { text-align: justify; }

.shop-card-glow {
  transition: box-shadow 0.45s ease, border-color 0.45s ease, transform 0.45s ease;
}
.shop-card-glow:hover {
  box-shadow: 0 0 0 1px rgba(204, 168, 255, 0.25), 0 20px 50px -20px rgba(204, 168, 255, 0.35);
}

.product-gallery-ring {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(204, 168, 255, 0.12), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(210, 31, 60, 0.06), transparent 45%),
    #0c0c0e;
}

/* Product main image: fill square + hover zoom */
.product-gallery-fill {
  padding: 0 !important;
}
.product-gallery-fill .product-main-photo,
#product-main-img.product-main-photo {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.02);
  -webkit-transform: scale(1.02);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.product-gallery-fill:hover .product-main-photo,
.product-gallery-fill:hover #product-main-img,
.product-gallery-fill.group:hover .product-main-photo {
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
}

/* Line clamp utility */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mix blend helpers for product images */
.mix-blend-screen {
  mix-blend-mode: screen;
}

/* Smooth drawer open */
#cart-drawer:not(.hidden),
#wishlist-drawer:not(.hidden),
#search-overlay:not(.hidden) {
  display: block;
}

/* Mobile menu overlay — independent of Tailwind .hidden */
#mobile-menu.rm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  flex-direction: row;
  justify-content: flex-end;
  pointer-events: none;
}
#mobile-menu.rm-overlay.is-open {
  display: flex !important;
  pointer-events: auto;
}
#mobile-menu .rm-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#mobile-menu .rm-drawer {
  position: relative;
  z-index: 1;
  width: min(100vw, 360px);
  height: 100%;
  max-height: 100dvh;
  background: #0c0c0e;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.55);
  animation: rmSlideIn 0.22s ease-out;
}
@keyframes rmSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
#mobile-menu .rm-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  padding-top: max(1rem, env(safe-area-inset-top));
}
#mobile-menu .rm-drawer__title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #cca8ff;
  font-weight: 700;
  font-family: ui-monospace, monospace;
}
#mobile-menu .rm-drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#mobile-menu .rm-drawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#mobile-menu .rm-drawer__foot {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
@media (min-width: 1024px) {
  #mobile-menu.rm-overlay,
  #btn-mobile-menu {
    display: none !important;
  }
}

/* Testimonial track */
.testimonial-track {
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Shimmer for tarot CTA */
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Scrollbar subtle */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #cca8ff;
}

/* Category / Feature original SVG icons (from React) */
.category-icon svg,
.svg-wrapper svg {
  width: 100%;
  height: 100%;
  max-width: 48px;
  max-height: 48px;
  display: block;
}

/* Hover tint: white strokes/fills inherit via currentColor when possible;
   originals use #ffffff — force currentColor on hover group */
.group:hover .category-icon svg [stroke="#ffffff"],
.group:hover .category-icon svg [stroke="#fff"] {
  stroke: currentColor;
}
.group:hover .category-icon svg [fill="#ffffff"],
.group:hover .category-icon svg [fill="#fff"] {
  fill: currentColor;
}
.group:hover .svg-wrapper svg [stroke="#ffffff"],
.group:hover .svg-wrapper svg [stroke="#fff"] {
  stroke: currentColor;
}
.group:hover .svg-wrapper svg [fill="#ffffff"],
.group:hover .svg-wrapper svg [fill="#fff"] {
  fill: currentColor;
}

/* Heart filled state */
.heart-filled svg {
  fill: currentColor;
}

/* Floating heart → wishlist icon (slow float) */
.fly-heart {
  position: fixed;
  z-index: 100050;
  pointer-events: none;
  color: #f0abfc;
  filter: drop-shadow(0 0 10px rgba(240, 171, 252, 0.9));
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 1;
  transition:
    transform 1.65s cubic-bezier(0.22, 0.55, 0.28, 1),
    opacity 1.65s ease;
  will-change: transform, opacity;
}
@keyframes wishlistPulse {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.35); }
  70% { transform: scale(1.1); }
}
#btn-wishlist.wishlist-pulse {
  animation: wishlistPulse 0.65s ease;
  color: #f0abfc !important;
}

/* Cookie consent popup */
#cookie-consent:not(.hidden) {
  display: flex !important;
}
.cookie-consent-enter {
  animation: cookieSlideUp 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes cookieSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Blog continuous atmosphere */
.journal-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.journal-atmosphere::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 10%;
  width: 70%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 168, 255, 0.14) 0%, transparent 68%);
}
.journal-atmosphere::after {
  content: '';
  position: absolute;
  top: 30%;
  right: -10%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 65%);
}
.journal-atmosphere .blob-bottom {
  position: absolute;
  bottom: 5%;
  left: -8%;
  width: 45%;
  height: 40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 168, 255, 0.07) 0%, transparent 65%);
}

/* Account page animations (from original React) */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn {
  animation: fadeIn 0.35s ease-out both;
}
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -----------------------------------------------------------
   RESPONSIVE � mobile + tablet (clients primarily on phone)
   ----------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}
/* Keep cover images filling boxes */
img.media-fill,
img.product-main-photo,
img.media-fill-abs,
.post-hero-img {
  height: 100% !important;
  max-width: none;
}

.touch-target {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.safe-top {
  padding-top: env(safe-area-inset-top, 0);
}
.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Prevent horizontal scroll from absolute/negative margins */
.container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Mobile menu open: lock body scroll via class set by JS if needed */
body.mobile-menu-open,
body.drawer-open {
  overflow: hidden;
  touch-action: none;
}

/* Search overlay mobile */
#search-overlay .text-2xl {
  font-size: clamp(1.25rem, 5vw, 1.875rem);
}
@media (max-width: 639px) {
  #search-overlay > div.absolute.top-0 {
    padding-top: 4.5rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* Drawers full-bleed on phone */
@media (max-width: 639px) {
  #cart-drawer .pl-8,
  #wishlist-drawer .pl-8 {
    padding-left: 0;
  }
}

/* Shop mobile filter panel */
#mobile-shop-filters:not(.hidden) {
  display: block;
}
@media (max-width: 1023px) {
  #mobile-shop-filters .w-80 {
    width: min(100vw, 20rem);
  }
}

/* Product page buy panel � sticky-ish on mobile order */
@media (max-width: 1023px) {
  #product-page .lg\:col-span-5 {
    order: 2;
  }
  #product-page .lg\:col-span-7 {
    order: 1;
  }
}

/* Checkout inputs 16px to avoid iOS zoom */
@media (max-width: 767px) {
  #checkout-form input,
  #checkout-form select,
  #checkout-form textarea,
  #account-app input,
  #account-app select,
  #account-app textarea {
    font-size: 16px !important;
  }
  #checkout-form .grid.grid-cols-2 {
    gap: 0.75rem;
  }
  .pay-method-chip,
  .ship-method-chip {
    padding: 0.75rem !important;
  }
}

/* Article post */
@media (max-width: 1023px) {
  .post-share-rail {
    display: none !important;
  }
  .post-article-hero .min-h-\[48vh\] {
    min-height: 42vh;
  }
  .post-article-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.75rem) !important;
    line-height: 1.12 !important;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  .post-article-hero .text-base {
    font-size: 0.9rem !important;
  }
  /* Reduce extreme blur cost on low-end mobile slightly */
  .post-hero-edge {
    filter: blur(8px);
  }
  .post-hero-edge::before {
    filter: blur(12px);
  }
}

/* Journal tabs � smoother horizontal scroll */
.journal-tabs-scroll,
section .overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.journal-tabs-scroll::-webkit-scrollbar,
section .overflow-x-auto::-webkit-scrollbar {
  display: none;
}

/* Footer compact on phone */
@media (max-width: 767px) {
  footer.pt-20 {
    padding-top: 3rem !important;
    padding-bottom: 1.5rem !important;
  }
  footer .grid {
    gap: 2rem !important;
  }
  footer h4 {
    margin-bottom: 1rem !important;
  }
}

/* Tables / long content */
@media (max-width: 767px) {
  .ad-table-wrap,
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }
  table {
    font-size: 12px;
  }
}

/* Account tabs */
@media (max-width: 767px) {
  #account-app [class*="grid-cols"] {
    gap: 0.75rem;
  }
  #account-app .sticky {
    position: relative !important;
    top: auto !important;
  }
}

/* Tarot / legal pages */
@media (max-width: 639px) {
  main.pt-32,
  main.pt-28 {
    padding-top: 5.5rem !important;
  }
  h1.text-4xl,
  h1.text-5xl,
  h1.text-6xl,
  h1.md\:text-6xl {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem) !important;
    line-height: 1.15 !important;
  }
  h2.text-3xl,
  h2.md\:text-3xl {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem) !important;
  }
}

/* Features bar under hero */
@media (max-width: 639px) {
  .features-bar,
  section [class*="grid-cols-4"] {
    /* features partial may use grid */
  }
}

/* Magic cursor off on touch (already matchMedia) � hide trail leftovers */
@media (hover: none), (pointer: coarse) {
  .magic-cursor-el,
  .magic-trail-star,
  #magic-cursor-root {
    display: none !important;
  }
  body.magic-cursor-enabled,
  body.magic-cursor-pointer {
    cursor: auto !important;
  }
}

/* Viewport height fix for mobile browsers */
.min-h-screen {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Cookie banner */
#cookie-consent {
  max-width: 100vw;
  left: 0;
  right: 0;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

/* Tablet refinements */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  #site-header .container {
    gap: 0.5rem;
  }
  /* Product grid 3 cols already via md: � ensure product page stacks cleanly */
  #product-page .lg\:grid-cols-12 {
    gap: 1.5rem;
  }
}

/* Prevent text overflow */
.truncate-safe {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Fixed CTAs spacing bottom for iOS home indicator */
@media (max-width: 767px) {
  #btn-seal-order,
  #product-add-cart,
  #product-buy-now {
    min-height: 48px;
  }
}

/* -----------------------------------------------------------
   Responsive menu drawer (mirrors desktop nav)
   ----------------------------------------------------------- */
.rm-drawer__body {
  -webkit-overflow-scrolling: touch;
}
.rm-nav {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0 1rem;
}
.rm-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.95rem 1.15rem;
  color: #e5e7eb;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease;
}
.rm-link:hover,
.rm-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}
.rm-link--grow {
  flex: 1;
  min-width: 0;
  border-bottom: 0;
}
.rm-link--btn {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: #e5e7eb;
}
.rm-link--admin {
  color: #cca8ff;
}
.rm-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.rm-group__row {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.rm-chev {
  flex-shrink: 0;
  width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #9ca3af;
  cursor: pointer;
  transition: transform 0.22s ease, color 0.15s ease;
}
.rm-chev.is-open,
.rm-chev[aria-expanded="true"] {
  color: #cca8ff;
  transform: rotate(180deg);
}
.rm-panel {
  display: none;
  background: rgba(0, 0, 0, 0.4);
  max-height: min(48vh, 380px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.rm-panel:not([hidden]),
.rm-panel.is-open {
  display: block;
}
.rm-sub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem 0.6rem 1.35rem;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.rm-sub:hover,
.rm-sub:focus-visible {
  color: #cca8ff;
  background: rgba(204, 168, 255, 0.07);
  outline: none;
}
.rm-sub--accent {
  color: #cca8ff;
  font-weight: 700;
}
.rm-sub--parent {
  color: #f3f4f6;
  font-weight: 700;
  padding-top: 0.75rem;
}
.rm-sub--child {
  padding-left: 1.85rem;
  color: #a1a1aa;
}
.rm-sub--grand {
  padding-left: 2.4rem;
  font-size: 10.5px;
  color: #71717a;
}
.rm-sub--btn {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.rm-sub.is-active {
  color: #cca8ff;
  background: rgba(204, 168, 255, 0.1);
}
.rm-tools {
  margin-top: 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.rm-muted {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
  margin-right: 0.5rem;
}
.rm-value {
  color: #e5e7eb;
  letter-spacing: 0.06em;
}
.rm-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: #cca8ff;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1rem;
  border-radius: 2px;
  transition: background 0.15s ease;
}
.rm-cta:hover {
  background: #fff;
}
.rm-cta--light {
  background: #fff;
  color: #000;
}
.rm-cta--light:hover {
  background: #cca8ff;
}

/* -----------------------------------------------------------
   Home responsive fixes (mobile/tablet only)
   ----------------------------------------------------------- */
/* Home blog carousel + larger review cards on phone */
@media (max-width: 767px) {
  .home-posts-carousel-wrap {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  #home-posts-track {
    display: flex;
  }
  .testimonial-card {
    min-height: 200px !important;
    padding: 1.15rem 1rem !important;
  }
  .testimonial-card h4 {
    font-size: 14px !important;
  }
  .testimonial-card p {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    -webkit-line-clamp: 5;
  }
  .testimonial-card .text-amber-400 span {
    font-size: 14px !important;
  }
}

/* ── Popular categories: full white 1px cuadricula ── */
.cats-grid-wrap {
  border-radius: 0;
  box-sizing: border-box;
}
.cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #030303;
  /* outer top + left of the full grid */
  border-top: 1px solid #ffffff !important;
  border-left: 1px solid #ffffff !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .cats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.cats-grid__cell {
  /* every cell closes the grid with right + bottom → full cuadricula */
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 1px solid #ffffff !important;
  border-bottom: 1px solid #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
  background-color: #030303 !important;
  box-sizing: border-box;
}
.cats-grid__cell:hover {
  background-color: #0d0d0d !important;
}

/* ── Footer (compact, professional) ── */
.site-footer {
  padding-top: 3.25rem;
  padding-bottom: 1.5rem;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.9fr 1.2fr;
  gap: 2rem 2.5rem;
  padding-bottom: 2rem;
  align-items: start;
}
.site-footer__heading {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  margin: 0 0 0.85rem;
}
.site-footer__heading--inline {
  margin: 0;
}
.site-footer__logo-link {
  margin-bottom: 0.85rem;
  display: inline-block;
}
.site-footer__addr {
  margin: 0 0 0.9rem;
  max-width: 260px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #9ca3af;
}
.site-footer__social {
  display: flex;
  gap: 0.5rem;
}
.site-footer__social-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.site-footer__social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(204, 168, 255, 0.35);
}
.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.site-footer__link {
  color: #9ca3af;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12.5px;
  line-height: 1.35;
}
.site-footer__link:hover {
  color: #fff;
}
.site-footer__new {
  background: #5a6b9a;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.35rem;
  border-radius: 2px;
  text-transform: uppercase;
}
.site-footer__sub-text {
  margin: 0 0 0.75rem;
  font-size: 12.5px;
  line-height: 1.5;
  color: #9ca3af;
  max-width: 260px;
}
.site-footer__nl {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 0.35rem;
  gap: 0.35rem;
  transition: border-color 0.15s;
}
.site-footer__nl:focus-within {
  border-color: rgba(204, 168, 255, 0.55);
}
.site-footer__nl-input {
  background: transparent;
  border: 0;
  outline: none;
  width: 100%;
  color: #fff;
  font-size: 13px;
}
.site-footer__nl-input::placeholder {
  color: #4b5563;
}
.site-footer__nl-btn {
  color: #9ca3af;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.15rem;
  flex-shrink: 0;
}
.site-footer__nl-btn:hover {
  color: #fff;
}

/* Sitemap band — dense chips, not a tall column */
.site-footer__sitemap {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.15rem 0 1.25rem;
  margin: 0;
}
.site-footer__sitemap-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
}
.site-footer__sitemap-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}
.site-footer__sitemap-meta {
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: rgba(204, 168, 255, 0.75);
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
}
.site-footer__sitemap-meta--dim {
  color: #4b5563;
}
.site-footer__sitemap-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-footer__sitemap-cta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cca8ff;
  transition: color 0.15s;
}
.site-footer__sitemap-cta:hover {
  color: #fff;
}
.site-footer__sitemap-xml {
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #6b7280;
  transition: color 0.15s;
}
.site-footer__sitemap-xml:hover {
  color: #cca8ff;
}
.site-footer__map-grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.6fr) minmax(140px, 1fr);
  gap: 1rem 1.5rem;
  align-items: start;
}
.site-footer__map-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cca8ff;
  margin: 0 0 0.45rem;
  opacity: 0.9;
}
.site-footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
}
.site-footer__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #a1a1aa;
  font-size: 11px;
  line-height: 1.2;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.site-footer__chip:hover {
  color: #fff;
  border-color: rgba(204, 168, 255, 0.4);
  background: rgba(204, 168, 255, 0.08);
}
.site-footer__bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.15rem;
  font-size: 12px;
  color: #6b7280;
}

@media (max-width: 1023px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.25rem;
    padding-bottom: 1.5rem;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
  .site-footer__map-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .site-footer__map-block--wide .site-footer__chips {
    max-height: 5.5rem;
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-top: 2rem !important;
    padding-bottom: 1.15rem !important;
    font-size: 12px !important;
  }
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem 0.9rem;
    padding-bottom: 1.15rem;
  }
  .site-footer__logo {
    height: 34px !important;
  }
  .site-footer__addr {
    font-size: 11px !important;
    margin-bottom: 0.65rem;
  }
  .site-footer__heading {
    margin-bottom: 0.55rem;
    font-size: 10px;
  }
  .site-footer__list {
    gap: 0.28rem;
  }
  .site-footer__link {
    font-size: 11.5px;
  }
  .site-footer__sub-text {
    font-size: 11px;
    margin-bottom: 0.5rem;
  }
  .site-footer__col--subscribe {
    grid-column: 1 / -1;
  }
  .site-footer__sitemap {
    padding: 0.9rem 0 1rem;
  }
  .site-footer__sitemap-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.65rem;
  }
  .site-footer__chip {
    font-size: 10px;
    padding: 0.22rem 0.45rem;
  }
  .site-footer__map-block--wide .site-footer__chips {
    max-height: 4.5rem;
  }
  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 0.85rem !important;
    gap: 0.65rem !important;
    font-size: 11px !important;
  }
  .site-footer__bottom img {
    height: 1.1rem !important;
  }
  .site-footer__social-btn {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 10px;
  }

  /* Testimonials track base */
  #testimonial-track {
    display: flex;
    will-change: transform;
  }
}

/* ── Ethēar promo popup (above magic cursor / cookie layers) ── */
.ethear-popup {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  visibility: hidden;
}
.ethear-popup.is-open {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.ethear-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  /* Soft dim only — almost no blur on the page behind */
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}
.ethear-popup__panel {
  position: relative;
  width: min(420px, 100%);
  max-height: none;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(204, 168, 255, 0.28);
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(139, 92, 246, 0.28), transparent 55%),
    linear-gradient(165deg, #141018 0%, #0a0a0e 55%, #0c0814 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 40px 100px -30px rgba(139, 92, 246, 0.45),
    0 20px 60px -20px rgba(0, 0, 0, 0.9);
  padding: 1.5rem 1.35rem 1.35rem;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.ethear-popup.is-open .ethear-popup__panel {
  transform: translateY(0) scale(1);
}
.ethear-popup__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 140%;
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(204, 168, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.ethear-popup__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #9ca3af;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: color 0.15s, background 0.15s;
}
.ethear-popup__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.ethear-popup__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}
.ethear-popup__mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.75);
  flex-shrink: 0;
  background: #12101a;
  border: 1px solid rgba(204, 168, 255, 0.45);
}
.ethear-popup__logo {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
}
.ethear-popup__brand-name {
  /* Official spelling: Ethēar */
  font-family: "Poppins", var(--font-sans), system-ui, sans-serif;
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #f5e8ff;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 0 24px rgba(167, 139, 250, 0.55);
}
.ethear-popup__eyebrow {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #cca8ff;
  margin: 0 0 0.5rem;
  position: relative;
  z-index: 1;
}
.ethear-popup__title {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.3rem, 3.6vw, 1.55rem);
  line-height: 1.25;
  color: #fff;
  margin: 0 0 0.6rem;
  position: relative;
  z-index: 1;
}
.ethear-popup__title em {
  font-style: italic;
  color: #cca8ff;
}
.ethear-popup__text {
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #9ca3af;
  margin: 0 0 1rem;
  position: relative;
  z-index: 1;
}
.ethear-popup__text strong {
  color: #e9d5ff;
  font-weight: 600;
}
.ethear-popup__code-wrap {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.ethear-popup__code-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.ethear-popup__code {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px dashed rgba(204, 168, 255, 0.45);
  background: rgba(139, 92, 246, 0.12);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.ethear-popup__code:hover {
  border-color: #cca8ff;
  background: rgba(139, 92, 246, 0.2);
  transform: scale(1.02);
}
.ethear-popup__code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #f5e8ff;
}
.ethear-popup__code-hint {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
  font-weight: 600;
}
.ethear-popup__copied {
  margin: 0.45rem 0 0;
  font-size: 11px;
  color: #86efac;
  font-weight: 600;
}
.ethear-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
}
.ethear-popup__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
  border: 0;
  text-decoration: none;
}
.ethear-popup__btn--yes {
  background: linear-gradient(135deg, #cca8ff 0%, #8b5cf6 55%, #7c3aed 100%);
  color: #0a0a0e;
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.7);
}
.ethear-popup__btn--yes:hover {
  transform: translateY(-1px);
  color: #000;
  filter: brightness(1.06);
}
.ethear-popup__btn--no {
  background: transparent;
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ethear-popup__btn--no:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}
html.ethear-popup-open,
body.ethear-popup-open {
  overflow: hidden !important;
}
@media (max-width: 480px) {
  .ethear-popup {
    padding: 0.75rem;
  }
  .ethear-popup__panel {
    padding: 1.25rem 1.1rem 1.1rem;
    overflow: hidden;
  }
  .ethear-popup__code-value {
    font-size: 1.1rem;
  }
  .ethear-popup__text {
    font-size: 0.82rem;
  }
}
