/* ==========================================================================
   CLICK STAY - Estilos Customizados & Componentes
   Paleta: Azul Profundo / Marinho (#0A192F, #0F2A4A, #1E3A8A), 
           Azul Elétrico / Ciano (#0196FD, #00C4FF), 
           Laranja / Âmbar (#FF6B35, #F7941D), 
           Fundo Claro (#F8FAFC, #FFFFFF)
   ========================================================================== */

:root {
  --color-primary: #0A192F;
  --color-primary-light: #0F2A4A;
  --color-brand-blue: #0196FD;
  --color-brand-blue-hover: #0077D4;
  --color-brand-teal: #00D2D3;
  --color-accent-orange: #FF6B35;
  --color-accent-orange-hover: #E85923;
  --color-bg-light: #F8FAFC;
  --color-card-border: rgba(226, 232, 240, 0.8);
  
  /* Variáveis Dinâmicas do Customizador do Totem */
  --totem-accent-color: #0196FD;
  --totem-body-color: #1E293B;
  --totem-glow-color: rgba(1, 150, 253, 0.4);
}

/* Reset suave e tipografia base */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1E293B;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

/* Scrollbar customizada moderna */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Acessibilidade: foco visível */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #0196FD;
  outline-offset: 2px;
}

/* Gradientes de Destaque */
.bg-gradient-brand {
  background: linear-gradient(135deg, #0A192F 0%, #0F2A4A 50%, #014182 100%);
}

.text-gradient-primary {
  background: linear-gradient(135deg, #0196FD 0%, #00D2D3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-warm {
  background: linear-gradient(135deg, #FF6B35 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Efeito Glassmorphism */
.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-nav-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
}

.glass-card-dark {
  background: rgba(15, 42, 74, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* ==========================================================================
   MOCKUP REALISTA DO TOTEM (HTML / CSS / SVG)
   ========================================================================== */
.totem-perspective-wrapper {
  perspective: 1200px;
}

.totem-device {
  position: relative;
  width: 290px;
  height: 540px;
  background: linear-gradient(170deg, #1E293B 0%, #0F172A 60%, #020617 100%);
  border-radius: 28px;
  padding: 14px 14px 20px 14px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 35px var(--totem-glow-color);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.totem-device:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 
    0 35px 60px -15px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 45px var(--totem-glow-color);
}

/* Base física inferior do totem */
.totem-stand-neck {
  width: 60px;
  height: 35px;
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  margin: 0 auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.totem-stand-base {
  width: 170px;
  height: 18px;
  background: linear-gradient(180deg, #334155 0%, #0F172A 100%);
  border-radius: 9px;
  margin: 0 auto;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Moldura e tela do totem */
.totem-screen-frame {
  flex: 1;
  background: #000000;
  border-radius: 18px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.totem-display {
  flex: 1;
  background: linear-gradient(165deg, #0A192F 0%, #0F2A4A 100%);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Fita de scanner ótico animada */
.scanner-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--totem-accent-color), transparent);
  box-shadow: 0 0 12px var(--totem-accent-color);
  animation: scanMove 3.5s ease-in-out infinite alternate;
  opacity: 0.7;
  pointer-events: none;
}

@keyframes scanMove {
  0% { top: 15%; opacity: 0.2; }
  50% { opacity: 0.8; }
  100% { top: 85%; opacity: 0.2; }
}

/* Componentes de hardware integrados no totem */
.totem-hardware-deck {
  height: 95px;
  margin-top: 10px;
  background: #0B1120;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.totem-slot {
  height: 8px;
  background: #020617;
  border-radius: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9);
  position: relative;
}

.totem-slot-indicator {
  position: absolute;
  right: 10px;
  top: -6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

/* ==========================================================================
   MOCKUP DO DASHBOARD (HTML / CSS / SVG)
   ========================================================================== */
.dashboard-window {
  border-radius: 20px;
  background: #0A192F;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.window-header {
  background: #0F2A4A;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Animações e Transições */
.animate-float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-pulse-subtle {
  animation: pulseSubtle 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseSubtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

/* Botão Flutuante de WhatsApp */
.whatsapp-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.whatsapp-btn:hover {
  background: #20BD5A;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

.whatsapp-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #FF3B30;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  animation: pingBadge 2s infinite;
}

@keyframes pingBadge {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(0.95); opacity: 1; }
}

.whatsapp-tooltip {
  background: #0A192F;
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.whatsapp-floating:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Accordion de FAQ */
.faq-item {
  transition: all 0.3s ease;
  border: 1px solid #E2E8F0;
}
.faq-item[open] {
  border-color: #0196FD;
  box-shadow: 0 4px 18px rgba(1, 150, 253, 0.08);
}
.faq-summary {
  list-style: none;
  cursor: pointer;
}
.faq-summary::-webkit-details-marker {
  display: none;
}

/* Indicadores de Carrossel */
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background: #0196FD;
  width: 28px;
  border-radius: 10px;
}

/* Estilo para Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  background: #0F172A;
  border-left: 4px solid #10B981;
}

.toast-error {
  background: #0F172A;
  border-left: 4px solid #EF4444;
}

/* Redução de animações em acessibilidade */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .animate-float-slow,
  .animate-pulse-subtle,
  .scanner-beam,
  .whatsapp-badge {
    animation: none !important;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
