/* Variáveis da Nova Paleta (Roxo e Laranja) */
:root {
    --bg-main: #140d21; /* Roxo ultra escuro para o fundo geral */
    --bg-card: #1f1433; /* Roxo escuro para os cards */
    --primary: #FF5E00; /* Laranja vibrante */
    --primary-glow: rgba(255, 94, 0, 0.5);
    --secondary: #6A1B9A; /* Roxo médio */
    --text-light: #ffffff;
    --text-muted: #bda8d1; /* Lilás suave para textos descritivos */
    --whatsapp: #25D366;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { background-color: var(--bg-main); color: var(--text-light); font-family: 'Inter', sans-serif; overflow-x: hidden; }

h1, h2, h3 { font-family: 'Montserrat', sans-serif; text-transform: uppercase; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* Header e Logo */
header { position: fixed; width: 100%; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: rgba(20, 13, 33, 0.85); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* =========================================
   LOGO NO CÍRCULO BRANCO
   ========================================= */
.logo-img { 
    width: 110px;               /* Largura fixa */
    height: 110px;              /* Altura igual à largura para ficar um círculo perfeito */
    border-radius: 50%;        /* Transforma o fundo num círculo redondo */
    padding: 1px;             /* Espaçamento interno para a logo não encostar nas bordas */
    object-fit: contain;       /* Garante que a logo não fique esticada/deformada */
    transition: transform 0.3s, box-shadow 0.3s; 
    
    /* Efeito de sombra ao redor do círculo branco */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 94, 0, 0.3); 
}

.logo-img:hover { 
    transform: scale(1.08); 
    /* O brilho laranja aumenta levemente quando passa o mouse */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 94, 0, 0.6); 
}

/* Deixa o círculo da logo do rodapé ainda mais imponente */
.footer-content .logo-img {
    width: 110px;
    height: 110px;
    padding: 15px;
    margin-bottom: 20px;
}

.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--text-light); z-index: 1100; }

nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { color: var(--text-light); text-decoration: none; font-weight: 500; font-size: 0.9rem; text-transform: uppercase; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* Botões */
button { cursor: pointer; font-family: 'Montserrat', sans-serif; font-weight: 700; border: none; border-radius: 4px; transition: all 0.3s ease; text-transform: uppercase; }
.btn-glow { background: var(--primary); color: white; padding: 12px 24px; box-shadow: 0 0 15px var(--primary-glow); }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 25px var(--primary-glow); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 10px 20px; }
.btn-outline:hover { background: var(--primary); color: white; box-shadow: 0 0 15px var(--primary-glow); }
.btn-whatsapp { background: var(--whatsapp); color: white; padding: 15px 30px; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 8px; }
.btn-whatsapp:hover { background: #1ebe57; transform: scale(1.05); }
.w-100 { width: 100%; }

/* Sections */
section { min-height: 100vh; padding-top: 100px; padding-bottom: 60px; }
.section-hidden { display: none; }
.section-active { display: block; animation: fadeUp 0.6s ease forwards; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Hero Section */
.hero { display: flex; align-items: center; position: relative; background: url('https://images.unsplash.com/photo-1571008887538-b36bb32f4571?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, var(--bg-main) 10%, rgba(20,13,33,0.6) 50%, transparent); }
.hero-content { position: relative; z-index: 2; padding: 0 5%; max-width: 800px; }
.badge-top { background: rgba(255, 94, 0, 0.1); color: var(--primary); padding: 5px 15px; border-radius: 20px; border: 1px solid var(--primary); font-size: 0.8rem; font-weight: 600; display: inline-block; margin-bottom: 20px; }
.hero h1 { font-size: 4.5rem; font-style: italic; font-weight: 800; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.hero h1 span { color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }
.hero p { margin-bottom: 40px; max-width: 500px; }

/* Desafios & Cards */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; font-style: italic; }
.section-header h2 span { color: var(--primary); }
.section-header p { color: var(--text-muted); margin-top: 10px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05); padding: 40px 30px; border-radius: 12px; position: relative; transition: 0.4s; display: flex; flex-direction: column; align-items: center; text-align: center; }
.card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,94,0,0.05); }

/* Novas Imagens das Medalhas nos Cards */
.card-medal { margin-bottom: 25px; }
.card-medal img { width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--primary); object-fit: cover; box-shadow: 0 0 20px var(--primary-glow); }
.card-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; } /* Usado na corrida presencial */

.card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 30px; flex-grow: 1; line-height: 1.6; }
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    width: 100%;
    gap: 20px; /* O ESCUDO: Força 20 pixels de distância mínima entre o preço e o botão */
    flex-wrap: wrap; /* RESPONSIVIDADE: Se a tela do celular for muito fina, ele joga o botão educadamente para baixo em vez de espremer */
}
.price { font-weight: 700; color: #fff; font-size: 1rem; text-transform: uppercase;}
.premium-card { border: 1px solid var(--primary); background: linear-gradient(180deg, var(--bg-card) 0%, rgba(255, 94, 0, 0.05) 100%); }
.premium-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; box-shadow: 0 0 10px var(--primary-glow); white-space: nowrap; }

/* Quem Somos */
.about-content { background: var(--bg-card); padding: 40px; border-radius: 12px; border-left: 4px solid var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 15px; font-size: 1.05rem; }

/* Dashboard */
.dashboard-wrapper { max-width: 800px; margin: 0 auto; }
.dashboard-card { background: var(--bg-card); border-radius: 16px; padding: 40px; border: 1px solid rgba(255,255,255,0.05); text-align: center; }
.user-header { display: flex; align-items: center; gap: 20px; text-align: left; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.avatar { width: 60px; height: 60px; min-width: 60px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); }

html { scroll-behavior: smooth; }
.secao-escura { background-color: var(--bg-main); border-top: 1px solid rgba(255,255,255,0.02); }

/* Modais */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); z-index: 9999; justify-content: center; align-items: center; animation: fadeInModal 0.3s ease; }
.modal-content { 
    background: var(--bg-card); 
    border: 1px solid var(--primary); 
    padding: 40px; 
    border-radius: 16px; 
    max-width: 400px; 
    width: 95%; 
    text-align: center; 
    position: relative; 
    box-shadow: 0 10px 40px rgba(255, 94, 0, 0.2); 
    max-height: 90vh; /* AJUSTE AQUI: Limita a altura */
    overflow-y: auto; /* AJUSTE AQUI: Cria barra de rolagem se precisar */
}
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; color: var(--text-muted); transition: 0.3s; }
.close-modal:hover { color: var(--primary); }
.modal-destaque { margin: 15px 0; font-size: 1.5rem; }
.resumo-pedido { background: rgba(0,0,0,0.5); padding: 20px; border-radius: 8px; margin-bottom: 25px; border: 1px dashed var(--text-muted); }
.resumo-pedido h2 { color: #fff; margin-top: 10px; }
.seguro-texto { font-size: 0.8rem; color: var(--text-muted); margin-top: 15px; }

@keyframes fadeInModal { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* Forms e Radios do Frete */
.modal-large { max-width: 500px; max-height: 90vh; overflow-y: auto; }
.checkout-form { text-align: left; margin-top: 20px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 5px; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="password"], .form-group input[type="tel"] { width: 100%; padding: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; color: #fff; font-family: 'Inter', sans-serif; transition: 0.3s; }
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 10px rgba(255, 94, 0, 0.2); }
.form-group input[readonly] { background: rgba(0, 0, 0, 0.3); color: #888; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* Estilo para escolha de entrega */
.radio-group { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.radio-box { display: flex; align-items: center; background: rgba(255,255,255,0.05); padding: 15px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; transition: 0.3s; }
.radio-box:hover { border-color: var(--secondary); background: rgba(106, 27, 154, 0.2); }
.radio-box input[type="radio"] { margin-right: 15px; accent-color: var(--primary); transform: scale(1.2); }
.radio-box span { color: #fff; font-size: 0.9rem; }
.radio-box i { color: var(--primary); margin-right: 5px; }

.hero-buttons { display: flex; gap: 20px; justify-content: flex-start; flex-wrap: wrap; }
.bg-dark { background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); }
.secao-imagem { position: relative; background-size: cover; background-position: center; background-attachment: fixed; }
.bg-virtuais { background-image: url('https://images.unsplash.com/photo-1461896836934-ffe607ba8211?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); }
.bg-presencial { background-image: url('https://images.unsplash.com/photo-1530143311094-34d807799e8f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); }
.overlay-secao { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(20, 13, 33, 0.88); z-index: 1; }
.relative-z { position: relative; z-index: 2; }
.centered-grid { display: flex; justify-content: center; }
.centered-grid .card { max-width: 450px; width: 100%; }

/* Abas */
.auth-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.auth-tabs button { background: transparent; color: var(--text-muted); font-size: 1rem; padding: 10px 20px; border: none; border-bottom: 2px solid transparent; border-radius: 0; }
.auth-tabs button.tab-active { color: var(--primary); border-bottom: 2px solid var(--primary); }
.auth-tabs button:hover { color: white; }

/* Footer */
footer { background-color: #0b0713; padding: 50px 5% 20px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-content { margin-bottom: 30px; display: flex; flex-direction: column; align-items: center;}
.footer-content p { color: var(--text-muted); margin: 15px 0; font-size: 1.1rem; font-style: italic;}
.social-icons a { color: var(--text-light); font-size: 1.5rem; margin: 0 10px; transition: 0.3s; }
.social-icons a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; font-size: 0.8rem; color: var(--text-muted); }

/* Painel Dinâmico */
.empty-state { padding: 40px 20px; text-align: center; background: rgba(0,0,0,0.2); border-radius: 12px; border: 1px dashed rgba(255,255,255,0.1); }
.empty-state i { font-size: 3.5rem; color: var(--text-muted); margin-bottom: 20px; }
.empty-state h3 { margin-bottom: 10px; color: #fff; }
.empty-state p { color: var(--text-muted); margin-bottom: 25px; font-size: 0.95rem; }
.card-inscricao { background: linear-gradient(45deg, var(--bg-card) 0%, rgba(40,25,65,1) 100%); border: 1px solid rgba(255,255,255,0.05); border-left: 4px solid var(--primary); padding: 20px; border-radius: 10px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 20px; }
.info-inscricao h4 { color: #fff; font-size: 1.2rem; margin-bottom: 5px; }
.info-inscricao p { color: var(--whatsapp); font-size: 0.85rem; font-weight: 600; }

/* Modal Detalhes da Medalha */
.text-center { text-align: center; }
.medal-frame { width: 220px; height: 220px; margin: 0 auto 25px; border-radius: 50%; padding: 8px; background: linear-gradient(135deg, var(--secondary), var(--primary)); box-shadow: 0 10px 40px rgba(106, 27, 154, 0.5); animation: floatMedal 3s ease-in-out infinite; }
.medal-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 5px solid var(--bg-card); background-color: var(--bg-main); }
@keyframes floatMedal { 0% { transform: translateY(0px); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0px); } }
.regras-lista { list-style: none; text-align: left; margin: 0 auto 25px; max-width: 300px; }
.regras-lista li { margin-bottom: 10px; font-size: 0.9rem; color: var(--text-muted); }
.regras-lista i { color: var(--whatsapp); margin-right: 8px; }

/* =========================================
   DEPOIMENTOS E COMUNIDADE (PROVA SOCIAL)
   ========================================= */
.depoimento-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px 30px;
    border-radius: 12px;
    text-align: center;
    border-bottom: 3px solid var(--primary);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.depoimento-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 94, 0, 0.5);
}
.stars {
    color: #FFD700; /* Dourado para as estrelas */
    margin-bottom: 15px;
    font-size: 1.1rem;
    letter-spacing: 3px;
}
.depoimento-card p {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1;
}
.depoimento-card h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.action-banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.action-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(0,0,0,0.4));
    border: 1px dashed rgba(255, 94, 0, 0.3);
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}
.action-banner:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0,0,0,0.6));
}
.action-banner i.fa-camera-retro {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.action-banner h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}
.action-banner p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
    flex-grow: 1;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav { display: flex; flex-direction: column; position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: rgba(20, 13, 33, 0.98); backdrop-filter: blur(10px); justify-content: center; align-items: center; transition: right 0.3s ease; z-index: 1000; border-left: 1px solid rgba(255,255,255,0.05); }
    nav.menu-open { right: 0; }
    .nav-links { flex-direction: column; gap: 30px; text-align: center; margin-bottom: 40px; }
    .nav-links a { font-size: 1.2rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons button { width: 100%; }
    .modal-content { padding: 30px 20px; }
    .form-row { grid-template-columns: 1fr; } 
    section { padding-top: 80px; padding-bottom: 40px; }
    .section-header h2 { font-size: 2rem; }
    .dashboard-card { padding: 30px 20px; }
    .medal-frame { width: 180px; height: 180px; }
}

@media (max-width: 600px) {
    .card-inscricao { flex-direction: column; align-items: flex-start; }
    .card-inscricao button { width: 100%; margin-top: 10px; }
    .user-header { flex-direction: column; text-align: center; }
}
/* =========================================
   NOVO AJUSTE VISUAL DO PREÇO (Estilo Marketplace SaaS)
   ========================================= */

/* Target the container of the price to ensure vertical alignment with the button */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Alinha o centro vertical do preço grande com o botão */
}

/* Redesenha o elemento price para grande presença */
.price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; /* Ultra Bold para presença */
    color: #ffffff;
    font-size: 2.2rem; /* AUMENTA O TAMANHO PRINCIPAL (Definindo a presença) */
    display: inline-block; /* Removemos o flexbox interno! */
    line-height: 1; /* Tight line height */
    text-shadow: 0 0 15px rgba(255, 94, 0, 0.3); /* Brilho laranja sutil */
    white-space: nowrap; /* Impede que o R$ se separe do número */
}

/* Estilo para o símbolo de moeda (R$) - para ficar sutil e elegante */
.price span.currency {
    font-size: 1.1rem; /* Metade do tamanho do preço principal (Sutil) */
    font-weight: 700;
    color: #ddd; /* Branco levemente suave */
    vertical-align: middle; /* Alinha o meio do R$ com o meio do número */
    margin-right: 2px;
}

/* Estilo Suprescrito para os Centavos (Premium Retail look) */
.price small {
    font-size: 1.1rem; /* Metade do tamanho do preço principal */
    font-weight: 700;
    position: relative; /* Ativa posicionamento relativo */
    top: -0.7em; /* Valor negativo eleva o texto (Cria o suprescrito) */
    vertical-align: baseline; /* Garante que não afete o alinhamento do número principal */
    margin-left: 1px; /* Tiny gap */
}