/* ============================================
   DISPOSABLE CAMERA WEB APP
   Retro / Nostalgic Aesthetic Stylesheet
   ============================================ */

/* ─── Reset & Base ────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #f5f0e8;
  --cream-dark: #e8e0d0;
  --off-black: #1a1a1a;
  --dark-brown: #2c2420;
  --warm-gray: #6b6560;
  --orange: #d4763a;
  --orange-light: #e8944f;
  --teal: #4a7c7c;
  --teal-light: #6b9e9e;
  --red: #c94f4f;
  --white: #ffffff;
  --grain-opacity: 0.04;

  --font-mono: 'Courier New', 'Courier', 'Lucida Sans Typewriter', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-width: 800px;
  --border-radius: 4px;
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--off-black);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ─── Film Grain Overlay ──────────────────── */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ─── Utility ─────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.page {
  padding: 40px 0 60px;
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

/* ─── Typography ──────────────────────────── */
h1 {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--off-black);
}

h2 {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--off-black);
}

h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--warm-gray);
}

p, label, .text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--off-black);
}

.mono {
  font-family: var(--font-mono);
}

.small {
  font-size: 0.8rem;
  color: var(--warm-gray);
}

/* ─── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid var(--off-black);
  border-radius: var(--border-radius);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--off-black);
  color: var(--cream);
  text-decoration: none;
}

.btn:hover {
  background: var(--cream);
  color: var(--off-black);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--off-black);
}

.btn--outline:hover {
  background: var(--off-black);
  color: var(--cream);
}

.btn--danger {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn--danger:hover {
  background: #b33d3d;
  border-color: #b33d3d;
  color: var(--white);
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ─── Inputs ──────────────────────────────── */
.input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--border-radius);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--off-black);
  outline: none;
  transition: border-color var(--transition);
}

.input:focus {
  border-color: var(--orange);
}

.input::placeholder {
  color: var(--warm-gray);
  opacity: 0.6;
}

/* ─── Card ────────────────────────────────── */
.card {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

.card__title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--off-black);
}

/* ─── Header ──────────────────────────────── */
.header {
  background: var(--off-black);
  color: var(--cream);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream);
}

.header__subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--warm-gray);
}

/* ─── Landing Page ────────────────────────── */
.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  text-align: center;
}

.landing__logo {
  margin-bottom: 32px;
}

.landing__logo-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 16px;
}

.landing__logo-text {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--off-black);
}

.landing__tagline {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin-bottom: 48px;
  letter-spacing: 2px;
}

.landing__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 600px;
}

@media (max-width: 600px) {
  .landing__cards {
    grid-template-columns: 1fr;
  }
}

.landing__card {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  padding: 32px 24px;
  cursor: pointer;
  transition: all var(--transition);
}

.landing__card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.landing__card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.landing__card-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.landing__card-desc {
  font-size: 0.85rem;
  color: var(--warm-gray);
  line-height: 1.5;
}

/* ─── Form Section ────────────────────────── */
.form-section {
  max-width: 480px;
  margin: 0 auto;
}

.form-section__title {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--off-black);
}

.form-group .input {
  margin-bottom: 4px;
}

.form-group .hint {
  font-size: 0.75rem;
  color: var(--warm-gray);
}

/* ─── Camera Page ─────────────────────────── */
.camera {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.camera__counter {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  padding: 12px 24px;
  background: var(--off-black);
  color: var(--cream);
  border-radius: var(--border-radius);
  letter-spacing: 1px;
  width: 100%;
}

.camera__counter span {
  color: var(--orange);
}

.camera__viewfinder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--off-black);
  border: 4px solid var(--dark-brown);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}

.camera__viewfinder video,
.camera__viewfinder img,
.camera__viewfinder canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viewfinder__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border: 12px solid rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Center crosshair */
.viewfinder__crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  pointer-events: none;
}

.viewfinder__crosshair::before,
.viewfinder__crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.25);
}

.viewfinder__crosshair::before {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
}

.viewfinder__crosshair::after {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}

.camera__controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.camera__shutter {
  width: 72px;
  height: 72px;
  border: 4px solid var(--off-black);
  border-radius: 50%;
  background: radial-gradient(circle, var(--cream) 40%, var(--cream-dark) 100%);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.camera__shutter::after {
  content: '';
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cream-dark) 40%, var(--warm-gray) 100%);
  position: absolute;
  transition: all 0.1s ease;
}

.camera__shutter:active::after {
  transform: scale(0.85);
}

.camera__shutter:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Flash effect */
.camera__flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.05s ease;
}

.camera__flash.active {
  opacity: 1;
}

.camera__flash.fade {
  transition: opacity 0.4s ease;
  opacity: 0;
}

/* ─── Filmstrip ───────────────────────────── */
.filmstrip {
  width: 100%;
  max-width: 600px;
  margin: 24px auto;
  padding: 12px;
  background: var(--off-black);
  border-radius: var(--border-radius);
}

.filmstrip__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--warm-gray);
  margin-bottom: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

.filmstrip__photos {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--warm-gray) transparent;
}

.filmstrip__photos::-webkit-scrollbar {
  height: 4px;
}

.filmstrip__photos::-webkit-scrollbar-thumb {
  background: var(--warm-gray);
  border-radius: 2px;
}

.filmstrip__thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--cream-dark);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.filmstrip__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filmstrip__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--warm-gray);
}

.filmstrip__thumb--empty::after {
  content: '';
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--warm-gray) 0,
    var(--warm-gray) 2px,
    transparent 2px,
    transparent 6px
  );
}

/* ─── Host Dashboard ──────────────────────── */
.host__header {
  text-align: center;
  margin-bottom: 32px;
}

.host__title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.host__event-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.host__stat {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: var(--border-radius);
  padding: 16px;
  text-align: center;
}

.host__stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
}

.host__stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.host__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* ─── Live Photo Grid ─────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.photo-grid__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--cream-dark);
  border-radius: var(--border-radius);
  background: var(--cream-dark);
}

.photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.photo-grid__item:hover img {
  transform: scale(1.05);
}

.photo-grid__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 16px 8px 6px;
  letter-spacing: 0.5px;
}

.photo-grid__shot-num {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 2px;
}

/* ─── Development Animation ───────────────── */
.develop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 40px 20px;
}

.develop__animation {
  width: 300px;
  height: 300px;
  position: relative;
  margin-bottom: 32px;
}

.develop__liquid {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--teal) 0%,
    var(--teal-light) 40%,
    var(--cream-dark) 100%
  );
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  animation: developLiquid 2s ease-in-out infinite alternate;
}

@keyframes developLiquid {
  0% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  25% { border-radius: 55% 45% 60% 40% / 45% 55% 40% 60%; }
  50% { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
  75% { border-radius: 60% 40% 50% 50% / 40% 60% 50% 50%; }
  100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
}

.develop__liquid::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 50%
  );
  animation: developShimmer 3s ease-in-out infinite;
}

@keyframes developShimmer {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(5%, 5%) rotate(5deg); }
}

.develop__liquid::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 20%;
  width: 60%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 8px,
    rgba(255, 255, 255, 0.2) 8px,
    rgba(255, 255, 255, 0.2) 10px
  );
  animation: developBubble 1.5s ease-in-out infinite;
}

@keyframes developBubble {
  0%, 100% { transform: translateX(0); opacity: 0.3; }
  50% { transform: translateX(10%); opacity: 1; }
}

.develop__text {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  margin-bottom: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--off-black);
}

.develop__subtext {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--warm-gray);
  letter-spacing: 1px;
}

.develop__progress {
  width: 200px;
  height: 4px;
  background: var(--cream-dark);
  border-radius: 2px;
  margin: 24px auto;
  overflow: hidden;
}

.develop__progress-bar {
  height: 100%;
  background: var(--teal);
  width: 0%;
  border-radius: 2px;
  animation: developProgress 8s linear forwards;
}

@keyframes developProgress {
  0% { width: 0%; }
  20% { width: 15%; }
  40% { width: 35%; }
  60% { width: 55%; }
  80% { width: 80%; }
  100% { width: 100%; }
}

/* ─── Gallery Page ────────────────────────── */
.gallery {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px;
}

.gallery__header {
  text-align: center;
  margin-bottom: 32px;
}

.gallery__title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.gallery__subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--warm-gray);
}

/* Guest group separators */
.gallery__guest-group {
  margin-bottom: 36px;
}

.gallery__guest-header {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 12px 0;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--cream-dark);
  color: var(--off-black);
  letter-spacing: 1px;
}

.gallery__guest-header span {
  color: var(--warm-gray);
  font-size: 0.9rem;
  font-weight: 400;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.gallery__photo {
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--cream-dark);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--cream-dark);
  position: relative;
}

.gallery__photo:hover {
  border-color: var(--orange);
  transform: scale(1.02);
}

.gallery__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__photo-num {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 2px;
}

/* ─── Lightbox ────────────────────────────── */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.lightbox__info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  letter-spacing: 1px;
}

/* ─── QR Code Section ─────────────────────── */
.qr-section {
  text-align: center;
  margin: 24px 0;
  padding: 24px;
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
}

.qr-section__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--warm-gray);
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.qr-section__link {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal);
  word-break: break-all;
  margin: 8px 0;
  text-decoration: none;
}

.qr-section__link:hover {
  text-decoration: underline;
}

/* ─── Camera Switch ───────────────────────── */
.camera-mode-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: center;
}

.camera-mode-btn {
  padding: 8px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--border-radius);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.camera-mode-btn.active {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.camera-mode-btn:hover:not(.active) {
  border-color: var(--orange);
}

/* ─── Mobile Camera Mode Selector ────────── */
.mobile-mode-selector {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.mobile-mode-selector__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--warm-gray);
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 2px;
}

.mobile-mode-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--border-radius);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  font-family: var(--font-body);
}

.mobile-mode-btn:active {
  transform: scale(0.98);
}

.mobile-mode-btn--primary {
  border-color: var(--orange);
  background: linear-gradient(135deg, #fff8f0, #fff);
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.15);
}

.mobile-mode-btn--primary.active {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 3px 12px rgba(230, 126, 34, 0.3);
}

.mobile-mode-btn--primary.active .mobile-mode-btn__title,
.mobile-mode-btn--primary.active .mobile-mode-btn__desc {
  color: var(--white);
}

.mobile-mode-btn--secondary {
  border-color: var(--cream-dark);
}

.mobile-mode-btn--secondary.active {
  border-color: var(--off-black);
  background: var(--off-black);
}

.mobile-mode-btn--secondary.active .mobile-mode-btn__title {
  color: var(--white);
}

.mobile-mode-btn--secondary.active .mobile-mode-btn__desc {
  color: rgba(255, 255, 255, 0.7);
}

.mobile-mode-btn__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.mobile-mode-btn__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.mobile-mode-btn__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--off-black);
  transition: color var(--transition);
}

.mobile-mode-btn__desc {
  font-size: 0.78rem;
  color: var(--warm-gray);
  transition: color var(--transition);
}

.mobile-mode-btn__badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--orange);
  color: var(--white);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-mode-btn--primary.active .mobile-mode-btn__badge {
  background: rgba(255, 255, 255, 0.25);
}

/* ─── Animations ──────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--cream-dark);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

/* ─── Toast / Notification ────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--off-black);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

/* ─── Date Stamp ──────────────────────────── */
.date-stamp {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--orange);
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ─── Accessibility / UX Enhancements ────── */

/* Larger base font for readability */
html {
  font-size: 16px;
}

body {
  font-size: 1rem;
  line-height: 1.6;
}

/* Improve text contrast everywhere */
p, label, .text, .landing__card-desc, .form-group label {
  color: var(--off-black);
}

/* Bigger form labels */
.form-group label {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* Bigger inputs */
.input {
  padding: 14px 18px;
  font-size: 1.1rem;
}

/* Larger tap targets for all buttons */
.btn {
  padding: 14px 32px;
  font-size: 1rem;
  min-height: 48px;
  min-width: 48px;
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.9rem;
  min-height: 44px;
}

/* Focus styles for keyboard nav */
.btn:focus-visible,
.input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Landing page cards — make them bigger and more tappable */
.landing__card {
  padding: 36px 28px;
  cursor: pointer;
}

.landing__card-title {
  font-size: 1.3rem;
}

.landing__card-desc {
  font-size: 1rem;
  line-height: 1.6;
}

/* ─── Onboarding Overlay ──────────────────── */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.onboarding-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.onboarding-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
}

.onboarding-card__step-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.onboarding-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cream-dark);
  transition: background 0.3s ease;
}

.onboarding-card__dot.active {
  background: var(--orange);
  width: 28px;
  border-radius: 5px;
}

.onboarding-card__icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.onboarding-card__title {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--off-black);
  letter-spacing: 1px;
}

.onboarding-card__desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--warm-gray);
  margin-bottom: 24px;
}

.onboarding-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border: 2px solid var(--orange);
  border-radius: var(--border-radius);
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  min-height: 48px;
  min-width: 120px;
}

.onboarding-card__btn:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
}

.onboarding-card__skip {
  display: block;
  margin-top: 16px;
  background: none;
  border: none;
  color: var(--warm-gray);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 8px;
}

/* ─── Tooltip / Tutorial ──────────────────── */
.tutorial-tooltip {
  position: fixed;
  z-index: 4000;
  background: var(--off-black);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 16px 20px;
  border-radius: 8px;
  max-width: 280px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  animation: tutorialPulse 2s ease-in-out infinite;
}

.tutorial-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: var(--off-black) transparent transparent transparent;
}

.tutorial-tooltip--top::after {
  top: 100%;
  bottom: auto;
  border-color: var(--off-black) transparent transparent transparent;
}

.tutorial-tooltip--bottom::after {
  top: auto;
  bottom: 100%;
  border-color: transparent transparent var(--off-black) transparent;
}

@keyframes tutorialPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ─── Camera Action Buttons (Large) ───────── */
.camera__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  padding: 18px 24px;
  border: 2px solid var(--off-black);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 60px;
}

.camera__action-btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.camera__action-btn--primary:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
}

.camera__action-btn--secondary {
  background: var(--white);
  color: var(--off-black);
}

.camera__action-btn--secondary:hover {
  background: var(--off-black);
  color: var(--cream);
}

.camera__action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Confirm step overlay for save */
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.confirm-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.confirm-dialog {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.confirm-dialog__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.confirm-dialog__title {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--off-black);
}

.confirm-dialog__desc {
  font-size: 1rem;
  color: var(--warm-gray);
  margin-bottom: 24px;
  line-height: 1.5;
}

.confirm-dialog__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ─── Take Photo Button (extra large) ─────── */
.camera__shutter--large {
  width: 88px;
  height: 88px;
  border: 5px solid var(--off-black);
  border-radius: 50%;
  background: radial-gradient(circle, var(--cream) 40%, var(--cream-dark) 100%);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.camera__shutter--large::after {
  content: '';
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cream-dark) 40%, var(--warm-gray) 100%);
  position: absolute;
  transition: all 0.1s ease;
}

.camera__shutter--large:active::after {
  transform: scale(0.85);
}

.camera__shutter--large:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Pulse animation for shutter button */
@keyframes shutterPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 118, 58, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(212, 118, 58, 0); }
}

.camera__shutter--large.pulse {
  animation: shutterPulse 2s ease-in-out infinite;
}

/* ─── Progress Bar ────────────────────────── */
.progress-bar-container {
  width: 100%;
  max-width: 400px;
  margin: 12px auto;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-bar-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--warm-gray);
  text-align: center;
  margin-top: 4px;
  letter-spacing: 1px;
}

/* ─── Plain English Error Messages ────────── */
.error-friendly {
  background: #fff3f3;
  border: 2px solid var(--red);
  border-radius: 8px;
  padding: 20px 24px;
  text-align: center;
  margin: 16px 0;
}

.error-friendly__icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.error-friendly__title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 8px;
}

.error-friendly__desc {
  font-size: 0.95rem;
  color: var(--off-black);
  line-height: 1.5;
  margin-bottom: 12px;
}

.error-friendly__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: 2px solid var(--red);
  border-radius: var(--border-radius);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 44px;
}

.error-friendly__btn:hover {
  background: #b33d3d;
  border-color: #b33d3d;
}

/* ─── Offline Banner ──────────────────────── */
.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px 16px;
  z-index: 3000;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.offline-banner.show {
  transform: translateY(0);
}

/* ─── Retry Button ────────────────────────── */
.retry-section {
  text-align: center;
  padding: 16px;
  margin: 12px 0;
}

.retry-section__message {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin-bottom: 12px;
}

.retry-section__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid var(--orange);
  border-radius: var(--border-radius);
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  min-height: 48px;
}

.retry-section__btn:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
}

/* ─── Welcome Back Banner ─────────────────── */
.welcome-back {
  background: var(--off-black);
  color: var(--cream);
  text-align: center;
  padding: 16px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  width: 100%;
  max-width: 600px;
}

.welcome-back__name {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--orange);
}

.welcome-back__shots {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cream);
  margin-top: 4px;
}

/* ─── Photo Saved Confirmation ────────────── */
.photo-saved-confirmation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #e8f5e9;
  border: 2px solid #4caf50;
  border-radius: 8px;
  margin: 8px 0;
  animation: fadeIn 0.3s ease;
}

.photo-saved-confirmation__icon {
  font-size: 1.3rem;
}

.photo-saved-confirmation__text {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: #2e7d32;
}

/* ─── Guest Cards (Large readable) ────────── */
.guest-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin-bottom: 8px;
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  transition: all var(--transition);
}

.guest-card:hover {
  border-color: var(--orange);
}

.guest-card__name {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--off-black);
}

.guest-card__stats {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--warm-gray);
}

/* ─── Back to Event Link ──────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--teal);
  text-decoration: none;
  padding: 10px 0;
  margin: 8px 0;
}

.back-link:hover {
  text-decoration: underline;
  color: var(--teal-light);
}

/* ─── Step Wizard ─────────────────────────── */
.step-wizard {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}

.step-wizard__step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--warm-gray);
  border-radius: 20px;
  transition: all var(--transition);
}

.step-wizard__step.active {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
}

.step-wizard__step.completed {
  color: var(--teal);
}

.step-wizard__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream-dark);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--warm-gray);
}

.step-wizard__step.active .step-wizard__step-number {
  background: rgba(255,255,255,0.3);
  color: var(--white);
}

.step-wizard__step.completed .step-wizard__step-number {
  background: var(--teal);
  color: var(--white);
}

.step-wizard__step-connector {
  width: 20px;
  height: 2px;
  background: var(--cream-dark);
  margin: 0 4px;
  align-self: center;
}

/* ─── Camera Permission Denied ────────────── */
.camera-permission-card {
  padding: 24px;
  text-align: center;
}

.camera-permission-card__icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.camera-permission-card__title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--off-black);
}

.camera-permission-card__desc {
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* ─── Skip Button (develop page) ──────────── */
.skip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: transparent;
  border: 2px solid var(--warm-gray);
  border-radius: var(--border-radius);
  color: var(--warm-gray);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 44px;
  transition: all var(--transition);
  margin-top: 24px;
}

.skip-btn:hover {
  border-color: var(--off-black);
  color: var(--off-black);
}

/* ─── Empty state for gallery ─────────────── */
.gallery__empty {
  text-align: center;
  padding: 60px 20px;
}

.gallery__empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.gallery__empty-title {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--off-black);
}

.gallery__empty-desc {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--warm-gray);
}

/* ─── Confirmation overlay for develop ────── */
.confirm-develop__list {
  text-align: left;
  margin: 12px 0;
  padding: 0 12px;
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.8;
}

.confirm-develop__list li {
  list-style: none;
  padding-left: 24px;
  position: relative;
}

.confirm-develop__list li::before {
  content: '•';
  position: absolute;
  left: 8px;
  color: var(--orange);
  font-weight: bold;
}

/* ─── Responsive (480px) ──────────────────── */
@media (max-width: 480px) {
  html { font-size: 15px; }

  .landing__logo-text { font-size: 1.6rem; }

  .photo-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }

  .camera__shutter--large { width: 76px; height: 76px; }

  .camera__shutter--large::after { width: 48px; height: 48px; }

  .camera__action-btn {
    padding: 16px 20px;
    font-size: 1.05rem;
    min-height: 54px;
  }

  .onboarding-card {
    padding: 28px 20px;
  }

  .guest-card {
    padding: 12px;
  }

  .step-wizard__step {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .camera-mode-selector {
    display: none;
  }

  .mobile-mode-selector {
    display: flex;
  }
}

/* ─── Reduced Motion ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Host Management Panel (Control Room) ── */

.host-panel {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.host-panel__section {
  margin-bottom: 32px;
}

.host-panel__section-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--warm-gray);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cream-dark);
}

.host-panel__section-title .badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  font-size: 0.7rem;
  border-radius: 10px;
  vertical-align: middle;
}

/* Status badge */
.status-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-badge--active {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #4caf50;
}

.status-badge--developing {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ff9800;
}

.status-badge--developed {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #42a5f5;
}

/* Event config card */
.config-card {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 12px;
}

.config-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cream-dark);
}

.config-card__row:last-child {
  border-bottom: none;
}

.config-card__label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--off-black);
  min-width: 140px;
}

.config-card__value {
  flex: 1;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--warm-gray);
}

.config-card__edit {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

.config-card__edit .input {
  max-width: 160px;
  padding: 8px 12px;
  font-size: 0.85rem;
}

.config-card__edit .btn--small {
  padding: 6px 12px;
  font-size: 0.75rem;
  min-height: 32px;
}

.config-card__action-btn {
  background: none;
  border: none;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-card__action-btn:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* Share section */
.share-section {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.share-section__link {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--teal);
  word-break: break-all;
  margin: 12px 0;
  text-decoration: none;
  background: var(--cream);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  border: 1px solid var(--cream-dark);
}

.share-section__link:hover {
  text-decoration: underline;
}

.share-section__qr {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.share-section__qr canvas,
.share-section__qr img {
  border: 2px solid var(--cream-dark);
  border-radius: var(--border-radius);
}

/* Stats overview cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--orange);
}

.stat-card__value {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
  line-height: 1.2;
}

.stat-card__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-top: 4px;
}

.stat-card--warning .stat-card__value {
  color: var(--red);
}

.stat-card--success .stat-card__value {
  color: var(--teal);
}

/* Guest list */
.guest-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guest-entry {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
}

.guest-entry:hover {
  border-color: var(--orange);
}

.guest-entry__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--warm-gray);
  flex-shrink: 0;
}

.guest-entry__info {
  flex: 1;
  min-width: 0;
}

.guest-entry__name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--off-black);
}

.guest-entry__shots {
  font-size: 0.8rem;
  color: var(--warm-gray);
  margin-top: 2px;
}

.guest-entry__progress {
  width: 100%;
  height: 4px;
  background: var(--cream-dark);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.guest-entry__progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
  background: var(--teal);
}

.guest-entry__progress-fill--high {
  background: var(--orange);
}

.guest-entry__progress-fill--full {
  background: var(--red);
}

.guest-entry__thumbs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.guest-entry__thumb {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--cream-dark);
  background: var(--cream-dark);
}

.guest-entry__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Live photo feed */
.live-feed {
  position: relative;
}

.live-feed__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.live-feed__indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-feed__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  animation: livePulse 2s ease-in-out infinite;
}

.live-feed__dot--inactive {
  background: var(--warm-gray);
  animation: none;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Host photo grid (larger thumbnails) */
.host-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.host-photo-grid__item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 2px solid var(--cream-dark);
  border-radius: var(--border-radius);
  background: var(--cream-dark);
  transition: all var(--transition);
}

.host-photo-grid__item:hover {
  border-color: var(--orange);
  transform: scale(1.02);
}

.host-photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.host-photo-grid__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 20px 8px 6px;
  letter-spacing: 0.5px;
}

.host-photo-grid__shot-num {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 2px;
}

/* Develop controls */
.develop-controls {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
}

.develop-controls__title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--off-black);
}

.develop-controls__desc {
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin-bottom: 20px;
  line-height: 1.5;
}

.develop-controls__auto {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal);
  margin-top: 12px;
  padding: 8px 12px;
  background: #e8f5e9;
  border-radius: var(--border-radius);
  display: inline-block;
}

.develop-controls__btn {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* Developed state */
.developed-hero {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  margin-bottom: 32px;
}

.developed-hero__icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.developed-hero__title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--off-black);
}

.developed-hero__subtitle {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin-bottom: 20px;
}

.developed-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Post-development gallery */
.developed-gallery {
  margin-top: 24px;
}

.developed-guest-group {
  margin-bottom: 36px;
}

.developed-guest-header {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 0;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--cream-dark);
  color: var(--off-black);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.developed-guest-header span {
  color: var(--warm-gray);
  font-size: 0.8rem;
}

.developed-guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.developed-photo {
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--cream-dark);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--cream-dark);
  position: relative;
}

.developed-photo:hover {
  border-color: var(--orange);
  transform: scale(1.02);
}

.developed-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Filmstrip download */
.filmstrip-container {
  max-width: 400px;
  margin: 20px auto;
  padding: 16px;
  background: var(--off-black);
  border-radius: var(--border-radius);
}

.filmstrip-container img {
  width: 100%;
  display: block;
  margin-bottom: 4px;
}

/* Confirmation dialog */
.confirm-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.confirm-dialog-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.confirm-dialog-box {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  max-width: 420px;
  width: 90%;
  text-align: center;
}

.confirm-dialog-box__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.confirm-dialog-box__title {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--off-black);
}

.confirm-dialog-box__desc {
  font-size: 0.95rem;
  color: var(--warm-gray);
  margin-bottom: 24px;
  line-height: 1.5;
}

.confirm-dialog-box__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Responsive */
@media (max-width: 600px) {
  .host-panel {
    padding: 16px 12px 40px;
  }

  .config-card__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .config-card__edit {
    width: 100%;
    justify-content: flex-start;
  }

  .config-card__value {
    text-align: left;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .host-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guest-entry {
    flex-wrap: wrap;
  }

  .guest-entry__thumbs {
    width: 100%;
    justify-content: flex-end;
  }

  .developed-guest-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .share-section__link {
    font-size: 0.85rem;
  }
}

/* ─── Resume Session Card (landing page) ────── */

.resume-card {
  background: var(--cream);
  border: 2px solid var(--teal);
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.resume-card--host {
  border-color: var(--orange);
}

.resume-card--host .resume-card__title {
  color: var(--orange-dark);
}

.resume-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.resume-card__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.resume-card__title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--off-black);
}

.resume-card__subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--warm-gray);
  margin-top: 2px;
}

.resume-card__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ─── Welcome Back Banner (camera page) ─────── */

.welcome-back {
  background: linear-gradient(135deg, var(--teal), #3a9b8c);
  color: var(--white);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
  text-align: center;
}

.welcome-back__name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.welcome-back__shots {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  opacity: 0.9;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
