/* style.css - Premium Wedding Guestbook Styles */

:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette - Elegant Champagne, Rose Gold, Off-White, Charcoal */
  --bg-primary: #0f1012;       /* Sleek dark mode base */
  --bg-surface: rgba(22, 23, 27, 0.7);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(223, 186, 155, 0.3);
  
  --color-primary: #dfba9b;    /* Elegant Champagne gold */
  --color-primary-dark: #b89172;
  --color-text-main: #f5f6f8;
  --color-text-muted: #9fa2a8;
  --color-quest-green: #5cc38c;
  --color-error: #ff6b6b;
  
  --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  overflow: hidden;
}

/* App Container */
.app-container {
  max-width: 500px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  background: radial-gradient(circle at 50% 10%, #201e23 0%, #0f1012 80%);
  display: flex;
  flex-direction: column;
}

/* Screens */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1;
}

.screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-main);
}

/* Welcome Screen */
#welcome-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
}

.hero-section {
  margin-bottom: 40px;
  position: relative;
  width: 100%;
}

.rose-gold-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(223, 186, 155, 0.15) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  z-index: 1;
  position: relative;
}

.brand-subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-text-muted);
  z-index: 1;
  position: relative;
}

.welcome-card {
  width: 100%;
}

.wedding-name {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #fff;
}

.welcome-intro {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

/* Inputs & Forms */
.input-group {
  text-align: left;
  margin-bottom: 24px;
  width: 100%;
}

.input-group label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-weight: 500;
}

.input-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  transition: var(--transition-fast);
}

.input-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(223, 186, 155, 0.15);
}

/* Buttons */
.primary-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: none;
  border-radius: 16px;
  padding: 16px;
  color: #0f1012;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px rgba(223, 186, 155, 0.25);
}

.primary-btn:active {
  transform: scale(0.98);
  opacity: 0.95;
}

/* Header */
.app-header {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(15, 16, 18, 0.8);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.logo-serif {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 1.5px;
  color: #fff;
}

.guest-badge {
  background: rgba(223, 186, 155, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--color-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* Notice Bar (Offline) */
.notice-bar {
  background: rgba(255, 107, 107, 0.2);
  border-bottom: 1px solid rgba(255, 107, 107, 0.3);
  padding: 8px 16px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ff8a8a;
  transition: var(--transition-fast);
  z-index: 9;
}

.offline-hidden {
  display: none !important;
}

.notice-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-error);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

/* Content Area & Tabs */
.app-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  padding: 20px;
  padding-bottom: 90px; /* Safe space for nav */
}

.tab-content {
  display: none;
  width: 100%;
  height: 100%;
}

.tab-content.active {
  display: block;
}

/* Mode Selector (Photos vs Voicemail) */
.mode-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  padding: 4px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 20px;
}

.mode-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px;
  border-radius: 26px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mode-btn.active {
  background: var(--color-primary);
  color: #0f1012;
  font-weight: 600;
}

.mode-container {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: space-between;
}

.mode-container.active {
  display: flex;
}

/* Camera Tab - Retro Viewfinder styling */
#camera-tab {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.camera-lens-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 30px 0;
}

.lens-outer-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, #2d2e33 0%, #16171b 70%, #0f1012 100%);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lens-glass {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #181e28 0%, #080a0e 70%);
  border: 8px solid #111;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  filter: contrast(1.15) saturate(1.1) sepia(0.12); /* Retro warm analog vibe */
}

.lens-reflection {
  position: absolute;
  top: 15px;
  left: 30px;
  width: 60px;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
  transform: rotate(-35deg);
  border-radius: 50%;
}

.camera-icon-wrapper {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.action-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.shutter-button {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #25262c;
  border: 4px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition-fast);
}

.shutter-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  transition: var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

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

.action-hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Active Quest Pill */
.active-quest-pill {
  background: rgba(223, 186, 155, 0.15);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 12px;
  animation: bounceIn 0.3s ease;
}

.active-quest-pill.hide {
  display: none !important;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  animation: pulse 1.2s infinite;
}

#clear-quest-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 18px;
  cursor: pointer;
  font-weight: bold;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); opacity: 0.8; }
  70% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

/* Audio Voicemail Layout */
.audio-mic-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 30px 0;
}

.mic-glow-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, #2d2e33 0%, #16171b 70%, #0f1012 100%);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mic-glass {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #25222b 0%, #0c0a0f 70%);
  border: 8px solid #111;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.mic-icon-wrapper {
  transition: var(--transition-fast);
}

.mic-icon-wrapper.recording {
  animation: pulseRecording 1.5s infinite;
  color: var(--color-error);
}

@keyframes pulseRecording {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.audio-control-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

.record-timer {
  font-family: monospace;
  font-size: 32px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.audio-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
  max-width: 300px;
  animation: slideUp 0.3s ease;
}

.audio-actions-row.hide {
  display: none !important;
}

.audio-act-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #fff;
  border-radius: 10px;
  padding: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.audio-act-btn.submit {
  background: var(--color-primary);
  color: #0f1012;
  border: none;
}

.audio-act-btn.cancel {
  background: rgba(255, 107, 107, 0.1);
  color: var(--color-error);
  border-color: rgba(255, 107, 107, 0.2);
}

/* Quest List CSS */
.section-header {
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 6px;
  color: #fff;
}

.section-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.quests-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  transition: var(--transition-fast);
  cursor: pointer;
}

.quest-item:active {
  transform: scale(0.99);
  background: rgba(255, 255, 255, 0.04);
}

.quest-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding-right: 12px;
}

.quest-prompt {
  font-size: 14px;
  font-weight: 500;
  color: #f5f6f8;
  line-height: 1.4;
}

.quest-points {
  font-size: 11px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quest-status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.quest-item.completed {
  border-color: rgba(92, 195, 140, 0.3);
  background: rgba(92, 195, 140, 0.03);
}

.quest-item.completed .quest-prompt {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.quest-item.completed .quest-status {
  border-color: var(--color-quest-green);
  background-color: var(--color-quest-green);
  color: #0f1012;
}

/* Gallery Tab */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-photo-wrapper {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #1a1b20;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.4s ease;
  filter: contrast(1.1) sepia(0.06); /* Analog filter overlay on gallery items */
}

.gallery-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-photo-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  padding: 6px 8px;
  font-size: 9px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Developing Overlay */
.developing-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.developing-view.hide {
  display: none !important;
}

.film-container {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(223, 186, 155, 0.05);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  color: var(--color-primary);
}

.chemical-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: rgba(223, 186, 155, 0.1);
  animation: wave 4s ease-in-out infinite alternate;
}

@keyframes wave {
  from { transform: translateY(10px) skewX(-10deg); }
  to { transform: translateY(0px) skewX(10deg); }
}

.developing-title {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff;
}

.developing-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Upload Queue Panel */
.upload-panel {
  position: absolute;
  bottom: 64px; /* Just above footer nav */
  left: 0;
  width: 100%;
  background: rgba(22, 23, 27, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
  z-index: 20;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-panel.hide {
  transform: translateY(100%);
  pointer-events: none;
}

.queue-header {
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

#queue-status-text {
  color: var(--color-primary);
}

.queue-list {
  max-height: 180px;
  overflow-y: auto;
  padding: 10px 20px;
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
}

.queue-thumbnail {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  background-color: #2c2d30;
}

.queue-details {
  flex: 1;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.queue-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.queue-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.queue-progress-fill {
  height: 100%;
  background: var(--color-primary);
  width: 10%;
  transition: width 0.3s ease;
}

.queue-retry-btn {
  background: none;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  cursor: pointer;
}

/* Tab Navigation Footer */
.app-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(15, 16, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 30;
}

.nav-item {
  background: none;
  border: none;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 6px 12px;
  border-radius: 12px;
}

.nav-item svg {
  stroke-width: 1.5;
  transition: var(--transition-fast);
}

.nav-item.active {
  color: var(--color-primary);
}

.nav-item.active svg {
  transform: translateY(-2px);
  stroke: var(--color-primary);
}

/* Micro Interactions (Ripple effect setup) */
.ripple {
  position: relative;
  overflow: hidden;
}

/* Filter selector bar style */
.filter-selector-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  width: 100%;
  overflow-x: auto;
  padding: 4px 0;
}

.filter-option-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--color-text-muted);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.filter-option-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.filter-option-btn.active {
  background: var(--color-primary);
  color: #0f1012;
  border-color: var(--color-primary);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(223, 186, 155, 0.3);
}

/* Gamification Scoreboard */
.scoreboard-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  margin-bottom: 20px;
  gap: 12px;
}

.score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-points {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  font-family: var(--font-sans);
  text-shadow: 0 0 10px rgba(223, 186, 155, 0.3);
}

.score-label {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.scoreboard-toggle-row {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 2px;
  width: 100%;
  max-width: 280px;
}

.score-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-sans);
  padding: 8px 12px;
  border-radius: 18px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.score-tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
}

/* Leaderboard Styling */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px 14px;
  gap: 12px;
  animation: slideUp 0.3s ease;
}

.leaderboard-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.leaderboard-item.rank-1 .leaderboard-rank {
  background: var(--color-primary);
  color: #0f1012;
}

.leaderboard-item.rank-2 .leaderboard-rank {
  background: #d4d4d4;
  color: #0f1012;
}

.leaderboard-item.rank-3 .leaderboard-rank {
  background: #cd7f32;
  color: #0f1012;
}

.leaderboard-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.leaderboard-score {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Likes Heart button in Gallery */
.gallery-photo-wrapper {
  position: relative;
}

.photo-like-btn {
  position: absolute;
  bottom: 30px; /* Shifted slightly up from uploader guest label */
  right: 8px;
  background: rgba(15, 16, 18, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 10px;
  font-family: var(--font-sans);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.photo-like-btn.liked svg {
  fill: #ff6b6b;
  stroke: #ff6b6b;
}

.photo-like-btn svg {
  stroke-width: 2px;
}

/* Video layout in gallery */
.video-gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(circle, #222 0%, #111 100%);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.video-play-overlay {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #0f1012;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(223, 186, 155, 0.4);
  transition: transform 0.2s ease;
}

.video-gallery-item:hover .video-play-overlay {
  transform: scale(1.1);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.modal-overlay.hide {
  display: none !important;
}

.modal-content {
  width: 100%;
  max-width: 360px;
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

.modal-sparkles {
  font-size: 24px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #fff;
  margin: 0;
}

.modal-message {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.referral-banner {
  background: rgba(223, 186, 155, 0.05);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 16px;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
}

.referral-banner h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--color-primary);
  margin: 0;
}

.referral-banner p {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0;
}

.referral-btn {
  text-decoration: none;
  font-size: 13px;
  padding: 8px 16px;
  width: 100%;
  display: inline-block;
  box-sizing: border-box;
}

.animate-pop {
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Video Containers */
.video-mic-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 30px 0;
}

.video-shutter-btn {
  cursor: pointer;
}
.video-shutter-inner {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #0f1012;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(223, 186, 155, 0.4);
  transition: transform 0.2s ease;
}
.video-shutter-inner:active {
  transform: scale(0.9);
}

