/* ============================================================
   HotAngel.com.br — Estilos Globais
   Paleta: Preto · Vermelho · Azul · Dourado
   v9.0 — Cross-browser & Mobile Compatibility Edition
   ============================================================ */

/* ===== RESET UNIVERSAL ===== */
*, *::before, *::after { box-sizing: border-box; }

/* 2.1b — Remover highlight azul ao tocar no mobile */
* { -webkit-tap-highlight-color: transparent; }

/* ===== VARIÁVEIS DE CORES ===== */
:root {
  /* Paleta principal */
  --color-bg:          #000000;
  --color-bg-card:     #111111;
  --color-bg-elevated: #1a1a1a;
  --color-border:      #2a2a2a;
  --color-border-soft: #1f1f1f;

  /* Cores temáticas */
  --color-primary:     #cc0000;   /* Vermelho principal */
  --color-primary-dark:#990000;   /* Vermelho escuro (hover) */
  --color-primary-light:#ff3333;  /* Vermelho claro */

  --color-secondary:   #1a6fd4;   /* Azul principal */
  --color-secondary-dark:#1055a8; /* Azul escuro (hover) */
  --color-secondary-light:#4d9fff;/* Azul claro */

  --color-accent:      #d4af37;   /* Dourado */
  --color-accent-dark: #b8960c;   /* Dourado escuro */
  --color-accent-light:#f0d060;   /* Dourado claro */

  /* Textos */
  --color-text:        #ffffff;
  --color-text-muted:  #a0a0a0;
  --color-text-subtle: #606060;

  /* Alias legado (compatibilidade com Tailwind inline) */
  --primary:       var(--color-primary);
  --primary-dark:  var(--color-primary-dark);
  --primary-light: var(--color-primary-light);
  --dark:          var(--color-bg);
  --dark-card:     var(--color-bg-card);
  --dark-border:   var(--color-border);

  /* Safe area — iOS notch/Dynamic Island */
  --safe-area-top:    env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left:   env(safe-area-inset-left, 0px);
  --safe-area-right:  env(safe-area-inset-right, 0px);
}

/* ===== BODY & HTML ===== */
html {
  scroll-behavior: smooth;
  /* Prevenir zoom de fonte no iOS */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  /* Safe area bottom para iOS (notch/home bar) */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== 2.1a — SAFE AREA (iPhone Notch / Dynamic Island) ===== */
header {
  padding-top: env(safe-area-inset-top, 0px);
}

/* Padding lateral para telas com entalhe lateral */
.max-w-7xl, .max-w-5xl {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Bottom navigation e elementos fixos no rodapé */
.sticky-bottom,
#bottom-nav,
#chat-widget {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== 2.1d — SCROLL SUAVE NO iOS ===== */
.overflow-y-auto,
.modal-content,
#modal-conteudo-body,
[style*="overflow-y: auto"],
[style*="overflow: auto"] {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ===== 2.1c — PREVENIR ZOOM EM INPUTS NO iOS (font-size mínimo 16px) ===== */
input,
select,
textarea {
  font-size: 16px !important;
  /* Força renderização de aceleração GPU para performance */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ===== INPUT TYPE="DATE" — Cross-browser mobile ===== */
input[type="date"] {
  /* Garantir que o texto seja visível em todos os navegadores */
  color-scheme: dark;
  min-height: 44px;
  /* Remover aparência nativa indesejada */
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
/* iOS Safari: forçar cor do texto (evita transparência) */
input[type="date"]::-webkit-datetime-edit { color: #ffffff; padding: 0; }
input[type="date"]::-webkit-datetime-edit-fields-wrapper { padding: 0; }
input[type="date"]::-webkit-datetime-edit-text { color: #888; }
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-year-field { color: #ffffff; }
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(0.8);
  cursor: pointer;
  padding: 4px;
}

/* ===== 2.1c — BOTÕES: touch-action manipulation (prevenir double-tap zoom) ===== */
button,
.btn-primary,
.btn-secondary,
.btn-accent,
.btn-like,
.btn-acao,
.like-btn,
.ad-card,
.filter-chip {
  touch-action: manipulation;
}

/* ===== SCROLLBAR — compatível Chrome/Edge/Opera ===== */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: var(--color-bg); }
  ::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--color-primary-light); }
}
/* Firefox — scrollbar padrão */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-bg);
}

/* ===== LOGO DO HEADER ===== */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-header {
  height: 62px;
  width: auto;
  max-width: 320px;
  display: block;
  object-fit: contain;
}
@media (max-width: 768px) {
  .logo-header { height: 48px; max-width: 220px; }
}
@media (max-width: 480px) {
  .logo-header { height: 38px; max-width: 175px; }
}

/* ===== 2.1g — PAGE TRANSITIONS (GPU acceleration) ===== */
.page {
  will-change: opacity, transform;
  animation: fadeIn 0.3s ease;
  /* Fallback para navegadores sem will-change */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== 2.1g — POSITION: FIXED iOS Safari — evitar "pulo" durante scroll ===== */
.sticky,
[class*="sticky"],
header.sticky,
#chat-widget {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ===== CARDS DE ANÚNCIOS ===== */
.ad-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  /* iOS: cursor pointer ativa click em elementos não-interativos */
  cursor: pointer;
}
.ad-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(204, 0, 0, 0.3);
}
/* Desabilitar hover em touch devices (iOS não tem hover real) */
@media (hover: none) {
  .ad-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--color-border);
  }
  .ad-card:active {
    border-color: var(--color-primary);
    transform: scale(0.98);
  }
}

/* Destaque premium — borda dourada */
.ad-card.destaque {
  border-color: var(--color-accent);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}
.ad-card.destaque:hover {
  border-color: var(--color-accent-light);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
}

/* ===== FOTO DO ANÚNCIO ===== */
.ad-photo-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #0a0a0a;
}
/* Fallback aspect-ratio para Safari < 15 */
@supports not (aspect-ratio: 3/4) {
  .ad-photo-wrapper::before {
    content: '';
    display: block;
    padding-top: 133.33%;
  }
  .ad-photo-wrapper > img,
  .ad-photo-wrapper > video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
  }
}
.ad-photo-wrapper img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
  /* Definir dimensões explícitas para reduzir CLS */
  display: block;
}
.ad-card:hover .ad-photo-wrapper img { transform: scale(1.05); }
@media (hover: none) {
  .ad-card:active .ad-photo-wrapper img { transform: scale(1.02); }
}

/* Marca d'água */
.watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  color: rgba(255, 255, 255, 0.18);
  font-size: 18px; font-weight: bold;
  white-space: nowrap; pointer-events: none;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  letter-spacing: 2px; z-index: 2; user-select: none;
  -webkit-user-select: none;
}

/* Selo verificado */
.verified-badge {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(16, 185, 129, 0.9);
  color: white; font-size: 10px; font-weight: bold;
  padding: 3px 8px; border-radius: 20px;
  display: flex; align-items: center; gap: 3px;
  z-index: 3; backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Categoria badge */
.sexo-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 10px; font-weight: bold;
  padding: 3px 8px; border-radius: 20px; z-index: 3;
}
.sexo-badge.mulher { background: rgba(204, 0, 0, 0.85); }
.sexo-badge.homem  { background: rgba(26, 111, 212, 0.85); }
.sexo-badge.trans  { background: rgba(212, 175, 55, 0.85); color: #000; }

/* ===== GALERIA ===== */
.photo-gallery { display: grid; gap: 4px; }
.photo-gallery .main-photo { grid-column: span 2; }
.photo-gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; border-radius: 8px; }

/* ===== BOTÃO WHATSAPP — mínimo 44x44px (Apple HIG) ===== */
.btn-whatsapp {
  background: #25D366; color: white;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px;
  font-weight: bold; font-size: 16px;
  text-decoration: none; transition: all 0.2s;
  justify-content: center;
  min-height: 44px;
  touch-action: manipulation;
}
.btn-whatsapp:hover { background: #128C7E; transform: scale(1.02); }
@media (hover: none) {
  .btn-whatsapp:hover { transform: none; }
  .btn-whatsapp:active { background: #128C7E; transform: scale(0.98); }
}

/* ===== FORMULÁRIOS ===== */
.form-input {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 12px 16px; border-radius: 10px;
  font-size: 16px; /* mínimo 16px para evitar zoom no iOS */
  transition: border-color 0.2s; outline: none;
  -webkit-appearance: none; /* Remove estilo nativo iOS */
  appearance: none;
}
.form-input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.2);
}
.form-input::placeholder { color: #444; }
.form-label { display: block; color: var(--color-text-muted); font-size: 13px; font-weight: 500; margin-bottom: 6px; }

/* Select customizado — melhor aparência cross-browser */
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ===== BOTÕES — mínimo 44x44px ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 12px 24px; border-radius: 10px;
  font-weight: bold; border: none; cursor: pointer;
  transition: all 0.2s; font-size: 15px; width: 100%;
  min-height: 44px;
  touch-action: manipulation;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary)); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
@media (hover: none) {
  .btn-primary:hover { transform: none; }
  .btn-primary:active { transform: scale(0.98); }
}

/* Secundário — Azul */
.btn-secondary {
  background: var(--color-bg-elevated);
  color: var(--color-secondary-light);
  padding: 10px 20px; border-radius: 10px;
  font-weight: 500; border: 1px solid var(--color-secondary);
  cursor: pointer; transition: all 0.2s;
  min-height: 44px;
  touch-action: manipulation;
}
.btn-secondary:hover { background: rgba(26, 111, 212, 0.15); border-color: var(--color-secondary-light); }

/* Premium — Dourado */
.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #000;
  padding: 10px 20px; border-radius: 10px;
  font-weight: bold; border: none; cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  touch-action: manipulation;
}
.btn-accent:hover { background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent)); transform: translateY(-1px); }

/* ===== TOAST ===== */
.toast {
  min-width: 280px; padding: 14px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 500; animation: slideIn 0.3s ease;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  word-break: break-word;
}
.toast-success { background: #062a1a; border: 1px solid #10b981; color: #6ee7b7; }
.toast-error   { background: #2a0000; border: 1px solid var(--color-primary); color: #ff9999; }
.toast-info    { background: #001433; border: 1px solid var(--color-secondary); color: var(--color-secondary-light); }
.toast-warning { background: #2a1a00; border: 1px solid #f59e0b; color: #fcd34d; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== FILTROS / CHIPS ===== */
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  font-size: 13px; cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
  min-height: 36px;
  touch-action: manipulation;
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--color-primary);
  background: rgba(204, 0, 0, 0.12);
  color: var(--color-primary-light);
}

/* ===== PAINEL ADMIN ===== */
.admin-sidebar {
  background: var(--color-bg-card);
  border-right: 1px solid var(--color-border);
  min-height: calc(100vh - 56px);
  width: 240px; flex-shrink: 0;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; color: var(--color-text-muted);
  cursor: pointer; transition: all 0.2s;
  border-left: 3px solid transparent;
  min-height: 44px;
  touch-action: manipulation;
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(204, 0, 0, 0.1);
  color: var(--color-primary-light);
  border-left-color: var(--color-primary);
}

/* ===== TABELAS ADMIN — scroll horizontal no mobile ===== */
.admin-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}
table {
  min-width: 600px; /* força scroll horizontal em mobile */
  width: 100%;
  border-collapse: collapse;
}
@media (max-width: 768px) {
  table {
    font-size: 13px;
  }
  th, td {
    padding: 8px 10px;
    white-space: nowrap;
  }
}

/* ===== UPLOAD ===== */
.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: 12px; padding: 32px;
  text-align: center; cursor: pointer; transition: all 0.2s;
  background: #0d0d0d;
  touch-action: manipulation;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--color-secondary);
  background: rgba(26, 111, 212, 0.05);
}

/* Thumbnail de foto */
.photo-thumb {
  position: relative; aspect-ratio: 1;
  border-radius: 8px; overflow: hidden;
  border: 2px solid var(--color-border);
}
@supports not (aspect-ratio: 1) {
  .photo-thumb::before {
    content: '';
    display: block;
    padding-top: 100%;
  }
  .photo-thumb > img { position: absolute; top: 0; left: 0; }
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .remove-btn {
  position: absolute; top: 4px; right: 4px;
  background: rgba(204, 0, 0, 0.9);
  color: white; border: none; border-radius: 50%;
  width: 28px; height: 28px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  min-height: 28px; /* acessível mas compacto em thumbnails */
  touch-action: manipulation;
}

/* ===== STATUS BADGES ===== */
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-pendente    { background: #001433; color: var(--color-secondary-light); }
.status-aprovado    { background: #062a1a; color: #6ee7b7; }
.status-rejeitado   { background: #2a0000; color: #ff9999; }
.status-aguardando_alteracao { background: #2a1500; color: #fcd34d; border: 1px solid #b45309; }
.status-suspenso    { background: #1a1a1a; color: var(--color-text-muted); }
.status-expirado    { background: #180800; color: #fdba74; }

/* ===== ANIMAÇÕES ===== */
@keyframes pulse-slow { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }
.animate-pulse-slow { animation: pulse-slow 2s infinite; }

/* ===== SKELETON LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}
.skeleton-photo {
  aspect-ratio: 3/4;
  background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@supports not (aspect-ratio: 3/4) {
  .skeleton-photo {
    padding-top: 133.33%;
    position: relative;
  }
}
.skeleton-line {
  height: 12px; border-radius: 6px; margin: 8px 12px;
  background: linear-gradient(90deg, #1a1a1a 25%, #222 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-line.short { width: 60%; }

/* ===== MOBILE MENU ===== */
.mobile-menu { display: none; }
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-sidebar.open { display: block; position: fixed; top: 56px; left: 0; z-index: 30; width: 100%; min-height: auto; }
  .mobile-menu { display: block; }
}

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  /* Safe area em modais */
  padding-top: max(16px, env(safe-area-inset-top, 16px));
  padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
}
.modal-content {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px; padding: 28px;
  max-width: 500px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== CAMERA ===== */
.camera-container {
  background: #000; border-radius: 12px;
  overflow: hidden; aspect-ratio: 4/3; position: relative;
}
@supports not (aspect-ratio: 4/3) {
  .camera-container::before {
    content: '';
    display: block;
    padding-top: 75%;
  }
}
.camera-container video, .camera-container canvas {
  width: 100%; height: 100%; object-fit: cover;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Fallback para navegadores que não suportam text-fill-color */
  color: var(--color-primary);
}
@supports (-webkit-background-clip: text) {
  .gradient-text { color: transparent; }
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(180deg, #1a0000 0%, #000000 100%);
  padding: 40px 16px;
  text-align: center;
  /* Safe area lateral */
  padding-left: max(16px, env(safe-area-inset-left, 16px));
  padding-right: max(16px, env(safe-area-inset-right, 16px));
}

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.section-header::after {
  content: ''; flex: 1; height: 1px;
  background: var(--color-border);
}

/* ===== RESPONSIVE GRID ===== */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  /* Flexbox gap fallback para Safari < 14 */
}
@media (max-width: 480px) {
  .ads-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (min-width: 1024px) {
  .ads-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.97);
  display: flex; align-items: center; justify-content: center;
  /* Safe area */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain; border-radius: 8px;
  /* Evitar seleção acidental no mobile */
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
/* Botões do lightbox — mínimo 44x44px */
.lightbox > button {
  min-width: 44px; min-height: 44px;
  touch-action: manipulation;
}

/* ===== LIKES SYSTEM ===== */
.like-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  cursor: pointer; transition: all 0.2s ease;
  color: var(--color-text-muted);
  border-radius: 8px;
  min-height: 36px; min-width: 36px;
  touch-action: manipulation;
  /* SVG icon — consistente cross-platform (sem depender de emoji) */
}
.like-btn:hover {
  border-color: var(--color-primary);
  background: rgba(204, 0, 0, 0.1);
}
.like-btn:hover .like-icon { color: var(--color-primary); transform: scale(1.2); }
.like-btn.liked {
  border-color: var(--color-primary);
  background: rgba(204, 0, 0, 0.1);
}
.like-btn .like-icon { transition: all 0.2s ease; }
.like-btn:active { transform: scale(0.95); }
@keyframes likePopup { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }
.like-btn.just-liked .like-icon { animation: likePopup 0.3s ease; }

/* ===== AGE VERIFICATION MODAL ===== */
#age-modal { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
#age-step-2, #age-step-facial, #age-step-visitante { display: none; }
#facial-video { transform: scaleX(-1); -webkit-transform: scaleX(-1); }
@keyframes facialPulse { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.02); } }
#facial-overlay > div { animation: facialPulse 2s ease-in-out infinite; }

/* ===== VISITANTE BADGE ===== */
.visitante-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}

/* ===== DESTAQUE DOURADO (Anúncios Premium) ===== */
.destaque-gold-border {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}
.destaque-gold-text { color: var(--color-accent); }
.destaque-gold-bg   { background: rgba(212, 175, 55, 0.1); }

/* ===== CHAT ===== */
.chat-bubble-user {
  background: var(--color-primary);
  color: white; border-radius: 16px 16px 4px 16px;
}
.chat-bubble-admin {
  background: var(--color-bg-elevated);
  color: var(--color-text); border-radius: 16px 16px 16px 4px;
  border: 1px solid var(--color-border);
}

/* ===== BOTTOM NAVIGATION BAR — REMOVIDO POR SOLICITAÇÃO ===== */
/* Os botões Home, Buscar e Conta foram removidos do rodapé mobile */
#bottom-nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
@media (max-width: 767px) {
  #bottom-nav { display: none !important; }
  /* Sem padding extra no main já que a bottom nav está oculta */
  #main-content {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  footer {
    margin-bottom: 0;
  }
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  color: var(--color-text-muted);
  font-size: 10px;
  gap: 3px;
  transition: color 0.2s;
  min-height: 56px;
  touch-action: manipulation;
  cursor: pointer;
  border: none;
  background: transparent;
}
.bottom-nav-item:active,
.bottom-nav-item.active {
  color: var(--color-primary);
}
.bottom-nav-item i {
  font-size: 20px;
}

/* ===== PULL-TO-REFRESH ===== */
#ptr-indicator {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--color-text-muted);
  font-size: 13px;
  gap: 8px;
  transition: all 0.3s ease;
}
#ptr-indicator.visible { display: flex; }
#ptr-indicator .spinner { width: 20px; height: 20px; border-width: 2px; }

/* ===== PROSE DARK (Conteúdos Institucionais) ===== */
.prose-dark h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #2a2a2a;
}
.prose-dark h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e5e5e5;
  margin: 1.25rem 0 0.5rem;
}
.prose-dark h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #d4d4d4;
  margin: 1rem 0 0.4rem;
}
.prose-dark p {
  margin: 0.65rem 0;
  line-height: 1.7;
}
.prose-dark ul, .prose-dark ol {
  margin: 0.65rem 0 0.65rem 1.5rem;
}
.prose-dark li {
  margin: 0.3rem 0;
  line-height: 1.6;
}
.prose-dark strong {
  color: #fff;
  font-weight: 600;
}
.prose-dark a {
  color: #4d9fff;
  text-decoration: underline;
}
.prose-dark a:hover {
  color: #80bfff;
}
.prose-dark img {
  max-width: 100%;
  border-radius: 8px;
  margin: 0.75rem 0;
}
.prose-dark blockquote {
  border-left: 3px solid #cc0000;
  padding-left: 1rem;
  color: #aaa;
  margin: 1rem 0;
  font-style: italic;
}

/* ===== RICH EDITOR BUTTONS ===== */
.editor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: #ccc;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}
.editor-btn:hover {
  background: #2a2a2a;
  border-color: #444;
  color: #fff;
}
.editor-btn:active {
  background: #cc0000;
  border-color: #cc0000;
  color: #fff;
}

/* ===== ACEITE TERMOS CHECKBOX ===== */
#aceite-termos-cb:checked + div {
  border-color: #cc0000 !important;
  background-color: #cc0000 !important;
}
#aceite-termos-cb:checked + div .peer-checked-icon {
  display: block !important;
}

/* ===== RESPONSIVIDADE GERAL — Viewport 320px (iPhone SE) ===== */
@media (max-width: 375px) {
  .hero-section h1 {
    font-size: 1.75rem !important;
  }
  .hero-section {
    padding: 24px 12px;
  }
  /* Botões de gênero: empilhar verticalmente em telas < 375px */
  .hero-section .flex.justify-center.gap-3 {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ===== TOAST CONTAINER — mobile (bottom nav removida, usar posição padrão) ===== */
@media (max-width: 767px) {
  #toast-container {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    right: 12px !important;
    left: 12px !important;
    max-width: none !important;
  }
  .toast {
    min-width: unset;
    width: 100%;
  }
}

/* ===== CHAT WIDGET — posição ajustada (bottom nav removida) ===== */
@media (max-width: 767px) {
  #chat-widget {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
  }
}

/* ===== NOTIFICAÇÃO DE COMPATIBILIDADE ===== */
.compat-warning {
  background: #2a1500;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #fcd34d;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== MELHORIAS MOBILE ADICIONAIS (v18 — correção interface) ===== */

/* Garantir que modais sejam scrolláveis no mobile */
@media (max-width: 767px) {
  #age-modal > div {
    max-height: 94vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-content {
    padding: 20px 16px;
    border-radius: 16px;
  }
  /* Botões do modal de verificação — tamanho touch-friendly */
  #age-step-1 button,
  #age-step-2 button,
  #age-step-visitante button[type="submit"] {
    min-height: 48px;
  }
  /* Formulário de verificação CPF — espaçamento melhorado */
  #age-step-visitante .flex.gap-2 {
    flex-direction: column;
    gap: 8px;
  }
  #age-step-visitante .flex.gap-2 button[type="button"] {
    width: 100%;
    min-height: 44px;
  }
}

/* Header — melhor espaçamento em telas pequenas */
@media (max-width: 480px) {
  header .flex.items-center.gap-2 {
    gap: 6px;
  }
  header button {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* Footer — ocultar na versão mobile sem espaço extra */
@media (max-width: 767px) {
  #site-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    margin-bottom: 0;
  }
}

/* ===== FILTRO OBRIGATÓRIO — TELA INICIAL ===== */

/* Botões de categoria */
.categoria-btn {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  min-height: 90px;
}

.categoria-btn.selecionado {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(204, 0, 0, 0.25);
}

.categoria-btn:active {
  transform: scale(0.97);
}

/* Animação de entrada do card de filtro */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card do filtro obrigatório */
.filtro-obrigatorio-card {
  animation: slideUpFade 0.3s ease-out;
}

/* Stats na home */
#home-stats {
  animation: slideUpFade 0.4s ease-out 0.1s both;
}

/* Mensagem sem anúncios */
#sem-anuncios-container {
  animation: slideUpFade 0.3s ease-out;
}

/* ===== v10.1 — AJUSTES FILTRO HOME ===== */

/* Botão de alterar localização */
.btn-localizacao {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #9ca3af;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-localizacao:hover {
  color: #fff;
  border-color: #cc0000;
  background: #1a1a1a;
}

/* ============================================================
   PUBLICIDADE — Formatos de Banner (v2.0)
   horizontal | vertical | quadrado
   ============================================================ */

/* ============================================================
   PUBLICIDADE — Sistema Completo v2.0
   Suporte a: banner, carrossel, grid, lista, destaque
   Controle total de tamanho (largura/altura/fit via inline)
   ============================================================ */

/* Container base de qualquer banner */
.pub-banner {
  background: linear-gradient(135deg, #1a0a00 0%, #000 100%);
  border: 1px solid #3d2600;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.pub-banner:hover {
  box-shadow: 0 4px 20px rgba(204, 0, 0, 0.2);
}

/* ── HORIZONTAL (banner topo, full-width) ────────────────── */
.pub-horizontal {
  width: 100%;
  min-height: 80px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
}

/* CORREÇÃO: Horizontal com texto — imagem ao lado */
.pub-img-horizontal {
  width: 160px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

/* NOVO: Horizontal sem texto — imagem ocupa largura total, respeitando altura definida */
.pub-img-horizontal-full {
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  display: block;
}
.pub-img-horizontal-full img {
  width: 100%;
  display: block;
}

/* Banner horizontal sem texto não precisa de padding interno */
.pub-horizontal:has(.pub-img-horizontal-full) {
  padding: 0;
  min-height: unset;
}

@media (max-width: 480px) {
  .pub-img-horizontal {
    width: 110px;
  }
  .pub-horizontal {
    padding: 8px 12px;
  }
  .pub-img-horizontal-full img {
    object-fit: cover;
  }
}

/* ── VERTICAL (lateral, personalizável) ─────────────────── */
.pub-vertical {
  min-height: 200px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  vertical-align: top;
}

.pub-img-vertical {
  flex-shrink: 0;
  overflow: hidden;
}

/* ── QUADRADO (card, personalizável) ──────────────────────── */
.pub-quadrado {
  min-height: 150px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  vertical-align: top;
}

.pub-img-quadrado {
  flex-shrink: 0;
  overflow: hidden;
}

/* Fallback: imagens sem tamanho explícito */
.pub-banner img {
  display: block;
  max-width: 100%;
}

/* ── CONTAINER DE MÚLTIPLAS PUBLICIDADES ─────────────────── */

/* Banner único ou múltiplos */
.pub-container-banner {
  width: 100%;
}

/* ── MODO CARROSSEL ──────────────────────────────────────── */
.pub-container-carrossel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.pub-carousel-track {
  position: relative;
  width: 100%;
}

.pub-carousel-slide {
  display: none;
  animation: pubFadeIn 0.4s ease;
}
.pub-carousel-slide.active {
  display: block;
}

@keyframes pubFadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Botões de navegação */
.pub-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
  padding: 0;
}
.pub-carousel-btn:hover {
  background: rgba(204, 0, 0, 0.8);
}
.pub-carousel-prev { left: 8px; }
.pub-carousel-next { right: 8px; }

/* Dots de navegação */
.pub-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 4px;
}
.pub-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
}
.pub-carousel-dot.active {
  background: #cc0000;
  transform: scale(1.3);
}

/* ── MODO GRID ───────────────────────────────────────────── */
.pub-container-grid {
  display: grid;
  gap: 12px;
  width: 100%;
}
.pub-grid-1 { grid-template-columns: 1fr; }
.pub-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pub-grid-3 { grid-template-columns: repeat(3, 1fr); }

.pub-grid-item .pub-banner {
  width: 100% !important;
  height: 100%;
}
.pub-grid-item .pub-horizontal {
  min-height: 100px;
}

@media (max-width: 640px) {
  .pub-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pub-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .pub-grid-3, .pub-grid-2 { grid-template-columns: 1fr; }
}

/* ── MODO LISTA ──────────────────────────────────────────── */
.pub-container-lista {
  width: 100%;
}
.pub-lista-item .pub-banner {
  width: 100% !important;
  margin-bottom: 0;
}

/* ── MODO DESTAQUE ───────────────────────────────────────── */
.pub-container-destaque {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}
@media (min-width: 640px) {
  .pub-container-destaque {
    grid-template-columns: 2fr 1fr;
  }
}

.pub-destaque-principal .pub-banner {
  width: 100% !important;
  min-height: 180px;
}
.pub-destaque-principal .pub-horizontal {
  min-height: 180px;
  max-height: 220px;
}

.pub-destaque-secundarias {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pub-destaque-sec-item .pub-banner {
  width: 100% !important;
}
.pub-destaque-sec-item .pub-horizontal {
  min-height: 80px;
  padding: 8px 12px;
}

@media (max-width: 639px) {
  .pub-container-destaque {
    grid-template-columns: 1fr;
  }
  .pub-destaque-secundarias {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .pub-destaque-sec-item {
    flex: 1;
    min-width: 140px;
  }
}
