/* Pretvfx-Music — struktur mengikuti CyberZain Music, tema Pretvfx */

.pfx-music-root {
  position: fixed; inset: 0; z-index: 80000;
  display: none; flex-direction: column;
  background-color: #07090e;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 60%);
  color: #f3f4f6;
  height: var(--app-height, 100dvh); overflow: hidden;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}
.pfx-music-root.show { display: flex; }

/* TOPBAR */
.pfx-m-topbar {
  position: relative;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 14px 12px;
  gap: 10px;

  /* Glow gradient tetap ada */
  background:
    radial-gradient(140% 120% at 50% -30%, rgba(99, 102, 241, 0.22) 0%, transparent 55%),
    radial-gradient(120% 100% at 85% 0%, rgba(168, 85, 247, 0.14) 0%, transparent 50%),
    radial-gradient(120% 100% at 15% 0%, rgba(6, 182, 212, 0.10) 0%, transparent 50%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pfx-m-logo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pfx-m-logo-icon {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .85rem; flex-shrink: 0;
}
.pfx-m-logo-title {
  font-size: 1.05rem; font-weight: 800;
  background: linear-gradient(90deg, #a5b4fc, #c4b5fd, #67e8f9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pfx-m-logo-sub { font-size: .95rem; font-weight: 600; color: #9ca3af; }
.pfx-m-topbar-right { display: flex; gap: 6px; flex-shrink: 0; }
.pfx-m-icon-btn {
  width: 40px; height: 40px; border: none; border-radius: 12px;
  background: rgba(255,255,255,.06); color: #d1d5db;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; cursor: pointer;
  transition: background .18s ease, transform .12s ease;
}
.pfx-m-icon-btn:active { background: rgba(255,255,255,.12); transform: scale(.94); }

/* PILLS */
.pfx-m-pills {
  flex-shrink: 0;
  display: flex; gap: 8px; padding: 6px 14px 10px;
  overflow-x: auto; scrollbar-width: none;
  animation: pfxFadeIn .35s ease both;
}
.pfx-m-pills::-webkit-scrollbar { display: none; }
.pfx-m-pill {
  flex-shrink: 0; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); color: #9ca3af;
  font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
}
.pfx-m-pill:active { transform: scale(.95); }
.pfx-m-pill.active {
  background: linear-gradient(135deg, rgba(99,102,241,.4), rgba(168,85,247,.35));
  border-color: rgba(168,85,247,.45); color: #fff;
}

/* BODY */
.pfx-m-body {
  flex: 1; min-height: 0; overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  transition: padding-bottom .28s ease;
}
.pfx-music-root.player-active .pfx-m-body { padding-bottom: 74px; }
.pfx-music-root.player-active .pfx-search-results { padding-bottom: 74px; }

/* Saat player aktif, rapatkan tombol "Lihat lagu selengkapnya" */
.pfx-music-root.player-active .pfx-more-btn { margin-bottom: 8px; }

/* Hero slider */
.pfx-hero {
  position: relative; margin: 0 14px 14px;
  border-radius: 16px; overflow: hidden;
  background: #12162a; aspect-ratio: 16/10;
  animation: pfxFadeIn .5s ease both;
}
.pfx-hero-track {
  display: flex; height: 100%;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.pfx-hero-slide { min-width: 100%; height: 100%; position: relative; cursor: pointer; }
.pfx-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.pfx-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,9,14,.92) 0%, rgba(7,9,14,.2) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
}
.pfx-hero-label {
  font-size: .65rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: 4px;
}
.pfx-hero-title {
  font-size: 1.2rem; font-weight: 800; color: #fff; line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.pfx-hero-meta { font-size: .8rem; color: rgba(255,255,255,.7); margin: 2px 0 10px; }
.pfx-hero-play {
  align-self: flex-start; display: flex; align-items: center; gap: 7px;
  padding: 9px 18px; border: none; border-radius: 999px;
  background: #f3f4f6; color: #0c0d14; font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: transform .12s ease;
}
.pfx-hero-play:active { transform: scale(.95); }
.pfx-hero-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5px; pointer-events: none;
}
.pfx-hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.3);
  transition: all .25s ease;
}
.pfx-hero-dot.active { background: #a78bfa; width: 16px; border-radius: 3px; }

/* Section */
.pfx-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 14px 8px;
  animation: pfxFadeUp .4s ease both;
}
.pfx-sec-title { font-size: 1rem; font-weight: 700; color: #e5e7eb; }
.pfx-sec-link { font-size: .8rem; font-weight: 600; color: #a78bfa; cursor: pointer; background: none; border: none; }
.pfx-play-all {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(168,85,247,.3);
  background: rgba(168,85,247,.12); color: #c4b5fd;
  font-size: .75rem; font-weight: 700; cursor: pointer;
  transition: background .2s ease, transform .12s ease;
}
.pfx-play-all:active { transform: scale(.95); }

/* Quick slides */
.pfx-q-slides {
  position: relative; overflow: hidden;
  width: 100%; padding: 0 8px; box-sizing: border-box;
  animation: pfxFadeUp .45s ease both; animation-delay: .05s;
}
.pfx-q-track {
  display: flex; width: 100%;
  will-change: transform;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.pfx-q-slide {
  flex: 0 0 100%; width: 100%; max-width: 100%; min-width: 0;
  padding: 0 6px; box-sizing: border-box; overflow: hidden;
}
.pfx-q-dots {
  display: flex; justify-content: center; align-items: center;
  width: 100%; box-sizing: border-box; gap: 6px;
  padding: 12px 0 6px; margin: 0 auto;
}
.pfx-q-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: none; padding: 0; cursor: pointer;
  transition: all .28s ease; flex-shrink: 0;
}
.pfx-q-dot.active {
  width: 18px; border-radius: 3px;
  background: linear-gradient(90deg, #a78bfa, #67e8f9);
}

/* Quick picks list */
.pfx-qlist { padding: 0 8px; animation: pfxFadeUp .45s ease both; animation-delay: .2s; }
.pfx-qitem {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 6px; border-radius: 12px; cursor: pointer;
  transition: background .18s ease; min-width: 0;
}
.pfx-qitem:active { background: rgba(255,255,255,.06); }
.pfx-qitem.playing { background: rgba(99,102,241,.12); }
.pfx-q-thumb {
  width: 52px; height: 52px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0; background: #1a1d2b;
}
.pfx-q-info { flex: 1; min-width: 0; }
.pfx-q-title {
  font-size: .9rem; font-weight: 600; color: #f3f4f6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pfx-qitem.playing .pfx-q-title { color: #c4b5fd; }
.pfx-q-sub {
  font-size: .75rem; color: #9ca3af; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pfx-q-dots-menu {
  width: 36px; height: 36px; border: none; border-radius: 10px;
  background: transparent; color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; font-size: 1rem;
}
.pfx-q-dots-menu:active { background: rgba(255,255,255,.08); color: #c4b5fd; }
.pfx-qitem > .pfx-q-dots { width: 36px; height: 36px; padding: 0; margin: 0; }

/* Horizontal cards */
.pfx-hrow {
  display: flex; gap: 12px; padding: 0 14px 8px;
  overflow-x: auto; scrollbar-width: none;
  animation: pfxFadeUp .45s ease both; animation-delay: .15s;
}
.pfx-hrow::-webkit-scrollbar { display: none; }
.pfx-hcard { flex-shrink: 0; width: 130px; cursor: pointer; transition: transform .15s ease; }
.pfx-hcard:active { transform: scale(.96); }
.pfx-h-img { width: 130px; height: 130px; border-radius: 10px; object-fit: cover; background: #1a1d2b; display: block; }
.pfx-h-title { font-size: .82rem; font-weight: 600; color: #e5e7eb; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfx-h-sub { font-size: .72rem; color: #9ca3af; margin-top: 2px; }

/* Grid */
.pfx-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 0 14px 12px;
  animation: pfxFadeUp .45s ease both; animation-delay: .1s;
}
.pfx-gcard {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 12px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.14);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer; overflow: hidden;
  transition: background .18s ease, transform .12s ease, border-color .18s ease;
}
.pfx-gcard:active {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(168, 85, 247, 0.28);
  transform: scale(.97);
}
.pfx-gcard img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.pfx-glabel { font-size: .8rem; font-weight: 600; color: #e5e7eb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* More button */
.pfx-more-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: calc(100% - 28px); margin: 10px 14px 24px; padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(99,102,241,.32);
  background: linear-gradient(135deg, rgba(99,102,241,.10), rgba(168,85,247,.08));
  color: #c7d2fe; font-size: .88rem; font-weight: 700; cursor: pointer;
  transition: background .2s ease, transform .12s ease, border-color .2s ease;
}
.pfx-more-btn:active { transform: scale(.98); }
.pfx-more-btn i { transition: transform .3s ease; }
.pfx-more-btn.expanded i { transform: rotate(180deg); }

/* Empty */
.pfx-m-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 48px 20px; text-align: center; color: #6b7280;
  animation: pfxFadeIn .3s ease both;
}
.pfx-m-empty i { font-size: 2rem; opacity: .5; }
.pfx-m-empty strong { color: #9ca3af; font-size: .95rem; }
.pfx-m-empty span { font-size: .8rem; color: #6b7280; line-height: 1.45; }

/* Search overlay */
.pfx-search-view {
  position: absolute; inset: 0; z-index: 10;
  display: none; flex-direction: column; background: #07090e;
}
.pfx-search-view.show { display: flex; animation: pfxFadeIn .2s ease both; }
.pfx-search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 14px 12px;
  flex-shrink: 0;
}
.pfx-search-bar input {
  flex: 1; height: 42px; border-radius: 12px; border: 1px solid rgba(99,102,241,.25);
  background: rgba(20,24,40,.9); color: #f3f4f6; padding: 0 14px;
  font-size: .95rem; outline: none;
}
.pfx-search-results { flex: 1; overflow-y: auto; padding: 0 8px 80px; transition: padding-bottom .28s ease; }

/* Toast */
.pfx-toast {
  position: fixed; left: 50%; bottom: 100px;
  transform: translateX(-50%) translateY(16px);
  z-index: 100100; padding: 10px 18px; border-radius: 12px;
  background: rgba(20,24,40,.96); border: 1px solid rgba(99,102,241,.35);
  color: #c7d2fe; font-size: .85rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: .2s; white-space: nowrap;
}
.pfx-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Float overlay bubble (muncul di dekat bubble) */
.pfx-float-overlay {
  position: fixed; z-index: 100050;
  left: 50%; top: calc(72px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  width: min(340px, calc(100vw - 24px));
  max-height: min(320px, 50vh);
  border-radius: 18px;
  background: rgba(16, 20, 34, 0.97);
  border: 1px solid rgba(99, 102, 241, 0.22);
  box-shadow: 0 16px 48px rgba(0,0,0,.55);
  padding: 12px 14px 14px;
  display: none; flex-direction: column; gap: 10px;
  touch-action: none;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
}
.pfx-float-overlay.show { display: flex; opacity: 1; }
.pfx-float-overlay.dragging {
  opacity: 0.95;
  box-shadow: 0 20px 56px rgba(0,0,0,.65);
  transition: none;
}
.pfx-fo-head { display: flex; align-items: center; gap: 10px; cursor: grab; }
.pfx-float-overlay.dragging .pfx-fo-head { cursor: grabbing; }
.pfx-fo-cover { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.pfx-fo-meta { flex: 1; min-width: 0; }
.pfx-fo-title { font-size: .9rem; font-weight: 700; color: #f3f4f6; white-space: nowrap; overflow: hidden; }
.pfx-fo-artist { font-size: .75rem; color: #9ca3af; margin-top: 2px; }
.pfx-fo-close {
  width: 34px; height: 34px; border: none; border-radius: 10px;
  background: rgba(255,255,255,.06); color: #9ca3af;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .18s ease, transform .12s ease;
}
.pfx-fo-close:active { background: rgba(255,255,255,.14); transform: scale(.92); }
.pfx-fo-controls { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pfx-fo-ctrl {
  width: 40px; height: 40px; border: none; border-radius: 12px;
  background: transparent; color: #e5e7eb;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; cursor: pointer;
  transition: background .18s ease, transform .12s ease;
}
.pfx-fo-ctrl:active { transform: scale(.9); }
.pfx-fo-ctrl.pfx-fo-play { width: 48px; height: 48px; border-radius: 50%; background: #f3f4f6; color: #0c0d14; font-size: 1.05rem; }
.pfx-fo-ctrl.active { color: #a78bfa; }
.pfx-fo-progress { padding: 0 2px; }
.pfx-progress-times { display: flex; justify-content: space-between; font-size: .68rem; color: #6b7280; margin-top: 4px; }

/* ========== SONG MENU (bottom sheet) ========== */
.pfx-songmenu-overlay {
  position: fixed; inset: 0; z-index: 100200;
  background: rgba(2, 4, 10, 0.72);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
}
.pfx-songmenu-overlay.show {
  opacity: 1; visibility: visible;
  pointer-events: auto;
}
.pfx-songmenu {
  width: 100%; max-width: 520px;
  background: linear-gradient(180deg, #0f1424 0%, #0b0e1a 100%);
  border-top-left-radius: 22px; border-top-right-radius: 22px;
  border: 1px solid rgba(99,102,241,.22); border-bottom: none;
  padding: 14px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translate3d(0, 100%, 0);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  max-height: 82vh; overflow-y: auto;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.pfx-songmenu-overlay.show .pfx-songmenu {
  transform: translate3d(0, 0, 0);
}
.pfx-sm-handle {
  width: 40px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.2);
  margin: 0 auto 14px;
}
.pfx-sm-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.pfx-sm-cover { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.pfx-sm-info { flex: 1; min-width: 0; }
.pfx-sm-title {
  font-size: .95rem; font-weight: 700; color: #f3f4f6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pfx-sm-artist { font-size: .78rem; color: #9ca3af; margin-top: 2px; }
.pfx-sm-close {
  width: 34px; height: 34px; border: none; border-radius: 10px;
  background: rgba(255,255,255,.06); color: #9ca3af;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.pfx-sm-actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 14px;
}
.pfx-sm-action {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 6px; border-radius: 14px;
  /* Gradient dominan ungu transparan (tingkat kecerahan sama seperti biru sebelumnya) */
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.22), rgba(99, 102, 241, 0.14));
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #f3e8ff; /* Teks ungu sangat muda */
  font-size: .74rem; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: transform .12s ease, background .18s ease;
}

.pfx-sm-action:active { 
  transform: scale(.96); 
  /* Efek sedikit lebih terang saat tombol ditekan */
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.3), rgba(99, 102, 241, 0.2)); 
}

.pfx-sm-action i { 
  font-size: 1.15rem; 
  color: #c084fc; /* Warna ikon ungu terang */
}


.pfx-sm-list { display: flex; flex-direction: column; }
.pfx-sm-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 8px; border: none; background: transparent;
  color: #e5e7eb; font-size: .92rem; text-align: left;
  cursor: pointer; border-radius: 10px;
  transition: background .15s ease;
}
.pfx-sm-item:active { background: rgba(255,255,255,.05); }
.pfx-sm-item i { width: 22px; text-align: center; color: #9ca3af; font-size: .95rem; }

/* ========== PLAYER MENU (popup ringan di bawah tombol ⋮) ========== */
.pfx-playermenu {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 66px);
  right: 16px;
  left: auto;
  bottom: auto;
  width: auto;
  min-width: 180px;
  max-width: 240px;
  z-index: 100500;

  padding: 6px;

  /* Glass — ringan & semi transparan */
  background: rgba(15, 19, 32, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(96, 165, 250, 0.20);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.96);
  transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.pfx-playermenu.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Hapus handle & judul yang dulu bikin berat */
.pfx-playermenu::before,
.pfx-playermenu::after {
  display: none !important;
  content: none !important;
}

/* Item lebih rapat & ringan */
.pfx-pm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease;
}
.pfx-pm-item:active {
  background: rgba(96, 165, 250, 0.16);
}
.pfx-pm-item i {
  width: 18px;
  text-align: center;
  color: #8B5CF6;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ========== SLEEP TIMER BADGE (di bawah nama artis) ========== */
.pfx-fp-sleep {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  padding: 0 12px;
  max-height: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(99,102,241,.24), rgba(168,85,247,.20));
  border: 1px solid rgba(165,180,252,.35);
  color: #e0e7ff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(99,102,241,.22);
  opacity: 0;
  overflow: hidden;
  transition: opacity .25s ease, max-height .25s ease, margin-top .25s ease, padding .25s ease;
}
.pfx-fp-sleep.show {
  opacity: 1;
  max-height: 40px;
  margin-top: 10px;
  padding: 5px 12px;
}
.pfx-fp-sleep i { font-size: .72rem; color: #c4b5fd; }

/* ========== MODAL SHEET (Sleep Timer & Kecepatan) ========== */
.pfx-modal-overlay {
  position: fixed; inset: 0; z-index: 100300;
  background: rgba(2,4,10,.78);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
}
.pfx-modal-overlay.show {
  opacity: 1; visibility: visible;
  pointer-events: auto;
}
.pfx-modal {
  width: 100%; max-width: 520px;
  background: linear-gradient(180deg, #0f1424 0%, #0b0e1a 100%);
  border-top-left-radius: 24px; border-top-right-radius: 24px;
  border: 1px solid rgba(99,102,241,.22);
  border-bottom: none;
  padding: 12px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate3d(0, 100%, 0);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  max-height: 88vh; overflow-y: auto;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.pfx-modal-overlay.show .pfx-modal { transform: translate3d(0, 0, 0); }
.pfx-modal-handle {
  width: 42px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.18);
  margin: 0 auto 16px;
}
.pfx-modal-head {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 1.05rem; font-weight: 800; color: #fff;
  letter-spacing: -.01em;
}
.pfx-modal-head i {
  width: 30px; height: 30px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(168,85,247,.35), rgba(99,102,241,.28));
  border: 1px solid rgba(168,85,247,.45);
  color: #e9d5ff; font-size: .85rem;
}
.pfx-modal-sub {
  text-align: center; margin-top: 6px; margin-bottom: 16px;
  font-size: .8rem; color: #9ca3af;
}
.pfx-modal-sub strong { color: #d8b4fe; font-weight: 700; }
.pfx-modal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 16px;
}
.pfx-modal-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  padding: 16px 8px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(168,85,247,.12), rgba(99,102,241,.10));
  border: 1px solid rgba(168,85,247,.3);
  color: #f3e8ff;
  font-size: 1.2rem; font-weight: 800;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
}
.pfx-modal-opt:active { transform: scale(.96); }
.pfx-modal-opt:hover {
  background: linear-gradient(160deg, rgba(168,85,247,.22), rgba(99,102,241,.18));
  border-color: rgba(168,85,247,.5);
}
.pfx-modal-opt span {
  display: block;
  font-size: .68rem; font-weight: 600;
  color: #93a3bd; margin-top: 2px;
  letter-spacing: .02em;
}
.pfx-modal-opt.danger {
  background: linear-gradient(160deg, rgba(239,68,68,.14), rgba(220,38,38,.10));
  border-color: rgba(248,113,113,.3);
  color: #fecaca;
}
.pfx-modal-opt.danger span { color: #fca5a5; }

.pfx-modal-custom-label {
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  color: #7c879c;
  letter-spacing: .04em;
  margin: 4px 0 10px;
}
.pfx-modal-custom {
  display: flex; gap: 10px; align-items: stretch;
}
.pfx-modal-input-wrap {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  border-radius: 13px;
  background: rgba(15,19,32,.9);
  border: 1px solid rgba(168,85,247,.35);
}
.pfx-modal-input-wrap i { color: #c084fc; font-size: .9rem; }
.pfx-modal-input-wrap input {
  flex: 1; min-width: 0;
  height: 46px;
  background: transparent; border: none; outline: none;
  color: #f3f4f6; font-size: .95rem;
  font-family: inherit;
}
.pfx-modal-input-wrap input::placeholder { color: #6b7280; }
.pfx-modal-set {
  min-width: 78px;
  padding: 0 18px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  font-weight: 800; font-size: .92rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(168,85,247,.3);
  transition: transform .12s ease, filter .15s ease;
}
.pfx-modal-set:active { transform: scale(.96); filter: brightness(1.05); }
/* Animasi */
@keyframes pfxFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pfxFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pfx-hero, .pfx-sec-head, .pfx-q-slides, .pfx-grid,
  .pfx-hrow, .pfx-qlist, .pfx-m-pills, .pfx-search-view {
    animation: none !important;
  }
}