.nav-icon-button {
  cursor: pointer;
}

.theme-icon,
.language-flag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
}

.theme-icon-sun {
  border: 1px solid rgba(255, 250, 240, 0.48);
}

.theme-icon-sun::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f7d58b;
  box-shadow: 0 0 0 4px rgba(247, 213, 139, 0.18);
  content: "";
}

.theme-icon-moon {
  background: radial-gradient(circle at 70% 35%, rgba(7, 7, 8, 0) 0 8px, #f8f5ed 8.5px);
}

.theme-switch .theme-icon-moon,
html[data-theme="light"] .theme-switch .theme-icon-sun {
  background-color: rgba(255, 0, 0, 0.9);
}

html[data-theme="light"] .theme-switch .theme-icon-moon {
  background-color: transparent;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 4px;
  border: 1px solid rgba(255, 0, 0, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.language-option.is-active {
  background: linear-gradient(90deg, #ff0000, #ff0000);
}

.language-flag {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.24);
}

.language-flag-br {
  background: #169b3b;
}

.language-flag-br::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #ffdf00;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.language-flag-br::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #002776;
  content: "";
  transform: translate(-50%, -50%);
}

.language-flag-us {
  background:
    linear-gradient(180deg,
      #b22234 0%,
      #b22234 14.28%,
      #ffffff 14.28%,
      #ffffff 28.56%,
      #b22234 28.56%,
      #b22234 42.84%,
      #ffffff 42.84%,
      #ffffff 57.12%,
      #b22234 57.12%,
      #b22234 71.4%,
      #ffffff 71.4%,
      #ffffff 85.68%,
      #b22234 85.68%,
      #b22234 100%);
}

.language-flag-us::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 11px;
  background: #3c3b6e;
  content: "";
}

.language-flag-us::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 0.7px, transparent 0.9px);
  background-size: 3px 3px;
  content: "";
}

html[data-theme="light"] {
  --black: #fbf7ef;
  --black-2: #f4ecde;
  --text: #1b1b1d;
  --muted: rgba(27, 27, 29, 0.72);
  --line: rgba(255, 0, 0, 0.24);
  --card: rgba(255, 255, 255, 0.66);
}

html[data-theme="light"] body {
  background: #fbf7ef;
  color: var(--text);
}

html[data-theme="light"] .site-page {
  background:
    radial-gradient(circle at 74% 20%, rgba(255, 0, 0, 0.18), transparent 30%),
    linear-gradient(180deg, #fbf7ef 0%, #f4ecde 100%);
}

html[data-theme="light"] .site-nav {
  border-bottom-color: rgba(255, 0, 0, 0.26);
  background: rgba(251, 247, 239, 0.92);
  color: #1b1b1d;
}

html[data-theme="light"] .site-nav-links a {
  color: #1b1b1d;
}

html[data-theme="light"] .site-nav-links a:hover {
  color: #000;
}

html[data-theme="light"] .nav-icon-button,
html[data-theme="light"] .language-switcher {
  background: rgba(255, 255, 255, 0.64);
}

html[data-theme="light"] .hero {
  background: linear-gradient(90deg, rgba(251, 247, 239, 0.96), rgba(244, 236, 222, 0.76), rgba(251, 247, 239, 0.94));
}

html[data-theme="light"] .hero::before {
  background: linear-gradient(180deg, rgba(251, 247, 239, 0), rgba(251, 247, 239, 0.22) 70%, #fbf7ef 100%);
}

html[data-theme="light"] .hero::after {
  background: linear-gradient(180deg, rgba(251, 247, 239, 0) 0%, rgba(251, 247, 239, 0.76) 64%, #fbf7ef 100%);
}

html[data-theme="light"] .intro-watermark {
  color: rgba(255, 0, 0, 0.12);
}

html[data-theme="light"] .portfolio-section,
html[data-theme="light"] .how-section {
  background: linear-gradient(180deg, #fbf7ef 0%, #f4ecde 100%);
}

html[data-theme="light"] .portfolio-section h2 {
  color: #1b1b1d;
}

html[data-theme="light"] .portfolio-card:not(.niche-card):not(.client-site-one):not(.client-site-two):not(.client-site-three):not(.client-site-four):not(.client-site-five):not([class*="session-three-brand-"]):not([class*="session-four-mobile-"]):not([class*="session-five-site-"]) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 0, 0, 0.12)),
    #f8f1e5;
}

html[data-theme="light"] .intro-section,
html[data-theme="light"] .plans,
html[data-theme="light"] .why,
html[data-theme="light"] .story,
html[data-theme="light"] .faq {
  background: linear-gradient(120deg, rgba(251, 247, 239, 0.98), rgba(244, 236, 222, 0.92));
}

html[data-theme="light"] .image-slot,
html[data-theme="light"] .benefits-grid article,
html[data-theme="light"] .plan-card,
html[data-theme="light"] .why-card,
html[data-theme="light"] .consult-card,
html[data-theme="light"] .faq-list ol,
html[data-theme="light"] .about-card {
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 26px 58px rgba(74, 54, 23, 0.12);
}

html[data-theme="light"] .faq-list li::after {
  color: var(--text);
}

.rights-toast {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 120;
  padding: 7px 12px;
  border: 1px solid rgba(255, 0, 0, 0.28);
  border-radius: 4px;
  background: linear-gradient(90deg, #ff0000, #ff0000);
  color: #fffaf0;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.rights-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .theme-icon,
  .language-flag {
    width: 17px;
    height: 17px;
  }

  .language-switcher {
    height: 30px;
    gap: 3px;
    padding: 3px;
  }

  .language-option {
    width: 22px;
    height: 22px;
  }
}
