/* ============================================================
   FII Guide — Dark Mode CSS
   bg #09090B | surface #111113 | border #27272A
   accent #10B981 (emerald) | yield #F59E0B | text #FAFAFA
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg: #09090B;
  --surface: #111113;
  --surface-2: #18181B;
  --border: #3F3F46;
  --border-light: #52525B;
  --text: #FAFAFA;
  --text-muted: #71717A;
  --text-dim: #FAFAFA;
  --accent: #10B981;
  --accent-dim: rgba(16, 185, 129, 0.15);
  --accent-border: rgba(16, 185, 129, 0.3);
  --yield: #F59E0B;
  --yield-dim: rgba(245, 158, 11, 0.15);
  --danger: #EF4444;
  --danger-dim: rgba(239, 68, 68, 0.15);
  --warn: #F59E0B;
  --warn-dim: rgba(245, 158, 11, 0.12);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);

  --nav-h: 60px;
  --section-max: 1200px;
  --section-pad: 0 2rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
ul { list-style: none; }

/* --- Typography helpers --- */
.text-accent { color: var(--accent); }
.text-yield { color: var(--yield); }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }

.logo-icon {
  color: var(--accent);
  font-size: 1rem;
}

.logo-accent { color: var(--accent); }

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

.nav-link {
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }

.nav-cta {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #000;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: #0ea571; transform: translateY(-1px); }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: #0ea571; transform: translateY(-1px); }
.btn-primary:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}
.btn-primary.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--border-light); color: var(--text); background: var(--surface-2); }
.btn-ghost.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* --- Main content --- */
.main-content { min-height: calc(100vh - var(--nav-h) - 80px); }

/* --- Section --- */
.section {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-alt {
  background: var(--surface);
  max-width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-alt > * {
  max-width: var(--section-max);
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 2.5rem;
  max-width: 650px;
}

.section-cta {
  margin-top: 2rem;
  text-align: center;
}

/* --- Hero --- */
.hero {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.step-card:hover { border-color: var(--border-light); }

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--border-light);
  margin-bottom: 1rem;
  line-height: 1;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Params grid (home highlight) --- */
.params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.param-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.param-card:hover { border-color: var(--border-light); transform: translateY(-2px); }

.param-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }

.param-sigla {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.param-nome {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.param-desc { font-size: 0.875rem; color: var(--text-dim); line-height: 1.6; }

/* --- Tipos mini (home) --- */
.tipos-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tipo-mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  display: block;
}
.tipo-mini-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: var(--surface-2);
}

.tipo-mini-emoji { font-size: 2rem; margin-bottom: 0.75rem; }
.tipo-mini-nome { font-weight: 700; font-size: 1rem; margin-bottom: 0.4rem; }
.tipo-mini-dy { font-size: 0.8rem; color: var(--accent); font-weight: 600; }

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* --- Page hero --- */
.page-hero {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: 750px;
}

.page-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

/* --- Quiz --- */
.quiz-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

.quiz-header { text-align: center; margin-bottom: 3rem; }

.quiz-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.quiz-sub { color: var(--text-muted); font-size: 0.95rem; }

.quiz-progress-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.quiz-progress {
  flex: 1;
  height: 4px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.3s ease;
}

.progress-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
  min-width: 60px;
  text-align: right;
}

/* Quiz steps */
.quiz-step {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.quiz-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.step-counter {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.question-text {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
  line-height: 1.35;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card:hover {
  border-color: var(--border-light);
  background: var(--surface-2);
}

.option-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.option-letter {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.option-card.selected .option-letter {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.option-text {
  font-size: 0.95rem;
  font-weight: 500;
  flex: 1;
  line-height: 1.4;
}

.option-check {
  color: var(--accent);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.option-card.selected .option-check {
  opacity: 1;
  transform: scale(1);
}

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Resultado --- */
.resultado-section {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

.resultado-badge {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.resultado-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.tipo-emoji-lg {
  font-size: 4rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.resultado-titulo {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.resultado-desc {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Scores section */
.scores-section {
  margin-bottom: 3rem;
}

.scores-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

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

.score-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.score-item-winner {
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.score-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.score-emoji { font-size: 1.1rem; }
.score-nome { font-weight: 600; font-size: 0.95rem; flex: 1; }

.score-badge-win {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--accent);
  color: #000;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}

.score-bar-wrap {
  height: 6px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.score-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.6s ease;
}

.score-pts {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Info cards grid */
.resultado-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-card-warn { border-color: rgba(245, 158, 11, 0.2); }
.info-card-accent { border-color: var(--accent-border); }
.info-card-full { grid-column: 1 / -1; }

.info-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.stat-lg { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }

.volatilidade-valor { font-weight: 600; font-size: 1.1rem; }

/* Calculadora */
.calculadora-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}

.calc-header {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.calc-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.calc-sub { color: var(--text-muted); font-size: 0.9rem; }

.calc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.calc-form {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-right: 1px solid var(--border);
}

.calc-field { display: flex; flex-direction: column; gap: 0.5rem; }

.calc-label-field {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.input-prefix, .input-suffix {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.input-prefix:focus-within, .input-suffix:focus-within {
  border-color: var(--accent);
}

.input-prefix span, .input-suffix span {
  padding: 0 0.875rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--surface);
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.input-suffix span {
  border-right: none;
  border-left: 1px solid var(--border);
}

.input-prefix input, .input-suffix input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  min-width: 0;
}

.calc-resultado {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.calc-resultado-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.calc-valor {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.calc-detalhe { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; max-width: 280px; }

/* Subtipos */
.subtipos-section, .tipo-subtipos { margin-bottom: 2rem; }

.subtipos-title, .tipo-subtipos-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.subtipos-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.subtipo-chip {
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* Exemplos / Tickers */
.exemplos-section { margin-bottom: 3rem; }
.exemplos-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.exemplos-aviso { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.tickers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.875rem;
}
.tickers-grid-sm { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.ticker-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.ticker-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.ticker-symbol {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.ticker-nome { font-size: 0.8rem; color: var(--text); font-weight: 500; line-height: 1.3; }
.ticker-subtipo { font-size: 0.72rem; color: var(--text-muted); }
.ticker-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: transform 0.2s, color 0.2s;
}
.ticker-card:hover .ticker-arrow { transform: translateX(3px); color: var(--accent); }

.resultado-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 1rem;
}

/* --- Tipos page --- */
.tipo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}
.tipo-card:hover { border-color: var(--border-light); }

.tipo-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.tipo-emoji { font-size: 2.5rem; line-height: 1; }
.tipo-header-info { flex: 1; }

.tipo-nome {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.tipo-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.badge-dy {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-vol {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.tipo-descricao {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  font-size: 0.975rem;
}

.tipo-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.tipo-detail-item {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.tipo-detail-good { background: rgba(16, 185, 129, 0.05); border-color: rgba(16, 185, 129, 0.15); }
.tipo-detail-bad { background: var(--warn-dim); border-color: rgba(245, 158, 11, 0.2); }
.tipo-detail-risk { background: var(--danger-dim); border-color: rgba(239, 68, 68, 0.2); }

.tipo-detail-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.tipo-detail-item p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }

.tipo-exemplos { margin-top: 1.75rem; }
.tipo-exemplos-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

.tipo-card-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

/* --- Parâmetros page --- */
.parametros-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 1.5rem;
}

.parametro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s;
}
.parametro-card:hover { border-color: var(--border-light); }

.parametro-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.parametro-icon-wrap { font-size: 1.75rem; }
.parametro-header-info { flex: 1; }

.parametro-sigla {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.parametro-nome {
  font-size: 0.875rem;
  color: var(--text-dim);
  font-weight: 500;
}

.parametro-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--border-light);
  letter-spacing: -0.04em;
}

.parametro-descricao {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.parametro-details { display: flex; flex-direction: column; gap: 1.25rem; }

.parametro-detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.parametro-formula {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  color: var(--text-dim);
}

.parametro-interpretacao, .parametro-referencia {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Dicas section */
.dica-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.dica-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.dica-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--border-light);
  letter-spacing: -0.04em;
  margin-bottom: 0.875rem;
  line-height: 1;
}

.dica-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.dica-card p { font-size: 0.875rem; color: var(--text-dim); line-height: 1.6; }

/* --- FII Detalhe --- */
.detalhe-section {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

.detalhe-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb-link { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb-link:hover { color: var(--text); }
.breadcrumb-sep { color: var(--border-light); }

.detalhe-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.detalhe-ticker {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.detalhe-nome { color: var(--text-muted); font-size: 1rem; }

.detalhe-preco-wrap { text-align: right; }

.detalhe-preco {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.detalhe-variacao {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  justify-content: flex-end;
}
.variacao-pos { color: var(--accent); }
.variacao-neg { color: var(--danger); }
.variacao-label { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }

/* Métricas grid */
.metricas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
}

.metrica-card {
  background: var(--surface);
  padding: 1.25rem 1.5rem;
}
.metrica-card.metrica-accent { background: var(--accent-dim); }

.metrica-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.metrica-valor {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Gráficos */
.graficos-section { margin-bottom: 3rem; }

.chart-controls { margin-bottom: 1.25rem; }

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

.chart-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.range-buttons { display: flex; gap: 0.25rem; }

.range-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.range-btn:hover { border-color: var(--border-light); color: var(--text); }
.range-btn.active { background: var(--accent); border-color: var(--accent); color: #000; }

.chart-container {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 320px;
  margin-top: 1rem;
}

.chart-container-sm { height: 200px; }

/* Shimmer */
.chart-shimmer {
  position: absolute;
  inset: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.shimmer-bar {
  height: 8px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  border-radius: 100px;
  animation: shimmer 1.5s infinite;
}

.shimmer-bar-2 { width: 85%; height: 100px; border-radius: var(--radius-sm); }
.shimmer-bar-3 { width: 70%; height: 8px; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Dividendos table */
.dividendos-section { margin-bottom: 3rem; }
.dividendos-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; }

.dividendos-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.dividendos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.dividendos-table thead tr {
  background: var(--surface-2);
  border-bottom: 2px solid var(--border-light);
}

.dividendos-table th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.dividendos-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.dividendos-table tbody tr:last-child td { border-bottom: none; }
.dividendos-table tbody tr:hover td { background: var(--surface-2); }
.dividendos-table td.text-accent { font-weight: 700; }

/* Erro state */
.erro-state {
  text-align: center;
  padding: 6rem 2rem;
}
.erro-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.erro-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.erro-msg { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }

/* --- Afiliados --- */
.afiliados-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.afiliados-strip-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.afiliados-strip-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
}

.afiliado-strip-btn {
  padding: 0.3rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.afiliado-strip-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.afiliados-strip-disc {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.afiliados-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
}

.afiliados-card-header { margin-bottom: 1.5rem; }

.afiliados-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.afiliados-card-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.afiliados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.afiliados-grid-home {
  margin-bottom: 1.25rem;
}

.afiliado-broker-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, transform 0.2s;
}
.afiliado-broker-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.afiliado-broker-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.afiliado-broker-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.afiliado-broker-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.625rem;
}

.afiliados-disclaimer,
.afiliados-home-disc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.afiliados-home-disc {
  margin-top: 1.25rem;
  text-align: center;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-brand { font-size: 0.9rem; font-weight: 600; }
.footer-disclaimer { font-size: 0.78rem; color: var(--text-muted); max-width: 500px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { gap: 0; }
  .nav-link { display: none; }

  .hero { padding: 3.5rem 1.25rem 3rem; }
  .hero-title { font-size: 2.25rem; }
  .hero-stats { padding: 1rem 1.25rem; gap: 0; }
  .stat-value { font-size: 1.4rem; }

  .section { padding: 3rem 1.25rem; }
  .section-title { font-size: 1.5rem; }

  .tipos-mini-grid { grid-template-columns: repeat(2, 1fr); }

  .resultado-grid { grid-template-columns: 1fr; }
  .info-card-full { grid-column: 1; }

  .calc-body { grid-template-columns: 1fr; }
  .calc-form { border-right: none; border-bottom: 1px solid var(--border); }

  .detalhe-title-row { align-items: flex-start; }
  .detalhe-preco-wrap { text-align: left; }
  .detalhe-variacao { justify-content: flex-start; }

  .metricas-grid { grid-template-columns: repeat(2, 1fr); }

  .parametros-full-grid { grid-template-columns: 1fr; }

  .tipo-card { padding: 1.5rem; }
  .tipo-card-header { flex-direction: column; }

  .scores-grid { grid-template-columns: repeat(2, 1fr); }

  .quiz-section { padding: 2rem 1.25rem 3rem; }
  .question-text { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .tipos-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .tickers-grid { grid-template-columns: repeat(2, 1fr); }
  .range-buttons { flex-wrap: wrap; }
  .resultado-actions { flex-direction: column; align-items: center; }
  .nav-search { display: none; }
}

/* --- Dividendos chart & table --- */
.chart-container-div { height: 220px; }

.chart-fonte {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.chart-empty {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 3rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.dividendos-section { margin-bottom: 3rem; }

.dividendos-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.dividendos-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.dividendos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.dividendos-table thead tr {
  background: var(--surface-2);
  border-bottom: 2px solid var(--border-light);
}

.dividendos-table th {
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  white-space: nowrap;
}

.dividendos-table td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
}

.dividendos-table tbody tr:last-child td { border-bottom: none; }

.dividendos-table tbody tr:hover td { background: var(--surface-2); }

.text-yield { color: var(--yield); }
.fw-600 { font-weight: 600; }
.text-dim { color: var(--text-dim); }

/* Shimmer bars para dividendos (barras verticais) */
.shimmer-bar-div-1,
.shimmer-bar-div-2,
.shimmer-bar-div-3,
.shimmer-bar-div-4 {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  align-self: flex-end;
}
.shimmer-bar-div-1 { height: 60%; }
.shimmer-bar-div-2 { height: 85%; }
.shimmer-bar-div-3 { height: 70%; }
.shimmer-bar-div-4 { height: 90%; }

.chart-shimmer { flex-direction: row; gap: 4px; align-items: flex-end; padding: 1rem 1.5rem 1.5rem; }

/* --- Nav search --- */
.nav-search {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.nav-search:focus-within { border-color: var(--border-light); }

.nav-search-input {
  background: transparent;
  border: none;
  outline: none;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text);
  width: 180px;
}
.nav-search-input::placeholder { color: var(--text-muted); }

.nav-search-btn {
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-search-btn:hover { color: var(--accent); background: var(--accent-dim); }

/* --- FII detalhe — novos elementos --- */
.detalhe-header { margin-bottom: 2.5rem; }

.detalhe-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.625rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.tag-dim {
  background: var(--surface-2);
  color: var(--text-muted);
  border-color: var(--border);
}

.breadcrumb-current { color: var(--text-dim); }

/* Sobre o fundo */
.sobre-section {
  margin-bottom: 3rem;
}

.sobre-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.sobre-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  border-right: 1px solid var(--border);
  padding-right: 1.5rem;
}

.sobre-dados {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sobre-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sobre-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.sobre-value {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.detalhe-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-desc { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 1.5rem; }
  .detalhe-actions { justify-content: center; }
  .nav-search-input { width: 120px; }
}
