/* --- VARIÁVEIS & RESET --- */
:root {
  --bg-deep: #050505;
  --bg-card: rgba(20, 20, 23, 0.7);
  --accent-primary: #8b5cf6; /* Vivid Purple */
  --accent-secondary: #ec4899; /* Pink Glow */
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --glass-border: rgba(255, 255, 255, 0.08);
  --nav-height: 70px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; margin: 0; }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(236, 72, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}
.pulse-anim { animation: pulse-glow 2s infinite; }

/* --- BACKGROUND FX --- */
.ambient-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vh;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.main-wrapper { padding-bottom: 100px; }

/* --- HEADER --- */
header { text-align: center; padding: 40px 20px 20px; }

.profile-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

header h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.tagline { color: var(--text-muted); font-size: 1rem; margin-top: 8px; }

/* --- LAYOUT GRID --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.grid-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-top: 30px;
  align-items: start;
}

/* --- SEÇÕES VISUAIS --- */
.section-block { margin-bottom: 40px; }
.section-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title i { color: var(--accent-secondary); }

/* --- CAROUSEL --- */
.carousel-container { position: relative; margin-bottom: 15px; }

.carousel {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
  background: #000;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide img, .slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Controls */
.controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0; transition: opacity 0.3s;
}
.carousel:hover .controls { opacity: 1; }

.nav-btn {
  background: rgba(255,255,255,0.1);
  border: none; color: white;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}

.indicators { display: flex; gap: 6px; }
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active { background: var(--accent-primary); transform: scale(1.3); }

.preview-trigger {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s, background 0.2s;
}
.carousel:hover .preview-trigger { opacity: 1; }

/* --- BUTTON VER MAIS --- */
.see-more-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 12px;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.3s;
}
.see-more-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--accent-primary);
}

/* --- INFO & CARDS --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.details h2 { font-size: 1.5rem; margin-bottom: 10px; color: #fff; }
.details p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; }

.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.feature-list li { display: flex; align-items: flex-start; gap: 15px; }
.icon-box {
  background: rgba(255,255,255,0.05);
  min-width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-secondary);
}
.feature-list strong { display: block; color: #fff; font-size: 1rem; }
.feature-list span { font-size: 0.85rem; color: #777; }

/* --- PURCHASE CARD --- */
.purchase-card {
  margin-top: 25px;
  text-align: center;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, rgba(20, 20, 23, 0.7) 100%);
}
.price-tag { display: flex; justify-content: center; line-height: 1; margin-bottom: 10px; }
.currency { font-size: 1.5rem; margin-top: 5px; color: var(--text-muted); }
.value { font-size: 4rem; font-weight: 800; color: #fff; letter-spacing: -2px; }
.cents { font-size: 1.5rem; margin-top: 5px; font-weight: 600; color: var(--text-muted); }
.secure-text { font-size: 0.8rem; color: #4ade80; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 6px; }

.cta-button {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4); }
.payment-methods { margin-top: 15px; font-size: 1.5rem; color: #555; display: flex; justify-content: center; gap: 15px; }

/* --- STICKY MOBILE BAR --- */
.mobile-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--glass-border);
  padding: 15px 20px;
  display: none; align-items: center; justify-content: space-between;
  z-index: 100;
  padding-bottom: max(15px, env(safe-area-inset-bottom));
}
.cta-button-mobile {
  background: #fff; color: #000;
  border: none; padding: 12px 24px;
  border-radius: 8px; font-weight: 800; font-size: 1rem;
  text-transform: uppercase; flex: 1; max-width: 200px;
}
.price-info .lbl { display: block; font-size: 0.75rem; color: #aaa; }
.price-info .val { font-size: 1.2rem; font-weight: 700; color: var(--accent-primary); }

/* --- MODALS (Overlay) --- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 200;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay[aria-hidden="false"] { opacity: 1; pointer-events: auto; }

.modal-content {
  position: relative;
  width: 90%; max-height: 90vh;
  border-radius: 12px;
}
.lightbox-layout { max-width: 1000px; height: 80vh; }
.gallery-layout { 
  max-width: 600px; 
  background: #111; 
  border: 1px solid var(--glass-border);
  padding: 20px;
  display: flex; flex-direction: column;
}

.close-modal {
  position: absolute; top: -40px; right: 0;
  background: none; border: none; color: #fff;
  font-size: 2rem; cursor: pointer;
}
.gallery-layout .close-modal { top: 10px; right: 10px; z-index: 50; }

.media-container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.media-container img, .media-container video { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* --- LOCKED GRID (10x10) --- */
.gallery-header { margin-bottom: 20px; text-align: center; }
.gallery-header h3 { color: var(--accent-primary); margin-bottom: 5px; }
.gallery-header p { color: var(--text-muted); font-size: 0.9rem; }

.locked-grid-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 400px; /* Altura fixa para scroll ou crop */
}

.grid-10x10 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
  opacity: 0.5;
}

.blur-item {
  aspect-ratio: 1/1;
  background-color: #222;
  background-size: cover;
  background-position: center;
  filter: blur(4px); /* Blur para não carregar dados pesados */
  position: relative;
}

.paywall-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.9));
  z-index: 10;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  backdrop-filter: blur(2px);
}

.lock-icon {
  font-size: 3rem; color: var(--accent-secondary); margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(236,72,153,0.5));
}
.paywall-overlay h3 { font-size: 1.5rem; color: #fff; margin-bottom: 5px; }
.paywall-overlay p { color: #ccc; margin-bottom: 20px; font-size: 0.9rem; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .grid-layout { grid-template-columns: 1fr; gap: 30px; }
  .carousel { aspect-ratio: 4/4; }
  .desktop-only { display: none; }
  .mobile-sticky-bar { display: flex; }
  
  .controls { opacity: 1; padding: 10px; background: none; pointer-events: none; }
  .nav-btn { pointer-events: auto; background: rgba(0,0,0,0.6); }
  .indicators { display: none; }
  .preview-trigger { opacity: 1; top: 10px; right: 10px; }
  
  /* Ajuste grid mobile */
  .grid-10x10 { grid-template-columns: repeat(5, 1fr); } 
}

/* --- CHATBOT WIDGET STYLES --- */
.chat-widget-wrapper {
  position: fixed;
  bottom: 90px; /* Acima da barra sticky mobile */
  right: 20px;
  z-index: 150;
  font-family: 'Outfit', sans-serif;
}

/* Botão Flutuante */
.chat-floating-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  position: relative;
  transition: transform 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.chat-floating-btn:hover { transform: scale(1.1); }

.notification-dot {
  position: absolute; top: 0; right: 0;
  width: 14px; height: 14px;
  background: var(--accent-secondary);
  border: 2px solid #fff;
  border-radius: 50%;
  display: none;
}
.notification-dot.pulse-active { display: block; animation: pulse-glow 1.5s infinite; }

/* Janela do Chat */
.chat-window {
  position: absolute;
  bottom: 80px; right: 0;
  width: 350px; height: 500px;
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 1; transform: scale(1);
}

.chat-window[aria-hidden="true"] {
  opacity: 0; transform: scale(0.9) translateY(20px);
  pointer-events: none;
}

/* Header */
.chat-header {
  padding: 15px;
  background: rgba(139, 92, 246, 0.15);
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; gap: 12px;
}
.chat-avatar { position: relative; width: 40px; height: 40px; }
.avatar-img {
  width: 100%; height: 100%; border-radius: 50%;
  background-size: cover; background-position: center;
  border: 2px solid var(--accent-primary);
}
.status-dot {
  position: absolute; bottom: 0; right: 0;
  width: 10px; height: 10px; background: #4ade80;
  border-radius: 50%; border: 2px solid #000;
}
.chat-info h4 { margin: 0; font-size: 0.95rem; color: #fff; }
.status-text { font-size: 0.75rem; color: #4ade80; }
.close-chat { margin-left: auto; background: none; border: none; color: #ccc; cursor: pointer; font-size: 1.2rem; }

/* Corpo (Mensagens) */
.chat-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: #333 transparent;
}

/* Balões */
.message { display: flex; width: 100%; margin-bottom: 5px; animation: fadeInUp 0.3s ease; }
.message.bot { justify-content: flex-start; }
.message.user { justify-content: flex-end; }

.message .bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
}

.message.bot .bubble {
  background: rgba(255,255,255,0.1);
  color: #eee;
  border-bottom-left-radius: 2px;
}

.message.user .bubble {
  background: var(--accent-primary);
  color: #fff;
  border-bottom-right-radius: 2px;
}

/* Opções (Árvore de Decisão) */
.options-block .bubble {
  background: transparent !important;
  padding: 0 !important;
  display: flex; flex-direction: column; gap: 8px; width: 100%;
}
.tree-btn {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--accent-primary);
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.tree-btn:hover { background: var(--accent-primary); }
.tree-btn:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(1); }

/* Typing Indicator */
.typing-indicator {
  padding: 10px; display: flex; gap: 4px;
  background: rgba(255,255,255,0.05);
  width: fit-content; border-radius: 12px;
  margin-bottom: 10px;
}
.typing-indicator span {
  width: 6px; height: 6px; background: #888; border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* Foto no Chat */
.photo-bubble img {
  max-width: 200px; border-radius: 8px; cursor: pointer;
  border: 2px solid var(--accent-secondary);
}

/* CTA Checkout no Chat */
.chat-cta-wrapper {
  text-align: center; margin-top: 10px;
  animation: fadeInUp 0.5s ease;
}
.chat-main-btn {
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  color: #fff; text-decoration: none;
  padding: 12px 20px; border-radius: 20px;
  font-weight: bold; font-size: 0.9rem;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.5);
}
.cta-sub { font-size: 0.7rem; color: #aaa; margin-top: 5px; }

/* Mobile */
@media (max-width: 480px) {
  .chat-window { width: 90vw; right: 5vw; bottom: 85px; height: 60vh; }
  .chat-widget-wrapper { bottom: 85px; right: 15px; }
}
/* --- CHECKOUT STYLES --- */
.checkout-card {
  width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto;
  padding: 0;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.checkout-header {
  background: rgba(139, 92, 246, 0.1);
  padding: 20px 25px;
  border-bottom: 1px solid var(--glass-border);
}
.checkout-header h3 { font-size: 1.2rem; color: #fff; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; }
.checkout-header p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.checkout-form { padding: 25px; }
.form-section { margin-bottom: 25px; }
.form-section h4 { 
  color: var(--accent-secondary); 
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 15px; border-bottom: 1px solid var(--glass-border); padding-bottom: 5px;
}

/* Inputs */
.input-styled {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 15px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s;
  outline: none; font-size: 0.95rem;
}
.input-styled:focus {
  border-color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.05);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}
.input-styled::placeholder { color: rgba(255, 255, 255, 0.3); }

/* Grid de Inputs */
.input-group { margin-bottom: 15px; }
.row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }

/* Loading do CEP */
.loading-wrapper { position: relative; }
.loading-icon {
  position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
  color: var(--accent-primary); display: none;
}
.loading-wrapper.is-loading .loading-icon { display: block; }

/* Footer do Checkout */
.checkout-footer { margin-top: 10px; }
.total-display { 
  display: flex; justify-content: space-between; align-items: center; 
  margin-bottom: 20px; color: #fff; font-size: 1.1rem;
}
.full-width { width: 100%; justify-content: center; }
.secure-badge { 
  text-align: center; color: #4ade80; font-size: 0.75rem; margin-top: 15px; 
  opacity: 0.8; 
}

/* --- PIX MODAL STYLES --- */
.pix-card { max-width: 400px; text-align: center; border-top: 4px solid #4ade80; }
.pix-header { padding: 30px 20px 10px; }
.success-icon { font-size: 3rem; color: #4ade80; margin-bottom: 15px; }

.qr-container {
  background: #fff;
  padding: 15px; border-radius: 12px;
  width: 200px; height: 200px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.qr-container img { width: 100%; height: 100%; object-fit: contain; }
.qr-placeholder { font-size: 3rem; color: #ccc; }

.copy-box {
  display: flex; background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border); border-radius: 8px;
  overflow: hidden; margin-top: 5px;
}
.copy-box input {
  background: transparent; border: none; color: #ccc;
  padding: 10px; width: 100%; font-family: monospace; font-size: 0.85rem;
  outline: none;
}
.copy-box button {
  background: var(--accent-primary); border: none; color: #fff;
  padding: 0 15px; cursor: pointer; transition: 0.2s;
}
.copy-box button:hover { background: var(--accent-secondary); }

.pix-timer { font-size: 0.8rem; color: #facc15; margin-top: 20px; }

/* Mobile Adjustments */
@media (max-width: 600px) {
  .row-group { grid-template-columns: 1fr; gap: 10px; }
  .checkout-card { height: 100vh; max-height: 100vh; border-radius: 0; }
}
