/* ==========================================================================
   MuralVivo - Modern Festive & High-End Visual Design System
   ========================================================================== */

:root {
  /* Color Palette - Cyber Gold & Luxury Midnight */
  --bg-main: #090d16;
  --bg-surface: rgba(18, 24, 38, 0.75);
  --bg-surface-elevated: rgba(28, 38, 58, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(99, 102, 241, 0.4);

  --primary: #6366f1;
  --primary-glow: #818cf8;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f59e0b 100%);
  --accent-gold: #f59e0b;
  --accent-pink: #ec4899;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.25);
  --shadow-polaroid: 0 15px 35px rgba(0, 0, 0, 0.5), 0 3px 10px rgba(0, 0, 0, 0.3);

  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
}

/* ==========================================================================
   Navigation & Top Bar
   ========================================================================== */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

.brand-logo svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.event-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-rose);
  box-shadow: 0 0 10px var(--accent-rose);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Nav Switchers & Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--primary-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-icon.active {
  background: var(--primary);
  border-color: var(--primary-glow);
  color: #fff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.btn-pill {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--text-muted);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   View Container Switching
   ========================================================================== */

.view-section {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   VIEW 1: Live Mural (Pantalla Grande de Proyección)
   ========================================================================== */

.mural-header-banner {
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.8) 0%, rgba(9, 13, 22, 0) 100%);
}

.event-details h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
  background: linear-gradient(to right, #ffffff, #f1f5f9, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meta-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.mural-controls-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(18, 24, 38, 0.7);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}

/* Floating QR Card on Live Wall */
.qr-live-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 240px;
  transition: all var(--transition-bounce);
  animation: floatWidget 4s ease-in-out infinite;
}

@keyframes floatWidget {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.qr-live-widget:hover {
  transform: scale(1.04);
}

.qr-box-inner {
  background: #ffffff;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-callout-text {
  text-align: center;
}

.qr-callout-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.qr-callout-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Floating Emojis / Live Reactions Stream */
.reactions-stream-container {
  position: fixed;
  bottom: 0;
  left: 2rem;
  width: 150px;
  height: 80vh;
  pointer-events: none;
  z-index: 85;
  overflow: hidden;
}

.floating-reaction {
  position: absolute;
  bottom: 0;
  font-size: 2.2rem;
  animation: riseAndFade 3.5s ease-out forwards;
  opacity: 0;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

@keyframes riseAndFade {
  0% { transform: translateY(0) scale(0.6); opacity: 1; }
  50% { transform: translateY(-40vh) scale(1.2) rotate(10deg); opacity: 0.9; }
  100% { transform: translateY(-80vh) scale(1) rotate(-15deg); opacity: 0; }
}

/* Live Wall Grid (Masonry & Polaroid Layouts) */
.mural-canvas {
  padding: 1.5rem 2rem 8rem 2rem;
  min-height: 80vh;
}

/* Layout: Dynamic Masonry */
.grid-masonry {
  column-count: 4;
  column-gap: 1.5rem;
}

@media (max-width: 1400px) {
  .grid-masonry { column-count: 3; }
}
@media (max-width: 900px) {
  .grid-masonry { column-count: 2; column-gap: 1rem; }
}
@media (max-width: 600px) {
  .grid-masonry { column-count: 1; }
}

.photo-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-bounce), box-shadow var(--transition-smooth);
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  animation: dropIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes dropIn {
  0% { opacity: 0; transform: scale(0.7) translateY(40px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.photo-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.5);
  z-index: 10;
}

/* Layout: Polaroid Style */
.grid-polaroid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}

.grid-polaroid .photo-card {
  width: 290px;
  background: #fdfdfd;
  color: #1e293b;
  padding: 12px 12px 20px 12px;
  border-radius: 4px;
  box-shadow: var(--shadow-polaroid);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-polaroid .photo-card:nth-child(even) {
  transform: rotate(2deg);
}
.grid-polaroid .photo-card:nth-child(odd) {
  transform: rotate(-2.5deg);
}
.grid-polaroid .photo-card:nth-child(3n) {
  transform: rotate(3.5deg);
}

.grid-polaroid .photo-card:hover {
  transform: rotate(0deg) scale(1.08) translateY(-10px);
  z-index: 20;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.grid-polaroid .photo-media {
  border-radius: 2px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.grid-polaroid .photo-details {
  padding: 10px 4px 0 4px;
}

.grid-polaroid .author-name {
  color: #0f172a;
  font-family: 'Caveat', cursive, var(--font-family);
  font-size: 1.15rem;
}

.grid-polaroid .photo-caption {
  color: #475569;
  font-family: 'Caveat', cursive, var(--font-family);
  font-size: 1.05rem;
}

/* Card Elements */
.photo-media-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.photo-media {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-card:hover .photo-media {
  transform: scale(1.05);
}

.filter-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-stamp {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

.photo-details {
  padding: 1rem;
}

.author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.photo-caption {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
  word-break: break-word;
}

.photo-likes-bar {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.like-button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-bounce);
}

.like-button:hover, .like-button.liked {
  color: var(--accent-rose);
  transform: scale(1.15);
}

/* ==========================================================================
   Cinema Slideshow Mode (Ken Burns Effect)
   ========================================================================== */

.slideshow-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slideshow-overlay.active {
  display: flex;
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slideshow-slide.current {
  opacity: 1;
}

.slideshow-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.35);
  transform: scale(1.1);
}

.slideshow-content {
  position: relative;
  z-index: 10;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slideshow-img {
  max-width: 80vw;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(99, 102, 241, 0.3);
  animation: kenBurns 12s infinite alternate ease-in-out;
}

@keyframes kenBurns {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.06) translateY(-8px); }
}

.slideshow-caption-card {
  margin-top: 1.5rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  text-align: center;
  max-width: 650px;
}

.slideshow-author {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.slideshow-text {
  font-size: 1rem;
  color: #fff;
  margin-top: 0.25rem;
}

.slideshow-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 30;
}

/* ==========================================================================
   VIEW 2: Mobile Guest Upload View
   ========================================================================== */

.guest-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem 5rem 1rem;
  min-height: 100vh;
}

.guest-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.guest-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.guest-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.guest-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.35rem;
}

/* Camera / File Upload Dropzone */
.dropzone-area {
  border: 2px dashed rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(99, 102, 241, 0.03);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.dropzone-area:hover, .dropzone-area.drag-over {
  border-color: var(--primary-glow);
  background: rgba(99, 102, 241, 0.1);
  transform: scale(1.01);
}

.dropzone-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.dropzone-prompt {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.dropzone-hint {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 0.25rem;
}

.file-input-hidden {
  display: none;
}

/* Preview Box with Filter Selectors */
.upload-preview-wrap {
  display: none;
  margin-bottom: 1.5rem;
  position: relative;
}

.upload-preview-wrap.active {
  display: block;
}

.preview-image-element {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-glass);
}

.preview-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Filter presets buttons */
.filter-options-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  margin-bottom: 1.25rem;
}

.filter-chip {
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}

.filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-glow);
}

/* Photo CSS Filters */
.photo-filter-normal { filter: none; }
.photo-filter-vintage { filter: sepia(0.35) contrast(1.1) brightness(1.05) saturate(1.2); }
.photo-filter-romantic { filter: brightness(1.08) contrast(0.95) saturate(1.3) hue-rotate(-8deg); }
.photo-filter-neon { filter: contrast(1.25) saturate(1.6) brightness(1.1); }
.photo-filter-bw { filter: grayscale(1) contrast(1.2); }

/* Form inputs */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-glow);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.btn-upload-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  justify-content: center;
}

/* Guest Reactions Quick Emojis */
.quick-reactions-bar {
  margin-top: 1.5rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
}

.quick-reactions-label {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
}

.reaction-buttons-list {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.btn-reaction {
  font-size: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-bounce);
}

.btn-reaction:active {
  transform: scale(1.4);
}

/* Success Modal for Guests */
.success-screen {
  display: none;
  text-align: center;
  padding: 1.5rem 0;
}

.success-screen.active {
  display: block;
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
  animation: popSuccess 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popSuccess {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   VIEW 3: Host Control & Moderation Room
   ========================================================================== */

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem 1.5rem;
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.stat-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Moderation Mode Toggle Switch */
.moderation-mode-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.moderation-info h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.moderation-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.switch-label {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
}

.switch-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background: var(--primary-gradient);
}

input:checked + .switch-slider:before {
  transform: translateX(24px);
}

/* Moderation Queue Tabs */
.mod-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
}

.mod-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mod-tab-btn.active {
  background: var(--bg-surface-elevated);
  color: #fff;
  border: 1px solid var(--border-glass);
}

.mod-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.mod-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.mod-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.mod-card-body {
  padding: 1rem;
  flex: 1;
}

.mod-card-actions {
  display: flex;
  padding: 0.75rem 1rem;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid var(--border-glass);
}

.btn-mod-action {
  flex: 1;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: transform var(--transition-fast);
}

.btn-approve {
  background: #10b981;
  color: #fff;
}

.btn-reject {
  background: #ef4444;
  color: #fff;
}

.btn-mod-action:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   Native Dialog Modals (Modern Web Guidance)
   ========================================================================== */

dialog.modal-custom {
  margin: auto;
  padding: 2rem;
  background: rgba(18, 24, 38, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  color: var(--text-main);
  max-width: 500px;
  width: 90vw;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.2);
}

dialog::backdrop {
  background: rgba(4, 7, 13, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

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

.modal-header h3 {
  font-size: 1.3rem;
  color: #fff;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
}

/* Event Config Form */
.settings-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Toast Notification for New Incoming Photos */
.live-toast-container {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.live-toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--primary-glow);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(99, 102, 241, 0.3);
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1), fadeOutToast 0.5s ease 4.5s forwards;
  pointer-events: auto;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutToast {
  to { opacity: 0; transform: translateY(-10px); }
}

.toast-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.toast-text {
  font-size: 0.85rem;
}

.toast-name {
  font-weight: 700;
  color: #fff;
}

/* Empty State */
.empty-wall-state {
  text-align: center;
  padding: 5rem 1rem;
  max-width: 550px;
  margin: 0 auto;
}

.empty-wall-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounceSlow 2.5s infinite;
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.empty-wall-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.empty-wall-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  .top-bar {
    padding: 0.6rem 1rem;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .qr-live-widget {
    bottom: 1rem;
    right: 1rem;
    max-width: 170px;
    padding: 0.75rem;
  }
  .qr-box-inner canvas, .qr-box-inner img {
    width: 110px !important;
    height: 110px !important;
  }
  .qr-callout-title {
    font-size: 0.8rem;
  }
  .mural-canvas {
    padding: 1rem 0.75rem 6rem 0.75rem;
  }
}
