/* ==========================================================================
   Marriage Memories - Photo Management System Design Tokens & Stylesheet
   ========================================================================== */

:root {
  /* Colors */
  --bg-main: #06070a;
  --bg-secondary: #0d0f17;
  --bg-card: rgba(18, 21, 31, 0.75);
  --bg-card-hover: rgba(28, 33, 48, 0.9);
  --bg-modal: #0f121c;
  
  --gold-primary: #d4af37;
  --gold-light: #f9ebbe;
  --gold-dark: #aa820a;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #fff0b8 40%, #b8860b 100%);
  --gold-shimmer: linear-gradient(90deg, #d4af37, #fff3c4, #b8860b, #d4af37);
  --rose-gold: #e8a598;
  --rose-gradient: linear-gradient(135deg, #f4c2c2 0%, #e8a598 50%, #b35468 100%);
  
  --text-primary: #fcfcfd;
  --text-secondary: #a1a7b8;
  --text-muted: #647087;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-gold-glow: rgba(212, 175, 55, 0.7);
  
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --success: #10b981;
  
  /* Typography */
  --font-royal: 'Cinzel', serif;
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Shadows & Effects */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 20px -3px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 25px 35px -5px rgba(0, 0, 0, 0.8);
  --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.35);
  --glass-blur: blur(20px);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.royal-script-sub {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: -6px;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(232, 165, 152, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Layout Containers */
.nav-container, .hero-content, .main-container, .footer-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 10, 14, 0.85);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #090a0e;
  font-size: 1.25rem;
  box-shadow: var(--shadow-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-search-bar {
  flex: 1;
  max-width: 460px;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-bar .search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.nav-search-bar input {
  width: 100%;
  padding: 12px 42px 12px 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-search-bar input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-gold-glow);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition);
}
.clear-search-btn:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stats-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #090a0e;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-gold);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-icon-text {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-md);
}

.btn-icon-text:hover, .btn-icon-text[data-active="true"] {
  background: rgba(232, 165, 152, 0.15);
  color: var(--rose-gold);
  border-color: var(--rose-gold);
}

.btn-glass {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.hero-banner {
  padding: 54px 0 36px 0;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.hero-title {
  font-family: var(--font-royal);
  font-size: 3.2rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-description {
  max-width: 600px;
  margin: 0 auto 16px auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ─── 3D ROYAL SPOTLIGHT MEMORIES SHOWCASE ─── */
.hero-spotlight-deck {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px auto 32px auto;
  max-width: 960px;
  padding: 10px 16px;
  perspective: 1200px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hero-spotlight-deck::-webkit-scrollbar {
  display: none;
}

.spotlight-card {
  position: relative;
  width: 170px;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #11131a;
  flex-shrink: 0;
}

.spotlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.spotlight-card:hover {
  transform: translateY(-12px) scale(1.08) rotate(0deg) !important;
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.45);
  z-index: 10;
}

.spotlight-card:hover img {
  transform: scale(1.1);
}

.spotlight-card.sc-1 {
  transform: rotate(-4deg) translateY(6px);
}
.spotlight-card.sc-2.active-center {
  width: 190px;
  height: 260px;
  border-color: var(--gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.4);
  transform: scale(1.05) translateY(-4px);
  z-index: 3;
}
.spotlight-card.sc-3 {
  transform: rotate(3deg) translateY(4px);
}
.spotlight-card.sc-4 {
  transform: rotate(-2deg) translateY(8px);
}

.spotlight-star-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #d4af37, #f6e05e);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  z-index: 4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spotlight-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 8px 8px;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.spotlight-tag {
  font-size: 0.72rem;
  color: var(--gold-light);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .spotlight-card {
    width: 130px;
    height: 190px;
  }
  .spotlight-card.sc-2.active-center {
    width: 145px;
    height: 205px;
  }
}

/* Album Filter Pills */
.album-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.album-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.album-pill i {
  color: var(--gold-primary);
  font-size: 0.95rem;
}

.album-pill .badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.album-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(212, 175, 55, 0.3);
}

.album-pill.active {
  background: var(--gold-gradient);
  color: #090a0e;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.album-pill.active i {
  color: #090a0e;
}

.album-pill.active .badge {
  background: rgba(9, 10, 14, 0.2);
  color: #090a0e;
}

/* Main Container & Toolbar */
.main-container {
  padding-bottom: 80px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.active-album-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.photo-counter-badge {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sort-dropdown-container {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.sort-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.sort-select option {
  background: var(--bg-modal);
  color: var(--text-primary);
}

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

/* Photo Card */
.photo-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  content-visibility: auto;
  contain-intrinsic-size: 260px;
  will-change: transform;
}

.photo-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: var(--gold-shimmer);
  transition: left 0.6s ease-in-out;
  z-index: 5;
}

.photo-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--border-gold-glow);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.3);
}

.photo-card:hover::after {
  left: 100%;
}

@keyframes gphotosShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.photo-thumb-container {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  background: linear-gradient(90deg, #12141e 0%, #1e2230 50%, #12141e 100%);
  background-size: 200% 100%;
  animation: gphotosShimmer 2s infinite ease-in-out;
}

.photo-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: transform 0.4s ease, opacity 0.3s ease;
  z-index: 2;
}

.photo-card:hover .photo-thumb {
  transform: scale(1.06);
}

/* Overlay & Action Buttons */
.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(9, 10, 14, 0.4) 0%, rgba(9, 10, 14, 0.85) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

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

.overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-album-tag {
  padding: 4px 10px;
  background: rgba(9, 10, 14, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-fav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(9, 10, 14, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.card-fav-btn:hover, .card-fav-btn.is-fav {
  background: rgba(232, 165, 152, 0.25);
  color: var(--rose-gold);
  border-color: var(--rose-gold);
}

.overlay-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.card-title {
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.card-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-actions-quick {
  display: flex;
  gap: 8px;
}

.quick-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.quick-btn:hover {
  background: var(--gold-primary);
  color: #000;
}

.quick-btn.danger:hover {
  background: var(--danger);
  color: #fff;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-lg);
  margin-top: 20px;
}

.empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--gold-primary);
}

.empty-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.empty-desc {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 24px auto;
}

/* MODALS & OVERLAYS */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 6, 9, 0.85);
  backdrop-filter: var(--glass-blur);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 620px;
  background: var(--bg-modal);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-icon {
  font-size: 1.6rem;
  color: var(--gold-primary);
}

.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.modal-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

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

.form-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-select, .form-input, .form-textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-select option {
  background: var(--bg-modal);
  color: var(--text-primary);
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  border-color: var(--border-gold-glow);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

/* Dropzone */
.dropzone {
  border: 2px dashed var(--border-gold);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  background: rgba(212, 175, 55, 0.03);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.dropzone:hover, .dropzone.dragover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold-hover);
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  font-size: 2.5rem;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.dropzone h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.dropzone p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Upload Preview */
.upload-preview-container {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-light);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.btn-text {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
}
.btn-text.danger { color: var(--danger); }
.btn-text.danger:hover { text-decoration: underline; }

/* Upload Progress Box & Live Metrics */
.upload-progress-box {
  background: rgba(9, 10, 14, 0.6);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.progress-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.progress-status-text {
  color: var(--text-primary);
  font-weight: 600;
}

.progress-percent {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--gold-primary);
  font-size: 1.05rem;
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  transition: width 0.2s ease;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.progress-metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-item i {
  color: var(--gold-primary);
}

.metric-item strong {
  color: var(--text-primary);
}

.admin-hint-text {
  font-size: 0.8rem;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
}

.admin-hint-text code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  font-family: monospace;
}

.qr-container {
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-md);
  display: inline-block;
  box-shadow: var(--shadow-gold);
}

.hero-actions {
  margin-bottom: 28px;
}

.hero-selfie-btn {
  padding: 14px 32px;
  font-size: 1.05rem;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.camera-preview-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 280px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--gold-primary);
  margin-bottom: 20px;
  box-shadow: var(--shadow-gold);
}

.webcam-feed, .selfie-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.face-scan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 10, 14, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
  box-shadow: 0 0 15px var(--gold-hover);
  animation: scanAnim 2s infinite ease-in-out;
}

@keyframes scanAnim {
  0% { top: 0%; }
  50% { top: 95%; }
  100% { top: 0%; }
}

.scan-status-tag {
  background: rgba(9, 10, 14, 0.85);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.analytics-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.analytics-card {
  background: rgba(9, 10, 14, 0.6);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.analytics-card i {
  font-size: 1.5rem;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.analytics-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.analytics-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.album-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

/* VPS DISK SPACE CARD */
.vps-disk-card {
  background: rgba(9, 10, 14, 0.65);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 6px;
}

.vps-disk-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.vps-disk-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 90px;
}

.vps-disk-stat i {
  font-size: 1.3rem;
}

.vps-disk-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vps-disk-stat strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-serif);
}

.vps-disk-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vps-disk-bar-bg {
  flex: 1;
  height: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.vps-disk-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--gold-primary), #e05c5c);
  transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
}

.vps-disk-pct {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  min-width: 38px;
  text-align: right;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.comment-card {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--gold-primary);
  border-radius: 4px;
  padding: 8px 12px;
}

.comment-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
}

.comment-text {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.upload-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.file-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.file-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.file-item-size {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* LIGHTBOX MODAL */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 7, 0.95);
  backdrop-filter: blur(20px);
}

.lightbox-topbar {
  position: relative;
  z-index: 2010;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-light);
}

.lightbox-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gold-gradient);
  color: #090a0e !important;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.lb-back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.lightbox-album-badge {
  padding: 4px 10px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.75rem;
  text-transform: uppercase;
}

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

.lb-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 1rem;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--gold-light);
  border-color: var(--border-gold);
}

.lb-btn.danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.lb-btn.close {
  background: var(--gold-gradient);
  color: #000;
  border: none;
}

/* Lightbox Stage */
.lightbox-stage {
  position: relative;
  z-index: 2005;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  overflow: hidden;
}

.lightbox-image-wrapper {
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.lightbox-image-wrapper img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s ease;
}

.lb-nav-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2015;
}

.lb-nav-btn:hover {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: var(--shadow-gold);
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  z-index: 2010;
}

/* Lightbox Details Drawer */
.lightbox-details-drawer {
  position: absolute;
  top: 73px;
  right: 0;
  width: 340px;
  height: calc(100vh - 73px);
  background: var(--bg-modal);
  border-left: 1px solid var(--border-gold);
  z-index: 2020;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.lightbox-details-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.drawer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-val {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag-badge {
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.drawer-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 8px 0;
}

.full-width {
  width: 100%;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-modal);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  color: var(--text-primary);
  font-size: 0.88rem;
  animation: toastIn 0.3s ease forwards;
}

.toast.success i { color: var(--success); }
.toast.danger i { color: var(--danger); }
.toast.info i { color: var(--gold-primary); }

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

/* SMOOTH TOUCH SCROLLING & LQIP PROGRESSIVE STYLES */
.gallery-grid {
  contain: content;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.lightbox-image-wrapper img {
  transition: filter 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.lightbox-image-wrapper img.loading-lqip {
  filter: blur(8px);
  opacity: 0.85;
}

/* TABLET VIEW (768px - 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  .main-container {
    padding: 14px 12px !important;
  }
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
  }
  .photo-card {
    border-radius: 8px !important;
  }
  .photo-thumb-container {
    padding-top: 100% !important; /* Square Tiles for Tablet */
  }
}

/* GOOGLE PHOTOS STYLE MOBILE VIEW */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 600px) {
  body {
    padding-bottom: 72px !important;
  }

  .main-container {
    padding: 8px 4px !important;
  }

  .hero-banner {
    padding: 22px 14px 16px !important;
    margin-bottom: 10px !important;
  }

  .hero-title {
    font-size: 1.5rem !important;
  }

  .hero-subtitle {
    font-size: 0.82rem !important;
    margin-bottom: 14px !important;
  }

  .hero-actions {
    margin-bottom: 12px !important;
  }

  .hero-selfie-btn {
    padding: 10px 20px !important;
    font-size: 0.92rem !important;
  }

  .toolbar {
    padding: 10px 8px !important;
    margin-bottom: 10px !important;
    gap: 10px !important;
  }

  /* 3-Column Square Tile Edge-to-Edge Grid (Exact Google Photos Aesthetic) */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 3px !important;
    padding: 0 2px !important;
  }

  .photo-card {
    border-radius: 4px !important;
    border: none !important;
    background: #0d0e14 !important;
    box-shadow: none !important;
  }

  .photo-thumb-container {
    padding-top: 100% !important; /* Square 1:1 Tiles */
  }

  .photo-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .photo-card:active {
    transform: scale(0.96) !important;
    opacity: 0.88 !important;
  }

  .card-album-tag:not(.selfie-match-badge), .card-title, .card-size, .card-actions-quick {
    display: none !important; /* Clean Google Photos style */
  }

  .card-album-tag.selfie-match-badge {
    display: inline-flex !important;
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    z-index: 10 !important;
    font-size: 0.6rem !important;
    padding: 2px 5px !important;
    border-radius: 4px !important;
  }

  .card-fav-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.72rem !important;
  }

  .overlay-bottom {
    padding: 4px !important;
  }

  .lightbox-details-drawer {
    width: 100% !important;
  }

  /* Google Photos Style Floating Mobile Bottom App Bar */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 60px;
    background: rgba(8, 9, 13, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1.5px solid var(--border-gold);
    z-index: 9990;
    align-items: center;
    justify-content: space-around;
    padding: 2px 8px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.9);
  }

  .nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    gap: 2px;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 12px;
    transition: all 0.2s ease;
  }

  .nav-tab i {
    font-size: 1.15rem;
  }

  .nav-tab.active, .nav-tab:hover {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.12);
  }
}

/* DEDICATED FULLSCREEN GUEST LOGIN PORTAL */
.guest-login-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(28, 22, 14, 0.98) 0%, rgba(5, 6, 9, 0.99) 100%);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.guest-login-screen.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.guest-login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(15, 14, 20, 0.88);
  border: 2px solid var(--gold-primary);
  border-radius: 24px;
  padding: 42px 32px 36px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  animation: loginCardPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginCardPop {
  0% { transform: scale(0.92) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.login-emblem {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  border: 1.5px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
}

.glow-icon {
  font-size: 2.2rem;
  color: var(--gold-primary);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.7));
}

.login-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--text-primary);
  margin: 8px 0 10px;
  letter-spacing: 0.02em;
}

.login-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 26px;
}

.login-form-group {
  margin-bottom: 22px;
}

.passcode-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-lock-icon {
  position: absolute;
  left: 18px;
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.login-passcode-input {
  width: 100%;
  padding: 15px 48px 15px 48px;
  background: rgba(8, 9, 13, 0.9);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  color: var(--gold-light);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-align: center;
  transition: all 0.3s ease;
}

.login-passcode-input:focus {
  outline: none;
  border-color: var(--gold-hover);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  background: rgba(12, 14, 20, 0.95);
}

.passcode-eye-btn {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.passcode-eye-btn:hover {
  color: var(--gold-primary);
}

.login-error-msg {
  color: #ff5252;
  font-size: 0.88rem;
  margin-top: 10px;
  font-weight: 500;
}

.login-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  letter-spacing: 0.05em;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

/* FLOATING HEART PARTICLES */
.floating-heart-particle {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  color: var(--rose-gold);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
  animation: heartParticleFloat 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heartParticleFloat {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.6);
  }
  50% {
    opacity: 0.95;
    transform: translate(var(--tx), var(--ty)) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), calc(var(--ty) - 40px)) scale(0.4);
  }
}

/* PRINTABLE VENUE QR POSTER */
.printable-poster-card {
  background: radial-gradient(circle at center, #1c1811 0%, #06070a 100%);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.poster-border-frame {
  border: 2px solid var(--gold-primary);
  border-radius: 12px;
  padding: 28px 20px;
  background: rgba(12, 14, 20, 0.85);
  box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.15);
}

.poster-crown {
  font-size: 2rem;
  color: var(--gold-primary);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.poster-subtitle {
  display: block;
  font-family: var(--font-royal);
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-top: 4px;
}

.poster-main-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin: 6px 0;
}

.poster-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 20px;
  line-height: 1.4;
}

.poster-qr-wrapper {
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
  background: #0f0e14;
  border: 2px solid var(--gold-primary);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

.poster-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.poster-instructions-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.poster-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #000;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.poster-passcode-box {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  color: var(--gold-light);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.poster-footer-url {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* @media print styles */
@media print {
  body > *:not(#qrPosterModal) {
    display: none !important;
  }
  #qrPosterModal {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #fff !important;
    z-index: 999999 !important;
    padding: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  #qrPosterModal .modal-card {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  #qrPosterModal .modal-header,
  #qrPosterModal .modal-footer {
    display: none !important;
  }
  #printablePosterArea, #printablePosterArea * {
    visibility: visible !important;
  }
  #printablePosterArea {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #fff !important;
    color: #000 !important;
    padding: 30px !important;
  }
  .poster-border-frame {
    border: 3px solid #000 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  .poster-crown, .poster-subtitle, .poster-main-title, .poster-desc, .poster-step, .poster-passcode-box, .poster-footer-url {
    color: #000 !important;
  }
  .step-num {
    background: #000 !important;
    color: #fff !important;
  }
  .poster-passcode-box {
    border: 1px solid #000 !important;
    background: #f4f4f4 !important;
    color: #000 !important;
  }
}
/* ROYAL WEDDING MUSIC PLAYER EQUALIZER */
.music-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transition: all 0.3s ease;
}

.music-toggle-btn.playing {
  background: rgba(212, 175, 55, 0.2);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  color: #fff;
}

.eq-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 14px;
}

.eq-bar {
  width: 3px;
  height: 4px;
  background: var(--gold-primary);
  border-radius: 1px;
  transition: height 0.2s ease;
}

.music-toggle-btn.playing .eq-bar:nth-child(1) {
  animation: eqBounce 0.6s infinite ease-in-out alternate;
}
.music-toggle-btn.playing .eq-bar:nth-child(2) {
  animation: eqBounce 0.8s infinite ease-in-out alternate 0.2s;
}
.music-toggle-btn.playing .eq-bar:nth-child(3) {
  animation: eqBounce 0.5s infinite ease-in-out alternate 0.4s;
}

@keyframes eqBounce {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* WEDDING EMOJI REACTIONS FLOATING BAR */
.lightbox-reactions-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 14, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  padding: 6px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 100;
}

.emoji-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 5px 12px;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.emoji-react-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: translateY(-3px) scale(1.1);
  border-color: var(--gold-primary);
}

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

.react-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
}

@media (max-width: 600px) {
  .lightbox-reactions-bar {
    bottom: 16px;
    padding: 4px 8px;
    gap: 6px;
  }
  .emoji-react-btn {
    padding: 4px 8px;
    font-size: 0.95rem;
  }
  .react-count {
    font-size: 0.75rem;
  }
}

/* MOBILE HAMBURGER MENU & DRAWER */
.mobile-hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-hamburger-btn:active {
  transform: scale(0.92);
  background: rgba(212, 175, 55, 0.3);
}

@media (max-width: 900px) {
  .desktop-nav-items {
    display: none !important;
  }
  .mobile-hamburger-btn {
    display: flex !important;
  }
}

/* ROYAL MOBILE MENU DRAWER OVERLAY */
.mobile-menu-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 99999;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-drawer-card {
  width: 85%;
  max-width: 340px;
  height: 100%;
  background: radial-gradient(circle at top right, #1c1811 0%, #08090d 100%);
  border-left: 1.5px solid var(--border-gold);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.9);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-menu-drawer-backdrop.open .mobile-menu-drawer-card {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-gold);
  margin-bottom: 16px;
}

.mobile-menu-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-light);
}

.mobile-menu-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
}

.mobile-menu-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.12);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-item:hover, .mobile-menu-item:active {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold-primary);
  transform: translateX(4px);
}

.menu-item-icon {
  font-size: 1.25rem;
  color: var(--gold-primary);
  width: 24px;
  text-align: center;
}

.menu-item-text {
  display: flex;
  flex-direction: column;
}

.menu-item-text strong {
  font-size: 0.92rem;
  color: var(--gold-light);
}

.menu-item-text span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.mobile-menu-divider {
  height: 1px;
  background: var(--border-gold);
  margin: 8px 0;
  opacity: 0.5;
}

/* ─── ROYAL WEDDING TIMELINE & DESTINATION SECTION ─── */
.wedding-events-section {
  padding: 3.5rem 1.5rem 4rem;
  background: linear-gradient(180deg, #090a0f 0%, #11131a 50%, #090a0f 100%);
  border-bottom: 1px solid var(--border-gold);
  position: relative;
  overflow: hidden;
}

.wedding-events-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.events-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.royal-ornament-header {
  text-align: center;
  margin-bottom: 3rem;
}

.shubh-vivah-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold);
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
  margin-bottom: 0.5rem;
}

.events-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.events-lead-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.gold-divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.gold-divider-ornament span {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-divider-ornament i {
  color: var(--gold);
  font-size: 0.75rem;
  filter: drop-shadow(0 0 6px var(--gold));
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.event-card {
  background: rgba(18, 20, 28, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.2);
}

.event-card.featured {
  border: 1.5px solid var(--gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 0%, rgba(18, 20, 28, 0.95) 100%);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.25);
}

.event-crown-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d4af37, #f6e05e);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.event-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.event-icon-circle {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(18, 20, 28, 0.8) 100%);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.event-icon-circle.featured-icon {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, rgba(212, 175, 55, 0.2) 100%);
  color: #f472b6;
  border-color: #f472b6;
}

.event-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.event-time-pill {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.event-location-text {
  font-size: 0.9rem;
  color: #e2e8f0;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.event-location-text i {
  color: var(--gold);
}

.event-desc-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.6rem;
  flex: 1;
}

.event-map-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: auto;
}

.event-map-action-btn:hover {
  background: linear-gradient(135deg, #d4af37, #f6e05e);
  color: #000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transform: scale(1.03);
}

.event-map-action-btn.featured-btn {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #000;
}

/* ─── KEN BURNS SLIDESHOW EFFECT ─── */
@keyframes kenBurnsSlide {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.12) translate(-2%, -1%); }
  100% { transform: scale(1.05) translate(2%, 1%); }
}

.lightbox-image-wrapper img.ken-burns {
  animation: kenBurnsSlide 6s infinite alternate ease-in-out;
}

/* ─── VOICE BLESSINGS & AUDIO PLAYER ─── */
.voice-wish-card {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.6rem;
}

.voice-wish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.voice-audio-elem {
  width: 100%;
  height: 32px;
  outline: none;
  filter: invert(0.85) hue-rotate(180deg);
}

/* WhatsApp Button Highlight */
.lb-btn.whatsapp-btn:hover {
  background: #25D366 !important;
  color: #fff !important;
  border-color: #25D366 !important;
  transform: scale(1.1);
}

/* ─── VPS & PORT INDICATOR ENHANCEMENTS ─── */
#vpsStatusPill {
  transition: all 0.3s ease;
  cursor: pointer;
}
#vpsStatusPill:hover {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10b981 !important;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

#syncVpsBtn {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(184, 134, 11, 0.25));
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  transition: all 0.3s ease;
}

#syncVpsBtn:hover {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

/* ─── BRAND NEW LUXURY ROYAL WELCOME MODAL STYLES ─── */
.welcome-modal-backdrop {
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  background: rgba(4, 5, 8, 0.88);
  z-index: 10000;
}

.welcome-modal-card {
  max-width: 520px;
  width: 92%;
  background: linear-gradient(145deg, rgba(16, 20, 31, 0.95), rgba(9, 11, 18, 0.98));
  border: 1px solid var(--border-gold-glow);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.35), 0 20px 40px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem 1.8rem 1.8rem;
  position: relative;
  overflow: hidden;
}

.welcome-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}

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

.welcome-crown-glow {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.6rem auto;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(184, 134, 11, 0.4));
  border: 1.5px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold-light);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
  animation: crownPulse 3s infinite alternate ease-in-out;
}

@keyframes crownPulse {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
  100% { transform: scale(1.08); box-shadow: 0 0 30px rgba(212, 175, 55, 0.7); }
}

.welcome-couple-title {
  font-family: var(--font-royal);
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.2rem 0;
  letter-spacing: 0.5px;
}

.welcome-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.welcome-action-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.welcome-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.welcome-action-card:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--border-gold-glow);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.action-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.action-card-info {
  flex: 1;
}

.action-card-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.action-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.action-arrow {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.welcome-action-card:hover .action-arrow {
  color: var(--gold-primary);
  transform: translateX(3px);
}

.enter-gallery-btn {
  font-size: 1.05rem;
  padding: 0.95rem;
  border-radius: 30px;
  font-weight: 700;
  background: var(--gold-gradient);
  color: #000;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
  transition: var(--transition);
}

.enter-gallery-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.6);
}

/* ─── FIXED MOBILE BOTTOM NAVIGATION BAR STYLES ─── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(6, 7, 10, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-gold);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

.mb-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  transition: all 0.25s ease;
  width: 20%;
}

.mb-nav-item i {
  font-size: 1.25rem;
  transition: transform 0.25s ease;
}

.mb-nav-item.active, .mb-nav-item:active {
  color: var(--gold-light);
}

.mb-nav-item.active i {
  color: var(--gold-primary);
  transform: translateY(-2px) scale(1.1);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

/* ─── COMPREHENSIVE MOBILE VIEW PERFECTION (<= 768px & <= 480px) ─── */
@media (max-width: 768px) {
  body {
    padding-bottom: 74px !important;
    overflow-x: hidden !important;
  }

  /* Fixed Bottom Nav Bar */
  .mobile-bottom-nav {
    display: flex !important;
  }

  /* Header & Navbar Mobile Adjustments */
  .desktop-nav-items {
    display: none !important;
  }

  .mobile-hamburger-btn {
    display: flex !important;
  }

  .nav-container {
    padding: 0.6rem 0.8rem !important;
    gap: 0.5rem !important;
  }

  .brand {
    gap: 0.5rem !important;
  }

  .brand-logo {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.1rem !important;
  }

  .brand-title {
    font-size: 1.05rem !important;
  }

  .brand-subtitle {
    font-size: 0.72rem !important;
  }

  .nav-search-bar {
    max-width: 150px !important;
    padding: 0.4rem 0.7rem !important;
  }

  .nav-search-bar input {
    font-size: 0.8rem !important;
  }

  /* Hero Banner & Categories */
  .hero-banner {
    padding: 2.2rem 0.8rem 1.2rem 0.8rem !important;
  }

  .hero-title {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }

  .royal-script-sub {
    font-size: 1.6rem !important;
  }

  .hero-description {
    font-size: 0.85rem !important;
    padding: 0 0.5rem !important;
  }

  .hero-spotlight-deck {
    height: 220px !important;
    margin: 1.2rem 0 !important;
  }

  .spotlight-card {
    width: 200px !important;
    height: 210px !important;
  }

  /* Album Filters Horizontal Touch Scroll */
  .album-filters {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 0.5rem 0.2rem !important;
    margin-top: 1.2rem !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .album-filters::-webkit-scrollbar {
    display: none !important;
  }

  .album-pill {
    flex-shrink: 0 !important;
    padding: 0.55rem 1rem !important;
    font-size: 0.82rem !important;
  }

  /* Toolbar & Controls */
  .toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    padding: 0.8rem 0.6rem !important;
  }

  .toolbar-left, .toolbar-right {
    justify-content: space-between !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  .active-album-title {
    font-size: 1.2rem !important;
  }

  /* Gallery Grid Mobile 2-Column Layout */
  .main-container {
    padding: 0.6rem 0.4rem 2rem 0.4rem !important;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .photo-card {
    border-radius: 12px !important;
  }

  .photo-card-image-wrapper {
    aspect-ratio: 1 / 1 !important;
  }

  .photo-card-info {
    padding: 0.6rem 0.5rem !important;
  }

  .photo-card-title {
    font-size: 0.84rem !important;
  }

  .photo-card-meta {
    font-size: 0.72rem !important;
  }

  .photo-action-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
  }

  /* Lightbox Modal Mobile Polish */
  .lightbox-content {
    flex-direction: column !important;
    padding: 0.5rem !important;
  }

  .lightbox-main-area {
    height: calc(100vh - 140px) !important;
  }

  .lightbox-image-wrapper img {
    max-height: 65vh !important;
    width: 100% !important;
    object-fit: contain !important;
  }

  .lightbox-controls-overlay {
    padding: 0.5rem !important;
  }

  .lb-btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.05rem !important;
  }

  .lightbox-details-drawer {
    width: 100% !important;
    max-height: 75vh !important;
    border-radius: 20px 20px 0 0 !important;
  }

  /* Welcome Modal Mobile Polish */
  .welcome-modal-card {
    padding: 1.5rem 1rem 1.2rem 1rem !important;
    max-height: 86vh !important;
    overflow-y: auto !important;
  }

  .welcome-couple-title {
    font-size: 1.5rem !important;
  }

  .welcome-action-grid {
    gap: 0.6rem !important;
  }

  .welcome-action-card {
    padding: 0.7rem 0.8rem !important;
    gap: 0.65rem !important;
  }

  .action-card-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.05rem !important;
  }

  .action-card-info h4 {
    font-size: 0.88rem !important;
  }

  .action-card-info p {
    font-size: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .nav-search-bar {
    display: none !important; /* Hide header search bar on very small phones to prevent overflow */
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
  }

  .nav-container {
    padding: 0.5rem 0.6rem !important;
  }

  .brand-title {
    font-size: 0.95rem !important;
  }

  .hero-title {
    font-size: 1.4rem !important;
  }
}

/* ─── DEDICATED FULLSCREEN GUEST LOGIN PORTAL STYLES ─── */
.guest-login-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(16, 20, 32, 0.98), rgba(4, 5, 8, 0.99));
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 15000 !important; /* Higher than welcome modal (10000) so passcode login is always interactive & clickable! */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.guest-login-screen.active,
.guest-login-screen.open {
  display: flex !important;
}

.guest-login-card {
  max-width: 440px;
  width: 92%;
  background: linear-gradient(145deg, rgba(20, 24, 38, 0.95), rgba(9, 11, 18, 0.98));
  border: 1.5px solid var(--border-gold-glow);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.4), 0 20px 40px rgba(0, 0, 0, 0.9);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: modalPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-emblem {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.6rem auto;
  background: rgba(212, 175, 55, 0.15);
  border: 1.5px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold-light);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.login-title {
  font-family: var(--font-royal);
  font-size: 1.65rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.3rem 0;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
  line-height: 1.45;
}

.login-form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.passcode-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-lock-icon {
  position: absolute;
  left: 1rem;
  color: var(--gold-primary);
  font-size: 1rem;
  pointer-events: none;
}

.login-passcode-input {
  width: 100%;
  padding: 0.85rem 2.8rem 0.85rem 2.6rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 2px;
  outline: none;
  transition: all 0.25s ease;
}

.login-passcode-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  background: rgba(0, 0, 0, 0.6);
}

.passcode-eye-btn {
  position: absolute;
  right: 0.8rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.4rem;
}

.login-submit-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 30px;
  background: var(--gold-gradient);
  color: #000;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  transition: all 0.25s ease;
  pointer-events: auto !important;
}

.login-submit-btn:hover, .login-submit-btn:active {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.login-error-msg {
  color: #ef4444;
  font-size: 0.82rem;
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 600;
}

.login-footer-text {
  margin-top: 1.2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ULTRA-PREMIUM ROYAL ANIMATIONS & MAST VISUAL EFFECTS
   ========================================================================== */

/* 1. Card Entrance Animation */
@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.photo-card {
  animation: cardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 2. Hero Gold Shimmer Text Animation */
@keyframes goldShimmerText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-title {
  background: linear-gradient(135deg, #d4af37 0%, #fff3c4 25%, #f4c2c2 50%, #d4af37 75%, #b8860b 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmerText 6s ease infinite;
}

/* 3. Royal Pulsing Glow Button */
@keyframes royalPulseGlow {
  0% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), 0 0 0 0 rgba(212, 175, 55, 0.3);
  }
  70% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.7), 0 0 0 14px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

.btn-load-more {
  animation: royalPulseGlow 3s infinite;
}

.btn-load-more:hover {
  transform: translateY(-4px) scale(1.04) !important;
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6) !important;
}

/* 4. Enhanced Photo Card Hover 3D Pop */
.photo-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.photo-card:hover {
  transform: translateY(-10px) scale(1.025);
  border-color: rgba(212, 175, 55, 0.8) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85), 0 0 35px rgba(212, 175, 55, 0.5) !important;
}

/* 5. Heart Explode Floating Animation */
@keyframes heartFloatUp {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 0px), var(--ty, -80px)) scale(1.6) rotate(var(--rot, 20deg));
  }
}

.floating-heart-particle {
  position: absolute;
  pointer-events: none;
  color: var(--rose-gold);
  font-size: 1.2rem;
  z-index: 100;
  animation: heartFloatUp 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Equalizer Bar Animation */
.eq-bar {
  width: 3px;
  background: var(--gold-light);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.eq-bars.playing .bar1 {
  animation: eqBounce 0.6s ease-in-out infinite alternate;
}
.eq-bars.playing .bar2 {
  animation: eqBounce 0.8s ease-in-out 0.2s infinite alternate;
}
.eq-bars.playing .bar3 {
  animation: eqBounce 0.5s ease-in-out 0.4s infinite alternate;
}

@keyframes eqBounce {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* 6. Ultra Premium Royal Mobile & Login Enhancements */
.guest-login-card {
  box-shadow: 0 0 70px rgba(212, 175, 55, 0.5), 0 30px 60px rgba(0, 0, 0, 0.95) !important;
}

.royal-dock-pill {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}

.royal-dock-pill:hover {
  transform: translateY(-4px) scale(1.08) !important;
}

.welcome-action-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.welcome-action-card:hover {
  transform: translateY(-4px) scale(1.02) !important;
  border-color: var(--gold-primary) !important;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3) !important;
}





