:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-color: #1f2937;
  --light-color: #f8fafc;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

html, body {
  overflow-x: hidden;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar moderna */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1100; /* ensures dropdowns render above page content */
}

.navbar-brand {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

.navbar-brand img {
  max-height: 36px;
  height: 36px;
  width: auto;
  object-fit: contain;
  margin-right: 10px;
}

/* Botões modernos */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 102, 241, 0.4);
}

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

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-success {
  background: var(--gradient-accent);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-outline-success {
  border: 2px solid var(--success-color);
  color: var(--success-color);
  background: transparent;
}

.btn-outline-success:hover {
  background: var(--success-color);
  color: white;
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--gradient-secondary);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-outline-secondary {
  border: 2px solid var(--dark-color);
  color: var(--dark-color);
  background: transparent;
}

.btn-outline-secondary:hover {
  background: var(--dark-color);
  color: white;
  transform: translateY(-2px);
}

/* Container principal */
.container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.text-break {
  word-break: break-word;
  overflow-wrap: break-word;
}
@media (max-width: 767.98px) {
  .border-md-end {
    border: none !important;
  }
}

/* Cards de imagem */
.image-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.image-card img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

/* Galeria pública: tornar imagens claramente clicáveis */
.gallery-card {
  transition: border-color .08s ease, box-shadow .08s ease, transform .08s ease;
}
.gallery-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.gallery-image {
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, opacity .08s ease;
}
.gallery-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  opacity: 0.96;
}
/* Galeria pública: botões de compartilhamento — ícones sem borda e cores originais */
.gallery-card .gallery-share .share-icon-btn {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0.125rem 0.25rem;
  line-height: 1;
  opacity: 0.85;
}
.gallery-card .gallery-share .share-icon-btn:hover { opacity: 1; text-decoration: none; }
.gallery-card .gallery-share .share-icon-btn:focus { outline: none; box-shadow: none; }
.gallery-card .gallery-share .bi-whatsapp { color: #25D366; }
.gallery-card .gallery-share .bi-twitter { color: #1DA1F2; }
.gallery-card .gallery-share .bi-facebook { color: #1877F2; }
.gallery-card .gallery-share .bi-linkedin { color: #0A66C2; }
.gallery-card .gallery-share .bi-telegram { color: #0088cc; }
.gallery-card .gallery-share .bi-link-45deg { color: #6c757d; }

/* Compartilhamento global: aplicar estilo sem depender de .gallery-card */
.gallery-share .share-icon-btn {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0.125rem 0.25rem;
  line-height: 1;
  opacity: 0.85;
}
.gallery-share .share-icon-btn:hover { opacity: 1; text-decoration: none; }
.gallery-share .share-icon-btn:focus { outline: none; box-shadow: none; }
.gallery-share .bi-whatsapp { color: #25D366; }
.gallery-share .bi-twitter { color: #1DA1F2; }
.gallery-share .bi-facebook { color: #1877F2; }
.gallery-share .bi-linkedin { color: #0A66C2; }
.gallery-share .bi-telegram { color: #0088cc; }
.gallery-share .bi-link-45deg { color: #6c757d; }

/* Área de status */
.status-area {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  border-left: 4px solid var(--primary-color);
}

/* Formulários */
.form-control {
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark-color);
  font-weight: 600;
}

.page-title {
  color: white; /* fallback para navegadores que não suportam text-fill */
  -webkit-background-clip: text;
  -webkit-text-fill-color: white; /* mantém branco */
  background-clip: text;
  font-weight: 700;
}

/* Destaques de planos: free vs premium */
.feature-card { background: var(--light-color); border: 1px solid rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 0.25rem 1rem rgba(0,0,0,.08); }
.feature-card.free { background: linear-gradient(180deg, rgba(13,110,253,.08), rgba(255,255,255,.88)); border-color: rgba(13,110,253,.15); }
.feature-card.premium { background: linear-gradient(180deg, rgba(25,135,84,.08), rgba(255,255,255,.88)); border-color: rgba(25,135,84,.15); }
.pulse-number { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* Botão piscando para destacar benefício free */
.blink-btn { animation: blinkGlow 1.4s ease-in-out infinite; border-radius: 999px; padding: .5rem 1rem; }
@keyframes blinkGlow {
  0% { box-shadow: 0 0 0 rgba(99,102,241,0); transform: translateY(0); }
  50% { box-shadow: 0 0 18px rgba(99,102,241,.35); transform: translateY(-1px); }
  100% { box-shadow: 0 0 0 rgba(99,102,241,0); transform: translateY(0); }
}

/* Ícone circular para destaque */
.icon-circle { display:inline-flex; justify-content:center; align-items:center; width:44px; height:44px; border-radius:50%; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.icon-circle i { font-size: 1.25rem; }

/* Badges e tipografia nos cards */
.feature-card .badge { border-radius:999px; padding:.35rem .75rem; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.feature-card .fw-bold { letter-spacing:.2px; }
.feature-card small { opacity:.9; }

/* Elevate dropdown menu above custom containers with stacking contexts */
.dropdown-menu { z-index: 2000; }

/* Logo do tenant no perfil */
.tenant-logo {
  width: 248px;
  max-height: 100px;
  object-fit: contain;
}

.tenant-logo-fallback {
  width: 248px;
  max-height: 100px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.tenant-logo-fallback .bi {
  font-size: 1.25rem;
}

/* Cards de preços */
.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  background: var(--gradient-primary);
  color: white;
}

/* Pricing typography tweaks */
.pricing-price { line-height: 1; }
.pricing-features li i { font-size: 1rem; }

/* Alertas */
.alert {
  border-radius: 8px;
  border: none;
  padding: 1rem 1.5rem;
}

.alert-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.alert-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
  .container {
    margin: 1rem;
    padding: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

html, body { overflow-x: hidden; }

/* Tabelas admin: manter rolável e com colunas proporcionais */
.table-responsive { overflow-x: auto; }
.table.table-sm { table-layout: fixed; width: 100%; }
.table th, .table td { white-space: normal; word-break: break-word; }

/* Lazy YouTube styles */
.lazy-video { position: relative; cursor: pointer; }
.lazy-video img { display: block; width: 100%; height: auto; }
.lazy-video .play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; background: rgba(0,0,0,0.6);
}
.lazy-video .play-btn::before {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%);
  border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.lazy-video.playing .play-btn { display: none; }

/* Grid de ícones de marcas */
.brands-grid img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.9;
  transition: opacity .2s ease;
}
.brands-grid img:hover { opacity: 1; }
@media (min-width: 768px) {
  .brands-grid { max-width: 900px; margin: 0 auto; }
}

/* Botões visíveis para o carrossel de marcas */
.brands-carousel .brand-control {
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.brands-carousel .carousel-control-prev-icon,
.brands-carousel .carousel-control-next-icon {
  filter: invert(1);
  width: 2rem;
  height: 2rem;
}
.brands-carousel .carousel-control-prev.brand-control { left: 1rem; }
.brands-carousel .carousel-control-next.brand-control { right: 1rem; }
.brands-carousel .control-text { color: #fff; }

@media (min-width: 768px) {
  .brands-carousel .carousel-control-prev-icon,
  .brands-carousel .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.container-footer {
  max-width: 1320px;     
  margin-left: auto;      
  margin-right: auto;     
  padding-left: 50px;     
  padding-right: 50px;    
  box-sizing: border-box; 
}


