/* ==========================================================================
   SISTEMA DE FOTOGRAFIAS & RECONHECIMENTO FACIAL - VERAO TOUR
   Design Moderno, Luminoso (White Theme) com Imagem de Background e Alta Clareza
   ========================================================================== */

:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #ff7a00;
  --orange: #ff7a00;
  --orange-hover: #ea580c;
  --orange-soft: rgba(255, 122, 0, 0.08);
  --orange-border: rgba(255, 122, 0, 0.25);
  --blue-ocean: #0284c7;
  --blue-hover: #0369a1;
  --blue-soft: rgba(2, 132, 199, 0.08);
  --blue-border: rgba(2, 132, 199, 0.2);
  --green: #16a34a;
  --green-hover: #15803d;
  --green-soft: rgba(22, 163, 74, 0.08);
  --green-border: rgba(22, 163, 74, 0.22);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 20px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 45px -10px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 4px 18px rgba(15, 23, 42, 0.05);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.scan-status-box[hidden],
.camera-placeholder[hidden],
.upload-preview-box[hidden],
.face-upload-area[hidden],
.face-capture-area[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body.theme-ocean {
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Toast de Notificações
   -------------------------------------------------------------------------- */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast-notification.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Topbar de Navegação (White Glass)
   -------------------------------------------------------------------------- */
.topbar-foto {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

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

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-item:hover {
  color: var(--orange);
}

.btn-nav-selfie {
  background: var(--orange-soft);
  color: var(--orange);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--orange-border);
  transition: all 0.2s ease;
}

.btn-nav-selfie:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.25);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.btn-cart:hover {
  border-color: var(--orange);
  background: #fff;
  transform: translateY(-1px);
}

.cart-badge {
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-painel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-painel-link:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: #ffffff;
}

/* --------------------------------------------------------------------------
   Hero Section com Imagem de Background Real e Tema Claro
   -------------------------------------------------------------------------- */
.hero-foto {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 85px 20px 80px;
  text-align: center;
  background-image: 
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(248, 250, 252, 0.94) 80%, #f8fafc 100%),
    url('assets/media/locais/piscina-naturais-carneiros.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  display: none; /* Não escurecer mais; mantemos fundo claro */
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--orange);
  background: #ffffff;
  border: 1px solid var(--orange-border);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.08);
}

.hero-title {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.8px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 500;
}

/* Card Branco de Busca & Selfie */
.hero-search-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.09);
  max-width: 660px;
  margin: 0 auto;
  transition: box-shadow 0.2s ease;
}

.hero-search-box:focus-within {
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.14);
}

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

.search-input-wrapper svg {
  position: absolute;
  left: 16px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.search-input-wrapper input::placeholder {
  color: var(--text-dim);
  font-weight: 500;
}

.search-input-wrapper input:focus {
  border-color: var(--orange);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.hero-or-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0;
  position: relative;
}

.hero-or-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border);
}

.hero-or-divider span {
  position: relative;
  background: #ffffff;
  padding: 0 16px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card Principal: Encontre com uma Selfie */
.btn-selfie-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.btn-selfie-main:hover {
  border-color: var(--orange);
  background: #fffbf7;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.12);
}

.selfie-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--orange-soft);
  border: 1px solid var(--orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

.selfie-text-box {
  flex: 1;
}

.selfie-text-box strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.selfie-text-box small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.selfie-arrow {
  color: var(--orange);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-selfie-main:hover .selfie-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Seção: Como Funciona em 3 Passos (Cards Brancos)
   -------------------------------------------------------------------------- */
.how-it-works {
  padding: 60px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

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

.step-num {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  color: var(--blue-ocean);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-card:nth-child(2) .step-icon {
  background: var(--orange-soft);
  border-color: var(--orange-border);
  color: var(--orange);
}

.step-card:nth-child(3) .step-icon {
  background: var(--green-soft);
  border-color: var(--green-border);
  color: var(--green);
}

.step-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   NOVA SEÇÃO: Informações, Diferenciais & Segurança (Organizada)
   -------------------------------------------------------------------------- */
.section-info-cards {
  padding: 60px 20px 40px;
  background: var(--bg-page);
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.info-box-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.info-box-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.info-box-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.2s ease;
}

.info-box-card:hover .info-box-icon {
  transform: scale(1.08);
}

.info-box-icon.info-icon-blue {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
}

.info-box-icon.info-icon-orange {
  background: rgba(255, 122, 0, 0.1);
  color: #ff7a00;
}

.info-box-icon.info-icon-green {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.info-box-icon.info-icon-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.info-box-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.info-box-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Vitrine de Álbuns Recentes
   -------------------------------------------------------------------------- */
.section-vitrine {
  padding: 60px 20px 80px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-primary);
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.cat-pill:hover, .cat-pill.active {
  background: var(--orange, #ff7a00);
  color: #fff;
  border-color: var(--orange, #ff7a00);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.28);
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Card de Álbum no Tema Branco (Benchmark Banlek Moderno e Organizado) */
.album-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.album-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.14);
  border-color: #cbd5e1;
}

.album-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
}

.album-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.album-card:hover .album-cover-img {
  transform: scale(1.06);
}

.album-badges-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.album-badge-tag {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.album-badge-free {
  background: #16a34a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
  margin-left: auto;
}

.album-badge-ai {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ff9a3c;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 2;
  pointer-events: none;
}

.album-badge-ai svg {
  color: #ff9a3c;
}

.album-body,
.album-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.album-category-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: rgba(255, 122, 0, 0.1);
  color: var(--orange, #ff7a00);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.album-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.album-card:hover .album-card-title {
  color: var(--orange);
}

.album-meta-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.album-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.album-meta-item svg {
  color: #94a3b8;
  flex-shrink: 0;
}

.album-meta-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-footer-row,
.album-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.album-price-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.album-price-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.album-price-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}

.album-price-val.is-free {
  color: #16a34a;
}

.btn-open-album,
.btn-view-album {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--orange);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.28);
  white-space: nowrap;
}

.btn-open-album:hover,
.btn-view-album:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.38);
  color: #ffffff;
}

.btn-open-album svg,
.btn-view-album svg {
  transition: transform 0.2s ease;
}

.btn-open-album:hover svg,
.btn-view-album:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   NOVA SEÇÃO: Dúvidas Frequentes (FAQ)
   -------------------------------------------------------------------------- */
.section-faq {
  padding: 60px 20px 80px;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.faq-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  transition: all 0.2s ease;
}

.faq-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 122, 0, 0.08);
  color: #ff7a00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

/* --------------------------------------------------------------------------
   Modais Genéricos (Tema Branco)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.2);
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 28px;
  color: var(--text-primary);
}

.modal-overlay.is-active .modal-card {
  transform: scale(1);
}

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

.btn-modal-close:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Modal de Reconhecimento Facial (Câmera & Upload)
   -------------------------------------------------------------------------- */
.modal-face {
  max-width: 560px;
}

.modal-head {
  text-align: center;
  margin-bottom: 22px;
}

.face-scanner-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid var(--orange-border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.modal-head h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.modal-head p {
  font-size: 13px;
  color: var(--text-muted);
}

.face-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.face-tab {
  padding: 10px;
  background: none;
  border: none;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.face-tab.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Viewport da Câmera */
.camera-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.canvas-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: scaleX(-1);
}

.face-target-oval {
  position: absolute;
  width: 190px;
  height: 250px;
  border: 2px dashed rgba(255, 122, 0, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.5);
  pointer-events: none;
  overflow: hidden;
}

.scan-laser-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #ff7a00;
  box-shadow: 0 0 10px #ff7a00, 0 0 20px #ff7a00;
  animation: scanLaser 2.2s ease-in-out infinite alternate;
}

@keyframes scanLaser {
  0% { top: 10%; }
  100% { top: 90%; }
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  background: #f8fafc;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.camera-controls {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 12px;
  margin-top: 16px;
}

/* Dropzone de Upload */
.dropzone-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 20px;
  border: 2px dashed var(--border-strong);
  background: #f8fafc;
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.dropzone-box:hover {
  border-color: var(--orange);
  background: #fffbf7;
}

.dropzone-box svg {
  color: var(--orange);
}

.dropzone-box strong {
  font-size: 14px;
  color: var(--text-primary);
}

.dropzone-box span {
  font-size: 12px;
  color: var(--text-muted);
}

.dropzone-box input[type="file"] {
  display: none;
}

.upload-preview-box {
  margin-top: 16px;
  text-align: center;
}

.upload-preview-box img {
  max-height: 220px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

/* Termos LGPD */
.lgpd-box {
  margin-top: 18px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-container input {
  margin-top: 3px;
  cursor: pointer;
}

.lgpd-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
}

.scan-status-box {
  margin-top: 14px;
  padding: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #1e40af;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Modal de Termos de Reembolso de Fotografia
   -------------------------------------------------------------------------- */
.modal-refund {
  max-width: 620px;
}

.refund-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 4px;
}

.refund-card-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--orange-soft);
  border: 1px solid var(--orange-border);
  border-radius: 12px;
  padding: 16px;
  color: var(--text-primary);
}

.refund-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--orange-border);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.refund-card-highlight strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 4px;
}

.refund-card-highlight p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.refund-section-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.refund-section-item h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.refund-section-item p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Modal de Resultados Faciais
   -------------------------------------------------------------------------- */
.modal-results {
  max-width: 900px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.badge-success {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

.results-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.results-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.results-quick-actions {
  display: flex;
  gap: 10px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.result-photo-card {
  position: relative;
  background: #f8fafc;
  border: 2px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.result-photo-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.result-photo-card.is-selected {
  border-color: var(--orange, #ff7a00);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.2);
}

.result-photo-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.photo-similarity-badge,
.match-score-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.88);
  color: #22c55e;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.result-photo-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-photo-info strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-photo-info small {
  font-size: 11.5px;
  color: var(--text-muted);
}

.btn-add-match {
  margin-top: 6px;
  padding: 8px 12px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
}

.btn-add-match:hover {
  background: var(--orange, #ff7a00);
  color: #ffffff;
  border-color: var(--orange, #ff7a00);
}

.btn-add-match.is-added {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

/* Card de Estado Vazio de Busca Facial */
.empty-matches-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 20px;
  background: #ffffff;
  border-radius: 16px;
}

.empty-matches-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--orange-soft);
  border: 1.5px solid var(--orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.empty-matches-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-matches-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.empty-matches-tips {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 540px;
  margin: 0 auto 24px;
  text-align: left;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.empty-matches-tips strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 800;
}

.empty-matches-tips ul {
  margin: 0;
  padding-left: 18px;
}

.empty-matches-tips li {
  margin-bottom: 6px;
}

.empty-matches-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-open-full-album {
  padding: 11px 22px;
  background: var(--orange, #ff7a00);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.25);
}

.btn-open-full-album:hover {
  background: #e66e00;
  transform: translateY(-1px);
}

.btn-retry-selfie {
  padding: 11px 22px;
  background: #f8fafc;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-retry-selfie:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Visualizador do Álbum Completo (Lightbox / Grade de Fotos)
   -------------------------------------------------------------------------- */
.modal-album-view {
  max-width: 1080px;
}

.album-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.album-category-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--orange, #ff7a00);
  background: rgba(255, 122, 0, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.album-view-info h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.album-view-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.album-view-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-selfie-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid var(--orange-border);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-selfie-inline:hover {
  background: var(--orange);
  color: #fff;
}

.discount-banner {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.album-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.album-photo-item {
  position: relative;
  background: #f8fafc;
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.album-photo-item:hover {
  border-color: #cbd5e1;
}

.album-photo-item.is-selected {
  border-color: var(--orange, #ff7a00);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.2);
}

.album-photo-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.watermark-preview-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.album-photo-footer {
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Carrinho de Compras (Drawer Lateral Branco)
   -------------------------------------------------------------------------- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: #ffffff;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

.cart-drawer-overlay.is-open .cart-drawer {
  transform: translateX(0);
}

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

.cart-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-close-cart {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.cart-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
}

.cart-item-info small {
  color: var(--text-muted);
  font-size: 11px;
}

.btn-remove-item {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.cart-empty-state svg {
  color: #cbd5e1;
  margin-bottom: 12px;
}

.cart-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.cart-summary-row.discount-row {
  color: var(--green);
  font-weight: 700;
}

.cart-summary-row.total-row {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-primary);
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.btn-checkout {
  margin-top: 8px;
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 12px;
  background: var(--orange, #ff7a00);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.3);
}

.btn-checkout:hover {
  background: #e66e00;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Checkout Pix Screen (Tema Branco)
   -------------------------------------------------------------------------- */
.modal-checkout {
  max-width: 500px;
}

.modal-checkout h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-checkout p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border 0.2s ease;
}

.form-group input:focus {
  border-color: var(--orange, #ff7a00);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
}

.pix-screen {
  text-align: center;
}

.badge-pix {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #0284c7;
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.pix-screen h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pix-screen p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.pix-qr-container {
  display: inline-block;
  padding: 16px;
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.pix-qr-image {
  width: 220px;
  height: 220px;
  display: block;
}

.pix-copy-box {
  text-align: left;
  margin-bottom: 18px;
}

.pix-copy-box label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.input-copy-group {
  display: flex;
  gap: 8px;
}

.input-copy-group input {
  flex: 1;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}

.pix-listening-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--orange, #ff7a00);
  font-weight: 700;
  padding: 12px;
  background: rgba(255, 122, 0, 0.08);
  border-radius: 10px;
}

/* Sucesso */
.success-screen {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-screen h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.success-screen p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.download-box-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  max-height: 200px;
  overflow-y: auto;
}

.download-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Botões e Componentes Universais
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange, #ff7a00);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.28);
}

.btn-primary:hover {
  background: #e66e00;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: #f8fafc;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.spinner, .spinner-sm {
  border: 2px solid #e2e8f0;
  border-top-color: var(--orange, #ff7a00);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
}

.spinner-sm {
  width: 16px;
  height: 16px;
}

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

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Rodapé no Tema Branco / Cinza Claro
   -------------------------------------------------------------------------- */
.footer-foto {
  margin-top: auto;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  padding: 48px 24px 56px;
  text-align: center;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 44px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 4px;
}

.footer-inner p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 600px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 4px 6px;
}

.footer-links a:hover {
  color: var(--orange);
}

/* --------------------------------------------------------------------------
   Responsividade Global Avançada (Mobile First & Adaptação Completa)
   -------------------------------------------------------------------------- */

/* Telas Médias / Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .topbar-inner {
    padding: 12px 20px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-item {
    font-size: 12.5px;
  }
  .hero-foto {
    padding: 70px 20px 60px;
  }
  .info-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .albums-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

/* Tablets e Telas Menores (max-width: 768px) */
@media (max-width: 768px) {
  .topbar-foto {
    padding: 0;
  }
  .topbar-inner {
    padding: 10px 16px;
    justify-content: space-between;
  }
  .brand-img {
    width: 130px;
    height: auto;
    max-height: 44px;
  }
  .nav-links {
    display: none; /* Oculta menu de texto no celular para limpar o topo */
  }
  .topbar-actions {
    gap: 8px;
  }
  .btn-cart {
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
  }
  .btn-painel-link {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Hero Mobile */
  .hero-foto {
    padding: 44px 16px 40px;
    min-height: auto;
    background-position: center center;
  }
  .hero-badge {
    font-size: 10px;
    padding: 4px 12px;
    margin-bottom: 14px;
    letter-spacing: 1px;
  }
  .hero-title {
    font-size: clamp(1.65rem, 6.5vw, 2.3rem);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
  }
  .hero-subtitle {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 100%;
  }
  .hero-search-box {
    padding: 16px 14px;
    border-radius: 18px;
    width: 100%;
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.08);
  }
  .search-input-wrapper input {
    padding: 12px 36px 12px 42px;
    font-size: 13px;
    border-radius: 10px;
  }
  .search-input-wrapper svg {
    left: 14px;
    width: 16px;
    height: 16px;
  }
  .hero-or-divider {
    margin: 12px 0;
  }
  .hero-or-divider span {
    font-size: 11px;
    padding: 0 12px;
  }
  .btn-selfie-main {
    padding: 12px 14px;
    gap: 12px;
    border-radius: 12px;
  }
  .selfie-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .selfie-icon-box svg {
    width: 22px;
    height: 22px;
  }
  .selfie-text-box strong {
    font-size: 13.5px;
  }
  .selfie-text-box small {
    font-size: 11px;
    line-height: 1.35;
  }

  /* Passos Como Funciona */
  .how-it-works {
    padding: 40px 16px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .step-card {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .step-card h3 {
    font-size: 15.5px;
  }
  .step-card p {
    font-size: 12.5px;
  }

  /* Diferenciais */
  .section-info-cards {
    padding: 36px 16px;
  }
  .info-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .info-box-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  /* Vitrine de Álbuns */
  .vitrine-section {
    padding: 40px 16px;
  }
  .vitrine-header {
    margin-bottom: 20px;
  }
  .vitrine-header h2 {
    font-size: 20px;
  }
  .category-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-pills::-webkit-scrollbar {
    display: none;
  }
  .cat-pill {
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 12px;
    white-space: nowrap;
  }
  .albums-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .album-card {
    border-radius: 16px;
  }
  .album-cover-wrap {
    aspect-ratio: 16 / 10;
  }
  .album-body {
    padding: 16px;
  }
  .album-card-title {
    font-size: 16px;
  }
  .album-footer-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .album-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .btn-open-album {
    width: 100%;
    padding: 11px;
    font-size: 13px;
    text-align: center;
    justify-content: center;
  }

  /* FAQ */
  .faq-section {
    padding: 40px 16px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .faq-item {
    padding: 18px 16px;
    border-radius: 14px;
  }

  /* Modais no Mobile (Bottom Sheet Moderno) */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal-card {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    padding: 22px 16px 28px;
    width: 100%;
    border-bottom: none;
  }
  .btn-modal-close {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .modal-head {
    margin-bottom: 16px;
  }
  .modal-head h2 {
    font-size: 18px;
  }

  /* Câmera e Scanner Facial */
  .camera-viewport {
    aspect-ratio: 4 / 3;
    max-height: 260px;
    width: 100%;
    border-radius: 12px;
  }
  .face-target-oval {
    width: 130px;
    height: 175px;
  }
  .camera-controls {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }
  .btn-camera-trigger, .btn-start-camera {
    width: 100%;
    min-height: 46px;
    font-size: 13.5px;
    justify-content: center;
  }
  .dropzone-box {
    padding: 28px 14px;
    border-radius: 12px;
  }
  .lgpd-consent-row {
    font-size: 11px;
    gap: 8px;
    align-items: flex-start;
  }

  /* Grade de Resultados Faciais Mobile */
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  .results-header h2 {
    font-size: 18px;
  }
  .results-quick-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .results-quick-actions button {
    width: 100%;
    justify-content: center;
  }
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 55vh;
  }

  /* Grade de Fotos do Álbum Mobile */
  .album-view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .album-view-info h2 {
    font-size: 18px;
  }
  .album-view-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .album-view-actions button {
    width: 100%;
    justify-content: center;
  }
  .discount-banner {
    font-size: 11.5px;
    padding: 8px 12px;
  }
  .album-photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 55vh;
  }

  /* Carrinho Drawer Mobile */
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
    right: 0;
    left: 0;
  }
  .cart-header {
    padding: 16px;
  }
  .cart-body {
    padding: 16px;
  }
  .cart-footer {
    padding: 16px;
  }
  .btn-checkout {
    min-height: 50px;
    font-size: 14.5px;
    width: 100%;
  }

  /* Checkout Modal Mobile */
  .checkout-steps {
    gap: 4px;
    margin-bottom: 16px;
  }
  .step-indicator {
    font-size: 10.5px;
    padding: 4px 8px;
  }
  .pix-qr-box img {
    max-width: 190px;
    height: auto;
  }
  .btn-copy-pix {
    width: 100%;
    min-height: 46px;
    font-size: 13.5px;
  }
}

/* Telas Muito Pequenas (max-width: 420px) */
@media (max-width: 420px) {
  .btn-cart .cart-label {
    display: none;
  }
  .btn-painel-link span {
    display: none;
  }
  .btn-cart, .btn-painel-link {
    padding: 8px 10px;
  }
  .brand-img {
    width: 115px;
  }
  .hero-title {
    font-size: 1.55rem;
  }
  .selfie-arrow {
    display: none;
  }
  .camera-viewport {
    max-height: 230px;
  }
  .face-target-oval {
    width: 115px;
    height: 155px;
  }
  .empty-matches-tips {
    font-size: 11.5px;
    padding: 12px 14px;
  }
  .btn-open-full-album, .btn-retry-selfie {
    width: 100%;
  }
}
