/* ==========================================================================
   PICDROP DESIGN SYSTEM & STYLESHEET
   ==========================================================================
   ÍNDICE DE SEÇÕES:
   1. TOKENS DE DESIGN & VARIÁVEIS DE TEMA (CLARO / ESCURO)
   2. RESET, BASE & TIPOGRAFIA GLOBAL
   3. COMPONENTES E BOTÕES GLOBAIS (.nav-btn, .pd-btn, .theme-toggle-btn)
   4. LANDING PAGE & EDITORIAL (Hero, Pillars, Why, Categories, Pricing, FAQ)
   5. AUTENTICAÇÃO (LOGIN & CADASTRO - SPLIT LAYOUT)
   6. DASHBOARD MAIN & NAVEGAÇÃO LATERAL (Sidebar, Header, Topbar)
   7. SEÇÕES DO DASHBOARD (Início, Minha Conta, Meu Plano, Indique um Amigo)
   8. MEU PERFIL (Cards, Avatar Integrado, Grids & Redes Sociais Dinâmicas)
   9. GALERIAS & EDITOR DE FOTOS (Grid de Fotos, Modais & Uploader)
   10. MEDIA QUERIES RESPONSIVAS & RECTIFICAÇÕES MOBILE
   ========================================================================== */

/* ==========================================================================
   1. TOKENS DE DESIGN & VARIÁVEIS DE TEMA (CLARO / ESCURO)
   ========================================================================== */

/* Importar fontes premium do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Variáveis de Fundo e Texto (Tema Claro Padrão) */
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f3f5;
  --cor-principal: #181512;
  --cor-destaque: #2b2621;
  --text-main: #181512;
  --text-muted: #64748b;
  --border-color: rgba(0, 0, 0, 0.09);
  --nav-bg: rgba(248, 249, 250, 0.95);

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-blur: 12px;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.08);

  --text-primary: #475569;
  --input-bg: #ffffff;
  --input-border: rgba(0, 0, 0, 0.12);
  --border-radius: 6px;
  --focus-color: #181512;

  /* Namespace --pd Tokens (Tema Claro) */
  --pd-bg-main: #f8f9fa;
  --pd-bg-card: #ffffff;
  --pd-bg-card-hover: #f1f3f5;
  --pd-bg-secondary: #e2e8f0;
  --pd-bg-highlight: #ffffff;
  --pd-text-primary: #181512;
  --pd-text-secondary: #475569;
  --pd-text-muted: #64748b;
  --pd-text-dark: #ffffff;
  --pd-border: rgba(0, 0, 0, 0.09);
  --pd-border-subtle: rgba(0, 0, 0, 0.05);
  --pd-accent-btn: #181512;
  --pd-accent-btn-text: #f8f9fa;

  --pd-radius-sm: 8px;
  --pd-radius-md: 16px;
  --pd-radius-lg: 24px;
  --pd-radius-xl: 32px;
  --pd-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body:not(.theme-dark) {
  --pd-bg-main: #f8f9fa;
  --pd-bg-card: #ffffff;
  --pd-bg-card-hover: #f1f3f5;
  --pd-bg-secondary: #e2e8f0;
  --pd-bg-highlight: #ffffff;

  --pd-text-primary: #181512;
  --pd-text-secondary: #475569;
  --pd-text-muted: #64748b;
  --pd-text-dark: #ffffff;

  --pd-border: rgba(0, 0, 0, 0.09);
  --pd-border-subtle: rgba(0, 0, 0, 0.05);

  --pd-accent-btn: #181512;
  --pd-accent-btn-text: #ffffff;
}

/* Overrides do Tema Escuro (theme-dark) */
body.theme-dark {
  --bg-primary: #141414;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #262626;
  --cor-principal: #f0f0f0;
  --cor-destaque: #ffffff;
  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  --border-color: rgba(240, 240, 240, 0.12);
  --nav-bg: rgba(20, 20, 20, 0.95);

  --glass-bg: rgba(30, 30, 30, 0.7);
  --glass-border: rgba(240, 240, 240, 0.05);
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.7);

  --input-bg: #1e1e1e;
  --input-border: rgba(240, 240, 240, 0.2);

  --pd-bg-main: #141414;
  --pd-bg-card: #1e1e1e;
  --pd-bg-card-hover: #262626;
  --pd-bg-secondary: #181818;
  --pd-bg-highlight: #262626;
  --pd-text-primary: #f0f0f0;
  --pd-text-secondary: #a0a0a0;
  --pd-text-muted: #707070;
  --pd-text-dark: #141414;
  --pd-border: rgba(240, 240, 240, 0.12);
  --pd-border-subtle: rgba(240, 240, 240, 0.06);
  --pd-accent-btn: #f0f0f0;
  --pd-accent-btn-text: #121212;
}

/* ==========================================================================
   2. RESET, BASE & TIPOGRAFIA GLOBAL
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cor-principal);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   3. COMPONENTES E BOTÕES GLOBAIS
   ========================================================================== */

.brand {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--text-muted);
  font-weight: 300;
}

/* Note: Botões padronizados estão definidos na Seção de Componentes e Botões Globais */

/* Theme Toggle Button */

/* Form Inputs Comuns Globais */

label {
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.bold {
  font-weight: bold;
}

input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.85rem;
  color: var(--text-main);
  background-color: var(--input-bg);
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);

  /* Remove estilos nativos que quebram a consistência */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type="text"],
input[type="datetime-local"],
input[type="date"],
input[type="time"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.85rem;
  color: var(--text-main);
  background-color: var(--bg-secondary);
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  outline: none;
}

select {
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236c757d" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

input[type="text"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--text-main);
  outline: none;
}

::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.form-group.last {
  margin-bottom: 2rem;
}

.data-e-hora {
  display: flex;
  flex-direction: row;
}

.data-e-hora input {
  width: 200px;
  margin-right: 1.5rem;
}

.switch-btn {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch-input {
  border: none;
  background-color: var(--bg-tertiary);
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: 0.4s;
  border-radius: var(--border-radius);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: var(--bg-secondary);
  transition: 0.4s;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-btn input:checked+.switch-slider {
  background-color: var(--text-main);
}

.switch-btn input:checked+.switch-slider:before {
  transform: translateX(24px);
  background-color: var(--bg-primary);
}

.switch-text {
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  font-weight: bold;
  color: var(--text-muted);
}

.switch-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

section,
header,
div[id],
.pd-section,
.pd-parallax-section {
  scroll-margin-top: 80px;
}

/* Seção Hero */

body.theme-dark .hero-section {
  background: var(--bg-primary);
}

body.theme-dark .hero-tag {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
}

/* Seção Recursos (Features) */

body.theme-dark .feature-icon {
  background-color: var(--bg-tertiary);
}

/* Structure & Layout principal */

/* Sidebar do Dashboard */

body.theme-dark .db-menu-link.active {
  background-color: var(--bg-tertiary);
  color: var(--text-main);
}

.db-menu-link.active {
  background-color: var(--bg-tertiary);
  color: var(--text-main);
  font-weight: 700;
}

.db-menu-link.active .db-icons {
  color: var(--text-main);
}

body.theme-dark .db-logout-btn:hover {
  background-color: rgba(239, 68, 68, 0.15);
}

/* Área de Conteúdo Principal do Dashboard */

/* --------------------------------------------------------------------------
   4.1. DASHBOARD: SEÇÃO INÍCIO (OVERVIEW & ESTATÍSTICAS)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   4.2. DASHBOARD: SEÇÃO SELEÇÃO DE FOTOS E GALERIAS ENTREGUES (LISTAGEM & FILTROS)
   -------------------------------------------------------------------------- */

body.theme-dark .gallery-card:hover {
  border-color: rgba(197, 168, 128, 0.25);
}

body.theme-dark .gallery-card-btn.edit {
  color: var(--bg-primary);
}

/* Card Criar Nova Galeria & Modais */

body.theme-dark .create-gallery-card {
  border-color: rgba(197, 168, 128, 0.3);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
}

body.theme-dark .modal-overlay {
  background-color: rgba(0, 0, 0, 0.75);
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: scaleUp 0.3s ease-out;
}

.modal-box h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   4.3. DASHBOARD: EDITOR INTERNO DE GALERIA (CONFIGURAÇÕES & FOTOS)
   -------------------------------------------------------------------------- */

body.theme-dark .menu-separation-btn.active {
  background-color: rgba(255, 255, 255, 0.07);
}

body.dark-mode .folder-item {
  background-color: rgba(255, 255, 255, 0.07);
}

body.theme-dark .folder-item.active {
  background-color: rgba(255, 255, 255, 0.07);
}

/* --- SELEÇÃO DE FOTOS E AÇÕES EM LOTE --- */

/* Barra de Ações e Controle das Fotos */

/* Barra de Progresso do Upload */

/* Rodapé Salvar Configurações */

/* Dropdowns & Menus de Contexto (Dashboard) */

body.theme-dark .picdrop-dropdown {
  background-color: var(--bg-tertiary, #1a1a1f);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Lightbox de Foto no Admin */

/* Subseção: Minha Conta / Perfil */

/* Subseção: Planos e Assinatura */

body.theme-dark .plan-overview-card {
  background-color: var(--bg-tertiary);
}

body.theme-dark .plan-badge {
  color: var(--bg-primary);
}

body.theme-dark .download-all-btn,
body.theme-dark .download-all-photos-btn {
  color: #ffffff;
  background-color: var(--bg-tertiary);
  border: 1px solid #fff;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

body.theme-dark .gallery-item {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

/* Rodapé da Galeria do Cliente */

body.theme-dark .back-to-top-btn {
  background-color: #262628;
  color: #ffffff;
}

body.theme-dark .back-to-top-btn:hover {
  background-color: #3f3f42;
}

/* Botão de Download Individual no Canto Superior Direito */

/* Checkbox de Seleção no Canto Superior Esquerdo */

/* Modal / Bloqueio por PIN */

/* Lightbox Modal do Cliente */

/* Barra Flutuante de Seleção do Cliente */

/* Esconder Bottom Nav e Overlay por padrão no Desktop */

/* HUB DE GALERIAS (DESKTOP & MOBILE) */

body.theme-dark .hub-card,
body.theme-dark .mobile-hub-card {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   1. MENU DA INDEX E MENU DA DASHBOARD
   ========================================================================== */
.global-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 5%;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--cor-principal);
}

/* ==========================================================================
   PADRONIZAÇÃO GLOBAL DE BOTÕES DA DASHBOARD
   - Tema Claro: Botão Preto (#181512), Texto Branco (#ffffff), Hover (#332d27)
   - Tema Escuro: Botão Branco (#ffffff), Texto Preto (#121212), Hover (#e2e8f0)
   - Botões de Excluir/Apagar: Vermelho (#ef4444), Hover (#dc2626)
   ========================================================================== */

.nav-btn:not(.btn-danger),
.nav-btn-secondary,
.pd-btn,
.pd-btn-primary,
.pd-btn-outline,
.btn-save-settings,
.gallery-create-btn,
.btn-secondary,
.btn-primary,
.btn-action {
  background-color: #181512 !important;
  color: #ffffff !important;
  border: 1px solid #181512 !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
  padding: 8px 20px;
  border-radius: var(--border-radius, 8px);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.nav-btn:not(.btn-danger) *,
.nav-btn-secondary *,
.pd-btn *,
.pd-btn-primary *,
.pd-btn-outline *,
.btn-save-settings *,
.gallery-create-btn *,
.btn-secondary *,
.btn-primary *,
.btn-action * {
  color: inherit !important;
}

.nav-btn:not(.btn-danger):hover,
.nav-btn-secondary:hover,
.pd-btn:hover,
.pd-btn-primary:hover,
.pd-btn-outline:hover,
.btn-save-settings:hover,
.gallery-create-btn:hover,
.btn-secondary:hover,
.btn-primary:hover,
.btn-action:hover {
  background-color: #332d27 !important;
  color: #ffffff !important;
  border-color: #332d27 !important;
}

/* TEMA ESCURO (theme-dark) */
body.theme-dark .nav-btn:not(.btn-danger),
body.theme-dark .nav-btn-secondary,
body.theme-dark .pd-btn,
body.theme-dark .pd-btn-primary,
body.theme-dark .pd-btn-outline,
body.theme-dark .btn-save-settings,
body.theme-dark .gallery-create-btn,
body.theme-dark .btn-secondary,
body.theme-dark .btn-primary,
body.theme-dark .btn-action {
  background-color: #ffffff !important;
  color: #121212 !important;
  border: 1px solid #ffffff !important;
}

body.theme-dark .nav-btn:not(.btn-danger):hover,
body.theme-dark .nav-btn-secondary:hover,
body.theme-dark .pd-btn:hover,
body.theme-dark .pd-btn-primary:hover,
body.theme-dark .pd-btn-outline:hover,
body.theme-dark .btn-save-settings:hover,
body.theme-dark .gallery-create-btn:hover,
body.theme-dark .btn-secondary:hover,
body.theme-dark .btn-primary:hover,
body.theme-dark .btn-action:hover {
  background-color: #e2e8f0 !important;
  color: #121212 !important;
  border-color: #e2e8f0 !important;
}

/* EXCEÇÃO: BOTÕES DE EXCLUIR / APAGAR (VERMELHO EM AMBOS OS TEMAS) */
.btn-danger,
.btn-delete,
.btn-delete-selected,
.btn-cancel-sub,
.btn-remove-social,
.nav-btn.btn-danger,
.nav-btn.btn-remove-social,
body.theme-dark .btn-danger,
body.theme-dark .btn-delete,
body.theme-dark .btn-delete-selected,
body.theme-dark .btn-cancel-sub,
body.theme-dark .btn-remove-social,
body.theme-dark .nav-btn.btn-danger,
body.theme-dark .nav-btn.btn-remove-social {
  transition: all 0.2s ease !important;
  cursor: pointer;
  padding: 8px 20px;
  border-radius: var(--border-radius, 8px);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border: 1px solid #ef4444 !important;
}

.btn-danger:hover,
.btn-delete:hover,
.btn-delete-selected:hover,
.btn-cancel-sub:hover,
.btn-remove-social:hover,
.nav-btn.btn-danger:hover,
.nav-btn.btn-remove-social:hover,
body.theme-dark .btn-danger:hover,
body.theme-dark .btn-delete:hover,
body.theme-dark .btn-delete-selected:hover,
body.theme-dark .btn-cancel-sub:hover,
body.theme-dark .btn-remove-social:hover,
body.theme-dark .nav-btn.btn-danger:hover,
body.theme-dark .nav-btn.btn-remove-social:hover {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
}

.mobile-menu {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
}

.mobile-nav {
  display: none;
}

#mobile-theme-toggle,
.mobile-brand {
  display: none;
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-left: auto;
  margin-right: 2rem;
  transform: none !important;
}

.theme-toggle-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--text-main);
  color: var(--text-main);
  transform: none;
}

.theme-toggle-btn:hover i {
  transform: rotate(15deg);
}

.dashboard-layout.editor-open .db-sidebar {
  display: none !important;
  visibility: hidden;
  width: 0;
  min-width: 0;
  border: none !important;
}

.db-sidebar {
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.db-icons {
  font-size: 1rem;
  color: #606060;
  transition: color 0.3s ease;
}

.db-menu-item:hover .db-icons {
  color: var(--text-main);
}

.db-menu-link.active .db-icons {
  color: var(--text-main);
}

.db-icon-logout {
  font-size: 1rem;
}

.db-brand {
  padding: 0.75rem 0 1.75rem 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.db-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 1rem;
}

.db-menu-item {
  width: 100%;
}

.db-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.db-menu-link:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-main);
}

.db-menu-link.active {
  background-color: var(--bg-tertiary);
  color: var(--text-main);
  font-weight: 700;
}

.db-menu-link svg {
  flex-shrink: 0;
}

.db-logout-btn {
  margin-top: auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ef4444;
  cursor: pointer;
  margin-left: 1rem;
  margin-right: 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  font-size: 0.95rem;
  font-weight: 500;
}

.db-logout-btn:hover {
  background-color: rgba(239, 68, 68, 0.08);
}

.db-toggle {
  display: none;
}

.selection-tabs-header .nav-btn {
  transition: none !important;
}

.admin-sidebar {
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  overflow-y: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  min-height: 550px;
}

.internal-gallery-sidebar {
  background-color: var(--bg-tertiary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  height: fit-content;
  overflow: visible;
  gap: 1.5rem;
}

.mobile-bottom-nav,
.mobile-menu-overlay,
#sec-galleries-hub,
#sec-mobile-galleries {
  display: none;
}

/* ==========================================================================
   2. PÁGINA INDEX (LANDING PAGE)
   ========================================================================== */
.hero-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(85, 148, 193, 0.06) 0%, rgba(248, 249, 250, 0) 70%);
  transition: background 0.3s ease;
}

.hero-content {
  max-width: 800px;
  z-index: 5;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  background-color: rgba(88, 166, 160, 0.08);
  color: var(--cor-principal);
  padding: 6px 16px;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(88, 166, 149, 0.15);
}

.hero-section h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-actions a {
  border-radius: 30px;
}

.section-wrapper {
  padding: 6rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(85, 148, 193, 0.3);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  background-color: rgba(85, 148, 193, 0.08);
  color: var(--cor-principal);
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

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

.pricing-grid,
.pd-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card,
.pd-pricing-card {
  background-color: var(--pd-bg-card);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-lg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.premium,
.pricing-card.popular,
.pd-pricing-card.popular {
  border-color: var(--pd-text-primary);
  background-color: var(--pd-bg-highlight);
}

.pd-popular-badge,
.pricing-card.premium::before,
.pricing-card.popular::before {
  content: "Mais Popular";
  position: absolute;
  top: -14px;
  right: 32px;
  background-color: var(--pd-accent-btn);
  color: var(--pd-accent-btn-text);
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-name,
.pd-plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--pd-text-primary);
  letter-spacing: 0.04em;
}

.plan-price,
.pd-plan-price {
  font-family: var(--font-sans) !important;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--pd-text-primary);
}

.plan-price span,
.pd-plan-price span {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--pd-text-secondary);
}

.plan-features,
.pd-plan-features {
  list-style: none !important;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 !important;
}

.plan-features li,
.pd-plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--pd-text-secondary);
  list-style: none !important;
}

.plan-features li::before,
.pd-plan-features li::before {
  content: none !important;
}

.plan-features li.check,
.pd-plan-features li.check {
  color: var(--pd-text-primary);
}

.pricing-card button {
  margin-top: auto;
  width: 100%;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--cor-principal);
  transition: var(--transition-smooth);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.25rem;
}

footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 3rem 5% 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: background-color 0.3s ease;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 1rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.settings-save-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  margin-right: 2rem;
}

.gallery-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0d0d0e;

  --cover-animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  --cover-animation-initial-delay: 0s;
  --cover-animation-duration: 0.4s;
  --cover-animation-distance: 15px;
}

.gallery-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.75);
  opacity: 0;
}

.gallery-hero.hero-loaded .gallery-hero-bg {
  animation: heroBgFadeIn 0.35s var(--cover-animation-timing-function) 0s both;
}

.gallery-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.7) 100%);
  transition: var(--transition-smooth);
  z-index: 2;
}

.gallery-hero-content {
  position: relative;
  z-index: 10;
  padding: 2rem 5%;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
}

.gallery-hero.hero-loaded .gallery-hero-content {
  animation: heroContentSlideUp 0.35s var(--cover-animation-timing-function) 0s both;
}

@keyframes heroBgFadeIn {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroContentSlideUp {
  0% {
    opacity: 0;
    transform: translateY(var(--cover-animation-distance));
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroCreditSlideUp {
  0% {
    opacity: 0;
    transform: translate(-50%, var(--cover-animation-distance));
  }

  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.gallery-hero-content a {
  color: #fff;
  border: 1px solid white;
  padding: 10px;
}

.gallery-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gallery-hero-date {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.hero-scroll-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 13px 36px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-radius: var(--border-radius);
  backdrop-filter: blur(2px);
}

.hero-scroll-btn:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.hero-bottom-credit {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  opacity: 0;
}

.gallery-hero.hero-loaded .hero-bottom-credit {
  animation: heroCreditSlideUp 0.35s var(--cover-animation-timing-function) 0s both;
}

@media (max-width: 768px) {
  .hero-bottom-credit {
    bottom: 1.2rem;
    font-size: 0.68rem;
    letter-spacing: 2.5px;
  }
}

.hero-bottom-credit a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease, text-decoration-color 0.2s ease;
}

.hero-bottom-credit a:hover {
  color: #ffffff;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.client-gallery-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 4rem;
  background-color: var(--bg-primary);
  text-align: center;
}

/* ==========================================================================
   3. LOGIN
   ========================================================================== */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 1.5rem;
}

.login-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 2.25rem 2rem;
  border-radius: var(--border-radius);
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.login-card h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  text-align: center;
}

.login-card p.subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-card .form-group {
  margin-bottom: 0;
}

.login-card input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-sizing: border-box;
}

.login-card .footer-link {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   4. CADASTRO
   ========================================================================== */
/* (Estilos mantidos na base ou compartilhados) */

/* ==========================================================================
   6. DASHBOARD MAIN & NAVEGAÇÃO LATERAL (SIDEBAR, HEADER, TOPBAR)
   ========================================================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.dashboard-layout.editor-open {
  grid-template-columns: 1fr;
}

.dashboard-layout.editor-open .db-main-content {
  grid-column: 1 / -1;
  padding-left: 4%;
  padding-right: 4%;
  min-width: 0;
  overflow: visible;
}

.dashboard-layout.editor-open .db-main-content .db-section.active,
.dashboard-layout.editor-open .db-main-content .gallery-editor.active {
  display: block;
}

.db-main-content {
  padding: 2.5rem 5%;
  background-color: var(--bg-primary);
  overflow-y: auto;
}

.db-section {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.db-section.active {
  display: block;
}

.db-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.db-header h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-main);
  margin-left: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  max-width: 900px;
}

.stat-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

body.theme-dark .stat-card {
  background-color: var(--bg-tertiary);
}

.stat-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-search {
  flex: 1 1 200px;
}

.filter-search input {
  width: 100%;
}

.filter-group label {
  font-size: 0.85rem;
  color: #495057;
  white-space: nowrap;
}

.filter-group input,
.filter-group select {
  width: auto;
  min-width: 120px;
  height: 32px;
  font-size: 0.85rem;
  padding: 0 10px;
  color: #343a40;
  background-color: #ffffff;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  outline: none;
}

.plan-overview-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  max-width: 900px;
  margin-bottom: 3rem;
}

/* ==========================================================================
   6. GALLERY HUB
   ========================================================================== */
.galleries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 320px;
}

.gallery-card:hover {
  border-color: rgba(27, 26, 24, 0.25);
  box-shadow: var(--shadow-lg);
}

.gallery-card-cover {
  height: 150px;
  background-color: var(--bg-tertiary);
  background-size: cover;
  background-position: center;
  position: relative;
}

.gallery-card-cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.5));
}

.gallery-card-cover .pin-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 4px 8px;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  backdrop-filter: blur(5px);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.gallery-card-details {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.gallery-card .photo-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: auto;
}

.gallery-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
}

.gallery-card-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
}

.gallery-card-btn.edit {
  background-color: var(--cor-principal);
  color: #fff;
  border: none;
}

.gallery-card-btn.edit:hover {
  background-color: var(--cor-destaque);
}

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

.gallery-card-btn.view:hover {
  background-color: var(--cor-destaque);
  border-color: var(--cor-destaque);
  color: var(--bg-primary);
}

body.theme-dark .gallery-card-btn.view {
  background-color: #282834;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

body.theme-dark .gallery-card-btn.view:hover {
  background-color: #4e4e65
}

.gallery-card-btn.delete {
  background-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.15);
  flex-grow: 0;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card-btn.delete svg {
  width: 18px;
  height: 18px;
}

.gallery-card-btn.delete:hover {
  background-color: #ef4444;
  color: #fff;
}

.create-gallery-card {
  border: 2px dashed rgba(85, 148, 193, 0.3);
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  height: 320px;
  transition: var(--transition-smooth);
}

.create-gallery-card:hover {
  border-color: var(--cor-principal);
  background-color: rgba(85, 148, 193, 0.02);
}

.create-gallery-card svg {
  color: var(--cor-principal);
  margin-bottom: 1rem;
}

.create-gallery-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

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

#sec-galleries-hub.active,
#sec-mobile-galleries.active {
  display: block !important;
}

.galleries-hub,
.mobile-galleries-hub {
  max-width: 650px;
  padding: 0.5rem 0;
}

.mobile-galleries-hub {
  margin: 0 auto;
}

.hub-subtitle,
.mobile-hub-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.hub-grid,
.mobile-hub-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hub-card,
.mobile-hub-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-secondary, #ffffff);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 16px);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

body.theme-dark .hub-card,
.mobile-hub-card {
  background-color: var(--bg-tertiary);
}

.hub-card:hover,
.mobile-hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.hub-card:active,
.mobile-hub-card:active {
  transform: scale(0.98);
}

.hub-card-icon,
.mobile-hub-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--cor-principal, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.hub-card-icon.approved,
.mobile-hub-card-icon.approved {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.hub-card-icon.delivered,
.mobile-hub-card-icon.delivered {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.hub-card-content,
.mobile-hub-card-content {
  flex: 1;
}

.hub-card-content h3,
.mobile-hub-card-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px 0;
}

.hub-card-content p,
.mobile-hub-card-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
}

.hub-card-arrow,
.mobile-hub-card-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  opacity: 0.6;
}

/* ==========================================================================
   7. SELEÇÃO DE FOTOS E EDITOR INTERNO
   ========================================================================== */
#editor-settings-panel input,
#editor-settings-panel select {
  height: 36px !important;
}

.gallery-editor {
  display: none;
  animation: fadeIn 0.3s ease;
}

.gallery-editor.active {
  display: block;
}

.editor-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.editor-back-btn:hover {
  color: var(--cor-principal);
}

.admin-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  min-height: calc(100vh - 70px);
}

.editor-side-menu {
  display: grid;
  gap: 1.25rem;
}

.menu-separation {
  display: flex;
  align-items: center;
  width: 100%;
}

.menu-separation i {
  width: 50%;
  font-size: 1.8rem;
  text-align: center;
}

.menu-separation>*:first-child {
  position: relative;
}

.menu-separation>*:first-child::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background-color: #ccc;
}

.menu-separation-tab {
  width: 50%;
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  min-width: 120px;
  border: none;
}

.menu-separation-tab.active {
  color: var(--cor-principal);
}

.gallery-settings-menu {
  display: grid;
  gap: 0.75rem;
}

.settings-panel-section {
  padding: 3rem !important;
}

.menu-separation-btn {
  background-color: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.menu-separation-btn.active {
  background-color: white;
  border-color: var(--cor-principal);
}

#editor-photos-controls {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

#editor-folders {
  display: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.folder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.folder-item {
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  height: 40px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.folder-item.active {
  background-color: white;
  color: var(--text-main);
  border-color: var(--cor-principal);
}

.cover-preview-box {
  min-height: 180px;
  border-radius: var(--border-radius);
  border: 1px solid white;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  position: relative;
}

.cover-preview-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  box-shadow: inset 0 0 0 1px rgba(85, 148, 193, 0.1);
  pointer-events: none;
}

.cover-select-label {
  margin-bottom: 0.5rem;
  display: block;
}

.admin-content {
  padding: 2rem;
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.upload-zone {
  border: 2px dashed rgba(85, 148, 193, 0.4);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  background-color: var(--bg-tertiary);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.upload-zone:hover {
  border-color: var(--cor-principal);
  background-color: rgba(85, 148, 193, 0.03);
}

.smaller-upload-zone {
  padding: 2rem 1.5rem;
}

.upload-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  font-size: 2.5rem;
  color: var(--cor-principal);
  margin-bottom: 1rem;
}

.upload-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.upload-text p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.photo-manager-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.photo-manager-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card-admin {
  background-color: var(--bg-tertiary);
  border-radius: 9px;
  overflow: visible;
  border: 1px solid var(--border-color);
  position: relative;
  transition: var(--transition-smooth);
  z-index: 1;
}

.photo-card-admin.dropdown-active {
  z-index: 100;
}

.photo-card-admin:hover {
  transform: translateY(-2px);
  border-color: rgba(85, 148, 193, 0.3);
}

.photo-card-admin .info {
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-tertiary);
}

.photo-card-admin .name {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
  color: var(--text-muted);
}

.delete-photo-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

.delete-photo-btn:hover {
  background-color: rgba(239, 68, 68, 0.08);
}

.photo-card-admin.selected {
  border-color: var(--cor-principal);
  box-shadow: 0 0 0 2px rgba(85, 148, 193, 0.4);
}

.photo-select-checkbox-wrap {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 15;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
}

.photo-card-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  outline: none;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  padding: 0;
}

.photo-card-checkbox:hover {
  background-color: rgba(0, 0, 0, 0.75);
  border-color: var(--cor-principal);
}

.photo-card-checkbox:checked {
  border-color: var(--cor-principal);
  border-color: var(--cor-principal);
}

.photo-card-checkbox:checked::after {
  content: '';
  width: 2.5px;
  height: 5px;
  border: solid #ffffff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin-bottom: 1px;
}

.cover-photo-badge {
  position: absolute;
  top: 8px;
  left: 35px;
  background: var(--cor-principal);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--border-radius);
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.bulk-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  opacity: 0.85;
}

.bulk-actions-bar:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.photo-sort-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.45rem 0.65rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.photo-sort-wrapper:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: var(--cor-principal);
}

.photo-sort-icon {
  color: var(--cor-principal);
  font-size: 1.1rem;
  pointer-events: none;
}

.photo-sort-select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.photo-sort-select option {
  background-color: var(--bg-secondary, #121216);
  color: var(--text-main, #ffffff);
  padding: 0.5rem;
}

.bulk-selected-count {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--cor-principal);
}

.btn-select-all {
  background: none;
  border: 1px solid var(--cor-principal);
  color: var(--text-main, #ffffff);
  padding: 0.35rem 0.85rem;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-select-all:hover {
  background: rgba(24, 21, 18, 0.12);
}

.btn-delete-selected {
  background: #ef4444;
  color: #ffffff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s ease;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.btn-delete-selected:hover {
  background: #dc2626;
}

.upload-progress-container {
  display: none;
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

.upload-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.upload-progress-status {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main, #ffffff);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upload-progress-percentage {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cor-principal);
  font-family: monospace;
}

.upload-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

.upload-progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: var(--border-radius);
  transition: width 0.2s ease;
}

.upload-progress-detail {
  font-size: 0.78rem;
  color: var(--text-muted, #888);
  margin-top: 0.4rem;
  text-align: right;
}

.btn-save-settings {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: var(--cor-principal);
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(85, 148, 193, 0.25);
}

.btn-save-settings:hover {
  background: var(--cor-destaque);
  transform: translateY(-1px);
}

.settings-panel-section {
  display: none;
  padding: 2rem;
  background-color: var(--bg-tertiary);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-lg);
}

.settings-panel-section.active {
  display: block;
}

#settings-panel-general .switch-container {
  margin-top: 1.2rem;
}

.editor-photo-count-wrapper {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.section-title-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.picdrop-dropdown-container {
  position: relative;
  display: inline-block;
}

.picdrop-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 180px;
  background-color: var(--bg-tertiary, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 6px;
  z-index: 1000;
  display: none;
  animation: dropdownFadeIn 0.15s ease-out forwards;
}

.picdrop-dropdown.active {
  display: block;
}

.picdrop-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-main, #111827);
  background: transparent;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.picdrop-dropdown-item i {
  font-size: 0.95rem;
  opacity: 0.8;
  width: 16px;
  text-align: center;
}

.picdrop-dropdown-item:hover {
  background-color: rgba(85, 148, 193, 0.1);
  color: var(--cor-principal);
}

.picdrop-dropdown-item.danger {
  color: #ef4444;
}

.picdrop-dropdown-item.danger:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.picdrop-dropdown-divider {
  height: 1px;
  background-color: var(--border-color, #e5e7eb);
  margin: 4px 0;
}

.photo-card-menu-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: var(--border-radius);
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.photo-card-admin:hover .photo-card-menu-btn,
.photo-card-menu-btn.active {
  opacity: 1;
}

.photo-card-menu-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.admin-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.admin-lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.admin-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.admin-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   9. GALERIAS & EDITOR DE FOTOS (GRID DE FOTOS, MODAIS & UPLOADER)
   ========================================================================== */
.gallery-filter-panel {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

.filter-category,
.filter-status {
  justify-content: flex-end;
}

.filter-sort select {
  min-width: 40px;
  width: 40px;
  height: 32px;
  padding: 0;
  cursor: pointer;

  /* Oculta o texto selecionado apenas na visualização do botão fechado */
  color: transparent;
  text-shadow: 0 0 0 transparent;

  /* Ícone de ordenação (duas setas verticais) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23343a40' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 4h13M3 8h9m-9 4h6m4 0l4-4m0 0l4 4m-4-4v12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ==========================================================================
   8. MEU PERFIL (CARDS, AVATAR INTEGRADO, GRIDS & REDES SOCIAIS DINÂMICAS)
   ========================================================================== */

#profile-form {
  max-width: 860px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}

.profile-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 12px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

body.theme-dark .profile-card {
  background-color: var(--bg-tertiary);
}

.profile-card-title {
  margin: 0 !important;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-card-title i {
  color: var(--cor-principal, #5594c1);
  font-size: 1.15rem;
}

.profile-card-subtitle {
  margin: -0.5rem 0 0.25rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Layout integrado: Foto (1/3) + Campos Pessoais (2/3) */
.profile-card-body-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.profile-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--bg-secondary);
  gap: 0.75rem;
  height: 100%;
  box-sizing: border-box;
}

.profile-photo-col .avatar-clickable-wrapper {
  position: relative;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  border: 2.5px solid var(--cor-principal, #5594c1);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.avatar-text-info h4 {
  margin: 0 0 2px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
}

.avatar-text-info p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.profile-fields-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

#profile-form .form-group {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
}

#profile-form label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-color);
}

/* Padronização de bordas, fundos e alturas dos campos de formulário */
#profile-form input[type="text"],
#profile-form input[type="email"] {
  height: 42px !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
  font-size: 0.88rem !important;
  background-color: var(--bg-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm, 8px) !important;
  color: var(--text-color) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#profile-form select,
.add-social-select {
  height: 42px !important;
  padding: 0 36px 0 14px !important;
  padding-left: 14px !important;
  box-sizing: border-box !important;
  font-size: 0.88rem !important;
  background-color: var(--bg-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm, 8px) !important;
  color: var(--text-color) !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#profile-form textarea {
  padding: 10px 14px !important;
  box-sizing: border-box !important;
  font-size: 0.88rem !important;
  background-color: var(--bg-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm, 8px) !important;
  color: var(--text-color) !important;
  min-height: 85px !important;
  resize: vertical !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body.theme-dark #profile-form input[type="text"],
body.theme-dark #profile-form input[type="email"],
body.theme-dark #profile-form textarea {
  background-color: var(--bg-secondary) !important;
}

body.theme-dark #profile-form select,
body.theme-dark .add-social-select {
  background-color: var(--bg-secondary) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

#profile-form input[type="text"]:focus,
#profile-form input[type="email"]:focus,
#profile-form select:focus,
#profile-form textarea:focus,
.add-social-select:focus {
  border-color: var(--cor-principal, #5594c1) !important;
  box-shadow: 0 0 0 2px rgba(85, 148, 193, 0.25) !important;
}

/* Redes Sociais Dinâmicas */
.social-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border-color);
  box-sizing: border-box;
}

.social-link-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 130px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-color);
}

.social-link-icon i {
  font-size: 1.15rem;
  color: var(--cor-principal, #5594c1);
}

.social-link-input-wrapper {
  flex: 1;
}

#profile-form .social-link-input-wrapper input {
  height: 38px !important;
  font-size: 0.88rem !important;
}

body.theme-dark #profile-form .social-link-input-wrapper input {
  background-color: var(--bg-primary) !important;
}

.btn-remove-social {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-social:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.add-social-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.add-social-select {
  flex: 1;
  max-width: 300px;
}

.empty-social-state {
  text-align: center;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm, 8px);
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.profile-actions-bar {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

/* Retificações Mobile para Seção Meu Perfil */
@media (max-width: 768px) {
  #profile-form {
    gap: 1.25rem !important;
  }

  #profile-form .profile-card {
    padding: 1.25rem 1rem !important;
    gap: 1rem !important;
  }

  .profile-card-body-layout {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .profile-photo-col {
    height: auto !important;
    padding: 1rem !important;
  }

  .profile-fields-col {
    gap: 0.9rem !important;
  }

  .form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 0.9rem !important;
  }

  .social-link-item {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.85rem 1rem !important;
  }

  .social-link-icon {
    width: 100% !important;
    flex: 0 0 100% !important;
    min-width: 100% !important;
    margin-bottom: 0.1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .social-link-icon i {
    font-size: 1.15rem !important;
    line-height: 1 !important;
  }

  .social-link-input-wrapper {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  #profile-form .social-link-input-wrapper input {
    height: 42px !important;
    min-height: 42px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .btn-remove-social {
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius-sm, 8px) !important;
    background: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    box-sizing: border-box !important;
  }

  .btn-remove-social i {
    font-size: 1.1rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .add-social-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  #add-social-select,
  .add-social-select {
    max-width: 100% !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    display: block !important;
  }

  .add-social-bar .nav-btn,
  .add-social-bar .nav-btn-secondary,
  .add-social-bar .btn-secondary {
    width: 100% !important;
    height: 42px !important;
  }
}

.avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.avatar-preview {
  width: 150px;
  height: 150px;
  border-radius: var(--border-radius);
  background-color: var(--bg-tertiary);
  background-size: cover;
  background-position: center;
  border: 2px solid var(--cor-principal);
}

/* ==========================================================================
   11. MINHA CONTA
   ========================================================================== */

.my-account-container {
  max-width: 600px;
  display: grid;
  gap: 2rem;
}

.my-account-container h3 {
  margin-bottom: 20px;
}

.my-account-container .username-div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.my-account-container .username-div input {
  flex: 1;
  flex: 0 0 50%;
}

.my-account-container .username-div button {
  white-space: nowrap !important;
  padding: 10px 24px;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.my-account-container .perfil-link {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  width: 50%;
  margin-bottom: 1rem;
}

.alterar-senha p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 1rem !important;
}

.alterar-senha button {
  margin-bottom: 1rem;
}

.exclude-account {
  margin-top: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}

.exclude-account h3 {
  color: #ef4444;
  margin-bottom: 1rem;
}

.exclude-account p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  margin-top: 0 !important;

}

/* ==========================================================================
   12. MEU PLANO
   ========================================================================== */
.plan-stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.plan-badge {
  background-color: var(--cor-principal);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
}

.progress-container {
  margin-bottom: 1.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.progress-bar-bg {
  background-color: var(--bg-primary);
  height: 8px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.progress-bar-fill {
  background-color: var(--cor-principal);
  height: 100%;
  width: 1.5%;
  transition: width 0.5s ease-out;
}

/* ==========================================================================
   13. INDIQUE UM AMIGO
   ========================================================================== */
/* (Estilos mantidos na base ou compartilhados) */

/* ==========================================================================
   14. PERFIL PÚBLICO
   ========================================================================== */
.photographer-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

.profile-avatar-container {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 2.5rem;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
  background-color: var(--bg-tertiary);
}

.photographer-header h1 {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  text-align: center;
}

.photographer-bio {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.photographer-profile-body #theme-toggle {
  position: absolute;
  top: 30px;
  right: 30px;
  margin: 0;
}

.profile-categories-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-categories-divider {
  border-top: 1px solid var(--text-primary);
  width: 10%;
  margin-bottom: 2.5rem;
}

.profile-cat-btn {
  color: var(--text-primary);
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin: 0 15px;
}

.profile-cat-btn:hover {
  transform: translateY(-5px);
}

.profile-cat-btn.active {
  border-bottom: 1px solid var(--text-main);
  color: var(--text-main);
}

.profile-galleries-container {
  width: 90%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.profile-galleries-grid,
.public-galleries-grid {
  margin: 3rem auto 0;
  padding: 0;
  max-width: 1350px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
}

.public-gallery-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
}

.public-card-cover-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-tertiary);
  border-radius: 0px;
}

.public-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
}

.public-gallery-card:hover .public-card-cover {
  transform: scale(1.03);
  filter: brightness(1.02);
}

.public-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 1.2rem;
  gap: 0.35rem;
}

.public-card-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-main);
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  line-height: 1.3;
}

.public-lock-icon {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: normal;
  display: inline-block;
}

.public-card-date {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.8;
}

.profile-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  text-align: center;
  gap: 1rem;
  color: var(--text-muted);
}

.profile-404-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  text-align: center;
  min-height: 50vh;
}

.profile-404-icon {
  font-size: 3.5rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.profile-404-title {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.profile-404-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.profile-404-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--text-main);
  color: var(--bg-main);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.profile-404-btn:hover {
  opacity: 0.85;
}

/* Skeleton Loaders do Perfil (Performance) */
@keyframes skeleton-pulse {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.9;
  }

  100% {
    opacity: 0.5;
  }
}

.skeleton-card {
  border-radius: 4px;
  overflow: hidden;
}

.skeleton-cover {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  background-color: var(--bg-tertiary);
  animation: skeleton-pulse 1.4s infinite ease-in-out;
  border-radius: 0px;
}

.skeleton-info {
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skeleton-line {
  border-radius: 3px;
  background-color: var(--bg-tertiary);
  animation: skeleton-pulse 1.4s infinite ease-in-out;
  margin-bottom: 8px;
}

.skeleton-line-title {
  width: 70%;
  height: 16px;
}

.skeleton-line-date {
  width: 40%;
  height: 12px;
}



/* ==========================================================================
   15. LINK PÚBLICO DAS GALERIAS ENTREGUES
   ========================================================================== */
.download-all-container,
.gallery-download-all-bar {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 2.5rem 1.5rem 2.5rem !important;
  max-width: 1400px;
  margin: 0 auto;
}

.download-all-btn,
.download-all-photos-btn {
  background-color: var(--bg-tertiary);
  color: black;
  border: 1px solid black;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.download-all-btn:hover,
.download-all-photos-btn:hover {
  background-color: var(--cor-destaque, #3b76a2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.download-all-btn:disabled,
.download-all-photos-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.gallery-top-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 80px;
}

.gallery-top-controls .gallery-download-all-bar {
  margin: 0 auto;
}

#gallery-container #theme-toggle {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex !important;
  margin: 0;
}

.spin-icon {
  animation: spin 1s linear infinite;
}

.gallery-wrapper,
.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.gallery-masonry,
.masonry-grid,
#client-gallery-grid,
#client-photos-grid {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  width: 100%;
}

.gallery-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.gallery-item {
  break-inside: avoid;
  background-color: var(--bg-tertiary);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  border: none;
  display: block;
  width: 100%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.action-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.back-to-top-btn {
  background-color: #333333;
  color: #ffffff;
  border: none;
  padding: 14px 42px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-bottom: 3rem;
  border-radius: var(--border-radius);
}

.back-to-top-btn:hover {
  background-color: #1a1a1a;
  transform: translateY(-2px);
}

.developer-credit {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.developer-credit span {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-left: 2px;
}

.img-container {
  position: relative;
  width: 100%;
  height: auto;
  cursor: pointer;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 12;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.gallery-item-actions .action-btn {
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.25 ease;
  padding: 0;
}

.gallery-item-actions .action-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.gallery-item-actions .action-btn svg {
  stroke: #ffffff;
}

.photo-checkbox-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 12;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

body.is-selection-mode .photo-checkbox-badge,
.manual-selection-active .photo-checkbox-badge {
  display: flex;
}

.photo-checkbox-badge input {
  display: none;
}

.custom-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.photo-checkbox-badge.checked .custom-checkbox {
  background: var(--cor-principal);
  border-color: var(--cor-principal);
}

.photo-checkbox-badge.checked .custom-checkbox::after {
  content: '✓';
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
}

.watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition-smooth);
}

.watermark-overlay.active {
  opacity: 1;
}

.watermark-text {
  color: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  transform: rotate(-30deg);
  white-space: nowrap;
  user-select: none;
}

.pin-lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.pin-lock-screen.active {
  display: flex !important;
}

.pin-lock-box {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.pin-lock-box .lock-icon {
  color: var(--cor-principal);
  margin-bottom: 1.25rem;
}

.pin-lock-box h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.pin-lock-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.pin-input-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pin-input-container input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 4px;
}

.pin-input-container .unlock-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  border: none;
  background-color: var(--cor-principal);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pin-input-container .unlock-btn:hover {
  background-color: var(--cor-destaque);
}

.pin-error-msg {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 1rem;
  min-height: 1.2em;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 5, 7, 0.98);
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex !important;
  opacity: 1 !important;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-top-actions {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 260;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 0;
}

.lightbox-btn:hover {
  background-color: var(--cor-principal, #5594c1);
  color: #ffffff;
  border-color: var(--cor-principal, #5594c1);
  transform: scale(1.05);
}

.lightbox-btn svg {
  stroke: #ffffff;
}

.lightbox-prev {
  position: absolute;
  left: -70px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  position: absolute;
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-watermark {
  position: absolute;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.lightbox-watermark .watermark-text {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.08);
}

.empty-gallery-msg {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-style: italic;
  grid-column: 1 / -1;
  column-span: all;
  width: 100%;
}

.client-selection-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--cor-principal);
  border-radius: 50px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: auto;
  max-width: 90vw;
}

.client-selection-bar.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Botões de Download e Seleção no Topo --- */
.gallery-download-all-bar {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.download-all-photos-btn {
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.secondary-select-btn {
  background-color: transparent !important;
  border: 1px solid var(--text-color, #333) !important;
  color: var(--text-color, #333) !important;
}

body.theme-dark .secondary-select-btn {
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}

.secondary-select-btn:hover {
  background-color: rgba(85, 148, 193, 0.15) !important;
  border-color: var(--cor-principal, #3b76a2) !important;
  color: var(--cor-principal, #3b76a2) !important;
}

.secondary-select-btn.active {
  background-color: var(--cor-principal, #3b76a2) !important;
  border-color: var(--cor-principal, #3b76a2) !important;
  color: #ffffff !important;
}

/* --- Barra Flutuante de Download de Selecionadas --- */
.download-selection-bar .selection-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.download-selection-bar .selection-actions-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.download-selection-bar .btn-download-selected {
  background: var(--cor-principal, #3b76a2);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.download-selection-bar .btn-download-selected:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.download-selection-bar .btn-select-all,
.download-selection-bar .btn-download-zip {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
}

.download-selection-bar .btn-select-all:hover,
.download-selection-bar .btn-download-zip:hover {
  background: rgba(255, 255, 255, 0.25);
}

.download-selection-bar .btn-cancel-selection {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  padding: 8px 14px !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  margin-top: 0 !important;
}

.download-selection-bar .btn-cancel-selection:hover {
  background: rgba(239, 68, 68, 0.35) !important;
}

/* ==========================================================================
   16. RESPONSIVIDADE & MOBILE
   ========================================================================== */
@media (max-width: 992px) {

  /* --------------------------------------------------------------------------
     16.0 ESTRUTURA E REGRAS GERAIS MOBILE
  -------------------------------------------------------------------------- */
  body.theme-dark .mobile-nav {
    background-color: var(--bg-primary);
  }

  body.theme-dark .db-nav-link.active {
    background-color: rgba(49, 45, 38, 0.12);
  }

  .gallery-create-btn {
    width: 25%;
    height: 30px;
    border-radius: var(--border-radius);
    border: none !important;
  }

  .selection-actions-btns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem !important;
    margin: 15px 0 0 0 !important;
  }

  .selection-actions-btns button {
    margin: 0 !important;
  }

  .selection-actions-btns button:nth-child(3) {
    margin-top: 10px !important;
  }

  /* 1. Busca ocupa 100% da linha superior */

  /* 2. Filtros de Categoria e Status organizados */

  /* Garante que o texto volte a ficar visível nas opções do menu aberto */

  /* -------------------------- EDITOR INTERNO DAS GALERIAS -------------------------- */

  .wrapper {
    display: inline-flex;
    margin-right: 18px;
  }

  .data-e-hora {
    gap: 1rem;
  }

  .data-e-hora input {
    width: 100%;
  }

  .form-group.last {
    margin-bottom: 0;
  }

  /* -------------------------- TELA DE CONFIGS DO PERFIL -------------------------- */

  /* -------------------------- GALERIA PÚBLICA -------------------------- */

  .gallery-masonry {
    gap: 0.5rem;
  }

  /* Ocultar barra sticky do topo e logo no Dashboard */

  /* Ajuste de espaço inferior para o conteúdo não ficar coberto pela Bottom Nav */

  /* --------------------------------------------------------------------------
       1. BARRA DE NAVEGAÇÃO FIXA INFERIOR (BOTTOM NAV)
       -------------------------------------------------------------------------- */

  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 65px;
    background-color: var(--bg-tertiary, #ffffff);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    z-index: 10000;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  body.theme-dark .mobile-bottom-nav {
    background-color: rgba(30, 30, 30, 0.95);
    border-top-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  }

  /* --------------------------------------------------------------------------
       2. OVERLAY / DRAWER MENU MOBILE
       -------------------------------------------------------------------------- */

  body.theme-dark .mobile-menu-sheet {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  body.theme-dark .mobile-menu-profile-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  body.theme-dark .mobile-menu-profile-card:hover {
    background: rgba(255, 255, 255, 0.09) !important;
  }

  body.theme-dark .mobile-theme-btn,
  body.theme-dark .mobile-menu-close-btn {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
  }

  body.theme-dark .mobile-theme-btn:hover,
  body.theme-dark .mobile-menu-close-btn:hover {
    background: rgba(255, 255, 255, 0.16) !important;
  }

  body.theme-dark .mobile-menu-link:active {
    background-color: rgba(255, 255, 255, 0.05);
  }

  /* --------------------------------------------------------------------------
     16.1 MENU DA INDEX E MENU DA DASHBOARD (MOBILE)
  -------------------------------------------------------------------------- */
  .db-sidebar {
    height: auto;
    position: relative;
    padding: 1.5rem 0;
  }

  .db-logout-btn {
    margin-top: 1.5rem;
  }

  .mobile-nav,
  .global-nav {
    position: sticky;
    top: 0;
    z-index: 999;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-brand {
    display: inline-block !important;
    order: 1;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    letter-spacing: 1px;
    margin-left: 0.75rem;
    margin-right: auto;
  }

  .mobile-brand span {
    color: var(--cor-principal);
  }

  #mobile-theme-toggle {
    order: 2;
    display: inline-block !important;
    margin-right: 0.75rem;
    margin-left: auto;
  }

  .mobile-menu {
    display: inline-block !important;
    order: 3;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-main, #fff);
    font-size: 1.5rem;
    cursor: pointer;
  }

  .mobile-nav a {
    display: inline-block !important;
    order: 4;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    color: var(--text-main);
    font-size: 0.9rem;
    text-decoration: none;
  }

  .global-nav,
  .db-sidebar .db-brand,
  .global-nav .brand,
  .db-header #theme-toggle {
    display: none !important;
  }

  .db-sidebar,
  .global-nav {
    display: none !important;
    position: absolute !important;
    top: 60px !important;
    width: 100%;
    height: auto;
    overflow-y: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px -10px rgba(2, 6, 23, 0.2);
    z-index: 999;
    padding: 0rem 0;
    background-color: var(--bg-tertiary);
  }

  .global-nav {
    left: auto;
    right: 0;
    width: 250px;
  }

  .global-nav.aberto .nav-links {
    flex-direction: column !important;
    display: flex;
    gap: 0px;
    width: 100%;
    padding: 0rem 1rem 1rem 1rem;
  }

  .nav-link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border-top: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .db-logout-btn {
    margin-top: 1rem !important;
    border-top: 1px solid var(--border-color);
  }

  .db-sidebar.aberto,
  .global-nav.aberto {
    display: flex !important;
    flex-direction: column !important;
  }

  .selection-tabs-header .nav-btn {
    background: none;
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    white-space: nowrap;
    min-height: 44px;
  }

  .selection-tabs-header .nav-btn.active {
    color: var(--cor-principal);
    box-shadow: 0 4px 12px rgba(24, 21, 18, 0.12);
    background-color: color-mix(in srgb, var(--cor-destaque) 25%, transparent);
  }

  .internal-gallery-sidebar {
    min-height: 0;
    margin-bottom: 1.5rem;
  }

  .mobile-nav[aria-label="Mobile Dashboard Nav"] {
    display: none !important;
  }

  .mobile-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 6px 0;
    color: var(--text-muted, #71717a);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-nav-item i {
    font-size: 1.35rem;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .mobile-bottom-nav-item:active {
    transform: scale(0.92);
  }

  .mobile-bottom-nav-item.active {
    color: var(--cor-principal, #2563eb);
  }

  .mobile-bottom-nav-item.active i {
    transform: translateY(-2px);
    color: var(--cor-principal, #2563eb);
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: flex-end;
  }

  .mobile-menu-overlay.active {
    display: flex !important;
    opacity: 1;
  }

  .mobile-menu-sheet {
    width: 100%;
    max-height: 85vh;
    background-color: var(--bg-tertiary, #ffffff);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 1.5rem 1rem 1rem 1rem;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-menu-overlay.active .mobile-menu-sheet {
    transform: translateY(0);
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .mobile-menu-profile-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-main) !important;
  }

  .mobile-menu-profile-card:hover {
    background: rgba(0, 0, 0, 0.06) !important;
  }

  .mobile-menu-profile-icon {
    font-size: 1.4rem;
    color: var(--text-main) !important;
    display: flex;
    align-items: center;
  }

  .mobile-menu-profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .mobile-menu-profile-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main) !important;
  }

  .mobile-menu-profile-sub {
    font-size: 0.75rem;
    color: var(--text-muted) !important;
  }

  .mobile-menu-profile-external {
    font-size: 0.9rem;
    color: var(--text-main) !important;
  }

  .mobile-menu-divider {
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: 1.25rem;
    opacity: 0.6;
  }

  .mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    background-color: transparent;
    transition: background-color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
  }

  .mobile-menu-link:active {
    background-color: rgba(0, 0, 0, 0.04);
  }

  .mobile-menu-link i:first-child {
    font-size: 1.25rem;
    color: var(--cor-principal);
    width: 24px;
    text-align: center;
  }

  .mobile-menu-link span {
    flex: 1;
  }

  .mobile-menu-link .arrow-icon {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.5;
  }

  .mobile-menu-list .logout-item {
    margin-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
  }

  .logout-link {
    color: #ef4444 !important;
  }

  .logout-link i:first-child {
    color: #ef4444 !important;
  }

  .mobile-theme-btn,
  .mobile-menu-close-btn {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: rgba(0, 0, 0, 0.04) !important;
    color: #181512 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease !important;
  }

  .mobile-theme-btn *,
  .mobile-menu-close-btn * {
    color: inherit !important;
  }

  .mobile-theme-btn:hover,
  .mobile-menu-close-btn:hover {
    background: rgba(0, 0, 0, 0.08) !important;
  }

  /* --------------------------------------------------------------------------
     16.2 PÁGINA INDEX (MOBILE)
  -------------------------------------------------------------------------- */
  .pricing-card.premium {
    transform: none;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .settings-save-footer {
    margin: 20px 0 10px 0;
    justify-content: center;
  }

  /* --------------------------------------------------------------------------
     16.5 INÍCIO DA DASHBOARD (MOBILE)
  -------------------------------------------------------------------------- */
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .db-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .db-header {
    margin: 0 0 1.25rem 0;
    padding: 0 0 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
  }

  .db-header h2 {
    font-size: 1.2rem !important;
  }

  .stats-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    /* 2 colunas iguais */
    gap: 0.5rem;
    width: 100%;
  }

  .stat-card {
    align-items: center;
    text-align: center;
    padding: 0.5rem;
  }

  .stat-card span {
    max-width: 120px;
  }

  .stat-card:nth-child(3) {
    grid-column: span 2;
  }

  .filter-search {
    grid-column: 1 / -1;
  }

  .filter-search input {
    height: 36px;
    width: 100%;
    box-sizing: border-box;
  }

  .dashboard-layout .db-main-content {
    padding-bottom: 90px !important;
    padding-top: 1.5rem !important;
  }

  /* --------------------------------------------------------------------------
     16.7 SELEÇÃO DE FOTOS E EDITOR INTERNO (MOBILE)
  -------------------------------------------------------------------------- */
  .gallery-editor .editor-back-btn {
    margin-bottom: 0 !important;
  }

  .admin-content {
    padding: 0 !important;
  }

  .upload-zone {
    padding: 10px 0 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .upload-icon {
    padding: 0;
    margin: 0;
  }

  #bulk-actions-bar {
    display: none;
  }

  #bulk-actions-bar.has-selection {
    display: flex !important;
  }

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

  #editor-settings-panel input,
  #editor-settings-panel select,
  #editor-settings-panel textarea {
    width: 100% !important;
  }

  /* --------------------------------------------------------------------------
     16.8 SELEÇÃO APROVADA (MOBILE)
  -------------------------------------------------------------------------- */
  #sec-photo-selection {
    padding-bottom: 60px;
  }

  .selection-tabs-header {
    padding: 0 !important;
  }

  /* --------------------------------------------------------------------------
     16.9 GALERIAS ENTREGUES E EDITOR INTERNO (MOBILE)
  -------------------------------------------------------------------------- */
  #galleries-list-container,
  #sec-galleries {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .gallery-filter-panel {
    display: grid;
    /* Linha 1: 100% de largura | Linha 2: 3 colunas (auto, auto, botão de ícone) */
    grid-template-columns: 1fr 1fr auto;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .filter-category,
  .filter-status {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    min-width: 0 !important;
  }

  .filter-category label,
  .filter-status label {
    font-size: 0.75rem;
    margin-left: 10px;
  }

  .filter-category select,
  .filter-status select {
    width: 100%;
    min-width: 0 !important;
    /* Remove o min-width: 120px do desktop que causava overflow horizontal no mobile */
    height: 34px;
    box-sizing: border-box;
  }

  .filter-sort {
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
  }

  .filter-sort select {
    min-width: 0 !important;
  }

  .filter-sort select option {
    color: #343a40;
    background-color: #ffffff;
  }

  .photo-card-menu-btn {
    opacity: 1;
  }

  /* --------------------------------------------------------------------------
     16.10 MEU PERFIL (MOBILE)
  -------------------------------------------------------------------------- */
  .profile-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  #profile-form .form-group {
    margin: 0 0 0 0 !important;
  }

  #profile-form {
    margin-bottom: 0px;
  }

  .profile-photo-card {
    margin-bottom: 25px;
  }

  #profile-form input,
  #profile-form select,
  #profile-form textarea {
    width: 100% !important;
    margin-bottom: 0px !important;
  }

  #profile-form textarea {
    min-height: 80px;
  }

  #profile-form h3 {
    text-align: center;
    margin: 30px 0 10px 0 !important;
  }

  /* --------------------------------------------------------------------------
     16.12 MEU PLANO (MOBILE)
  -------------------------------------------------------------------------- */
  .progress-container>.progress-label span {
    font-size: 0.9rem;
  }

  /* --------------------------------------------------------------------------
     16.14 PERFIL PÚBLICO (MOBILE)
  -------------------------------------------------------------------------- */
  .profile-galleries-grid,
  .public-galleries-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem 1.5rem;
    margin-top: 2rem;
  }


  /* --------------------------------------------------------------------------
     16.15 LINK PÚBLICO DAS GALERIAS ENTREGUES (MOBILE)
  -------------------------------------------------------------------------- */
  .gallery-top-controls {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    min-height: 70px;
  }

  .gallery-top-controls .gallery-download-all-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin: 0 auto;
    width: 100%;
    gap: 10px;
  }

  .download-all-btn,
  .download-all-photos-btn {
    padding: 10px 16px;
    font-size: 0.72rem;
    letter-spacing: 0.8px;
    width: 80%;
    max-width: calc(100vw - 110px);
    white-space: nowrap;
    text-overflow: ellipsis;
    justify-content: center;
    text-align: center;
  }

  #gallery-container #theme-toggle {
    position: absolute !important;
    right: 0rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    margin: 0 !important;
    width: 36px;
    height: 36px;
  }

  .gallery-column {
    gap: 0.5rem;
  }

  .lightbox-top-actions {
    top: 14px;
    right: 14px;
    gap: 8px;
  }

  .lightbox-btn {
    width: 36px;
    height: 36px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .gallery-item-actions .action-btn {
    width: 25px;
    height: 25px;
  }

  .action-btn i {
    font-size: 0.95rem;
  }

}

@media (max-width: 600px) {

  /* --------------------------------------------------------------------------
     16.2 PÁGINA INDEX (MOBILE)
  -------------------------------------------------------------------------- */
  .footer-content {
    flex-direction: column;
  }

}

@media (max-width: 900px) {

  /* --------------------------------------------------------------------------
     16.7 SELEÇÃO DE FOTOS E EDITOR INTERNO (MOBILE)
  -------------------------------------------------------------------------- */
  .admin-layout {
    grid-template-columns: 1fr;
  }

}

/* ==========================================================================
   CHECKOUT TRANSPARENTE ASAAS
   ========================================================================== */
.checkout-modal-box {
  max-width: 520px;
  width: 94%;
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--bg-primary, #ffffff);
  color: var(--text-main, #111827);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 88vh;
  overflow-y: auto;
}

.checkout-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.checkout-modal-header h3 {
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--text-main, #111827);
}

.checkout-plan-price {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
}

.checkout-close-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted, #6b7280);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.checkout-close-btn:hover {
  background: rgba(0, 0, 0, 0.12);
  color: var(--text-main);
}

.checkout-section {
  margin-bottom: 0.9rem;
}

.checkout-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.checkout-modal-box label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main, #374151);
  margin-bottom: 0.3rem;
  display: block;
}

.checkout-modal-box input {
  font-family: inherit;
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 0.875rem;
  border-radius: 10px;
  border: 1px solid var(--border-color, #d1d5db);
  background: var(--bg-secondary, #f9fafb);
  color: var(--text-main, #111827);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.checkout-modal-box input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: var(--bg-primary, #ffffff);
}

.checkout-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

@media (max-width: 480px) {
  .checkout-row-2 {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.payment-method-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: var(--bg-secondary, #f3f4f6);
  padding: 0.3rem;
  border-radius: 12px;
  border: 1px solid var(--border-color, #e5e7eb);
}

.pm-tab {
  background: transparent;
  border: none;
  color: var(--text-muted, #6b7280);
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.pm-tab.active {
  background: var(--bg-primary, #ffffff);
  color: #2563eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pm-container {
  display: none;
}

.pm-container.active {
  display: block;
}

.checkout-submit-btn {
  width: 100%;
  padding: 0.8rem;
  font-weight: 600;
  font-size: 0.925rem;
  justify-content: center;
  margin-top: 1rem;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.checkout-submit-btn:hover {
  background: #1d4ed8;
}

.spin {
  animation: spin 1s linear infinite;
}

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

/* ==========================================================================
   5. AUTENTICAÇÃO (LOGIN & CADASTRO - SPLIT LAYOUT)
   ========================================================================== */
.pd-auth-page {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  overflow-x: hidden;
  background-color: #ffffff;
}

.pd-auth-left {
  width: 50%;
  min-height: 100vh;
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #ffffff !important;
  color: #181512 !important;
  position: relative;
  z-index: 2;
}

.pd-auth-left .pd-brand {
  color: #181512 !important;
}

.pd-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.pd-auth-close {
  color: #5c5549 !important;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1;
}

.pd-auth-close:hover {
  color: #181512 !important;
}

.pd-auth-box {
  width: 100%;
  max-width: 400px;
  margin: 0px auto;
}

.pd-auth-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #181512 !important;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

.pd-form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #181512 !important;
}

.pd-form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--border-radius);
  border: 1px solid #e5e0d3 !important;
  background-color: #f8f6f0 !important;
  color: #181512 !important;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.pd-form-input:focus {
  border-color: #181512 !important;
}

.pd-auth-left .pd-btn-primary {
  background-color: #181512 !important;
  color: #ffffff !important;
}

.pd-auth-left .pd-btn-primary:hover {
  background-color: #2b2621 !important;
}

.pd-auth-left .pd-btn-outline {
  background-color: #ffffff !important;
  border-color: #e5e0d3 !important;
  color: #181512 !important;
}

.pd-auth-left .pd-btn-outline:hover {
  background-color: #f8f6f0 !important;
}

.pd-btn-full {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  margin-top: 8px;
}

.pd-auth-terms {
  font-size: 0.78rem;
  color: #5c5549 !important;
  line-height: 1.4;
  margin-top: 16px;
}

.pd-auth-terms a {
  color: #181512 !important;
  text-decoration: underline;
}

.pd-auth-footer-link {
  text-align: center;
  font-size: 0.95rem;
  color: #5c5549 !important;
  margin-top: 32px;
}

.pd-auth-footer-link a {
  color: #181512 !important;
  font-weight: 700;
  text-decoration: underline;
}

.pd-auth-right {
  width: 50%;
  min-height: 100vh;
  background-color: #141414 !important;
  color: #f5f2eb !important;
  padding: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pd-auth-tagline {
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
  max-width: 440px;
  margin-bottom: 48px;
  color: #f5f2eb !important;
  line-height: 1.4;
}

.pd-auth-showcase-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.pd-auth-mock-main {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pd-auth-mock-mob {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 180px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}


/* ==========================================================================
   REGRAS MOBILE ADICIONAIS DE LOGIN/CADASTRO NO FINAL DO ARQUIVO
   ========================================================================== */
@media (max-width: 768px) {
  .pd-auth-page {
    flex-direction: column;
    min-height: 100vh;
    position: relative;
  }

  .pd-auth-left {
    width: 100%;
    min-height: 100vh;
    padding: 28px 24px 110px 24px;
    background-color: #ffffff;
    color: #181512;
  }

  .pd-auth-right {
    display: none !important;
  }

  .pd-auth-box {
    margin: 20px auto;
  }

  .pd-auth-title {
    font-size: 2.2rem;
    color: #181512;
  }

  .pd-form-label {
    color: #181512;
  }

  .pd-form-input {
    background-color: #f8f6f0;
    color: #181512;
    border-color: #e5e0d3;
  }

  .pd-promo-link {
    color: #181512;
  }

  .pd-btn-primary {
    background-color: #181512;
    color: #ffffff;
  }

}

/* ==========================================================================
   4. LANDING PAGE & EDITORIAL (HERO, PILLARS, WHY, CATEGORIES, PRICING, FAQ)
   ========================================================================== */


.pd-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.pd-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
  background-color: var(--pd-bg-main);
}

/* Header & Nav */
.pd-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--pd-bg-main);
  opacity: 0.96;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--pd-border-subtle);
  transition: all 0.3s ease;
}

.pd-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.pd-brand {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pd-text-primary);
  text-decoration: none;
  text-transform: lowercase;
}

.pd-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.pd-nav-link {
  color: var(--pd-text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.pd-nav-link:hover {
  color: var(--pd-text-primary);
}

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

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--pd-border);
  color: var(--pd-text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  transform: none !important;
}

.theme-toggle-btn i {
  transition: transform 0.3s ease;
}

.theme-toggle-btn:hover {
  background-color: var(--pd-bg-card-hover);
  transform: none;
}

.theme-toggle-btn:hover i {
  transform: rotate(15deg);
}

.theme-toggle-btn:focus,
.theme-toggle-btn:active,
.mobile-theme-btn,
.mobile-theme-btn:hover,
.mobile-theme-btn:focus,
.mobile-theme-btn:active {
  transform: none !important;
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.pd-btn-primary {
  background-color: var(--pd-accent-btn);
  color: var(--pd-accent-btn-text);
}

.pd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.pd-btn-outline {
  background-color: transparent;
  color: var(--pd-text-primary);
  border-color: var(--pd-border);
}

.pd-btn-outline:hover {
  background-color: var(--pd-bg-card-hover);
  transform: translateY(-2px);
}

.pd-btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.pd-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pd-text-primary);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.pd-hero {
  padding-top: 160px;
  padding-bottom: 90px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  background-color: var(--pd-bg-main);
}

.pd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.pd-hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--pd-text-primary);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.pd-hero-description {
  font-size: 1.25rem;
  color: var(--pd-text-secondary);
  line-height: 1.5;
  margin-bottom: 36px;
  max-width: 520px;
}

.pd-hero-showcase {
  position: relative;
}

.pd-hero-card-main {
  background-color: var(--pd-bg-card);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-lg);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.pd-hero-photo-wrap {
  width: 100%;
  height: 420px;
  border-radius: var(--pd-radius-md);
  overflow: hidden;
  position: relative;
}

.pd-hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-hero-card-floating {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 220px;
  background-color: var(--pd-bg-card);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-md);
  padding: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pd-floating-img {
  width: 100%;
  height: 170px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 10px;
}

.pd-floating-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pd-text-primary);
  text-transform: uppercase;
}

.pd-floating-sub {
  font-size: 0.75rem;
  color: var(--pd-text-secondary);
}

/* Section Headers */
.pd-section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px auto;
}

.pd-section-title {
  font-size: 2.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--pd-text-primary);
  margin-bottom: 16px;
}

.pd-section-desc {
  font-size: 1.15rem;
  color: var(--pd-text-secondary);
}

/* Pillars (01 02 03 04) */
.pd-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pd-pillar-card {
  background-color: var(--pd-bg-card);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-md);
  padding: 36px 28px;
  transition: all 0.3s ease;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pd-pillar-card:hover {
  background-color: var(--pd-bg-card-hover);
  transform: translateY(-4px);
}

.pd-pillar-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pd-text-muted);
  margin-bottom: 20px;
}

.pd-pillar-title {
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--pd-text-primary);
  margin-bottom: 12px;
}

.pd-pillar-text {
  font-size: 0.95rem;
  color: var(--pd-text-secondary);
  line-height: 1.5;
}

/* ========================================================
   PARALLAX STICKY BACKGROUND REVEAL SECTIONS (WFOLIO STYLE)
   ======================================================== */

.pd-parallax-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 120px 0;
  z-index: 1;
}

/* Hero Overlay para garantir legibilidade dos textos */
.pd-parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(24, 21, 18, 0.88) 0%, rgba(24, 21, 18, 0.65) 50%, rgba(24, 21, 18, 0.35) 100%);
  z-index: 1;
}

body:not(.theme-dark) .pd-parallax-overlay {
  background: linear-gradient(90deg, rgba(245, 242, 235, 0.92) 0%, rgba(245, 242, 235, 0.7) 50%, rgba(245, 242, 235, 0.4) 100%);
}

.pd-parallax-section .pd-container {
  position: relative;
  z-index: 2;
}

/* Estilos de fundo padrão para substituição futura */
.pd-bg-impressive {
  background-image: url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=1920&q=80');
}

.pd-bg-client-galleries {
  background-color: #5c351f;
  /* Cor fallback terracota */
  background-image: url('https://images.unsplash.com/photo-1539571696357-5a69c17a67c6?auto=format&fit=crop&w=1920&q=80');
}

/* Feature Rows inside Parallax Sections */
.pd-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pd-feature-row.reverse {
  direction: rtl;
}

.pd-feature-row.reverse>* {
  direction: ltr;
}

.pd-feature-title {
  font-size: 3.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.1;
  color: var(--pd-text-primary);
}

.pd-feature-text {
  font-size: 1.2rem;
  color: var(--pd-text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Seção de Bullets que "desliza por cima" (Efeito Cortina / Curtain Slide) */
.pd-curtain-section {
  position: relative;
  z-index: 3;
  background-color: var(--pd-bg-main);
  padding: 80px 0;
}

.pd-bullets-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  list-style: none;
}

.pd-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  color: var(--pd-text-primary);
  font-weight: 500;
  line-height: 1.4;
}

.pd-bullet-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--pd-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--pd-text-primary);
  font-size: 0.85rem;
}

.pd-mockup-container {
  background-color: var(--pd-bg-card);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-xl);
  padding: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.pd-mockup-img {
  width: 100%;
  border-radius: var(--pd-radius-md);
  display: block;
}

/* More Grid */
.pd-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pd-more-card {
  background-color: var(--pd-bg-card);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-md);
  padding: 32px;
  transition: all 0.3s ease;
}

.pd-more-card:hover {
  background-color: var(--pd-bg-card-hover);
  transform: translateY(-4px);
}

.pd-more-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pd-more-text {
  font-size: 0.95rem;
  color: var(--pd-text-secondary);
}

/* Why Us Grid */
.pd-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

.pd-why-card {
  border-top: 1px solid var(--pd-border);
  padding-top: 24px;
}

.pd-why-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--pd-text-primary);
}

.pd-why-text {
  font-size: 0.9rem;
  color: var(--pd-text-secondary);
  line-height: 1.5;
}

/* Stats Counter Banner */
.pd-stats-banner {
  background-color: var(--pd-bg-card);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-xl);
  padding: 60px 40px;
  margin: 60px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.pd-stats-head h3 {
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
}

.pd-stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--pd-text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.pd-stat-label {
  font-size: 0.85rem;
  color: var(--pd-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Creators Grid */
.pd-creators-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.pd-creator-card {
  position: relative;
  border-radius: var(--pd-radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  background-color: var(--pd-bg-card);
  border: 1px solid var(--pd-border-subtle);
  cursor: pointer;
}

.pd-creator-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.4s ease;
}

.pd-creator-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

.pd-creator-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 16px 16px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  flex-direction: column;
}

.pd-creator-name {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.02em;
}

/* Categories Showcase */
.pd-categories-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
  background-color: var(--pd-bg-card);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-xl);
  padding: 40px;
}

.pd-cat-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-cat-btn {
  background: none;
  border: none;
  text-align: left;
  padding: 16px 20px;
  border-radius: var(--pd-radius-sm);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pd-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pd-cat-btn:hover {
  color: var(--pd-text-primary);
}

.pd-cat-btn.active {
  color: var(--pd-accent-btn-text);
  background-color: var(--pd-accent-btn);
}

.pd-cat-display {
  position: relative;
  height: 480px;
  border-radius: var(--pd-radius-md);
  overflow: hidden;
}

.pd-cat-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pd-cat-img.active {
  opacity: 1;
}

.pd-cat-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  z-index: 10;
  pointer-events: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 768px) {
  .pd-cat-caption {
    font-size: 1rem;
    padding: 16px 18px;
  }
}

/* Pricing Grid */
.pd-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pd-pricing-card {
  background-color: var(--pd-bg-card);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-lg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.pd-pricing-card.popular {
  border-color: var(--pd-text-primary);
  background-color: var(--pd-bg-highlight);
}

.pd-popular-badge {
  position: absolute;
  top: -14px;
  right: 32px;
  background-color: var(--pd-accent-btn);
  color: var(--pd-accent-btn-text);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#btn-upgrade-pro.pd-btn-primary {
  color: var(--pd-accent-btn-text) !important;
}

.pd-plan-name {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pd-plan-price {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pd-plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--pd-text-secondary);
}

.pd-plan-features {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--pd-text-secondary);
}

.pd-plan-features li.check {
  color: var(--pd-text-primary);
}

/* FAQ */
.pd-faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-faq-item {
  background-color: var(--pd-bg-card);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-md);
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.pd-faq-question {
  padding: 24px 32px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pd-text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.pd-faq-icon {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.pd-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 32px;
  color: var(--pd-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.pd-faq-item.active {
  background-color: var(--pd-bg-card-hover);
}

.pd-faq-item.active .pd-faq-icon {
  transform: rotate(45deg);
}

.pd-faq-item.active .pd-faq-answer {
  max-height: 300px;
  padding: 0 32px 24px 32px;
}

/* Final CTA */
.last-section {
  padding-top: 0 !important;
}

.pd-final-cta {
  background-color: var(--pd-bg-card);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-xl);
  padding: 80px 40px;
  text-align: center;
}

.pd-final-cta h2 {
  font-size: 3.2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pd-final-cta p {
  font-size: 1.2rem;
  color: var(--pd-text-secondary);
  max-width: 600px;
  margin: 0 auto 36px auto;
}

/* Footer */
.pd-footer {
  border-top: 1px solid var(--pd-border-subtle);
  padding: 80px 0 40px 0;
  background-color: var(--pd-bg-secondary);
  position: relative;
  z-index: 3;
}

.pd-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.pd-footer-brand {
  text-align: left;
}

.pd-footer-col {
  text-align: right;
}

.pd-footer-brand p {
  color: var(--pd-text-secondary);
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.95rem;
}

.pd-footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pd-text-primary);
  margin-bottom: 20px;
}

.pd-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-footer-links a {
  color: var(--pd-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.pd-footer-links a:hover {
  color: var(--pd-text-primary);
}

.pd-footer-bottom {
  border-top: 1px solid var(--pd-border-subtle);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--pd-text-muted);
}

/* ==========================================================================
   10. MEDIA QUERIES RESPONSIVAS & RECTIFICAÇÕES MOBILE
   ========================================================================== */
@media (max-width: 1024px) {

  .pd-hero-grid,
  .pd-feature-row,
  .pd-categories-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pd-bullets-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd-pillars-grid,
  .pd-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd-more-grid,
  .pd-pricing-grid {
    grid-template-columns: 1fr;
  }

  .pd-creators-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pd-stats-banner {
    grid-template-columns: 1fr 1fr;
  }

  .pd-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .pd-nav-links {
    display: none;
  }

  .pd-mobile-toggle {
    display: block;
  }

  .pd-hero-title,
  .pd-feature-title {
    font-size: 2.4rem;
  }

  .pd-section-title {
    font-size: 2rem;
  }

  .pd-bullets-list,
  .pd-stats-banner {
    grid-template-columns: 1fr;
  }

  /* 1. TUDO O QUE O FOTÓGRAFO PRECISA EM UM SÓ LUGAR */
  .pd-pillars-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pd-pillar-card {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--pd-border-subtle) !important;
    border-radius: 0 !important;
    padding: 24px 0 !important;
    min-height: auto !important;
    box-shadow: none !important;
  }

  .pd-pillar-card:last-child {
    border-bottom: none !important;
  }

  .pd-pillar-card:hover {
    background-color: transparent !important;
    transform: none !important;
  }

  /* 2. POR QUE NÓS: Slider com botões de seta redondos flutuantes nas laterais sobre o card */
  .pd-why-slider-container {
    position: relative;
    width: 100%;
  }

  .pd-why-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    padding: 0 4px 16px 4px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pd-why-grid::-webkit-scrollbar {
    display: none;
  }

  .pd-why-card {
    flex: 0 0 100% !important;
    scroll-snap-align: center !important;
    border-top: none !important;
    background-color: var(--pd-bg-card);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius-md);
    padding: 28px 20px;
    box-sizing: border-box;
  }

  .pd-why-nav-btn {
    display: flex !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--pd-bg-card);
    border: 1px solid var(--pd-border);
    color: var(--pd-text-primary);
    font-size: 1.5rem;
    line-height: 1;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .pd-why-nav-btn.pd-hidden-nav {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .pd-why-prev {
    left: -10px;
  }

  .pd-why-next {
    right: -10px;
  }

  /* 3. QUEM ESTÁ CONOSCO?: Grid 3 fotos por linha */
  .pd-creators-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

  /* 4. GALERIAS DE CLIENTES PARA TODO FOTÓGRAFO: Setas em formato de texto/ícone simples, sem fundo de botão */
  .pd-categories-wrapper {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .pd-cat-nav {
    display: none !important;
  }

  .pd-cat-display {
    height: 320px !important;
    border-radius: var(--pd-radius-md);
    width: 100%;
  }

  .pd-cat-mobile-controls {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
  }

  .pd-cat-arrow {
    background: transparent !important;
    border: none !important;
    color: var(--pd-text-primary);
    font-size: 1.4rem;
    font-weight: 400;
    cursor: pointer;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: opacity 0.2s ease;
  }

  .pd-cat-arrow:active {
    opacity: 0.6;
  }

  .pd-cat-counter {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pd-text-primary);
    letter-spacing: 0.08em;
  }

  /* HEADER MOBILE ADAPTAÇÕES */
  .pd-nav-actions {
    gap: 12px;
  }

  .pd-desktop-only-btn {
    display: none !important;
  }

  .pd-mobile-login-text {
    display: inline-block !important;
    color: var(--pd-text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    margin-right: 0;
  }

  .pd-nav-actions #theme-toggle,
  .pd-nav-actions .theme-toggle-btn {
    margin: 0 !important;
    display: inline-flex !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 1.1rem !important;
  }

  .pd-mobile-menu-btn {
    display: block !important;
    margin-top: 4px;
  }

  .pd-mobile-menu-divider {
    border-top: 1px solid var(--pd-border-subtle);
    margin: 12px 0 8px 0 !important;
    padding: 0 !important;
    height: 1px;
    width: 100%;
  }

  .pd-final-cta {
    margin: 0 20px 0 20px !important;
    padding: 60px 20px !important;
    border-radius: var(--pd-radius-lg, 16px) !important;
  }

  .pd-final-cta h2 {
    font-size: 2rem !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
  }

  .pd-final-cta p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
  }

  .pd-final-cta .pd-btn {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .pd-footer-grid {
    grid-template-columns: 1fr;
  }

  .pd-footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Ocultar elementos exclusivos de mobile no desktop por padrão */
.pd-cat-mobile-controls,
.pd-mobile-login-text,
.pd-mobile-menu-btn,
.pd-why-nav-btn {
  display: none;
}

/* ==========================================================================
   EFEITO DE SCROLL REVEAL (FADE-UP / SUBO AO ROLAR A PÁGINA)
   ========================================================================== */
.pd-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.pd-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}