/**
 * ELISIS Estética Automotiva 2.0
 * Reusable Components: Buttons, Cards, Badges, Modals, Sliders, Accordions & Toasts
 */

/* ==========================================================================
   1. BOTÕES (Capsule Premium Style)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  min-height: 48px; /* Touch target acessível */
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-fast) var(--ease-soft);
  flex-shrink: 0;
}

.btn-primary {
  background: var(--grad-brand-glow);
  color: #05080c;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(32, 181, 232, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4ce0fb 0%, #20b5e8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(32, 181, 232, 0.45);
  color: #030508;
}
.btn-primary:hover svg {
  transform: translateX(4px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-pure);
  transform: translateY(-2px);
}

.btn-outline-brand {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(32, 181, 232, 0.4);
}
.btn-outline-brand:hover {
  background: rgba(32, 181, 232, 0.1);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #0a1f10;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover {
  background: #2ee672;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
  color: #051409;
}

.btn-ghost {
  padding: 10px 18px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.btn-ghost:hover {
  color: var(--primary);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8125rem;
  min-height: 38px;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.0625rem;
}

/* ==========================================================================
   2. CARDS COM GLASSMORPHISM SUTIL & LUXO
   ========================================================================== */
.card-glass {
  background: linear-gradient(150deg, rgba(16, 22, 32, 0.76) 0%, rgba(8, 11, 17, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg, 24px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-soft),
              box-shadow var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 217, 245, 0.4), rgba(255, 255, 255, 0.25), transparent);
  pointer-events: none;
}

.card-glass:hover {
  border-color: rgba(32, 181, 232, 0.38);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 28px rgba(32, 181, 232, 0.14);
  transform: translateY(-3px);
}

/* ==========================================================================
   3. BADGES & ÍCONES
   ========================================================================== */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.badge-pill.active {
  background: var(--primary-glow-subtle);
  border-color: rgba(32, 181, 232, 0.35);
  color: var(--primary);
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(32, 181, 232, 0.08);
  border: 1px solid rgba(32, 181, 232, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: all var(--dur-base) var(--ease-soft);
}
.icon-box svg {
  width: 24px;
  height: 24px;
}
.card-glass:hover .icon-box {
  background: rgba(32, 181, 232, 0.16);
  border-color: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

/* ==========================================================================
   4. MODAL DE SERVIÇO (Ultra Premium)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 7, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(24px, 5vw, 44px);
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px var(--primary-glow-subtle);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--dur-base) var(--ease-out);
}
.modal-overlay.is-open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease-soft);
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-pure);
  border-color: rgba(255, 255, 255, 0.3);
}
.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
  padding-right: 40px;
}
.modal-header .icon-box {
  width: 60px;
  height: 60px;
}
.modal-header .icon-box svg {
  width: 28px;
  height: 28px;
}
.modal-title-group h3 {
  font-size: 1.625rem;
  margin-bottom: 6px;
}
.modal-price-tag {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--primary);
  font-weight: 700;
}

.modal-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.modal-section-title {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.modal-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.modal-includes li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-primary);
}
.modal-includes li svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   5. SLIDER ANTES E DEPOIS (Interactive Precision Handle)
   ========================================================================== */
.ba-container {
  max-width: 1040px;
  margin: 0 auto;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 200, 232, 0.38);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.8), 0 0 28px rgba(0, 200, 232, 0.16);
  user-select: none;
  touch-action: pan-y;
  background: #070C0F;
}

.ba-pane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ba-pane picture {
  width: 100%;
  height: 100%;
  display: block;
}
.ba-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.ba-after {
  z-index: 2;
  clip-path: inset(0 0 0 50%);
  will-change: clip-path;
}

.ba-label {
  position: absolute;
  top: 20px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 4;
  pointer-events: none;
}
.ba-label.before {
  left: 20px;
  background: rgba(10, 13, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}
.ba-label.after {
  right: 20px;
  background: rgba(32, 181, 232, 0.2);
  border: 1px solid rgba(32, 181, 232, 0.5);
  color: #ffffff;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff;
  z-index: 5;
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.8), 0 0 8px var(--primary);
  pointer-events: none;
}
.ba-handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #090b0f;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
  color: #ffffff;
}
.ba-handle-grip svg {
  width: 18px;
  height: 18px;
}

.ba-dots-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.ba-dots-nav button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  transition: all var(--dur-fast) var(--ease-soft);
  padding: 0;
}
.ba-dots-nav button.is-active {
  background: var(--primary);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--primary);
}

/* ==========================================================================
   6. CARROSSEL DE GALERIA MULTIMÍDIA INFINITO (PADRÃO TOP CAR AUTO CENTER)
   ========================================================================== */
.gallery-carousel-wrapper {
  position: relative;
  width: 100%;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.gallery-carousel-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 8px 0 16px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  border-radius: var(--radius-md);
}

.gallery-carousel-viewport:focus-visible {
  box-shadow: 0 0 0 2px var(--color-accent);
}

.gallery-carousel-viewport.is-dragging {
  cursor: grabbing;
}

.gallery-carousel-track {
  display: flex;
  position: relative;
  width: 100%;
  gap: 20px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.gallery-carousel-track.is-animating {
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-carousel-track.is-snap-animating {
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-carousel-track.is-normalizing .gallery-item {
  transition: none !important;
}

.gallery-carousel-track.is-centered {
  justify-content: center;
}

.gallery-item {
  flex: 0 0 calc((100% - 40px) / 3);
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111B20;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  opacity: 0.72;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.32s ease;
}

.gallery-item.is-visible {
  opacity: 0.94;
}

.gallery-item.is-featured {
  opacity: 1;
  border-color: rgba(0, 200, 232, 0.44);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 16px rgba(0, 200, 232, 0.2);
  transform: translateY(-2px);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.gallery-media-box {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  background: #090E12;
  flex-shrink: 0;
}

.gallery-media-box picture,
.gallery-media-box img {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-media-box img {
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.gallery-media-box::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 9, 12, 0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Card Information Footer */
.gallery-card-info {
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, #131E24 0%, #0D161A 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 auto;
  min-height: 84px;
  justify-content: flex-start;
}

.gallery-card-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.gallery-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #F7FAFC;
  margin: 0;
}

.gallery-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
  margin: 2px 0 0;
}

/* Hover Enlargement Indicator */
.gallery-icon-view {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 200, 232, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #05090C;
  box-shadow: 0 0 22px rgba(0, 200, 232, 0.65);
  opacity: 0;
  z-index: 2;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.gallery-icon-view svg {
  width: 22px;
  height: 22px;
}

@media (hover: hover) {
  .gallery-item:hover {
    opacity: 1;
    border-color: var(--color-accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.78), 0 0 24px rgba(0, 200, 232, 0.35);
    transform: translateY(-4px);
  }

  .gallery-item:hover .gallery-media-box img {
    transform: scale(1.04);
  }

  .gallery-item:hover .gallery-icon-view {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Video Indicator Badges */
.gallery-video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(5, 9, 12, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 200, 232, 0.75);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.gallery-video-badge svg {
  width: 12px;
  height: 12px;
  fill: var(--color-accent);
}

.gallery-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background: rgba(0, 200, 232, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #05090C;
  box-shadow: 0 0 24px rgba(0, 200, 232, 0.65), 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 2;
  transition: transform var(--motion-fast), background var(--motion-fast), box-shadow var(--motion-fast);
  pointer-events: none;
}

.gallery-center-play svg {
  width: 22px;
  height: 22px;
  transform: translateX(1.5px);
}

/* Arrows */
.gallery-nav-btn {
  position: absolute;
  top: 141px;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(14, 22, 27, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.72);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.gallery-nav-btn svg {
  width: 22px;
  height: 22px;
}

.gallery-prev-btn {
  left: 12px;
}

.gallery-next-btn {
  right: 12px;
}

.gallery-nav-btn:hover:not(:disabled) {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #05090C;
  box-shadow: 0 0 20px rgba(0, 200, 232, 0.65);
  transform: translateY(-50%) scale(1.06);
}

.gallery-nav-btn:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
  background: var(--color-accent);
  color: #05090C;
}

.gallery-nav-btn:disabled,
.gallery-nav-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Footer Pagination & Progress Dots */
.gallery-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.gallery-pagination-indicator {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  color: #F7FAFC;
  letter-spacing: 0.04em;
  background: #111B20;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  min-width: 68px;
  text-align: center;
}

.gallery-dots-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 100%;
}

.gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 5px;
  background: #23343D;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-dot:hover {
  background: #3B5361;
}

.gallery-dot.active {
  width: 24px;
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(0, 200, 232, 0.6);
}

/* ==========================================================================
   7. MULTIMEDIA LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 8, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active,
.lightbox-modal.is-open {
  display: flex;
}

.lightbox-content-box {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.lightbox-media-container {
  position: relative;
  max-width: 92vw;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image,
.lightbox-video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 200, 232, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 200, 232, 0.25);
  object-fit: contain;
  background: #000000;
}

.lightbox-video {
  outline: none;
}

.lightbox-info {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 820px;
  color: #F7FAFC;
  gap: 16px;
}

.lightbox-text-group {
  flex: 1;
  text-align: left;
}

.lightbox-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

.lightbox-desc {
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.lightbox-counter {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-accent);
  background: rgba(0, 200, 232, 0.12);
  border: 1px solid rgba(0, 200, 232, 0.35);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.lightbox-close-btn,
.lightbox-nav-btn {
  background: rgba(20, 32, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  z-index: 10000;
  font-size: 1.3rem;
}

.lightbox-close-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #05090C;
  box-shadow: 0 0 16px rgba(0, 200, 232, 0.5);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  z-index: 10000;
  font-size: 1.8rem;
}

.lightbox-nav-btn.prev {
  left: 20px;
}

.lightbox-nav-btn.next {
  right: 20px;
}

.lightbox-nav-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #05090C;
  box-shadow: 0 0 18px rgba(0, 200, 232, 0.5);
}

/* ==========================================================================
   7. ACCORDION DE FAQ
   ========================================================================== */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-soft), background var(--dur-base);
}
.faq-card.is-open {
  border-color: rgba(32, 181, 232, 0.4);
  background: var(--bg-surface-elevated);
}

.faq-trigger {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-pure);
  transition: color var(--dur-fast);
}
.faq-trigger:hover {
  color: var(--primary);
}
.faq-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--primary);
  margin-right: 12px;
  font-weight: 500;
}

.faq-icon-cross {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-fast);
}
.faq-icon-cross::before, .faq-icon-cross::after {
  content: '';
  position: absolute;
  background: var(--text-primary);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-icon-cross::before {
  width: 12px;
  height: 1.5px;
}
.faq-icon-cross::after {
  width: 1.5px;
  height: 12px;
}

.faq-card.is-open .faq-icon-cross {
  transform: rotate(45deg);
  border-color: var(--primary);
}
.faq-card.is-open .faq-icon-cross::before,
.faq-card.is-open .faq-icon-cross::after {
  background: var(--primary);
}

.faq-answer-pane {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}
.faq-answer-inner {
  padding: 0 28px 24px 28px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ==========================================================================
   8. TOAST NOTIFICAÇÃO
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  background: rgba(15, 19, 26, 0.95);
  border: 1px solid rgba(32, 181, 232, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  max-width: 380px;
  transform: translateX(120%);
  transition: transform var(--dur-base) var(--ease-out);
}
.toast.is-visible {
  transform: translateX(0);
}
.toast svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   9. BOTÃO FLUTUANTE WHATSAPP (wa-float)
   ========================================================================== */
.wa-float {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-float .wa-tooltip {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.84375rem;
  color: #030508;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm, 10px);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  position: relative;
}
.wa-float .wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #ffffff;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
}
.wa-float:hover .wa-tooltip,
.wa-float:focus-within .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}
.wa-btn {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #1fb855, #128c42);
  box-shadow: 0 8px 30px rgba(18, 140, 66, 0.45), 0 0 20px rgba(37, 211, 102, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.wa-btn svg {
  width: 32px;
  height: 32px;
  color: #ffffff;
  position: relative;
  z-index: 2;
}
.wa-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(31, 184, 85, 0.55);
  animation: waPulse 2.6s ease-out infinite;
  pointer-events: none;
}
.wa-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(56, 217, 245, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.wa-float:hover .wa-btn {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 40px rgba(18, 140, 66, 0.55), 0 0 34px rgba(32, 181, 232, 0.5);
}
.wa-float:hover .wa-btn::after {
  opacity: 1;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (max-width: 640px) {
  .wa-float {
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
  }
  .wa-btn {
    width: 54px;
    height: 54px;
  }
  .wa-btn svg {
    width: 28px;
    height: 28px;
  }
  .wa-float .wa-tooltip {
    display: none;
  }
}

