/**
 * Formulir VIP - Universal Image Lightbox (Apple-Style Glassmorphism)
 */
.vip-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: rgba(10, 15, 29, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s;
  box-sizing: border-box;
  overflow: hidden;
}

.vip-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Header bar */
.vip-lightbox-header {
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.4);
  color: #fff;
  z-index: 2;
  box-sizing: border-box;
}

.vip-lightbox-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.vip-lightbox-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vip-lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 450px;
}

.vip-lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-lightbox-btn-group {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 2px 4px;
}

.vip-lightbox-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}

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

.vip-lightbox-btn:active {
  transform: scale(0.96);
}

.vip-lightbox-btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.vip-lightbox-btn-download {
  background: #fff;
  color: #0f172a !important;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 8px 16px;
  gap: 6px;
}
.vip-lightbox-btn-download:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.vip-lightbox-btn-close {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.vip-lightbox-btn-close:hover {
  background: rgba(239, 68, 68, 0.5);
  color: #fff;
}

/* Main stage */
.vip-lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: auto;
  padding: 20px;
  user-select: none;
  touch-action: pan-x pan-y;
}

.vip-lightbox-stage::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.vip-lightbox-stage::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.vip-lightbox-container {
  display: inline-block;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}

.vip-lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);
  cursor: zoom-in;
  display: block;
}

.vip-lightbox-img.zoomed {
  cursor: zoom-out;
}

/* Footer info */
.vip-lightbox-footer {
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.3);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  z-index: 2;
  box-sizing: border-box;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .vip-lightbox-header {
    height: 56px;
    padding: 0 12px;
  }
  .vip-lightbox-caption {
    max-width: 120px;
    font-size: 0.75rem;
  }
  .vip-lightbox-footer {
    display: none;
  }
  .vip-lightbox-stage {
    padding: 10px;
  }
  .vip-lightbox-img {
    max-width: 95vw;
    max-height: 85vh;
  }
  .vip-lightbox-btn-download span {
    display: none;
  }
}
