:root {
    --bg-color: #FFFDF9;
    --primary-brown: #5C3A21;
    --secondary-brown: #8A5A44;
    --accent-pink: #FFD1DC;
    --accent-blue: #D0E4F5;
    --accent-yellow: #FFF2B2;
    --whatsapp-green: #25D366;
    --text-main: #3E2723;
    --text-light: #795548;
    --card-bg: #FFFFFF;
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    /* O padding-bottom foi movido para o footer para evitar barra branca no final */
}

h1 {
    font-family: 'Pacifico', cursive;
    font-size: 3.5rem;
    color: var(--primary-brown);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(92, 58, 33, 0.1);
    line-height: 1.2;
}

h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2.8rem;
    color: var(--primary-brown);
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-yellow) 100%);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF" opacity="0.3"><path d="M12 2c-4.962 0-9 4.038-9 9 0 3.328 1.82 6.232 4.513 7.79l-2.067 1.378A1 1 0 0 0 6 22h12a1 1 0 0 0 .555-1.832l-2.067-1.378C19.18 17.232 21 14.328 21 11c0-4.962-4.038-9-9-9zm0 16c-3.859 0-7-3.141-7-7s3.141-7 7-7 7 3.141 7 7-3.141 7-7 7z"/></svg>');
    background-size: cover;
    z-index: 0;
}

.hero::before {
    top: -50px;
    left: -50px;
    transform: rotate(15deg);
}

.hero::after {
    bottom: -100px;
    right: -50px;
    transform: rotate(-15deg);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(92, 58, 33, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-brown);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(92, 58, 33, 0.3);
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: var(--secondary-brown);
    box-shadow: 0 8px 25px rgba(92, 58, 33, 0.4);
}

.animate-float {
    animation: floatBtn 2.5s ease-in-out infinite;
}

@keyframes floatBtn {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
        box-shadow: 0 10px 25px rgba(92, 58, 33, 0.5);
    }

    100% {
        transform: translateY(0);
    }
}

/* Botão Flutuante de Desafios */
.btn-flutuante-desafios {
    position: fixed;
    right: 20px;
    bottom: 90px;
    /* Acima do carrinho flutuante */
    background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
    color: var(--primary-brown);
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 98;

    /* Estado Oculto Seguro */
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-flutuante-desafios.mostrar {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.btn-flutuante-desafios.mostrar:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Quando o carrinho flutuante aparecer, empurra o botão pra cima pra não sobrepor */
.carrinho-flutuante.ativo~.btn-flutuante-desafios {
    bottom: 120px;
}

@media (min-width: 768px) {
    .btn-flutuante-desafios {
        bottom: 30px;
        /* Desktop não tem o header/carrinho igual */
    }

    .carrinho-flutuante.ativo~.btn-flutuante-desafios {
        bottom: 110px;
    }
}

/* Modal e Layouts Restantes */
/* Products Section */
.produtos-section {
    padding: 5rem 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.grid-produtos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

/* Cards */
.card-produto {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(92, 58, 33, 0.05);
    position: relative;
}

.card-produto:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(92, 58, 33, 0.12);
}

.img-wrapper {
    overflow: hidden;
    height: 280px;
    width: 100%;
    position: relative;
}

.card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    background-color: var(--accent-pink);
    transition: var(--transition);
}

.card-produto:hover .card-img {
    transform: scale(1.05);
}

/* Badges de Escassez / Vendas */
.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transform: rotate(2deg);
    transition: var(--transition);
}

.card-produto:hover .card-badge {
    transform: rotate(0deg) scale(1.05);
}

.badge-maisvendido {
    background-color: #FFD700;
    color: #3E2723;
}

.badge-esgotando {
    background-color: #FF5A5F;
    color: white;
}

.card-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Tags Produto */
.card-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.tag-classe,
.tag-subclasse {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-weight: 600;
}

.tag-classe {
    background-color: var(--accent-blue);
    color: #1A4D7A;
}

.tag-subclasse {
    background-color: var(--accent-pink);
    color: #8A2B42;
}

/* Nutri Icon & Title */
.card-title-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-brown);
    line-height: 1.2;
    flex: 1;
}

.nutri-icon {
    color: #aaa;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.nutri-icon:hover {
    color: var(--primary-brown);
    transform: scale(1.15);
}

.card-desc {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    margin-top: 0.5rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-preco {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary-brown);
}

.controles-qtd {
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    border-radius: 50px;
    padding: 0.3rem;
    border: 1px solid rgba(92, 58, 33, 0.15);
}

.btn-qtd {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--primary-brown);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.btn-qtd:hover {
    background-color: var(--primary-brown);
    color: white;
}

.btn-qtd:active {
    transform: scale(0.9);
}

.display-qtd {
    width: 35px;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Micro-interação: Bounce */
@keyframes bounceInScale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.bounce-anim {
    animation: bounceInScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Floating Cart */
.carrinho-flutuante {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    padding: 1.2rem 1.5rem;
    z-index: 100;
    transform: translateY(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.carrinho-flutuante.ativo {
    transform: translateY(0);
}

.carrinho-conteudo {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resumo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.itens-count {
    color: var(--primary-brown);
    font-size: 0.95rem;
    background: var(--accent-pink);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 800;
}

.valor-total {
    font-size: 1.1rem;
    color: var(--text-light);
}

.valor-total strong {
    color: var(--primary-brown);
    font-size: 1.6rem;
    margin-left: 0.5rem;
}

.btn-whatsapp {
    background-color: var(--primary-brown);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    font-family: inherit;
    width: 100%;
    box-shadow: 0 4px 15px rgba(92, 58, 33, 0.3);
}

#btnEnviarWhatsApp {
    background-color: var(--whatsapp-green);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

#btnEnviarWhatsApp:hover:not(:disabled) {
    background-color: #1ebe57;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover:not(:disabled) {
    background-color: var(--secondary-brown);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(92, 58, 33, 0.4);
}

.btn-whatsapp:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-whatsapp:disabled {
    background-color: #e0e0e0;
    color: #a0a0a0;
    cursor: not-allowed;
    box-shadow: none;
}


/* --- Modal GLOBAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(62, 39, 35, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-color);
    padding: 2.5rem 2rem;
    border-radius: 25px;
    width: 95%;
    max-width: 550px;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

/* Modal Scrollbar Customization */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(92, 58, 33, 0.2);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(92, 58, 33, 0.4);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-light);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary-brown);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-brown);
}

/* Nutri Modal Specific */
.nutri-modal-content {
    max-width: 400px;
    padding: 2rem 1.5rem;
}

.nutri-table-wrapper {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(92, 58, 33, 0.1);
}

.nutri-table {
    width: 100%;
    border-collapse: collapse;
}

.nutri-table th,
.nutri-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(92, 58, 33, 0.05);
}

.nutri-table th {
    background-color: var(--accent-yellow);
    color: var(--primary-brown);
    font-size: 0.9rem;
}

.nutri-table td {
    font-size: 0.95rem;
    color: var(--text-main);
}

.nutri-table tr:last-child td {
    border-bottom: none;
}

.nutri-obs {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
}

/* Checkout Forms */
.checkout-section {
    margin-bottom: 1.8rem;
    background: white;
    padding: 1.2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(92, 58, 33, 0.05);
}

.checkout-section h3 {
    font-size: 1.05rem;
    color: var(--primary-brown);
    margin-bottom: 1.2rem;
}

.required {
    color: #FF5A5F;
}

.opcional {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: normal;
    margin-left: 5px;
}

/* Custom Radios e Checkboxes */
.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.radio-label:hover,
.checkbox-label:hover {
    background-color: rgba(92, 58, 33, 0.02);
    border-color: rgba(92, 58, 33, 0.2);
}

.radio-label:last-child,
.checkbox-label:last-child {
    margin-bottom: 0;
}

.radio-label input,
.checkbox-label input {
    display: none;
}

.radio-custom,
.checkbox-custom {
    min-width: 22px;
    height: 22px;
    border: 2px solid var(--text-light);
    margin-right: 15px;
    position: relative;
    transition: var(--transition);
}

.radio-custom {
    border-radius: 50%;
}

.checkbox-custom {
    border-radius: 6px;
}

.radio-label input:checked~.radio-custom {
    border-color: var(--primary-brown);
}

.radio-label input:checked~.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-brown);
}

.checkbox-label input:checked~.checkbox-custom {
    background-color: var(--primary-brown);
    border-color: var(--primary-brown);
}

.checkbox-label input:checked~.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.radio-text,
.checkbox-text {
    display: flex;
    flex-direction: column;
}

.radio-text strong,
.checkbox-text strong {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 3px;
}

.radio-text span,
.checkbox-text span {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Secao Oferta Checkout */
.sec-oferta {
    border: 2px dashed #FF6B81;
    background-color: #FFF5F7;
    position: relative;
}

.sec-oferta h3 {
    color: #E91E63;
    margin-bottom: 0.8rem;
}

.oferta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.1);
    flex-wrap: wrap;
}

.oferta-img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.oferta-info {
    flex: 1;
    min-width: 150px;
}

.oferta-nome {
    font-weight: 800;
    color: var(--text-main);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
    line-height: 1.2;
}

.oferta-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.4rem;
}

.oferta-preco-antigo {
    text-decoration: line-through;
    color: #A0A0A0;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.oferta-preco-novo {
    color: #E91E63;
    font-weight: 800;
    font-size: 1.15rem;
}

.btn-oferta {
    background-color: #E91E63;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.95rem;
}

.btn-oferta:hover {
    background-color: #C2185B;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.3);
}

.btn-oferta.added {
    background-color: var(--whatsapp-green);
}

.btn-oferta.added:hover {
    background-color: #1ebe57;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* Resumo in Modal */
.checkout-resumo {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px dashed rgba(92, 58, 33, 0.2);
}

.linha-resumo {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.linha-resumo span:last-child {
    font-weight: 600;
}

.linha-resumo.total-destaque {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 1.25rem;
    color: var(--primary-brown);
}

.linha-resumo.total-destaque span:last-child {
    font-weight: 800;
}

/* Responsive Styles */
@media (max-width: 400px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .oferta-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .grid-produtos {
        grid-template-columns: repeat(2, 1fr);
    }

    .carrinho-conteudo {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .btn-whatsapp {
        width: auto;
        padding: 1rem 2.5rem;
    }

    .resumo {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .grid-produtos {
        grid-template-columns: repeat(3, 1fr);
    }

    h1 {
        font-size: 4rem;
    }
}

/* --- GAMIFICAÇÃO / DESAFIOS --- */
.desafios-section {
    padding: 3rem 1.5rem 1rem;
    background-color: var(--bg-color);
}

.desafios-header {
    text-align: center;
    margin-bottom: 2rem;
}

.desafios-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-brown);
}

.desafios-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.desafios-carousel-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    gap: 15px;
    max-width: 100%;
}

.desafios-janela {
    overflow: hidden;
    width: 100%;
}

.grid-desafios {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    gap: 1.5rem;
    width: max-content;
    padding: 10px 0;
}

.card-desafio {
    /* Largura inicial; será calibrada pelo JS após o render para caber exatamente na janela */
    width: 320px;
    max-width: 100%;
    flex-shrink: 0;
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(92, 58, 33, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-sizing: border-box;
    overflow: hidden;
    word-break: break-word;
}

.btn-carrossel {
    background: var(--primary-brown);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(92, 58, 33, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 2;
    transition: var(--transition);
}

.btn-carrossel:hover {
    background: var(--secondary-brown);
    transform: scale(1.1);
}

.btn-carrossel:active {
    transform: scale(0.95);
}

.card-desafio.completo {
    background: linear-gradient(to right, #ffffff, #f0ffd6);
    border-color: #8bc34a;
}

.card-desafio.completo .desafio-titulo {
    color: #558b2f;
}

.desafio-info {
    margin-bottom: 1.2rem;
}

.desafio-titulo {
    font-size: 1.2rem;
    color: var(--primary-brown);
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.desafio-desc {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.desafio-recompensa {
    display: inline-block;
    background: var(--accent-yellow);
    color: #e65100;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
}

.desafio-progresso-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.desafio-status {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
    text-align: right;
}

.barra-fundo {
    width: 100%;
    height: 12px;
    background-color: rgba(92, 58, 33, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.barra-preenchimento {
    height: 100%;
    background-color: var(--primary-brown);
    border-radius: 10px;
    transition: width 0.5s ease-in-out, background-color 0.3s ease, box-shadow 0.3s ease;
}

.card-desafio.completo .barra-preenchimento {
    background-color: #8bc34a;
    box-shadow: 0 0 10px rgba(139, 195, 74, 0.6), 0 0 20px rgba(139, 195, 74, 0.4);
}

.gamificacao-recompensa {
    background: #f0ffd6;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px dashed #8bc34a;
}

.txt-verde {
    color: #33691e;
    font-weight: 800;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-sucesso {
    border-left: 6px solid #8bc34a;
}

.toast-sucesso .toast-titulo {
    color: #33691e;
}

.toast-aviso {
    border-left: 6px solid #fbc02d;
}

.toast-aviso .toast-titulo {
    color: #f57f17;
}

.toast.mostrar {
    transform: translateX(0);
    opacity: 1;
}

.toast-icone {
    font-size: 1.5rem;
}

.toast-conteudo {
    display: flex;
    flex-direction: column;
}

.toast-titulo {
    font-weight: 800;
    color: var(--primary-brown);
    font-size: 1rem;
}

.toast-msg {
    font-size: 0.85rem;
    color: var(--text-main);
}

/* --- RODAPÉ E TRANSPARÊNCIA COMPACTO --- */
.site-footer {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--secondary-brown) 100%);
    padding: 1.2rem 1rem;
    /* Padding reduzido, simétrico e super fino */
    margin-top: 4rem;
    color: white;
    text-align: center;
}

.footer-content-compact {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.8rem;
}

.footer-item {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.policy-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.policy-link,
.footer-link-dev {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.policy-link:hover,
.footer-link-dev:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
    text-decoration-color: var(--accent-yellow);
    text-underline-offset: 4px;
}

@media (max-width: 767px) {

    /* No mobile, caso fique muito espremido, ele quebra a linha suavemente por conta do flex-wrap */
    .policy-divider {
        display: none;
        /* remove no mobile para forçar grid limpo */
    }

    .footer-content-compact {
        gap: 0.8rem;
    }

    .footer-item,
    .policy-link,
    .footer-link-dev {
        width: 100%;
        text-align: center;
        padding: 4px 0;
    }
}

/* Modais de Políticas Genéricos */
.policy-modal-content {
    max-width: 650px;
}

.policy-text {
    line-height: 1.7;
    color: var(--text-light);
    font-size: 1rem;
    text-align: justify;
}

.policy-text p {
    margin-bottom: 1.2rem;
}

.policy-text strong {
    color: var(--text-main);
}

/* --- COOKIE BANNER LGPD --- */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    /* Começa escondido */
    left: 0;
    width: 100%;
    background-color: var(--primary-brown);
    color: white;
    z-index: 9999;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.25);
    transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 3px solid var(--accent-yellow);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.cookie-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.btn-cookie {
    background-color: var(--accent-yellow);
    color: var(--primary-brown);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-cookie:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 242, 178, 0.3);
    background-color: #fff;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .cookie-content p {
        font-size: 0.95rem;
    }
}