/* ============================================
   SIMULADOR CLT — Estilos Globais
   ============================================ */

:root {
  --primary:       #27AE60;
  --primary-dark:  #1D8348;
  --primary-light: #58D68D;
  --primary-xlight:#EAFAF1;
  --accent:        #F39C12;
  --accent-dark:   #D68910;
  --danger:        #E74C3C;
  --dark:          #1A252F;
  --text:          #2C3E50;
  --text-muted:    #7F8C8D;
  --bg:            #F4FAF6;
  --white:         #FFFFFF;
  --border:        #D5E8D4;
  --shadow:        0 4px 24px rgba(27,94,60,.10);
  --shadow-hover:  0 8px 36px rgba(27,94,60,.18);
  --radius:        16px;
  --radius-sm:     8px;
  --transition:    all .25s ease;
}

/* ─── Reset ─── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── Tipografia ─── */
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-muted); }

/* ─── Container ─── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   NAVEGAÇÃO
   ============================================ */
.navbar {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .9rem;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary-xlight);
  color: var(--primary-dark);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, #145A32 0%, #1D8348 40%, #27AE60 75%, #58D68D 100%);
  padding: 80px 20px 90px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.06) 0%, transparent 50%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}

.hero h1 {
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.hero p {
  color: rgba(255,255,255,.88);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39,174,96,.35);
}

.btn-white {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--primary-xlight);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.35);
}

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid rgba(212,237,218,.6);
}

.card-hover {
  transition: var(--transition);
  cursor: pointer;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

/* ============================================
   FORMULÁRIO / INPUTS
   ============================================ */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: 8px;
}

.form-label small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: .8rem;
}

.input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.05rem;
  user-select: none;
}

input[type="number"],
input[type="text"],
select {
  width: 100%;
  padding: 14px 14px 14px 36px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  appearance: none;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(39,174,96,.12);
}

.range-wrap {
  position: relative;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  outline: none;
  padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(39,174,96,.4);
  transition: var(--transition);
}
input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--primary-dark);
  transform: scale(1.15);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

select {
  padding-left: 14px;
  cursor: pointer;
}

/* ============================================
   SEÇÃO RESULTADO / BREAKDOWN
   ============================================ */
.results-section {
  animation: fadeInUp .4s ease both;
}

@keyframes fadeInUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.result-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, var(--primary));
  border-radius: var(--radius) var(--radius) 0 0;
}

.result-card.card-green  { --card-accent: #27AE60; }
.result-card.card-red    { --card-accent: #E74C3C; }
.result-card.card-orange { --card-accent: #F39C12; }
.result-card.card-blue   { --card-accent: #2980B9; }
.result-card.card-purple { --card-accent: #8E44AD; }

.result-card .rc-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.result-card .rc-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.result-card .rc-sub {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Barra de progresso */
.progress-bar-wrap {
  margin-bottom: 16px;
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: .88rem;
}

.progress-bar-label span:first-child { font-weight: 600; color: var(--text); }
.progress-bar-label span:last-child  { font-weight: 700; color: var(--text-muted); }

.progress-bar-track {
  height: 10px;
  background: #EEF2F0;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width .8s cubic-bezier(.34,1.56,.64,1);
}

/* ============================================
   TABELA COMPARATIVA
   ============================================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.compare-table th {
  background: var(--primary-xlight);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.compare-table th:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.compare-table th:last-child  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.compare-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--primary-xlight); }

.compare-table .highlight-row td {
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-xlight);
}

/* ============================================
   ADSENSE PLACEHOLDERS
   ============================================ */
.adsense-placeholder {
  background: #f5f5f5;
  border: 2px dashed #ccc;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #999;
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 28px 0;
}

.adsense-placeholder.leaderboard {
  height: 90px;       /* 728×90 leaderboard */
  max-width: 728px;
  margin-left: auto;
  margin-right: auto;
}

.adsense-placeholder.rectangle {
  height: 250px;      /* 300×250 rectangle */
  max-width: 336px;
}

.adsense-placeholder.large-rect {
  height: 280px;      /* 336×280 large rectangle */
  max-width: 336px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 64px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header p {
  max-width: 560px;
  margin: 10px auto 0;
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  background: var(--primary-xlight);
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* ─── Ferramentas cards (index) ─── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.tool-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.tool-card .tool-icon {
  font-size: 2.6rem;
  width: 72px;
  height: 72px;
  background: var(--primary-xlight);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card h3 {
  font-size: 1.3rem;
  color: var(--text);
}

.tool-card p {
  flex: 1;
  font-size: .93rem;
}

.tool-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-card ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--text-muted);
}

.tool-card ul li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Estatísticas (index) ─── */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 48px 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.stat-item .stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-item .stat-label {
  font-size: .88rem;
  opacity: .82;
  margin-top: 4px;
}

/* ─── FAQ / Steps ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  text-align: center;
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* ─── Dropdown nav ─── */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  gap: 4px;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 240px;
  padding: 8px 0;
  z-index: 1200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 0;
  white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
  background: var(--primary-xlight);
  color: var(--primary-dark);
}

.nav-dropdown-menu .dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
}

.breadcrumb-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb-inner a {
  color: var(--primary-dark);
  font-weight: 500;
}
.breadcrumb-inner a:hover { text-decoration: underline; }

.breadcrumb-sep { opacity: .5; }

/* ─── Tool page layout ─── */
.tool-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tool-hero {
  background: linear-gradient(135deg, #145A32 0%, #27AE60 100%);
  padding: 44px 20px 52px;
  text-align: center;
  color: #fff;
}

.tool-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
}

.tool-hero h1 {
  font-size: clamp(1.5rem,4vw,2.4rem);
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.tool-hero p {
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* inputs sem prefix */
input[type="number"].no-prefix,
input[type="text"].no-prefix {
  padding-left: 14px;
}

/* Resultado destaque (verde) */
.result-highlight {
  background: linear-gradient(135deg, #145A32, #27AE60);
  border-radius: var(--radius);
  padding: 32px 28px;
  color: #fff;
  text-align: center;
}

.result-highlight .rh-label {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .85;
  margin-bottom: 8px;
}

.result-highlight .rh-value {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.result-highlight .rh-sub {
  font-size: .9rem;
  opacity: .78;
}

/* info box */
.info-box {
  background: #EBF5FB;
  border-left: 4px solid #2980B9;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: .9rem;
}

.info-box strong { color: var(--text); display: block; margin-bottom: 4px; }

/* detail list */
.detail-list { display: flex; flex-direction: column; gap: 0; }

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}

.detail-row:last-child { border-bottom: none; }
.detail-row .dr-label { color: var(--text-muted); }
.detail-row .dr-value { font-weight: 700; color: var(--text); }
.detail-row .dr-value.green { color: var(--primary-dark); }
.detail-row .dr-value.red   { color: var(--danger); }
.detail-row.total-row {
  border-top: 2px solid var(--border);
  border-bottom: none;
  margin-top: 4px;
  padding-top: 14px;
  font-weight: 700;
  font-size: 1rem;
}
.detail-row.total-row .dr-label { color: var(--text); }
.detail-row.total-row .dr-value { font-size: 1.2rem; }

/* two-col grid for inputs */
.inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .inputs-grid { grid-template-columns: 1fr; }
  .tool-layout { padding: 24px 16px 48px; }
}

/* ─── Footer ─── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 48px 20px 28px;
  text-align: center;
}

.footer a {
  color: var(--primary-light);
}
.footer a:hover { color: var(--primary); }

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0 28px;
  font-size: .88rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  font-size: .8rem;
}

/* ============================================
   PÁGINA SIMULADOR — layout específico
   ============================================ */
.simulator-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 28px;
  align-items: start;
  padding: 40px 20px 64px;
  max-width: 1140px;
  margin: 0 auto;
}

.sim-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: sticky;
  top: 80px;
}

.sim-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: var(--text);
}

.sim-results {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sim-placeholder {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.sim-placeholder .ph-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: .4;
}

/* Breakdown visual */
.salary-breakdown {
  background: linear-gradient(135deg, #145A32, #27AE60);
  border-radius: var(--radius);
  padding: 28px;
  color: #fff;
}

.salary-breakdown .gross-label {
  font-size: .82rem;
  opacity: .8;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 4px;
}

.salary-breakdown .gross-value {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.breakdown-bars { display: flex; flex-direction: column; gap: 10px; }

.bb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
}

.bb-item .bb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bb-item .bb-name { flex: 1; opacity: .88; }

.bb-item .bb-amt {
  font-weight: 700;
  min-width: 90px;
  text-align: right;
}

.bb-item .bb-pct {
  min-width: 44px;
  text-align: right;
  opacity: .72;
  font-size: .78rem;
}

/* net salary highlight */
.net-highlight {
  background: var(--primary-xlight);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.net-highlight .nh-label {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.net-highlight .nh-value {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1;
}

.net-highlight .nh-eff {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Alerta comparativo */
.alert-box {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: .9rem;
}

.alert-box.info  { background: #EBF5FB; border-left: 4px solid #2980B9; }
.alert-box.warn  { background: #FEF9E7; border-left: 4px solid var(--accent); }
.alert-box.good  { background: var(--primary-xlight); border-left: 4px solid var(--primary); }
.alert-box strong { display: block; margin-bottom: 4px; color: var(--text); }

/* ============================================
   PÁGINA COMPARADOR — layout específico
   ============================================ */
.comp-controls {
  background: var(--white);
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  position: sticky;
  top: 64px;
  z-index: 100;
}

.comp-controls-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.comp-controls select {
  padding: 10px 14px;
  font-size: .9rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-weight: 500;
  min-width: 160px;
  flex: 1;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237F8C8D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.comp-controls select:focus {
  outline: none;
  border-color: var(--primary);
}

.comp-controls .ctrl-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.city-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.city-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.city-card-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.city-card-header .city-info { flex: 1; }

.city-rank {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
}

.city-rank.rank-1 { background: #F39C12; border-color: #F1C40F; }
.city-rank.rank-2 { background: #95A5A6; border-color: #BDC3C7; }
.city-rank.rank-3 { background: #CA6F1E; border-color: #D68910; }

.city-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.city-state {
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  margin-top: 2px;
}

.city-regiao-badge {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.city-card-body { padding: 20px; }

.city-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.city-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.city-stat .cs-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}

.city-stat .cs-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.city-scores { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
}

.score-row .sr-label { min-width: 110px; color: var(--text-muted); font-weight: 500; }

.score-track {
  flex: 1;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
  transition: width .8s ease;
}

.score-fill.score-warn  { background: var(--accent); }
.score-fill.score-bad   { background: var(--danger); }
.score-fill.score-great { background: #1D8348; }

.score-row .sr-num {
  min-width: 28px;
  font-weight: 700;
  color: var(--text);
  font-size: .8rem;
  text-align: right;
}

.city-ratio {
  background: var(--primary-xlight);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: .85rem;
}

.city-ratio .cr-label { color: var(--text-muted); font-weight: 500; }
.city-ratio .cr-value { font-weight: 800; color: var(--primary-dark); font-size: 1rem; }

/* ─── Ranking top ─── */
.ranking-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 1140px;
  margin: 32px auto 0;
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-center { text-align: center; }
.text-green  { color: var(--primary-dark); }
.text-red    { color: var(--danger); }
.text-orange { color: var(--accent-dark); }
.fw-bold     { font-weight: 700; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.hidden { display: none !important; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-xlight);
  color: var(--primary-dark);
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 900px) {
  .simulator-layout {
    grid-template-columns: 1fr;
  }
  .sim-panel { position: static; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    padding: 12px 20px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border-bottom: 2px solid var(--border);
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-hamburger { display: flex; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--primary-xlight);
    border-radius: var(--radius-sm);
    padding: 4px 0;
    margin-top: 4px;
  }
  .nav-dropdown-menu li a {
    padding: 8px 14px;
    font-size: .85rem;
  }

  .hero { padding: 52px 20px 62px; }
  .section { padding: 44px 16px; }
  .tools-grid { grid-template-columns: 1fr; }

  .adsense-placeholder.leaderboard {
    height: 60px;
    max-width: 320px;
  }

  .comp-controls-inner { flex-direction: column; align-items: stretch; }
  .comp-controls select { min-width: unset; }

  .cities-grid { grid-template-columns: 1fr; }

  .city-stats { grid-template-columns: 1fr 1fr; }

  h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .result-grid { grid-template-columns: 1fr; }
  .steps-grid  { grid-template-columns: 1fr; }
  .btn-lg { padding: 14px 24px; font-size: 1rem; }
}

/* ============================================
   PRESET BUTTONS (substitui o range slider)
   ============================================ */
.preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.preset-btn {
  padding: 7px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.3;
}

.preset-btn:hover {
  border-color: var(--primary-light);
  background: var(--primary-xlight);
  color: var(--primary-dark);
}

.preset-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* Seletor de ano */
.year-select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.year-select-wrap select {
  padding: 10px 32px 10px 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary-xlight);
  min-width: 100px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231D8348' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.year-badge {
  font-size: .75rem;
  background: var(--primary-xlight);
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* Tabela dinâmica de INSS/IRPF */
.tax-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}
.tax-table th {
  text-align: left;
  padding: 5px 8px;
  background: var(--primary-xlight);
  color: var(--primary-dark);
  font-size: .72rem;
}
.tax-table th:last-child { text-align: right; }
.tax-table td {
  padding: 4px 8px;
  border-bottom: 1px solid var(--border);
}
.tax-table td:last-child { text-align: right; font-weight: 600; }
.tax-table tr:last-child td { border-bottom: none; }
