/* ==========================================================================
   Personal360 Academia - Vivid Purple & Energetic Yellow System
   Roxo Vivo & Claro: #1e0b36, #2d1354, #7c3aed, #9333ea, #a855f7
   Amarelo Vibrante: #facc15 / #ffe600
   ========================================================================== */

:root {
  --bg-deep: #1b0a33;
  --bg-surface: #260f47;
  --bg-surface-elevated: #33155e;
  --bg-glass: rgba(45, 19, 84, 0.72);
  --bg-glass-card: rgba(53, 22, 99, 0.58);
  
  --purple-vivid: #8b5cf6;
  --purple-primary: #7c3aed;
  --purple-bright: #a855f7;
  --purple-light: #c084fc;
  --purple-border: rgba(168, 85, 247, 0.28);
  
  --gold-accent: #facc15;
  --gold-bright: #ffe600;
  
  --border-subtle: rgba(192, 132, 252, 0.18);
  --border-hover: rgba(250, 204, 21, 0.45);
  
  --text-main: #ffffff;
  --text-muted: #e9d5ff;
  --text-subtle: #c4b5fd;
}

/* Base */
body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(124, 58, 237, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(147, 51, 234, 0.2) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografia */
h1, h2, h3, h4, .font-heading {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #1b0a33;
}
::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #facc15;
}

/* Glassmorphism Vivo */
.glass-panel {
  background: var(--bg-glass-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 36px -10px rgba(18, 5, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(62, 26, 115, 0.7);
}

.glass-panel-interactive:hover {
  border-color: var(--gold-accent);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.35), 0 0 0 1px rgba(250, 204, 21, 0.3);
}

/* Navbar */
.glass-nav {
  background: rgba(30, 11, 58, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

/* ==========================================================================
   Brand Logo Badge (Fiel à Imagem Oficial: Fundo Amarelo, PERSONAL Roxo, 360° Branco)
   ========================================================================== */
.brand-logo-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #ffcc00;
  background: linear-gradient(180deg, #ffd400 0%, #ffc400 100%);
  padding: 0.35rem 0.9rem 0.4rem;
  border-radius: 0.85rem;
  box-shadow: 0 4px 16px rgba(255, 204, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  user-select: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, filter 0.22s ease;
  line-height: 1;
}

.brand-logo-badge:hover {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 204, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.35);
  filter: brightness(1.02);
}

.brand-logo-badge .brand-text-personal {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: 900;
  color: #490772; /* Roxo profundo da logo */
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  display: block;
  transform: skewX(-4deg);
}

.brand-logo-badge .brand-text-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: 900;
  color: #ffffff; /* Branco maciço da logo */
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  line-height: 0.88;
  margin-top: 0.1rem;
  display: block;
  text-shadow: 0 1px 2px rgba(73, 7, 114, 0.25);
  transform: skewX(-4deg);
}

/* Variante expandida para o Footer / Preloader */
.brand-logo-badge-lg {
  padding: 0.5rem 1.25rem 0.55rem;
  border-radius: 1rem;
}
.brand-logo-badge-lg .brand-text-personal {
  font-size: 1.15rem;
}
.brand-logo-badge-lg .brand-text-number {
  font-size: 2.15rem;
}

/* Inputs de Vidro */
.glass-input {
  background: rgba(38, 15, 71, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #ffffff;
  transition: all 0.2s ease;
}
.glass-input:focus {
  outline: none;
  border-color: var(--gold-accent);
  background: rgba(48, 19, 92, 0.9);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
}

/* Hero Glass Overlay com Roxo Vivo */
.hero-glass-overlay {
  background: linear-gradient(
    180deg,
    rgba(30, 11, 56, 0.6) 0%,
    rgba(42, 16, 79, 0.75) 55%,
    rgba(27, 10, 51, 0.98) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Cursor Personalizado */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background-color: var(--gold-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, width 0.2s ease, height 0.2s ease;
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(250, 204, 21, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

body.cursor-hover .custom-cursor-dot {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
}

body.cursor-hover .custom-cursor-ring {
  width: 40px;
  height: 40px;
  border-color: var(--gold-bright);
  background-color: rgba(250, 204, 21, 0.08);
}

@media (pointer: coarse) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}

/* Barra de Progresso Superior */
#loading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #facc15 0%, #a855f7 50%, #ffe600 100%);
  z-index: 100000;
  transition: width 0.2s ease-out, opacity 0.3s ease;
  pointer-events: none;
}

/* Preloader Rápido */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #1a0933;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Slides do Hero */
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.4s ease-in-out, transform 9s ease-out;
}
.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Botões */
.btn-primary {
  background-color: var(--gold-accent);
  color: #1a0833;
  font-weight: 800;
  letter-spacing: 0.025em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover {
  background-color: var(--gold-bright);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px -4px rgba(250, 204, 21, 0.4);
}

.btn-secondary {
  background: rgba(88, 28, 135, 0.4);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #ffffff;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: rgba(109, 40, 217, 0.6);
  border-color: rgba(250, 204, 21, 0.5);
  transform: translateY(-1.5px);
}

/* Moldura do Vídeo Retrato */
.video-reel-container {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(124, 58, 237, 0.3);
  background: #000;
}

/* Modal Lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 7, 38, 0.95);
  backdrop-filter: blur(12px);
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Lucide Icon helper class */
.lucide {
  stroke-width: 2px;
  vertical-align: middle;
}

/* Hero Slider Dots: Garantir 100% bolinhas redondas e pequenas */
.hero-slide-dot {
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  min-height: 10px !important;
  max-width: 10px !important;
  max-height: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  display: inline-block !important;
  outline: none !important;
  cursor: pointer;
  line-height: 0 !important;
  font-size: 0 !important;
  box-sizing: border-box !important;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease !important;
}

.hero-slide-dot.active {
  background-color: #facc15 !important;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.45) !important;
  opacity: 1 !important;
}

/* Touch-friendly min heights apenas em controles de formulário e botões primários/secundários */
.btn-primary, .btn-secondary, input, select, textarea {
  min-height: 44px;
}
