/* ======================================================================
   1️⃣  Variables – Professional Bitcoin palette
   ====================================================================== */
:root {
  /* Refined Bitcoin colors */
  --primary: #F7931A;
  --primary-light: #FFB347;
  --primary-dark: #E6841A;
  --secondary: #2C3E50;
  --secondary-light: #34495E;
  --accent: #1A1A1A;
  --accent-light: #333333;

  /* Bitcoin-inspired gradients */
  --bg-gradient: linear-gradient(135deg, #FFF8E7 0%, #FFF3D3 50%, #FFECB3 100%);
  --card-gradient: linear-gradient(145deg, rgba(247,147,26,0.08) 0%, rgba(247,147,26,0.04) 100%);
  --button-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --hero-gradient: linear-gradient(135deg, rgba(247,147,26,0.15) 0%, rgba(247,147,26,0.08) 100%);

  /* Text colors */
  --text-primary: #2C3E50;
  --text-secondary: #5D6D7E;
  --text-light: #2C3E50;
  --text-muted: #7F8C8D;

  /* Shadows & effects */
  --shadow-soft: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-button: 0 4px 15px rgba(247,147,26,0.4);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-small: 8px;

    /* tamanhos de fonte responsivos (em rem) */
  --logo-size:   5.5rem;
  --title-size:  5rem;
}

/* ======================================================================
   2️⃣  Global styles
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: var(--font);
  color: var(--text-primary);
  line-height: 1.6;
  padding-top: 28px !important;
}




/* ======================================================================
   3️⃣  Layout
   ====================================================================== */

/* 1.2 Container – mantém a largura máxima e centraliza */
.container {
  max-width: 1200px;            /* largura máxima consistente */
  margin-left: auto;            /* margem esquerda automática */
  margin-right: auto;           /* margem direita automática */
  padding: 0 2rem;              /* espaçamento interno */
  width: 100%;                  /* ocupa 100% da largura do viewport */
  box-sizing: border-box;       /* inclui padding na largura */
}
a {
  text-decoration: none;
}

header {
  padding: 2rem 0;
  position: relative;
  z-index: 10;
  text-align: center; /* Centraliza o logo dentro do container */
}


.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap; /* Impede que os itens quebrem a linha */
  gap: 0.75rem;
}



/* === Texto do meio (opcional, sem estilos extras)  === */
.logo-text {
  /*margin: 0 1rem;          separa do logo à esquerda */
  color: var(--text-primary);
  font-weight: 800;
  /*font-size: var(--title-size);*/
  font-size: clamp(1.5rem, 6vw, 3rem);
  text-decoration: none;
}

/* Símbolos do logo com tamanho fluido e animação */
.logo-symbol {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(247,147,26,0.5);
  display: inline-block;
  animation: float 3s ease-in-out infinite;
  /* USO DE CLAMP() PARA TAMANHO FLUIDO E DINÂMICO */
   font-size: clamp(1.5rem, 6vw, 3rem);
}

/* Container Flexbox para alinhar o título e os símbolos */
.hero-title-with-symbols {
  display: flex;
  align-items: center; /* Alinha verticalmente os símbolos e o texto */
  justify-content: center; /* Centraliza todo o conjunto (símbolos + texto) */
  gap: 0.5em; /* Espaçamento entre os símbolos e o texto */
  
  /* Mantém o estilo original do h1, mas agora o font-size é para o TEXTO, não para os símbolos */
  font-size: clamp(2.5rem, 10vw, 5rem); 
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease-out 0.2s forwards;
  word-break: break-word;
  padding: 0 0.5em; /* Adiciona um pequeno padding para que os símbolos não "colem" nas bordas em telas pequenas */
}

/* Estilo para os símbolos do hero */
.hero-symbol {
  color: var(--primary); /* Usa a cor primária do Bitcoin */
  text-shadow: 0 0 20px rgba(247,147,26,0.5); /* Sombra para destacá-los */
  animation: float 3s ease-in-out infinite; /* Animação flutuante */
  display: inline-block; /* Garante que a animação funcione corretamente */
  
  /* Tamanho dos símbolos - ligeiramente maior que o texto principal */
  font-size: clamp(2.5rem, 10vw, 5rem); 
  line-height: 1; /* Para evitar problemas de alinhamento vertical com o texto */
}

main {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

/* ======================================================================
   MENU DROPDOWN ELEGANTE (IDIOMAS E NAVEGAÇÃO)
   ====================================================================== */
.language-dropdown-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(247,147,26,0.15);
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.dropdown-wrapper {
    position: relative;
}

/* Botão Toggle (Sem borda, limpo) */
.lang-toggle-btn {
    background: none;
    border: none; /* Removida a borda */
    padding: 0.5rem 0.2rem; /* Padding ajustado */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.lang-toggle-btn:hover {
    color: var(--primary); /* Cor laranja no hover do botão principal */
}

/* Seta SVG */
.dropdown-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
}

.lang-toggle-btn.open .dropdown-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Menu Flutuante (Base) */
.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #FFFFFF;
    min-width: 200px;
    border-radius: 12px; /* Mais arredondado */
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 1px solid rgba(247,147,26,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    padding: 0.5rem 0; /* Espaço interno no topo/fundo */
}

/* Variante para Menu à Direita (Hambúrguer) */
.custom-dropdown-menu.dropdown-right {
    left: auto;
    right: 0;
}

/* Estado Aberto */
.custom-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Itens do Menu */
.dropdown-item {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

/* O texto dentro do link (para posicionar a linha) */
.dropdown-item span {
    position: relative;
    padding-bottom: 2px;
}

/* LINHA LARANJA ANIMADA */
.dropdown-item span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary); /* Laranja Bitcoin */
    transition: width 0.3s ease-out;
}

/* Hover: Texto muda de cor e linha cresce */
.dropdown-item:hover {
    color: var(--primary);
    background: rgba(247,147,26,0.03); /* Fundo muito sutil, opcional */
}

.dropdown-item:hover span::after {
    width: 100%; /* A linha percorre a palavra */
}

/* CORREÇÃO: Removemos a linha fixa "presa" */
.dropdown-item.active span::after {
    width: 0; /* Começa sem linha, igual aos outros */
    background-color: #E6841A;
}

/* A linha aparece apenas no HOVER (animação) */
.dropdown-item.active:hover span::after {
    width: 100%;
}

/* Botão Hambúrguer (Estilo ajustado) */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover span {
    background: var(--primary);
}

/* Animação do X no Hambúrguer */
.hamburger-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Regra para ocultar quando o modal abre */
body.modal-open .language-dropdown-container {
    display: none !important;
}

/* ======================================================================
   4️⃣  Hero section
   ====================================================================== */
.hero {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 5;
  padding: 0 1rem;
  overflow: hidden; 
}


.hero-background {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--hero-gradient);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: 0;
  animation: heroGlow 2s ease-out 0.5s forwards;
}

.hero h1 {
  font-size: clamp(2rem, 10vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease-out 0.2s forwards;
  word-break: break-word;
}

.hero h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--button-gradient);
  border-radius: 2px;
  opacity: 0;
  animation: slideUp 1s ease-out 0.8s forwards;
}

.hero .subheading {
  font-size: clamp(1rem, 4vw, 1.4rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 1s ease-out 0.4s forwards;
  padding: 0 1rem;
  line-height: 1.5;
}

/* ======================================================================
   5️⃣  Features grid
   ====================================================================== */

/* ======================================================================
   5️⃣  Features grid (CORRIGIDO: Sem pulos + Movimento Suave)
   ====================================================================== */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 4rem;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
}

.feature {
  /* Cores e Bordas idênticas ao Contato/Compra */
  background: var(--card-gradient);
  border: 1px solid rgba(247,147,26,0.15);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  
  position: relative;
  overflow: hidden;
  
  flex: 1 1 250px;
  min-width: 250px;
  max-width: 350px;

  /* --- CORREÇÃO DO PULO --- */
  /* 1. Definimos o estado FINAL como o padrão */
  opacity: 1;
  transform: translateY(0);

  /* 2. A animação roda e usa 'backwards' para aplicar o 0% antes de começar */
  /* Removemos 'forwards' para que, ao acabar, o CSS assuma o controle */
  animation: slideUpFade 0.8s ease-out backwards;
  
  /* 3. Transição suave e lenta (0.5s) para o efeito de flutuar */
  transition: 
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
    box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
    border-color 0.5s ease;
}

/* Delays para efeito cascata */
.feature:nth-child(1) { animation-delay: 0.2s; }
.feature:nth-child(2) { animation-delay: 0.3s; }
.feature:nth-child(3) { animation-delay: 0.4s; }
.feature:nth-child(4) { animation-delay: 0.5s; }

/* A LINHA LARANJA */
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; 
  height: 2px;
  background: var(--button-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

/* --- EFEITOS DE HOVER (FLUTUAR) --- */
.feature:hover {
  /* Agora o movimento será respeitado sem pular */
  transform: translateY(-8px); /* Sobe um pouco mais para destacar */
  
  /* Sombra difusa e elegante */
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  
  /* Borda destaca levemente */
  border-color: rgba(247,147,26,0.4);
}

/* Linha aparece */
.feature:hover::before {
  transform: scaleX(1);
}

/* Ícone aumenta suavemente */
.feature:hover .feature-icon {
    transform: scale(1.1);
}

/* --- Estilos Internos --- */
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(247,147,26,0.3));
  /* Transição sincronizada com o card */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Animação corrigida: define começo e fim explicitamente */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ======================================================================
   6️⃣  Book Banner section (ATUALIZADO: Estilo Glass + Efeitos Suaves)
   ====================================================================== */
.book-banner {
  /* 1. Base Visual (Igual aos outros cards) */
  background: var(--card-gradient);
  border: 1px solid rgba(247,147,26,0.15);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  margin: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  
  /* 2. Configuração da Animação de Entrada (Sem travar o hover) */
  opacity: 1;
  transform: translateY(0);
  animation: slideUpFade 1s ease-out backwards;
  animation-delay: 0.5s; /* Aparece logo depois dos features */

  /* 3. Transição Premium (Suave) */
  transition: 
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
    box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
    border-color 0.5s ease;
}

/* A LINHA LARANJA NO TOPO */
.book-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; 
  height: 2px; /* Espessura padrão */
  background: var(--button-gradient);
  
  /* Começa invisível */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

/* --- EFEITOS AO PASSAR O MOUSE (HOVER) --- */
.book-banner:hover {
  transform: translateY(-8px); /* Flutua suavemente */
  box-shadow: 0 20px 40px rgba(0,0,0,0.12); /* Sombra difusa */
  border-color: rgba(247,147,26,0.4); /* Borda destaca */
}

.book-banner:hover::before {
  transform: scaleX(1); /* Linha preenche o topo */
}


/* Botão CTA (Agora Laranja para destacar no fundo claro) */
/* Botão CTA (Ajustado para altura padrão de 54px) */
.book-banner .cta-button {
  /* Flexbox para centralizar o texto verticalmente com altura fixa */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  height: 54px; /* Altura fixa igual aos formulários */
  min-height: 54px;
  padding: 0 3rem; /* Padding apenas lateral */
  gap: 0.8rem; /* Espaço para a seta  */
  
  background: var(--button-gradient);
  color: #FFFFFF;
  border-radius: var(--radius-small);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  box-shadow: 0 10px 20px rgba(247,147,26,0.3);
  cursor: pointer;
  
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  
}

/* Efeito Shine no Botão */
.book-banner .cta-button::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.book-banner .cta-button:hover::before {
  left: 100%;
}

.book-banner .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(247,147,26,0.6);
}

.book-banner .cta-button:active {
  transform: translateY(-1px);
}

/* Layout de Grid (2 Colunas) */
.book-banner-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Texto ocupa mais espaço, Livro menos */
  align-items: center;
  gap: 2rem;
  padding: 3rem 2rem; /* Padding interno real */
}

/* --- LADO ESQUERDO: TEXTO --- */
.book-content {
  text-align: left; /* Alinhamento à esquerda vende mais (leitura natural) */
  z-index: 2;
}

/* Badge (Pequena etiqueta acima do título) */
.badge-highlight {
  display: inline-block;
  background: rgba(247,147,26,0.1);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  border: 1px solid rgba(247,147,26,0.2);
}

.book-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.book-content .impact-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Lista de Benefícios */
.book-benefits {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.book-benefits li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Botão CTA Melhorado */
.cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}



.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(247,147,26,0.5);
}

.arrow {
  transition: transform 0.3s ease;
}
.cta-button:hover .arrow {
  transform: translateX(5px); /* Seta move para direita */
}

.secure-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* --- LADO DIREITO: VISUAL --- */
.book-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px; /* Necessário para o efeito 3D */
}

/* O Brilho laranja atrás do livro */
.book-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(247,147,26,0.3) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: pulseGlow 4s infinite alternate;
}




.book-cover {
  max-width: 280px;
  width: 100%;
  height: auto;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-small);
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #FFFFFF;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;

  /* Sombra base inicial (suave e escura) */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);

  /* ADICIONADO: Transição suave idêntica à da página de contato */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2; /* Garante que fique acima de elementos decorativos */  
}

.book-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shine 4s ease-in-out infinite;
}

/* --- NOVO: EFEITO AO PASSAR O MOUSE NO CARD --- */
/* Quando passar o mouse no card (.book-info), a capa (.book-cover) reage */
.book-banner:hover .book-cover {
  /* 1. Zoom suave */
  transform: scale(1.08); 
  
  /* 2. Sombra fica alaranjada e mais forte */
  box-shadow: 0 20px 40px rgba(247,147,26,0.5); 
}

/* Selo Flutuante */
.floating-badge {
  position: absolute;
  bottom: 10%;
  right: 5%;
  background: #FFFFFF;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  z-index: 2;
  text-align: center;
  animation: float 3s ease-in-out infinite;
  border: 1px solid rgba(247,147,26,0.1);
}
.floating-badge span {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}
.floating-badge .stars {
  color: #F1C40F; /* Dourado */
  font-size: 0.8rem;
  letter-spacing: 2px;
}

/* --- ANIMAÇÕES ESPECÍFICAS --- */
@keyframes pulseGlow {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 900px) {
  .book-banner-grid {
    grid-template-columns: 1fr; /* Vira coluna única */
    text-align: center;
    gap: 3rem;
  }

  .book-content {
    text-align: left;
    order: 2; /* Texto vai para baixo no mobile */
  }

  .book-visual {
    order: 1; /* Imagem vai para cima no mobile */
  }
  
  .cta-wrapper {
    align-items: center; /* Centraliza botão no mobile */
  }
  
  .book-cover {
    max-width: 200px; /* Menor no mobile */

  }

  /* Efeito Interativo: O livro "olha" para o usuário */
  .book-banner:hover .book-cover {
  /* 1. Zoom suave */
  transform: scale(1.08); 
  
  /* 2. Sombra fica alaranjada e mais forte */
  box-shadow: 0 20px 40px rgba(247,147,26,0.5); 
  }
}

/* ======================================================================
   7️⃣  CTA section
   ====================================================================== */
.cta {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease-out 1.2s forwards;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.cta p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.form-group {
  position: relative;
}

.signup-form input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(247,147,26,0.2);
  border-radius: var(--radius-small);
  background: rgba(255,255,255,0.8);
  color: var(--text-primary);
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.signup-form input::placeholder {
  color: var(--text-secondary);
}

.signup-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(247,147,26,0.2);
  background: rgba(255,255,255,0.95);
}

.signup-form button {
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-small);
  background: var(--button-gradient);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-button);
}

.signup-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(247,147,26,0.6);
}

.signup-form button:active {
  transform: translateY(0);
}

.signup-form button::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.signup-form button:hover::before {
  left: 100%;
}

.button-primary {
  display: inline-block;
  background: var(--button-gradient);
  color: #FFFFFF;
  padding: 1rem 2rem;
  border-radius: var(--radius-small);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-button);
  border: none;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(247,147,26,0.6);
}

.button-primary:active {
  transform: translateY(0);
}

.button-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.button-primary:hover::before {
  left: 100%;
}

/* ======================================================================
   8️⃣  Footer
   ====================================================================== */
footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid rgba(247,147,26,0.2);
  margin-top: 4rem;
}

/* ======================================================================
   9️⃣  Animations
   ====================================================================== */
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroGlow {
  to {
    opacity: 0.6;
  }
}

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

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

/* ======================================================================
   🔟  Responsive design
   ====================================================================== */

/* Tablet (≤1024px) – reduz tamanhos de fonte e espaçamento */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: clamp(2rem, 10vw, 4rem);
    margin-bottom: 0.75rem;
  }


.hero .subheading {
    font-size: clamp(1rem, 6vw, 1.5rem);
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
  .hero-title-with-symbols {
    flex-wrap: wrap; /* Permite que os símbolos quebrem a linha se a tela for muito estreita */
    gap: 0.25em; /* Reduz o espaçamento em telas menores */
    font-size: clamp(2rem, 10vw, 4rem); /* Ajuste o tamanho do texto do h1 */
  }

  .hero-symbol {
    font-size: clamp(2rem, 10vw, 4rem); /* Ajuste o tamanho dos símbolos */
  }


}

/* Em telas grandes, esconde o hamburger (opcional) */
/*@media (min-width: 992px) {
    .hamburger-btn { display: none; }
    .mobile-menu { display: none; }
} */

/* Regras gerais para telas menores */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }

  main { padding: 2rem 0; }

  .hero { margin-bottom: 3rem; padding: 0 0.5rem; }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 3rem);
    margin-bottom: 0.75rem;
  }

  .hero .subheading {
    font-size: clamp(0.95rem, 5vw, 1.2rem);
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
  .hero-title-with-symbols {
    flex-wrap: wrap; /* Permite que os símbolos quebrem a linha se a tela for muito estreita */
    gap: 0.25em; /* Reduz o espaçamento em telas menores */
    font-size: clamp(1.8rem, 8vw, 3rem); /* Ajuste o tamanho do texto do h1 */
  }

  .hero-symbol {
    font-size: clamp(2rem, 10vw, 4rem); /* Ajuste o tamanho dos símbolos */
  }
 .hero-symbol.right { 
    display: flex; 
  }
  
  .features { flex-direction: column; align-items: center; gap: 1.5rem; margin-bottom: 3rem; }

  .feature { max-width: 100%; min-width: unset; padding: 1.5rem; }

  .signup-form { max-width: 100%; }

  /* Banner do livro responsivo */
  .book-banner {
    padding: 2rem 1.5rem;
    margin: 3rem 0;
  }

  .lang-options {
        gap: 1.2rem;
        font-size: 0.88rem;
    }
    body { padding-top: 76px !important; }
  /* Em telas pequenas, o logo empilha o texto abaixo dos símbolos */

}

/* Pequenos dispositivos (≤480px) – fontes ainda menores */
/* Regras para telas muito pequenas */
@media (max-width: 480px) {
  .hero { padding: 0 0.25rem; }

  .hero h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.2;
  }

  .hero .subheading {
    font-size: clamp(0.9rem, 6vw, 1.1rem);
    padding: 0 0.25rem;
    line-height: 1.4;
  }
  .hero-title-with-symbols {
    flex-direction: inline; /* Empilha os símbolos e o texto em coluna */
    gap: 0.1em; /* Espaçamento mínimo quando empilhado */
    padding: 0 0.2em;
    font-size: clamp(2rem, 6vw, 3rem); /* Ajuste ainda mais o texto do h1 */
  }
  
  .hero-symbol {
    font-size: clamp(2rem, 6vw, 3rem); /* Ajuste ainda mais os símbolos */
  }
  /* Oculta um dos símbolos em telas muito pequenas para evitar poluição visual
     OU se preferir, pode ajustar o tamanho para que caibam */
  .hero-symbol.right { 
    display: flex; 
  }
  .hero-symbol.left {
    /*display: none;*/ 
    margin-bottom: -0.2em; /* Pequeno ajuste para o símbolo superior */
  }
  .feature { padding: 1.25rem; }

  .cta h2 { font-size: 1.5rem; }

  /* Banner do livro em telas muito pequenas */
  .book-banner {
    padding: 1.5rem 1rem;
    margin: 2rem 0;
  }
}

/* ======================================================================
   📟  Accessibility improvements
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}



/* Visually hidden helper */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ======================================================================
     Página de Contato (Contact Page)
   ====================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* Coluna do form é maior */
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out 0.3s forwards;
}

/* --- Cartão de Informações (Esquerda) --- */
.contact-info-card {
  background: var(--card-gradient);
  border: 1px solid rgba(247,147,26,0.15);
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  height: fit-content;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--button-gradient);
}

.info-item {
  margin-bottom: 2.5rem;
}
.info-item:last-child { margin-bottom: 0; }

.info-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-value {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.info-value a {
  color: var(--text-primary);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-value a:hover {
  color: var(--primary);
}

/* Ícones sociais */
.social-links {
  display: flex;
  gap: 1rem;
}
.social-icon {
  width: 40px; 
  height: 40px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius-small);
  border: 1px solid rgba(247,147,26,0.2);
  color: var(--text-primary);
  transition: all 0.3s ease;
}
.social-icon:hover {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-button);
}



/* --- Formulário (Direita) --- */
.contact-form-wrapper {
  background: var(--card-gradient);
  border: 1px solid rgba(247,147,26,0.15);
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  height: fit-content;
  position: relative;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Reutilizando estilos de input do seu CSS, mas adicionando Textarea */
.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(247,147,26,0.15); /* Borda sutil */
  border-radius: var(--radius-small);
  background: rgba(255,255,255,0.9);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(247,147,26,0.1); /* Glow laranja suave */
  background: #FFFFFF;
}

/* Mensagens de Feedback */
.alert-box {
  padding: 1rem;
  border-radius: var(--radius-small);
  margin-bottom: 2rem;
  font-weight: 500;
  animation: slideUp 0.5s ease;
}
.alert-success {
  background: rgba(46, 204, 113, 0.15);
  color: #27ae60;
  border: 1px solid rgba(46, 204, 113, 0.3);
}
.alert-error {
  background: rgba(231, 76, 60, 0.15);
  color: #c0392b;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Responsividade específica para Contato */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-wrapper {
    padding: 1.5rem;
  }
}



.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    background-color: transparent; 
    color: inherit;              
    border: none;                 
    box-shadow: none;        
    
}


/* CONTAINER: Define a área e anula qualquer fundo interno */
.btc-ticker-container {
    flex-grow: 1; 
    margin: 0 20px;
    max-width: 600px; 
    height: 100%;
    
    /* ESSENCIAL: Garante que o fundo da navbar (#1a1a2e) apareça */
    background-color: transparent !important; 
    
    overflow: hidden; 
    display: flex;
    align-items: center;
}

/* O TEXTO QUE ROLA: Garante a cor branca e remove estilos fixos */
.btc-ticker {
    white-space: nowrap; 
    animation: marquee 15s linear infinite; 
    padding-right: 100%; 
    display: flex;
    gap: 40px;
    
    /* Herda a cor branca (#fff) da .navbar */
    color: inherit; 
    
    font-size: 1em; 
    font-weight: 600; 
    
    /* Regra de segurança contra sombreamentos indesejados */
    text-shadow: none !important;
}

/* Keyframes para a animação de rolagem (Marquee) */
@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, 0); } 
}

/* ITENS INDIVIDUAIS: Regra de segurança para transparência */
.ticker-item {
    background-color: transparent !important; 
    padding: 3px 0; 
}

    /* GRID: LARGURA E ALTURA IGUAIS */
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            max-width: 1000px;
            margin: 0 auto;
            opacity: 0;
            transform: translateY(30px);
            animation: slideUp 0.8s ease-out 0.3s forwards;
            align-items: stretch;
        }

        /* ESTILIZAÇÃO DOS CARTÕES (IDÊNTICO AO COMPRA.PHP) */
        .contact-info-card, 
        .contact-form-wrapper {
            position: relative;
            /* MUDANÇA: Usando o gradiente padrão do tema para ambos */
            background: var(--card-gradient); 
            border: 1px solid rgba(247,147,26,0.15);
            border-radius: 16px; /* var(--radius) */
            padding: 2.5rem;
            backdrop-filter: blur(10px);
            
            /* Configuração Flex para distribuir conteúdo */
            height: 100%; 
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            overflow: hidden;
            
            /* TRANSIÇÃO PARA O EFEITO DE MOVIMENTO */
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        }

        /* LINHA LARANJA ANIMADA (::before) */
        .contact-info-card::before, 
        .contact-form-wrapper::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 2px;
            background: var(--button-gradient);
            
            /* Começa invisível (escala 0) */
            transform: scaleX(0); 
            transform-origin: left;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 10;
        }

        /* --- EFEITOS DE HOVER (CARD SOBE + LINHA APARECE) --- */
        .contact-info-card:hover, 
        .contact-form-wrapper:hover {
            transform: translateY(-5px); /* Cartão sobe */
            box-shadow: 0 15px 40px rgba(0,0,0,0.1); /* Sombra aumenta */
            border-color: rgba(247,147,26,0.3); /* Borda fica mais visível */
        }

        .contact-info-card:hover::before, 
        .contact-form-wrapper:hover::before {
            transform: scaleX(1); /* Linha preenche o topo */
        }

        /* Conteúdo Interno Info */
        .info-content-top {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .info-label {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #5D6D7E;
            margin-bottom: 0.8rem;
            font-weight: 700;
        }

        .info-value a {
            font-size: 1.1rem;
            color: #2C3E50;
            font-weight: 500;
            text-decoration: none;
            transition: color 0.2s;
        }
        .info-value a:hover { color: #F7931A; }

        /* Ícones Sociais */
        .social-links { display: flex; gap: 1rem; }
        .social-icon {
            width: 40px; height: 40px;
            display: flex; align-items: center; justify-content: center;
            background: rgba(255,255,255,0.6); /* Fundo leve para destacar no gradiente */
            border: 1px solid rgba(247,147,26,0.2);
            border-radius: 8px;
            color: #2C3E50;
            transition: all 0.3s ease;
        }
        .social-icon:hover {
            background: #F7931A; color: #FFF; border-color: #F7931A;
            transform: translateY(-2px);
        }

        /* --- ESTILOS DA IMAGEM BITSOLIDARIO (NOVO) --- */
        .bitsolidario-container {
            text-align: center; 
            margin-top: 2rem; 
            margin-bottom: 1rem;
        }

        .bitsolidario-img {
            max-width: 200px; 
            width: 100%; 
            height: auto; 
            /* Sombra base suave */
            filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); 
            /* A MESMA transição suave cubic-bezier dos features */
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
        }

        
        .contact-info-card:hover .bitsolidario-img {
            transform: scale(1.08); /* Zoom suave (um pouco menos que 1.1 para não ficar exagerado) */
            /* Sombra fica alaranjada para combinar */
            filter: drop-shadow(0 8px 15px rgba(247,147,26,0.3));
        }
        /* Formulário */
        .form-group { margin-bottom: 1.5rem; }
        .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #2C3E50; font-size: 0.9rem; }
        
        .form-group input, .form-group select, .form-group textarea {
            width: 100%; padding: 0.9rem 1rem;
            border: 2px solid rgba(247,147,26,0.15);
            border-radius: 8px;
            font-family: 'Inter', sans-serif; font-size: 0.95rem;
            /* Fundo semi-transparente para combinar com o card */
            background: rgba(255,255,255,0.8); 
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }
        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            outline: none; border-color: #F7931A; 
            background: rgba(255,255,255,0.95);
            box-shadow: 0 0 0 3px rgba(247,147,26,0.15);
        }
        .form-group textarea { resize: vertical; min-height: 120px; }

        /* BOTÕES IDÊNTICOS */
        .btn-uniform {
            width: 100%;
            padding: 0;
            height: 54px;
            min-height: 54px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.95rem;
            font-weight: 600;
            margin-top: auto;
            border-radius: 8px;
            text-decoration: none;
            cursor: pointer;
            background: linear-gradient(135deg, #F7931A 0%, #E6841A 100%);
            color: #FFFFFF;
            border: none;
            box-shadow: 0 4px 15px rgba(247,147,26,0.4);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .btn-uniform::before {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }
        .btn-uniform:hover::before { left: 100%; }

        .btn-uniform:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(247,147,26,0.6);
        }

        /* Responsividade */
        @media (max-width: 768px) {
            .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
            .contact-info-card, .contact-form-wrapper { height: auto; }
        }
        /* Ajuste para Imagens dentro dos ícones sociais */
        .social-icon img {
            width: 20px;
            height: 20px;
            object-fit: contain;
            transition: filter 0.3s ease;
            /* Se suas imagens forem pretas/cinzas e você quiser que fiquem laranjas por padrão, 
            você precisaria salvá-las já na cor laranja ou usar filtros complexos. 
            Por padrão, este código respeita a cor original da imagem. */
        }

        /* Efeito Hover: Torna a imagem branca quando o fundo fica laranja */
        .social-icon:hover img {
            filter: brightness(0) invert(1);
        }

/* CONVERSOR — ESTILO COINBASE + 100% BITCOIN SOLIDÁRIO */
.converter-section {
    margin: 4rem 0;
    
    
    width: 100%;
}

.converter-card {
    background: var(--card-gradient);
    border: 1px solid rgba(247,147,26,0.15);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    
    
    animation: slideUpFade 1s ease-out backwards;
    animation-delay: 0.5s;
    transition: 
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
    box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
    border-color 0.5s ease;
}

.converter-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--button-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.converter-card:hover::before {
    transform: scaleX(1);
}

.converter-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: rgba(247,147,26,0.4);
}

.converter-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.converter-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.converter-subtitle.loading {
    opacity: 0.6;
    animation: pulse 1.2s infinite;
}

.converter-subtitle #to-currency-label {
    color: var(--primary);
    font-weight: 700;
}



.input-box {
    order: 1;
}

.from-currency {
    order: 2;
}

.converter-arrow {
    order: 3;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.4s ease;
}
.converter-arrow.rotate {
    transform: rotate(180deg);
}

.result-box {
    order: 4;
}

.to-currency {
    order: 5;
}


.converter-row {
    display: grid;
    position: relative;
    grid-template-columns: 1fr minmax(120px, 160px) auto 1fr minmax(120px, 160px);
    gap: 1rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}
.converter-row.swap .from-currency {
    order: 5;
}

.converter-row.swap .to-currency {
    order: 2;
}

.converter-box {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(247,147,26,0.3);

    /* ANTES */
    /* border-radius: var(--radius-small); */

    /* AGORA */
    border-radius: 50px;

    padding: 0.9rem 1.2rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.converter-box:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(247,147,26,0.15);
}

.converter-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    font-family: var(--font);
    padding: 0;
}

.converter-box input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.converter-box input:focus {
    color: rgb(0, 0, 0);
}

.converted-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.converter-box,
.converter-currency {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(247,147,26,0.3);
    border-radius: 50px;
    padding: 0.5rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    min-width: 160px;
    min-height: 40px;
}

.converter-currency:hover {
    background: rgba(247,147,26,0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.converter-currency select {
    background: transparent;
    border: none;
    color: inherit;
    font-weight: inherit;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    
    appearance: none;
    font-size: 1.1rem;
    
}

.converter-currency .currency-flag {
    font-size: 1.4rem;
}

.converter-currency.fixed select {
    display: none;
}


.converter-arrow {
    font-size: 2.5rem;
    color: var(--primary);
    animation: pulse 2s infinite;
}

.converter-footer {
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* RESPONSIVO — FICA LINDO NO CELULAR */
@media (max-width: 900px) {
    .converter-row {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .converter-arrow {
        transform: rotate(90deg);
        font-size: 2.5rem;
        margin: 0.5rem 0;
    }

    .converter-box,
    .converter-currency,
    .input-box,
    .result-box {
        width: 100%;
        min-width: 100%;
    }

    .converter-currency {
        min-width: 100%;
        justify-content: center;
    }
    .converter-arrow {
    transition: transform 0.4s ease;
    }

    .converter-row.swap .converter-arrow {
        transform: rotate(180deg);
    }
}



@media (max-width: 600px) {


    .converter-row {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .converter-arrow {
        transform: rotate(90deg);
        font-size: 2.5rem;
        margin: 0.5rem 0;
    }

    .converter-box,
    .converter-currency,
    .input-box,
    .result-box {
        width: 100%;
        min-width: 100%;
    }

    .converter-currency {
        min-width: 100%;
        justify-content: center;
    }
    .converter-arrow {
    transition: transform 0.4s ease;
    }

    .converter-row.swap .converter-arrow {
        transform: rotate(180deg);
    }
}


/* container do select */
.to-currency {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;   /* Centraliza tudo horizontalmente */
    gap: 0.6rem;                          /* Espaço entre bandeira, select e chevron */
    padding: 0.5rem 0.8rem !important;    /* Padding uniforme */
    min-height: 40px;                     /* Altura mínima consistente */
    text-align: center;
    position: relative;
}

/* bandeira */
.currency-flag {
    font-size: 1.4rem;
    line-height: 1;
}

/* select limpo */
.to-currency select {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: auto;                          /* Deixa o select se ajustar ao conteúdo */
    max-width: 100px;                     /* Limita para não empurrar os outros campos */
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: inherit;
    text-align: center;
}

.to-currency select option {
    text-align: center;
}

/* estado normal */
.to-currency .chevron {
    transition: transform 0.25s ease;
}

/* quando o select estiver aberto/focado */
.to-currency:focus-within .chevron {
    transform: rotate(180deg);
}

/* Bandeira e chevron ficam centralizados */
.currency-flag,
.chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
}

/* Remove qualquer padding extra que desalinhe */
.to-currency > * {
    margin: 0;
    padding: 0;
}

/* No mobile: força centralização total */
@media (max-width: 768px) {
    .to-currency {
        justify-content: center !important;
        padding: 0.6rem !important;
    }
    .to-currency select {
        max-width: 120px;
        font-size: 1rem;
    }
}

.converter-attribution {
  margin-top: 14px;
  font-size: 12px;
  color: #9aa0a6;
  text-align: center;   /* 👈 centraliza o texto */
}

.converter-attribution a {
  color: #9aa0a6;
  text-decoration: none;
  font-weight: 500;
}

.converter-attribution a:hover {
  color: #1ecb4f; /* verde CoinGecko */
  text-decoration: underline;
}

/* Wrapper do captcha */
.captcha-group {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Turnstile ocupa 100% do campo */
.captcha-group .cf-turnstile {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Força o iframe interno a respeitar o tamanho */
.captcha-group iframe {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 8px;
}
