:root {
    --primary-color: #1a3789;
    --primary-light: #2c4ba3;
    --primary-dark: #0d1f4a;
    --secondary-color: #4a90e2;
    --accent-color: #ffd700;
    --accent-blue: #1a3789;
    --accent-gold: #ffd700;
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #8E8E8E;
    --bg-light: #F8FAFC;
    --bg-lighter: #FFFFFF;
    --border-color: #E2E8F0;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --shadow-light: rgba(26, 55, 137, 0.12);
    --shadow-medium: rgba(26, 55, 137, 0.25);
    --shadow-strong: rgba(26, 55, 137, 0.35);
    
    /* Google Blue Colors */
    --google-blue: #1a3789;
    --google-blue-light: #2c4ba3;
    --google-blue-dark: #0d1f4a;
    --google-gold: #ffd700;
    --google-green: #34A853;
    --google-red: #EA4335;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-lighter);
    padding-top: 0;
    margin: 0;
}

/* 🔧 FIX DEFINITIVO: Corrigir problema do margin-top inline */
/* Remover qualquer margin-top inline problemático acima de 50px */
main[style*="margin-top"] {
    margin-top: 24px !important;
}

body[style*="margin-top"]:not([data-page*="admin"]):not(.admin-page) {
    margin-top: 0 !important;
    padding-top: 76px !important;
}

/* Forçar layout correto para elementos com margin-top inline excessivo */
*[style*="margin-top"] {
    --original-margin: 0;
}

/* Prevenir margin-top inline acima de 80px */
*[style*="margin-top: 100px"],
*[style*="margin-top: 120px"],
*[style*="margin-top: 150px"] {
    margin-top: 0 !important;
}

/* Regra para esconder safe-buy e navbar na área admin */
body[data-page*="admin"] .safe-buy-top,
body[data-page*="admin"] .navbar,
.admin-page .safe-buy-top,
.admin-page .navbar {
    display: none !important;
}

/* Ajustar margem do body na área admin */
body[data-page*="admin"],
.admin-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Ajustar main na área admin */
body[data-page*="admin"] main,
.admin-page main {
    margin-top: 0 !important;
    padding-top: 20px;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--google-blue) 0%, var(--google-blue-light) 50%, var(--google-blue-dark) 100%);
    position: relative;
    overflow: hidden;
}

/* Overlay com blur para seções com gradient-bg */
.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1;
}

.gradient-bg > .container {
    position: relative;
    z-index: 2;
}

.gradient-bg-alt {
    background: linear-gradient(135deg, var(--google-blue) 0%, var(--google-blue-dark) 100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--google-blue), var(--google-blue-light));
    border: none;
    border-radius: 50px;
    padding: 14px 35px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-medium);
    background: linear-gradient(135deg, var(--google-blue-light), var(--google-blue-dark));
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-light);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 14px 35px;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.card {
    border: none;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    background: var(--bg-lighter);
    position: relative;
}

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

/* Safe Buy Top Bar corrigida */
.safe-buy-top {
    align-items: center !important;
    background: linear-gradient(90deg, var(--google-green), var(--success-color));
    display: flex !important;
    justify-content: center !important;
    padding: 8px 5px;
    text-align: center;
    
    /* Forçar posição fixa */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    
    margin: 0;
    height: 36px;
    box-sizing: border-box;
    width: 100% !important;
    
    /* Garantir que não seja afetado por outros elementos */
    transform: none !important;
    will-change: auto !important;
}

.safe-buy-top p {
    align-items: center !important;
    color: #fff;
    display: flex !important;
    font-size: 14px;
    font-weight: 800;
    justify-content: center !important;
    letter-spacing: .8px;
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
}

.safe-buy-top p svg {
    fill: #fff;
    height: 18px;
    margin-right: 8px;
    position: relative;
    top: -1px;
    width: 18px;
}

/* Navbar corrigida */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: none;
    padding: 10px 0;
    
    /* Forçar posição fixa */
    position: fixed !important;
    top: 36px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    
    display: flex;
    align-items: center;
    margin: 0;
    
    /* Garantir que não seja afetado por outros elementos */
    transform: none !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-medium) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* 🔧 AJUSTE CRÍTICO: Compensar safe-buy e navbar fixos */
body:not([data-page*="admin"]):not(.admin-page) {
    padding-top: 76px !important; /* 36px (safe-buy) + 40px (navbar) */
    margin-top: 0 !important;
}

/* Ajuste do main para páginas normais */
main:not(.admin-main) {
    margin-top: 24px !important; /* Espaçamento adicional */
}

/* 🔧 PROTEÇÃO EXTRA: Prevenir margin-top inline excessivo no main */
main {
    position: relative;
}

main[style] {
    margin-top: 24px !important;
}

.hero-section {
    background: linear-gradient(135deg, var(--google-blue) 0%, var(--google-blue-light) 50%, var(--google-blue-dark) 100%);
    padding: 120px 0 100px;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Overlay com blur para suavizar o fundo */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="20" cy="20" r="2" fill="url(%23a)"/><circle cx="80" cy="40" r="1.5" fill="url(%23a)"/><circle cx="40" cy="80" r="1" fill="url(%23a)"/></svg>') repeat;
    opacity: 0.1;
    z-index: 2;
}

.hero-section > .container {
    position: relative;
    z-index: 3;
}

.section-padding {
    padding: 100px 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--google-blue), var(--google-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-card {
    position: relative;
    overflow: visible;
    transition: all 0.4s ease;
    margin-top: 30px;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--google-blue), var(--google-blue-light));
}

.price-card.border-primary {
    border: 2px solid var(--primary-color) !important;
    position: relative;
}

.price-card.border-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--google-blue), var(--google-blue-light));
    opacity: 0.03;
    pointer-events: none;
}

/* Badge "Mais Popular" aprimorado */
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: linear-gradient(135deg, var(--google-blue), var(--google-blue-light));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--shadow-medium);
    border: 2px solid white;
    white-space: nowrap;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { 
        transform: translateX(-50%) scale(1); 
        box-shadow: 0 4px 15px var(--shadow-medium);
    }
    50% { 
        transform: translateX(-50%) scale(1.05); 
        box-shadow: 0 6px 20px var(--shadow-strong);
    }
}

.floating-animation {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-1deg); }
}

.pulse-btn {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px var(--shadow-light); }
    50% { transform: scale(1.05); box-shadow: 0 8px 25px var(--shadow-medium); }
    100% { transform: scale(1); box-shadow: 0 4px 15px var(--shadow-light); }
}

.stats-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(26, 55, 137, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-light);
}

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--google-blue), var(--google-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--google-blue), var(--google-blue-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    margin: 0 auto 25px;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 12px 35px var(--shadow-medium);
}

.social-proof {
    background: var(--bg-light);
}

.testimonial {
    background: var(--bg-lighter);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.rating {
    color: var(--accent-gold);
}

.form-control {
    border-radius: 16px;
    border: 2px solid var(--border-color);
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-lighter);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--shadow-light);
}

.order-bump {
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(26, 55, 137, 0.02), rgba(44, 75, 163, 0.02));
}

.order-bump:hover {
    background: linear-gradient(135deg, rgba(26, 55, 137, 0.05), rgba(44, 75, 163, 0.05));
    transform: translateY(-2px);
}

.discount-badge {
    background: var(--success-color);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.nav-pills .nav-link {
    border-radius: 25px;
    padding: 12px 25px;
    margin: 0 8px;
    font-weight: 600;
    color: var(--text-medium) !important;
    background: transparent;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--google-blue), var(--google-blue-light)) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px var(--shadow-light);
}

.nav-pills .nav-link:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}

.accordion-button {
    background: var(--bg-lighter);
    border: none;
    border-radius: 16px !important;
    font-weight: 600;
    color: var(--text-dark);
    padding: 20px 25px;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--google-blue), var(--google-blue-light));
    color: white;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.accordion-item {
    border: none;
    background: transparent;
}

.accordion-body {
    background: var(--bg-lighter);
    border-radius: 0 0 16px 16px;
    color: var(--text-medium);
}

/* Benefits Section */
.benefits-section {
    background: var(--bg-light);
}

.benefit-card {
    background: var(--bg-lighter);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--google-blue), var(--google-blue-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px var(--shadow-light);
}

/* Testimonial */
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--google-blue), var(--google-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* 🆕 ESTILOS PARA GARANTIAS */
.guarantee-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.guarantee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guarantee-card:hover::before {
    opacity: 1;
}

.guarantee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.guarantee-icon {
    font-size: 3rem;
    color: #FFD700;
    margin-bottom: 20px;
}

.guarantee-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive corrigido */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .stats-number {
        font-size: 2.2rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .btn-primary,
    .btn-outline-light {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .navbar-brand img {
        height: 35px;
    }

    .popular-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
        top: -12px;
    }

    .price-card {
        margin-top: 25px;
    }

    .guarantee-card {
        margin-bottom: 20px;
        padding: 25px 15px 50px 15px;
    }
    
    .guarantee-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    /* 🔧 AJUSTE MOBILE CRÍTICO: safe-buy e navbar */
    .safe-buy-top {
        height: 32px !important;
        padding: 6px 5px !important;
    }

    .safe-buy-top p {
        font-size: 12px !important;
    }

    .safe-buy-top p svg {
        width: 16px !important;
        height: 16px !important;
        margin-right: 6px !important;
    }

    .navbar {
        top: 32px !important;
        padding: 8px 0 !important;
    }

    /* 🔧 LAYOUT MOBILE FIXADO */
    body:not([data-page*="admin"]):not(.admin-page) {
        padding-top: 68px !important; /* 32px (safe-buy mobile) + 36px (navbar mobile) */
        margin-top: 0 !important;
    }

    /* 🔧 PROTEÇÃO EXTRA MOBILE: Prevenir margin-top inline */
    main[style*="margin-top"] {
        margin-top: 24px !important;
    }

    body[style*="margin-top"]:not([data-page*="admin"]):not(.admin-page) {
        margin-top: 0 !important;
        padding-top: 68px !important;
    }
}

/* Loading and animations */
.loading {
    display: none;
}

.spinner-border {
    color: var(--primary-color);
}

/* 🔧 PROTEÇÃO FINAL: Override de qualquer margin-top inline problemático */
html[style*="margin-top"],
body[style*="margin-top: 100"],
body[style*="margin-top: 120"],
body[style*="margin-top: 150"],
main[style*="margin-top: 100"],
main[style*="margin-top: 120"],
main[style*="margin-top: 150"] {
    margin-top: 0 !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--google-blue), var(--google-blue-light));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--google-blue-light), var(--google-blue-dark));
}