/* ============================================
   DESIGN PREMIUM MODERNO - Inspirado em /app/
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* ========== RESET E ESTRUTURA GLOBAL (MOBILE-FIRST) ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

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

:root {
  /* Cores principais - Tema roxo */
  --primary: #c77dff;
  --primary-dark: #a855f7;
  --primary-light: #e9d5ff;
  --secondary: #f3e8ff;
  --accent: #d8b4fe;
  --purple: #c77dff;
  --purple-dark: #9333ea;
  --purple-light: #e9d5ff;
  --orange: #ffb84d;
  
  /* Background com gradiente animado roxo escuro */
  --bg: #1a0f2e;
  --bg-alt: #2d1b4e;
  --bg-gradient: linear-gradient(135deg, #1a0f2e 0%, #2d1b4e 50%, #1a0f2e 100%);
  --bg-gradient-animated: linear-gradient(135deg, #1a0f2e 0%, #2d1b4e 50%, #1a0f2e 100%);
  
  /* Glass Effect - Dark theme */
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 107, 181, 0.2);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.15);
  
  /* Text */
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-light: rgba(255, 255, 255, 0.5);
  --text-muted: rgba(255, 255, 255, 0.4);
  
  /* Border */
  --border: #e5e5e5;
  --border-light: rgba(199, 125, 255, 0.2);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(199, 125, 255, 0.4);
  --shadow-glow-strong: 0 0 50px rgba(199, 125, 255, 0.6);
  
  /* Gradients */
  --gradient-1: linear-gradient(135deg, #c77dff 0%, #a855f7 100%);
  --gradient-2: linear-gradient(135deg, #d8b4fe 0%, #c77dff 100%);
  --gradient-3: linear-gradient(135deg, #e9d5ff 0%, #c77dff 50%, #a855f7 100%);
  
  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-gradient);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  overflow: visible;
  min-height: 0;
  /* Evita conteúdo ficar sob o header fixo */
  padding-top: 72px;
}

#landingPage:has(#mainHeader.header--tour-promo-visible) main {
  padding-top: 126px;
}

body.guided-tour-active #landingPage main {
  padding-top: 72px;
}

@media (min-width: 768px) {
  #landingPage:has(#mainHeader.header--tour-promo-visible) main {
    padding-top: 142px;
  }
}

/* Faixa roxa — convite ao tour (abaixo da barra do header) */
.tour-promo-bar {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(233, 213, 255, 0.35);
  background: linear-gradient(90deg, #5b21b6 0%, #6d28d9 22%, #7c3aed 50%, #9333ea 78%, #5b21b6 100%);
  background-size: 200% 100%;
  animation: tourPromoShimmer 8s ease-in-out infinite;
  box-shadow: 0 6px 24px rgba(91, 33, 182, 0.4);
}

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

.tour-promo-bar[hidden] {
  display: none !important;
}

.tour-promo-bar-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  padding: 11px 18px 12px;
  margin: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.98);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
  line-height: 1.35;
}

.tour-promo-bar-line {
  opacity: 0.95;
}

.tour-promo-bar-cta {
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tour-promo-bar-btn:hover,
.tour-promo-bar-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

@media (max-width: 767px) {
  .tour-promo-bar-btn {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding: 9px 8px 10px 12px;
    font-size: clamp(11px, 3.1vw, 13px);
    line-height: 1.25;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    text-align: left;
  }

  .tour-promo-bar-btn::-webkit-scrollbar {
    display: none;
  }

  .tour-promo-bar-line,
  .tour-promo-bar-cta {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

.tour-promo-bar-dismiss {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 4px 8px 4px 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  font-family: system-ui, sans-serif;
  transition: color 0.15s ease, background 0.15s ease;
}

.tour-promo-bar-dismiss:hover,
.tour-promo-bar-dismiss:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  outline: none;
}

body.guided-tour-active .tour-promo-bar {
  display: none !important;
}

/* Seções do tour: margem extra para o anel/brilho não colar no topo da tela */
#landingPage main > section[data-tour-anchor] {
  scroll-margin-top: 112px;
}

@media (min-width: 768px) {
  #landingPage main > section[data-tour-anchor] {
    scroll-margin-top: 124px;
  }
}

main section {
  overflow: visible;
}

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

/* Animated Background Orbs - Purple glow (contained, no overflow) */
body::before {
  content: '';
  position: fixed;
  top: -100px;
  left: min(-100px, 10vw);
  width: min(400px, 80vw);
  height: min(400px, 80vw);
  background: radial-gradient(circle, rgba(199, 125, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: float 30s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

body::after {
  content: '';
  position: fixed;
  bottom: -100px;
  right: min(-100px, 10vw);
  width: min(350px, 70vw);
  height: min(350px, 70vw);
  background: radial-gradient(circle, rgba(255, 107, 181, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: float 30s ease-in-out infinite 15s;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* Cosmic Background with Glowing Hearts and Network */
.floating-hearts-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  height: -webkit-fill-available;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  background: transparent;
}

/* Glowing Hearts - Fixed positions with glow effect (Optimized) */
.floating-heart {
  position: absolute;
  font-size: 28px;
  color: #ff6bb5;
  opacity: 0.85;
  filter: drop-shadow(0 0 15px rgba(255, 107, 181, 0.7));
  animation: heartPulse 4s ease-in-out infinite;
  z-index: 1;
  will-change: transform, opacity;
}

.floating-heart-move {
  animation: heartPulse 4s ease-in-out infinite, heartFloat 20s ease-in-out infinite;
}

/* Network Lines and Dots */
.network-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  height: -webkit-fill-available;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.network-line {
  position: absolute;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 107, 181, 0.5) 50%, 
    transparent 100%);
  height: 1px;
  transform-origin: left center;
  box-shadow: 0 0 3px rgba(255, 107, 181, 0.6);
}

.network-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #ff6bb5;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 107, 181, 0.8);
  animation: dotPulse 3s ease-in-out infinite;
  will-change: transform, opacity;
}

.network-dot-float {
  animation: dotPulse 3s ease-in-out infinite, dotFloat 15s ease-in-out infinite;
}

.network-line-float {
  animation: lineFloat 18s ease-in-out infinite;
  will-change: transform, opacity;
}

/* Heart Positions - Fixed glowing hearts with movement */
.floating-heart:nth-child(1) {
  top: 15%;
  left: 12%;
  font-size: 40px;
  animation-delay: 0s;
}

.floating-heart:nth-child(2) {
  top: 18%;
  left: 15%;
  font-size: 35px;
  animation-delay: 0.5s;
}

.floating-heart:nth-child(3) {
  top: 20%;
  left: 10%;
  font-size: 30px;
  animation-delay: 1s;
}

.floating-heart:nth-child(4) {
  top: 25%;
  right: 20%;
  font-size: 38px;
  animation-delay: 0.3s;
}

.floating-heart:nth-child(5) {
  top: 28%;
  right: 18%;
  font-size: 32px;
  animation-delay: 0.8s;
}

.floating-heart:nth-child(6) {
  top: 30%;
  right: 22%;
  font-size: 36px;
  animation-delay: 1.3s;
}

.floating-heart:nth-child(7) {
  bottom: 25%;
  left: 15%;
  font-size: 34px;
  animation-delay: 0.2s;
}

.floating-heart:nth-child(8) {
  bottom: 28%;
  left: 12%;
  font-size: 28px;
  animation-delay: 0.7s;
}

.floating-heart:nth-child(9) {
  top: 50%;
  left: 50%;
  font-size: 24px;
  animation-delay: 0.4s;
  transform: translate(-50%, -50%);
}

.floating-heart:nth-child(10) {
  top: 45%;
  left: 48%;
  font-size: 22px;
  animation-delay: 0.9s;
  transform: translate(-50%, -50%);
}

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

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

@keyframes heartFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -10px) rotate(5deg);
  }
  50% {
    transform: translate(-8px, 8px) rotate(-5deg);
  }
  75% {
    transform: translate(12px, 5px) rotate(3deg);
  }
}

@keyframes dotFloat {
  0%, 100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(8px, -8px);
  }
  66% {
    transform: translate(-6px, 6px);
  }
}

@keyframes lineFloat {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.6;
  }
  50% {
    transform: translate(5px, -5px);
    opacity: 0.8;
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Additional floating particles */
.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  height: -webkit-fill-available;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 107, 181, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 107, 181, 0.8);
  animation: particleFloat 25s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.3;
  }
  25% {
    transform: translate(20px, -30px);
    opacity: 0.6;
  }
  50% {
    transform: translate(-15px, 20px);
    opacity: 0.4;
  }
  75% {
    transform: translate(25px, 15px);
    opacity: 0.7;
  }
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* ========== SISTEMA DE PÁGINAS ========== */
.page {
  display: none;
  position: relative;
  z-index: 2;
  background: transparent;
  overflow-x: hidden;
  max-width: 100%;
}

.page.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========== HEADER (MOBILE-FIRST) ========== */
.header {
  background: var(--glass);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999 !important;
  padding: 12px 0 0;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  transition: var(--transition);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Botão hambúrguer - apenas mobile */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  flex-shrink: 0;
}
.menu-toggle:hover {
  background: var(--glass-hover);
  border-color: var(--primary);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}
.header.open .menu-toggle {
  background: var(--glass-hover);
  border-color: var(--primary);
}
.header.open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header.open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
.header.open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav links wrapper - mobile: menu colapsado; quando aberto = overlay abaixo do header */
.nav-links {
  display: none;
  flex-direction: column;
  width: 100%;
  background: var(--bg-alt);
  border-top: 1px solid var(--glass-border);
  padding: 12px 16px 20px;
  gap: 4px;
  box-shadow: var(--shadow-lg);
  order: 99;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.header.open .nav-links {
  display: flex;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99998;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-links .nav-link {
  display: block;
  padding: 16px 20px;
  font-size: 1.0625rem;
  font-weight: 500;
  border-radius: var(--radius-md);
}
.nav-links .nav-link:hover {
  background: var(--glass-hover);
}

.header .nav-link,
.header .user-profile-name {
  color: var(--text-primary);
}

.header .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 12px;
  gap: 10px;
  min-height: 0;
}
/* Mobile: ordem e alinhamento do header */
.header .logo {
  flex-shrink: 0;
}
.header .nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header .nav {
  margin-left: auto;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  order: 2;
}

/* Menu hambúrguer dentro do nav - aparece por último (à direita) */
.header .nav .menu-toggle {
  order: 999;
  margin-left: 4px;
  flex-shrink: 0;
}

/* Quando não logado, botões e menu hambúrguer lado a lado */
#authButtons {
  order: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

#userMenu {
  order: 1;
  flex-shrink: 0;
}

/* No mobile, quando não logado, tudo lado a lado - SEMPRE NA MESMA LINHA */
@media (max-width: 767px) {
  .header {
    min-height: 68px;
    padding: 12px 0 0;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }
  
  .header .container {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-bottom: 12px !important;
    align-items: center !important;
    min-height: 48px;
  }
  
  .header .logo {
    flex-shrink: 1;
    min-width: 0;
    max-width: 48%;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: scale(1.08);
    transform-origin: left center;
  }
  
  .logo-img {
    height: clamp(36px, 9vw, 44px) !important;
    width: auto;
    flex-shrink: 0;
  }
  
  .logo-text {
    font-size: clamp(0.95rem, 3.9vw, 1.2rem) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .header .nav {
    gap: 4px !important;
    flex-wrap: nowrap !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0;
  }
  
  #authButtons {
    gap: 4px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    flex-shrink: 0;
  }
  
  /* Esconde botões quando usuário está logado - verifica se userMenu está visível */
  #authButtons[style*="display: none"],
  #authButtons[style*="visibility: hidden"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  /* Quando userMenu está visível, esconde authButtons */
  .header .nav #userMenu[style*="display: flex"] ~ #authButtons,
  .header .nav #userMenu[style*="display: block"] ~ #authButtons {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  #authButtons .btn-small {
    padding: 8px 12px !important;
    font-size: clamp(11px, 2.7vw, 13px) !important;
    white-space: nowrap;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
  }
  
  .header .nav .menu-toggle {
    margin-left: 4px !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .menu-toggle span {
    width: 16px !important;
    height: 2px !important;
  }
  
  .user-profile-btn {
    padding: 4px 8px !important;
    gap: 4px !important;
    min-height: 32px !important;
    height: 32px !important;
  }
  
  .user-profile-avatar {
    width: 24px !important;
    height: 24px !important;
    font-size: 10px !important;
  }
  
  .user-profile-arrow {
    width: 12px !important;
    height: 12px !important;
  }
}

/* Ajustes específicos para telas muito pequenas (iPhone SE, etc) */
@media (max-width: 375px) {
  .header .container {
    gap: 6px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  .logo-text {
    font-size: clamp(0.85rem, 3.3vw, 1.02rem) !important;
  }
  
  .logo-img {
    height: clamp(32px, 8vw, 40px) !important;
  }
  
  #authButtons .btn-small {
    padding: 5px 8px !important;
    font-size: clamp(9px, 2.2vw, 11px) !important;
  }
  
  .header .nav .menu-toggle {
    width: 30px !important;
    height: 30px !important;
  }
}

/* Ajustes para telas médias (Galaxy, etc) */
@media (min-width: 376px) and (max-width: 480px) {
  .header .container {
    gap: 8px !important;
  }
  
  .logo-text {
    font-size: clamp(1rem, 3.5vw, 1.25rem) !important;
  }
  
  #authButtons .btn-small {
    padding: 6px 12px !important;
    font-size: clamp(11px, 2.8vw, 13px) !important;
  }
}

.logo {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.logo-img {
  height: 48px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  background: transparent;
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(258deg) brightness(104%) contrast(101%) drop-shadow(0 0 10px rgba(199, 125, 255, 0.3));
}

.logo-text {
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 900;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  position: relative;
  margin-left: auto;
  margin-right: 0;
  min-width: 0;
}

#authButtons,
#userMenu {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ========== MENU DE PERFIL ========== */
.user-profile-menu {
  position: relative;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 12px;
  transition: var(--transition);
}

/* Ajusta o gap quando não tem nome */
.user-profile-btn:not(:has(.user-profile-name:not([style*="display: none"]))) {
  gap: 8px;
}

.user-profile-btn:hover {
  background: var(--glass-hover);
}

.user-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.user-profile-name {
  display: none; /* Esconde o nome completo, mostra apenas iniciais */
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.user-profile-menu.active .user-profile-arrow {
  transform: rotate(180deg);
}

.user-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 10000;
  overflow: hidden;
}

.user-profile-menu.active .user-profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-profile-header {
  padding: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--gradient-1);
  color: white;
}

.user-profile-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-profile-info {
  flex: 1;
  min-width: 0;
}

.user-profile-info h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-info p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.user-profile-options {
  padding: 8px 0;
}

.user-profile-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  background: none;
  border: none;
  text-align: left;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.user-profile-option:hover {
  background: var(--bg);
  color: var(--primary);
}

.user-profile-option svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.user-profile-option:hover svg {
  color: var(--primary);
}

.user-profile-logout {
  color: #ef4444;
}

.user-profile-logout:hover {
  background: #fee2e2;
  color: #dc2626;
}

.user-profile-logout svg {
  color: #ef4444;
}

.user-profile-logout:hover svg {
  color: #dc2626;
}

/* Menu e perfil visíveis em todas as resoluções */
.user-profile-name {
  display: none; /* Mostra apenas iniciais */
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-dropdown {
  width: min(260px, calc(100vw - 32px));
  right: 0;
}

/* Links: no mobile só aparecem quando menu aberto (.nav-links) */
.nav-link {
  color: #666666;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
}
.nav-links .nav-link {
  color: var(--text-primary);
}

.nav-links button.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

@media (min-width: 768px) {
  .nav-links button.nav-link {
    width: auto;
    text-align: center;
  }
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
  min-height: 40px;
  flex-shrink: 0;
}

/* ========== HERO SECTION (MOBILE-FIRST) ========== */
.hero {
  padding: 24px 16px 60px;
  padding-top: calc(28px + env(safe-area-inset-top, 0px));
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 2;
  margin-top: 0;
  border-top: none;
  min-height: 0;
}

#landingPage:has(#mainHeader.header--tour-promo-visible) .hero {
  padding-top: 28px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -30%;
  width: min(220px, 55vw);
  height: min(220px, 55vw);
  background: radial-gradient(circle, rgba(199, 125, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: min(180px, 45vw);
  height: min(180px, 45vw);
  background: radial-gradient(circle, rgba(199, 125, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  animation: float 20s ease-in-out infinite 10s;
  pointer-events: none;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 100%;
  width: 100%;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 8vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 24px;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.btn-hero {
  background: var(--gradient-1);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: var(--radius-full);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.btn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-hero:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-strong);
}

.btn-hero:hover::before {
  opacity: 1;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

.hero-visual::before,
.hero-visual::after {
  display: none !important;
  content: none !important;
}

.preview-container {
  position: relative;
  perspective: 1000px;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

.preview-container::before,
.preview-container::after {
  display: none !important;
  content: none !important;
}

/* ============================================
   CORREÇÃO DEFINITIVA: Remove TODOS os fundos pretos
   ============================================ */

/* Remove fundos pretos dos containers antigos (não interfere no iphone-frame) */
.preview-container,
.preview-container * {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

/* Remove pseudo-elementos dos containers antigos */
.preview-container::before,
.preview-container::after {
  display: none !important;
  content: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* EXCEÇÃO: iphone-frame e seus elementos podem ter background e sombra */
/* EXCEÇÃO: preview-content pode ter fundo roxo do app */

/* ============================================
   IPHONE FLOAT - CELULAR REAL FLUTUANTE
   BORDA GROSSA + VIDRO INTERNO + BOTÕES
   ============================================ */

.iphone-float {
  display: flex;
  justify-content: center;
  padding: 40px 0;
  background: transparent;
  width: 100%;
  max-width: 100%;
}

.iphone-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 420 / 890;
  min-height: 0;
  background: linear-gradient(180deg, #2b2b2b, #050505);
  border-radius: clamp(28px, 8vw, 68px);
  padding: clamp(8px, 2.5vw, 16px);
  transform: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 120, 196, 0.2);
  animation: none;
}

.iphone-frame:hover {
  transform: scale(1.02);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(255, 120, 196, 0.25);
}

/* VIDRO INTERNO */
.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: radial-gradient(
    circle at top,
    rgba(255, 255, 255, 0.08),
    rgba(0, 0, 0, 0.25)
  );
  position: relative;
}

/* NOTCH */
.iphone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 30px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 20;
  pointer-events: none;
}

/* BOTÕES */
.side-btn {
  position: absolute;
  width: 4px;
  background: linear-gradient(180deg, #444, #000);
  border-radius: 3px;
  pointer-events: none;
}

.side-btn.power {
  right: -4px;
  top: 170px;
  height: 90px;
}

.side-btn.vol-up {
  left: -4px;
  top: 160px;
  height: 55px;
}

.side-btn.vol-down {
  left: -4px;
  top: 225px;
  height: 55px;
}

/* Conteúdo interno da tela - sidebar sempre visível, conteúdo pode rolar se necessário */
.iphone-screen .preview-content {
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: row;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #1a0f2e 0%, #2d1b4e 50%, #1a0f2e 100%);
  overflow: hidden;
  min-width: 0;
}

.preview-content {
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: row;
  position: relative;
  z-index: 2;
  overflow: hidden;
  min-width: 0;
}

/* ========== PREVIEW INTERATIVO COMPLETO ========== */
.interactive-preview {
  position: relative;
}

/* Background animado */
.preview-bg-animated {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.bg-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
  top: -50px;
  left: -50px;
  animation-delay: 0s;
}

.orb-2 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent);
  bottom: -30px;
  right: -30px;
  animation-delay: 2s;
}

.orb-3 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.floating-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-30px) translateX(20px);
    opacity: 1;
  }
}

.floating-heart-bg {
  position: absolute;
  font-size: 16px;
  opacity: 0.3;
  animation: heartFloatBg 5s ease-in-out infinite;
}

@keyframes heartFloatBg {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(10deg) scale(1.2);
    opacity: 0.6;
  }
}

/* Background com linhas de rede */
.preview-network-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.preview-network-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0.5;
  animation: networkPulse 3s ease-in-out infinite;
}

.preview-heart {
  position: absolute;
  font-size: 10px;
  opacity: 0.3;
  animation: heartFloat 4s ease-in-out infinite;
}

@keyframes networkPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

@keyframes heartFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-8px) rotate(5deg); opacity: 0.5; }
}

/* Sidebar interativa - sempre visível em qualquer viewport */
.preview-sidebar-interactive {
  width: 65px;
  min-width: 48px;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border-right: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 10px;
  z-index: 3;
  position: relative;
  flex-shrink: 0;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar-brand-pulse {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

.sidebar-avatar-glow {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  animation: avatarPulse 2s ease-in-out infinite;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-avatar-glow:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

@keyframes avatarPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  }
}

.sidebar-menu-interactive {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  width: 100%;
}

.sidebar-item-interactive {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.sidebar-item-interactive::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-item-interactive.active {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.sidebar-item-interactive.active::before {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

.sidebar-item-interactive:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(3px);
}

.sidebar-item-interactive:active {
  transform: scale(0.95);
}

.sidebar-icon-interactive {
  font-size: 20px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.sidebar-item-interactive:hover .sidebar-icon-interactive {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.sidebar-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

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

/* Conteúdo principal interativo - pode encolher para caber ao lado da sidebar */
.preview-content-interactive {
  flex: 1;
  height: 100%;
  min-width: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-x: auto;
  overflow-y: auto;
  z-index: 2;
  position: relative;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
}

/* Logo no topo */
.preview-top-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 10px;
  padding: 8px 0;
  animation: logoFadeIn 0.8s ease-out 0.3s both;
}

.preview-top-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(35%) sepia(98%) saturate(2500%) hue-rotate(250deg) brightness(1.1) contrast(1.15);
}

.preview-top-logo-text {
  color: #A855F7;
  font-size: 26px;
  font-weight: 800;
  text-shadow: 0 2px 15px rgba(168, 85, 247, 0.5);
  letter-spacing: 0.5px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* Header de criação interativo */
.creation-header-interactive {
  margin-bottom: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: headerSlideIn 0.6s ease-out;
}

@keyframes headerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.creation-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.badge-sparkle {
  font-size: 16px;
  animation: sparkleSpin 2s ease-in-out infinite;
}

@keyframes sparkleSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.3); }
}

.badge-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar-animated {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill-animated {
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
  background-size: 200% 100%;
  border-radius: 3px;
  animation: progressFlowAnim 2s ease-in-out infinite, progressFillAnim 8s ease-out forwards;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  width: 0%;
  position: relative;
}

.progress-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: progressShine 2s ease-in-out infinite;
}

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

@keyframes progressFillAnim {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes progressShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.progress-percent {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
  min-width: 35px;
  text-align: right;
}



/* Logo e nome */
.preview-logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  animation: logoFadeIn 0.8s ease-out 0.5s both;
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.preview-logo-container {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.preview-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(139, 92, 246, 0.6)) 
          brightness(0) saturate(100%) invert(35%) sepia(98%) saturate(2500%) hue-rotate(250deg) brightness(1.1) contrast(1.15);
}

.preview-brand-name {
  color: #A855F7;
  font-size: 24px;
  font-weight: 800;
  text-shadow: 0 2px 15px rgba(168, 85, 247, 0.7);
  letter-spacing: 1px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* QR Code */
.preview-qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(15px);
  animation: qrFadeIn 0.8s ease-out 1s both;
}

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

.preview-qr-wrapper {
  width: 160px;
  height: 160px;
  background: white;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.preview-qr-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
  object-fit: contain;
}

.preview-qr-logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  z-index: 10;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.preview-qr-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(35%) sepia(98%) saturate(2500%) hue-rotate(250deg) brightness(1.1) contrast(1.15);
}

.preview-qr-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-top: 6px;
}

.preview-qr-unique {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  margin-top: 4px;
  animation: uniquePulse 2s ease-in-out infinite;
}

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

/* Domínio */
.preview-domain-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(15px);
  animation: domainFadeIn 0.8s ease-out 1.5s both;
}

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

.preview-domain-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-domain-value {
  color: white;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 4px;
}

.preview-domain-unique {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  animation: uniquePulse 2s ease-in-out infinite;
}

/* Highlights chamativos */
.preview-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
  animation: highlightsFadeIn 0.8s ease-out 2s both;
}

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

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.highlight-item:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.highlight-icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  animation: iconFloat 3s ease-in-out infinite;
}

.highlight-item:nth-child(1) .highlight-icon {
  animation-delay: 0s;
}

.highlight-item:nth-child(2) .highlight-icon {
  animation-delay: 1s;
}

.highlight-item:nth-child(3) .highlight-icon {
  animation-delay: 2s;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(5deg);
  }
}

.highlight-text {
  color: white;
  font-size: 13px;
  font-weight: 700;
  flex: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* CTA final interativo */
.cta-final-interactive {
  margin-top: auto;
  padding: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  position: relative;
  z-index: 3;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  animation: ctaSlideUp 0.8s ease-out 2s both;
}

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

.cta-final-interactive::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-final-interactive:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.cta-final-interactive:hover::before {
  opacity: 1;
}

.cta-final-interactive:active {
  transform: translateY(-2px) scale(1);
}

.cta-arrow-bounce {
  font-size: 28px;
  margin-bottom: 10px;
  animation: arrowBounceAnim 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

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

.cta-main-text {
  color: white;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}


/* Efeitos de brilho */
.glow-effect-1 {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
  animation: glowRotate1 10s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.glow-effect-2 {
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent);
  animation: glowRotate2 12s linear infinite reverse;
  pointer-events: none;
  z-index: 1;
}

@keyframes glowRotate1 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes glowRotate2 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.preview-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: auto;
}

.preview-section-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.preview-section-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.preview-icon {
  font-size: 30px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.preview-label {
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.2px;
}

.preview-stats {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 20px;
}

.preview-stat {
  flex: 1;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.preview-stat-icon {
  font-size: 18px;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.preview-stat-value {
  color: white;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.preview-stat-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.2px;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.preview-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: glowRotate 8s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes glowRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Preview interno: em telas estreitas sidebar e emojis sempre visíveis */
.iphone-notch {
  width: min(120px, 38vw);
  height: 24px;
}

.preview-sidebar-interactive {
  width: 55px;
  min-width: 48px;
  padding: 10px 4px;
  flex-shrink: 0;
}

.sidebar-avatar-glow {
  width: 38px;
  height: 38px;
  font-size: 18px;
}

.sidebar-icon-interactive {
  font-size: 18px;
  min-width: 1.2em;
  text-align: center;
}

.sidebar-item-interactive {
  padding: 10px;
  min-height: 44px;
  box-sizing: border-box;
}

.preview-content-interactive {
  padding: 12px 10px;
  min-width: 0;
}

.creation-header-interactive {
  padding: 10px 12px;
}

.badge-text {
  font-size: clamp(0.65rem, 2vw, 0.75rem);
}

.preview-qr-wrapper {
  width: min(90px, 28vw);
  height: min(90px, 28vw);
}

.preview-qr-label {
  font-size: clamp(0.6rem, 2vw, 0.7rem);
}

.preview-qr-unique {
  font-size: clamp(0.5rem, 1.5vw, 0.55rem);
}

.preview-domain-label {
  font-size: clamp(0.55rem, 1.8vw, 0.65rem);
}

.preview-domain-value {
  font-size: clamp(0.7rem, 2.2vw, 0.8rem);
}

.preview-domain-unique {
  font-size: clamp(0.5rem, 1.5vw, 0.55rem);
}

.highlight-item {
  padding: 10px 12px;
}

.highlight-icon {
  font-size: 18px;
}

.highlight-text {
  font-size: clamp(0.65rem, 2vw, 0.75rem);
}

/* Preview interativo: texto nunca sai/voa; responsivo em qualquer largura (sem alterar desktop) */
.preview-content-interactive .preview-top-logo-text,
.preview-content-interactive .badge-text,
.preview-content-interactive .preview-qr-label,
.preview-content-interactive .preview-qr-unique,
.preview-content-interactive .preview-domain-label,
.preview-content-interactive .preview-domain-value,
.preview-content-interactive .preview-domain-unique,
.preview-content-interactive .highlight-text,
.preview-content-interactive .progress-percent {
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  min-width: 0;
}

.preview-content-interactive {
  box-sizing: border-box;
}

.preview-content-interactive .preview-top-logo {
  flex-wrap: wrap;
  justify-content: center;
  min-width: 0;
}

.preview-content-interactive .preview-domain-value {
  word-break: break-all;
}

/* Abaixo de 480px: preview interativo mais compacto (só mobile, não altera desktop) */
@media (max-width: 479px) {
  .preview-sidebar-interactive {
    width: 48px;
    min-width: 44px;
    padding: 8px 4px;
  }

  .sidebar-avatar-glow {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .sidebar-icon-interactive {
    font-size: 16px;
  }

  .sidebar-item-interactive {
    padding: 8px;
    min-height: 40px;
  }

  .preview-content-interactive {
    padding: 8px 6px;
    gap: 6px;
  }

  .preview-top-logo-img {
    width: 36px;
    height: 36px;
  }

  .preview-top-logo-text {
    font-size: clamp(0.75rem, 4vw, 1rem);
  }

  .creation-header-interactive {
    padding: 8px 10px;
  }

  .badge-text {
    font-size: 0.6rem;
  }

  .preview-qr-wrapper {
    width: min(72px, 24vw);
    height: min(72px, 24vw);
  }

  .preview-domain-value {
    font-size: 0.6rem;
  }

  .highlight-item {
    padding: 6px 8px;
  }

  .highlight-text {
    font-size: 0.6rem;
  }
}

/* ========== SEÇÕES (MOBILE-FIRST) ========== */
.section-how,
.section-features,
.section-pricing {
  padding: 48px 16px;
  position: relative;
  z-index: 1;
  background: transparent;
}

.section-how {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 60px;
  margin-top: 0;
  position: relative;
}

.section-how::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  box-shadow: 0 0 10px rgba(255, 107, 181, 0.5);
}

.section-features {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0;
}

.section-pricing {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0;
}

/* ========== SEÇÃO DE PRÉVIA ========== */
.section-preview {
  padding: 60px 16px;
  position: relative;
  z-index: 1;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0;
  overflow: visible;
}
.section-preview .container {
  overflow: visible;
}

.preview-header {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.preview-header .section-title {
  white-space: normal;
  margin-bottom: 16px;
  text-align: center;
  width: 100%;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  word-wrap: break-word;
}

.preview-header .section-subtitle {
  margin-bottom: 0;
  margin-top: 0;
  text-align: center;
  width: 100%;
  font-size: clamp(0.9rem, 2.2vw, 1.25rem);
}

.preview-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
}

.preview-device-frame {
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

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

.device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

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

.device-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
}

.device-dots .dot:nth-child(1) {
  background: #ff5f56;
}

.device-dots .dot:nth-child(2) {
  background: #ffbd2e;
}

.device-dots .dot:nth-child(3) {
  background: #27c93f;
}

.device-url {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.preview-content-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  min-height: 400px;
  aspect-ratio: 9 / 16;
  width: 100%;
}

.preview-content-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.preview-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0f2e 0%, #2d1b4e 100%);
  z-index: 5;
  transition: opacity 0.5s ease;
}

.preview-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner-preview {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(199, 125, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.preview-loading p {
  color: var(--text-secondary);
  font-size: 16px;
}

.preview-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  pointer-events: none;
}

.preview-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gradient-1);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow);
  font-size: 14px;
  font-weight: 600;
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

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

.badge-icon {
  font-size: 16px;
}

.preview-features {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.preview-feature-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 120px;
  align-items: flex-start;
  cursor: pointer;
}

.feature-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.preview-feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-1);
  transform: scaleY(0);
  transition: var(--transition);
}

.preview-feature-item:hover {
  transform: translateX(8px);
  background: var(--glass-hover);
  border-color: var(--primary);
}

.preview-feature-item:hover::before {
  transform: scaleY(1);
}

.preview-feature-item.active {
  transform: translateX(8px);
  background: var(--glass-hover);
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.22);
}

.preview-feature-item.active::before {
  transform: scaleY(1);
}

.feature-icon-small {
  font-size: 32px;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  margin-top: 0;
  align-self: flex-start;
}

.feature-content h3,
.preview-feature-item .feature-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-primary);
  line-height: 1.3;
  font-family: inherit;
  min-height: 26px;
  display: block;
}

.feature-content p,
.preview-feature-item .feature-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0;
  font-family: inherit;
  display: block;
  flex: 1;
}

.card-rotatable {
  position: relative;
  transition: all 0.3s ease;
}

.card-rotatable .feature-content h3,
.preview-feature-item.card-rotatable .feature-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-primary);
  line-height: 1.3;
  font-family: inherit;
}

.card-rotatable .feature-content p,
.preview-feature-item.card-rotatable .feature-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0;
  font-family: inherit;
}

.card-rotatable .card-rotate-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  z-index: 10;
  opacity: 0.6;
  padding: 0;
  margin: 0;
}

.card-rotatable:hover .card-rotate-btn {
  opacity: 1;
  background: var(--glass-hover);
  border-color: var(--primary);
}

.card-rotate-btn:hover {
  transform: rotate(90deg);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

/* Destaque extra — card Quiz na prévia da landing */
.preview-feature-item.preview-feature-item--quiz {
  border: 2px solid rgba(199, 125, 255, 0.65);
  padding: 30px 28px 28px 26px;
  min-height: 168px;
  background: linear-gradient(
    135deg,
    rgba(199, 125, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.08) 42%,
    rgba(168, 85, 247, 0.14) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 14px 48px rgba(139, 92, 246, 0.32),
    0 0 56px rgba(199, 125, 255, 0.22);
}

.preview-feature-item.preview-feature-item--quiz::before {
  width: 5px;
  background: linear-gradient(180deg, #e9d5ff 0%, var(--primary) 50%, #a855f7 100%);
  transform: scaleY(1);
  opacity: 1;
}

.preview-feature-item.preview-feature-item--quiz .feature-icon-small {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  font-size: 36px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.14),
    0 0 32px rgba(199, 125, 255, 0.6);
  transform: scale(1.08);
}

.preview-feature-item.preview-feature-item--quiz .feature-content h3 {
  background: linear-gradient(90deg, #fff 0%, #e9d5ff 55%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 22px;
}

.preview-feature-item.preview-feature-item--quiz .feature-content p {
  font-size: 16px;
  line-height: 1.65;
}

.preview-feature-item.preview-feature-item--quiz:hover {
  border-color: rgba(233, 213, 255, 0.75);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 16px 48px rgba(139, 92, 246, 0.35),
    0 0 56px rgba(199, 125, 255, 0.28);
}

@supports not (background-clip: text) {
  .preview-feature-item.preview-feature-item--quiz .feature-content h3 {
    background: none;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
  }
}

.preview-bottom-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.preview-bottom-features .preview-feature-item {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.preview-bottom-features .preview-feature-item h3 {
  margin-bottom: 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.preview-bottom-features .preview-feature-item p {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0;
}

.preview-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
}

.preview-cta-text {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 30px;
}

.preview-cta .btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 600;
}

.preview-cta .btn-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.preview-cta .btn-hero:hover .btn-icon {
  transform: translateX(4px);
}

/* Mobile: prévia inteira visível, proporção mantida */
.section-preview .preview-content-frame {
  min-height: 320px;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 100%;
}
.section-preview .preview-device-frame {
  padding: 12px;
  width: 100%;
}
.section-preview .preview-wrapper {
  align-items: start;
}

.preview-features {
  gap: 20px;
}

.preview-feature-item {
  padding: 20px;
  flex-direction: column;
  text-align: center;
}

.preview-cta {
  padding: 32px 16px;
  margin-top: 40px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  animation: fadeInUp 0.6s ease-out;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 60px;
}

/* ========== STEPS ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 40px;
  margin-top: 60px;
  width: 100%;
}

.step-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity var(--transition);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary);
}

.step-card:hover::before {
  opacity: 0.05;
}

.step-number,
.step-title,
.step-description {
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.step-card:hover .step-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow-strong);
}

.step-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.step-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== FEATURES ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background: var(--glass);
  backdrop-filter: blur(8px);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-1);
  transform: scaleY(0);
  transition: transform var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  background: var(--glass-hover);
}

.feature-card:hover::before {
  transform: scaleY(1);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(199, 125, 255, 0.4));
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 6px 20px rgba(199, 125, 255, 0.6));
}

.feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== PRICING ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: var(--glass);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity var(--transition);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary);
}

.pricing-card:hover::before {
  opacity: 0.05;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
  overflow: visible;
}

.pricing-card.featured::before {
  opacity: 0.08;
}

.pricing-header,
.pricing-price,
.pricing-features,
.btn-pricing {
  position: relative;
  z-index: 1;
}

.badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-1);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  z-index: 10;
}

.pricing-header {
  text-align: center;
  margin-bottom: 30px;
}

.pricing-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pricing-period {
  color: var(--text-secondary);
  font-size: 14px;
}

.pricing-price {
  text-align: center;
  margin-bottom: 40px;
}

.price {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(199, 125, 255, 0.4));
}

.period {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Promo visual Dia dos Namorados (somente front — precificação real inalterada no backend) */
.section-pricing--valentine-promo {
  position: relative;
}

.section-pricing--valentine-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  max-width: 100%;
  margin: 0 auto;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(244, 114, 182, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(251, 113, 133, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.section-pricing--valentine-promo .container {
  position: relative;
  z-index: 1;
}

.pricing-promo-headline {
  text-align: center;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-weight: 600;
  color: #fda4af;
  margin: 8px auto 28px;
  padding: 10px 16px;
  border-radius: 999px;
  max-width: 520px;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.18), rgba(244, 114, 182, 0.12));
  border: 1px solid rgba(251, 182, 206, 0.45);
  box-shadow: 0 0 24px rgba(251, 113, 133, 0.15);
}

.pricing-promo-headline-icon {
  margin-right: 6px;
  filter: drop-shadow(0 0 6px rgba(251, 113, 133, 0.7));
}

.section-pricing--valentine-promo .pricing-card--promo {
  border-color: rgba(251, 182, 206, 0.35);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(251, 113, 133, 0.12), 0 0 28px rgba(244, 114, 182, 0.12);
}

.section-pricing--valentine-promo .pricing-card.featured.pricing-card--promo {
  border-color: rgba(251, 113, 133, 0.55);
  box-shadow: var(--shadow-glow), 0 0 36px rgba(251, 113, 133, 0.18);
}

.pricing-price--promo {
  margin-bottom: 36px;
}

.valentine-price-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.valentine-price-was {
  font-size: 1.12rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.valentine-price-hero-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.valentine-price-hero-block .valentine-price-was {
  font-size: 1.28rem;
}

.valentine-price-mainline {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.period--valentine-inline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.52);
  white-space: nowrap;
  line-height: 1;
}

.valentine-price-now {
  font-size: clamp(2rem, 5.2vw, 2.65rem);
  font-weight: 800;
  color: #fecdd3;
  text-shadow:
    0 0 12px rgba(251, 113, 133, 0.85),
    0 0 28px rgba(244, 114, 182, 0.45);
  letter-spacing: -0.02em;
  animation: valentine-price-glow 2.8s ease-in-out infinite;
}

.valentine-price-hero-block .valentine-price-now {
  font-size: clamp(2.35rem, 6.2vw, 3.1rem);
  line-height: 1;
}

.valentine-price-row--compact .valentine-price-now {
  font-size: 1.05rem;
  animation: none;
  text-shadow: 0 0 10px rgba(251, 113, 133, 0.5);
}

.valentine-price-row--compact .valentine-price-was {
  font-size: 0.9rem;
}

@keyframes valentine-price-glow {
  0%,
  100% {
    text-shadow:
      0 0 12px rgba(251, 113, 133, 0.75),
      0 0 26px rgba(244, 114, 182, 0.4);
    filter: brightness(1);
  }
  50% {
    text-shadow:
      0 0 18px rgba(253, 164, 175, 0.95),
      0 0 36px rgba(251, 113, 133, 0.55);
    filter: brightness(1.06);
  }
}

.plan-option-price--promo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.plan-option-price-suffix {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.plan-option:has(input[type="radio"]:checked) .valentine-price-was,
.plan-option:has(input[type="radio"]:checked) .plan-option-price-suffix {
  color: var(--text-secondary);
}

.plan-option:has(input[type="radio"]:checked) .valentine-price-now {
  color: #fecdd3;
}

.confirmation-plan-price .valentine-price-row {
  margin-top: 4px;
}

.confirmation-plan-price .valentine-price-now {
  font-size: 1.35rem;
}

.confirmation-plan-price .valentine-price-was {
  font-size: 1.05rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.pricing-features li.unavailable {
  color: var(--text-light);
  text-decoration: line-through;
}

.btn-pricing {
  width: 100%;
  background: var(--gradient-1);
  color: white;
  border: none;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.btn-pricing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-pricing:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}

.btn-pricing:hover::before {
  opacity: 1;
}

.btn-pricing:active {
  transform: translateY(0) scale(0.98);
}

.btn-featured {
  background: var(--gradient-2);
}

/* ========== PAGAMENTO ========== */
#paymentPage {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#paymentPage.active {
  display: flex;
}

.payment-container {
  background: var(--glass-strong);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease-out;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: auto;
  scrollbar-color: rgba(0, 0, 0, 0.4) transparent;
}

.payment-container::-webkit-scrollbar {
  width: 10px;
}

.payment-container::-webkit-scrollbar-track {
  background: transparent;
}

.payment-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 5px;
}

.payment-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

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

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  z-index: 10001;
  pointer-events: auto;
}

.close-btn:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.payment-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.plan-summary {
  background: var(--bg);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.plan-summary-payment-inner {
  width: 100%;
}

.plan-summary-plan-label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.plan-summary-plan-hint {
  margin-top: 0;
  margin-bottom: 12px;
}

.plan-selector--in-summary {
  margin-bottom: 0;
}

.plan-confirmation-compare-group {
  margin-bottom: 14px;
}

.plan-confirmation-compare-open-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass);
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  transition: var(--transition);
}

.plan-confirmation-compare-open-btn:hover {
  border-color: rgba(168, 85, 247, 0.45);
  background: var(--glass-strong);
  color: var(--primary);
}

/* Folha de comparação de planos (acima do modal Confirmar Plano) */
.plan-compare-sheet {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.plan-compare-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.plan-compare-sheet-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(760px, 100%);
  max-height: min(88vh, 88dvh);
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: linear-gradient(165deg, rgba(42, 22, 68, 0.97) 0%, rgba(14, 8, 26, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 64px rgba(0, 0, 0, 0.55);
  animation: planCompareSheetIn 0.22s ease-out;
}

@keyframes planCompareSheetIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.plan-compare-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.plan-compare-sheet-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.plan-compare-sheet-title {
  margin: 0 44px 8px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-compare-sheet-subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.plan-compare-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
}

.plan-compare-sheet-body .payment-plan-compare {
  font-size: 14px;
}

.plan-compare-sheet-body .payment-plan-compare-row .ppc-feature-col {
  font-size: 13px;
}

.plan-summary-payment-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.plan-summary-payment-text {
  flex: 1;
  min-width: 0;
}

.plan-summary-link-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--accent, #a855f7);
  cursor: pointer;
  text-decoration: underline;
  text-align: left;
  font-weight: 500;
}

.plan-summary-link-btn:hover {
  opacity: 0.9;
}

.payment-plan-details-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-plan-details-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 14px;
  line-height: 1.45;
}

.payment-plan-compare {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.25);
  background: linear-gradient(165deg, rgba(40, 20, 60, 0.55) 0%, rgba(20, 12, 35, 0.75) 100%);
  box-shadow: 0 0 24px rgba(120, 60, 180, 0.12);
}

.payment-plan-compare-header {
  display: grid;
  grid-template-columns: minmax(120px, 1.35fr) 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.payment-plan-compare-header .ppc-feature-col {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-plan-compare-header .ppc-plan-col:first-of-type {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.ppc-plan-col {
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.ppc-plan-col.is-current-plan {
  background: rgba(168, 85, 247, 0.12);
}

.ppc-feature-col {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.ppc-plan-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.ppc-plan-price {
  font-size: 12px;
  color: var(--text-secondary);
}

.payment-plan-compare-header .ppc-plan-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ppc-plan-price-note {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0;
  font-weight: 500;
}

.payment-plan-compare-header .ppc-plan-price .valentine-price-row {
  justify-content: center;
  gap: 8px;
}

.payment-plan-compare-header .ppc-plan-price .valentine-price-was {
  font-size: 12px;
}

.payment-plan-compare-header .ppc-plan-price .valentine-price-now {
  font-size: 13px;
  font-weight: 800;
  color: #fecdd3;
}

.payment-plan-compare-body {
  max-height: min(420px, 55vh);
  overflow-y: auto;
}

.payment-plan-compare-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.35fr) 1fr 1fr;
  gap: 0;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.payment-plan-compare-row:last-child {
  border-bottom: none;
}

.payment-plan-compare-row .ppc-feature-col {
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
}

.payment-plan-compare-row .ppc-plan-col {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 44px;
  justify-content: center;
}

.ppc-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  text-align: center;
  padding: 4px 8px;
  line-height: 1.35;
}

.ppc-check {
  color: #7ee787;
  font-weight: 700;
  font-size: 15px;
}

.ppc-yes {
  color: var(--text-primary);
}

.ppc-text {
  color: var(--text-secondary);
  font-size: 12px;
}

.ppc-no {
  color: var(--text-secondary);
  font-size: 12px;
}

.ppc-cross {
  color: #f87171;
  font-weight: 700;
  margin-right: 2px;
}

.ppc-strike {
  text-decoration: line-through;
  opacity: 0.75;
}

@media (max-width: 520px) {
  .payment-plan-compare-header,
  .payment-plan-compare-row {
    grid-template-columns: minmax(100px, 1.15fr) 1fr 1fr;
  }

  .payment-plan-compare-row .ppc-feature-col {
    font-size: 12px;
    padding: 10px 8px;
  }

  .ppc-cell {
    font-size: 11px;
    padding: 4px 4px;
  }
}

.payment-plan-details-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.payment-plan-pick-btn {
  width: 100%;
  font-size: 13px;
  padding: 10px 12px;
}

.payment-plan-current-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent, #a855f7);
}

.payment-plan-switch-inline {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
}

.summary-plan {
  font-weight: 600;
  color: var(--text-primary);
}

.summary-price {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.payment-page-order-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 4px;
}

.payment-page-order-fields .form-group {
  margin-bottom: 0;
}

/* Ajustes específicos para os campos do Mercado Pago Brick.
   Evita que o texto digitado "vaze" para fora da caixa em alguns navegadores/resoluções. */
#mercadopago-bricks-container,
#mercadopago-bricks-container * {
  box-sizing: border-box;
}

#mercadopago-bricks-container input:not([type="radio"]),
#mercadopago-bricks-container select,
#mercadopago-bricks-container textarea {
  min-height: 48px !important;
  line-height: 1.25 !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* O reset global define iframe com height:auto; aqui preservamos a altura do Brick. */
#mercadopago-bricks-container iframe {
  height: 100% !important;
  max-width: 100%;
}

/* Radios do Brick: esconde os genéricos (ex.: abas de método); parcelas ganham .mp-brick-installment-option via JS */
#mercadopago-bricks-container input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}

#mercadopago-bricks-container .mp-brick-installment-option input[type="radio"] {
  position: static !important;
  opacity: 1 !important;
  width: 1.125rem !important;
  height: 1.125rem !important;
  min-height: 1.125rem !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: auto !important;
  flex: 0 0 auto;
  order: 99;
  margin-left: auto !important;
  margin-right: 8px !important;
  accent-color: var(--primary, #8b5cf6);
  cursor: pointer;
  align-self: center;
}

#mercadopago-bricks-container .mp-brick-installment-option {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px 10px 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Conteúdo à esquerda até o radio; um único wrapper vira linha parcela | total */
#mercadopago-bricks-container .mp-brick-installment-option > *:not(input[type="radio"]) {
  order: 1;
  flex: 1 1 0;
  min-width: 0;
  font-size: clamp(13px, 3.4vw, 16px);
  line-height: 1.35;
}

#mercadopago-bricks-container .mp-brick-installment-option > *:not(input[type="radio"]):only-child {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

#mercadopago-bricks-container .mp-brick-installment-option > *:not(input[type="radio"]):only-child > * {
  min-width: 0;
}

#mercadopago-bricks-container .mp-brick-installment-option.mp-brick-installment-active {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.22);
}

@media (max-width: 767px) {
  #paymentPage {
    padding: 10px;
    align-items: flex-start;
  }

  .payment-container {
    width: calc(100vw - 20px);
    max-width: 100%;
    padding: 20px 12px 24px;
    max-height: min(92dvh, calc(100dvh - 20px));
    max-height: min(92vh, calc(100vh - 20px));
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .payment-title {
    font-size: clamp(1.15rem, 5vw, 1.65rem);
    margin-bottom: 16px;
    padding-right: 36px;
    line-height: 1.2;
  }

  #mercadopago-bricks-container {
    margin-top: 10px;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.45) rgba(255, 255, 255, 0.06);
  }

  #mercadopago-bricks-container::-webkit-scrollbar {
    height: 8px;
  }

  #mercadopago-bricks-container::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.45);
    border-radius: 8px;
  }

  #mercadopago-bricks-container .mp-brick-installment-option {
    padding: 11px 14px 11px 12px;
    gap: 8px 10px;
  }

  #mercadopago-bricks-container .mp-brick-installment-option > *:not(input[type="radio"]) {
    font-size: clamp(12.5px, 3.6vw, 15px);
    gap: 6px 8px;
  }

  #mercadopago-bricks-container .mp-brick-installment-option input[type="radio"] {
    width: 1.0625rem !important;
    height: 1.0625rem !important;
    min-height: 1.0625rem !important;
    margin-right: 10px !important;
  }
}

@media (max-width: 380px) {
  .payment-container {
    width: calc(100vw - 16px);
    padding: 18px 10px 22px;
  }

  #mercadopago-bricks-container .mp-brick-installment-option {
    padding: 10px 12px 10px 10px;
  }

  #mercadopago-bricks-container .mp-brick-installment-option input[type="radio"] {
    margin-right: 12px !important;
  }

  #mercadopago-bricks-container .mp-brick-installment-option > *:not(input[type="radio"]) {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 4px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.form-group input,
.form-group select {
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition);
}

.password-input-wrapper {
  position: relative;
  width: 100%;
  display: block;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 44px;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.password-toggle-btn:hover {
  color: #374151;
}

.password-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.card-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pix-details {
  margin: 20px 0;
  padding: 20px;
  background: var(--bg-primary);
  border-radius: 12px;
  border: 2px solid var(--accent);
}

.pix-instructions {
  text-align: center;
}

.pix-instructions p {
  color: var(--text-primary);
  margin-bottom: 15px;
}

.pix-instructions canvas {
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 10px;
  background: white;
}

.btn-pay {
  background: var(--gradient-1);
  color: white;
  border: none;
  padding: 18px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--glass);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
  padding: 0;
  font-weight: 500;
  transition: var(--transition);
}

.link-btn:hover {
  color: var(--primary-dark);
}

/* ========== AUTENTICAÇÃO ========== */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-left: calc(20px + env(safe-area-inset-left, 0px));
  padding-right: calc(20px + env(safe-area-inset-right, 0px));
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.auth-container {
  background: var(--glass-strong);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  max-width: min(450px, calc(100vw - 24px));
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease-out;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-primary);
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  min-width: 0;
}

/* Evita botão de envio estreito (Safari / flex) — "Criar conta" / "Entrar" sempre largura total */
.auth-form > button[type="submit"].btn-pay {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-self: stretch;
  box-sizing: border-box;
  display: block;
  text-align: center;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

@media (max-width: 767px) {
  .auth-modal {
    align-items: flex-start;
    justify-content: center;
    padding: 10px;
    padding-left: calc(10px + env(safe-area-inset-left, 0px));
    padding-right: calc(10px + env(safe-area-inset-right, 0px));
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .auth-container {
    width: 100%;
    max-width: min(450px, calc(100vw - 20px));
    padding: 22px 16px max(24px, env(safe-area-inset-bottom, 0px));
    margin-left: auto;
    margin-right: auto;
    align-self: stretch;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* Cartões de código por email (cadastro, checkout, perfil, esqueci senha) */
.email-verify-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: clamp(16px, 4vw, 30px);
  margin-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.email-verify-card__icon {
  font-size: clamp(2rem, 9vw, 3rem);
  margin-bottom: 8px;
  line-height: 1;
}

.email-verify-card__title {
  color: #6366f1;
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 4.2vw, 1.5rem);
  font-weight: 700;
}

.email-verify-card__lead {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 16px;
  font-size: clamp(14px, 3.5vw, 16px);
  line-height: 1.45;
  word-break: break-word;
}

.email-verify-card__hint {
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(13px, 3.2vw, 14px);
  margin: 0 0 18px;
  line-height: 1.45;
}

.email-verify-card__code-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 6px;
  align-items: stretch;
}

@media (min-width: 520px) {
  .email-verify-card__code-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
}

.email-verify-card__input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  letter-spacing: 0.35em;
  font-size: clamp(1.05rem, 4vw, 1.2rem);
  font-weight: 700;
  padding: 14px 12px;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@media (min-width: 520px) {
  .email-verify-card__code-row .email-verify-card__input {
    width: 220px;
    max-width: 100%;
    flex: 0 1 220px;
  }
}

.email-verify-card__submit.btn-primary {
  width: 100%;
  padding: 14px 18px;
  font-size: clamp(15px, 3.6vw, 16px);
  min-height: 48px;
  box-sizing: border-box;
}

@media (min-width: 520px) {
  .email-verify-card__submit.btn-primary {
    width: auto;
    flex: 0 0 auto;
  }
}

.email-verify-card__helper {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 12px;
  border-radius: 8px;
  margin-top: 18px;
  text-align: center;
}

.email-verify-card__helper > p {
  margin: 0 0 12px;
  font-size: clamp(12px, 3vw, 13px);
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.4;
}

.email-verify-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.email-verify-card__actions--standalone {
  margin-top: 12px;
}

@media (min-width: 520px) {
  .email-verify-card__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
}

.email-verify-card__actions .btn-secondary {
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  font-size: clamp(14px, 3.3vw, 15px);
  box-sizing: border-box;
}

@media (min-width: 520px) {
  .email-verify-card__actions .btn-secondary {
    width: auto;
  }
}

#orderEmailVerificationCard {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
}

/* ========== MEUS PEDIDOS ========== */
.section-orders {
  min-height: auto;
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.order-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: visible;
}

.order-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-1);
  transform: scaleY(0);
  transition: transform var(--transition);
}

.order-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary);
  background: var(--glass-hover);
}

.order-card:hover::before {
  transform: scaleY(1);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.order-card-header > div:last-child {
  position: relative;
  z-index: 10000;
}

.order-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.order-date {
  font-size: 14px;
  color: var(--text-secondary);
}

.order-badge {
  background: var(--gradient-1);
  color: white;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.order-info {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.order-info-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.order-info-item:last-child {
  border-bottom: none;
}

.order-info-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.order-info-value {
  color: var(--text-primary);
  font-weight: 600;
}

.order-actions {
  position: relative;
  z-index: 1;
}

/* Menu de três pontinhos do pedido */
.order-menu-container {
  position: relative;
  z-index: 10000;
  overflow: visible;
}

.order-menu-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 10001;
}

.order-menu-button:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--primary);
  border-color: var(--primary);
}

.order-menu-dropdown {
  position: fixed;
  background: rgba(20, 20, 30, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  min-width: 220px;
  z-index: 99999;
  overflow: hidden;
  padding: 4px;
  transform-origin: top right;
}

.order-menu-item {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  z-index: 10003;
  pointer-events: auto;
  border-radius: 8px;
  margin: 4px 0;
}

.order-menu-item:hover {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
}

.order-menu-item:active {
  background: rgba(99, 102, 241, 0.3);
}

.order-menu-item:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.order-menu-item:last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.order-menu-item span {
  font-size: 24px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

/* Estilos para modais */
.qr-code-modal-close:hover,
.change-email-modal-close:hover,
.support-modal-close:hover {
  background: var(--glass-hover) !important;
}

.qr-code-modal-content,
.change-email-modal-content,
.support-modal-content {
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.btn-access {
  width: 100%;
  background: var(--gradient-1);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-access:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.empty-orders {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 80px;
  margin-bottom: 24px;
  opacity: 0.6;
}

.empty-orders h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.empty-orders p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 16px;
}

/* ========== FOOTER ========== */
/* ========== FAQ ========== */
/* ========== CENTRAL DE AJUDA ========== */
.section-help {
  padding: 100px 20px;
  background: transparent;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0;
  z-index: 1;
}

.section-help::after {
  display: none;
}

.help-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 40px auto 0;
  max-width: 800px;
  padding-bottom: 0;
  position: relative;
  border-bottom: 2px solid var(--glass-border);
  margin-bottom: 0;
  overflow: visible;
}

.help-tabs::before,
.help-tabs::after {
  display: none;
}

.help-tab {
  padding: 16px 32px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  bottom: -2px;
  font-family: 'Inter', sans-serif;
  z-index: 1;
  margin-bottom: 0;
}

.help-tab:hover {
  color: var(--primary);
}

.help-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.help-content {
  margin-top: 40px;
  padding-bottom: 0;
  border-bottom: none;
  position: relative;
}

.help-content::after {
  display: none;
}

.help-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
  padding-bottom: 0;
  margin-bottom: 0;
}

.help-tab-content.active {
  display: block;
  padding-bottom: 0;
  margin-bottom: 0;
}

.help-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.help-tab-content.active {
  display: block;
}

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

/* Estilos FAQ (mantidos) */
.section-faq {
  padding: 100px 20px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0;
  z-index: 1;
}

.faq-container {
  max-width: 800px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
}

.faq-item:hover {
  box-shadow: var(--shadow-glow);
  border-color: var(--primary);
  background: var(--glass-hover);
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
  gap: 20px;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question span:first-child {
  flex: 1;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  transition: var(--transition);
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 2000px;
  padding: 0 24px 24px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  padding-top: 16px;
}

.faq-answer strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* FAQ mobile base */
.section-help .faq-question {
  padding: 20px;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.faq-answer {
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  font-size: 18px;
}

/* ========== SEÇÃO DE CONTATO ========== */
.contact-container {
  max-width: 900px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: 50px;
}

.contact-intro h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.contact-intro p {
  font-size: 16px;
  color: var(--text-secondary);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary);
}

.contact-card:hover::before {
  opacity: 0.05;
}

.contact-icon,
.contact-card h4,
.contact-card p,
.contact-link {
  position: relative;
  z-index: 1;
}

.contact-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.contact-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-link {
  display: inline-block;
  padding: 12px 24px;
  background: var(--gradient-1);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-info {
  text-align: center;
  padding: 30px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  margin-top: 0;
  margin-bottom: 0;
}

.contact-info p {
  margin: 8px 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.contact-info p strong {
  color: var(--text-primary);
}

/* Central de Ajuda mobile base */
.section-help {
  padding: 48px 16px;
}

.help-tabs {
  flex-direction: column;
  gap: 0;
}

.help-tab {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-right: none;
  padding: 14px 20px;
}

.help-tab.active {
  border-left-color: var(--primary);
  border-bottom-color: var(--border);
}

.contact-cards {
  grid-template-columns: 1fr;
}

.contact-card {
  padding: 24px;
}

/* ========== RODAPÉ PROFISSIONAL ========== */
.footer {
  background: var(--glass);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  padding: 20px 20px 20px;
  border-top: 1px solid var(--glass-border);
  margin-top: 60px;
  position: relative;
  z-index: 1;
  height: auto;
  min-height: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-bottom: 25px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Descer as colunas Contato, Pagamento e Segurança */
.footer-column:not(:first-child) {
  margin-top: 90px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  margin-top: 10px;
}

.footer-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  background: transparent;
  /* Change black SVG to purple using CSS filter */
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(258deg) brightness(104%) contrast(101%) drop-shadow(0 0 8px rgba(199, 125, 255, 0.3));
}

.footer-description {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  max-width: 220px;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.footer-contact li svg {
  color: var(--primary);
  flex-shrink: 0;
}

.footer-contact li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact li a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition);
  border: 1px solid var(--glass-border);
}

.social-link:hover {
  background: var(--gradient-1);
  color: white;
  border-color: transparent;
  transform: translateY(-2px) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.footer-payment {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-info {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.payment-cards-title {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.4;
  margin: 0 0 6px 0;
  font-weight: 500;
}

.payment-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.payment-icon {
  width: 42px;
  height: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition);
}

.payment-icon:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.payment-icon svg {
  color: var(--primary);
}

.card-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.card-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-brand:hover::after {
  content: attr(title);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-brand:hover::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: rgba(0, 0, 0, 0.85);
  z-index: 1001;
  pointer-events: none;
}

.card-brand svg {
  display: block;
}

.footer-security {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.security-item svg {
  color: #10b981;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 12px;
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-legal span {
  color: var(--text-light);
}

/* Footer mobile base */
.footer {
  padding: 24px 16px 20px;
  height: auto;
  min-height: 0;
}

.footer-column:not(:first-child) {
  margin-top: 24px;
}

.footer-main {
  grid-template-columns: 1fr;
  gap: 20px;
}

.footer-bottom-content {
  flex-direction: column;
  text-align: center;
  gap: 12px;
}

.payment-icons {
  flex-wrap: wrap;
}

/* ========== POPUPS ========== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-container {
  background: var(--glass-strong);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  max-width: 450px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-overlay.show .popup-container {
  transform: scale(1) translateY(0);
}

.popup-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  animation: popupIconBounce 0.5s ease-out;
}

.popup-success .popup-icon {
  background: #d1fae5;
  color: #065f46;
}

.popup-warning .popup-icon {
  background: #fef3c7;
  color: #92400e;
}

.popup-error .popup-icon {
  background: #fee2e2;
  color: #991b1b;
}

@keyframes popupIconBounce {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.popup-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.popup-message {
  font-size: 16px;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.popup-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.popup-buttons:has(.popup-btn:nth-child(2)) {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.popup-buttons:has(.popup-btn:nth-child(2)) .popup-btn {
  flex: 1 1 0;
  min-width: 0;
}

.popup-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-width: 120px;
}

.popup-btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: var(--shadow-sm);
}

.popup-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.popup-btn-secondary {
  background: var(--bg);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.popup-btn-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--primary);
  color: var(--primary);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.popup-close:hover {
  background: var(--bg);
  color: var(--text-primary);
}

/* ========== LOADING POPUP (não cobre a tela inteira com branco) ========== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  z-index: 15000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Caixa do popup de loading (centralizada, sem tela branca total) */
.loading-overlay .loading-popup-box {
  background: var(--bg);
  border-radius: 16px;
  padding: 28px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.loading-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.loading-inline-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ========== MICROINTERAÇÕES ========== */
.btn-primary,
.btn-hero,
.btn-pricing,
.btn-pay,
.btn-access {
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-hero::before,
.btn-pricing::before,
.btn-pay::before,
.btn-access::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:active::before,
.btn-hero:active::before,
.btn-pricing:active::before,
.btn-pay:active::before,
.btn-access:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary:active,
.btn-hero:active,
.btn-pricing:active,
.btn-pay:active,
.btn-access:active {
  transform: translateY(0) scale(0.98);
}

/* Pricing mobile: 1 col */
.pricing-grid {
  grid-template-columns: 1fr;
  gap: 20px;
  display: grid;
  width: 100%;
}

.pricing-card {
  padding: 24px 20px;
}

.pricing-card.featured {
  transform: scale(1);
}

/* ========== MODAL DE STATUS DO PEDIDO ========== */
.order-status-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(120px, 16vh, 165px) 12px 24px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.order-status-modal.show {
  opacity: 1;
  visibility: visible;
}

.order-status-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.order-status-container {
  position: relative;
  background: var(--glass-strong);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 28px 20px;
  margin: auto;
}

.order-status-modal.show .order-status-container {
  transform: scale(1) translateY(0);
}

.order-status-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 30px;
  color: #ffffff;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  z-index: 2;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.order-status-close:hover {
  background: rgba(99, 102, 241, 0.32);
  border-color: rgba(165, 180, 252, 0.6);
  color: #ffffff;
  transform: scale(1.06);
}

.order-status-header {
  text-align: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}

.order-status-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.order-status-id {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.order-status-timeline {
  margin-bottom: 18px;
  display: grid;
  gap: 12px;
  padding-left: 0;
}

.order-progress-summary {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  padding: 12px;
}

.order-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.order-progress-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
}

.order-progress-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 700;
}

.order-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.order-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

.order-progress-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.timeline-item {
  position: relative;
  padding: 14px 14px 14px 56px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  display: none;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item.active::before {
  background: var(--gradient-1);
}

.timeline-icon {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--bg);
  border: 2px solid var(--border);
  z-index: 2;
  transition: var(--transition);
}

.timeline-item.active .timeline-icon {
  background: var(--gradient-1);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(199, 125, 255, 0.5);
  transform: scale(1.1);
}

.timeline-item.completed .timeline-icon {
  background: #10b981;
  border-color: transparent;
  color: white;
}

.timeline-content {
  position: relative;
}

.timeline-step-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.timeline-step-state {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  white-space: nowrap;
}

.timeline-item.active .timeline-step-state {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.timeline-item.completed .timeline-step-state {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.timeline-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-item.active .timeline-title {
  color: var(--primary);
}

.timeline-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.timeline-item.active .timeline-description {
  color: var(--text-primary);
}

.timeline-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-style: italic;
}

.order-status-details {
  background: var(--bg);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

.order-status-payment-cta {
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid rgba(129, 140, 248, 0.5);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.24), rgba(168, 85, 247, 0.12));
  box-shadow: 0 6px 26px rgba(99, 102, 241, 0.2);
}

.order-status-payment-cta-inner {
  padding: 14px 16px 16px;
}

.order-status-payment-cta-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c7d2fe;
  margin-bottom: 8px;
}

.order-status-payment-cta-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
  font-weight: 500;
}

.btn-order-status-change-payment {
  font-size: 17px !important;
  font-weight: 700 !important;
  padding: 15px 22px !important;
  width: 100%;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45) !important;
}

.btn-order-status-change-payment:hover {
  box-shadow: 0 10px 34px rgba(129, 140, 248, 0.55) !important;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.detail-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-value.highlight {
  color: #10b981;
}

.detail-value.monospace {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  word-break: break-all;
}

.order-status-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.order-status-container {
  padding: 22px 16px;
  width: min(95vw, 520px);
  max-width: 520px;
  max-height: calc(100vh - 150px);
}

.details-grid {
  grid-template-columns: 1fr;
}

.order-status-actions {
  flex-direction: column;
}

.order-status-actions button {
  width: 100%;
}

/* ========== CARD DO ASSISTENTE VIRTUAL ========== */
.ai-assistant-card {
  position: fixed;
  bottom: 30px;
  right: 30px;
  max-width: 380px;
  background: var(--glass-strong);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  z-index: 10000;
  animation: slideUpCard 0.5s ease-out;
  border: 1px solid var(--glass-border);
  font-family: 'Inter', sans-serif;
  display: none;
}

.ai-assistant-card.show {
  display: block;
}

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

.ai-assistant-card.hidden {
  display: none;
}

.ai-assistant-card-content {
  position: relative;
}

.ai-assistant-card-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.ai-assistant-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.ai-assistant-card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.ai-assistant-card-header p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.ai-assistant-card-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ai-assistant-card-actions {
  display: flex;
  gap: 12px;
}

.ai-assistant-card-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.ai-assistant-card-close:hover {
  background: var(--border);
  color: var(--text-primary);
}

.ai-assistant-card {
  bottom: 20px;
  right: 20px;
  left: 20px;
  max-width: calc(100% - 32px);
}

/* ========== MINI MENSAGEM DO ASSISTENTE ========== */
.ai-mini-message {
  position: fixed;
  bottom: 100px;
  right: 30px;
  max-width: 360px;
  background: var(--glass-strong);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow), 0 0 0 1px rgba(199, 125, 255, 0.3);
  padding: 16px 20px;
  padding-top: 40px;
  z-index: 9999;
  animation: slideUpMini 0.3s ease-out, pulseGlow 2s ease-in-out infinite;
  border: 1px solid var(--glass-border);
  font-family: 'Inter', sans-serif;
  display: none;
  transition: var(--transition);
}

.ai-mini-message.show {
  display: block;
}

.ai-mini-message:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(199, 125, 255, 0.5), 0 0 0 1px rgba(199, 125, 255, 0.3);
}

/* Seta apontando para o botão do assistente */
.ai-mini-message-arrow {
  position: absolute;
  bottom: -14px;
  right: 15px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid rgba(199, 125, 255, 0.5);
  animation: bounceArrow 1.5s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(199, 125, 255, 0.4));
  z-index: 1;
}

.ai-mini-message-arrow::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -12px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #fff;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(199, 125, 255, 0.5), 0 0 0 1px rgba(199, 125, 255, 0.2);
  }
  50% {
    box-shadow: 0 8px 32px rgba(199, 125, 255, 0.6), 0 0 0 1px rgba(199, 125, 255, 0.3);
  }
}

@keyframes bounceArrow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

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

.ai-mini-message-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-mini-message-corner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: var(--transition);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.ai-mini-message-corner-close:hover {
  background: var(--glass-hover);
  color: var(--primary-light);
  transform: scale(1.05);
}

.ai-mini-message-text-container {
  display: flex;
  align-items: center;
  padding-right: 40px;
}

.ai-mini-message-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  word-wrap: break-word;
  flex: 1;
}

.ai-mini-message-actions {
  display: flex;
  align-items: center;
  justify-content: stretch;
  gap: 8px;
}

.ai-mini-message-btn {
  background: var(--gradient-1);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  font-family: 'Inter', sans-serif;
}

.ai-mini-message-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(199, 125, 255, 0.5);
}

.ai-mini-message-btn:active {
  transform: translateY(0);
}

.ai-mini-message {
  bottom: 90px;
  right: 20px;
  left: 20px;
  max-width: calc(100% - 32px);
}

/* ========== ASSISTENTE VIRTUAL (IA) ========== */
.ai-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
  font-family: 'Inter', sans-serif;
}

.ai-chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-1);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: white;
  padding: 0;
}

.ai-chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(199, 125, 255, 0.6);
}

.ai-chat-toggle:active {
  transform: scale(0.95);
}

.ai-chat-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.ai-chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  height: 600px;
  background: var(--glass-strong);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
  overflow: hidden;
}

.ai-chat-header {
  background: var(--gradient-1);
  padding: 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ai-chat-header-content {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
}

.ai-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.ai-chat-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.ai-chat-header p {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.9;
}

.ai-chat-clear {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  padding: 0;
}

.ai-chat-clear:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.ai-chat-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  flex-shrink: 0;
}

.ai-chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
}

.ai-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.ai-message {
  display: flex;
  gap: 12px;
  animation: messageSlide 0.3s ease-out;
}

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

.ai-message-user {
  flex-direction: row-reverse;
}

.ai-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ai-message-user .ai-message-avatar {
  background: var(--gradient-2);
}

.ai-message-content {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}

.ai-message-user .ai-message-content {
  background: var(--gradient-1);
  color: white;
}

.ai-message-content p {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.5;
}

.ai-message-content p:last-child {
  margin-bottom: 0;
}

.ai-message-content ul {
  margin: 8px 0;
  padding-left: 20px;
}

.ai-message-content li {
  margin: 4px 0;
  font-size: 14px;
}

.ai-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ai-chat-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.ai-chat-action:hover {
  background: var(--primary);
  color: #fff;
}

.ai-chat-action-button {
  font-family: 'Inter', sans-serif;
}

.ai-chat-action-icon {
  line-height: 1;
}

.ai-chat-input-container {
  padding: 16px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Painel de acessibilidade dentro do chat */
.ai-accessibility-panel {
  margin: 16px 0;
  padding: 16px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.ai-accessibility-panel h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.ai-accessibility-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-accessibility-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-accessibility-control-row label {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.ai-accessibility-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ai-accessibility-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-accessibility-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.ai-accessibility-indicator {
  min-width: 50px;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
}

.ai-accessibility-toggle {
  width: 50px;
  height: 26px;
  border-radius: 13px;
  background: var(--border);
  border: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  padding: 2px;
}

.ai-accessibility-toggle.active {
  background: var(--primary);
}

.ai-accessibility-toggle-slider {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  display: block;
  transition: var(--transition);
  transform: translateX(0);
}

.ai-accessibility-toggle.active .ai-accessibility-toggle-slider {
  transform: translateX(24px);
}

.ai-accessibility-btn-reset {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.ai-accessibility-btn-reset:hover {
  background: var(--text-secondary);
  color: white;
  border-color: var(--text-secondary);
}

.ai-chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  transition: var(--transition);
}

.ai-chat-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(199, 125, 255, 0.2);
}

.ai-chat-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-1);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.ai-chat-send:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.ai-chat-send:active {
  transform: scale(0.95);
}

.ai-typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.ai-typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: typingDot 1.4s infinite;
}

.ai-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

.ai-chat-widget {
  bottom: 90px;
  right: 20px;
}

.ai-chat-toggle {
  width: 50px;
  height: 50px;
}

.ai-chat-panel {
  width: calc(100vw - 40px);
  max-width: 380px;
  height: min(500px, 70vh);
  bottom: 60px;
}

/* ========== BOTÃO DE ACESSIBILIDADE ========== */
.accessibility-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

.accessibility-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-1);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: white;
  padding: 0;
}

.accessibility-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.accessibility-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(255, 107, 157, 0.4);
}

.accessibility-toggle:active {
  transform: scale(0.95);
}

.accessibility-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 300px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  animation: slideUp 0.3s ease-out;
}

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

.accessibility-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
}

.accessibility-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.accessibility-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.accessibility-close:hover {
  background: var(--border);
  color: var(--text-primary);
}

.accessibility-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.accessibility-option {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accessibility-option label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.accessibility-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
}

.accessibility-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.accessibility-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.accessibility-btn:active {
  transform: translateY(0);
}

.font-size-indicator {
  min-width: 60px;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.accessibility-btn-toggle {
  width: 60px;
  height: 30px;
  border-radius: 15px;
  background: var(--border);
  border: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  padding: 3px;
}

.accessibility-btn-toggle.active {
  background: var(--primary);
}

.toggle-slider {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  display: block;
  transition: var(--transition);
  transform: translateX(0);
}

.accessibility-btn-toggle.active .toggle-slider {
  transform: translateX(30px);
}

.accessibility-btn-reset {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.accessibility-btn-reset:hover {
  background: var(--text-secondary);
  color: white;
  border-color: var(--text-secondary);
}

/* Estilos de acessibilidade aplicados */
body.high-contrast {
  --bg: #000000;
  --bg-alt: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --border: #444444;
}

body.font-small {
  font-size: 14px;
}

body.font-medium {
  font-size: 16px;
}

body.font-large {
  font-size: 18px;
}

body.font-extra-large {
  font-size: 20px;
}

.accessibility-widget {
  bottom: 20px;
  right: 20px;
}

.accessibility-toggle {
  width: 36px;
  height: 36px;
}

.accessibility-icon {
  width: 16px;
  height: 16px;
}

.accessibility-panel {
  width: min(260px, calc(100vw - 32px));
  bottom: 55px;
}

/* ============================================
   EDITOR VISUAL DE PERSONALIZAÇÃO
   ============================================ */

/* Fix para autocomplete do YouTube não sobrepor */
.editor-section {
  position: relative;
  z-index: 1;
}

.editor-section {
  position: relative;
  z-index: 1;
}

.editor-section .form-group {
  position: relative;
  z-index: 1;
}

/* Container específico para busca do YouTube */
.youtube-search-group {
  position: relative;
  z-index: 10;
  margin-bottom: 10px;
  /* Garante que o autocomplete não ultrapassa os limites */
  overflow: visible;
}

/* Autocomplete do YouTube - empurra conteúdo para baixo em vez de sobrepor */
.youtube-autocomplete-results {
  position: relative !important;
  width: 100% !important;
  background: #1a1a1a !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px !important;
  margin-top: 5px !important;
  max-height: 200px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.8) !important;
  padding: 8px !important;
  /* Remove position absolute para que empurre o conteúdo abaixo */
}

/* Garante que o container do editor permite scroll quando necessário */
.site-editor-controls {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: calc(100dvh - 120px) !important;
  max-height: calc(100vh - 120px) !important; /* fallback */
}

/* Garante que o container do editor tem overflow para scroll */
.site-editor-content {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Quando o autocomplete está aberto, permite scroll no container */
.site-editor-content:has(.youtube-autocomplete-results[style*="display: block"]) {
  overflow-y: auto !important;
}

.site-editor-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.site-editor-container {
  background: rgb(28, 24, 38);
  border: 1px solid rgba(255, 120, 196, 0.3);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 95vw;
  height: 90vh;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.site-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255, 120, 196, 0.2);
  background: rgb(40, 36, 52);
}

.site-editor-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.site-editor-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 32px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.site-editor-close:hover {
  background: var(--glass-hover);
  transform: rotate(90deg);
}

.site-editor-content {
  display: flex;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  gap: 0;
  position: relative;
}

.site-editor-controls {
  background: rgb(28, 24, 38);
  overflow-y: auto;
  padding: 20px;
  width: 100%;
  max-width: 100%;
}

.site-editor-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.site-editor-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Formulário de edição com fundo sólido (igual ao modal Ver sugestões) - não transparente */
.site-editor-controls-page {
  background: rgb(28, 24, 38) !important;
  border: 1px solid rgba(255, 120, 196, 0.3);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  padding: 24px !important;
}

.editor-section {
  background: rgb(40, 36, 52);
  border: 1px solid rgba(255, 120, 196, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
}

.editor-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #ff78c4;
  margin: -4px 0 18px 0;
  padding: 12px 16px;
  padding-left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, rgba(255, 120, 196, 0.15) 0%, transparent 100%);
  border-left: 4px solid #ff78c4;
  border-radius: 0 8px 8px 0;
}

.editor-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

/* --- Página /edit/{slug}/: formulário mais legível e consistente --- */
.site-editor-page {
  padding: clamp(96px, 11vw, 140px) 20px clamp(104px, 11vw, 132px);
}

.site-editor-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.site-editor-header-page {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 120, 196, 0.28);
}

.site-editor-header-page .section-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.25;
}

.site-editor-controls-page {
  padding: clamp(20px, 4vw, 32px) !important;
}

.site-editor-form {
  gap: 0;
}

.site-editor-form > .editor-section + .editor-section {
  margin-top: 20px;
}

.site-editor-form .form-group label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
}

.site-editor-form .form-group input:not([type="radio"]):not([type="checkbox"]),
.site-editor-form .form-group select,
.site-editor-form .form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-editor-form .form-group input::placeholder,
.site-editor-form .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.site-editor-form .form-group input:hover,
.site-editor-form .form-group select:hover,
.site-editor-form .form-group textarea:hover {
  border-color: rgba(255, 120, 196, 0.38);
  background: rgba(0, 0, 0, 0.36);
}

.site-editor-form .form-group input:focus,
.site-editor-form .form-group select:focus,
.site-editor-form .form-group textarea:focus {
  outline: none;
  border-color: #ff78c4;
  box-shadow: 0 0 0 3px rgba(255, 120, 196, 0.22);
}

/* Tema do site: select real fica só para valor/salvamento; UI = botões */
.editor-theme-select-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.editor-theme-switch {
  position: relative;
  margin-top: 2px;
}

.editor-theme-switch__toggle {
  display: flex;
  gap: 12px;
}

.editor-theme-switch__btn {
  flex: 1;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.72);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.editor-theme-switch__btn:hover {
  border-color: rgba(255, 120, 196, 0.45);
  color: rgba(255, 255, 255, 0.95);
}

.editor-theme-switch__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 120, 196, 0.45);
}

.editor-theme-switch__btn.is-selected {
  border-color: #ff78c4;
  color: #fff;
  background: linear-gradient(155deg, rgba(255, 120, 196, 0.32), rgba(32, 18, 52, 0.92));
  box-shadow: 0 0 0 1px rgba(255, 120, 196, 0.25), 0 10px 32px rgba(0, 0, 0, 0.35);
}

.editor-theme-switch__btn.is-selected:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 120, 196, 0.25), 0 10px 32px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 200, 230, 0.55);
}

.editor-theme-switch__btn--light.is-selected {
  background: linear-gradient(155deg, rgba(255, 232, 246, 0.4), rgba(36, 22, 58, 0.9));
}

.editor-section--theme-primary {
  padding: 20px 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 120, 196, 0.32);
  background: linear-gradient(165deg, rgba(255, 120, 196, 0.16), rgba(10, 6, 20, 0.55));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.site-editor-form > .editor-section--theme-primary {
  margin-bottom: 4px;
}

.editor-hint--theme-lead {
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

body.light-theme .editor-section--theme-primary {
  border-color: rgba(196, 74, 140, 0.3);
  background: linear-gradient(165deg, rgba(255, 120, 196, 0.12), rgba(255, 252, 254, 0.92));
  box-shadow: 0 8px 28px rgba(45, 24, 56, 0.08);
}

body.light-theme .editor-theme-switch__btn {
  border-color: rgba(45, 24, 56, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(45, 24, 56, 0.65);
}

body.light-theme .editor-theme-switch__btn:hover {
  border-color: rgba(196, 74, 140, 0.4);
  color: #2d1838;
}

body.light-theme .editor-theme-switch__btn.is-selected {
  border-color: #c44a8c;
  color: #2d1838;
  background: linear-gradient(155deg, rgba(255, 200, 230, 0.55), rgba(255, 255, 255, 0.95));
  box-shadow: 0 0 0 1px rgba(196, 74, 140, 0.2), 0 8px 24px rgba(45, 24, 56, 0.1);
}

/* Frase do Início: combobox + folha inferior no mobile */
.editor-select-shell--greeting {
  position: relative;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(132deg, rgba(255, 120, 196, 0.65), rgba(160, 90, 200, 0.4));
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

.editor-greeting-combobox {
  position: relative;
}

.editor-greeting-combobox.is-open {
  /* Acima do bloco “Sua frase personalizada” e da prévia (irmãos seguintes no DOM), que senão pintam por cima do painel fixed. */
  z-index: 20400;
}

/* Com a lista aberta, a secção “Informações básicas” sobe no stack (painel fixed senão fica por baixo da secção seguinte). */
body.editor-greeting-panel-open .site-editor-form > .editor-section.editor-section--has-greeting {
  position: relative;
  z-index: 20100;
}

body.editor-greeting-panel-open .site-editor-form > .editor-section:not(.editor-section--has-greeting) {
  position: relative;
  z-index: 0;
}

/* Lista aberta = só o combobox visível nesta área (como um select nativo), sem textarea/dicas por cima das opções. */
body.editor-greeting-panel-open .editor-section--has-greeting .form-group:has(#editorGreetingComboboxRoot) > p {
  visibility: hidden;
  pointer-events: none;
}

body.editor-greeting-panel-open .editor-section--has-greeting #editorHeroGreetingPreview,
body.editor-greeting-panel-open .editor-section--has-greeting #editorHeroGreetingCustomWrap {
  visibility: hidden;
  pointer-events: none;
}

.editor-greeting-backdrop {
  display: none;
}

.editor-greeting-trigger {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 48px 14px 18px;
  margin: 0;
  border: none;
  border-radius: 14px;
  font-size: clamp(14px, 2.8vw, 16px);
  line-height: 1.35;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: #fffaf7;
  background-color: #100818;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%23ff9ecf' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.75L7 7l5.5-5.25'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.editor-greeting-trigger:hover {
  background-color: #160f24;
}

.editor-greeting-trigger:focus-visible {
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 3px rgba(255, 120, 196, 0.38);
}

.editor-greeting-trigger__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.editor-greeting-panel {
  position: absolute;
  z-index: 20050;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: min(52vh, 380px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 120, 196, 0.55);
  /* Fundo sólido (evita ver a secção por baixo) */
  background-color: #0c0614;
  background-image: linear-gradient(180deg, #151022 0%, #0c0614 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 64px rgba(0, 0, 0, 0.75);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 120, 196, 0.55) #0a0510;
  mix-blend-mode: normal;
  opacity: 1;
}

.editor-greeting-panel::-webkit-scrollbar {
  width: 10px;
}

.editor-greeting-panel::-webkit-scrollbar-track {
  background: #0a0510;
  border-radius: 8px;
}

.editor-greeting-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 140, 200, 0.55), rgba(200, 80, 160, 0.45));
  border-radius: 8px;
  border: 2px solid #0a0510;
}

.editor-greeting-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 120, 196, 0.75);
}

.editor-greeting-panel__opt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 4px;
  padding: 14px 14px;
  border: none;
  border-radius: 10px;
  font-size: clamp(14px, 2.8vw, 15px);
  line-height: 1.35;
  text-align: left;
  font-family: inherit;
  color: rgba(255, 252, 255, 0.98);
  background: rgba(30, 22, 44, 0.95);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.editor-greeting-panel__opt:last-child {
  margin-bottom: 0;
}

.editor-greeting-panel__opt:hover {
  background: rgba(255, 120, 196, 0.14);
}

.editor-greeting-panel__opt.is-selected {
  background: rgba(255, 120, 196, 0.22);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 120, 196, 0.35);
}

.editor-greeting-panel__opt:focus-visible {
  outline: 2px solid #ff78c4;
  outline-offset: 1px;
}

.editor-section--hero-memory {
  padding: 20px 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 160, 200, 0.22);
  background: linear-gradient(168deg, rgba(255, 140, 190, 0.1), rgba(18, 12, 32, 0.55));
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
}

.editor-hint--hero-memory-lead {
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

body.light-theme .editor-section--hero-memory {
  border-color: rgba(196, 74, 140, 0.22);
  background: linear-gradient(168deg, rgba(255, 120, 196, 0.1), rgba(255, 252, 254, 0.94));
}

body.light-theme .editor-greeting-trigger {
  color: #1f1528;
  background-color: #fffdfb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%23a03078' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.75L7 7l5.5-5.25'/%3E%3C/svg%3E");
}

body.light-theme .editor-greeting-trigger:hover {
  background-color: #fff5f9;
}

body.light-theme .editor-greeting-panel {
  border-color: rgba(196, 74, 140, 0.35);
  background-color: #fff6fb;
  background-image: linear-gradient(180deg, #ffffff 0%, #faf0f8 100%);
  box-shadow:
    0 0 0 1px rgba(45, 24, 56, 0.06),
    0 16px 40px rgba(45, 24, 56, 0.16);
  scrollbar-color: rgba(196, 74, 140, 0.45) #f0e4f0;
}

body.light-theme .editor-greeting-panel::-webkit-scrollbar-track {
  background: #f0e4f0;
}

body.light-theme .editor-greeting-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(200, 90, 150, 0.55), rgba(160, 60, 120, 0.45));
  border: 2px solid #f0e4f0;
}

body.light-theme .editor-greeting-panel__opt {
  color: #2d1838;
  background: #f4eaf4;
}

body.light-theme .editor-greeting-panel__opt:hover {
  background: rgba(255, 120, 196, 0.12);
}

body.light-theme .editor-greeting-panel__opt.is-selected {
  background: rgba(255, 120, 196, 0.2);
}

@media (max-width: 767px) {
  /* Lista continua ancorada ao campo (JS position:fixed); só ajustes de toque e tipografia */
  .editor-greeting-panel__opt {
    padding: 16px 14px;
    margin-bottom: 6px;
    min-height: 48px;
  }

  .editor-greeting-trigger {
    min-height: 52px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .editor-hero-greeting-preview__l1 {
    font-size: clamp(1.15rem, 4.2vw, 1.55rem);
  }

  .editor-hero-greeting-preview__l2 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .editor-section--hero-memory {
    padding: 16px 14px 18px;
  }
}

.site-editor-form textarea.editor-greeting-custom-textarea {
  min-height: 88px;
  resize: vertical;
}

.editor-hero-greeting-preview {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 120, 196, 0.22);
  background: linear-gradient(145deg, rgba(255, 120, 196, 0.1), rgba(26, 15, 46, 0.55));
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

.editor-hero-greeting-preview__l1 {
  display: block;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
}

.editor-hero-greeting-preview__l2 {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ff78c4, #ffb7d9, #ff78c4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.editor-hero-greeting-preview__l2--solo {
  margin-top: 0;
}

body.light-theme .editor-hero-greeting-preview {
  background: linear-gradient(145deg, rgba(255, 120, 196, 0.12), rgba(255, 255, 255, 0.85));
  border-color: rgba(196, 74, 140, 0.25);
}

body.light-theme .editor-hero-greeting-preview__l1 {
  color: #2d1838;
}

.site-editor-form .form-group textarea {
  min-height: 176px;
  resize: vertical;
  line-height: 1.55;
}

.site-editor-form input[type="date"] {
  min-height: 48px;
}

.site-editor-form input[type="file"] {
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
}

.editor-hint {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.editor-counter-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.editor-counter-line--end {
  justify-content: flex-end;
  margin-top: 0;
}

.editor-subsection {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-subsection > .editor-section-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 16px;
}

.editor-hero-preview-wrap {
  margin-bottom: 14px;
  min-height: 0;
}

.editor-hero-preview-wrap .editor-hero-preview-img {
  max-width: 100%;
  max-height: 168px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 120, 196, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.editor-polaroids-preview-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 120, 196, 0.15);
  border-radius: 14px;
  min-height: 100px;
}

.amo-item-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  align-items: stretch;
}

@media (min-width: 520px) {
  .amo-item-editor {
    flex-direction: row;
    align-items: flex-start;
  }
}

.amo-item-editor__field {
  flex: 1;
  min-width: 0;
}

.site-editor-form .amo-message-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-editor-form .amo-message-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.site-editor-form .amo-message-input:hover {
  border-color: rgba(255, 120, 196, 0.38);
  background: rgba(0, 0, 0, 0.36);
}

.site-editor-form .amo-message-input:focus {
  outline: none;
  border-color: #ff78c4;
  box-shadow: 0 0 0 3px rgba(255, 120, 196, 0.22);
}

.amo-item-editor .char-counter {
  margin-top: 6px !important;
  font-size: 12px !important;
}

.btn-editor-remove,
.amo-item-editor .btn-remove-amo,
.quiz-question-item .btn-remove-question,
.polaroid-editor-item .btn-remove-polaroid {
  flex-shrink: 0;
  align-self: flex-start;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff !important;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn-editor-remove:hover,
.amo-item-editor .btn-remove-amo:hover,
.quiz-question-item .btn-remove-question:hover,
.polaroid-editor-item .btn-remove-polaroid:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(231, 76, 60, 0.35);
}

.quiz-question-item,
.polaroid-editor-item {
  margin-bottom: 16px !important;
  padding: 18px !important;
  background: rgba(0, 0, 0, 0.22) !important;
  border: 1px solid rgba(255, 120, 196, 0.2) !important;
  border-radius: 14px !important;
}

.editor-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.editor-item-header strong {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
}

.quiz-option-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px !important;
}

.quiz-option-row .quiz-option-input {
  flex: 1;
  min-width: 160px;
}

.quiz-correct-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  user-select: none;
}

.quiz-correct-label .quiz-correct-radio {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ff78c4;
}

.quiz-correct-label:has(.quiz-correct-radio:checked) span:last-child {
  color: #ff78c4;
}

.polaroid-inline-preview,
.polaroid-editor-item .polaroid-img-preview {
  max-width: 100%;
  max-height: 160px;
  border-radius: 12px;
  margin-bottom: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 120, 196, 0.2);
}

.editor-youtube-search-wrap {
  position: relative;
}

/* /edit — lista e resultados YouTube: título em várias linhas (mais texto visível antes de reticências) */
.youtube-song-item .youtube-song-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.youtube-result-item .youtube-result-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Lightbox memórias (/edit/): só a imagem no escuro; levemente mais abaixo que o centro */
.polaroid-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(20px, calc(env(safe-area-inset-bottom, 0px) + 80px)) max(16px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.polaroid-image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.polaroid-image-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 960px);
  max-height: min(88vh, calc(100dvh - 96px), calc(100vh - 96px));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  transform: translateY(28px);
  overflow: visible;
}

.polaroid-image-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: min(82vh, calc(100dvh - 120px), calc(100vh - 120px));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 120, 196, 0.35);
}

.polaroid-image-lightbox-close {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  background: rgba(40, 36, 52, 0.95);
  border: 1px solid rgba(255, 120, 196, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.polaroid-image-lightbox-close:hover {
  background: rgba(255, 120, 196, 0.35);
}

/* Notebook/desktop: fotos altas não encostam no header — mobile permanece centralizado */
@media (min-width: 769px) {
  .polaroid-image-lightbox {
    align-items: flex-start;
    justify-content: center;
    padding-top: max(144px, calc(env(safe-area-inset-top, 0px) + 104px));
    padding-bottom: max(112px, calc(env(safe-area-inset-bottom, 0px) + 100px));
  }

  .polaroid-image-lightbox-panel {
    transform: none;
    margin-left: auto;
    margin-right: auto;
    max-height: min(90vh, calc(100dvh - 268px), calc(100vh - 268px));
  }

  .polaroid-image-lightbox-img {
    max-height: min(calc(100dvh - 284px), calc(100vh - 284px), 74vh);
  }
}

.site-editor-form .btn-secondary {
  border-radius: 12px;
  font-weight: 600;
  padding: 12px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-editor-form .btn-secondary:hover {
  transform: translateY(-1px);
}

.site-editor-form #addAmoBtn,
.site-editor-form #addQuizBtn,
.site-editor-form .editor-polaroids .btn-secondary {
  width: 100%;
  margin-top: 4px;
}

/* Barra /edit/: row — o bloco .editor-actions (modal) usa column; sem flex-direction aqui ele herdava column */
.editor-actions-strip {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 120, 196, 0.22);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
}

.editor-actions-strip .btn-secondary,
.editor-actions-strip .btn-primary {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 10px;
  font-weight: 700;
  font-size: clamp(11px, 2.5vw, 15px);
  line-height: 1.25;
  border-radius: 12px;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.floating-preview-btn {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 11000;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  box-shadow: 0 12px 32px rgba(142, 68, 173, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-preview-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(142, 68, 173, 0.55);
}

.site-editor-controls-page .site-editor-loading {
  padding: 48px 24px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 120, 196, 0.25);
}

.site-editor-preview {
  display: flex;
  flex-direction: column;
  background: #000;
  position: relative;
  min-height: 400px;
  height: 100%;
  overflow: hidden;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
}

.preview-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.preview-controls {
  display: flex;
  gap: 10px;
}

.preview-btn {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}

.preview-btn:hover {
  background: var(--glass-hover);
  transform: translateY(-2px);
}

.preview-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  min-height: 400px;
  height: 100%;
}

.preview-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  transform-origin: top left;
  transition: transform 0.3s ease;
  display: block;
  background: #000;
}

/* Preview em tamanho normal (50% da tela) - não usado por padrão */
.site-editor-modal:not(.preview-fullscreen) .preview-container iframe {
  transform: scale(0.5);
  width: 200%;
  height: 200%;
}

/* Preview em tela cheia - padrão inicial */
.site-editor-modal.preview-fullscreen .site-editor-content {
  grid-template-columns: 0 1fr;
}

.site-editor-modal.preview-fullscreen .site-editor-controls {
  width: 0;
  overflow: hidden;
  padding: 0;
  border: none;
}

.site-editor-modal.preview-fullscreen .preview-container iframe {
  transform: scale(1);
  width: 100%;
  height: 100%;
}

/* Quando em modo compacto (sem preview fullscreen) */
.site-editor-modal:not(.preview-fullscreen) .site-editor-content {
  grid-template-columns: 400px 1fr;
}

.site-editor-content {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

.site-editor-controls {
  max-height: 40vh;
  border-right: none;
  border-bottom: 1px solid var(--glass-border);
}

.site-editor-modal:not(.preview-fullscreen) .site-editor-content {
  grid-template-columns: 1fr;
}

/* Modal de Prévia em Tela Cheia */
.preview-fullscreen-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.preview-fullscreen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 1;
}

.preview-fullscreen-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #000;
  z-index: 2;
}

.preview-fullscreen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: var(--glass-strong);
  border-bottom: 1px solid var(--glass-border);
  z-index: 3;
}

.preview-fullscreen-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.preview-fullscreen-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 32px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.preview-fullscreen-close:hover {
  background: var(--glass-hover);
  transform: rotate(90deg);
}

.preview-fullscreen-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  width: 100%;
  height: 100%;
}

.preview-fullscreen-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #000;
}

/* ============================================
   MODAL DE CONFIRMAÇÃO DE PLANO
   ============================================ */

.plan-confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.plan-confirmation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1;
}

.plan-confirmation-container {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: min(90vh, calc(100vh - 48px));
  max-height: min(90dvh, calc(100dvh - 48px));
  overflow: hidden;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px 22px;
  max-width: 450px;
  width: 100%;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.plan-confirmation-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 28px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  opacity: 0.7;
}

.plan-confirmation-close:hover {
  opacity: 1;
  background: var(--glass-hover);
  transform: rotate(90deg);
}

.plan-confirmation-header {
  flex-shrink: 0;
  margin-bottom: 12px;
  padding-right: 28px;
}

.plan-confirmation-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-align: center;
}

.plan-confirmation-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(199, 125, 255, 0.55) rgba(255, 255, 255, 0.08);
  margin-bottom: 0;
  padding-right: 4px;
}

.plan-confirmation-content::-webkit-scrollbar {
  width: 8px;
}

.plan-confirmation-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.plan-confirmation-content::-webkit-scrollbar-thumb {
  background: rgba(199, 125, 255, 0.45);
  border-radius: 8px;
}

.plan-confirmation-content::-webkit-scrollbar-thumb:hover {
  background: rgba(199, 125, 255, 0.65);
}

.plan-confirmation-summary {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  text-align: center;
}

.plan-confirmation-summary--chosen {
  margin-top: 4px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 12px;
}

.plan-confirmation-summary-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.confirmation-plan-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.confirmation-plan-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.plan-confirmation-form .form-group {
  margin-bottom: 12px;
}

.plan-confirmation-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.plan-confirmation-form input {
  width: 100%;
  padding: 10px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  transition: var(--transition);
}

.plan-confirmation-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--glass-strong);
}

.plan-confirmation-form .form-help {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.4;
}

.plan-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.plan-option {
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--glass);
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.plan-option:hover {
  background: var(--glass-hover);
  border-color: var(--primary);
}

.plan-option input[type="radio"] {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.plan-option input[type="radio"]:checked + .plan-option-content {
  color: var(--primary);
}

.plan-option:has(input[type="radio"]:checked) {
  background: var(--glass-strong);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(199, 125, 255, 0.2);
}

.plan-option-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-option-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}

.plan-option-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 18px;
}

.email-verification-status {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.email-verification-status.warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.email-verification-status.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.email-verification-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.plan-confirmation-actions {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.plan-confirmation-actions .btn-secondary,
.plan-confirmation-actions .btn-primary {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 16px;
}

.plan-confirmation-actions .btn-secondary {
  background: var(--glass);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.plan-confirmation-actions .btn-secondary:hover {
  background: var(--glass-hover);
}

.plan-confirmation-actions .btn-primary {
  background: var(--primary);
  color: white;
}

.plan-confirmation-actions .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(199, 125, 255, 0.4);
}

/* Ajustes apenas para mobile */
@media (max-width: 767px) {
  .plan-confirmation-container {
    padding: 14px 14px 12px !important;
    max-width: calc(100% - 20px) !important;
    max-height: min(94vh, calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 10px)) !important;
    max-height: min(94dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 10px)) !important;
    margin: 8px auto !important;
    overflow: hidden !important;
  }

  .plan-confirmation-modal {
    align-items: flex-start !important;
    padding: 8px !important;
    padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .plan-confirmation-content {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    /* Dica visual: há conteúdo abaixo (role) */
    box-shadow: inset 0 -22px 28px -14px rgba(12, 6, 26, 0.72) !important;
  }

  /* Modal "Confirmar Plano": cards menores + mais ar para ver slug/email */
  .plan-confirmation-modal .plan-confirmation-header {
    margin-bottom: 8px !important;
    padding-right: 24px !important;
  }

  .plan-confirmation-modal .plan-confirmation-title {
    font-size: 16px !important;
  }

  .plan-confirmation-modal .plan-confirmation-form .form-group {
    margin-bottom: 10px !important;
  }

  .plan-confirmation-modal .plan-confirmation-form > .form-group:first-of-type label {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }

  .plan-confirmation-modal .plan-selector {
    gap: 8px !important;
    margin-top: 4px !important;
  }

  .plan-confirmation-modal .plan-option {
    padding: 10px 12px !important;
    border-radius: 10px !important;
  }

  .plan-confirmation-modal .plan-option input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin-right: 10px !important;
    flex-shrink: 0;
  }

  .plan-confirmation-modal .plan-option-name {
    font-size: 14px !important;
  }

  .plan-confirmation-modal .plan-option-price {
    font-size: 14px !important;
  }

  .plan-confirmation-modal .plan-option-price--promo {
    flex-direction: row !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 4px 8px !important;
  }

  .plan-confirmation-modal .plan-option-price-suffix {
    font-size: 10px !important;
  }

  .plan-confirmation-modal .valentine-price-row--compact {
    gap: 6px !important;
  }

  .plan-confirmation-modal .valentine-price-row--compact .valentine-price-now {
    font-size: 0.92rem !important;
  }

  .plan-confirmation-modal .valentine-price-row--compact .valentine-price-was {
    font-size: 0.82rem !important;
  }

  .plan-confirmation-modal .plan-confirmation-summary--chosen {
    padding: 10px 12px !important;
    margin-top: 2px !important;
    margin-bottom: 10px !important;
  }

  .plan-confirmation-modal .plan-confirmation-summary-label {
    font-size: 10px !important;
    margin-bottom: 6px !important;
  }

  .plan-confirmation-modal .confirmation-plan-name {
    font-size: 14px !important;
  }

  .plan-confirmation-modal .confirmation-plan-price {
    font-size: 18px !important;
  }

  .plan-confirmation-modal .confirmation-plan-price .valentine-price-now {
    font-size: 1.08rem !important;
  }

  .plan-confirmation-modal .confirmation-plan-price .valentine-price-was {
    font-size: 0.88rem !important;
  }

  .plan-confirmation-modal .plan-confirmation-compare-open-btn {
    padding: 10px 12px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }

  .plan-confirmation-modal .plan-confirmation-compare-group {
    margin-bottom: 10px !important;
  }

  .plan-confirmation-modal .plan-confirmation-actions {
    margin-top: 10px !important;
    padding-top: 10px !important;
    gap: 10px !important;
  }
}

/* Ajustes de ações apenas para mobile */
@media (max-width: 767px) {
  .plan-confirmation-actions {
    flex-direction: column;
  }

  .plan-confirmation-actions .btn-secondary,
  .plan-confirmation-actions .btn-primary {
    width: 100%;
  }
}

/* ============================================
   PROFILE SECTION
   ============================================ */

#profilePage .profile-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.profile-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.profile-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.profile-form-group {
  margin-bottom: 25px;
}

.profile-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.profile-form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-form-input:focus {
  outline: none;
  border-color: #ff78c4;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 120, 196, 0.1);
}

.profile-form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Animação de destaque para campo de email */
.email-highlight {
  animation: emailPulse 2s ease-in-out infinite;
}

@keyframes emailPulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 0 20px rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.3), 0 0 30px rgba(99, 102, 241, 0.6);
  }
}

.profile-form-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
  line-height: 1.4;
}

.profile-info-section {
  margin-top: 35px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-info-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
}

.profile-info-grid {
  display: grid;
  gap: 15px;
}

.profile-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-info-item:last-child {
  border-bottom: none;
}

.profile-info-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.profile-info-value {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.profile-status {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.profile-status.success {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
  display: block;
}

.profile-status.error {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
  display: block;
}

.profile-status.loading {
  background: rgba(255, 120, 196, 0.15);
  color: #ff78c4;
  border: 1px solid rgba(255, 120, 196, 0.3);
  display: block;
}

.profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  justify-content: flex-end;
}

.profile-actions .btn-primary,
.profile-actions .btn-secondary {
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.profile-actions .btn-primary {
  background: linear-gradient(135deg, #ff78c4, #ff4d9e) !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 0 30px rgba(255, 120, 196, 0.4) !important;
  position: relative;
  overflow: hidden;
}

.profile-actions .btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.profile-actions .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 20px rgba(255, 120, 196, 0.4) !important;
}

.profile-actions .btn-primary:hover::before {
  opacity: 1;
}

.profile-actions .btn-primary .btn-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.profile-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.profile-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

.profile-container {
  padding: 20px 15px;
}

.profile-form {
  padding: 20px;
}

.profile-actions {
  flex-direction: column;
}

.profile-actions .btn-primary,
.profile-actions .btn-secondary {
  width: 100%;
  min-width: auto;
}

/* ========== MODAL DE SUGESTÕES DO EDITOR ========== */
.suggestions-modal { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 50px 20px 120px; box-sizing: border-box; }
.suggestions-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.75); }
.suggestions-panel { position: relative; background: rgb(28, 24, 38); border: 1px solid rgba(255,120,196,0.3); border-radius: 16px; max-width: 480px; width: 100%; height: 420px; max-height: calc(100dvh - 170px); max-height: calc(100vh - 170px); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.7); }
.suggestions-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid rgba(255,120,196,0.2); flex-shrink: 0; }
.suggestions-title { margin: 0; font-size: 18px; color: #ff78c4; }
.suggestions-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.suggestions-close:hover { background: rgba(255,120,196,0.2); }
.suggestions-content { padding: 20px; overflow-y: auto; flex: 1; min-height: 0; -webkit-overflow-scrolling: touch; }
.suggestion-item { padding: 12px 16px; margin-bottom: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,120,196,0.2); border-radius: 8px; cursor: pointer; transition: all 0.2s; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.suggestion-item:hover { background: rgba(255,120,196,0.15); border-color: rgba(255,120,196,0.4); }
.suggestion-item .suggestion-text { flex: 1; min-width: 0; color: var(--text-primary, #fff); font-size: 14px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.suggestion-item .btn-use {
  align-self: center;
  padding: 6px 12px;
  background: linear-gradient(135deg, #ff78c4, #ff4d9e);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.suggestion-song { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,120,196,0.2); border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.suggestion-song:hover { background: rgba(255,120,196,0.15); }
.suggestion-song img { width: 60px; height: 45px; object-fit: cover; border-radius: 6px; }
.suggestion-song-info { flex: 1; }
.suggestion-song-title { color: var(--text-primary, #fff); font-weight: 600; margin-bottom: 2px; }
.suggestion-song-artist { color: var(--text-secondary, rgba(255,255,255,0.7)); font-size: 12px; }

/* Modal de sugestões: mobile — folha em baixo, altura máxima útil (header + botão flutuante) */
@media (max-width: 767px) {
  #suggestionsModal.suggestions-modal {
    z-index: 12000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    /* Espaço no topo para não ficar por baixo do header da página de edição */
    padding-top: max(56px, calc(env(safe-area-inset-top, 0px) + 48px));
    /* Espaço em baixo para o botão fixo “Ver prévia” + safe area */
    padding-bottom: max(92px, calc(env(safe-area-inset-bottom, 0px) + 80px));
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }

  #suggestionsModal .suggestions-overlay {
    /* overlay continua a cobrir o ecrã inteiro por baixo do painel */
    z-index: 0;
  }

  #suggestionsModal .suggestions-panel {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    height: auto;
    max-height: none;
    border-radius: 18px 18px 0 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  #suggestionsModal .suggestions-header {
    padding: 12px 14px;
    flex-shrink: 0;
  }

  #suggestionsModal .suggestions-title {
    font-size: 16px;
    line-height: 1.25;
    padding-right: 8px;
    overflow-wrap: anywhere;
  }

  #suggestionsModal .suggestions-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 10px 12px 20px;
  }

  #suggestionsModal .suggestion-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    box-sizing: border-box;
  }

  #suggestionsModal .suggestion-item .btn-use {
    width: 100%;
    align-self: stretch;
    padding: 10px 12px;
    font-size: 13px;
  }

  #suggestionsModal .suggestion-song {
    flex-wrap: wrap;
  }
}

/* ========== BREAKPOINTS MOBILE-FIRST (min-width only) ========== */

@media (min-width: 768px) {
  /* Só /edit/: mais espaço na base da página (sem afetar header) */
  body:has(.site-editor-page) .site-editor-page {
    padding-bottom: clamp(120px, 14vw, 180px);
  }

  main {
    padding-top: 0;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    position: static;
    background: transparent;
    border: none;
    border-top: none;
    padding: 0;
    box-shadow: none;
    gap: clamp(14px, 2.2vw, 40px);
    row-gap: 8px;
    width: auto;
    min-width: 0;
    order: 0;
    margin-left: auto;
  }
  
  /* No desktop, quando não logado, botões e menu lado a lado */
  #authButtons {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-left: 40px;
  }
  
  #userMenu {
    display: flex;
    align-items: center;
    margin-left: 40px;
  }

  .nav-links .nav-link {
    display: inline-block;
    font-size: 18px;
    font-weight: 500;
    padding: 0;
    color: var(--text-primary);
    white-space: nowrap;
  }
  .nav-links .nav-link:hover {
    color: var(--primary);
  }

  .header {
    padding: 20px 0 0;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
  }

  .header .container {
    flex-wrap: nowrap;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    gap: 0;
    align-content: center;
    justify-content: flex-start;
  }
  .header .nav {
    margin-left: auto;
    justify-content: flex-end;
  }
  
  /* Nas páginas de app (pedidos/perfil), nav sempre à direita */
  .app-header .app-nav {
    margin-left: auto !important;
    justify-content: flex-end !important;
  }

  .logo {
    font-size: 24px;
    gap: 10px;
  }

  .logo-img {
    height: 90px;
  }

  .logo-text {
    font-size: 30px;
  }

  .nav {
    gap: 40px;
    flex-wrap: nowrap;
  }
  
  /* Espaçamento maior entre nav-link e userMenu nas páginas de app */
  .app-nav .nav-link {
    margin-right: 20px;
  }

  body:has(.site-editor-page) .app-nav .nav-link-back-pedidos,
  body:has(.section-orders) .app-nav .nav-link-back-site {
    color: var(--text-primary);
  }
  
  .app-nav #userMenu {
    margin-left: 0;
  }

  .user-profile-name {
    max-width: 140px;
  }

  .user-profile-dropdown {
    width: 280px;
    right: 0;
  }

  .hero {
    padding: 140px 20px 80px;
    padding-top: 140px;
    overflow: visible;
  }

  .hero::before {
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    filter: blur(80px);
  }

  .hero::after {
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    filter: blur(80px);
  }

  .hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
  }

  .hero-content {
    max-width: 600px;
    width: auto;
  }

  .hero-title {
    font-size: clamp(40px, 6vw, 72px);
  }

  .hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
  }

  .btn-hero {
    width: auto;
    max-width: none;
    padding: 18px 40px;
    font-size: 18px;
  }

  .iphone-float {
    padding: 80px 0;
  }

  .iphone-frame {
    width: 380px;
    max-width: 380px;
    height: 805px;
    aspect-ratio: auto;
    border-radius: 68px;
    padding: 16px;
    transform: rotateY(-5deg) rotateX(5deg) scale(1.1);
    box-shadow:
      0 80px 160px rgba(0, 0, 0, 0.8),
      0 35px 65px rgba(0, 0, 0, 0.6),
      0 0 100px rgba(255, 120, 196, 0.3);
    animation: phoneFloat 3s ease-in-out infinite;
  }

  .iphone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.15);
    box-shadow:
      0 90px 180px rgba(0, 0, 0, 0.9),
      0 40px 75px rgba(0, 0, 0, 0.7),
      0 0 120px rgba(255, 120, 196, 0.5);
    animation: none;
  }

  @keyframes phoneFloat {
    0%, 100% { transform: rotateY(-5deg) rotateX(5deg) scale(1.1) translateY(0); }
    50% { transform: rotateY(-3deg) rotateX(3deg) scale(1.12) translateY(-10px); }
  }

  .section-how,
  .section-features,
  .section-pricing {
    padding: 100px 20px;
  }

  .section-how {
    padding-top: 120px;
  }

  .section-preview {
    padding: 120px 20px;
  }

  .section-preview .container {
    max-width: 1400px;
  }

  .section-help {
    padding: 80px 20px;
  }

  .preview-wrapper {
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
  }

  .preview-device-frame {
    padding: 20px;
  }

  .preview-content-frame,
  .section-preview .preview-content-frame {
    min-height: 500px;
    height: auto;
    aspect-ratio: 9 / 16;
    max-height: none;
    width: 100%;
  }

  .preview-header {
    margin-bottom: 80px;
  }

  .preview-header .section-title {
    white-space: nowrap;
    font-size: clamp(36px, 5vw, 56px);
  }

  .preview-feature-item {
    flex-direction: row;
    text-align: left;
  }

  .preview-cta {
    padding: 40px 20px;
    margin-top: 60px;
  }

  .footer {
    padding: 20px 20px 20px;
  }

  .footer-column:not(:first-child) {
    margin-top: 90px;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .footer-bottom-content {
    flex-direction: row;
    text-align: left;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card {
    padding: 40px 30px;
  }

  .pricing-card.featured {
    transform: scale(1.05);
  }

  .ai-assistant-card {
    left: auto;
    max-width: 380px;
  }

  .ai-mini-message {
    left: auto;
    max-width: 360px;
  }

  .ai-chat-panel {
    width: 380px;
    height: 600px;
  }

  .help-tabs {
    flex-direction: row;
  }

  .help-tab {
    width: auto;
    border-bottom: none;
    border-left: none;
    border-right: 3px solid transparent;
  }

  .help-tab.active {
    border-right-color: var(--primary);
    border-bottom-color: transparent;
  }

  .contact-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .contact-card {
    padding: 32px;
  }

  .order-status-actions {
    flex-direction: row;
  }

  .order-status-actions button {
    width: auto;
  }

  .plan-confirmation-container {
    max-width: 380px;
  }

  .plan-confirmation-actions {
    flex-direction: row;
  }

  .plan-confirmation-actions .btn-secondary,
  .plan-confirmation-actions .btn-primary {
    width: auto;
  }

  .profile-actions {
    flex-direction: row;
  }

  .profile-actions .btn-primary,
  .profile-actions .btn-secondary {
    width: auto;
    min-width: 150px;
  }
}

@media (min-width: 1024px) {
  .footer-main {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .site-editor-content {
    grid-template-columns: 400px 1fr;
    grid-template-rows: 1fr;
  }

  .site-editor-modal:not(.preview-fullscreen) .site-editor-content {
    grid-template-columns: 400px 1fr;
  }

  .site-editor-controls {
    max-height: none;
    border-right: 1px solid var(--glass-border);
    border-bottom: none;
  }
}

@media (min-width: 1280px) {
  .preview-wrapper {
    gap: 60px;
  }
}

/* Barra de ações da prévia em tela cheia (/edit/) */
.preview-fullscreen-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.preview-fullscreen-back-btn {
  padding: 8px 16px;
  font-size: 14px;
  white-space: nowrap;
}

/* Header app: ícone + rótulo curto no mobile; texto longo no desktop (edit + pedidos/perfil) */
.nav-link-back-pedidos .nav-link-back-inner,
.nav-link-back-site .nav-link-back-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link-back-pedidos .nav-link-back-icon,
.nav-link-back-site .nav-link-back-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.92;
}

.nav-link-back-pedidos .nav-link-back-label--long,
.nav-link-back-site .nav-link-back-label--long {
  display: none;
}

.nav-link-back-pedidos .nav-link-back-label--short,
.nav-link-back-site .nav-link-back-label--short {
  display: inline;
}

@media (min-width: 768px) {
  .nav-link-back-pedidos .nav-link-back-icon,
  .nav-link-back-site .nav-link-back-icon {
    display: none;
  }

  .nav-link-back-pedidos .nav-link-back-label--short,
  .nav-link-back-site .nav-link-back-label--short {
    display: none;
  }

  .nav-link-back-pedidos .nav-link-back-label--long,
  .nav-link-back-site .nav-link-back-label--long {
    display: inline;
  }
}

/* ============================================
   PÁGINA /edit/{slug}/ — MOBILE APENAS (max-width: 767px)
   Regras escopadas para não alterar desktop ≥768px
   ============================================ */
@media (max-width: 767px) {
  /* Header /edit/: uma linha compacta — menos “rodapé de cima”, mais área útil */
  body:has(.site-editor-page) .header {
    min-height: 0 !important;
    padding-bottom: 6px !important;
    padding-top: max(6px, env(safe-area-inset-top, 0px)) !important;
  }

  body:has(.site-editor-page) .header .container {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    row-gap: 0;
    min-height: 0 !important;
    padding-left: max(10px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(10px, env(safe-area-inset-right, 0px)) !important;
  }

  body:has(.site-editor-page) .header .logo {
    flex: 0 1 auto;
    max-width: min(42%, 160px);
    min-width: 0;
    transform: none;
  }

  body:has(.site-editor-page) .header .logo-img {
    height: clamp(30px, 7.5vw, 36px) !important;
  }

  body:has(.site-editor-page) .header .logo-text {
    font-size: clamp(0.8rem, 3.2vw, 0.95rem) !important;
  }

  body:has(.site-editor-page) .header .nav.app-nav {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 6px !important;
  }

  /* Voltar (edição + pedidos/perfil): mesma cápsula — ícone + rótulo curto */
  body:has(.site-editor-page) .app-nav .nav-link-back-pedidos,
  body:has(.section-orders) .app-nav .nav-link-back-site {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(78vw, 300px);
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  body:has(.site-editor-page) .nav-link-back-pedidos .nav-link-back-inner,
  body:has(.section-orders) .nav-link-back-site .nav-link-back-inner {
    gap: 7px;
    padding: 7px 11px 7px 9px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.22);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  }

  body:has(.site-editor-page) .nav-link-back-pedidos .nav-link-back-label--short,
  body:has(.section-orders) .nav-link-back-site .nav-link-back-label--short {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
  }

  body:has(.site-editor-page) .app-nav .nav-link-back-pedidos:hover .nav-link-back-inner,
  body:has(.site-editor-page) .app-nav .nav-link-back-pedidos:focus-visible .nav-link-back-inner,
  body:has(.section-orders) .app-nav .nav-link-back-site:hover .nav-link-back-inner,
  body:has(.section-orders) .app-nav .nav-link-back-site:focus-visible .nav-link-back-inner {
    border-color: rgba(255, 120, 196, 0.5);
    background: rgba(255, 120, 196, 0.14);
    color: #fff;
  }

  body:has(.site-editor-page) .app-nav #userMenu {
    flex-shrink: 0;
  }

  body:has(.site-editor-page) .user-profile-btn {
    padding: 4px 6px !important;
    min-height: 36px !important;
    height: auto !important;
  }

  body:has(.site-editor-page) .user-profile-menu .user-profile-dropdown {
    right: 0;
    left: auto;
    width: min(280px, calc(100vw - 24px));
  }

  /* Rodapé maior sem sobrepor o botão flutuante (~56px + margens + safe area) */
  .site-editor-page {
    padding-top: calc(env(safe-area-inset-top, 0px) + 60px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + max(152px, 22vh));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  .site-editor-page > .container {
    padding-left: max(4px, env(safe-area-inset-left, 0px));
    padding-right: max(4px, env(safe-area-inset-right, 0px));
  }

  .site-editor-header-page {
    margin-top: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .site-editor-header-page .section-title {
    font-size: 1.28rem;
    line-height: 1.28;
    margin-bottom: 6px;
  }

  .site-editor-header-page .section-subtitle {
    font-size: 0.875rem;
    line-height: 1.42;
    margin-bottom: 0;
  }

  .site-editor-controls-page {
    padding: 16px 14px !important;
    border-radius: 14px;
  }

  .site-editor-form > .editor-section + .editor-section {
    margin-top: 14px;
  }

  .site-editor-page .editor-section {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .site-editor-page .editor-section-title {
    font-size: 0.95rem;
    margin: -2px 0 12px 0;
    padding: 10px 12px;
    padding-left: 14px;
    line-height: 1.35;
    word-break: break-word;
  }

  .site-editor-page .editor-subsection > .editor-section-title {
    font-size: 0.9rem;
  }

  .site-editor-page .editor-hint {
    font-size: 12px;
  }

  /* Barra de ações: grade 2×2 em telas estreitas */
  .site-editor-page .editor-actions-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
  }

  .site-editor-page .editor-actions-strip .btn-secondary,
  .site-editor-page .editor-actions-strip .btn-primary {
    flex: none;
    min-width: 0;
    width: 100%;
    padding: 12px 8px;
    font-size: 12px;
    line-height: 1.25;
  }

  /* Prévia flutuante: centralizada, respeita safe area */
  .floating-preview-btn {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
    padding: 12px 20px;
    font-size: 14px;
    max-width: calc(100vw - 32px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .floating-preview-btn:hover {
    transform: translateX(-50%) translateY(-2px);
  }

  /* Modal prévia tela cheia */
  .preview-fullscreen-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px max(12px, env(safe-area-inset-right, 0px)) 12px max(12px, env(safe-area-inset-left, 0px));
    padding-top: max(12px, env(safe-area-inset-top, 0px));
  }

  .preview-fullscreen-header h3 {
    font-size: 1rem;
    text-align: center;
    width: 100%;
  }

  .preview-fullscreen-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .preview-fullscreen-back-btn {
    flex: 1;
    min-width: 0;
    white-space: normal;
    text-align: center;
    padding: 10px 10px !important;
    font-size: 12px !important;
    line-height: 1.3;
  }

  .preview-fullscreen-close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
  }

  .preview-fullscreen-content {
    min-height: 0;
  }

  /* Quiz: alternativas em coluna */
  .site-editor-page .quiz-option-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .site-editor-page .quiz-option-row .quiz-option-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .site-editor-page .quiz-correct-label {
    align-self: flex-start;
  }

  /* Músicas YouTube (HTML inline no app.js) — remover discreto, não barra vermelha full-width */
  .site-editor-page .youtube-song-item {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .site-editor-page .youtube-song-item .btn-remove-youtube {
    flex-shrink: 0;
    width: auto !important;
    margin-top: 0 !important;
    margin-left: auto;
    padding: 6px 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 180, 190, 0.95) !important;
    border: 1px solid rgba(231, 76, 60, 0.35) !important;
    border-radius: 8px !important;
    opacity: 1 !important;
  }

  .site-editor-page .youtube-song-item .btn-remove-youtube:not(:disabled):hover {
    background: rgba(231, 76, 60, 0.18) !important;
    border-color: rgba(231, 76, 60, 0.5) !important;
    color: #fff !important;
  }

  .site-editor-page .youtube-song-item .btn-remove-youtube:disabled {
    opacity: 0.42 !important;
  }

  .site-editor-page .editor-item-header {
    align-items: flex-start;
  }

  .site-editor-page .editor-polaroids-preview-panel {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    padding: 12px;
  }
}

@media (max-width: 380px) {
  .site-editor-page .editor-actions-strip .btn-secondary,
  .site-editor-page .editor-actions-strip .btn-primary {
    font-size: 11px;
    padding: 10px 6px;
  }
}

/* ========== TOUR GUIADO DA LANDING ========== */
.landing-guided-tour-root {
  position: fixed;
  inset: 0;
  z-index: 25000;
  pointer-events: none;
}

.landing-guided-tour-root:not([hidden]) {
  pointer-events: auto;
}

.guided-tour-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  /* Sem fundo aqui: o escurecimento vem só dos .guided-tour-shade (o recorte fica realmente transparente). */
  background: transparent;
}

.guided-tour-shades {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.guided-tour-layer--finale .guided-tour-shades,
.guided-tour-layer--finale .guided-tour-ring {
  opacity: 0;
  visibility: hidden;
}

.guided-tour-shade {
  position: absolute;
  background: rgba(18, 10, 38, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
  transition: top 0.35s ease, left 0.35s ease, width 0.35s ease, height 0.35s ease, opacity 0.25s ease;
}

.guided-tour-ring {
  position: absolute;
  border-radius: 14px;
  border: 2px solid rgba(199, 125, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 32px rgba(199, 125, 255, 0.45);
  pointer-events: none;
  transition: top 0.35s ease, left 0.35s ease, width 0.35s ease, height 0.35s ease, opacity 0.25s ease;
  z-index: 2;
}

.guided-tour-panel {
  position: fixed;
  z-index: 3;
  width: min(480px, calc(100vw - 28px));
  max-width: 480px;
  max-height: min(88vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 26px 28px 22px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(40, 24, 70, 0.98) 0%, rgba(22, 12, 40, 0.98) 100%);
  border: 1px solid rgba(199, 125, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: guidedTourPanelIn 0.45s ease;
}

.guided-tour-layer--finale .guided-tour-panel {
  display: flex;
  flex-direction: column;
  max-height: min(90dvh, 680px);
  overflow: hidden;
  padding-bottom: 18px;
  animation: guidedTourFinaleIn 0.5s ease;
  max-width: 500px;
  width: min(500px, calc(100vw - 28px));
}

.guided-tour-layer--finale .guided-tour-panel-top,
.guided-tour-layer--finale .guided-tour-step-title {
  flex-shrink: 0;
}

.guided-tour-layer--finale .guided-tour-step-text {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
}

.guided-tour-layer--finale .guided-tour-progress {
  display: none;
}

.guided-tour-layer--finale .guided-tour-panel-actions {
  flex-shrink: 0;
  margin-top: auto;
}

.guided-tour-layer--finale .guided-tour-finale-actions {
  flex-shrink: 0;
  margin-top: 10px;
}

@keyframes guidedTourPanelIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes guidedTourFinaleIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.guided-tour-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.guided-tour-step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(199, 125, 255, 0.95);
}

.guided-tour-skip {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
}

.guided-tour-skip:hover {
  color: var(--text-secondary);
}

.guided-tour-step-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
  line-height: 1.25;
}

.guided-tour-step-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 18px;
  white-space: pre-line;
}

.guided-tour-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.guided-tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.guided-tour-dot.is-active {
  background: var(--primary);
  transform: scale(1.15);
}

.guided-tour-panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
  align-items: stretch;
  margin-top: 6px;
}

.guided-tour-panel-actions.guided-tour-panel-actions--solo {
  grid-template-columns: 1fr;
}

.guided-tour-panel-actions .btn-small {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.guided-tour-finale-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 8px;
}

.guided-tour-finale-actions .btn-small {
  min-height: 52px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

body.guided-tour-active {
  overflow: hidden;
}

@media (max-width: 560px) {
  .guided-tour-panel-actions:not(.guided-tour-panel-actions--solo) {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guided-tour-panel {
    padding: 22px 20px 20px;
    animation: guidedTourPanelInMobile 0.42s ease;
  }

  .guided-tour-layer--finale .guided-tour-panel {
    animation: guidedTourFinaleInMobile 0.45s ease;
  }
}

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

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