/* ============================================================
   ATRACOU — ENHANCEMENTS CSS + JS
   Site de Passeios Náuticos
   Paleta: Navy #0A1628 | Turquoise #00BCD4 | Orange #FF6D00
   Fontes: Plus Jakarta Sans (headings) | Inter (body)
   ============================================================ */

/* ============================================================
   DESIGN TOKENS — VARIÁVEIS GLOBAIS
   ============================================================ */

:root {
  --color-navy: #0A1628;
  --color-navy-dark: #060e1a;
  --color-navy-light: #112240;
  --color-turquoise: #00BCD4;
  --color-turquoise-dark: #00ACC1;
  --color-turquoise-light: #00CED1;
  --color-turquoise-glow: rgba(0, 188, 212, 0.3);
  --color-orange: #FF6D00;
  --color-orange-dark: #E65100;
  --color-orange-light: #FF8F00;
  --color-orange-glow: rgba(255, 109, 0, 0.3);
  --color-white: #ffffff;
  --color-white-alpha-10: rgba(255, 255, 255, 0.1);
  --color-white-alpha-20: rgba(255, 255, 255, 0.2);
  --color-white-alpha-80: rgba(255, 255, 255, 0.8);

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
  --shadow-turquoise: 0 8px 32px rgba(0, 188, 212, 0.35);
  --shadow-orange: 0 8px 32px rgba(255, 109, 0, 0.35);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --easing-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --easing-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --easing-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --easing-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-loader: 500;
}

/* ============================================================
   1. SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal-up,
.reveal-down,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-rotate,
.reveal-fade {
  opacity: 0;
  transition-property: opacity, transform;
  transition-timing-function: var(--easing-out-expo);
  transition-duration: 0.7s;
  will-change: opacity, transform;
}

.reveal-up         { transform: translateY(60px); }
.reveal-down       { transform: translateY(-60px); }
.reveal-left       { transform: translateX(-60px); }
.reveal-right      { transform: translateX(60px); }
.reveal-scale      { transform: scale(0.8); }
.reveal-rotate     { transform: rotate(-8deg) scale(0.9); }
.reveal-fade       { transform: none; }

.reveal-up.is-visible,
.reveal-down.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.reveal-rotate.is-visible,
.reveal-fade.is-visible {
  opacity: 1;
  transform: none;
}

.delay-100  { transition-delay: 0.1s; }
.delay-150  { transition-delay: 0.15s; }
.delay-200  { transition-delay: 0.2s; }
.delay-250  { transition-delay: 0.25s; }
.delay-300  { transition-delay: 0.3s; }
.delay-350  { transition-delay: 0.35s; }
.delay-400  { transition-delay: 0.4s; }
.delay-450  { transition-delay: 0.45s; }
.delay-500  { transition-delay: 0.5s; }
.delay-600  { transition-delay: 0.6s; }
.delay-700  { transition-delay: 0.7s; }
.delay-800  { transition-delay: 0.8s; }
.delay-900  { transition-delay: 0.9s; }
.delay-1000 { transition-delay: 1.0s; }

.duration-300  { transition-duration: 0.3s; }
.duration-500  { transition-duration: 0.5s; }
.duration-700  { transition-duration: 0.7s; }
.duration-900  { transition-duration: 0.9s; }
.duration-1100 { transition-duration: 1.1s; }

.ease-bounce  { transition-timing-function: var(--easing-out-back); }
.ease-expo    { transition-timing-function: var(--easing-out-expo); }
.ease-smooth  { transition-timing-function: var(--easing-smooth); }

.reveal-stagger > *:nth-child(1)  { transition-delay: 0.00s; }
.reveal-stagger > *:nth-child(2)  { transition-delay: 0.10s; }
.reveal-stagger > *:nth-child(3)  { transition-delay: 0.20s; }
.reveal-stagger > *:nth-child(4)  { transition-delay: 0.30s; }
.reveal-stagger > *:nth-child(5)  { transition-delay: 0.40s; }
.reveal-stagger > *:nth-child(6)  { transition-delay: 0.50s; }
.reveal-stagger > *:nth-child(7)  { transition-delay: 0.60s; }
.reveal-stagger > *:nth-child(8)  { transition-delay: 0.70s; }
.reveal-stagger > *:nth-child(9)  { transition-delay: 0.80s; }
.reveal-stagger > *:nth-child(10) { transition-delay: 0.90s; }

.reveal-clip {
  clip-path: inset(0 100% 0 0);
  opacity: 1;
  transition: clip-path 0.8s var(--easing-out-expo);
}
.reveal-clip.is-visible {
  clip-path: inset(0 0% 0 0);
}

/* ============================================================
   2. MICRO-INTERACTIONS AVANÇADAS
   ============================================================ */

.btn-ripple {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-ripple .ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleExpand 0.6s linear;
  pointer-events: none;
}

@keyframes rippleExpand {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.card-tilt {
  transform-style: preserve-3d;
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.card-tilt:hover {
  box-shadow: var(--shadow-xl);
}

.card-tilt .card-tilt-inner {
  transform: translateZ(20px);
  transition: transform 0.1s ease;
}

.card-tilt .card-tilt-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.card-tilt:hover .card-tilt-shine {
  opacity: 1;
}

.magnetic {
  display: inline-block;
  transition: transform 0.3s var(--easing-out-back);
  cursor: pointer;
}

.glow-hover {
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.glow-hover:hover {
  box-shadow:
    0 0 20px var(--color-turquoise-glow),
    0 0 40px var(--color-turquoise-glow),
    0 0 60px rgba(0, 188, 212, 0.1);
  transform: translateY(-2px);
}

.glow-hover-orange:hover {
  box-shadow:
    0 0 20px var(--color-orange-glow),
    0 0 40px var(--color-orange-glow),
    0 0 60px rgba(255, 109, 0, 0.1);
  transform: translateY(-2px);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%  { transform: translateX(-8px) rotate(-1deg); }
  20%  { transform: translateX(8px) rotate(1deg); }
  30%  { transform: translateX(-6px) rotate(-0.5deg); }
  40%  { transform: translateX(6px) rotate(0.5deg); }
  50%  { transform: translateX(-4px); }
  60%  { transform: translateX(4px); }
  70%  { transform: translateX(-2px); }
  80%  { transform: translateX(2px); }
  90%  { transform: translateX(-1px); }
}

.shake { animation: shake 0.6s ease; }

@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.3); }
  50%  { opacity: 1; transform: scale(1.08); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.bounce-in {
  animation: bounceIn 0.6s var(--easing-out-back) forwards;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  33%       { transform: translateY(-12px) rotate(1deg); }
  66%       { transform: translateY(-6px) rotate(-0.5deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(2deg); }
}

.float       { animation: float 4s ease-in-out infinite; }
.float-slow  { animation: floatSlow 6s ease-in-out infinite; }
.float-fast  { animation: float 2.5s ease-in-out infinite; }

.float-delay-1 { animation-delay: 0.5s; }
.float-delay-2 { animation-delay: 1.0s; }
.float-delay-3 { animation-delay: 1.5s; }
.float-delay-4 { animation-delay: 2.0s; }

@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 0 10px var(--color-turquoise-glow),
      0 0 20px var(--color-turquoise-glow);
  }
  50% {
    box-shadow:
      0 0 20px rgba(0, 188, 212, 0.6),
      0 0 40px rgba(0, 188, 212, 0.4),
      0 0 60px rgba(0, 188, 212, 0.2);
  }
}

@keyframes pulseGlowOrange {
  0%, 100% {
    box-shadow:
      0 0 10px var(--color-orange-glow),
      0 0 20px var(--color-orange-glow);
  }
  50% {
    box-shadow:
      0 0 20px rgba(255, 109, 0, 0.6),
      0 0 40px rgba(255, 109, 0, 0.4),
      0 0 60px rgba(255, 109, 0, 0.2);
  }
}

.pulse-glow        { animation: pulseGlow 2.5s ease-in-out infinite; }
.pulse-glow-orange { animation: pulseGlowOrange 2.5s ease-in-out infinite; }

@keyframes spin360 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spin-slow { animation: spin360 8s linear infinite; }

@keyframes heartbeat {
  0%   { transform: scale(1); }
  14%  { transform: scale(1.12); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.12); }
  70%  { transform: scale(1); }
}

.heartbeat { animation: heartbeat 1.5s ease-in-out infinite; }

@keyframes zoomPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

.zoom-pulse { animation: zoomPulse 3s ease-in-out infinite; }

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.6; }
}

.flicker { animation: flicker 3s linear infinite; }

.hover-slide-up {
  position: relative;
  overflow: hidden;
}

.hover-slide-up::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-turquoise), var(--color-orange));
  transform: translateX(-100%);
  transition: transform 0.4s var(--easing-out-expo);
}

.hover-slide-up:hover::after {
  transform: translateX(0);
}

/* ============================================================
   3. LOADING & SKELETON
   ============================================================ */

#page-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #0A1628 0%, #0F2847 60%, #1a3a5c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loader);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
  overflow: hidden;
}

#page-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.loader-logo {
  width: 220px;
  height: auto;
  margin-bottom: 2rem;
  animation: loaderLogoEntry 0.8s ease-out forwards, loaderLogoPulse 2.5s ease-in-out 0.8s infinite;
  opacity: 0;
  filter: drop-shadow(0 0 30px rgba(0, 188, 212, 0.4));
}

@keyframes loaderLogoEntry {
  0% { opacity: 0; transform: scale(0.7) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes loaderLogoPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 188, 212, 0.3)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 40px rgba(0, 188, 212, 0.6)); transform: scale(1.03); }
}

/* Wave dots animation */
.loader-wave {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 30px;
  margin-bottom: 1.5rem;
}

.loader-wave span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--color-turquoise);
  animation: loaderWaveDot 1.2s ease-in-out infinite;
}

.loader-wave span:nth-child(1) { animation-delay: 0s; }
.loader-wave span:nth-child(2) { animation-delay: 0.1s; }
.loader-wave span:nth-child(3) { animation-delay: 0.2s; }
.loader-wave span:nth-child(4) { animation-delay: 0.3s; }
.loader-wave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes loaderWaveDot {
  0%, 60%, 100% { height: 6px; opacity: 0.4; }
  30% { height: 24px; opacity: 1; background: var(--color-orange); }
}

.loader-bar-track {
  width: 240px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-turquoise), var(--color-orange), var(--color-turquoise));
  background-size: 200% 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: loaderBarShimmer 1.5s linear infinite;
}

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

.loader-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-top: 1.2rem;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: loaderTextFade 2s ease-in-out infinite;
}

@keyframes loaderTextFade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Ocean waves at the bottom */
.loader-ocean {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 1;
  overflow: hidden;
}

.loader-ocean-wave {
  position: absolute;
  bottom: -10px;
  left: -5%;
  width: 110%;
  height: 80px;
  border-radius: 50% 50% 0 0;
}

.loader-ocean-wave-1 {
  background: rgba(0, 188, 212, 0.08);
  animation: loaderOceanWave 4s ease-in-out infinite;
}

.loader-ocean-wave-2 {
  background: rgba(0, 188, 212, 0.05);
  bottom: -15px;
  height: 60px;
  animation: loaderOceanWave 3s ease-in-out infinite reverse;
  animation-delay: 0.5s;
}

@keyframes loaderOceanWave {
  0%, 100% { transform: translateX(-3%) scaleY(1); }
  50% { transform: translateX(3%) scaleY(1.3); }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 1em;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-text + .skeleton-text {
  margin-top: 0.5rem;
  width: 80%;
}

.skeleton-text:last-child { width: 60%; }

.skeleton-image {
  border-radius: var(--radius-lg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
}

.skeleton-circle {
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

.skeleton-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
}

.skeleton-card .skeleton-image {
  width: 100%;
  height: 200px;
  margin-bottom: 1rem;
}

.skeleton-card .skeleton-title {
  height: 1.25rem;
  width: 70%;
  margin-bottom: 0.75rem;
}

.skeleton-card .skeleton-meta {
  height: 0.875rem;
  width: 50%;
}

/* ============================================================
   4. HERO ENHANCEMENTS
   ============================================================ */

.parallax-bg {
  will-change: transform;
  transform: translateZ(0);
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text-animated {
  background: linear-gradient(
    270deg,
    var(--color-turquoise),
    var(--color-orange),
    var(--color-turquoise-light),
    var(--color-orange-light)
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
  display: inline-block;
}

.gradient-text-static {
  background: linear-gradient(135deg, var(--color-turquoise), var(--color-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-particles canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.particle-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--color-turquoise);
  opacity: 0.4;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.4; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.wave-divider {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

.wave-divider .wave-animate path {
  animation: waveMove 6s ease-in-out infinite alternate;
  transform-origin: center bottom;
}

.wave-divider .wave-animate path:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 8s;
  opacity: 0.6;
}

.wave-divider .wave-animate path:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 10s;
  opacity: 0.3;
}

@keyframes waveMove {
  0% {
    d: path("M0,64L48,80C96,96,192,128,288,122.7C384,117,480,75,576,64C672,53,768,75,864,80C960,85,1056,75,1152,69.3C1248,64,1344,64,1392,64L1440,64L1440,320L0,320Z");
  }
  100% {
    d: path("M0,96L48,112C96,128,192,160,288,154.7C384,149,480,107,576,96C672,85,768,107,864,112C960,117,1056,107,1152,101.3C1248,96,1344,96,1392,96L1440,96L1440,320L0,320Z");
  }
}

.typing-cursor::after {
  content: '|';
  color: var(--color-turquoise);
  animation: cursorBlink 0.8s step-end infinite;
  margin-left: 2px;
  font-weight: 300;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes heroBadgePop {
  0%   { transform: scale(0) rotate(-10deg); opacity: 0; }
  60%  { transform: scale(1.1) rotate(3deg); }
  80%  { transform: scale(0.97) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.hero-badge-pop {
  animation: heroBadgePop 0.8s var(--easing-out-back) forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

/* ============================================================
   5. CARD ENHANCEMENTS
   ============================================================ */

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  transition:
    background var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-normal);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 188, 212, 0.3);
  box-shadow: var(--shadow-turquoise);
  transform: translateY(-4px);
}

.glass-card-dark {
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 188, 212, 0.15);
  border-radius: var(--radius-xl);
}

.card-lift {
  transition:
    transform 0.3s var(--easing-out-back),
    box-shadow 0.3s ease;
  cursor: pointer;
}

.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 20px 60px rgba(0, 188, 212, 0.15);
}

.card-lift:active {
  transform: translateY(-2px);
  transition-duration: 0.1s;
}

.img-zoom-container {
  overflow: hidden;
  border-radius: inherit;
}

.img-zoom-container img,
.img-zoom-container .img-zoom {
  transition: transform 0.5s var(--easing-in-out-quart);
  transform-origin: center;
}

.img-zoom-container:hover img,
.img-zoom-container:hover .img-zoom {
  transform: scale(1.08);
}

.img-lazy {
  filter: blur(8px);
  transition: filter 0.4s ease;
}

.img-lazy.img-loaded {
  filter: blur(0);
}

@keyframes pricePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); color: var(--color-orange-light); }
}

.price-pulse {
  animation: pricePulse 2s ease-in-out infinite;
  display: inline-block;
}

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

.badge-shine {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    var(--color-orange) 0%,
    var(--color-orange-light) 30%,
    rgba(255,255,255,0.6) 50%,
    var(--color-orange-light) 70%,
    var(--color-orange) 100%
  );
  background-size: 200% auto;
  animation: badgeShine 2.5s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
}

.badge-turquoise-shine {
  background: linear-gradient(
    90deg,
    var(--color-turquoise) 0%,
    var(--color-turquoise-light) 30%,
    rgba(255,255,255,0.6) 50%,
    var(--color-turquoise-light) 70%,
    var(--color-turquoise) 100%
  );
  background-size: 200% auto;
  animation: badgeShine 2.5s linear infinite;
}

@keyframes starPop {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.3) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.stars-animated .star {
  display: inline-block;
  opacity: 0;
  animation: starPop 0.4s var(--easing-out-back) forwards;
}

.stars-animated .star:nth-child(1) { animation-delay: 0.1s; }
.stars-animated .star:nth-child(2) { animation-delay: 0.2s; }
.stars-animated .star:nth-child(3) { animation-delay: 0.3s; }
.stars-animated .star:nth-child(4) { animation-delay: 0.4s; }
.stars-animated .star:nth-child(5) { animation-delay: 0.5s; }

.ribbon {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-orange);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 0 var(--radius-md) 0 var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: heroBadgePop 0.5s var(--easing-out-back) forwards;
}

/* ============================================================
   6. NAVIGATION ENHANCEMENTS
   ============================================================ */

.nav-link-underline {
  position: relative;
  text-decoration: none;
  padding-bottom: 4px;
}

.nav-link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-turquoise), var(--color-orange));
  transition: width 0.3s var(--easing-out-expo);
  border-radius: 1px;
}

.nav-link-underline:hover::after,
.nav-link-underline.active::after {
  width: 100%;
}

.nav-link-dot {
  position: relative;
  padding-bottom: 6px;
}

.nav-link-dot.active::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-turquoise);
  border-radius: 50%;
  animation: bounceIn 0.4s var(--easing-out-back);
}

.hamburger-morph {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger-morph span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.hamburger-morph.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-morph.is-open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.hamburger-morph.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-turquoise), var(--color-orange));
  z-index: calc(var(--z-sticky) + 10);
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--color-turquoise-glow);
}

.header-sticky {
  transition:
    padding 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

.header-sticky.shrunk {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-dropdown {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* ============================================================
   7. SECTION TRANSITIONS
   ============================================================ */

.section-diagonal {
  position: relative;
}

.section-diagonal::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
  z-index: 1;
}

.section-diagonal-top::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
  z-index: 1;
}

.wave-top {
  position: relative;
  margin-top: -4px;
}

.wave-top svg {
  display: block;
  width: 100%;
  height: 80px;
}

.gradient-mesh {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(0, 188, 212, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 109, 0, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(10, 22, 40, 0.8) 0%, transparent 80%),
    var(--color-navy);
}

.gradient-mesh-light {
  background:
    radial-gradient(ellipse at 15% 85%, rgba(0, 188, 212, 0.15) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 15%, rgba(255, 109, 0, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 40%, rgba(0, 206, 209, 0.08) 0%, transparent 60%);
}

.texture-noise {
  position: relative;
}

.texture-noise::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.section-bg-animate {
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}

.dot-grid-bg {
  background-image: radial-gradient(
    circle,
    rgba(0, 188, 212, 0.15) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
}

.line-grid-bg {
  background-image:
    linear-gradient(rgba(0, 188, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 188, 212, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ============================================================
   8. FORM ENHANCEMENTS
   ============================================================ */

.input-animated {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  outline: none;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.input-animated::placeholder {
  color: rgba(255, 255, 255, 0.35);
  transition: opacity 0.2s ease;
}

.input-animated:focus {
  border-color: var(--color-turquoise);
  background: rgba(0, 188, 212, 0.05);
  box-shadow:
    0 0 0 4px rgba(0, 188, 212, 0.1),
    0 0 12px rgba(0, 188, 212, 0.15);
}

.input-animated:focus::placeholder {
  opacity: 0.5;
}

.input-animated.input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
  animation: shake 0.5s ease;
}

.input-animated.input-success {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.floating-label {
  position: relative;
  margin-bottom: 1.5rem;
}

.floating-label input,
.floating-label textarea,
.floating-label select {
  width: 100%;
  padding: 1rem 1rem 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
}

.floating-label label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  pointer-events: none;
  transition:
    top 0.2s ease,
    font-size 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label,
.floating-label textarea:focus ~ label,
.floating-label textarea:not(:placeholder-shown) ~ label {
  top: 0.5rem;
  font-size: 0.7rem;
  color: var(--color-turquoise);
  transform: translateY(0);
}

.floating-label input:focus,
.floating-label textarea:focus {
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

.search-expand {
  width: 48px;
  overflow: hidden;
  transition: width 0.4s var(--easing-out-expo);
  border-radius: var(--radius-full);
}

.search-expand:focus,
.search-expand.expanded {
  width: 240px;
}

@keyframes checkmark {
  0%   { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

.form-success-icon path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkmark 0.6s ease forwards;
  animation-delay: 0.2s;
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin360 0.7s linear infinite;
}

/* ============================================================
   9. FOOTER ENHANCEMENTS
   ============================================================ */

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s var(--easing-out-back),
    box-shadow 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  color: white;
}

.social-icon.instagram:hover {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(253, 29, 29, 0.4);
}

.social-icon.facebook:hover {
  background: #1877f2;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.4);
}

.social-icon.whatsapp:hover {
  background: #25d366;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.social-icon.youtube:hover {
  background: #ff0000;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.4);
}

#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--color-turquoise);
  color: var(--color-navy);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-sticky);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition:
    opacity 0.3s ease,
    transform 0.3s var(--easing-out-back),
    box-shadow 0.3s ease;
  box-shadow: var(--shadow-turquoise);
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 188, 212, 0.5);
}

.newsletter-input-wrap {
  display: flex;
  gap: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.newsletter-input-wrap:focus-within {
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

.newsletter-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.75rem 1.25rem;
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.newsletter-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-input-wrap button {
  background: var(--color-turquoise);
  color: var(--color-navy);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.newsletter-input-wrap button:hover {
  background: var(--color-turquoise-light);
}

/* ============================================================
   10. RESPONSIVE REFINEMENTS
   ============================================================ */

@media (max-width: 640px) {
  button,
  a,
  [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }

  .card-tilt {
    transform: none !important;
  }

  .magnetic {
    transform: none !important;
  }

  .hero-particles {
    display: none;
  }

  #back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }

  .search-expand:focus,
  .search-expand.expanded {
    width: 180px;
  }

  .section-diagonal::after {
    height: 40px;
  }

  .modal-box {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

  #toast-container {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    transform: none;
    align-items: stretch;
  }

  .toast {
    white-space: normal;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .glass-card:hover {
    transform: translateY(-2px);
  }

  .card-lift:hover {
    transform: translateY(-4px);
  }
}

@media (min-width: 1280px) {
  .glass-card:hover {
    transform: translateY(-6px);
  }

  .card-lift:hover {
    transform: translateY(-10px);
  }
}

@media print {
  #page-loader,
  #back-to-top,
  #scroll-progress,
  .hero-particles,
  .wave-divider,
  .hamburger-morph,
  .float,
  .pulse-glow {
    display: none !important;
    animation: none !important;
  }

  .glass-card {
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .gradient-text-animated,
  .gradient-text-static {
    -webkit-text-fill-color: #0A1628;
    background: none;
  }

  body {
    background: white;
    color: #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-up,
  .reveal-down,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-rotate,
  .reveal-fade {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .reveal-clip {
    clip-path: none !important;
    transition: none !important;
  }

  .float,
  .float-slow,
  .float-fast,
  .pulse-glow,
  .pulse-glow-orange,
  .gradient-text-animated,
  .heartbeat,
  .zoom-pulse,
  .flicker,
  .spin-slow,
  .badge-shine,
  .price-pulse {
    animation: none !important;
  }

  .hero-particles,
  .particle-dot {
    display: none;
  }

  .card-tilt {
    transform: none !important;
  }

  #scroll-progress {
    display: none;
  }
}

@media (prefers-contrast: high) {
  .glass-card {
    border: 2px solid white;
    background: rgba(0, 0, 0, 0.9);
  }

  .nav-link-underline::after {
    height: 3px;
  }

  .input-animated {
    border-width: 3px;
  }
}

/* ============================================================
   EXTRAS — COMPONENTES E UTILITÁRIOS
   ============================================================ */

::selection {
  background: rgba(0, 188, 212, 0.3);
  color: white;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-navy);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 188, 212, 0.4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 188, 212, 0.7);
}

:focus-visible {
  outline: 2px solid var(--color-turquoise);
  outline-offset: 3px;
  border-radius: 4px;
}

html {
  scroll-behavior: smooth;
}

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

.btn-atracou {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  outline: none;
  transition:
    transform 0.2s var(--easing-out-back),
    box-shadow 0.2s ease,
    background 0.2s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  user-select: none;
}

.btn-atracou-primary {
  background: var(--color-turquoise);
  color: var(--color-navy);
  box-shadow: 0 4px 16px rgba(0, 188, 212, 0.35);
}

.btn-atracou-primary:hover {
  background: var(--color-turquoise-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 188, 212, 0.5);
}

.btn-atracou-primary:active {
  transform: translateY(0);
  transition-duration: 0.05s;
}

.btn-atracou-orange {
  background: var(--color-orange);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 109, 0, 0.35);
}

.btn-atracou-orange:hover {
  background: var(--color-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 109, 0, 0.5);
}

.btn-atracou-outline {
  background: transparent;
  color: var(--color-turquoise);
  border: 2px solid var(--color-turquoise);
}

.btn-atracou-outline:hover {
  background: rgba(0, 188, 212, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 188, 212, 0.2);
}

.tag-atracou {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

.tag-turquoise {
  background: rgba(0, 188, 212, 0.15);
  color: var(--color-turquoise);
  border: 1px solid rgba(0, 188, 212, 0.3);
}

.tag-orange {
  background: rgba(255, 109, 0, 0.15);
  color: var(--color-orange);
  border: 1px solid rgba(255, 109, 0, 0.3);
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.counter-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(10, 22, 40, 0.95);
  color: white;
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(0, 188, 212, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: var(--z-dropdown);
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.img-overlay-wrap {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

.img-overlay-wrap .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 22, 40, 0.9) 0%,
    rgba(10, 22, 40, 0.4) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.img-overlay-wrap:hover .overlay {
  opacity: 1;
}

.img-overlay-wrap img {
  transition: transform 0.5s var(--easing-in-out-quart);
}

.img-overlay-wrap:hover img {
  transform: scale(1.06);
}

.accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.5rem;
  transition: border-color 0.3s ease;
}

.accordion-item.is-open {
  border-color: rgba(0, 188, 212, 0.3);
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  color: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.accordion-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.accordion-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s var(--easing-smooth),
    padding 0.35s ease;
}

.accordion-item.is-open .accordion-body {
  max-height: 500px;
}

.accordion-content {
  padding: 1rem 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.7;
}

.tabs-nav {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 0.25rem;
}

.tab-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: calc(var(--radius-lg) - 2px);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.tab-btn.active {
  background: var(--color-navy);
  color: var(--color-turquoise);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

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

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--color-navy-light);
  border: 1px solid rgba(0, 188, 212, 0.2);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s var(--easing-out-back);
  position: relative;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(0, 188, 212, 0.1);
}

.modal-overlay.is-open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  transform: rotate(90deg);
}

#toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: var(--color-navy-light);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.25rem;
  color: white;
  font-family: var(--font-body);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: all;
  box-shadow: var(--shadow-lg);
  animation: toastSlideIn 0.4s var(--easing-out-back) forwards;
  max-width: 380px;
  white-space: nowrap;
}

.toast.removing {
  animation: toastSlideOut 0.3s ease forwards;
}

.toast-success { border-color: rgba(34, 197, 94, 0.4); }
.toast-error   { border-color: rgba(239, 68, 68, 0.4); }
.toast-info    { border-color: rgba(0, 188, 212, 0.4); }
.toast-warning { border-color: rgba(255, 109, 0, 0.4); }

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(10px) scale(0.9); }
}

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: calc(var(--z-modal) + 10);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

#lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.3s var(--easing-out-back);
}

#lightbox.is-open img {
  transform: scale(1);
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  font-size: 1.25rem;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-trigger {
  cursor: zoom-in;
  position: relative;
}

.lightbox-trigger::after {
  content: '\2295';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: white;
  font-size: 1.25rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lightbox-trigger:hover::after {
  opacity: 1;
}

.overflow-clip { overflow: clip; }

/* ============================================================
   FIM DO CSS
   ============================================================ */

