/* Launcher profil public — template zic-profile.jsx / zic-profile-mobile.jsx */

.zh-ppl-root {
  --ppl-bg: #0b0419;
  --ppl-border: rgba(168, 85, 247, 0.18);
  --ppl-border-strong: rgba(168, 85, 247, 0.4);
  --ppl-text: #fafafb;
  --ppl-purple-dk: #7b3ff2;
  --ppl-purple: #a855f7;
  --ppl-orange: #f97316;
  --ppl-pink: #ec4899;
  --ppl-green: #22c55e;
  --ppl-ease: cubic-bezier(0.4, 0.6, 0.3, 1.25);
  position: relative;
  z-index: 50;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  scrollbar-width: none;
}

/* ─── Backdrop ─────────────────────────────────────────────────── */

.zh-ppl-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(11, 4, 25, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.zh-ppl-backdrop[hidden] {
  display: none;
}

.zh-ppl-root.is-open .zh-ppl-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ─── FAB container ────────────────────────────────────────────── */

.zh-ppl-fab-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 52;
  pointer-events: none;
}

.zh-ppl-fab {
  pointer-events: auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--ppl-orange), var(--ppl-pink), var(--ppl-purple));
  box-shadow:
    0 14px 30px rgba(123, 63, 242, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.zh-ppl-fab:hover {
  transform: scale(1.06);
}

.zh-ppl-fab-glyph {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  transition: transform 0.3s var(--ppl-ease);
}

.zh-ppl-root.is-open .zh-ppl-fab {
  background: linear-gradient(135deg, var(--ppl-purple-dk), var(--ppl-purple));
  box-shadow:
    0 12px 30px rgba(123, 63, 242, 0.67),
    0 0 0 4px rgba(168, 85, 247, 0.18);
}

.zh-ppl-root.is-open .zh-ppl-fab-glyph {
  transform: rotate(135deg);
}

/* ─── Dock desktop ─────────────────────────────────────────────── */

.zh-ppl-dock-wrap {
  position: fixed;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 51;
  pointer-events: none;
  max-width: calc(100vw - 28px);
  opacity: 0;
  transition:
    opacity 0.28s ease,
    transform 0.35s var(--ppl-ease);
  transform: translateX(-50%) translateY(20px) scale(0.92);
}

.zh-ppl-root.is-open .zh-ppl-dock-wrap {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.zh-ppl-dock {
  display: flex;
  gap: 8px;
  padding: 14px;
  background: rgba(20, 9, 36, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--ppl-border-strong);
  border-radius: 24px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(168, 85, 247, 0.12);
  overflow-x: auto;
  overflow-y: visible;
}

.zh-ppl-module {
  flex: 0 0 auto;
  width: 78px;
  padding: 8px 6px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--ppl-text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.32s var(--ppl-ease), opacity 0.25s ease;
  opacity: 0;
  transform: translateY(10px);
}

.zh-ppl-root.is-open .zh-ppl-module {
  opacity: 1;
  transform: translateY(0);
}

.zh-ppl-root.is-open .zh-ppl-module:nth-child(1) { transition-delay: 0ms; }
.zh-ppl-root.is-open .zh-ppl-module:nth-child(2) { transition-delay: 30ms; }
.zh-ppl-root.is-open .zh-ppl-module:nth-child(3) { transition-delay: 60ms; }
.zh-ppl-root.is-open .zh-ppl-module:nth-child(4) { transition-delay: 90ms; }
.zh-ppl-root.is-open .zh-ppl-module:nth-child(5) { transition-delay: 120ms; }
.zh-ppl-root.is-open .zh-ppl-module:nth-child(6) { transition-delay: 150ms; }
.zh-ppl-root.is-open .zh-ppl-module:nth-child(7) { transition-delay: 180ms; }

.zh-ppl-module:hover,
.zh-ppl-module:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.zh-ppl-module-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ppl-color), color-mix(in srgb, var(--ppl-color) 67%, transparent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--ppl-color) 33%, transparent);
}

.zh-ppl-module-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.zh-ppl-module-live {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ppl-green);
  border: 2px solid rgba(20, 9, 36, 0.96);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.zh-ppl-module-label {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  color: var(--ppl-text);
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ─── Bottom sheet mobile ──────────────────────────────────────── */

.zh-ppl-sheet {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 51;
  background: rgba(20, 9, 36, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--ppl-border-strong);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 18px 16px calc(88px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s var(--ppl-ease),
    opacity 0.25s ease;
}

.zh-ppl-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 14px;
}

.zh-ppl-sheet-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: rgba(250, 250, 251, 0.62);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-left: 6px;
}

.zh-ppl-sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.zh-ppl-sheet-module {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 4px;
  border: none;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ppl-text);
  cursor: pointer;
  transition: background 0.15s ease;
}

.zh-ppl-sheet-module:hover,
.zh-ppl-sheet-module:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.zh-ppl-sheet-module .zh-ppl-module-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.zh-ppl-sheet-module .zh-ppl-module-icon img {
  width: 26px;
  height: 26px;
}

/* ─── Modal Coming soon ────────────────────────────────────────── */

.zh-ppl-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.zh-ppl-modal-wrap[hidden] {
  display: none;
}

.zh-ppl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 7, 34, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.zh-ppl-modal-wrap.is-open .zh-ppl-modal-backdrop {
  opacity: 1;
}

.zh-ppl-modal {
  position: relative;
  width: min(92vw, 380px);
  padding: 32px 28px 26px;
  background: linear-gradient(160deg, #1c1635 0%, #2e1065 100%);
  border: 1px solid rgba(167, 139, 245, 0.28);
  border-radius: 22px;
  box-shadow:
    0 30px 80px rgba(15, 7, 34, 0.65),
    0 4px 14px rgba(15, 7, 34, 0.35);
  text-align: center;
  color: #fff;
  transform: scale(0.92) translateY(8px);
  opacity: 0;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.24s ease;
}

.zh-ppl-modal-wrap.is-open .zh-ppl-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.zh-ppl-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.zh-ppl-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.zh-ppl-modal-pill {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(167, 139, 245, 0.16);
  border: 1px solid rgba(167, 139, 245, 0.4);
  color: #c4b5fd;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.zh-ppl-modal-title {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.zh-ppl-modal-desc {
  margin: 0 0 22px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

.zh-ppl-modal-btn {
  display: inline-flex;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid rgba(167, 139, 245, 0.5);
  background: rgba(139, 92, 246, 0.18);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.zh-ppl-modal-btn:hover {
  background: rgba(139, 92, 246, 0.34);
}

/* ─── Responsive ───────────────────────────────────────────────── */

@media (max-width: 768px) {
  .zh-ppl-dock-wrap {
    display: none;
  }

  .zh-ppl-sheet {
    display: block;
  }

  .zh-ppl-root.is-open .zh-ppl-sheet {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .zh-ppl-fab-wrap {
    bottom: 14px;
  }

  .zh-ppl-fab {
    width: 58px;
    height: 58px;
    border: 3px solid rgba(11, 4, 25, 0.6);
  }

  .zh-ppl-fab-glyph {
    font-size: 32px;
  }

  .zh-ppl-root.is-open .zh-ppl-fab-glyph {
    transform: rotate(45deg);
  }
}

@media (min-width: 769px) {
  .zh-ppl-sheet {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zh-ppl-backdrop,
  .zh-ppl-dock-wrap,
  .zh-ppl-sheet,
  .zh-ppl-fab,
  .zh-ppl-fab-glyph,
  .zh-ppl-module,
  .zh-ppl-modal,
  .zh-ppl-modal-backdrop {
    transition: none !important;
  }
}
