/* ── Mobile menu + support sheet (Saturno) ── */

.mobile-menu,
.mobile-support {
  --mm-ink: #f5f0ff;
  --mm-muted: rgba(214, 201, 255, 0.68);
  --mm-line: rgba(196, 168, 255, 0.18);
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.mobile-menu[data-state="open"],
.mobile-support[data-state="open"] {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.mobile-menu__backdrop,
.mobile-support__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(3, 0, 8, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 19.5rem);
  padding:
    max(1.1rem, env(safe-area-inset-top))
    1.05rem
    max(1.1rem, env(safe-area-inset-bottom));
  border-right: 1px solid var(--mm-line);
  background:
    radial-gradient(ellipse 80% 45% at 0% 0%, rgba(124, 58, 237, 0.28), transparent 55%),
    linear-gradient(165deg, rgba(28, 16, 52, 0.98) 0%, rgba(8, 5, 16, 0.99) 100%);
  box-shadow: 18px 0 48px rgba(0, 0, 0, 0.45);
  color: var(--mm-ink);
  overflow: hidden;
  transform: translateX(-104%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu[data-state="open"] .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__glow {
  position: absolute;
  width: 14rem;
  height: 14rem;
  left: -5rem;
  top: -3rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.28), transparent 68%);
  pointer-events: none;
  filter: blur(2px);
}

.mobile-menu__orbit {
  position: absolute;
  right: -4rem;
  bottom: 18%;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.18);
  box-shadow: inset 0 0 28px rgba(124, 58, 237, 0.12);
  pointer-events: none;
  opacity: 0.7;
}

.mobile-menu__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--mm-line);
}

.mobile-menu__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.mobile-menu__logo {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(216, 180, 254, 0.22);
  box-shadow: 0 8px 18px rgba(88, 28, 135, 0.28);
}

.mobile-menu__eyebrow {
  margin: 0;
  font-family: Kanit, Geist, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c084fc;
}

.mobile-menu__title {
  margin: 0.15rem 0 0;
  font-family: Kanit, Geist, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--mm-ink);
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.7rem;
  border: 1px solid rgba(196, 168, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mm-muted);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.mobile-menu__close i,
.mobile-menu__close svg {
  width: 1.05rem;
  height: 1.05rem;
}

.mobile-menu__close:active {
  transform: scale(0.96);
  color: #fff;
  background: rgba(147, 51, 234, 0.22);
  border-color: rgba(196, 168, 255, 0.4);
}

.mobile-menu__nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.1rem;
}

.mobile-menu__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 3.55rem;
  padding: 0.7rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(196, 168, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  color: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.mobile-menu__item:active {
  transform: scale(0.985);
  border-color: rgba(192, 132, 252, 0.42);
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.28), rgba(46, 16, 80, 0.55));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(88, 28, 135, 0.28);
}

.mobile-menu__icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 0.8rem;
  color: #f3e8ff;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.38), rgba(46, 16, 80, 0.85));
  border: 1px solid rgba(216, 180, 254, 0.3);
  box-shadow: 0 8px 16px rgba(88, 28, 135, 0.28);
}

.mobile-menu__icon--affiliate {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.28), rgba(46, 16, 80, 0.85));
  border-color: rgba(125, 211, 252, 0.3);
  color: #e0f2fe;
}

.mobile-menu__icon--account {
  background: linear-gradient(145deg, rgba(192, 132, 252, 0.32), rgba(46, 16, 80, 0.85));
}

.mobile-menu__icon--cart {
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.32), rgba(88, 28, 135, 0.88));
  border-color: rgba(251, 146, 60, 0.35);
  color: #ffedd5;
}

.mobile-menu__icon i,
.mobile-menu__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.mobile-menu__copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}

.mobile-menu__label {
  font-family: Kanit, Geist, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #faf5ff;
  line-height: 1.15;
}

.mobile-menu__hint {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--mm-muted);
  line-height: 1.2;
}

.mobile-menu__chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: rgba(216, 180, 254, 0.55);
}

.mobile-menu__foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 1rem;
}

.mobile-menu__rail {
  display: block;
  height: 2px;
  width: 100%;
  margin-bottom: 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(168, 85, 247, 0.55) 35%,
    rgba(216, 180, 254, 0.9) 50%,
    rgba(168, 85, 247, 0.55) 65%,
    transparent 100%
  );
}

.mobile-menu__tagline {
  margin: 0;
  font-family: Kanit, Geist, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(216, 180, 254, 0.55);
  text-align: center;
}

/* Support bottom sheet */
.mobile-support__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(78vh, 34rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding:
    0.55rem
    1.05rem
    max(1.15rem, env(safe-area-inset-bottom));
  border-radius: 1.35rem 1.35rem 0 0;
  border-top: 1px solid var(--mm-line);
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(124, 58, 237, 0.26), transparent 55%),
    linear-gradient(180deg, rgba(28, 16, 52, 0.98) 0%, rgba(8, 5, 16, 0.99) 100%);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.45);
  color: var(--mm-ink);
  transform: translateY(108%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-support[data-state="open"] .mobile-support__sheet {
  transform: translateY(0);
}

.mobile-support__handle {
  width: 2.75rem;
  height: 0.28rem;
  margin: 0.15rem auto 0.85rem;
  border-radius: 9999px;
  background: rgba(216, 180, 254, 0.35);
}

.mobile-support__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--mm-line);
}

.mobile-support__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.mobile-support__badge {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  color: #f3e8ff;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.38), rgba(46, 16, 80, 0.85));
  border: 1px solid rgba(216, 180, 254, 0.3);
}

.mobile-support__badge i,
.mobile-support__badge svg {
  width: 1.1rem;
  height: 1.1rem;
}

.mobile-support__eyebrow {
  margin: 0;
  font-family: Kanit, Geist, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c084fc;
}

.mobile-support__title {
  margin: 0.1rem 0 0;
  font-family: Kanit, Geist, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--mm-ink);
  line-height: 1.15;
}

.mobile-support__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-support__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.35rem;
  padding: 0.7rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(196, 168, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.mobile-support__item:active {
  transform: scale(0.985);
  border-color: rgba(192, 132, 252, 0.4);
  background: rgba(124, 58, 237, 0.2);
}

.mobile-support__item-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: rgba(147, 51, 234, 0.18);
  border: 1px solid rgba(196, 168, 255, 0.2);
  color: #e9d5ff;
}

.mobile-support__item-icon i,
.mobile-support__item-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.mobile-support__brand-mask {
  width: 1.05rem;
  height: 1.05rem;
  background: #e9d5ff;
}

.mobile-support__item-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.mobile-support__item-label {
  font-family: Kanit, Geist, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #faf5ff;
  line-height: 1.15;
}

.mobile-support__item-hint {
  font-size: 0.68rem;
  color: var(--mm-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-support,
  .mobile-menu__panel,
  .mobile-support__sheet,
  .mobile-menu__item,
  .mobile-support__item {
    transition: none !important;
  }
}
