:root {
  --mop-pink: #ff0f7b;
  --mop-dark: #101114;
  --mop-white: #ffffff;
  --mop-border: rgba(255,255,255,.12);
}

#mop-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--mop-pink);
  color: var(--mop-white);
  box-shadow: 0 14px 35px rgba(255, 15, 123, .28);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}

#mop-fab:hover {
  transform: translateY(-1px);
}

.mop-fab__icon {
  font-size: 20px;
}

.mop-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
}

.mop-overlay.is-open {
  display: flex;
}

.mop-modal {
  position: relative;
  width: min(1200px, 100%);
  height: min(820px, 100%);
  background: #0d0e11;
  color: #fff;
  border: 1px solid var(--mop-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}

.mop-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.mop-modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, .9fr);
  height: 100%;
}

.mop-stage {
  position: relative;
  min-height: 0;
  background: #050507;
}

#mop-video,
#mop-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#mop-video {
  opacity: 0;
  pointer-events: none;
}

#mop-canvas {
  object-fit: cover;
}

.mop-hint {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  max-width: calc(100% - 32px);
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(16,17,20,.62);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 14px;
  backdrop-filter: blur(8px);
}

.mop-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  background: linear-gradient(180deg, #12131a 0%, #0d0e11 100%);
  border-left: 1px solid var(--mop-border);
  overflow: auto;
}

.mop-panel__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.mop-panel__subtitle {
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
}

.mop-panel__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mop-btn {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.mop-btn--primary {
  background: var(--mop-pink);
  border-color: transparent;
}

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

.mop-product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 10px;
  background: rgba(255,255,255,.04);
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.mop-product.is-active {
  outline: 2px solid var(--mop-pink);
  background: rgba(255, 15, 123, .13);
}

.mop-product__thumb {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #1a1b22;
}

.mop-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mop-product__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.mop-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 16px;
  color: rgba(255,255,255,.7);
}

@media (max-width: 960px) {
  .mop-modal {
    height: auto;
    max-height: calc(100vh - 28px);
  }

  .mop-modal__grid {
    grid-template-columns: 1fr;
  }

  .mop-stage {
    min-height: 56vh;
  }

  .mop-panel {
    border-left: 0;
    border-top: 1px solid var(--mop-border);
  }
}

@media (max-width: 640px) {
  #mop-fab {
    right: 14px;
    bottom: 14px;
    padding: 12px 14px;
  }

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

  .mop-panel__title {
    font-size: 24px;
  }
}