/* ==========================================================================
   LuminaGallery - Estilos Modernos & Design Luxo para Fotografia
   ========================================================================== */

:root {
  /* Paleta Oficial henry.fot.br */
  --brand: #242930;
  --bg-main: #242930;         /* Fundo oficial de henry.fot.br */
  --bg-alt: #1D2228;          /* Fundo secundário/nav */
  --bg-card: #2C3340;         /* Card oficial de henry.fot.br */
  --bg-card-hover: #353E4D;   /* Hover dos cards */
  --bg-glass: rgba(29, 34, 40, 0.94);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.16);

  --text-main: #F5F5F5;       /* Texto branco oficial */
  --text-muted: #8A9BAC;      /* Texto suavizado oficial */
  --text-dim: #6B7B8D;

  --accent: #B38E58;          /* O clássico dourado/bronze nobre do henry.fot.br */
  --accent-hover: #C9A468;
  --accent-light: rgba(179, 142, 88, 0.15);
  --accent-text: #C9A86C;

  --success: #25D366;         /* Verde WhatsApp oficial */
  --success-light: rgba(37, 211, 102, 0.15);
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.15);
  --info: #4A90C4;            /* Azul suave do site henry.fot.br */
  --info-light: rgba(74, 144, 196, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Ruda', 'Cormorant Garant', Georgia, serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(179, 142, 88, 0.25);
}

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

html, body {
  overscroll-behavior-x: none;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar estilizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* Spinner e Loader */
.initial-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  gap: 16px;
  color: var(--text-muted);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Layout Geral */
.header {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: max(8px, env(safe-area-inset-top, 8px));
  transition: padding-top 0.2s ease;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
}

.brand-logo-img {
  width: auto;
  height: 40px;
  max-width: 160px;
  max-height: 40px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.logo-brand:hover .brand-logo-img {
  transform: scale(1.03);
  filter: drop-shadow(0 6px 18px rgba(212, 175, 55, 0.45));
}

.hero-brand-logo {
  width: 200px;
  height: 200px;
  max-width: 200px;
  max-height: 200px;
  margin: 0 auto 20px auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.85));
  transition: transform 0.3s ease;
}

.hero-brand-logo:hover {
  transform: scale(1.03);
}

.brand-text-logo {
  font-family: 'Cinzel', 'Cormorant Garant', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #DFC085;
  background: linear-gradient(135deg, #FFF5DF 0%, #DFC085 40%, #B38E58 80%, #8E6830 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: opacity 0.2s;
  cursor: pointer;
}

.brand-text-logo .brand-sep {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: #B38E58;
  -webkit-text-fill-color: #B38E58;
  opacity: 0.8;
  margin: 0 2px;
}

.logo-brand .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-glow);
}

.logo-brand h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.logo-brand span {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-btn:hover {
  color: var(--text-main);
  background: var(--bg-card);
}

.nav-btn.active {
  color: var(--accent-text);
  background: var(--accent-light);
  border-color: rgba(245, 158, 11, 0.3);
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px 24px 120px 24px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #1A1410;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(179, 142, 88, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #1A1410;
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.btn-success {
  background: var(--success);
  color: #ffffff;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* Badges de Status */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.aguardando_pagamento {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.comprovante_enviado {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(59, 130, 246, 0.4); }
  50% { border-color: #60a5fa; box-shadow: 0 0 10px rgba(59, 130, 246, 0.3); }
}

.status-badge.pago,
.status-badge.aprovado {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-badge.finalizado,
.status-badge.entregue {
  background: rgba(147, 197, 253, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.35);
}

/* Barra de Filtros de Pedidos */
.order-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 20px 0;
}

.filter-pill {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
  background: var(--accent);
  color: #1A1410;
  border-color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   Banner de Capa Estilo Alboom & Galeria Pública
   ========================================================================== */
.alboom-hero-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 40px;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-color: #131b26;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.alboom-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 15, 23, 0.45) 0%,
    rgba(11, 15, 23, 0.75) 50%,
    rgba(11, 15, 23, 0.95) 100%
  );
  backdrop-filter: blur(2px);
}

.alboom-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px;
  max-width: 800px;
  width: 100%;
}

.alboom-hero-content .studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-text);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.alboom-hero-content h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

@media (max-width: 640px) {
  .alboom-hero-content h1 { font-size: 30px; }
  .alboom-hero-banner { min-height: 340px; }
}

.alboom-hero-content .alboom-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.alboom-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.expiration-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.expiration-pill.ok {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.package-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(19, 27, 38, 0.85);
  border: 1px solid var(--border-light);
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 14px;
}

.package-info-pill span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.package-info-pill strong {
  color: var(--accent-text);
}

/* Card de Galeria Expirada */
.expired-card {
  text-align: center;
  padding: 50px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 580px;
  margin: 60px auto;
  box-shadow: var(--shadow-lg);
}

.expired-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

/* Filtros da Galeria */
.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.filter-tab {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab.active {
  background: var(--accent);
  color: #0b0f17;
}

/* Botão de Modo Seleção Ativo */
.filter-tab.active-multi {
  background: #22c55e !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4) !important;
}

/* Botão de Enviar Seleção no Topo da Galeria */
.filter-tab.send-selection-nav-btn {
  background: #22c55e !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.4) !important;
  animation: pulseGreen 2s infinite ease-in-out;
  cursor: pointer;
}

.filter-tab.send-selection-nav-btn:hover {
  background: #16a34a !important;
  transform: translateY(-1px);
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 2px 10px rgba(34, 197, 94, 0.35); }
  50% { box-shadow: 0 2px 18px rgba(34, 197, 94, 0.7); }
}

/* Banner de Instrução do Modo Seleção Rápida */
.multi-select-banner {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(19, 27, 38, 0.95));
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.multi-select-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #86efac;
  font-size: 14px;
}

.multi-select-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-toolbar-hint {
  font-size: 13px;
  color: var(--text-muted);
}

/* Grade de Fotos */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Estilização da Grade no Modo Seleção Ativo */
.photo-grid.multi-select-active .photo-card {
  cursor: pointer;
  border-width: 3px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.photo-grid.multi-select-active .photo-card:active {
  transform: scale(0.97);
}

.photo-grid.multi-select-active .photo-card:not(.selected) {
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0.85;
}

.photo-grid.multi-select-active .photo-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(223, 192, 133, 0.4), 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 1;
}

.photo-grid.multi-select-active .photo-card.selected::before {
  content: '✓';
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #0b0f17;
  font-weight: 900;
  font-size: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 6;
}

@media (max-width: 640px) {
  .gallery-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    padding: 3px;
  }

  .filter-tab {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
    padding: 10px 6px;
    font-size: 13px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .filter-tab:last-child {
    flex: 1 1 100%;
  }

  .gallery-toolbar-hint {
    text-align: center;
    font-size: 12px;
  }

  .multi-select-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 10px;
  }

  .multi-select-actions {
    display: flex;
    gap: 8px;
  }

  .multi-select-actions button {
    flex: 1;
    justify-content: center;
    text-align: center;
    padding: 10px 8px !important;
    font-size: 13px !important;
    min-height: 42px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.photo-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  user-select: none;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.photo-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Marca d'água de proteção sobreposta */
.watermark-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 45px,
    rgba(255, 255, 255, 0.04) 45px,
    rgba(255, 255, 255, 0.04) 90px
  );
}

.watermark-text {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  transform: rotate(-30deg);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Botão de Seleção Flutuante na Foto */
.select-photo-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-card.selected .select-photo-btn {
  background: var(--accent);
  color: #0b0f17;
  border-color: var(--accent);
  transform: scale(1.05);
}

.photo-filename-tag {
  display: none !important;
}

/* Exibe a tag apenas dentro do painel do fotógrafo (admin) */
.admin-view .photo-filename-tag,
.data-card .photo-filename-tag {
  display: block !important;
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(29, 34, 40, 0.9);
  backdrop-filter: blur(4px);
  color: #F5F5F5;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Barra Fixa Inferior de Seleção (Sticky Cart) */
.sticky-selection-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(29, 34, 40, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 16px 24px max(16px, env(safe-area-inset-bottom, 16px)) 24px;
  z-index: 50;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.3s ease;
  touch-action: manipulation;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.selection-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.selection-info {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.selection-count-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.selection-count-badge .count-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #1A1410;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.selection-count-badge .count-circle.over {
  background: var(--accent-hover);
  color: #1A1410;
  box-shadow: 0 0 16px rgba(179, 142, 88, 0.5);
}

.selection-math {
  display: flex;
  flex-direction: column;
}

.selection-math .math-formula {
  font-size: 13px;
  color: var(--text-muted);
}

.selection-math .math-total {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.selection-math .math-total strong {
  color: var(--accent-text);
}

/* ==========================================================================
   Modais: Lightbox, Checkout Pix, Detalhes
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  color: #ffffff;
  background: var(--border);
}

/* Lightbox em Tela Cheia */
.lightbox-container {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 120;
  display: flex;
  flex-direction: column;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(11, 15, 23, 0.7);
  backdrop-filter: blur(8px);
}

.lightbox-main {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

.lightbox-img-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  user-select: none;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: var(--accent);
  color: #0b0f17;
}

.lightbox-nav-btn.prev { left: 24px; }
.lightbox-nav-btn.next { right: 24px; }

/* ==========================================================================
   Área de Pagamento PIX e Upload de Comprovante
   ========================================================================== */
.pix-box {
  background: #0d131f;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin: 20px 0;
}

.pix-qr-wrapper {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.pix-copia-cola-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.pix-input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: monospace;
  font-size: 13px;
  flex: 1;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Área de Upload de Arquivos / Comprovante */
.upload-dropzone {
  border: 2px dashed var(--border-light);
  background: rgba(19, 27, 38, 0.5);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.upload-dropzone .upload-icon {
  font-size: 36px;
  color: var(--accent-text);
  margin-bottom: 8px;
}

.receipt-preview {
  margin-top: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.receipt-preview img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

/* ==========================================================================
   Painel Administrativo do Fotógrafo
   ========================================================================== */
.admin-header-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Tabelas e Cards de Galerias e Pedidos */
.data-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  padding: 20px;
  transition: all 0.2s;
}

.data-card:hover {
  border-color: var(--border-light);
}

.data-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.data-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Formulários */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--accent);
}

/* Remove setas de incremento/decremento dos campos numéricos */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Tarja Azul de Fotos Extras que o fotógrafo aprovou */
.extra-photos-blue-badge {
  background: rgba(74, 144, 196, 0.15);
  border: 1px solid rgba(74, 144, 196, 0.45);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #8ec5fc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

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

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
  min-width: 260px;
}

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

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--info); }

/* Badge de Destaque do Nome do Cliente no Cabeçalho */
.client-header-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.client-header-badge .client-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}

.client-header-badge .client-name {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.3px;
}

/* Faixa de Alerta Amigável: Faltam X fotos para completar o pacote */
.package-remaining-badge {
  background: rgba(179, 142, 88, 0.16);
  border: 1px solid rgba(179, 142, 88, 0.45);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #F3E7C4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Faixa de Pacote Completo (Verde) */
.package-completed-badge {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Separador de Mês Criado */
.month-separator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  margin: 28px 0 16px 0;
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.month-separator .month-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 12px;
}

/* Alternador de Visualização: Lista vs Box / Grade */
.view-toggle-group {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
}

.view-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.view-toggle-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.view-toggle-btn.active {
  background: var(--accent);
  color: #1A1410;
}

/* Modos de Grade e Lista */
.galleries-grid-view, .orders-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}

.galleries-list-view, .orders-list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   Tela de Login do Administrador (Área Exclusiva)
   ========================================================================== */
.admin-login-wrap {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
  width: 100%;
}

.admin-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

.admin-login-card .login-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto 16px auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.7));
}

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

.password-input-wrapper input {
  padding-right: 48px;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  transition: color 0.2s;
}

.password-toggle-btn:hover {
  color: var(--text-main);
}

.login-error-msg {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-top: 16px;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ==========================================================================
   MOBILE HAMBURGER & DRAWER NAVIGATION (PWA & MOBILE)
   ========================================================================== */
.mobile-hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-hamburger-btn:active {
  background: rgba(223, 192, 133, 0.15);
  border-color: #DFC085;
}

.mobile-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.mobile-sidebar-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 290px;
  max-width: 85vw;
  background: #0f1622;
  border-left: 1px solid var(--border);
  z-index: 9999;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.85);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
}

.mobile-sidebar-drawer.open {
  transform: translateX(0);
}

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

.mobile-sidebar-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mobile-sidebar-close:active {
  color: #fff;
  border-color: #fff;
}

.mobile-sidebar-body {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item:active {
  background: rgba(223, 192, 133, 0.1);
  border-color: rgba(223, 192, 133, 0.3);
}

.mobile-nav-item.active {
  background: rgba(223, 192, 133, 0.15);
  border-color: #DFC085;
  color: #DFC085;
}

.mobile-nav-item .nav-icon {
  font-size: 18px;
}

.mobile-nav-item .nav-label {
  flex: 1;
}

.mobile-nav-item .nav-count {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 12px;
  color: var(--text-muted);
}

.mobile-nav-item.active .nav-count {
  background: #DFC085;
  color: #0b0f17;
  font-weight: 700;
}

.mobile-sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.mobile-logout-item {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.mobile-logout-item:active {
  background: rgba(239, 68, 68, 0.2);
}

@media (max-width: 768px) {
  .nav-links.desktop-nav {
    display: none !important;
  }
  .mobile-hamburger-btn {
    display: none !important;
  }
  .mobile-sidebar-drawer, .mobile-sidebar-backdrop {
    display: none !important;
  }
  .header-container {
    padding: 6px 14px;
    min-height: 48px;
  }
  .brand-logo-img {
    height: 32px !important;
    width: auto !important;
    max-height: 32px !important;
  }
}

.order-actions-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 600px) {
  .order-actions-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

/* Abas de Mídia (Fotos / Takes de Vídeo) */
.media-tab-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 24px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  overflow-x: auto;
}
.media-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.media-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--border-light);
}
.media-tab-btn.active {
  background: var(--accent);
  color: #0b0f17;
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(223, 192, 133, 0.35);
}
.media-tab-btn .tab-badge {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}
.media-tab-btn.active .tab-badge {
  background: rgba(0, 0, 0, 0.2);
  color: #0b0f17;
}

/* Takes de Vídeo - Card & Overlay */
.video-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #DFC085;
  border: 1px solid rgba(223, 192, 133, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.5px;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}
.video-play-btn-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  border: 2px solid #DFC085;
  color: #DFC085;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  padding-left: 3px;
}
.photo-card:hover .video-play-btn-circle {
  transform: scale(1.15);
  background: #DFC085;
  color: #0b0f17;
  box-shadow: 0 6px 24px rgba(223, 192, 133, 0.5);
}

.video-duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 4;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  font-weight: 600;
}

/* Modal Lightbox de Vídeo */
.video-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(7, 10, 15, 0.94);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}
.video-lightbox-container {
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #0b0f17;
  border: 1px solid rgba(223, 192, 133, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
.video-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(18, 25, 38, 0.95);
  border-bottom: 1px solid var(--border);
}
.video-lightbox-video {
  width: 100%;
  max-height: 65vh;
  background: #000;
  outline: none;
}
.video-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(18, 25, 38, 0.95);
  border-top: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Admin Detail Actions Grid (Print 02/03/04 - Botões lado a lado no mobile)
   ========================================================================== */
.admin-detail-actions-grid {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .admin-detail-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
  }
  .admin-detail-actions-grid .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 8px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .admin-detail-actions-grid .btn-full-mobile {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Mobile PWA Bottom Navigation Bar & Layout Exclusivo para Celular (Print 05)
   ========================================================================== */
.mobile-pwa-bottom-nav,
.admin-pwa-bottom-nav,
.mobile-selection-top-bar {
  display: none;
}

@media (max-width: 768px) {
  /* Garante espaçamento para que a última linha de fotos não fique oculta */
  main.container {
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 16px)) !important;
  }

  /* No mobile, esconde a barra inferior de seleção para NÃO travar o scroll (Print 01) */
  .sticky-selection-bar {
    display: none !important;
  }

  /* Banner de Aviso de Seleção no Topo - Logo abaixo do header (Print 01) */
  .mobile-selection-top-bar {
    display: block;
    position: sticky;
    top: 50px;
    z-index: 38;
    background: rgba(18, 25, 38, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(223, 192, 133, 0.35);
    padding: 8px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    animation: fadeIn 0.2s ease-out;
  }

  .mobile-selection-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
  }

  .mobile-selection-top-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--accent-text);
  }

  .mobile-selection-top-count {
    background: var(--accent);
    color: #0b0f17;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
  }

  .mobile-selection-top-total {
    font-weight: 700;
    color: #ffffff;
    font-size: 13px;
  }

  .mobile-selection-top-extra {
    font-size: 11px;
    color: #93c5fd;
    margin-top: 4px;
    line-height: 1.25;
    text-align: center;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 3px 8px;
    border-radius: 4px;
  }

  /* Barra de Navegação Inferior PWA do Cliente (Estilo App Nativo) */
  .mobile-pwa-bottom-nav,
  .admin-pwa-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(58px + env(safe-area-inset-bottom, 10px));
    padding-bottom: env(safe-area-inset-bottom, 10px);
    background: rgba(15, 22, 34, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 90;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
  }

  .mobile-pwa-nav-btn {
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8A9BAC;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.15s ease;
    text-decoration: none;
    padding: 4px 2px;
    touch-action: manipulation;
  }

  .mobile-pwa-nav-btn:active {
    transform: scale(0.95);
  }

  .mobile-pwa-nav-btn.active {
    color: #DFC085;
  }

  .mobile-pwa-nav-btn .nav-icon {
    font-size: 19px;
    line-height: 1;
    margin-bottom: 3px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-pwa-nav-badge {
    position: absolute;
    top: -4px;
    right: -12px;
    background: #DFC085;
    color: #0b0f17;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  }

  .mobile-pwa-nav-btn.btn-concluir-pwa {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff !important;
    margin: 6px 8px;
    height: calc(100% - 12px);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 11px;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
  }

  .mobile-pwa-nav-btn.btn-concluir-pwa.disabled {
    background: rgba(255, 255, 255, 0.08);
    color: #6B7B8D !important;
    box-shadow: none;
  }
}

/* ==========================================================================
   Galeria Visual de Fotos no Pedido / Download (Celular)
   ========================================================================== */
.client-order-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
@media (min-width: 600px) {
  .client-order-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }
}
.client-order-photo-card {
  position: relative;
  background: #0b0f17;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.client-order-photo-card:active {
  transform: scale(0.97);
}
.client-order-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.client-order-photo-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.client-order-photo-name {
  font-size: 10px;
  font-family: monospace;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.client-order-save-btn {
  background: rgba(223, 192, 133, 0.25);
  border: 1px solid #DFC085;
  color: #DFC085;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  cursor: pointer;
  white-space: nowrap;
}

/* Card de Transição Guiada Fotos <-> Vídeos */
.media-flow-transition-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(223, 192, 133, 0.12), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(223, 192, 133, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 12px 0 20px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.media-flow-transition-card:hover {
  background: linear-gradient(135deg, rgba(223, 192, 133, 0.18), rgba(15, 23, 42, 0.95));
  border-color: #DFC085;
  transform: translateY(-1px);
}
.media-flow-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(223, 192, 133, 0.15);
  border: 1px solid rgba(223, 192, 133, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #DFC085;
  flex-shrink: 0;
}
.media-flow-text {
  flex: 1;
  min-width: 0;
}
.media-flow-text strong {
  display: block;
  font-size: 14px;
  color: #DFC085;
  margin-bottom: 2px;
}
.media-flow-text span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}
.media-flow-action {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .media-flow-transition-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }
  .media-flow-action {
    width: 100%;
  }
  .media-flow-action .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}


/* ==========================================================================
   Dashboard Metrics & Cards (Painel Geral)
   ========================================================================== */
.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.dashboard-metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.dashboard-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  opacity: 0.8;
}
.dashboard-metric-card.green::before { background: #22c55e; }
.dashboard-metric-card.gold::before { background: #DFC085; }
.dashboard-metric-card.red::before { background: #ef4444; }
.dashboard-metric-card.blue::before { background: #3b82f6; }
