/* Palhares Ferreira Advocacia — Tema moderno clean (cinza + amarelo escuro) */
:root {
  --brand: #ffd752;
  /* amarelo mais escuro/dourado */
  --bg: #ffffff;
  --text: #1f2937;
  /* gray-800 */
  --muted: #6b7280;
  /* gray-500 */
  --card: #f8fafc;
  /* slate-50 */
  --border: #e5e7eb;
  /* gray-200 */
  --shadow: 0 10px 20px rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .04);
}

:root.dark {
  --brand: #c49b17;
  --bg: #0f1115;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --card: #151923;
  --border: #252b36;
  --shadow: 0 8px 16px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Respeita usuários com redução de movimento */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: .5rem .75rem;
  border-radius: .5rem
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

:root.dark .header {
  background: rgba(17, 20, 26, .65)
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 600
}

.brand .brand-name strong {
  color: var(--brand);
  font-weight: 600
}

.logo {
  width: 36px;
  height: 36px
}

.menu {
  display: flex;
  align-items: center;
  gap: 1rem
}

.menu a {
  padding: .5rem .75rem;
  border-radius: .5rem;
  opacity: .9;
  min-height: 44px;
  display: flex;
  align-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.menu a:hover {
  background: var(--card)
}

/* Hero */
.hero {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center
}

.hero h1 {
  font-size: clamp(1.8rem, 1.2rem + 2.5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 .75rem
}

.hero p {
  color: var(--muted);
  margin: 0 0 1.5rem
}

.hero-art {
  position: relative;
  min-height: 280px
}

.hero .blob {
  position: absolute;
  inset: 10% -10% auto auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(120% 120% at 30% 20%, var(--brand) 0%, transparent 60%),
    conic-gradient(from 180deg at 70% 60%, rgba(201, 162, 39, .35), transparent 50%);
  filter: blur(18px);
  border-radius: 50%;
  opacity: .45;
  animation: float 10s ease-in-out infinite;
}

.hero .ring {
  position: absolute;
  inset: auto 5% 10% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(57, 90, 108, .35);
  animation: spin 22s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero .ring-logo {
  width: 60%;
  height: auto;
  max-width: 160px;
  animation: counter-spin 22s linear infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-14px)
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes counter-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.1rem;
  border-radius: .9rem;
  border: 1px solid var(--border);
  font-weight: 600;
  transition: all .2s ease;
  box-shadow: var(--shadow);
  min-height: 44px;
  /* Tamanho mínimo para touch */
  touch-action: manipulation;
  /* Melhora a responsividade do touch */
  -webkit-tap-highlight-color: transparent;
  /* Remove highlight no iOS */
}

.btn-primary {
  background: var(--brand);
  border-color: transparent
}

.btn-primary:hover {
  filter: brightness(1.05)
}

.btn-ghost {
  background: transparent
}

.btn-ghost:hover {
  background: var(--card)
}

.section {
  padding: 4rem 0
}

.section-sub {
  color: var(--muted);
  margin: .25rem 0 2rem
}

.grid {
  display: grid;
  gap: 1.25rem
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr))
}

/* Ajustes para grid em telas pequenas */
@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .posts {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .2s ease
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, .45)
}

.card .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: .75rem;
  background: linear-gradient(180deg, rgba(201, 162, 39, .22), rgba(201, 162, 39, .05))
}

.card .icon svg {
  width: 22px;
  height: 22px;
  fill: var(--text)
}

:root.dark .card .icon svg {
  fill: var(--text);
}

.card.highlight {
  outline: 2px dashed rgba(201, 162, 39, .45)
}

.about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2rem;
  align-items: center
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 162, 39, .25), transparent 60%), var(--card);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem
}

.posts {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
}

.acessar-materia {
  color: #ffd752;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow)
}

.post-card h3 {
  margin: .25rem 0 .5rem;
  font-size: 1.05rem
}

.post-card p {
  color: var(--muted)
}

.post-meta {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .85rem;
  color: var(--muted)
}

/* Barra de Pesquisa */
.search-container {
  margin: 1.5rem 0 2rem;
  display: flex;
  justify-content: center;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 215, 82, 0.1);
  background: var(--bg);
}

.search-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
  transition: color 0.2s ease;
}

.search-input:focus+.search-icon,
.search-wrapper:focus-within .search-icon {
  color: var(--brand);
}

.clear-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0;
  transform: scale(0.8);
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.clear-btn:hover {
  color: var(--text);
  background: var(--card);
}

.clear-btn.visible {
  opacity: 1;
  transform: scale(1);
}

/* Modo escuro para barra de pesquisa */
:root.dark .search-input {
  background: var(--card);
  border-color: var(--border);
}

:root.dark .search-input:focus {
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(196, 155, 23, 0.1);
}

:root.dark .clear-btn:hover {
  background: var(--border);
}

/* Responsive para barra de pesquisa */
@media (max-width: 600px) {
  .search-container {
    margin: 1rem 0 1.5rem;
  }

  .search-input {
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.9rem;
  }

  .search-icon {
    left: 0.875rem;
    width: 18px;
    height: 18px;
  }
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem
}

.icon-inline {
  margin-right: .5rem
}

.map .map-embed {
  aspect-ratio: 16 / 9;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap
}

.muted {
  color: var(--muted)
}

.small {
  font-size: .9rem
}

/* Floating Action Buttons */
.fab-group {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  z-index: 60
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #111827;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, .04);
  transition: transform .15s ease, filter .2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
}

.fab:hover {
  transform: translateY(-2px);
  filter: brightness(1.05)
}

.fab svg {
  width: 24px;
  height: 24px;
}

/* Reveal animation on scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease
}

.reveal.revealed {
  opacity: 1;
  transform: none
}

#areasWhats {
  color: #e0bf52
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text .cta-group {
    justify-content: center;
  }

  .hero-art {
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
    text-align: justify;
  }

  .about-media {
    margin-inline: auto;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-group {
    flex-direction: column;
    align-items: center;
  }

  .nav {
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.6rem 0;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
  }

  .menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Media queries para dispositivos móveis pequenos (< 400px) */
@media (max-width: 400px) {
  .container {
    width: 95%;
    padding: 0 0.5rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
    /* Tamanho mínimo para touch */
  }

  .section {
    padding: 2.5rem 0;
  }

  .nav {
    padding: 0.5rem 0;
  }

  .brand {
    gap: 0.5rem;
  }

  .logo {
    width: 28px;
    height: 28px;
  }

  .brand .brand-name {
    font-size: 0.9rem;
  }

  .menu {
    gap: 0.5rem;
  }

  .menu a {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .card {
    padding: 1rem;
  }

  .card .icon {
    width: 36px;
    height: 36px;
  }

  .card .icon svg {
    width: 18px;
    height: 18px;
  }

  .avatar {
    width: 80px;
    height: 80px;
    font-size: 1.1rem;
  }

  .post-card {
    padding: 0.8rem;
  }

  .post-card h3 {
    font-size: 0.95rem;
  }

  .post-meta {
    font-size: 0.8rem;
  }

  .search-input {
    padding: 0.7rem 0.8rem 0.7rem 2.5rem;
    font-size: 0.85rem;
  }

  .search-icon {
    left: 0.8rem;
    width: 16px;
    height: 16px;
  }

  .clear-btn {
    right: 0.6rem;
    padding: 0.2rem;
  }

  .fab {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .fab svg {
    width: 20px;
    height: 20px;
  }

  .fab-group {
    right: 1rem;
    bottom: 1rem;
    gap: 0.5rem;
  }

  .footer {
    padding: 1.5rem 0;
  }

  .footer-inner {
    gap: 0.8rem;
  }

  .muted {
    font-size: 0.85rem;
  }

  .small {
    font-size: 0.8rem;
  }
}

/* Media queries para dispositivos móveis muito pequenos (< 350px) */
@media (max-width: 350px) {
  .container {
    width: 98%;
    padding: 0 0.25rem;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .hero p {
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  .brand .brand-name {
    font-size: 0.8rem;
  }

  .menu a {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }

  .card {
    padding: 0.8rem;
  }

  .post-card {
    padding: 0.7rem;
  }

  .search-input {
    padding: 0.6rem 0.7rem 0.6rem 2.2rem;
    font-size: 0.8rem;
  }

  .search-icon {
    left: 0.7rem;
    width: 14px;
    height: 14px;
  }

  .fab {
    width: 44px;
    height: 44px;
  }

  .fab svg {
    width: 18px;
    height: 18px;
  }

  .map .map-embed {
    border-radius: 0.8rem;
  }

  .contact-list {
    gap: 0.4rem;
  }

  .icon-inline {
    margin-right: 0.4rem;
  }
}



/* Theme Switch */
.theme-switch {
  --toggle-size: 13px;
  --container-width: 4.825em;
  --container-height: 2.5em;
  --container-radius: 6.25em;
  --container-light-bg: #3D7EAE;
  --container-night-bg: #1D1F2C;
  --circle-container-diameter: 3.375em;
  --sun-moon-diameter: 2em;
  --sun-bg: #ECCA2F;
  --moon-bg: #C4C9D1;
  --spot-color: #959DB1;
  --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
  --stars-color: #fff;
  --clouds-color: #F3FDFF;
  --back-clouds-color: #AACADF;
  --transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
  --circle-transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
}

.theme-switch,
.theme-switch *,
.theme-switch *::before,
.theme-switch *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: var(--toggle-size);
}

@media (max-width: 440px) {
  .theme-switch {
    --toggle-size: 8px;
  }
}

@media (max-width: 350px) {
  .theme-switch {
    --toggle-size: 7px;
  }
}

.theme-switch__container {
  width: var(--container-width);
  height: var(--container-height);
  background-color: var(--container-light-bg);
  border-radius: var(--container-radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  transition: var(--transition);
  position: relative;
}

.theme-switch__container::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  border-radius: var(--container-radius)
}

.theme-switch__checkbox {
  display: none;
}

.theme-switch__circle-container {
  width: var(--circle-container-diameter);
  height: var(--circle-container-diameter);
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: var(--circle-container-offset);
  top: var(--circle-container-offset);
  border-radius: var(--container-radius);
  box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  display: flex;
  transition: var(--circle-transition);
  pointer-events: none;
}

.theme-switch__sun-moon-container {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: var(--sun-moon-diameter);
  height: var(--sun-moon-diameter);
  margin: auto;
  border-radius: var(--container-radius);
  background-color: var(--sun-bg);
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  overflow: hidden;
  transition: var(--transition);
}

.theme-switch__moon {
  transform: translateX(100%);
  width: 100%;
  height: 100%;
  background-color: var(--moon-bg);
  border-radius: inherit;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  transition: var(--transition);
  position: relative;
}

.theme-switch__spot {
  position: absolute;
  top: 0.75em;
  left: 0.312em;
  width: 0.75em;
  height: 0.75em;
  border-radius: var(--container-radius);
  background-color: var(--spot-color);
  box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
}

.theme-switch__spot:nth-of-type(2) {
  width: 0.375em;
  height: 0.375em;
  top: 0.937em;
  left: 1.375em;
}

.theme-switch__spot:nth-last-of-type(3) {
  width: 0.25em;
  height: 0.25em;
  top: 0.312em;
  left: 0.812em;
}

.theme-switch__clouds {
  width: 1.25em;
  height: 1.25em;
  background-color: var(--clouds-color);
  border-radius: var(--container-radius);
  position: absolute;
  bottom: -0.625em;
  left: 0.312em;
  box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
}

.theme-switch__stars-container {
  position: absolute;
  color: var(--stars-color);
  top: -100%;
  left: 0.312em;
  width: 2.75em;
  height: auto;
  transition: var(--transition);
}

.theme-switch__checkbox:checked+.theme-switch__container {
  background-color: var(--container-night-bg);
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__circle-container {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__circle-container:hover {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em)
}

.theme-switch__circle-container:hover {
  left: calc(var(--circle-container-offset) + 0.187em);
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__moon {
  transform: translate(0);
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__clouds {
  bottom: -4.062em;
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__stars-container {
  top: 50%;
  transform: translateY(-50%);
}

/* Estilos para destaque de matéria selecionada */
.highlighted-post {
  position: relative;
  animation: highlightPulse 2s ease-in-out;
  border: 2px solid var(--brand) !important;
  box-shadow: 0 0 20px rgba(255, 215, 82, 0.3) !important;
}

@keyframes highlightPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 215, 82, 0.3);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 215, 82, 0.5);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 215, 82, 0.3);
  }
}

/* Versão para modo escuro */
:root.dark .highlighted-post {
  border: 2px solid var(--brand) !important;
  box-shadow: 0 0 20px rgba(196, 155, 23, 0.4) !important;
}

@keyframes highlightPulseDark {
  0% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(196, 155, 23, 0.4);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(196, 155, 23, 0.6);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(196, 155, 23, 0.4);
  }
}

/* Modal de Recesso */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg);
  color: var(--text);
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
}

.modal-content h2 {
  color: var(--brand);
  margin-top: 0;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}

.close-btn:hover {
  color: var(--text);
}

/* Ajustes responsivos para o modal */
@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }
}
