/* assets/css/base.css */
/* CSS GLOBAL COMPLETO - Header, Sidebar, Footer, Ads, Index, Layout */

/* ===================================
   RESET E BASE GLOBAL
   ================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ANTI-SCROLL HORIZONTAL GLOBAL */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

*,
*::before,
*::after {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* ===================================
   LAYOUT PRINCIPAL - GRID RESPONSIVO
   ================================== */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0 1fr 300px;
  gap: 2rem;
  padding: 2rem 1rem;
  min-height: calc(100vh - 80px);
  position: relative;
  width: 100% !important;
  overflow-x: hidden !important;
}

/* CONTAINERS PRINCIPAIS - SEMPRE RESPONSIVOS */
.header-container,
.footer-container,
.site-header,
.calculey-footer {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
}

/* ===================================
   HEADER GLOBAL - BIG TECH LAYOUT
   ================================== */
.site-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main {
  padding: 1rem 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  z-index: 8000;
}

/* LOGO SECTION */
.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 280px;
}

.logo-link {
  text-decoration: none;
  display: block;
}

.site-logo {
  width: auto !important;
  max-width: 250px !important;
  height: 60px !important;
  margin-left: 2rem;
  object-fit: contain !important;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.site-logo:hover {
  transform: scale(1.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.site-name {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.site-subtitle {
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1;
}

/* BUSCA CENTRAL */
.search-section {
  flex: 1;
  max-width: 600px;
  margin: 0 1rem;
}

.search-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 15px 60px 15px 20px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: #666;
  font-weight: 400;
}

.search-input:focus {
  outline: none;
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #667eea;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-button:hover {
  background: #5a67d8;
  transform: translateY(-50%) scale(1.1);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: white;
}

/* AUTOCOMPLETE */
.search-autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px;
  max-height: 450px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.autocomplete-results {
  padding: 0;
}

.autocomplete-header {
  background: #667eea;
  color: white;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 20px 20px 0 0;
}

.autocomplete-item {
  padding: 15px 20px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #333;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: linear-gradient(90deg, #f8f9ff 0%, #e8eaff 100%);
  border-left: 4px solid #667eea;
  padding-left: 16px;
}

.autocomplete-item:last-child {
  border-bottom: none;
  border-radius: 0 0 20px 20px;
}

.autocomplete-category {
  background: #667eea;
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 90px;
  text-align: center;
  flex-shrink: 0;
}

.autocomplete-name {
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
}

.autocomplete-name strong {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  padding: 2px 4px;
  border-radius: 4px;
}

/* MENU NAVEGAÇÃO */
.nav-section {
  display: flex;
  gap: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 16px;
  text-decoration: none;
  color: white;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-icon {
  font-size: 1.1rem;
}

/* BREADCRUMB */
.header-breadcrumb {
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 0;
}

.breadcrumb-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.breadcrumb-item {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item:hover {
  color: white;
  text-decoration: underline;
}

.breadcrumb-current {
  color: white;
  font-weight: 600;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

/* ===================================
   SIDEBAR MÓVEL
   ================================== */
.sidebar-fixed-button {
  position: fixed;
  top: 28%;
  left: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1500;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.sidebar-fixed-button.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(0) !important;
  pointer-events: none !important;
}

.sidebar-fixed-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.sidebar-fixed-button.pulse {
  animation: sidebarPulse 3s infinite;
}

@keyframes sidebarPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.calc-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.calc-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.calc-sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  z-index: 1450;
  padding: 2rem 1.5rem;
  border-right: 3px solid #667eea;
  overflow-y: auto;
  transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  max-width: calc(100vw - 40px) !important;
}

.calc-sidebar.open {
  left: 0;
}

.calc-sidebar h3 {
  color: #2c3e50;
  margin-bottom: 2rem;
  font-size: 1.3rem;
  text-align: center;
  border-bottom: 2px solid #667eea;
  padding-bottom: 0.8rem;
}

.calc-menu-category {
  margin-bottom: 1.5rem;
}

.calc-menu-category-header {
  color: #667eea;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  padding: 0.8rem;
  background: #f8f9ff;
  border-radius: 10px;
  border-left: 4px solid #667eea;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-weight: 600;
  user-select: none;
}

.calc-menu-category-header:hover {
  background: #667eea;
  color: white;
  transform: translateX(5px);
}

.calc-menu-category.collapsed .calc-menu-category-header::after {
  content: " ▶";
  margin-left: auto;
  transition: transform 0.3s ease;
}

.calc-menu-category:not(.collapsed) .calc-menu-category-header::after {
  content: " ▼";
  margin-left: auto;
  transition: transform 0.3s ease;
}

.calc-menu-list {
  list-style: none;
  padding-left: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.calc-menu-category.collapsed .calc-menu-list {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.calc-menu-category:not(.collapsed) .calc-menu-list {
  max-height: 800px;
  opacity: 1;
  padding-top: 0.5rem;
}

.calc-menu-list li {
  margin-bottom: 0.3rem;
}

.calc-menu-list a {
  color: #5a6c7d;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  display: block;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.calc-menu-list a:hover {
  background: #667eea;
  color: white;
  transform: translateX(5px);
}

.calc-menu-list a.active {
  background: #667eea;
  color: white;
  font-weight: 600;
  border-color: #5a67d8;
}

/* ===================================
   SISTEMA DE ADS
   ================================== */
.ads-banner-top,
.ads-between-content {
  margin: 1.5rem 0;
  text-align: center;
  padding: 0.5rem 0;
}

.ads-bottom {
  text-align: center;
  padding: 1rem 0;
}

.ads-sidebar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1rem;
  height: fit-content;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.ads-placeholder,
.ads-placeholder-compact {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  padding: 1.5rem;
  color: #6c757d;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
}

.ads-placeholder:hover,
.ads-placeholder-compact:hover {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.ads-placeholder-compact {
  height: 250px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.ads-label {
  display: block;
  font-size: 0.75rem;
  color: #999;
  text-align: center;
  margin-bottom: 0.3rem;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.ads-sidebar-related,
.ads-sidebar-tips {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e6ed;
  transition: all 0.3s ease;
}

.ads-sidebar-related:hover,
.ads-sidebar-tips:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.ads-sidebar-related h4,
.ads-sidebar-tips h4 {
  color: #667eea;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  border-bottom: 2px solid #667eea;
  padding-bottom: 0.3rem;
  font-weight: 600;
}

.ads-mini-calc-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ads-mini-calc-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #f8f9ff;
  border-radius: 6px;
  text-decoration: none;
  color: #2c3e50;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: 1px solid #e0e6ed;
}

.ads-mini-calc-item:hover {
  background: #667eea;
  color: white;
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.ads-mini-calc-item span {
  font-size: 1rem;
  flex-shrink: 0;
}

.ads-quick-tip {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 0.8rem;
}

.ads-quick-tip p {
  margin: 0;
  font-size: 0.85rem;
  color: #856404;
  line-height: 1.4;
}

.ads-after-explanation,
.ads-after-legal {
  margin: 2rem 0;
  text-align: center;
  /*background: rgba(255, 255, 255, 0.9);*/
  border-radius: 8px;
}

.ads-after-explanation .ads-placeholder,
.ads-after-legal .ads-placeholder {
  background: #fff3e0;
  border: 2px dashed #ff9800;
  color: #e65100;
  font-weight: 600;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.ads-after-explanation .ads-placeholder:hover,
.ads-after-legal .ads-placeholder:hover {
  background: #ffe0b2;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.1);
}

/* ===================================
   INDEX - PÁGINA INICIAL
   ================================== */
.popular-section {
  margin-bottom: 3rem;
}

.popular-section h2 {
  color: #2c3e50;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.5rem;
  display: inline-block;
  width: 100%;
}

.calc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100% !important;
  overflow-x: hidden !important;
}

.calc-card-compact {
  background: white;
  border: 2px solid #e0e6ed;
  border-radius: 15px;
  padding: 1.5rem;
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.calc-card-compact:hover {
  border-color: #667eea;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.calc-card-compact h3 {
  color: #667eea;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.calc-card-compact p {
  color: #5a6c7d;
  margin: 0;
  font-size: 0.9rem;
}

/* ===================================
   FOOTER CALCULEY
   ================================== */
.calculey-footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  margin-top: 3rem;
  position: relative;
  border-top: 3px solid #667eea;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.footer-top-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo-section {
  display: flex;
  align-items: center;
}

.footer-logo {
  width: 300px;
  height: auto;
  max-height: 140px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.footer-trust-badges {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.trust-badge {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.trust-badge:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.trust-icon {
  font-size: 1rem;
}

.footer-middle-line {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  align-items: flex-start;
}

.footer-description-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.footer-description-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
}

.footer-menu-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-menu-section h4 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: start;
}

.footer-menu-list li {
  margin-bottom: 0.6rem;
}

.footer-menu-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: block;
  padding: 0.2rem 0;
}

.footer-menu-list a:hover {
  color: #667eea;
  transform: translateX(3px);
}

.footer-menu-list a[href*="todas-calculadoras"] {
  color: #667eea;
  font-weight: 600;
  border-top: 1px solid rgba(102, 126, 234, 0.3);
  margin-top: 0.5rem;
  padding-top: 0.8rem;
}

.footer-calculators-line {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  align-items: flex-start;
}

.footer-calculators-section {
  text-align: center;
}

.footer-calculators-section h4 {
  color: #667eea;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-calc-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
  width: 100% !important;
  overflow-x: hidden !important;
}

.footer-calc-column h5 {
  color: #667eea;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 2px solid rgba(102, 126, 234, 0.3);
  padding-bottom: 0.5rem;
}

.footer-calc-column .footer-menu-list {
  text-align: left;
}

.footer-all-calcs {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(102, 126, 234, 0.3);
}

.footer-all-link {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea !important;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-all-link:hover {
  background: #667eea;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.footer-resources-section {
  text-align: center;
  margin-top: 3.2rem;
}

.footer-resources-section h4 {
  color: #667eea;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 2px solid rgba(102, 126, 234, 0.3);
  padding-bottom: 0.5rem;
}

.footer-resources-section .footer-menu-list {
  text-align: left;
  max-width: 250px;
  margin: 0 auto;
}

.footer-bottom-line {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-align: center;
}

.footer-copyright p {
  margin: 0;
}

.footer-tagline {
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.6;
  margin-top: 0.3rem;
}

.footer-made-with-love {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.heart {
  color: #e74c3c;
  font-size: 1.1rem;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {

  0%,
  50%,
  100% {
    transform: scale(1);
  }

  25%,
  75% {
    transform: scale(1.2);
  }
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #667eea;
}

.country-highlight {
  background: linear-gradient(135deg, #009c3b, #ffdf00);
  color: white;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
}

/* ===================================
   ELEMENTOS ESPECIAIS
   ================================== */

/* HEADERS DAS CALCULADORAS */
.content section [class$="-header"]:not(.ph-header):not(.has-custom-background) {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(15px) !important;
  border-radius: 20px !important;
  padding: 2rem !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  text-align: center !important;
  position: relative !important;
}

.content section [class$="-header"]:not(.ph-header):not(.has-custom-background) h1 {
  font-size: 2.5rem !important;
  margin-bottom: 1rem !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  color: var(--primary, #667eea) !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.content section [class$="-header"]:not(.ph-header):not(.has-custom-background) p {
  font-size: 1.2rem !important;
  color: #5a6c7d !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  line-height: 1.6 !important;
}

/* FAQ UNIVERSAL */
.faq-container {
  background: #ffffff;
  border: 2px solid rgba(var(--primary-rgb, 102, 126, 234), 0.2);
  border-radius: 15px;
  padding: 2rem;
  margin: 3rem 0 2rem 0;
  box-shadow: 0 8px 25px rgba(var(--primary-rgb, 102, 126, 234), 0.1);
  position: relative;
  overflow: hidden;
}

.faq-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient, linear-gradient(135deg, #667eea, #764ba2));
}

.faq-item {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(var(--primary-rgb, 102, 126, 234), 0.15);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(var(--primary-rgb, 102, 126, 234), 0.15);
  transform: translateY(-2px);
}

.faq-question {
  background: linear-gradient(135deg, var(--light, #f8f9ff), rgba(var(--primary-rgb, 102, 126, 234), 0.08));
  padding: 1.3rem 1.5rem;
  font-weight: 700;
  color: var(--primary, #667eea);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(var(--primary-rgb, 102, 126, 234), 0.1);
  font-size: 1.05rem;
}

.faq-question:hover {
  background: linear-gradient(135deg, rgba(var(--primary-rgb, 102, 126, 234), 0.12), var(--light));
  color: var(--primary);
}

.faq-question::marker {
  display: none;
}

.faq-question::before {
  content: "❓ ";
  margin-right: 0.8rem;
  font-size: 1.1rem;
}

.faq-item[open] .faq-question {
  background: linear-gradient(135deg, var(--primary, #667eea), var(--secondary, #764ba2));
  color: #ffffff !important;
}

.faq-item[open] .faq-question::before {
  content: "✅ ";
  animation: fadeIn 0.3s ease;
}

.faq-answer {
  padding: 1.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-top: 2px solid rgba(var(--primary-rgb, 102, 126, 234), 0.08);
  animation: expandAnswer 0.3s ease;
}

.faq-answer p {
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: var(--primary);
  font-weight: 600;
}

.faq-answer em {
  color: var(--secondary);
  font-style: normal;
  font-weight: 500;
}

@keyframes expandAnswer {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* CREDIBILIDADE UNIVERSAL */
.credibilidade-container {
  background: #ffffff;
  border: 2px solid rgba(var(--primary-rgb, 102, 126, 234), 0.2);
  border-radius: 15px;
  padding: 2rem;
  margin: 3rem 0 2rem 0;
  text-align: center;
  box-shadow: 0 8px 25px rgba(var(--primary-rgb, 102, 126, 234), 0.1);
  position: relative;
  overflow: hidden;
}

.credibilidade-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient);
}

.credibilidade-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.credibilidade-icon {
  font-size: 2.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.credibilidade-title {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.credibilidade-content {
  color: #4a5568;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.credibilidade-content strong {
  color: var(--primary);
  font-weight: 600;
}

.credibilidade-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.credibilidade-badge {
  background: rgba(var(--primary-rgb, 102, 126, 234), 0.1);
  color: var(--primary);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(var(--primary-rgb, 102, 126, 234), 0.2);
  transition: all 0.3s ease;
}

.credibilidade-badge:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--primary-rgb, 102, 126, 234), 0.3);
}

.credibilidade-equipe {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(var(--primary-rgb, 102, 126, 234), 0.1);
  color: #6b7280;
  font-size: 0.9rem;
}

.credibilidade-logo {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

/* COOKIE CONSENT */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  border-top: 4px solid #3498db;
}

.cookie-consent-banner.cookie-banner-visible {
  transform: translateY(0);
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.cookie-banner-text h4 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: #3498db;
  font-weight: 600;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #ecf0f1;
}

.cookie-banner-text a {
  color: #3498db;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-text a:hover {
  color: #5dade2;
}

.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn.accept {
  background: #27ae60;
  color: white;
}

.cookie-btn.accept:hover {
  background: #2ecc71;
  transform: translateY(-1px);
}

.cookie-btn.reject {
  background: #e74c3c;
  color: white;
}

.cookie-btn.reject:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

.cookie-btn.configure {
  background: transparent;
  color: #3498db;
  border: 2px solid #3498db;
}

.cookie-btn.configure:hover {
  background: #3498db;
  color: white;
  transform: translateY(-1px);
}

/* ===================================
   RESPONSIVIDADE COOKIE BANNER
   ================================== */

/* Tablet */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 16px;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-banner-text h4 {
    font-size: 1.1rem;
  }

  .cookie-banner-text p {
    font-size: 0.9rem;
  }

  .cookie-banner-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .cookie-consent-banner {
    padding: 12px;
  }

  .cookie-banner-content {
    gap: 12px;
  }

  .cookie-banner-text h4 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .cookie-banner-text p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .cookie-banner-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

/* OVERRIDE CRÍTICOS */
#searchAutocomplete {
  position: fixed !important;
  z-index: 999999 !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  pointer-events: auto !important;
}


#searchAutocomplete[style*="display: none"] {
  display: none !important;
}

.search-section,
.search-container,
.header-main,
.site-header {
  overflow: visible !important;
}

.calc-menu-category-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  position: relative !important;
}

.toggle-icon {
  margin-left: auto !important;
  font-size: 1rem !important;
  transition: transform 0.3s ease !important;
  user-select: none !important;
  pointer-events: none !important;
  flex-shrink: 0 !important;
}

.calc-menu-category-header:hover .toggle-icon {
  transform: scale(1.1) !important;
}

.calc-menu-list {
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

/* ===================================
   RESPONSIVIDADE ORGANIZADA
   ================================== */

/* DESKTOP GRANDE (1200px+) */
@media (min-width: 1201px) {
  .main-container {
    grid-template-columns: 0 1fr 300px;
  }
}

/* TABLETS GRANDES (1025px - 1200px) */
@media (max-width: 1200px) and (min-width: 1025px) {
  .main-container {
    grid-template-columns: 0 1fr 250px;
    gap: 1.5rem;
  }

  .sidebar-fixed-button {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
    left: 15px;
  }
}

/* TABLETS MÉDIOS (771px - 1024px) - CONTEÚDO EXPANDIDO */
@media (max-width: 1024px) and (min-width: 771px) {
  .main-container {
    grid-template-columns: 0 1fr 0;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  #ads-sidebar-container {
    order: 3;
    grid-column: 1 / -1;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
  }

  .sidebar-fixed-button {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
    left: 15px;
  }
}

/* TABLETS PEQUENOS (769px - 770px) */
@media (max-width: 770px) and (min-width: 769px) {
  .main-container {
    grid-template-columns: 0 1fr 0;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  #ads-sidebar-container {
    order: 3;
    grid-column: 1 / -1;
    margin-top: 2rem;
  }

  .sidebar-fixed-button {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    left: 15px;
  }
}

/* MOBILE PADRÃO (481px - 768px) */
@media (max-width: 768px) {
  .main-container {
    grid-template-columns: 0 1fr 0;
    gap: 1rem;
    padding: 1rem;
  }

  #ads-sidebar-container {
    order: 3;
    grid-column: 1 / -1;
    margin-top: 2rem;
  }

  .sidebar-fixed-button {
    top: 90px;
    left: 15px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .calc-sidebar {
    width: 280px;
    left: -300px;
    padding: 1.5rem 1rem;
  }

  /* HEADER RESPONSIVO */
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .logo-section {
    min-width: auto;
    justify-content: center;
  }

  .brand-text {
    text-align: center;
  }

  .search-section {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .nav-section {
    justify-content: center;
    flex-wrap: wrap;
  }

  .breadcrumb-container {
    padding: 0 1rem;
    font-size: 0.8rem;
  }

  .site-logo {
    height: 50px !important;
    max-width: 200px !important;
    margin-left: 0 !important;
  }

  /* FOOTER RESPONSIVO */
  .footer-container {
    padding: 1.5rem;
  }

  .footer-top-line {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-logo-section {
    justify-content: center;
  }

  .footer-logo {
    width: 300px;
    max-height: 100px;
  }

  .footer-trust-badges {
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .footer-middle-line {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-bottom-line {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-calculators-line {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-calc-columns {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  /* GRIDS VIRAM 1 COLUNA */
  .calc-cards-grid,
  .examples-grid,
  .applications-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* MOBILE COMPACTO (401px - 480px) */
@media (max-width: 480px) {
  .main-container {
    padding: 1rem 0.5rem;
    gap: 1rem;
  }

  #ads-sidebar-container {
    padding: 0 0.5rem;
  }

  .header-container {
    padding: 0 0.5rem;
    gap: 0.5rem;
  }

  .search-input {
    padding: 10px 45px 10px 15px;
    font-size: 0.9rem;
  }

  .footer-container {
    padding: 1rem 0.5rem;
  }

  .footer-logo {
    max-width: 200px;
  }

  .sidebar-fixed-button {
    top: 85px;
    left: 10px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .calc-sidebar {
    width: 260px;
    left: -280px;
  }

  .site-logo {
    height: 45px !important;
    max-width: 180px !important;
  }

  .footer-calc-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .faq-container,
  .credibilidade-container {
    padding: 1.5rem;
    margin: 2rem 0 1.5rem 0;
  }

  .faq-question {
    padding: 1.1rem 1.2rem;
    font-size: 0.98rem;
  }

  .faq-answer {
    padding: 1.4rem 1.2rem;
  }

  .faq-answer p {
    font-size: 0.92rem;
  }

  .credibilidade-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .credibilidade-icon {
    font-size: 1.8rem;
  }

  .credibilidade-title {
    font-size: 1.2rem;
  }

  .credibilidade-badges {
    gap: 1rem;
  }

  .credibilidade-badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* MOBILE MUITO PEQUENO (321px - 400px) */
@media (max-width: 400px) {
  .main-container {
    grid-template-columns: 0 1fr 0 !important;
    gap: 1rem !important;
    padding: 1rem 0.5rem !important;
    margin: 0 !important;
    max-width: 100vw !important;
  }

  #ads-sidebar-container {
    order: 3 !important;
    grid-column: 1 / -1 !important;
    margin-top: 1.5rem !important;
    padding: 0 0.5rem !important;
  }

  .header-container {
    padding: 0 0.5rem !important;
    gap: 0.5rem !important;
  }

  .search-input {
    padding: 10px 45px 10px 15px !important;
    font-size: 0.9rem !important;
  }

  .footer-container {
    padding: 1rem 0.5rem !important;
  }

  .footer-logo {
    max-width: 200px !important;
  }

  .site-logo {
    height: 40px !important;
    max-width: 160px !important;
  }
}

/* MOBILE MÍNIMO (≤320px) */
@media (max-width: 320px) {
  .main-container {
    padding: 0.5rem 0.25rem !important;
    gap: 0.5rem !important;
  }

  .header-container {
    padding: 0 0.25rem !important;
  }

  .footer-container {
    padding: 0.5rem 0.25rem !important;
  }

  .site-logo {
    height: 35px !important;
    max-width: 140px !important;
  }

  .search-input {
    padding: 8px 40px 8px 12px !important;
    font-size: 0.85rem !important;
  }
}

/* DESKTOP MÉDIO (1025px+) */
@media (min-width: 1025px) {
  .header-container {
    gap: 1rem;
  }

  .logo-section {
    min-width: 220px;
  }

  .nav-text {
    display: none;
  }

  .nav-item {
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    justify-content: center;
  }

  .site-logo {
    height: 60px !important;
    max-width: 250px !important;
  }
}

/* TABLET MÉDIO (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .site-logo {
    height: 55px !important;
    max-width: 220px !important;
  }

  .footer-logo {
    width: 360px;
    max-height: 120px;
  }

  .footer-trust-badges {
    flex-direction: column;
    gap: 0.5rem;
  }

  .trust-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .footer-calculators-line {
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
  }

  .footer-calc-columns {
    gap: 1.5rem;
  }
}

/* Fixes para elementos específicos */
[class*="-container"],
[class*="-header"],
[class*="-input-row"],
[class*="-buttons"] {
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.examples-grid,
.applications-grid {
  width: 100% !important;
  overflow-x: hidden !important;
}

.footer-calculators-line,
.footer-middle-line {
  width: 100% !important;
  overflow-x: hidden !important;
}

.educational-content h2 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 1rem;
}

/*Sistema de cores para o 'patrocinado' nos ads*/

/* ===== SISTEMA DE "PATROCINADO" POR ÁREA ===== */
.ad-disclaimer-eletrica {
  color: rgba(255, 255, 255, 0.95) !important;
  background: linear-gradient(45deg, rgba(30, 58, 138, 0.8), rgba(251, 191, 36, 0.6)) !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
}

.ad-disclaimer-matematica {
  color: rgba(255, 255, 255, 0.95) !important;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.6)) !important;
  border: 1px solid rgba(240, 147, 251, 0.4) !important;
}

.ad-disclaimer-financeiro {
  color: rgba(255, 255, 255, 0.95) !important;
  background: linear-gradient(45deg, rgba(39, 174, 96, 0.8), rgba(46, 204, 113, 0.6)) !important;
  border: 1px solid rgba(241, 196, 15, 0.4) !important;
}

.ad-disclaimer-trabalhista {
  color: rgba(255, 255, 255, 0.95) !important;
  background: linear-gradient(45deg, rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.6)) !important;
  border: 1px solid rgba(230, 126, 34, 0.4) !important;
}

.ad-disclaimer-bancario {
  color: rgba(255, 255, 255, 0.95) !important;
  background: linear-gradient(45deg, rgba(30, 64, 175, 0.8), rgba(251, 191, 36, 0.6)) !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

.ad-disclaimer-saude {
  color: rgba(255, 255, 255, 0.95) !important;
  background: linear-gradient(45deg, rgba(220, 38, 38, 0.8), rgba(14, 165, 233, 0.6)) !important;
  border: 1px solid rgba(34, 197, 94, 0.4) !important;
}

/* Base para todas */
.ad-disclaimer-base {
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}


h3 {
  background-color: transparent;
  color: #3b5998;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-style: italic;
  text-align: center;
  margin: 1rem 0;
  /* Forma abreviada para margem em cima e em baixo */
}


.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
}


/* TOOLTIPS CUSTOMIZADOS - ÚNICO E BONITO */
.nav-item {
  position: relative;
  transition: all 0.3s ease;
}

.nav-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

/* Tooltip customizado que aparece no hover */
.nav-item[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%);
  background: #667eea;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  width: max-content !important;
  max-width: none !important;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  animation: tooltipFadeIn 0.3s forwards;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Setinha do tooltip - MESMA COR */
.nav-item[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: #667eea;
  opacity: 0;
  animation: tooltipFadeIn 0.3s forwards;
  z-index: 10001;
}

@keyframes tooltipFadeIn {
  to {
    opacity: 1;
  }
}

/* SEARCH SECTION LIMPO */
.search-section {
  position: relative !important;
  overflow: visible !important;
}

.search-container {
  position: relative !important;
  width: 100% !important;
  overflow: visible !important;
}

/* AUTOCOMPLETE ANTIGO NO HEADER - ESCONDER */
.search-autocomplete {
  display: none !important;
}

/* GARANTIR OVERFLOW VISÍVEL NO HEADER PARA TOOLTIPS */
.site-header {
  overflow: visible !important;
}

.header-main {
  overflow: visible !important;
}

.header-container {
  overflow: visible !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Garantir que tooltips apareçam sobre outros elementos */
.nav-section {
  position: relative !important;
  z-index: 100 !important;
  overflow: visible !important;
}

/* RESPONSIVO MOBILE */
@media (max-width: 768px) {

  /* Desativar tooltips no mobile */
  .nav-item[data-tooltip]:hover::after,
  .nav-item[data-tooltip]:hover::before {
    display: none;
  }

  .header-container {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center !important;
  }

  .logo-section {
    order: 1 !important;
    justify-content: center !important;
  }

  .search-section {
    order: 2 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    width: 100% !important;
  }

  .nav-section {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  .nav-text {
    display: none !important;
  }

  .nav-item {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
  }

  .site-logo {
    height: 50px !important;
  }

  .breadcrumb-container {
    justify-content: center !important;
    margin-bottom: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .nav-section {
    gap: 0.3rem !important;
  }

  .nav-item {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.1rem !important;
  }

  .site-logo {
    height: 45px !important;
  }

  .search-input {
    font-size: 1rem !important;
    padding: 12px 50px 12px 16px !important;
  }

  .breadcrumb-container {
    font-size: 0.8rem !important;
    flex-wrap: wrap !important;
    gap: 0.3rem !important;
  }
}

/* ===================================
   SIDEBAR DIREITO - ADS E RELACIONADAS
   =================================== */

/* 5. MAIS ACESSADAS - Lista estática */
.most-accessed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.most-accessed-item {
  background: white;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  text-decoration: none;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.most-accessed-item:hover {
  background-color: #f0f8ff;
  border-color: #0066cc;
  transform: translateX(2px);
}

.most-accessed-emoji {
  font-size: 16px;
  flex-shrink: 0;
}

.most-accessed-name {
  font-size: 13px;
  font-weight: 500;
}

/* 6. COMPARTILHAR SOCIAL */
.share-social-container {
  background: #f8f9fa;
  padding: 15px;
  margin: 15px;
  border-radius: 12px;
  border: 2px solid #e9ecef;
}

.share-social-container h4 {
  color: #495057;
  margin: 0 0 15px 0;
  font-size: 16px;
}

.share-buttons {
  display: grid;
  gap: 8px;
}

.share-btn {
  color: white;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

.share-whatsapp {
  background: #25d366;
}

.share-facebook {
  background: #1877f2;
}

.share-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-twitter {
  background: #000000;
}

/* 2. CALCULADORAS RELACIONADAS - Conteúdo dinâmico */
.related-calc-item {
  background: white;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  text-decoration: none;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  margin-bottom: 8px;
}

.related-calc-item:hover {
  background-color: #f0f8ff;
  border-color: #0066cc;
  transform: translateX(2px);
}

.related-calc-emoji {
  font-size: 16px;
  flex-shrink: 0;
}

.related-calc-name {
  font-size: 13px;
  font-weight: 500;
}

/*dicas rápidas */

#quick-tip-container {
  background: linear-gradient(135deg, #fff4a3 0%, #ffeaa7 100%);
  border-left: 4px solid #fdcb6e;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 30px auto;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(253, 203, 110, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#quick-tip-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 24px,
      rgba(253, 203, 110, 0.08) 24px,
      rgba(253, 203, 110, 0.08) 25px);
  pointer-events: none;
  border-radius: 8px;
}

#quick-tip-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(253, 203, 110, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

#quick-tip-container h4 {
  color: #2d3436;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

#quick-tip-container p {
  color: #636e72;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsivo */
@media (max-width: 768px) {
  #quick-tip-container {
    margin: 20px 15px;
    padding: 18px 20px;
  }

  #quick-tip-container h4 {
    font-size: 1.1rem;
  }

  #quick-tip-container p {
    font-size: 0.95rem;
  }
}

.others {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

/* ===================================
   🔥 FIX RESPONSIVIDADE MOBILE 320-360px - VERSÃO FINAL MESCLADA
   ADICIONAR NO FINAL DO BASE.CSS
   Versão 4.0 - Layout perfeito + Sidebar funcionando
   ================================== */

/* 1️⃣ PROTEÇÃO GLOBAL CONTRA SCROLL HORIZONTAL */
@media (max-width: 480px) {

  /* Reset universal para mobile */
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Container principal responsivo */
  .main-container {
    display: flex !important;
    flex-direction: column !important;
    padding: 0.5rem !important;
    gap: 1rem !important;
    max-width: 100vw !important;
    margin: 0 !important;
  }

  /* Conteúdo principal ocupa 100% */
  .content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    order: 1 !important;
  }

  /* Sidebar direito vira seção abaixo do conteúdo */
  #ads-sidebar-container,
  .ads-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    margin: 2rem 0 0 0 !important;
    padding: 0 !important;
    order: 2 !important;
    position: static !important;
  }
}

/* 2️⃣ SIDEBAR ESQUERDO - NÃO SOBRESCREVER */
/* O sidebar esquerdo mantém suas regras originais do base.css */
/* Apenas garantir que o botão fique visível */
@media (max-width: 480px) {

  /* Botão do sidebar sempre visível */
  .sidebar-fixed-button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 45px !important;
    height: 45px !important;
  }
}

/* 3️⃣ PROTEÇÃO ESPECÍFICA PARA ELEMENTOS DAS CALCULADORAS */
@media (max-width: 480px) {

  /* Todos os containers das calculadoras */
  [class*="-calculator-section"],
  [class*="-container"],
  [class*="-header"],
  [class*="-inputs"],
  [class*="-resultado"],
  [class*="-content-block"],
  [class*="-input-row"],
  [class*="-buttons"],
  [class*="-examples"],
  [class*="-educational-content"] {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Grids responsivos */
  [class*="-grid"],
  [class*="examples-grid"],
  [class*="tips-grid"],
  [class*="applications-grid"],
  .faq-container,
  .references-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
  }
}

/* 4️⃣ AJUSTES ESPECÍFICOS PARA MOBILE PEQUENO (320-360px) */
@media (max-width: 360px) {

  /* Fontes menores */
  body {
    font-size: 14px !important;
  }

  h1 {
    font-size: 1.5rem !important;
    word-wrap: break-word !important;
  }

  h2 {
    font-size: 1.3rem !important;
    word-wrap: break-word !important;
  }

  h3 {
    font-size: 1.1rem !important;
  }

  h4 {
    font-size: 1rem !important;
  }

  p,
  li {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  /* Inputs e botões responsivos */
  input[type="text"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    /* Previne zoom no iOS */
    padding: 10px !important;
    margin-bottom: 0.5rem !important;
  }

  button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 0.95rem !important;
    margin: 0.5rem 0 !important;
  }

  /* EXCEÇÃO: Botões especiais */
  .sidebar-fixed-button {
    width: 45px !important;
    height: 45px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .search-button {
    width: 45px !important;
    height: auto !important;
    padding: 0 !important;
  }

  /* Tabelas responsivas */
  table {
    display: block !important;
    overflow-x: auto !important;
    width: 100% !important;
  }

  /* Padding e margens reduzidos */
  .main-container {
    padding: 0.25rem !important;
  }

  section {
    padding: 0.5rem !important;
  }

  [class*="-container"] {
    padding: 0.5rem !important;
    border-radius: 8px !important;
  }

  [class*="-content-block"] {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
}

/* 5️⃣ HEADER E FOOTER RESPONSIVOS */
@media (max-width: 480px) {

  /* Header compacto */
  .site-header {
    position: relative !important;
  }

  .header-container {
    flex-direction: column !important;
    padding: 0.5rem !important;
    gap: 0.5rem !important;
  }

  .logo-section {
    width: 100% !important;
    text-align: center !important;
    min-width: auto !important;
  }

  .site-logo {
    max-height: 35px !important;
    width: auto !important;
  }

  /* Container de busca corrigido */
  .search-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .search-container {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    display: flex !important;
  }

  .search-input {
    width: 100% !important;
    flex: 1 !important;
    font-size: 16px !important;
    padding-right: 50px !important;
  }

  /* Botão de busca com tamanho fixo */
  .search-button {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 45px !important;
    height: 38px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 0 8px 8px 0 !important;
  }

  .search-button svg,
  .search-icon {
    width: 20px !important;
    height: 20px !important;
  }

  /* Navegação simplificada */
  .nav-section {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.3rem !important;
    width: 100% !important;
  }

  .nav-item {
    padding: 8px !important;
    font-size: 0.8rem !important;
    min-width: auto !important;
  }

  .nav-text {
    display: none !important;
  }

  /* Footer compacto */
  .footer-container {
    padding: 1rem 0.5rem !important;
  }

  .footer-calc-columns {
    grid-template-columns: 1fr !important;
  }

  .footer-logo {
    max-width: 150px !important;
  }
}

/* 6️⃣ FIXES ESPECÍFICOS PARA FORMULÁRIOS */
@media (max-width: 480px) {

  /* Input rows sempre em coluna */
  [class*="input-row"],
  [class*="input-group"],
  .form-row,
  .form-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  /* Inputs monetários */
  [class*="money-input"] {
    width: 100% !important;
    display: flex !important;
  }

  [class*="money-input"] input {
    flex: 1 !important;
    width: auto !important;
  }

  /* Labels responsivos */
  label {
    display: block !important;
    margin-bottom: 0.25rem !important;
    font-size: 0.9rem !important;
  }
}

/* 7️⃣ CARDS E ELEMENTOS ESPECIAIS */
@media (max-width: 480px) {

  /* Cards de resultado */
  [class*="-resultado"],
  [class*="-result"],
  [class*="-output"] {
    padding: 0.5rem !important;
    margin: 1rem 0 !important;
  }

  /* Valores grandes responsivos */
  [class*="-valor-principal"],
  [class*="-value"],
  [class*="-total"] {
    font-size: 1rem !important;
    word-break: break-word !important;
  }

  /* FAQ responsivo */
  .faq-item {
    margin-bottom: 0.5rem !important;
  }

  .faq-question {
    padding: 1rem !important;
    font-size: 0.95rem !important;
  }

  .faq-answer {
    padding: 1rem !important;
  }

  /* Badges e pills */
  [class*="-badge"],
  [class*="-pill"],
  .credibilidade-badge {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.6rem !important;
  }
}

/* 8️⃣ PREVENÇÃO DE PROBLEMAS COMUNS */
@media (max-width: 480px) {

  /* Prevenir elementos flutuantes */
  .float-left,
  .float-right,
  [style*="float"] {
    float: none !important;
    margin: 0.5rem 0 !important;
  }

  /* Elementos posicionados viram static - COM EXCEÇÕES */
  .absolute,
  .fixed,
  [style*="position: absolute"],
  [style*="position: fixed"] {
    position: static !important;
  }



  .sidebar-fixed-button,
  #sidebarButton {
    position: fixed !important;
  }

  .search-button {
    position: absolute !important;
  }

  /* Imagens responsivas */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Code blocks responsivos */
  pre,
  code {
    overflow-x: auto !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    font-size: 0.8rem !important;
  }

  /* Elementos largos */
  iframe,
  video,
  embed,
  object {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* 9️⃣ OTIMIZAÇÕES FINAIS PARA 320px */
@media (max-width: 320px) {

  /* Ultra compacto */
  .main-container {
    padding: 0.25rem !important;
    gap: 0.5rem !important;
  }

  h1 {
    font-size: 1.3rem !important;
  }

  h2 {
    font-size: 1.15rem !important;
  }

  h3 {
    font-size: 1rem !important;
  }

  p,
  li {
    font-size: 0.85rem !important;
  }

  button {
    padding: 10px !important;
    font-size: 0.9rem !important;
  }

  /* Botões especiais menores */
  .sidebar-fixed-button {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
    padding: 0 !important;
  }

  .search-button {
    width: 40px !important;
    height: 34px !important;
  }

  input,
  select {
    padding: 8px !important;
    font-size: 16px !important;
  }

  [class*="-container"] {
    padding: 0.75rem !important;
  }
}

/* 🔟 CORREÇÕES FINAIS DE OVERFLOW */
@media (max-width: 480px) {

  /* Garantir que nada cause scroll horizontal */
  .content>* {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Ajuste específico para elementos com width fixo */
  [style*="width:"],
  [style*="min-width:"] {
    max-width: 100% !important;
    width: auto !important;
    min-width: 0 !important;
  }

  /* Exceções para elementos que precisam de width fixo */
  .sidebar-fixed-button,
  #sidebarButton,
  .search-button {
    width: 45px !important;
    min-width: 45px !important;
    max-width: 45px !important;
  }
}



.aviso-importante {
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  border-left: 5px solid;
}

.aviso-critico {
  background: #ffebee;
  border-color: #d32f2f;
  color: #c62828;
}

.aviso-atencao {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.aviso-info {
  background: #e7f3ff;
  border-color: #2196F3;
  color: #0c5460;
}

.aviso-importante {
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  border-left: 5px solid;
  line-height: 1.6;
}

.aviso-importante h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aviso-importante p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.aviso-importante p:last-child {
  margin-bottom: 0;
}

.aviso-importante ul {
  margin: 15px 0;
  padding-left: 25px;
}

.aviso-importante li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.aviso-importante li:last-child {
  margin-bottom: 0;
}

.aviso-importante strong {
  font-weight: 600;
}

/* Variações de cor */
.aviso-critico {
  background: #ffebee;
  border-color: #d32f2f;
  color: #c62828;
}

.aviso-critico h4 {
  color: #b71c1c;
}

.aviso-atencao {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.aviso-atencao h4 {
  color: #6d5104;
}

.aviso-info {
  background: #e7f3ff;
  border-color: #2196F3;
  color: #0c5460;
}

.aviso-info h4 {
  color: #084c61;
}

/* Responsivo */
@media (max-width: 768px) {
  .aviso-importante {
    padding: 15px;
  }

  .aviso-importante h4 {
    font-size: 1.1em;
  }

  .aviso-importante ul {
    padding-left: 20px;
  }
}

/* ===================================
   MEDIA QUERIES - LAYOUTS MÉDIOS (TABLETS)
   ================================== */

/* TABLETS GRANDES (1024px - 1200px) */
@media (max-width: 1200px) {
  .header-container {
    gap: 1rem !important;
    padding: 0 1rem !important;
  }

  .logo-section {
    min-width: 200px !important;
    gap: 0.5rem !important;
  }

  .site-logo {
    height: 50px !important;
    max-width: 180px !important;
    margin-left: 1rem !important;
  }

  .search-section {
    max-width: 400px !important;
  }

  .nav-section {
    gap: 0.3rem !important;
  }

  .nav-item {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    gap: 0.4rem !important;
  }

  .nav-icon {
    font-size: 1rem !important;
  }
}

/* TABLETS MÉDIOS (900px - 1024px) */
@media (max-width: 1024px) {
  .header-container {
    gap: 0.8rem !important;
  }

  .logo-section {
    min-width: 150px !important;
  }

  .site-logo {
    height: 45px !important;
    max-width: 150px !important;
    margin-left: 0.5rem !important;
  }

  .search-section {
    max-width: 300px !important;
    margin: 0 0.5rem !important;
  }

  .search-input {
    padding: 12px 50px 12px 16px !important;
    font-size: 0.95rem !important;
  }

  .nav-section {
    gap: 0.25rem !important;
  }

  .nav-item {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }

  /* Reduzir texto nos botões */
  .nav-text {
    font-size: 0.75rem !important;
  }
}

/* TABLETS PEQUENOS (769px - 900px) */
@media (max-width: 1020px) {
  .header-container {
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
  }

  .logo-section {
    min-width: 120px !important;
  }

  .site-logo {
    height: 40px !important;
    max-width: 120px !important;
    margin-left: 0 !important;
  }

  .search-section {
    max-width: 500px !important;
    margin: 0 !important;
  }

  .search-input {
    padding: 10px 45px 10px 14px !important;
    font-size: 0.9rem !important;
  }

  .search-button {
    width: 40px !important;
    height: 40px !important;
  }

  /* ESCONDER TEXTO, MOSTRAR APENAS ÍCONES */
  .nav-text {
    display: none !important;
  }

  .nav-item {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
  }

  .nav-icon {
    font-size: 1.1rem !important;
  }

  /* Breadcrumb mais compacto */
  .breadcrumb-container {
    font-size: 0.85rem !important;
    padding: 0 1rem !important;
  }
}

/* AJUSTE FINO PARA 800px */
@media (max-width: 800px) {
  .header-container {
    gap: 0.4rem !important;
  }

  .logo-section {
    min-width: 100px !important;
  }

  .site-logo {
    height: 38px !important;
    max-width: 100px !important;
  }

  .search-section {
    max-width: 400px !important;
  }

  .nav-section {
    gap: 0.2rem !important;
  }

  .nav-item {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
  }
}


/* ===================================
   COOKIE CONSENT MODAL
   ================================== */

.cookie-consent-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-consent-modal.cookie-modal-visible {
  opacity: 1;
}

.cookie-modal-content {
  background: white;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.cookie-consent-modal.cookie-modal-visible .cookie-modal-content {
  transform: scale(1);
}

.cookie-modal-header {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid #3498db;
}

.cookie-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: white;
}

.cookie-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cookie-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.cookie-modal-body {
  padding: 2rem;
  max-height: 50vh;
  overflow-y: auto;
}

.cookie-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.cookie-setting:hover {
  border-color: #3498db;
  background: #f8f9fa;
}

.cookie-setting-info h4 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.cookie-setting-info p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.cookie-setting-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-setting-control input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.cookie-setting-control input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.cookie-setting-control label {
  font-weight: 600;
  color: #2c3e50;
  cursor: pointer;
}

.cookie-modal-footer {
  padding: 1.5rem 2rem;
  background: #f8f9fa;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  border-top: 1px solid #e0e0e0;
}

/* Notificação de sucesso */
.cookie-consent-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #27ae60;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10002;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.cookie-consent-notification.notification-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Botão de fechar do banner */
.cookie-banner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cookie-banner-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Responsividade do modal */
@media (max-width: 768px) {
  .cookie-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .cookie-setting {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-modal-footer {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}


/* Placeholder de altura fixa para ads */
.ads-placeholder-space {
    height: 150px;
    display: block;
}

.ads-placeholder-space-bottom {
    height: 202px;
    display: block;
}

/* FIX CLS - Backup de segurança */
#ads-top-container {
  min-height: 150px !important;
}

#ads-bottom-container {
  min-height: 202px !important;
}

/* Sidebar fixo */
#ads-sidebar-container {
  min-width: 300px !important;
}

/* Placeholders para ads do sidebar */
.ads-sidebar-placeholder {
    height: 250px;
    display: block;
}

/* Placeholders dinâmicos para ads após cálculos */
.ads-placeholder-dynamic {
  min-height: 100px !important;
  transition: all 0.3s ease;
}

.ads-placeholder-space-dynamic {
  height: 100px;
  display: block;
  background: transparent;
}

/* Ajuste responsivo */
@media (max-width: 768px) {
  .ads-placeholder-dynamic,
  .ads-placeholder-space-dynamic {
    min-height: 80px !important;
    height: 80px !important;
  }
}

/* Estabilizar footer */
.calculey-footer {
  min-height: 200px !important;
  position: relative;
  margin-top: 40px;
}

/* Garantir que ads-bottom tenha altura mesmo durante lazy load */
#ads-bottom-container {
  min-height: 202px !important;
  position: relative;
  contain: layout style;
}

#ads-bottom-container .ads-placeholder-space-bottom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 202px;
}

/* Prevenir shift do conteúdo educacional */
.banco-educational-content,
.educational-content,
.modular-educational-content {
  min-height: 300px;
  contain: layout;
}

/* Resultado do banco sempre ter espaço reservado */
#bancoResultado {
  min-height: 400px;
}

#bancoExplanation {
  min-height: 200px;
}


/* Reservar espaço para resultados de calculadoras */
#bancoResultado,
#rescisaoResultado,
#avisoPrevioResultado,
#decimoResultado,
#feriasResultado {
  min-height: 500px;
  transition: min-height 0.3s ease;
}

/* Quando vazio, manter altura zero mas com transição suave */
#bancoResultado:empty,
#rescisaoResultado:empty,
#avisoPrevioResultado:empty,
#decimoResultado:empty,
#feriasResultado:empty {
  min-height: 0;
}

/* Explicações também precisam de espaço reservado */
#bancoExplanation,
#rescisaoExplanation,
#avisoPrevioExplanation {
  min-height: 0;
  transition: all 0.3s ease;
}

#bancoExplanation:not(:empty),
#rescisaoExplanation:not(:empty),
#avisoPrevioExplanation:not(:empty) {
  min-height: 300px;
}

/*teste de versionamento*/