* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html:not(.admin-html), body:not(.admin-body) {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #000000;
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html.admin-html, body.admin-body {
  width: 100% !important;
  height: auto !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  background: #0b0718 !important;
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.app-container {
  width: 100vw;
  height: 100dvh;
  position: fixed;
  inset: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* CARD CONTAINER (EDGE TO EDGE FULLSCREEN) */
.photobooth-card {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000000;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* FLOATING TOP CAMERA CONTROL BAR */
.camera-top-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.couple-badge {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.aspect-pill-bar {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.aspect-pill {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aspect-pill.active {
  background: #fbbf24;
  color: #0f172a;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.btn-icon-top {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fbbf24;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-top:active {
  transform: scale(0.92);
}

/* NATIVE MODE SELECTOR BAR (FOTO | VIDEO) */
.camera-mode-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 4px 0;
}

.mode-pill {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.mode-pill.active {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
  transform: scale(1.1);
}

.mode-pill.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
}

/* NATIVE CIRCULAR SHUTTER BUTTON */
.shutter-control-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0;
}

.shutter-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: transparent;
  border: 4px solid #ffffff;
  padding: 4px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shutter-btn:active {
  transform: scale(0.92);
}

.shutter-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: all 0.25s ease;
  display: block;
}

/* Mode Photo Shutter */
.shutter-btn.mode-photo .shutter-inner {
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

/* Mode Video Shutter */
.shutter-btn.mode-video .shutter-inner {
  background: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.9);
}

/* Recording Active Shutter */
.shutter-btn.recording .shutter-inner {
  background: #ef4444;
  border-radius: 12px;
  width: 30px;
  height: 30px;
  animation: pulseRecording 1.5s infinite;
}

@keyframes pulseRecording {
  0% { transform: scale(1); box-shadow: 0 0 10px #ef4444; }
  50% { transform: scale(1.15); box-shadow: 0 0 22px #ef4444; }
  100% { transform: scale(1); box-shadow: 0 0 10px #ef4444; }
}

/* STRICT PORTRAIT VIEWPORT & BEAUTY FILTERS */
.media-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: none;
  z-index: 1;
}

.viewfinder-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100dvh;
  aspect-ratio: 3 / 4;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

video, img#photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #0f172a;
  display: block;
  transition: filter 0.3s ease;
}

/* BEAUTY / CAPCUT FILTER CSS EFFECTS */
.filter-beauty {
  filter: brightness(1.12) contrast(1.04) saturate(1.08) sepia(0.06);
}

.filter-bright {
  filter: brightness(1.22) contrast(1.08) saturate(1.15);
}

.filter-warm {
  filter: brightness(1.08) contrast(1.05) saturate(1.2) sepia(0.25) hue-rotate(-10deg);
}

.filter-none {
  filter: none;
}

/* FRAMES OVERLAY */
.frame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 10;
  transition: all 0.3s ease;
  padding: 0; /* Remove default padding for absolute offset consistency */
}

/* GENERAL FRAME DECORATIONS & BADGES */
.frame-badge-top {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fbbf24;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  white-space: nowrap;
}

/* ----------------------------------------------------
   DYNAMIC CLEAN FRAME SYSTEM STYLING
---------------------------------------------------- */
.frame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 10;
  transition: all 0.3s ease;
}

/* 0. HOLOGRAIL ROYAL FLORAL (LUXURY VIOLET & GOLD FLORAL FRAME) */
.frame-holograil-purple {
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: inset 0 0 30px rgba(76, 29, 149, 0.35);
  overflow: hidden;
}

.frame-holograil-purple .frame-floral-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55px;
  z-index: 12;
}

.frame-holograil-purple .frame-badge-top {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fde047;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  z-index: 15;
  white-space: nowrap;
}

.frame-holograil-purple .frame-bottom-card {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 12px 10px;
  background: linear-gradient(180deg, rgba(15, 11, 35, 0.4) 0%, rgba(15, 11, 35, 0.92) 25%, rgba(10, 6, 25, 0.98) 100%);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(251, 191, 36, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1px;
  z-index: 14;
}

.frame-holograil-purple .frame-text-top {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fbbf24;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.frame-holograil-purple .frame-couple-script {
  font-family: 'Great Vibes', 'Alex Brush', cursive;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 400;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, #fef08a 50%, #e9d5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
  margin: 1px 0;
}

.frame-holograil-purple .frame-text-bottom {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #e2e8f0;
  text-transform: uppercase;
}

.frame-holograil-purple .frame-floral-bl {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 60px;
  z-index: 15;
}

.frame-holograil-purple .frame-floral-br {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  z-index: 15;
}

.floral-corner-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 1. LUXE GOLD ARCH */
.frame-arch-gold {
  border-top: 56px solid #fcfaf7;
  border-left: 14px solid #fcfaf7;
  border-right: 14px solid #fcfaf7;
  border-bottom: 50px solid #fcfaf7;
  box-shadow: inset 0 0 0 2px #d97706, inset 0 0 0 4px rgba(253, 224, 71, 0.4), 0 10px 30px rgba(0,0,0,0.5);
}

.frame-arch-gold .arch-monogram-emblem {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde047 0%, #d97706 100%);
  color: #1e1b4b;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.frame-arch-gold .arch-top-label {
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #78350f;
}

.frame-arch-gold .arch-bottom-banner {
  position: absolute;
  bottom: -44px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.frame-arch-gold .arch-couple-name {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 800;
  color: #1e1b4b;
}

.frame-arch-gold .arch-date {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #78350f;
  letter-spacing: 1px;
}

/* 2. EMERALD & GOLD BOTANICAL */
.frame-botanical-gold {
  border-top: 50px solid #064e3b;
  border-left: 16px solid #064e3b;
  border-right: 16px solid #064e3b;
  border-bottom: 48px solid #064e3b;
  box-shadow: inset 0 0 0 2px #f59e0b, 0 10px 30px rgba(0,0,0,0.6);
}

.frame-botanical-gold .botanical-top-pill {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(254, 243, 199, 0.15);
  border: 1px solid #f59e0b;
  padding: 2px 14px;
  border-radius: 999px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: #fef3c7;
  white-space: nowrap;
}

.frame-botanical-gold .botanical-leaf-tl {
  position: absolute;
  top: -46px;
  left: 4px;
  font-size: 16px;
}

.frame-botanical-gold .botanical-leaf-tr {
  position: absolute;
  top: -46px;
  right: 4px;
  font-size: 16px;
}

.frame-botanical-gold .botanical-bottom-card {
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.frame-botanical-gold .botanical-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fbbf24;
}

.frame-botanical-gold .botanical-date {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #ecfdf5;
}

/* 3. GLASSMORPHISM PEARL AURORA (HOLOGRAPHIC - NEW OUT-OF-THE-BOX) */
.frame-holographic {
  border: 4px solid transparent;
  border-image: linear-gradient(135deg, #a855f7, #ec4899, #3b82f6, #06b6d4, #f59e0b) 1;
  box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.4), 0 0 25px rgba(236, 72, 153, 0.3);
}

.frame-holographic .holo-header-glass {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.frame-holographic .holo-sparkle {
  font-size: 10px;
}

.frame-holographic .holo-title {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff, #e9d5ff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.frame-holographic .holo-footer-glass {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(192, 132, 252, 0.4);
  padding: 8px 12px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.frame-holographic .holo-couple {
  font-family: 'Great Vibes', 'Alex Brush', cursive;
  font-size: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #fbcfe8 50%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.frame-holographic .holo-subtext {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #e2e8f0;
}

/* 4. GOLDEN ROMANCE RIBBON (ROSE GOLD - NEW OUT-OF-THE-BOX) */
.frame-golden-romance {
  border-top: 50px solid #2d1a29;
  border-left: 14px solid #2d1a29;
  border-right: 14px solid #2d1a29;
  border-bottom: 50px solid #2d1a29;
  box-shadow: inset 0 0 0 2px #f43f5e, inset 0 0 0 4px #fbbf24, 0 10px 30px rgba(0,0,0,0.6);
}

.frame-golden-romance .romance-crest-top {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  border: 1px solid #fde047;
  padding: 3px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.frame-golden-romance .romance-ribbon-text {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  white-space: nowrap;
}

.frame-golden-romance .romance-bottom-card {
  position: absolute;
  bottom: -44px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.frame-golden-romance .romance-couple {
  font-family: 'Great Vibes', 'Alex Brush', cursive;
  font-size: 24px;
  color: #fecdd3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.frame-golden-romance .romance-details {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #fde047;
  letter-spacing: 0.5px;
}

.frame-golden-romance .romance-petal-bl {
  position: absolute;
  bottom: -46px;
  left: 4px;
  font-size: 16px;
}

.frame-golden-romance .romance-petal-br {
  position: absolute;
  bottom: -46px;
  right: 4px;
  font-size: 16px;
}

/* 5. THE WEDDING TIMES (NEWSPAPER) */
.frame-newspaper {
  border-top: 52px solid #f4f1ea;
  border-left: 12px solid #f4f1ea;
  border-right: 12px solid #f4f1ea;
  border-bottom: 44px solid #f4f1ea;
  box-shadow: inset 0 0 0 1px #1e293b, 0 10px 30px rgba(0,0,0,0.5);
}

.frame-newspaper .news-header {
  position: absolute;
  top: -46px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.frame-newspaper .news-vol {
  font-size: 8px;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: 1.5px;
  border-bottom: 1px double #1e293b;
  padding-bottom: 1px;
}

.frame-newspaper .news-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 1px;
}

.frame-newspaper .news-footer {
  position: absolute;
  bottom: -34px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #334155;
  border-top: 1px solid #94a3b8;
  padding-top: 2px;
}

/* 6. POLAROID WASHI TAPE */
.frame-polaroid {
  border-top: 18px solid #fdfbf7;
  border-left: 14px solid #fdfbf7;
  border-right: 14px solid #fdfbf7;
  border-bottom: 50px solid #fdfbf7;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.15), 0 10px 25px rgba(0,0,0,0.4);
}

.frame-polaroid .washi-tape {
  position: absolute;
  width: 50px;
  height: 14px;
  background: rgba(251, 191, 36, 0.85);
  border: 1px dashed #d97706;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.frame-polaroid .tape-tl {
  top: -12px;
  left: 10px;
  transform: rotate(-10deg);
}

.frame-polaroid .tape-tr {
  top: -12px;
  right: 10px;
  transform: rotate(10deg);
}

.frame-polaroid .polaroid-footer {
  position: absolute;
  bottom: -38px;
  left: 0;
  width: 100%;
  text-align: center;
}

.frame-polaroid .polaroid-caption {
  font-family: 'Great Vibes', 'Alex Brush', cursive;
  font-size: 22px;
  color: #334155;
}

/* 7. Y2K CYBER PINK GLOW */
.frame-y2k {
  border: 14px solid #ec4899;
  box-shadow: 0 0 20px #ec4899, inset 0 0 15px #ec4899;
}

.frame-y2k .y2k-badge-top {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 800;
  color: #f472b6;
  text-shadow: 0 0 10px #ec4899;
  white-space: nowrap;
}

.frame-y2k .y2k-badge-bottom {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: #fbcfe8;
  text-shadow: 0 0 10px #ec4899;
  white-space: nowrap;
}

.frame-y2k .y2k-heart-tl { position: absolute; top: 4px; left: 4px; font-size: 14px; }
.frame-y2k .y2k-heart-tr { position: absolute; top: 4px; right: 4px; font-size: 14px; }

/* 8. PHOTOBOOTH FILM STRIP */
.frame-minimal-strip {
  border-top: 44px solid #09090b;
  border-left: 18px solid #09090b;
  border-right: 18px solid #09090b;
  border-bottom: 44px solid #09090b;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.frame-minimal-strip .strip-header {
  position: absolute;
  top: -32px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: #f4f4f5;
  letter-spacing: 2px;
}

.frame-minimal-strip .strip-footer {
  position: absolute;
  bottom: -32px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  color: #a1a1aa;
  letter-spacing: 1.5px;
}

/* VIEWFINDER WRAPPER SYSTEM */
.viewfinder-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* FLOATING FLIP CAMERA BUTTON (TOP RIGHT OF FRAME VIEWPORT) */
.btn-flip-floating {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: auto;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  z-index: 25;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.btn-flip-floating:active {
  transform: scale(0.92);
}

/* TIKTOK / NATIVE CAMERA HORIZONTAL SWIPE BAR STYLES */
.selectors-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.swipe-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.swipe-label {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 4px;
}

/* TOP-LEFT HAMBURGER MENU BUTTON */
.btn-hamburger {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.btn-hamburger:active {
  transform: scale(0.9);
}

/* BOTTOM FLOATING CAMERA CONTROLS OVERLAY (FLOATING INSIDE VIEWPORT) */
.camera-controls-overlay {
  position: absolute;
  bottom: 24px;
  left: 0;
  width: 100%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  pointer-events: none;
}

.camera-controls-overlay > * {
  pointer-events: auto;
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  transition: opacity 0.3s ease;
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.96);
  border-right: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
}

.sidebar-drawer.hidden {
  transform: translateX(-100%);
  pointer-events: none;
  display: flex !important;
}

.sidebar-group {
  margin-bottom: 20px;
}

.sidebar-group-title {
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 10px;
  padding-left: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-host-link {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  text-align: center;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: #fbbf24;
}

.close-sidebar-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-sidebar-btn:hover {
  background: #ef4444;
}

.sidebar-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.sidebar-pill-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-pill {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-pill:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
}

.sidebar-pill.active {
  color: #0f172a;
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  border-color: #fde047;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  user-select: none;
  transition: all 0.25s ease;
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
}

.accordion-header:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.accordion-arrow {
  font-size: 12px;
  color: #fbbf24;
  transition: transform 0.3s ease;
  display: inline-block;
  margin-left: 8px;
}

.swipe-section.collapsed .accordion-arrow {
  transform: rotate(-90deg);
}

.accordion-content {
  max-height: 200px;
  opacity: 1;
  overflow-x: auto;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.25s ease;
  margin-top: 4px;
}

.swipe-section.collapsed .accordion-content {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border: none;
  pointer-events: none;
}

.tiktok-swipe-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  scrollbar-width: none; /* Firefox */
}

.tiktok-swipe-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.swipe-pill {
  flex: 0 0 auto;
  scroll-snap-align: center;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.swipe-pill:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.15);
}

.swipe-pill.active {
  color: #0f172a;
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  border-color: #fde047;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

/* COUNTDOWN & TIMER BADGES */
.countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  font-weight: 800;
  color: #fbbf24;
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.8);
  z-index: 20;
  animation: pop 0.8s infinite;
}

@keyframes pop {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.recording-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(225, 29, 72, 0.9);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 20;
}

.rec-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* SELECTORS FOR FILTERS & FRAMES */
.filter-selector, .frame-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

.filter-options, .frame-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.filter-btn, .frame-btn {
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.filter-btn.active, .frame-btn.active {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.6);
}

.guest-input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
  gap: 4px;
}

.guest-input-group input {
  width: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  text-align: center;
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.guest-input-group input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.quota-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fbbf24;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* BUTTONS */
.control-actions, .result-actions {
  display: flex;
  gap: 8px;
}

.btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn:active { transform: scale(0.97); }

.btn-photo { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }
.btn-video { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.btn-danger { background: #e11d48; color: #fff; }
.btn-danger-outline { background: rgba(225, 29, 72, 0.15); color: #fda4af; border: 1px solid rgba(225, 29, 72, 0.4); }
.btn-secondary { background: rgba(255, 255, 255, 0.15); color: #fff; }
.btn-success { background: #10b981; color: #fff; }
.btn-primary { background: linear-gradient(135deg, #ec4899, #be185d); color: #fff; }

.app-footer { text-align: center; margin-top: 4px; }
.btn-link { background: none; border: none; color: #94a3b8; font-size: 11px; cursor: pointer; text-decoration: underline; }

/* MODAL */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-content {
  background: #1e1b4b;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header h2 { font-size: 15px; font-weight: 700; color: #fbbf24; }
.close-btn { background: none; border: none; color: #94a3b8; font-size: 24px; cursor: pointer; }

.password-group {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.password-group input {
  flex: 1;
  background: #0f0c20;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px;
  border-radius: 12px;
}

.error-msg { color: #f43f5e; font-size: 12px; margin-top: 8px; }

/* GALLERY LIST */
.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.guest-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guest-meta { font-size: 11px; font-weight: 700; color: #fbbf24; display: flex; justify-content: space-between; }
.guest-media { max-width: 100%; max-height: 200px; border-radius: 8px; object-fit: contain; }

.hidden { display: none !important; }

/* NATIVE INTERSECTION OBSERVER LAZY LOADING STYLES */
.lazy-media {
  opacity: 0.15;
  transition: opacity 0.4s ease;
  background: rgba(30, 27, 75, 0.6);
}

.lazy-media.lazy-loaded {
  opacity: 1;
}

/* DEDICATED ADMIN DASHBOARD (TRADITIONAL NUSANTARA & MODERN GOLD THEME) */
body.admin-body {
  background: radial-gradient(circle at top, #1e1b4b 0%, #0b0718 100%);
  min-height: 100vh;
  display: block;
  padding: 24px 16px;
}

.admin-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-header {
  text-align: center;
  background: rgba(30, 27, 75, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  position: relative;
}

.btn-back-camera {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.btn-back-camera:hover {
  background: #f59e0b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

@media (max-width: 640px) {
  .btn-back-camera {
    position: static;
    margin-bottom: 12px;
    display: inline-block;
  }
}

.header-decor {
  font-size: 18px;
  margin-bottom: 4px;
}

.header-border {
  height: 2px;
  background: linear-gradient(90deg, transparent, #fbbf24, transparent);
  margin-top: 16px;
}

.auth-card {
  background: rgba(30, 27, 75, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 24px;
  padding: 32px 24px;
  max-width: 440px;
  margin: 20px auto;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.auth-header .lock-icon { font-size: 36px; display: block; margin-bottom: 8px; }
.auth-header h2 { font-family: 'Cinzel', serif; font-size: 18px; color: #fbbf24; margin-bottom: 6px; }
.auth-header p { font-size: 12px; color: #cbd5e1; }

.auth-form {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.auth-form input {
  flex: 1;
  background: #0f0c20;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
}

/* DASHBOARD STATS & TABS */
.dashboard-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-item {
  background: rgba(30, 27, 75, 0.7);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 18px;
  padding: 14px;
  text-align: center;
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: #fbbf24;
  display: block;
}

.stat-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.filter-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.search-box {
  width: 100%;
}

.search-box input {
  width: 100%;
  background: rgba(30, 27, 75, 0.7);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  outline: none;
}
.search-box input:focus { border-color: #fbbf24; }

.filter-controls {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 4px 4px 10px 4px;
  width: 100%;
  max-width: 100%;
  touch-action: pan-x;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.filter-controls::-webkit-scrollbar {
  display: none; /* WebKit */
}

.tab-btn, .filter-controls .btn {
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  cursor: pointer;
}

.tab-btn {
  background: rgba(30, 27, 75, 0.7);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-color: #fbbf24;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* FOLDER CATEGORY GRID STYLES */
.folder-view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.folder-card {
  background: rgba(30, 27, 75, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.folder-card:hover {
  transform: translateY(-4px);
  background: rgba(45, 38, 110, 0.95);
  border-color: #fbbf24;
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.3);
}

.folder-icon {
  font-size: 38px;
  background: rgba(251, 191, 36, 0.15);
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.folder-info {
  flex: 1;
}

.folder-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
}

.folder-info span {
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
}

.folder-arrow {
  font-size: 24px;
  color: #fbbf24;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.folder-card:hover .folder-arrow {
  transform: translateX(4px);
}

/* GALLERY GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.gallery-card {
  background: rgba(30, 27, 75, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: #fbbf24;
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: #000;
}

.card-media-wrapper img, .card-media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  z-index: 5;
}
.type-badge.photo { background: rgba(59, 130, 246, 0.85); }
.type-badge.video { background: rgba(225, 29, 72, 0.85); }

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guest-title { font-size: 14px; font-weight: 700; color: #fbbf24; }
.guest-time { font-size: 11px; color: #94a3b8; }

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  margin-top: 6px;
  transition: all 0.2s ease;
}

.btn-download:hover {
  background: #10b981;
  border-color: #10b981;
}

/* PAGINATION BAR */
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  margin-top: 24px;
  background: rgba(30, 27, 75, 0.5);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 16px;
}

.btn-page {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-page:hover:not(:disabled) { background: #f59e0b; color: #fff; }
.btn-page:disabled { opacity: 0.3; cursor: not-allowed; }
.page-indicator { font-size: 14px; font-weight: 700; color: #fff; }

/* LIGHTBOX SLIDESHOW MODAL */
.lightbox-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 3/4;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img, .lightbox-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  font-size: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2010;
}

.nav-slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 24px;
  font-weight: bold;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2010;
  transition: all 0.2s ease;
}
.nav-slide:hover { background: #f59e0b; color: #fff; }
.nav-slide.prev { left: 20px; }
.nav-slide.next { right: 20px; }

/* CUSTOM PNG FRAME OVERLAY IMAGE */
.frame-overlay-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 12;
}

/* SETTINGS SECTION STYLES */
.settings-card {
  background: rgba(30, 27, 75, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-title { font-family: 'Cinzel', serif; font-size: 18px; color: #fbbf24; }
.settings-sub { font-size: 12px; color: #cbd5e1; }

.config-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label { font-size: 12px; font-weight: 700; color: #e2e8f0; }

.form-group input[type="text"], .form-group input[type="file"] {
  background: #0f0c20;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.help-text { font-size: 11px; color: #94a3b8; }

.frame-preview-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px dashed rgba(251, 191, 36, 0.4);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.frame-preview-box img {
  max-width: 140px;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
}

.btn-block { width: 100%; margin-top: 8px; }

/* MEDIA FALLBACK BOX STYLES (FOR OFFLINE / FALLBACK VIDEOS) */
.media-fallback-box {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.9), rgba(15, 23, 42, 0.9));
  border: 1px dashed rgba(251, 191, 36, 0.4);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  gap: 8px;
}

.fallback-icon {
  font-size: 32px;
}

.fallback-label {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
}

/* RESPONSIVE LANDSCAPE MODE ADAPTATION */
@media (orientation: landscape) and (min-width: 540px), (min-width: 768px) {
  .app-container {
    max-width: 960px;
  }
  .photobooth-card {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 14px;
    align-items: start;
  }
  .camera-top-bar {
    grid-column: 1 / -1;
  }
}

/* EVENT THEME PRESET CARDS */
.event-theme-card {
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 12px 8px;
  color: #94a3b8;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
}
.event-theme-card:hover {
  border-color: #64748b;
  color: #f1f5f9;
  transform: translateY(-2px);
}
.event-theme-card.active {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.15), rgba(15, 23, 42, 0.9));
  border-color: #fbbf24;
  color: #fbbf24;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.2);
  transform: translateY(-2px);
}





