/* Portal Pessoal - Gabriel Nava Rodrigues */
:root {
  --navy:        #05386B;
  --navy-deep:   #03284f;
  --navy-soft:   #0b4a8a;
  --navy-ink:    #0a1929;
  --cream:       #faf7f2;
  --cream-soft:  #f3eee6;
  --paper:       #ffffff;
  --ink:         #1a1f2c;
  --ink-soft:    #4b5563;
  --ink-muted:   #6b7280;
  --amber:       #f0a500;
  --amber-soft:  #fbe9b6;
  --line:        rgba(10, 25, 41, 0.08);
  --line-light:  rgba(255, 255, 255, 0.12);
  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 2px 8px rgba(10, 25, 41, 0.06);
  --shadow-md:   0 6px 24px rgba(10, 25, 41, 0.08);
  --tr:          200ms cubic-bezier(.4,0,.2,1);
  --container:   1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--navy); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--amber); }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  transition: background var(--tr), border-color var(--tr);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--navy);
  padding: 6px 12px;
  border: 2px solid var(--navy);
  border-radius: 6px;
}
.brand-mark-dark { color: var(--cream); border-color: var(--cream); }
.nav-desktop { display: flex; gap: 28px; }
.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
}
.nav-desktop a:hover { color: var(--navy); }
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width var(--tr);
}
.nav-desktop a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--tr), opacity var(--tr);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 14px 28px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.nav-mobile a:last-child { border-bottom: none; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  padding: 120px 0 96px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 15% 25%, rgba(240, 165, 0, 0.18), transparent 60%),
    radial-gradient(800px 700px at 85% 80%, rgba(11, 74, 138, 0.55), transparent 65%),
    linear-gradient(135deg, #03284f 0%, #05386B 50%, #0a1929 100%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.eyebrow-dark { color: var(--navy-soft); }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(250, 247, 242, 0.78);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-sub strong { color: var(--cream); font-weight: 600; }
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  font-weight: 600;
}
.meta-value { font-size: 0.95rem; color: var(--cream); }
.meta-value a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(240, 165, 0, 0.5); }
.meta-value a:hover { color: var(--amber); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 4px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  margin-left: auto;
}

/* Botoes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform var(--tr), background var(--tr), border-color var(--tr), color var(--tr);
}
.btn-primary { background: var(--amber); color: var(--navy-ink); }
.btn-primary:hover { background: #ffb71a; color: var(--navy-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--cream); color: var(--cream); }
.btn-light { background: var(--paper); color: var(--navy); border: 1px solid var(--line); }
.btn-light:hover { transform: translateY(-1px); border-color: var(--navy); }

/* Secoes */
.section { padding: 96px 0; }
.section-light { background: var(--cream); }
.section-dark { background: var(--navy-ink); color: var(--cream); }
.section-accent { background: var(--navy); color: var(--cream); }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--ink);
}
.section-title-light { color: var(--cream); }
.subsection-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 16px;
  color: inherit;
}
.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 48px;
}
.lead-light { color: rgba(250, 247, 242, 0.78); }
.lead-light a { color: var(--amber); }

/* Musica */
.musica-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.spotify-wrap {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--cream-soft);
  padding: 24px;
}
.spotify-wrap iframe { border-radius: 12px; }

/* Explorar */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.tool-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tool-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 12px;
}
.tool-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--cream);
}
.tool-card p {
  color: rgba(250, 247, 242, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* IBGE form */
.ibge-form {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}
.ibge-form input {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--line-light);
  border-radius: 10px;
  color: var(--cream);
  outline: none;
  transition: border-color var(--tr), background var(--tr);
}
.ibge-form input::placeholder { color: rgba(250, 247, 242, 0.4); }
.ibge-form input:focus {
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.1);
}

.ibge-result { min-height: 20px; font-size: 0.95rem; }
.ibge-result .ibge-loading {
  padding: 12px 0;
  color: rgba(250, 247, 242, 0.6);
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ibge-result .ibge-loading::before {
  content: '';
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(240, 165, 0, 0.3);
  border-top-color: var(--amber);
  animation: ibge-spin 0.9s linear infinite;
}
@keyframes ibge-spin { to { transform: rotate(360deg); } }
.ibge-result .ibge-error {
  padding: 14px 16px;
  background: rgba(220, 38, 38, 0.12);
  border-left: 3px solid #ef4444;
  border-radius: 8px;
  color: #fecaca;
}
.ibge-result .ibge-error strong { color: #fee2e2; }

/* IBGE stat cards */
.ibge-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  animation: ibge-fade 0.5s ease;
}
.ibge-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
  border-radius: 10px;
}
.ibge-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  font-weight: 700;
}
.ibge-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.ibge-stat-value.up { color: #4ade80; }
.ibge-stat-value.down { color: #fb7185; }
.ibge-stat-sub {
  font-size: 11px;
  color: rgba(250, 247, 242, 0.55);
  margin-top: 2px;
}

/* IBGE bar chart */
.ibge-chart {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 20px 22px;
  animation: ibge-fade 0.6s ease;
}
.ibge-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
}
.ibge-chart-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cream);
}
.ibge-chart-meta {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(250, 247, 242, 0.5);
}
.ibge-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ibge-bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 80px;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
}
.ibge-bar-label {
  color: rgba(250, 247, 242, 0.75);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ibge-bar-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.ibge-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(240, 165, 0, 0.55), var(--amber));
  border-radius: 6px;
  width: 0;
  animation: ibge-grow 0.8s cubic-bezier(.2, .8, .2, 1) forwards;
}
.ibge-bar-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
  font-weight: 600;
}
.ibge-bar-row.peak .ibge-bar-label,
.ibge-bar-row.peak .ibge-bar-value {
  color: var(--amber);
  font-weight: 700;
}
.ibge-bar-row.peak .ibge-bar-fill {
  background: linear-gradient(90deg, #f0a500, #ffb71a);
  box-shadow: 0 0 12px rgba(240, 165, 0, 0.4);
}
@keyframes ibge-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ibge-grow { from { width: 0; } }

/* Contato */
.contact-inner { text-align: center; }
.contact-inner .lead { margin-left: auto; margin-right: auto; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 40px auto 0;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  color: var(--cream);
  transition: transform var(--tr), border-color var(--tr), background var(--tr);
  text-align: left;
}
.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
}
.contact-icon { color: var(--amber); margin-bottom: 4px; }
.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(250, 247, 242, 0.6);
  font-weight: 600;
}
.contact-value { font-size: 1.05rem; font-weight: 500; word-break: break-all; }

/* Footer */
.site-footer {
  background: var(--navy-ink);
  color: rgba(250, 247, 242, 0.6);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 13px;
}
.footer-meta a { color: var(--amber); font-weight: 600; }
.footer-meta a:hover { color: #ffb71a; }

/* Responsivo */
@media (max-width: 900px) {
  .hero { padding: 96px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 240px; margin: 0 auto; }
  .musica-grid, .tools-grid, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }
}
@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-meta { align-items: flex-start; }
}
@media (max-width: 540px) {
  .ibge-bar-row { grid-template-columns: 86px 1fr 60px; gap: 10px; font-size: 0.8rem; }
  .ibge-stats { grid-template-columns: repeat(2, 1fr); }
}

/* === Peteca / FEBRAPE === */
.section-cream {
  background: linear-gradient(180deg, var(--cream) 0%, #f3ede1 100%);
  color: var(--navy-ink);
}
.peteca-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.peteca-card {
  background: #fff;
  border: 1px solid rgba(5, 56, 107, 0.08);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(10, 25, 41, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.peteca-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 25, 41, 0.08);
}
.peteca-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
}
.peteca-icon {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--navy);
  color: var(--amber);
}
.peteca-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-ink);
  margin: 0;
}
.peteca-card p {
  color: rgba(10, 25, 41, 0.72);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}
.peteca-card .btn {
  margin-top: auto;
}

/* === Pesquisa === */
.pesquisa-wrap { margin-top: 40px; }
.pesquisa-card {
  background: #fff;
  border-left: 4px solid var(--amber);
  border-radius: 0 14px 14px 0;
  padding: 28px 32px;
  box-shadow: 0 1px 3px rgba(10, 25, 41, 0.04);
}
.pesquisa-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 12px;
}
.pesquisa-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-ink);
  margin: 0 0 12px;
  line-height: 1.35;
}
.pesquisa-card > p {
  color: rgba(10, 25, 41, 0.75);
  line-height: 1.6;
  margin: 0 0 20px;
}
.pesquisa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(5, 56, 107, 0.1);
  font-size: 0.88rem;
  color: rgba(10, 25, 41, 0.7);
}
.pesquisa-meta strong {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(10, 25, 41, 0.5);
  font-weight: 600;
  margin-bottom: 2px;
}

/* === Certificações === */
.subsection-title-dark { color: var(--navy-ink); margin-top: 56px; }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.cert-card {
  background: #fff;
  border: 1px solid rgba(5, 56, 107, 0.08);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 25, 41, 0.07);
  border-color: var(--amber);
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: var(--navy);
  color: var(--cream);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.cert-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-ink);
  margin: 0;
  line-height: 1.35;
}
.cert-date {
  color: rgba(10, 25, 41, 0.6);
  font-size: 0.85rem;
  margin: 4px 0 0;
}
.cert-id {
  color: rgba(10, 25, 41, 0.45);
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  margin: 4px 0 0;
  word-break: break-all;
}

/* === Responsivo: novas seções === */
@media (max-width: 900px) {
  .peteca-grid, .cert-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pesquisa-card { padding: 22px 20px; }
  .pesquisa-meta { gap: 14px 20px; }
}

/* === Peteca · Conquista + Mídia === */
.peteca-conquista {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  border-left: 4px solid var(--amber);
  box-shadow: 0 2px 8px rgba(10, 25, 41, 0.06);
}
.peteca-medal {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0a500, #ffb71a);
  color: var(--navy-ink);
  box-shadow: 0 4px 12px rgba(240, 165, 0, 0.35);
}
.peteca-conquista-text { flex: 1; }
.peteca-conquista-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 6px;
}
.peteca-conquista-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-ink);
  margin: 0 0 4px;
  line-height: 1.3;
}
.peteca-conquista-text p {
  color: rgba(10, 25, 41, 0.65);
  font-size: 0.92rem;
  margin: 0;
}

.peteca-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.peteca-figure {
  margin: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(10, 25, 41, 0.06);
  display: flex;
  flex-direction: column;
}
.peteca-figure img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--cream);
}
.peteca-figure video {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #0a1929;
}
.peteca-figure figcaption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: rgba(10, 25, 41, 0.65);
  border-top: 1px solid rgba(5, 56, 107, 0.08);
}

@media (max-width: 900px) {
  .peteca-conquista { flex-direction: column; align-items: flex-start; text-align: left; }
  .peteca-media { grid-template-columns: 1fr; }
}

/* === CPF / CNPJ === */
.cpf-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cpf-actions .btn { flex: 1; min-width: 120px; }
.cpf-output { min-height: 0; margin-bottom: 18px; }
.cpf-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: rgba(240, 165, 0, 0.12);
  border: 1px solid rgba(240, 165, 0, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  animation: cpf-fade 0.3s ease;
}
@keyframes cpf-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.cpf-result-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber);
  background: rgba(240, 165, 0, 0.18);
  padding: 4px 8px;
  border-radius: 4px;
}
.cpf-result-value {
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.5px;
}
.cpf-copy {
  border: 1px solid rgba(240, 165, 0, 0.4);
  background: transparent;
  color: var(--amber);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease;
}
.cpf-copy:hover { background: var(--amber); color: var(--navy-ink); }

.cpf-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 4px;
}
.cpf-form input {
  background: rgba(250, 247, 242, 0.06);
  border: 1px solid rgba(250, 247, 242, 0.18);
  color: var(--cream);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.cpf-form input::placeholder { color: rgba(250, 247, 242, 0.35); font-family: 'Inter', sans-serif; letter-spacing: 0; }
.cpf-form input:focus { border-color: var(--amber); background: rgba(250, 247, 242, 0.1); }

.cpf-validate-result { margin-top: 14px; }
.cpf-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.4;
  animation: cpf-fade 0.3s ease;
}
.cpf-msg strong { font-family: 'Courier New', monospace; }
.cpf-ok { background: rgba(82, 196, 138, 0.14); border: 1px solid rgba(82, 196, 138, 0.4); color: #7ce4a1; }
.cpf-err { background: rgba(232, 91, 122, 0.14); border: 1px solid rgba(232, 91, 122, 0.4); color: #f08a9f; }

@media (max-width: 540px) {
  .cpf-result { grid-template-columns: 1fr; text-align: left; }
  .cpf-form { grid-template-columns: 1fr; }
}

/* CTA do card de pesquisa */
.pesquisa-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(5, 56, 107, 0.08);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.pesquisa-link:hover { color: var(--amber); }
