/* ==========================================================================
   DESIGN SYSTEM - PORTAL DE DOAÇÕES (SKELETON BASE)
   ========================================================================== */

/* Importação de Fontes Premium */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Reset e Configurações Globais */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* 1. TEMA PATRIOTA / BRASILEIRO (Padrão) */
    --bg-page: #f2f7f4;
    --bg-card: #ffffff;
    --bg-card-muted: #e5f0ea;
    --text-main: #0a2919;
    --text-muted: #416150;
    --accent: #0f7c42; /* Verde Bandeira Oficial */
    --accent-hover: #0a5f32;
    --accent-rgb: 15, 124, 66;
    --highlight: #f9bc00; /* Amarelo Ouro */
    --highlight-hover: #d8a200;
    --border-color: #cbdcd3;
    --shadow-sm: 0 1px 2px 0 rgba(10, 41, 25, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(10, 41, 25, 0.1), 0 2px 4px -2px rgba(10, 41, 25, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(10, 41, 25, 0.1), 0 4px 6px -4px rgba(10, 41, 25, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. TEMA ECO / SUSTENTÁVEL */
[data-theme="eco"] {
    --bg-page: #f4f7f4;
    --bg-card: #ffffff;
    --bg-card-muted: #e9f0e9;
    --text-main: #14241b;
    --text-muted: #4e6355;
    --accent: #15803d; /* Verde Floresta */
    --accent-hover: #166534;
    --accent-rgb: 21, 128, 61;
    --highlight: #ca8a04; /* Amarelo Mostarda */
    --highlight-hover: #a16207;
    --border-color: #d1dfd1;
}

/* 3. TEMA TECH / CREATOR (Dark Mode) */
[data-theme="tech"] {
    --bg-page: #09090b;
    --bg-card: #18181b;
    --bg-card-muted: #27272a;
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    --accent: #8b5cf6; /* Roxo Neon / Violeta */
    --accent-hover: #7c3aed;
    --accent-rgb: 139, 92, 246;
    --highlight: #ec4899; /* Rosa Shocking / Magenta */
    --highlight-hover: #db2777;
    --border-color: #27272a;
}

/* 4. TEMA HUMANITÁRIO / SOCIAL */
[data-theme="humanity"] {
    --bg-page: #fffbf7;
    --bg-card: #ffffff;
    --bg-card-muted: #fbf3eb;
    --text-main: #2b1d16;
    --text-muted: #756257;
    --accent: #ea580c; /* Laranja Terracota */
    --accent-hover: #c2410c;
    --accent-rgb: 234, 88, 12;
    --highlight: #e11d48; /* Vermelho Coral */
    --highlight-hover: #be123c;
    --border-color: #ebdcd0;
}

/* Estilos de Tipografia e Corpo */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

/* Layout Principal e Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
}

/* Layout de Duas Colunas (Portal de Doação) */
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .main-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

/* Coluna Esquerda: Conteúdo Motivacional */
.campaign-details-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.campaign-tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.35rem 0.85rem;
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
}

.campaign-title {
    font-size: 2.5rem;
    font-weight: 800;
}

.campaign-description {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Card Principal de Doação */
.donation-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Barra de Progresso da Campanha */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.progress-raised {
    font-weight: 700;
    font-size: 1.15rem;
}

.progress-goal {
    color: var(--text-muted);
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background-color: var(--bg-card-muted);
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    border-radius: 50px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Métricas Rápidas */
.metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

/* Formulário de Passos da Doação */
.donation-steps-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-section {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
}

.step-section.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.step-title {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Seletor de Valores */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.amount-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
}

.amount-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.amount-btn.active {
    border-color: var(--accent);
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.3);
}

.custom-amount-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-prefix {
    position: absolute;
    left: 1rem;
    font-weight: 700;
    color: var(--text-muted);
}

.input-custom-amount {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-card);
    transition: var(--transition);
}

.input-custom-amount:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

/* Inputs de Contato */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.input-text {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: var(--bg-card);
    font-family: inherit;
    transition: var(--transition);
}

.input-text:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

textarea.input-text {
    resize: vertical;
    min-height: 80px;
}

/* Botões do Formulário */
.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn {
    flex: 1;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bg-card-muted);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Tela de Pagamento PIX */
.pix-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding: 0.5rem 0;
}

.pix-qr-box {
    width: 200px;
    height: 200px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.pix-qr-box canvas, .pix-qr-box img {
    max-width: 100%;
    max-height: 100%;
}

.pix-copia-cola-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.copia-cola-text {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-card-muted);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 0.8rem;
    word-break: break-all;
    user-select: all;
    max-height: 70px;
    overflow-y: auto;
    text-align: left;
    color: var(--text-main);
}

/* Seção de Abas (Tabs) do Doador */
.tabs-container {
    margin-top: 3rem;
}

.tabs-nav {
    display: flex;
    gap: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 0.25rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--accent);
}

.tab-btn.active {
    color: var(--accent);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Mural de Apoiadores */
.supporters-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.supporter-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.supporter-name {
    font-weight: 700;
    color: var(--text-main);
}

.supporter-amount {
    font-weight: 800;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
}

.supporter-message {
    color: var(--text-muted);
    font-size: 0.925rem;
    font-style: italic;
}

.supporter-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    align-self: flex-start;
    margin-top: 0.25rem;
}

/* ==========================================================================
   PAINEL ADMINISTRATIVO (ADMIN DASHBOARD)
   ========================================================================== */
.admin-login-box {
    max-width: 400px;
    margin: 6rem auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .admin-grid-layout {
        grid-template-columns: 0.7fr 1.3fr;
    }
}

/* Dashboard Cards */
.admin-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-card-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.dashboard-card-value {
    font-size: 1.85rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--accent);
}

/* Configurações Admin Card */
.admin-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: fit-content;
}

.admin-card-title {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
}

/* Tabela de Doações */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    background-color: var(--bg-card-muted);
    padding: 1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

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

/* Badges de Status */
.badge {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending {
    background-color: #fef3c7;
    color: #d97706;
}

.badge-approved {
    background-color: #dcfce7;
    color: #15803d;
}

/* ==========================================================================
   PAINEL FLUTUANTE DE CUSTOMIZAÇÃO (DEMO THEMES)
   ========================================================================== */
.theme-picker-panel {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 250px;
    transition: transform 0.3s ease;
}

.theme-picker-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.theme-btn {
    width: 100%;
    height: 35px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.theme-btn:hover {
    transform: scale(1.05);
}

.theme-btn.active {
    border-color: var(--text-main);
}

.theme-btn-patriota { background: linear-gradient(135deg, #0f7c42, #f9bc00); }
.theme-btn-eco      { background: linear-gradient(135deg, #15803d, #ca8a04); }
.theme-btn-tech     { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.theme-btn-humanity { background: linear-gradient(135deg, #ea580c, #e11d48); }

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Utilidades */
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ==========================================================================
   SEÇÃO DE RECOMPENSAS / BRINDES (KITS DE APOIO)
   ========================================================================== */
.rewards-section {
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.25rem;
    text-align: center;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}

.rewards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

@media (min-width: 950px) {
    .rewards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.reward-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.reward-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.reward-image-wrapper {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-card-muted);
    padding: 1.25rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.reward-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.reward-card:hover .reward-image {
    transform: scale(1.04);
}

.reward-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.reward-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border-radius: 50px;
    letter-spacing: 0.05em;
}

.reward-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

.reward-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}

.reward-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

.reward-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
}

.btn-select-reward {
    width: 100%;
    background-color: var(--bg-card-muted);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
    text-align: center;
}

.reward-card:hover .btn-select-reward, .btn-select-reward:hover {
    background-color: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 8px rgba(var(--accent-rgb), 0.25);
}

/* ==========================================================================
   INTERATIVE LINK & FLOATING REWARDS BUTTON
   ========================================================================== */
.link-rewards {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    text-align: right;
    display: inline-flex;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    text-decoration: underline;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}

.link-rewards:hover {
    color: var(--accent-hover);
}

.floating-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
    z-index: 999;
    border-top: 1px solid var(--border-color);
    gap: 0.5rem;
}

.floating-btn {
    flex: 1;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-btn.primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.3);
    animation: rewardsPulse 2.5s infinite;
}

.floating-btn.primary:hover {
    background-color: var(--accent-hover);
}

.floating-btn.secondary {
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.floating-btn.secondary:hover {
    background-color: rgba(var(--accent-rgb), 0.2);
}

.floating-desktop-btn {
    display: none;
}

@media (min-width: 768px) {
    .floating-bottom-bar {
        display: none;
    }
    
    .floating-desktop-btn {
        display: block;
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        background-color: var(--accent);
        color: #fff;
        border: none;
        border-radius: 50px;
        padding: 1rem 1.8rem;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        z-index: 998;
        transition: var(--transition);
        animation: rewardsPulse 2s infinite;
    }
    
    .floating-desktop-btn:hover {
        transform: translateY(-3px) scale(1.05);
        background-color: var(--accent-hover);
    }
}

@keyframes rewardsPulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

/* ==========================================================================
   MODAL POPUP CAROUSEL
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 440px;
    padding: 2.25rem 1.75rem 1.75rem 1.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--accent);
}

.modal-title {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

/* CAROUSEL ENGINE */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.5rem;
    text-align: center;
}

.slide-image-wrapper {
    height: 160px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card-muted);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    padding: 0.5rem;
}

.slide-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.slide-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    background-color: rgba(var(--accent-rgb), 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

.slide-title {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.slide-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 1rem;
    height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
}

.slide-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
}

/* NAVIGATION BUTTONS */
.carousel-nav-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    user-select: none;
}

.carousel-nav-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.prev-btn {
    left: -0.75rem;
}

.next-btn {
    right: -0.75rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--accent);
    transform: scale(1.2);
}

/* ==========================================================================
   ADDED CUSTOM STYLES FOR CROP & NEW IMAGES
   ========================================================================== */

/* Campaign Hero Section with Horizontal Banner */
.campaign-hero-banner-wrapper {
    width: 100%;
    margin-bottom: 1.5rem;
}

.campaign-hero-banner {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--highlight); /* golden border highlight */
}

@media (min-width: 768px) {
    .campaign-hero-banner {
        height: 320px; /* taller banner on desktop */
    }
}

.campaign-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.08); /* crops the white border */
    transition: var(--transition);
}

.campaign-hero-banner:hover img {
    transform: scale(1.12);
}

/* "Nossa Missão" Tab Content layout */
.tab-mission-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tab-mission-text {
    flex: 1;
}

.tab-mission-image-wrapper {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.tab-mission-img {
    width: 100%;
    height: 100%;
    max-height: 250px;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition);
    display: block;
}
    flex-direction: column;
    align-items: center;
    padding: 0 0.5rem;
    text-align: center;
}

.slide-image-wrapper {
    height: 160px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card-muted);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    padding: 0.5rem;
}

.slide-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.slide-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    background-color: rgba(var(--accent-rgb), 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

.slide-title {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.slide-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 1rem;
    height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
}

.slide-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
}

/* NAVIGATION BUTTONS */
.carousel-nav-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    user-select: none;
}

.carousel-nav-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.prev-btn {
    left: -0.75rem;
}

.next-btn {
    right: -0.75rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--accent);
    transform: scale(1.2);
}

/* ==========================================================================
   ADDED CUSTOM STYLES FOR CROP & NEW IMAGES
   ========================================================================== */

/* Campaign Hero Section with Horizontal Banner */
.campaign-hero-banner-wrapper {
    width: 100%;
    margin-bottom: 1.5rem;
}

.campaign-hero-banner {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--highlight); /* golden border highlight */
}

@media (min-width: 768px) {
    .campaign-hero-banner {
        height: 320px; /* taller banner on desktop */
    }
}

.campaign-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.08); /* crops the white border */
    transition: var(--transition);
}

.campaign-hero-banner:hover img {
    transform: scale(1.12);
}

/* "Nossa Missão" Tab Content layout */
.tab-mission-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tab-mission-text {
    flex: 1;
}

.tab-mission-image-wrapper {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.tab-mission-img {
    width: 100%;
    height: 100%;
    max-height: 250px;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition);
    display: block;
}

.tab-mission-img:hover {
    transform: scale(1.04);
}

@media (min-width: 768px) {
    .tab-mission-wrapper {
        flex-direction: row;
        align-items: stretch;
    }
    .tab-mission-text {
        flex: 1.3;
    }
    .tab-mission-image-wrapper {
        flex: 0.7;
    }
    .tab-mission-img {
        max-height: 100%;
    }
}

/* Reward Card with Poster Crop (removes white border and fills card half) */
.reward-card.has-poster .reward-image-wrapper {
    padding: 0;
}

.reward-card.has-poster .reward-image {
    max-height: none;
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
}

.reward-card.has-poster:hover .reward-image {
    transform: scale(1.05);
}

/* Carousel Slide with Poster Crop */
.carousel-slide.has-poster .slide-image-wrapper {
    padding: 0;
    overflow: hidden;
    height: 260px; /* Taller for poster aspect ratio */
    background-color: transparent;
}

.carousel-slide.has-poster .slide-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
}

/* Pix Slogan Banner in Step 3 */
.pix-banner-wrapper {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.pix-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 767px) {
    body {
        padding-bottom: 70px; /* space for the floating bottom bar */
    }
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 1rem;
    display: flex;
    justify-content: center;
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.hidden {
    transform: translateY(120%);
}

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

.cookie-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

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

@media (max-width: 767px) {
    .cookie-banner {
        bottom: 60px; /* Fix above mobile floating bottom bar */
    }
}

/* Bloco de Divulgação Flutuante */
.floating-share-card {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 320px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    z-index: 9980;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

/* Slide in/out transition classes */
.floating-share-card.hidden-slide {
    transform: translateX(-150%);
    opacity: 0;
    pointer-events: none;
}

.floating-share-card.visible-slide {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Close button style */
.floating-share-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: var(--transition);
}

.floating-share-close:hover {
    color: var(--text-main);
}

.floating-share-body {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding-right: 1rem;
}

.floating-share-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.floating-share-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.floating-share-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.floating-share-text {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.floating-share-btn {
    align-self: stretch;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
}

/* Responsividade Mobile */
@media (max-width: 767px) {
    .floating-share-card {
        bottom: 5.5rem; /* Acima do botão flutuante mobile */
        left: 1rem;
        right: 1rem;
        width: auto;
    }
    
    .floating-share-card.hidden-slide {
        transform: translateY(200%);
    }
    
    .floating-share-card.visible-slide {
        transform: translateY(0);
    }
}

/* ==========================================================================
   ESTILOS PARA CPF E ENDEREÇO DE ENTREGA
   ========================================================================== */

/* Seção de Endereço */
.shipping-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-color);
    animation: fadeIn 0.3s ease;
}

/* Banner de Brinde Qualificado */
.reward-notice-banner {
    background-color: var(--bg-card-muted);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

/* Grupo Opt-out */
.opt-out-group {
    margin-bottom: 1.2rem;
}

.opt-out-group .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    user-select: none;
}

/* Inputs Inválidos */
.input-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.input-invalid:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* Elementos auxiliares do Painel Admin */
.admin-meta-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.3;
}

.admin-meta-label {
    font-weight: 600;
    color: var(--text-main);
}

.admin-address-block {
    margin-top: 0.25rem;
    padding: 0.35rem 0.5rem;
    background-color: var(--bg-page);
    border-radius: 4px;
    border-left: 2px solid var(--accent);
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

/* Animação de Spin para Loading */
@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

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

