/* ==========================================================================
   Renderix Studio — Visual Slide-by-Slide WYSIWYG Story Customizer
   Direct on-screen editing of texts and photos matching actual slides
   ========================================================================== */

*, *::before, *::after {
  -webkit-tap-highlight-color: transparent;
}

:root,
:root[data-theme="pink"],
:root[data-theme="blue"],
:root[data-theme="sunset"] {
  --th-title: #ff4f87;
  --th-btn: #ff7ab0;
  --th-btn-bg: #f78bb0;
  --th-btn-border: #a23862;
  --th-btn-hl: #ffaac7;
  --th-btn-lo: #d24f8a;
  --th-outline: #7a2244;
  --th-drop: #4b172a;
  --th-hint: #b3477f;
  --th-primary: #ff5c9a;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Scoped strictly to playground editor canvas preview — prevents leaking into main live template */
.story-slide-canvas .px-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 14px;
  background: repeating-linear-gradient(180deg, #c8843e 0 6px, #b9742f 6px 12px);
  box-shadow: 0 0 0 4px #6e3f1c, 0 8px 0 4px rgba(74, 40, 16, 0.4);
  pointer-events: auto !important;
}

.story-slide-canvas .px-frame-inner {
  position: relative;
  padding: 16px 12px;
  background: #fdf3d8;
  box-shadow: inset 0 0 0 4px #d9b878;
  text-align: center;
  pointer-events: auto !important;
}

.story-slide-canvas .start-btn {
  display: inline-block;
  font-family: "Press Start 2P", monospace;
  font-size: 0.75rem;
  color: #fff;
  background: var(--th-btn, #ff7ab0);
  padding: 8px 18px;
  text-shadow: 2px 2px 0 var(--th-drop, #b3286a);
  box-shadow: inset 4px 4px 0 #ffc4de, inset -4px -4px 0 #d24f8a, 0 0 0 4px var(--th-outline, #7a2244);
  border-radius: 4px;
}

/* Floating Launch Button */
.btn-floating-playground {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #111d17 0%, #0d281e 100%);
  border: 1.5px solid #25d366;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 9999px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 24px rgba(37, 211, 102, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-floating-playground:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #14251c 0%, #123829 100%);
  border-color: #2fed7b;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75), 0 0 32px rgba(37, 211, 102, 0.6);
}

.floating-sparkle-icon {
  font-size: 1.1rem;
  color: #ffd45e;
  animation: floatingSparkle 2s ease-in-out infinite;
}

@keyframes floatingSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.25) rotate(14deg); }
}

/* ==========================================================================
   DYNAMIC ISLAND SIRI iOS 27 — LIQUID GLASS POPUP NOTIFICATION
   ========================================================================== */

/* Fullscreen Frosted Backdrop when Island is Expanded to Center */
.siri-island-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10003;
  background: rgba(8, 6, 12, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.siri-island-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Dynamic Island Floating Master Container */
.siri-island-wrapper {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10005;
  width: 210px;
  transition: all 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: top, left, transform, width;
}

/* Expanded to Center State */
.siri-island-wrapper.is-centered {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(92vw, 390px) !important;
}

/* Ethereal Siri Liquid Ambient Aura Behind */
.siri-liquid-aura {
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background: conic-gradient(from 0deg, #ff2d87, #9b51e0, #00f0ff, #ffb800, #ff2d87);
  filter: blur(16px);
  opacity: 0.75;
  pointer-events: none;
  animation: siriAuraRotate 5.5s linear infinite;
  transition: all 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.siri-island-wrapper.is-centered .siri-liquid-aura {
  inset: -12px;
  border-radius: 36px;
  filter: blur(28px);
  opacity: 0.85;
}

@keyframes siriAuraRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* The True Apple Dynamic Island / Liquid Glass Shell */
.siri-dynamic-island {
  position: relative;
  width: 100%;
  background: rgba(14, 10, 20, 0.84);
  backdrop-filter: blur(48px) saturate(220%);
  -webkit-backdrop-filter: blur(48px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85),
              0 0 35px rgba(255, 45, 135, 0.28),
              0 0 70px rgba(0, 240, 255, 0.2),
              inset 0 1.5px 1px rgba(255, 255, 255, 0.55);
  overflow: hidden;
  transition: border-radius 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s ease,
              box-shadow 0.4s ease;
}

.siri-island-wrapper.is-centered .siri-dynamic-island {
  border-radius: 32px;
  background: rgba(16, 12, 24, 0.86);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.92),
              0 0 50px rgba(255, 45, 135, 0.35),
              0 0 90px rgba(0, 240, 255, 0.25),
              inset 0 1.5px 1px rgba(255, 255, 255, 0.65);
}

/* Top Specular Rim Reflection */
.siri-specular-highlight {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  pointer-events: none;
}

/* ─── Compact Top Notch State ─── */
.siri-island-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 42px;
  padding: 0 14px 0 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.siri-orb-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #ff2d87, #9b51e0, #00f0ff, #ffb800, #ff2d87);
  box-shadow: 0 0 12px rgba(255, 45, 135, 0.8);
  animation: siriOrbSpin 4s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.siri-orb-mini::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 6px #fff;
  animation: siriOrbPulse 1.8s ease-in-out infinite;
}

.siri-island-compact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.siri-island-compact-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.siri-island-compact-sub {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.01em;
}

.siri-island-compact-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 8px #25d366;
  animation: siriDotGlow 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes siriDotGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

@keyframes siriOrbSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes siriOrbPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* ─── Center Liquid Glass Card State ─── */
.siri-liquid-glass-card {
  padding: 22px 20px 24px 20px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  animation: siriFadeIn 0.35s ease;
}

@keyframes siriFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.siri-glass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.siri-glass-orb-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.siri-orb-large {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #ff2d87, #9b51e0, #00f0ff, #ffb800, #ff2d87);
  box-shadow: 0 0 20px rgba(255, 45, 135, 0.7);
  animation: siriOrbSpin 4s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.siri-orb-large::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px #ffffff;
  animation: siriOrbPulse 1.8s ease-in-out infinite;
}

.siri-badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  border-radius: 9999px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffd4e5;
  text-transform: uppercase;
}

.siri-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff2d87;
  box-shadow: 0 0 6px #ff2d87;
}

.siri-glass-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.siri-glass-close:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: scale(1.08);
}

.siri-glass-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.siri-glass-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.15);
}

.siri-glass-desc {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* Feature Chips Row */
.siri-feature-chips {
  display: flex;
  gap: 6px;
  margin: 6px 0 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.siri-feature-chips::-webkit-scrollbar { display: none; }

.siri-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.siri-chip-icon {
  font-size: 1rem;
}

.siri-chip-text {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Action Buttons */
.siri-glass-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.btn-siri-action-primary {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, #ff2d87 0%, #7928ca 50%, #00d4ff 100%);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 45, 135, 0.4), 0 0 20px rgba(0, 212, 255, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  user-select: none;
}

.btn-siri-action-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(255, 45, 135, 0.55), 0 0 28px rgba(0, 212, 255, 0.4);
}

.btn-siri-action-primary:active {
  transform: scale(0.98);
}

.siri-btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: siriShimmer 3s ease-in-out infinite;
}

@keyframes siriShimmer {
  0% { left: -100%; }
  40%, 100% { left: 160%; }
}

.btn-siri-action-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-siri-action-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* Fullscreen Modal Backdrop */
.playground-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100000;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.playground-drawer-backdrop:not(.is-open):not(.open) {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.playground-drawer-backdrop:not(.is-open):not(.open) * {
  pointer-events: none !important;
}

.playground-drawer-backdrop.is-open,
.playground-drawer-backdrop.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* Phone Mockup Canvas Outer Frame */
.story-phone-device {
  pointer-events: auto !important;
  width: 100%;
  max-width: 440px;
  height: 94vh;
  max-height: 820px;
  background: #000000;
  border-radius: 36px;
  border: 3.5px solid #28333e;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 30px rgba(37, 211, 102, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.97) translate3d(0,0,0);
  transition: transform 0.35s var(--ease-spring);
  will-change: transform;
}

.playground-drawer-backdrop.is-open .story-phone-device {
  transform: scale(1);
}

/* Phone Top Header with Close & Story Segments */
.story-phone-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px 16px 8px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Story Segments (like WhatsApp / IG Status) */
.story-segments-row {
  display: flex;
  gap: 5px;
  width: 100%;
}

.story-segment-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.35s var(--ease-smooth);
  touch-action: manipulation;
  min-height: 12px;
  display: flex;
  align-items: center;
}

.story-segment-bar::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: inherit;
  border-radius: 9999px;
}

.story-segment-bar.active {
  background: #25d366;
  box-shadow: 0 0 6px rgba(37, 211, 102, 0.6);
}

.story-segment-bar.completed {
  background: rgba(255, 255, 255, 0.8);
}

/* Story Title Header */
.story-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.story-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffd45e;
  padding: 4px 10px;
  border-radius: 9999px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.btn-close-story {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-close-story:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}



/* Phone Screen Slide Container */
.story-slides-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #110d18;
  pointer-events: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Individual Slide Pane */
.story-slide-canvas {
  position: absolute;
  inset: 0;
  display: none !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 80px 16px;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.story-slide-canvas::-webkit-scrollbar {
  display: none;
}

.story-slide-canvas.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  z-index: 5 !important;
  transform: translate3d(0, 0, 0);
}

/* Scanlines overlay for retro CRT effect */
.story-slide-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.08) 0px,
    rgba(0, 0, 0, 0.08) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none !important;
  z-index: 2;
}

/* ==========================================================================
   EDITABLE INTERACTIVE ELEMENTS (Direct on canvas)
   ========================================================================== */

/* Editable Text Fields */
.wysiwyg-text-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px dashed rgba(255, 212, 94, 0.55);
  border-radius: 10px;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  text-align: center;
  padding: 8px 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: all 0.25s var(--ease-smooth);
  cursor: text;
  text-shadow: inherit;
  pointer-events: auto !important;
  position: relative;
  z-index: 30;
  -webkit-appearance: none;
  appearance: none;
}

.wysiwyg-text-input:focus {
  background: rgba(0, 0, 0, 0.75);
  border: 1.5px solid #25d366;
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.5), 0 0 0 3px rgba(37, 211, 102, 0.12);
  color: #ffffff;
  transform: scale(1.01);
}

.wysiwyg-text-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Editable Button */
.wysiwyg-btn-input {
  background: var(--th-btn-bg, #f78bb0);
  border: 3px solid var(--th-btn-border, #a23862);
  box-shadow: inset 0 2px 0 var(--th-btn-hl, #ffaac7), 0 4px 0 var(--th-drop, #4b172a);
  color: #ffffff;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 6px;
  text-align: center;
  width: 80%;
  max-width: 260px;
  outline: none;
  cursor: text;
  pointer-events: auto !important;
  position: relative;
  z-index: 30;
}

.wysiwyg-btn-input:focus {
  box-shadow: 0 0 16px #25d366, 0 4px 0 #12542a;
  border-color: #25d366;
}

/* Floating Edit Tag Indicator */
.editable-field-wrap {
  position: relative;
  width: 100%;
  pointer-events: auto !important;
  z-index: 28;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.editable-field-wrap::before {
  content: "✏️ Ketuk untuk ubah";
  position: absolute;
  top: -18px;
  right: 8px;
  background: #25d366;
  color: #06170d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(3px);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 35;
  white-space: nowrap;
}

.editable-field-wrap[data-edit-hint]::before {
  content: attr(data-edit-hint);
}

.editable-field-wrap:hover::before,
.editable-field-wrap:focus-within::before {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .editable-field-wrap:active::before,
  .editable-field-wrap:focus-within::before {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card-level floating hint badges */
.retro-letter-card::before {
  content: "✏️ Ketuk untuk ubah";
  position: absolute;
  top: -10px;
  right: 10px;
  background: #25d366;
  color: #06170d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(3px);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 35;
  white-space: nowrap;
}

.retro-letter-card:hover::before,
.retro-letter-card:focus-within::before {
  opacity: 1;
  transform: translateY(0);
}

.special-photo-card {
  position: relative;
}

.special-photo-card::after {
  content: "📸 Ketuk ganti foto";
  position: absolute;
  top: -8px;
  right: 8px;
  background: #25d366;
  color: #06170d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(3px);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 35;
  white-space: nowrap;
}

.special-photo-card:hover::after,
.special-photo-card:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .retro-letter-card:active::before,
  .retro-letter-card:focus-within::before,
  .special-photo-card:active::after {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   SLIDE 1: HANGING WOODEN FRAME
   ========================================================================== */
.hanging-frame-mockup {
  width: 100%;
  max-width: 340px;
  position: relative;
  /* Removed continuous rotation animation so inputs do not shift under clicks or lose focus */
  transform-origin: top center;
  z-index: 20;
  pointer-events: auto !important;
}

/* Hanging ropes */
.hanging-ropes {
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  height: 48px;
  margin-bottom: -4px;
  pointer-events: none;
}

.hanging-rope {
  width: 3px;
  height: 100%;
  background: repeating-linear-gradient(
    180deg,
    #cf9f5e 0px,
    #cf9f5e 4px,
    #7a5223 4px,
    #7a5223 8px
  );
  box-shadow: 1px 0 3px rgba(0,0,0,0.5);
  pointer-events: none;
}

/* Theme picker pill row inside Slide 1 */
.slide1-theme-selector {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.65);
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  z-index: 35;
  position: relative;
  pointer-events: auto !important;
}

.slide1-theme-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  pointer-events: auto !important;
  position: relative;
  z-index: 36;
}

.slide1-theme-btn.active {
  background: rgba(37, 211, 102, 0.25);
  border-color: #25d366;
  color: #ffffff;
}

/* ==========================================================================
   SLIDE 2: LAND CAMERA CRT (SCREENSHOT 2)
   ========================================================================== */
.camera-back-view {
  width: 320px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 20px 35px rgba(0,0,0,0.6));
  margin: 0 auto;
}

.camera-viewfinder-block {
  position: absolute;
  top: -18px;
  left: 20px;
  width: 52px;
  height: 52px;
  background: #172635;
  border: 4px solid #101c27;
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.camera-viewfinder-inner {
  width: 30px;
  height: 30px;
  background: #09131c;
  border: 2px solid #0f1c28;
  border-radius: 4px;
}

.camera-body-slanted {
  width: 300px;
  background: #1a2a3b;
  border: 4px solid #101c27;
  border-radius: 18px 18px 8px 8px;
  padding: 24px 20px 20px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 4px 8px rgba(255,255,255,0.08), 0 10px 25px rgba(0,0,0,0.4);
}

.camera-crt-monitor {
  width: 230px;
  height: 195px;
  background: #2b0612;
  border: 4px solid #101c27;
  border-radius: 12px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.9), 0 0 15px rgba(255,64,112,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  gap: 8px;
}

.camera-crt-monitor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.25) 0 2px, transparent 2px 4px);
  pointer-events: none;
}

.camera-lower-shelf {
  width: 314px;
  height: 48px;
  background: #142230;
  border: 4px solid #0d1a26;
  border-radius: 6px 6px 14px 14px;
  margin-top: -4px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.6);
}

/* ==========================================================================
   SLIDE 4 & 5 HUD BAR (SCREENSHOTS 4 & 5)
   ========================================================================== */
.slide-hud-bar {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}

.hud-moment-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-shadow: 2px 2px 0 var(--th-outline, #7a2244);
}

.hud-music-pill {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.62rem;
  color: #ffffff;
  background: var(--th-btn, #ff7ab0);
  border: 2px solid var(--th-outline, #7a2244);
  padding: 4px 10px;
  box-shadow: inset 2px 2px 0 #ffc4de, inset -2px -2px 0 #d24f8a;
  text-shadow: 1px 1px 0 var(--th-drop, #b3286a);
}

/* Slide 4 Content (Title Card) */
.slide4-titlecard-content {
  text-align: center;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.slide4-color-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 12px 0 14px 0;
}

.slide4-color-dots span {
  width: 10px;
  height: 10px;
  border: 2px solid var(--th-outline, #7a2244);
}

.slide4-color-dots span:nth-child(1) { background: #ffd45e; }
.slide4-color-dots span:nth-child(2) { background: #ff5c9a; }
.slide4-color-dots span:nth-child(3) { background: #9be7ff; }

/* Slide 5 Content (Photo Card) */
.slide5-photocard-content {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.slide5-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 300px;
  margin-top: 14px;
}
.polaroid-letter-textarea {
  padding: 6px;
  resize: none;
  outline: none;
  box-sizing: border-box;
}

.polaroid-letter-textarea:focus {
  border-color: #25d366;
  background: #ffffff;
}

/* ==========================================================================
   SLIDE 3: FINALE CELEBRATION
   ========================================================================== */
.finale-slide-content {
  text-align: center;
  width: 100%;
  max-width: 340px;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

#inputSlide3FinaleTitle {
  font-size: clamp(0.7rem, 3.2vw, 0.82rem) !important;
  letter-spacing: -0.2px !important;
  padding: 8px 6px !important;
  max-width: 96% !important;
}

#inputSlide3FinaleName {
  font-size: clamp(0.66rem, 3vw, 0.78rem) !important;
  letter-spacing: -0.2px !important;
  padding: 8px 6px !important;
  max-width: 96% !important;
}

.finale-balloon-decor {
  font-size: 2.2rem;
  animation: floatingSparkle 3s ease-in-out infinite;
}

/* ==========================================================================
   SLIDE 4: STORY KENANGAN (MOMENT 1, 2, 3)
   ========================================================================== */
.story-moments-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

/* Moment Switcher Tabs */
.moments-tab-bar {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.moment-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.62rem;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
}

.moment-tab-btn.active {
  background: #25d366;
  color: #000;
  font-weight: 700;
}

/* Wooden Story Card from Screenshot 5 */
.wooden-story-card {
  width: 100%;
  max-width: 300px;
  background: #c2884a;
  border: 4px solid #7c4d1d;
  box-shadow: inset 0 0 0 2px #e3ad75, 0 12px 35px rgba(0,0,0,0.7);
  padding: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 3px;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s;
}

/* Screw corners */
.wooden-story-card::before,
.wooden-story-card::after {
  content: "✖";
  position: absolute;
  font-size: 0.65rem;
  color: #5c340d;
  line-height: 1;
}
.wooden-story-card::before { top: 3px; left: 4px; }
.wooden-story-card::after { top: 3px; right: 4px; }

.wooden-photo-slot {
  width: 100%;
  height: 220px;
  background: #1a0e20;
  overflow: hidden;
  position: relative;
  display: block; /* Must be block so image occupies full width/height */
  cursor: pointer;
  border: 1px solid #7c4d1d;
  border-radius: 4px;
}

.wooden-photo-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.wooden-photo-slot:hover img {
  transform: scale(1.03);
  filter: brightness(0.92);
}

.wooden-photo-slot.drag-over img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

/* Upload overlay sits directly on top of the photo */
.polaroid-upload-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 5;
}

.wooden-photo-slot:hover .polaroid-upload-overlay,
.wooden-photo-slot:active .polaroid-upload-overlay,
.wooden-photo-slot.drag-over .polaroid-upload-overlay {
  background: rgba(0, 0, 0, 0.15);
}

/* Dashed upload dropzone card overlay (Translucent frosted glass aesthetics) */
.upload-dropzone-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 88%;
  max-width: 240px;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px dashed rgba(255, 60, 120, 0.85);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  pointer-events: none;
}

.wooden-photo-slot:hover .upload-dropzone-badge,
.wooden-photo-slot.drag-over .upload-dropzone-badge {
  transform: translateY(-2px) scale(1.03);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: #ff2b70;
  box-shadow: 0 12px 30px rgba(255, 79, 135, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.wooden-photo-slot.drag-over .upload-dropzone-badge {
  border-style: solid;
  border-color: #00ff88;
  background: rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
}

.upload-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 79, 135, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff2b70;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.wooden-photo-slot:hover .upload-icon-circle {
  transform: scale(1.1);
  background: #ff2b70;
  color: #ffffff;
}

.upload-badge-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.upload-badge-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1a0a14;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 0 6px rgba(255, 255, 255, 0.8);
}

.upload-badge-sub {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.70rem;
  font-weight: 600;
  color: #3b1828;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Wooden Badge below photo */
.wooden-badge-box {
  margin-top: 10px;
  width: 85%;
  background: #fff8eb;
  border: 2px solid #6b4018;
  padding: 6px 10px;
  text-align: center;
}

/* ==========================================================================
   SLIDE 5: MUSIC & LAUNCH PREVIEW
   ========================================================================== */
.finish-slide-content {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 2;
  text-align: center;
}

.cassette-player-box {
  width: 100%;
  background: #0a1118;
  border: 2px solid #25d366;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(37, 211, 102, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cassette-icon {
  font-size: 2.2rem;
  animation: spinCassette 8s linear infinite;
}

@keyframes spinCassette {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.song-selector-dropdown {
  width: 100%;
  background: #14222d;
  border: 1px solid rgba(37, 211, 102, 0.5);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.custom-audio-upload-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.custom-audio-upload-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #25d366;
  color: #fff;
}

/* ==========================================================================
   PHONE BOTTOM CONTROLLER (Next, Prev, Launch)
   ========================================================================== */
.story-phone-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 10px 14px max(16px, env(safe-area-inset-bottom, 16px)) 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.btn-nav-slide {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 9999px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s var(--ease-smooth);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-height: 44px;
  touch-action: manipulation;
}

.btn-nav-slide:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn-nav-slide:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.32);
}

.btn-nav-slide.primary {
  background: #25d366;
  border-color: #25d366;
  color: #0b1a10;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn-nav-slide.primary:hover {
  background: #2fed7b;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-nav-slide.primary:active {
  transform: scale(0.95);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.6);
}

.btn-launch-final {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  border: none;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(255, 75, 43, 0.45);
  animation: pulseLaunch 2.2s ease-in-out infinite;
  transition: all 0.2s var(--ease-smooth);
  min-height: 48px;
  touch-action: manipulation;
}

.btn-launch-final:active {
  transform: scale(0.96) !important;
  animation: none;
}

@keyframes pulseLaunch {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(255, 75, 43, 0.45); }
  50% { transform: scale(1.03); box-shadow: 0 12px 32px rgba(255, 75, 43, 0.65); }
}

@media (max-width: 480px) {
  .story-phone-device {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  .playground-drawer-backdrop {
    padding: 0 !important;
  }
  .story-slide-canvas {
    padding: 56px 14px 76px 14px;
  }
}

/* ==========================================================================
   SLIDE 5: CETAK AKHIR KAMERA 3D (3 FOTO, 2 SURAT, 1 DANA KAGET, 1 LAGU)
   ========================================================================== */
.slide5-finale-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 90px 12px;
  width: 100%;
}

.finale-camera-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 9999px;
  color: #ffd45e;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
}

/* 3 Polaroid Photos Row */
.finale-polaroids-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.mini-polaroid-card {
  flex: 1;
  max-width: 100px;
  background: #ffffff;
  padding: 5px 5px 10px 5px;
  border-radius: 5px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  position: relative;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease-smooth);
  text-align: center;
  touch-action: manipulation;
}

.mini-polaroid-card:active {
  transform: scale(0.93) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

.mini-polaroid-card:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
  z-index: 5;
}

.mini-polaroid-card.p-left {
  transform: rotate(-5deg);
}

.mini-polaroid-card.p-center {
  transform: translateY(-6px);
  z-index: 2;
}

.mini-polaroid-card.p-right {
  transform: rotate(5deg);
}

.mini-polaroid-photo {
  width: 100%;
  height: 85px;
  background: #2a1636;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.mini-polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-polaroid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.6rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}

.mini-polaroid-card:hover .mini-polaroid-overlay {
  opacity: 1;
}

.mini-polaroid-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: #555;
  margin-top: 4px;
  display: block;
}

/* 2 Surat Kenangan Cards - PORTRAIT TWIN CARDS */
.finale-letters-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  padding: 12px 0 18px 0;
  perspective: 900px;
}

.retro-letter-card {
  flex: 1;
  max-width: 175px;
  min-height: 290px;
  background: linear-gradient(180deg, #fdfbf7 0%, #f7f2ea 100%);
  border: 1.5px solid #dcd3c4;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.52);
  border-radius: 10px;
  padding: 12px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.3s, border-color 0.25s;
  touch-action: manipulation;
}

.retro-letter-card.letter-card-left {
  transform: rotate(-3.5deg);
}

.retro-letter-card.letter-card-right {
  transform: rotate(3.5deg);
}

.retro-letter-card:hover,
.retro-letter-card:focus-within {
  transform: translateY(-10px) scale(1.05) rotate(0deg) !important;
  z-index: 5;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(255, 212, 94, 0.8) !important;
  border-color: #ffd45e;
}

.letter-card-header {
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1.5px dashed #d6c7b2;
  padding-bottom: 6px;
}

.letter-heart-icon {
  color: #e0284f;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.letter-title-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: #a23862;
  font-weight: 700;
  outline: none;
  width: 100%;
  letter-spacing: -0.2px;
}

.letter-title-input:focus {
  color: #e0284f;
}

.letter-num-pill {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.44rem;
  color: #8b5e3c;
  background: rgba(139, 94, 60, 0.12);
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.letter-textarea-input {
  flex: 1;
  width: 100%;
  min-height: 215px;
  background: repeating-linear-gradient(
    transparent,
    transparent 18px,
    rgba(140, 80, 40, 0.11) 19px,
    rgba(140, 80, 40, 0.11) 20px
  );
  line-height: 20px;
  border: none;
  outline: none;
  font-family: VT323, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  color: #3b2214;
  resize: none;
  padding: 2px 2px;
  scrollbar-width: none; /* Hide scrollbar for clean letter look */
  -ms-overflow-style: none;
}

.letter-textarea-input::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.letter-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed rgba(214, 199, 178, 0.6);
  padding-top: 4px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.44rem;
  color: #a09080;
}

@media (max-width: 480px) {
  .finale-letters-row {
    gap: 8px;
  }
  .retro-letter-card {
    max-width: 165px;
    min-height: 275px;
    padding: 10px 8px 10px 8px;
  }
  .letter-title-input {
    font-size: 0.42rem;
  }
  .letter-num-pill {
    font-size: 0.4rem;
    padding: 1px 4px;
  }
  .letter-textarea-input {
    min-height: 205px;
    font-size: 0.88rem;
    line-height: 19px;
    background: repeating-linear-gradient(
      transparent,
      transparent 17px,
      rgba(140, 80, 40, 0.11) 18px,
      rgba(140, 80, 40, 0.11) 19px
    );
  }
}

@media (max-width: 360px) {
  .retro-letter-card {
    max-width: 148px;
    min-height: 255px;
    padding: 8px 6px 8px 6px;
  }
  .letter-title-input {
    font-size: 0.38rem;
  }
  .letter-textarea-input {
    min-height: 185px;
    font-size: 0.82rem;
    line-height: 18px;
    background: repeating-linear-gradient(
      transparent,
      transparent 16px,
      rgba(140, 80, 40, 0.11) 17px,
      rgba(140, 80, 40, 0.11) 18px
    );
  }
}

/* Bottom Stack: Foto Spesial (Atas) & 5 Lagu Playlist (Bawah) */
.finale-bottom-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.special-photo-card {
  background: #1b1320;
  border: 2px solid #ff4070;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  width: 100%;
}

.special-photo-card:hover {
  transform: translateY(-2px);
  border-color: #ffd45e;
  box-shadow: 0 8px 22px rgba(255, 64, 112, 0.35);
}

.special-photo-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.special-photo-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.54rem;
  color: #ff4070;
  letter-spacing: 0.04em;
  background: rgba(255, 64, 112, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
}

.special-photo-slot {
  width: 100%;
  height: 190px;
  background: #0d0710;
  border: 1px solid rgba(255, 64, 112, 0.3);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.special-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.special-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.special-photo-card:hover .special-photo-overlay {
  opacity: 1;
}

.special-photo-hint {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.60rem;
  font-weight: 700;
  background: #25d366;
  color: #06170d;
  padding: 4px 9px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.special-photo-caption-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2px 0;
}

.special-photo-caption-label {
  font-family: VT323, monospace;
  font-size: 1.15rem;
  color: #ffd45e;
  font-weight: bold;
  letter-spacing: 0.06em;
}

/* Music Card & Music Search Picker */
.playlist-editor-card {
  background: #121c24;
  border: 2px solid #25d366;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.playlist-editor-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.playlist-editor-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.54rem;
  color: #25d366;
  letter-spacing: 0.04em;
  background: rgba(37, 211, 102, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
}

.current-song-pill {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 6px;
  padding: 5px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  margin: 2px 0;
}

.song-pill-cover {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}

.song-pill-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.song-pill-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-pill-artist {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.62rem;
  color: #25d366;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-open-music-search {
  width: 100%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: none;
  color: #0d281e;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-open-music-search:hover {
  background: linear-gradient(135deg, #34e77b 0%, #16a38f 100%);
  transform: translateY(-1px);
}

/* 5-Song Playlist Slots in Slide 7 */
.playlist-slots-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
  margin: 4px 0 2px;
}

.playlist-slot-row {
  width: 100%;
  background: rgba(13, 20, 32, 0.7);
  border: 1px solid rgba(37, 211, 102, 0.22);
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.playlist-slot-row:hover {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.55);
}

.playlist-slot-row.slot-main {
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.08);
}

.slot-index-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: #25d366;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.playlist-slot-row.slot-main .slot-index-badge {
  color: #ffd700;
}

.slot-row-cover {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #18181b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.slot-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.slot-row-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.slot-row-artist {
  font-size: 0.58rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.playlist-slot-row.slot-main .slot-row-artist {
  color: #facc15;
}

.btn-slot-change {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #4ade80;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
}

.btn-slot-change:hover {
  background: #25d366;
  border-color: #25d366;
  color: #06170d;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
  transform: scale(1.05);
}

.playlist-slot-row.slot-main .btn-slot-change {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.4);
  color: #ffd700;
}

.playlist-slot-row.slot-main .btn-slot-change:hover {
  background: #ffd700;
  border-color: #ffd700;
  color: #000;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  transform: scale(1.05);
}

.playlist-slots-tip {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 4px 0 2px;
  letter-spacing: 0.01em;
}

.playlist-slots-tip b {
  color: #4ade80;
}



/* ══════════════════════════════════════════════════════════════════════════
   🎵 APPLE MUSIC-STYLE MUSIC SEARCH MODAL — Full-Screen Glassmorphism
   ══════════════════════════════════════════════════════════════════════════ */

@keyframes amSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes amFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes amPulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(37, 211, 102, 0.15); }
  50%      { box-shadow: 0 0 35px rgba(37, 211, 102, 0.35); }
}
@keyframes amSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes amWaveBar {
  0%, 100% { height: 4px; }
  50%      { height: 14px; }
}

/* Full-screen backdrop with blur */
.music-search-backdrop {
  z-index: 100010 !important;
  background: rgba(0, 0, 0, 0.7) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
}

/* Main card: full-screen feel */
.music-search-card {
  width: min(100vw, 460px);
  max-height: 96vh;
  height: 96vh;
  background: linear-gradient(180deg, #0d0b14 0%, #060410 40%, #080612 100%);
  border: none;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 60px rgba(0, 0, 0, 0.9);
  padding: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  animation: amSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  position: relative;
}

/* Gradient overlay at top for depth */
.music-search-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.06) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Header ─── */
.music-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
  position: relative;
  z-index: 1;
}

.music-search-header::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.music-search-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-search-title span:first-child {
  font-size: 1.2rem;
}

/* ─── Slot Pills (minimalist) ─── */
.modal-slot-tabs {
  display: flex;
  gap: 6px;
  padding: 14px 20px 6px;
  position: relative;
  z-index: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.modal-slot-tabs::-webkit-scrollbar { display: none; }

.modal-slot-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.modal-slot-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.3), rgba(16, 185, 129, 0.15));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}

.modal-slot-tab:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.modal-slot-tab.active {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.5);
  color: #4ade80;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.15);
}
.modal-slot-tab.active::before { opacity: 1; }

.modal-slot-tab.tab-main.active {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.5);
  color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}
.modal-slot-tab.tab-main.active::before {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 170, 0, 0.1));
  opacity: 1;
}

/* ─── Active Slot Indicator (slim, elegant) ─── */
.modal-active-target-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}

.modal-active-target-bar b {
  color: #4ade80;
  font-weight: 700;
}

#modalCurrentSlotSong {
  font-size: 0.68rem !important;
  color: #4ade80 !important;
  opacity: 0.9;
}

.btn-set-slot-backsound {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.btn-set-slot-backsound:hover {
  background: #ffd700;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

/* ─── Backsound sync checkbox — HIDDEN, auto-sync always on ─── */
.music-backsound-sync-banner { display: none !important; }
.music-duration-tip { display: none !important; }

/* ─── Search Bar ─── */
.music-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px 16px;
  gap: 10px;
  margin: 4px 20px 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.music-search-input-wrap:focus-within {
  border-color: rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.05);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.1);
}

.music-search-icon {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.3s;
}
.music-search-input-wrap:focus-within .music-search-icon {
  color: #4ade80;
}

.music-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.music-search-input::placeholder {
  color: rgba(255,255,255,0.3);
  font-weight: 400;
}

.music-search-clear {
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 50%;
  transition: all 0.2s;
  line-height: 1;
}
.music-search-clear:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ─── Upload MP3 (collapsible pill) ─── */
.music-upload-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 0 20px 6px;
  gap: 10px;
  transition: all 0.3s;
  z-index: 1;
  position: relative;
}
.music-upload-banner:hover {
  background: rgba(37, 211, 102, 0.05);
  border-color: rgba(37, 211, 102, 0.2);
}

.music-upload-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.music-upload-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.music-upload-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.music-upload-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  line-height: 1.2;
}

.music-upload-desc {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.2;
}

.btn-upload-custom-mp3 {
  background: rgba(255, 255, 255, 0.08);
  color: #4ade80;
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 12px;
  padding: 7px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-upload-custom-mp3:hover {
  background: #25d366;
  color: #06170d;
  border-color: #25d366;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

/* ─── Quick Chips ─── */
.music-chips-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 20px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
  position: relative;
}
.music-chips-row::-webkit-scrollbar { display: none; }

.music-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255,255,255,0.55);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  letter-spacing: 0.01em;
}
.music-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}
.music-chip.active {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.4);
  color: #4ade80;
}

.music-chip.chip-preset-full {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.3);
  color: #4ade80;
  font-weight: 800;
}
.music-chip.chip-preset-full:hover, .music-chip.chip-preset-full.active {
  background: rgba(37, 211, 102, 0.2) !important;
  border-color: rgba(37, 211, 102, 0.5) !important;
  color: #4ade80 !important;
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.15);
}

/* ─── Results Container ─── */
.music-results-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  z-index: 1;
  position: relative;
}
.music-results-container::-webkit-scrollbar {
  width: 4px;
}
.music-results-container::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

/* ─── Song Items (Apple Music row style) ─── */
.music-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: 8px 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  animation: amFadeIn 0.3s ease backwards;
}
.music-result-item:nth-child(1)  { animation-delay: 0.02s; }
.music-result-item:nth-child(2)  { animation-delay: 0.05s; }
.music-result-item:nth-child(3)  { animation-delay: 0.08s; }
.music-result-item:nth-child(4)  { animation-delay: 0.11s; }
.music-result-item:nth-child(5)  { animation-delay: 0.14s; }
.music-result-item:nth-child(6)  { animation-delay: 0.17s; }
.music-result-item:nth-child(7)  { animation-delay: 0.20s; }
.music-result-item:nth-child(8)  { animation-delay: 0.23s; }
.music-result-item:nth-child(9)  { animation-delay: 0.26s; }
.music-result-item:nth-child(10) { animation-delay: 0.29s; }
.music-result-item:nth-child(11) { animation-delay: 0.32s; }
.music-result-item:nth-child(12) { animation-delay: 0.35s; }

.music-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.music-result-item:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.08);
}

/* Selected song: subtle green aura */
.music-result-item.is-selected {
  background: rgba(37, 211, 102, 0.06) !important;
}

.music-result-item.is-selected.is-active-slot {
  background: rgba(37, 211, 102, 0.1) !important;
}

/* ─── Album Art (large, rounded) ─── */
.music-result-cover {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.25s;
}
.music-result-item:hover .music-result-cover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transform: scale(1.03);
}

.music-result-item.is-selected .music-result-cover {
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.25);
}

/* ─── Song Meta ─── */
.music-result-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.music-result-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  letter-spacing: -0.01em;
}
.music-result-item.is-selected .music-result-title {
  color: #4ade80;
}

.music-result-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 1px;
}

.music-result-artist {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.48);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  max-width: 140px;
}
.music-result-item.is-selected .music-result-artist {
  color: rgba(74, 222, 128, 0.7);
}

.badge-full-song {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.48rem;
  font-weight: 800;
  padding: 1.5px 5px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* iTunes / Deezer 30-second preview badge — amber/orange to signal truncated audio */
.badge-full-song.badge-preview {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
}

.badge-preview-song {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255,255,255,0.4);
  font-size: 0.5rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ─── Play Preview Button ─── */
.btn-music-preview {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-music-preview:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  transform: scale(1.08);
}
.btn-music-preview.playing {
  background: #25d366 !important;
  color: #000 !important;
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.75) !important;
  animation: amPulseGlow 1.6s ease-in-out infinite !important;
}

@keyframes amPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.75); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.music-result-item.is-previewing {
  background: rgba(37, 211, 102, 0.12) !important;
  border-color: rgba(37, 211, 102, 0.5) !important;
}

.music-result-item.is-previewing .music-result-title {
  color: #4ade80 !important;
}

/* ─── Select / Pick Button ─── */
.btn-music-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 10px;
  padding: 6px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 58px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}

.btn-music-select:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: rgba(37, 211, 102, 0.5);
  color: #4ade80;
  transform: translateY(-1px);
}

/* Currently selected in active slot: solid green check */
.btn-music-select.is-current-pick {
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: #06170d !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  cursor: default;
}

/* Song currently used in another slot: still selectable for this slot */
.btn-music-select.is-picked-other {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
}

.btn-music-select.is-picked-other:hover {
  background: rgba(37, 211, 102, 0.18) !important;
  border-color: #25d366 !important;
  color: #4ade80 !important;
}

/* Floating Toast Notification */
.playground-music-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(13, 11, 20, 0.96);
  border: 1px solid #25d366;
  color: #fff;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(37, 211, 102, 0.3);
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.playground-music-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Finish Button ─── */
.btn-finish-modal {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: none;
  color: #06170d;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  margin: 8px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.25);
  letter-spacing: 0.01em;
  z-index: 1;
  position: relative;
}
.btn-finish-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}
.btn-finish-modal:active {
  transform: translateY(0);
}

/* ─── Empty & Loading States ─── */
.music-empty-state, .music-loading-state {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.music-loading-state::before {
  content: '';
  width: 24px; height: 24px;
  border: 2px solid rgba(37, 211, 102, 0.15);
  border-top-color: #25d366;
  border-radius: 50%;
  animation: amSpin 0.7s linear infinite;
  display: block;
  margin-bottom: 4px;
}

/* ==========================================================================
   💎 JADIKAN WEBSITE KADO ABADI — SUBDOMAIN CLAIM MODAL & BUTTONS
   ========================================================================== */

/* 1. Button in Top Simulation Banner */
.btn-sim-publish {
  background: linear-gradient(135deg, #ffd700 0%, #ff7ab0 100%);
  border: 1px solid #ffd700;
  color: #1a0815;
  border-radius: 9999px;
  padding: 5px 13px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.55);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-sim-publish:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.85);
  background: linear-gradient(135deg, #ffe033 0%, #ff8fbe 100%);
}

/* 2. Button on The End (TV-Off) Screen */
.tvoff-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tvoff-publish {
  background: linear-gradient(135deg, #ff7ab0 0%, #ffd700 100%) !important;
  color: #1a0815 !important;
  font-family: "Press Start 2P", monospace !important;
  font-size: clamp(0.68rem, 2.6vw, 0.92rem) !important;
  font-weight: 800 !important;
  padding: clamp(0.75rem, 2.8vw, 1rem) clamp(1.2rem, 4.5vw, 1.8rem) !important;
  text-shadow: none !important;
  box-shadow: inset 4px 4px 0 #ffffff, inset -4px -4px 0 #d24f8a, 0 0 0 4px #7a2244, 0 0 28px rgba(255, 215, 0, 0.6) !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  animation: pulseGemGlow 2.4s ease-in-out infinite !important;
  transition: transform 0.1s steps(1), box-shadow 0.1s steps(1) !important;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tvoff-publish:hover {
  transform: scale(1.03) !important;
  box-shadow: inset 4px 4px 0 #ffffff, inset -4px -4px 0 #b3286a, 0 0 0 4px #ffd700, 0 0 38px rgba(255, 215, 0, 0.9) !important;
}

@keyframes pulseGemGlow {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(255, 92, 154, 0.85));
  }
}

/* 3. Subdomain Publish Modal Card */
.publish-subdomain-backdrop {
  z-index: 100005 !important;
}

.publish-subdomain-card {
  width: min(92vw, 450px);
  background: linear-gradient(175deg, #1b1322 0%, #0d0a13 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.55);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.88), 0 0 40px rgba(255, 92, 154, 0.28);
  padding: clamp(18px, 5vw, 26px);
  color: #fff;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  animation: modalScaleIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.publish-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.publish-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 4px 10px;
  border-radius: 9999px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.58rem;
  color: #ffd700;
  letter-spacing: 0.05em;
}

.btn-close-publish {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-close-publish:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.publish-card-title {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.85rem, 3.4vw, 1.05rem);
  line-height: 1.45;
  color: #ffd700;
  text-shadow: 2px 2px 0 #7a2244;
  margin-bottom: 8px;
}

.publish-card-title.success {
  color: #25d366;
  text-shadow: 2px 2px 0 #0d281e;
}

.publish-card-desc {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #cbd5e1;
  margin-bottom: 18px;
}

/* Subdomain Input Group */
.subdomain-input-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 92, 154, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.subdomain-input-box:focus-within {
  border-color: #ffd700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.25);
}

.subdomain-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ff9ec7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.subdomain-input-group {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #0f0a14;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 10px;
  overflow: hidden;
}

.subdomain-prefix {
  font-family: monospace;
  font-size: 0.8rem;
  color: #64748b;
  user-select: none;
}

.subdomain-text-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #ffd700;
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
  padding: 4px 2px;
}

.subdomain-text-input::placeholder {
  color: #475569;
}

.subdomain-suffix {
  font-family: monospace;
  font-size: 0.78rem;
  color: #94a3b8;
  user-select: none;
  font-weight: 600;
}

.subdomain-preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.72rem;
  color: #94a3b8;
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 6px #25d366;
}

.preview-url-text {
  font-family: monospace;
  color: #38bdf8;
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-badge-status {
  margin-left: auto;
  color: #25d366;
  font-weight: 700;
  font-size: 0.7rem;
}

/* Perks list */
.publish-perks-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.publish-perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #e2e8f0;
}

.publish-perk-item .perk-icon {
  color: #ffd700;
  font-weight: 900;
}

.publish-perk-item b {
  color: #fff;
}

/* Submit Action Button */
.btn-publish-submit {
  width: 100%;
  background: linear-gradient(135deg, #ffd700 0%, #ff7ab0 100%);
  border: 1px solid #ffd700;
  color: #1a0815;
  border-radius: 12px;
  padding: 13px 18px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
}

.btn-publish-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 215, 0, 0.7);
  background: linear-gradient(135deg, #ffe033 0%, #ff8fbe 100%);
}

.publish-guarantee-note {
  text-align: center;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 10px;
}

/* Success Card Elements */
.publish-success-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 8px;
  animation: bounceTada 0.6s ease;
}

@keyframes bounceTada {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.published-link-card {
  background: #0f0a14;
  border: 1.5px solid #25d366;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.published-url-display {
  font-family: monospace;
  font-size: 0.85rem;
  color: #25d366;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-published {
  background: #25d366;
  border: none;
  color: #0d281e;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-copy-published:hover {
  background: #34e77b;
  transform: scale(1.03);
}

.publish-actions-row {
  display: flex;
  width: 100%;
}

.btn-share-wa {
  display: none !important;
}

.btn-view-published {
  width: 100%;
  flex: 1;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #fff;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
}

.btn-view-published:hover {
  background: linear-gradient(135deg, #18c98e 0%, #08a374 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
}

.btn-view-published:active {
  transform: scale(0.98);
}

/* QR Love Pink Card in Published Success */
.qr-love-card {
  background: linear-gradient(160deg, rgba(255, 79, 135, 0.16) 0%, rgba(255, 158, 199, 0.06) 100%);
  border: 1.5px solid rgba(255, 79, 135, 0.45);
  box-shadow: 0 8px 24px rgba(255, 79, 135, 0.2);
  border-radius: 16px;
  padding: 14px;
  margin: 14px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-love-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 79, 135, 0.22);
  border: 1px solid rgba(255, 79, 135, 0.5);
  color: #ff9ec7;
  font-family: "Press Start 2P", monospace;
  font-size: 0.6rem;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.qr-love-frame {
  position: relative;
  background: #ffffff;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 79, 135, 0.35);
  display: inline-block;
}

.qr-love-img-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-love-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  image-rendering: -webkit-optimize-contrast;
}

.qr-love-heart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background: #ffffff;
  border: 2px solid #ff3366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 51, 102, 0.4);
}

.heart-pulse-icon {
  font-size: 1.15rem;
  line-height: 1;
  animation: heartPulse 1.2s infinite ease-in-out;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(0.92); }
  50% { transform: scale(1.18); }
}

.qr-love-hint {
  font-size: 0.73rem;
  color: #cbd5e1;
  margin: 10px 0 10px;
  line-height: 1.4;
}

.btn-download-qr {
  background: rgba(255, 79, 135, 0.2);
  border: 1px solid rgba(255, 79, 135, 0.5);
  color: #ffb8d2;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-download-qr:hover {
  background: rgba(255, 79, 135, 0.38);
  color: #ffffff;
  border-color: #ff4f87;
  transform: translateY(-1px);
}

/* Step Navigation & Price Pill */
.publish-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.btn-step-back {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-step-back:hover {
  color: #ff9ec7;
}

.price-pill-tag {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid #ffd700;
  color: #ffd700;
  font-family: "Press Start 2P", monospace;
  font-size: 0.65rem;
  padding: 5px 10px;
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
}

.payment-subdomain-pill,
.waiting-subdomain-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.78rem;
  color: #38bdf8;
  margin-bottom: 14px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 8px #ffd700;
}

.pill-dot.pulse {
  background: #25d366;
  box-shadow: 0 0 8px #25d366;
  animation: dotPulse 1.2s infinite ease-in-out;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* QRIS Card Layout */
.qris-card-container {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
}

.qris-image-render {
  width: 100%;
  max-width: 260px;
  max-height: 380px;
  object-fit: contain;
  height: auto;
  border-radius: 8px;
  display: block;
}

.qris-meta-info {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
  font-family: monospace;
  font-size: 0.75rem;
}

.qris-order-id {
  color: #64748b;
  font-weight: 700;
}

.qris-nominal-badge {
  color: #0f172a;
}

.qris-nominal-badge b {
  color: #ea1d2d;
  font-size: 0.85rem;
}

.qris-help-text {
  text-align: center;
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 14px;
}

/* Buyer WhatsApp Input Box */
.buyer-wa-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  text-align: left;
  transition: all 0.2s;
}

.buyer-wa-box:focus-within {
  border-color: #25d366;
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.25);
}

.buyer-wa-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.buyer-wa-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0f0a14;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
}

.buyer-wa-prefix {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #25d366;
  user-select: none;
}

.buyer-wa-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
}

.buyer-wa-input::placeholder {
  color: #64748b;
  font-weight: 400;
}

.buyer-wa-hint {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 8px;
  line-height: 1.4;
}

/* Psychological Buyer WhatsApp Step */
.buyer-wa-hero {
  text-align: center;
  margin: 6px 0 16px;
}

.wa-hero-icon-bubble {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(18, 140, 126, 0.4));
  border: 2px solid #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 24px rgba(37, 211, 102, 0.35), inset 0 0 10px rgba(255, 255, 255, 0.15);
  animation: waPulseGlow 2.4s infinite ease-in-out;
}

@keyframes waPulseGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 18px rgba(37, 211, 102, 0.3); }
  50% { transform: scale(1.06); box-shadow: 0 0 28px rgba(37, 211, 102, 0.6); }
}

/* Waiting Radar & Spinner */
.waiting-radar-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 12px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waiting-pulse-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #ffd700;
  animation: radarWave 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes radarWave {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.waiting-icon {
  font-size: 2.2rem;
  z-index: 2;
  animation: spinSlow 4s infinite linear;
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Verification Stepper */
.verification-stepper-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verif-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: #64748b;
  transition: all 0.2s;
}

.verif-step-item.active {
  color: #ffd700;
  font-weight: 700;
}

.verif-step-item.done {
  color: #25d366;
}

.verif-step-item .verif-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.verif-step-item.done .verif-icon {
  background: rgba(37, 211, 102, 0.2);
  color: #25d366;
}

.verif-step-item.active .verif-icon.spin {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  animation: spinSlow 1.5s infinite linear;
}

/* ══════════════════════════════════════════════════════════════════════════
   OCCASION PRESET SELECTOR & POPUP MODAL
   ══════════════════════════════════════════════════════════════════════════ */
.crt-occasion-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  position: relative;
  z-index: 25;
  width: 100%;
}

.crt-occasion-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.58rem;
  color: #ff4070;
  text-shadow: 0 0 6px rgba(255, 64, 112, 0.4);
  letter-spacing: 0.05em;
}

.crt-occasion-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.occasion-pill-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid #ff4070;
  color: #a21840;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s var(--ease-bounce);
  box-shadow: 0 2px 8px rgba(255, 64, 112, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  touch-action: manipulation;
}

.occasion-pill-btn:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: #ff205b;
  box-shadow: 0 4px 12px rgba(255, 64, 112, 0.25);
}

.occasion-pill-btn.active {
  background: #ff4070;
  color: #fff;
  border-color: #ff4070;
  box-shadow: 0 4px 14px rgba(255, 64, 112, 0.4);
}

.crt-picker-trigger {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #25d366;
  color: #06170d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  z-index: 35;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crt-picker-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
}

/* Occasion Modal Popup */
.occasion-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100020;
}

.occasion-modal-card {
  width: min(94vw, 420px);
  background: linear-gradient(175deg, #1b1322 0%, #0d0912 100%);
  border: 1.5px solid rgba(255, 64, 112, 0.45);
  border-radius: 20px;
  padding: 18px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 64, 112, 0.25);
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.occasion-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.occasion-modal-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.74rem;
  color: #ffd45e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.occasion-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.occasion-modal-subtitle {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.35;
  margin: 0;
}

.occasion-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.occasion-opt-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  color: #fff;
}

.occasion-opt-card:hover {
  background: rgba(255, 64, 112, 0.14);
  border-color: #ff4070;
  transform: translateX(3px);
}

.occasion-opt-card.active {
  background: rgba(255, 64, 112, 0.22);
  border-color: #ff4070;
  box-shadow: 0 0 16px rgba(255, 64, 112, 0.25);
}

.occ-icon-badge {
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.occ-opt-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.occ-opt-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffd45e;
}

.occ-opt-desc {
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.25;
}

.occ-opt-preview {
  font-size: 0.62rem;
  color: #ff85a2;
  font-style: italic;
  margin-top: 2px;
}

.occ-opt-arrow {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 700;
}



/* ==========================================================================
   RECIPIENT NAME QUICK AUTO-SYNC CARD (SLIDE 1)
   ========================================================================== */
.recipient-sync-card {
  margin: 0 auto 10px auto;
  width: 100%;
  max-width: 340px;
  background: rgba(18, 14, 28, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 79, 135, 0.45);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 18px rgba(255, 79, 135, 0.2);
  position: relative;
  z-index: 25;
  pointer-events: auto !important;
  animation: recipientCardPulse 3s infinite ease-in-out;
}

@keyframes recipientCardPulse {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 16px rgba(255, 79, 135, 0.18);
    border-color: rgba(255, 79, 135, 0.45);
  }
  50% {
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.65), 0 0 24px rgba(255, 79, 135, 0.35);
    border-color: rgba(255, 120, 165, 0.7);
  }
}

.recipient-sync-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.recipient-sync-title-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.recipient-sync-icon {
  font-size: 0.95rem;
}

.recipient-sync-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff75a0;
}

.recipient-sync-badge {
  font-size: 0.65rem;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 2px 7px;
  border-radius: 9999px;
  font-weight: 700;
}

.recipient-sync-input-row {
  display: flex;
  width: 100%;
  align-items: center;
}

.recipient-sync-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  border: 1.5px solid rgba(255, 79, 135, 0.45);
  border-radius: 12px;
  padding: 3px 8px 3px 12px;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.recipient-sync-input-wrapper:focus-within {
  border-color: #ff4f87;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 14px rgba(255, 79, 135, 0.4), inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

.recipient-sync-input-icon {
  font-size: 1rem;
  margin-right: 6px;
  opacity: 0.85;
  user-select: none;
}

.recipient-sync-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 4px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
  font-family: inherit;
  min-width: 0;
}

.recipient-sync-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.recipient-sync-live-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  pointer-events: none;
  transition: all 0.25s ease;
  user-select: none;
}

.recipient-sync-live-pill.synced {
  background: #22c55e;
  color: #ffffff;
  border-color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.65);
  transform: scale(1.04);
}

.recipient-sync-desc {
  margin: 6px 0 0 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.35;
}

.recipient-sync-desc b {
  color: #ffd45e;
}

/* ==========================================================================
   FINAL MOBILE POLISH & ANIMATION UPGRADES
   ========================================================================== */

/* Floating button entry animation */
.btn-floating-playground {
  animation: floatBtnEntry 0.6s var(--ease-bounce) both;
}

@keyframes floatBtnEntry {
  from { opacity: 0; transform: translateY(20px) scale(0.85); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.btn-floating-playground:active {
  transform: scale(0.94) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 12px rgba(37, 211, 102, 0.3);
}

/* Slide 7 scroll padding */
#canvasSlide7 {
  padding-bottom: 100px !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

.slide5-finale-container {
  padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
}

/* Photo upload overlay visible on mobile */
@media (hover: none) {
  .polaroid-upload-overlay,
  .mini-polaroid-overlay {
    opacity: 0.75 !important;
    background: rgba(0, 0, 0, 0.45) !important;
  }
  .danakaget-upload-overlay {
    opacity: 0.8 !important;
  }
}

/* Better retro letter card touch interaction */
.letter-textarea-input {
  min-height: 66px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.retro-letter-card {
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s;
}

.retro-letter-card:focus-within {
  transform: scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(37, 211, 102, 0.3);
}

/* Mobile-specific dimension tweaks */
@media (max-width: 480px) {
  .cassette-icon { animation-duration: 12s; }
  .slide1-theme-selector { margin-top: 16px; }
  .hanging-frame-mockup { max-width: 300px; }
  .camera-back-view { width: 300px; filter: drop-shadow(0 16px 28px rgba(0,0,0,0.5)); }
  .camera-body-slanted { width: 280px; }
  .camera-crt-monitor { width: 210px; height: 180px; }
  .camera-lower-shelf { width: 294px; }
  .wooden-story-card { max-width: 280px; }
  .finale-bottom-grid { grid-template-columns: 1fr; gap: 8px; }
  .recipient-sync-card { max-width: 310px; }
}

/* Story segment bar active fill animation */
.story-segment-bar.active::after {
  animation: segmentFill 0.5s var(--ease-smooth) forwards;
}

@keyframes segmentFill {
  from { width: 0; }
  to { width: 100%; }
}

/* Editable field hint badge bounce */
.editable-field-wrap::before {
  transition: all 0.25s var(--ease-bounce);
}

/* Haptic-style active press states */
.slide1-theme-btn:active,
.occasion-pill-btn:active,
.moment-tab-btn:active,
.btn-open-music-search:active,
.btn-finish-modal:active,
.btn-publish-submit:active,
.btn-sim-edit:active,
.btn-sim-publish:active,
.btn-sim-reset:active {
  transform: scale(0.93) !important;
}

/* Accessibility: Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   SLIDE 7 STEPPED PROGRESSIVE REVEAL FLOW (Foto -> Ucapan -> Lagu)
   ========================================================================== */
.finale-stepper-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  gap: 12px;
  position: relative;
}

.finale-top-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.finale-stepper-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 8px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.finale-step-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.52rem;
  padding: 4px 8px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  touch-action: manipulation;
}

.finale-step-pill:active {
  transform: scale(0.92);
}

.finale-step-pill.active {
  background: #ffd45e;
  color: #110915;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(255, 212, 94, 0.45);
}

.finale-step-pill.completed {
  color: #25d366;
}

.finale-step-pill .pill-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.5rem;
}

.finale-step-pill.active .pill-dot {
  background: #110915;
  color: #ffd45e;
}

.finale-step-pill.completed .pill-dot {
  background: #25d366;
  color: #fff;
}

.finale-pill-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  font-weight: bold;
  user-select: none;
}

/* Stepper Viewport & Panes */
.finale-stepper-viewport {
  width: 100%;
  position: relative;
  min-height: 380px;
}

.finale-step-pane {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.finale-step-pane.active {
  display: flex !important;
}

.finale-pane-header {
  text-align: center;
  width: 100%;
}

.finale-pane-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.62rem;
  color: #ffd45e;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.finale-pane-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Big Polaroid Cards Showcase (Pane 1) - ENLARGED HERO */
.finale-stepper-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 390px;
  margin: auto 0;
  gap: 12px;
  position: relative;
}

.finale-polaroids-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 16px 0 24px 0;
  perspective: 900px;
}

.big-polaroid-card {
  background: #ffffff;
  padding: 8px 8px 18px 8px;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  position: relative;
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.3s var(--ease-smooth);
  text-align: center;
  touch-action: manipulation;
}

.big-polaroid-card:active {
  transform: scale(0.93) !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6) !important;
}

.big-polaroid-card:hover {
  transform: translateY(-16px) scale(1.12) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.75) !important;
  z-index: 10 !important;
}

.big-polaroid-card.p-left {
  width: 122px;
  transform: rotate(-8deg) translateX(12px);
  z-index: 2;
}

.big-polaroid-card.p-center {
  width: 154px;
  transform: translateY(-12px) scale(1.08);
  z-index: 4;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.68);
  border: 2px solid rgba(255, 212, 94, 0.85);
}

.big-polaroid-card.p-right {
  width: 122px;
  transform: rotate(8deg) translateX(-12px);
  z-index: 2;
}

.big-polaroid-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2e1832;
  border: 2px solid #fff;
  color: #ffd45e;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.58rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.45);
  z-index: 5;
  transition: all 0.25s;
}

.big-polaroid-badge.filled {
  background: #25d366 !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.7) !important;
}

.big-polaroid-badge.hero-badge {
  background: #ffd45e;
  color: #110915;
  width: 30px;
  height: 30px;
  font-size: 0.52rem;
  font-weight: bold;
}

.big-polaroid-photo {
  width: 100%;
  height: 180px;
  background: #2a1636;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.big-polaroid-card.p-center .big-polaroid-photo {
  height: 215px;
}

.big-polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.big-polaroid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 15, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  opacity: 0.92;
  transition: opacity 0.25s ease, background 0.25s ease;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  pointer-events: none;
}

.big-polaroid-card:hover .big-polaroid-overlay,
.big-polaroid-card.drag-over .big-polaroid-overlay {
  opacity: 1;
  background: rgba(10, 6, 15, 0.58);
}

.big-polaroid-dashed-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 90%;
  max-width: 130px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px dashed rgba(255, 60, 120, 0.85);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.big-polaroid-card:hover .big-polaroid-dashed-chip,
.big-polaroid-card.drag-over .big-polaroid-dashed-chip {
  transform: scale(1.05);
  border-color: #ff2b70;
  background: rgba(255, 255, 255, 0.68);
}

.big-polaroid-card.drag-over .big-polaroid-dashed-chip {
  border-style: solid;
  border-color: #00ff88;
}

.chip-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #2b1320;
  line-height: 1.2;
}

.chip-sub {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.56rem;
  font-weight: 500;
  color: #7a5568;
  line-height: 1.1;
}

.big-polaroid-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.58rem;
  color: #444;
  margin-top: 8px;
  display: block;
  font-weight: bold;
}

.big-polaroid-label.hero-label {
  color: #8b5e3c;
  font-size: 0.62rem;
}

/* Stepper Pane Actions */
.finale-pane-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  margin-top: 4px;
}

.finale-pane-actions.split {
  justify-content: space-between;
}

.btn-finale-action-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s;
  touch-action: manipulation;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-finale-action-primary:active {
  transform: scale(0.94) !important;
  box-shadow: 0 3px 8px rgba(37, 211, 102, 0.4) !important;
}

.btn-finale-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.56rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  touch-action: manipulation;
}

.btn-finale-action-secondary:active {
  transform: scale(0.94) !important;
  background: rgba(255, 255, 255, 0.2);
}

.finale-step-toast {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.95), rgba(18, 140, 126, 0.95));
  color: #ffffff;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  padding: 8px 16px;
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: floatBtnEntry 0.35s var(--ease-bounce) forwards;
  margin: 4px 0;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .big-polaroid-card.p-left {
    width: 114px;
    transform: rotate(-7deg) translateX(10px);
  }
  .big-polaroid-card.p-center {
    width: 142px;
    transform: translateY(-10px) scale(1.06);
  }
  .big-polaroid-card.p-right {
    width: 114px;
    transform: rotate(7deg) translateX(-10px);
  }
  .big-polaroid-photo {
    height: 170px;
  }
  .big-polaroid-card.p-center .big-polaroid-photo {
    height: 202px;
  }
  .btn-finale-action-primary {
    font-size: 0.58rem;
    padding: 13px 16px;
  }
  .btn-finale-action-secondary {
    font-size: 0.54rem;
    padding: 12px 14px;
  }
  /* Mobile music modal item optimization */
  .music-results-container {
    padding: 0 8px 12px;
  }
  .music-result-item {
    gap: 8px;
    padding: 7px 8px;
  }
  .music-result-cover {
    width: 42px;
    height: 42px;
    border-radius: 8px;
  }
  .music-result-title {
    font-size: 0.82rem;
    line-height: 1.22;
  }
  .music-result-artist {
    max-width: 105px;
    font-size: 0.68rem;
  }
  .btn-music-preview {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }
  .btn-music-select {
    padding: 5px 9px;
    min-width: 52px;
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .music-result-item {
    gap: 6px;
    padding: 6px 6px;
  }
  .music-result-cover {
    width: 38px;
    height: 38px;
  }
  .music-result-title {
    font-size: 0.78rem;
  }
  .music-result-artist {
    max-width: 85px;
    font-size: 0.64rem;
  }
  .btn-music-preview {
    width: 28px;
    height: 28px;
  }
  .btn-music-select {
    padding: 4px 7px;
    min-width: 46px;
    font-size: 0.65rem;
  }
  .big-polaroid-card.p-left {
    width: 104px;
    transform: rotate(-6deg) translateX(8px);
  }
  .big-polaroid-card.p-center {
    width: 130px;
    transform: translateY(-8px) scale(1.04);
  }
  .big-polaroid-card.p-right {
    width: 104px;
    transform: rotate(6deg) translateX(-8px);
  }
  .big-polaroid-photo {
    height: 155px;
  }
  .big-polaroid-card.p-center .big-polaroid-photo {
    height: 182px;
  }
}

/* Panoramic background pan for Slides 3-6 (starts from right corner, pans left) */
#canvasSlide3 {
  background: #ffb8c6 url('./images/background.png') 100% center / cover no-repeat !important;
  transition: background-position 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#canvasSlide4 {
  background: #ffb8c6 url('./images/background.png') 70% center / cover no-repeat !important;
  transition: background-position 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#canvasSlide5 {
  background: #ffb8c6 url('./images/background.png') 40% center / cover no-repeat !important;
  transition: background-position 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#canvasSlide6 {
  background: #ffb8c6 url('./images/background.png') 10% center / cover no-repeat !important;
  transition: background-position 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#canvasSlide7 {
  background: #1a0818 url('./images/background.png') 10% center / cover no-repeat !important;
}
.btn-slide3-lanjut {
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease !important;
}
.btn-slide3-lanjut:active {
  transform: translate(2px, 2px) !important;
}
