

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Nova Paleta de Cores */
    --color-primary: #1F4590; /* Azul Profundo - Confiança */
    --color-action: #FF8C00; /* Laranja Vibrante - Ação/CTA */
    --color-accent: #00A6A6; /* Ciano/Verde Água - Destaque/Inovação */
    --color-bg: #FAFAFA; /* Off-White Suave - Fundo Principal */
    --color-text: #333333; /* Cinza Escuro - Texto Padrão */

    /* Cores auxiliares */
    --ml-yellow: #fff159;
    --ml-blue: #1F4590; /* Usando a cor primária */
    --ml-blue-dark: #1a3a75; /* Versão mais escura da primária */
    --ml-dark: #333333;
    --ml-gray: #666;
    --ml-light-gray: #ededed;
    --ml-white: #fff;
    --ml-border: #e6e6e6;
    --ml-green: #00a650;
    --ml-red: #ff6b6b;
    --shadow: 0 1px 2px 0 rgba(0,0,0,.1);
    --shadow-hover: 0 4px 8px 0 rgba(0,0,0,.12);
}

/* Dark Mode Variables */
:root.dark-mode {
    --color-bg: #1a1a1a;
    --color-text: #e0e0e0;
    --ml-dark: #e0e0e0;
    --ml-gray: #aaa;
    --ml-light-gray: #2a2a2a;
    --ml-white: #1a1a1a;
    --ml-border: #333;
    --shadow: 0 1px 2px 0 rgba(0,0,0,.3);
    --shadow-hover: 0 4px 8px 0 rgba(0,0,0,.4);
}

/* Dark Mode Overrides for White Backgrounds */
:root.dark-mode .top-bar .logo,
:root.dark-mode .top-bar-links a,
:root.dark-mode .language-button,
:root.dark-mode .category-link {
    color: #ffffff !important; /* White text for logo, links, language button and navigation menu in dark mode */
}
:root.dark-mode .categories-nav,
:root.dark-mode .search-bar,
:root.dark-mode .platform-card,
:root.dark-mode .widget-card,
:root.dark-mode .category-card,
:root.dark-mode .affiliate-card,
:root.dark-mode .slot-card,
:root.dark-mode .tool-card,
:root.dark-mode .course-card,
:root.dark-mode .product-card,
:root.dark-mode .affiliate-product-card,
:root.dark-mode .service-card,
:root.dark-mode .login-container,
:root.dark-mode .user-area,
:root.dark-mode .filters-panel,
:root.dark-mode .home-hero,
:root.dark-mode .page-hero,
:root.dark-mode .courses-hero,
:root.dark-mode .filter-bar,
:root.dark-mode .info-card,
:root.dark-mode .home-bottom-ads,
:root.dark-mode .sidebar-ads,
:root.dark-mode .product-page,
:root.dark-mode .features-section,
:root.dark-mode .promo-section-2,
:root.dark-mode .quick-categories,
:root.dark-mode .category-quick-card,
:root.dark-mode .feature-card,
:root.dark-mode .tool-card,
:root.dark-mode .accordion-item,
:root.dark-mode .review-item {
    background: var(--ml-white) !important;
}

:root.dark-mode .hero-main {
    background: #1a1a1a !important;
}

:root.dark-mode .hero-main::before {
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%) !important;
}

/* Dark Mode for Select Elements */
:root.dark-mode select {
    background: var(--ml-white) !important;
    color: var(--ml-dark) !important;
    border-color: var(--ml-border) !important;
}

:root.dark-mode select option {
    background: var(--ml-white) !important;
    color: var(--ml-dark) !important;
}

/* Dark Mode for Promo Sections */
:root.dark-mode .promo-section-1 {
    background: var(--ml-white) !important;
}

:root.dark-mode .promo-section-2 {
    background: var(--ml-white) !important;
}

/* Dark Mode for CTA Section */
:root.dark-mode .cta-section {
    background: linear-gradient(135deg, #0f1419 0%, #1a1a2e 100%) !important;
}

/* Dark Mode for Courses Page */
:root.dark-mode .courses-page {
    background: linear-gradient(180deg, #1a1a1a 0%, var(--ml-white) 65%) !important;
}

/* Dark Mode for Banner Wall */
:root.dark-mode .banner-wall {
    background: #2a2a2a !important;
    border-color: #333 !important;
}

body {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

/* ============================================
   BARRA SUPERIOR
   ============================================ */
.top-bar {
    background-color: var(--ml-white);
    padding: 8px 0;
    border-bottom: 1px solid var(--ml-border);
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 32px;
    width: auto;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Ajuste dos ícones SVG para não ficarem gigantes no mobile */
.top-bar-links svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Dark Mode Toggle Button */
#dark-mode-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s;
    color: var(--ml-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

#dark-mode-toggle:hover {
    background-color: var(--ml-light-gray);
    color: var(--color-primary);
}

.top-bar-links a {
    color: var(--ml-gray);
    text-decoration: none;
}

.top-bar-links a:hover {
    color: var(--color-primary);
}

.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.language-button {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 4px 8px;
    color: inherit;
    cursor: pointer;
}

.language-button:hover {
    background: #f8f9fa;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.translator-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.translator-icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.language-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(31, 69, 144, 0.2);
}

.globe-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.language-button.open .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--ml-white);
    border: 1px solid var(--ml-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.language-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 6px;
    margin: 4px 8px;
}

.language-option:hover {
    background: #f8f9fa;
}

.language-option.active {
    background: rgba(31, 69, 144, 0.1);
    color: var(--color-primary);
    font-weight: 600;
}

.flag {
    font-size: 18px;
}

@media (max-width: 520px) {
    .language-switcher {
        width: 100%;
        justify-content: flex-start;
    }
    
    .language-switcher select {
        width: 100%;
    }
}

/* ============================================
   BARRA DE BUSCA
   ============================================ */
.search-bar {
    background-color: var(--ml-white);
    padding: 12px 0;
    box-shadow: var(--shadow);
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--ml-border);
    border-radius: 2px;
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-btn {
    padding: 10px 30px;
    background-color: var(--color-action);
    color: var(--ml-white);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #e67d00;
}

/* ============================================
   NAVEGAÇÃO DE CATEGORIAS
   ============================================ */
.categories-nav {
    background-color: var(--ml-white);
    border-bottom: 1px solid var(--ml-border);
    padding: 10px 0;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.categories-container::-webkit-scrollbar {
    display: none;
}

.category-link {
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
    padding: 5px 10px;
    transition: all 0.3s;
    position: relative;
}

.category-link:hover,
.category-link.active {
    color: var(--color-primary);
}

.category-link:hover::after,
.category-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 2px;
    background-color: var(--color-accent);
}

/* ============================================
   CONTEÚDO PRINCIPAL
   ============================================ */
.main-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.content-area {
    min-height: 500px;
}

/* ============================================
   BANNERS E CARROSSÉIS
   ============================================ */
.banner-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
    background-size: cover;
    background-position: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-action);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.banner-nav.prev {
    left: 10px;
}

.banner-nav.next {
    right: 10px;
}

.banner-nav:hover {
    opacity: 1;
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.banner-dot.active {
    background: var(--color-action);
}

/* ============================================
   SEÇÕES DE AFILIADOS / HOME
   ============================================ */
.hero-home {
    max-width: 1200px;
    margin: 30px auto;
    padding: 40px 32px;
    border-radius: 16px;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.2), transparent),
                linear-gradient(135deg, #1F4590 0%, #00A6A6 100%);
    color: var(--ml-white);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    align-items: center;
    box-shadow: 0 30px 80px rgba(31, 69, 144, 0.35);
}

.hero-home__intro h1 {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-home__intro p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-home__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
}

.hero-home__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.12);
    padding: 18px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-card span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 6px;
}

.metric-card strong {
    font-size: 24px;
}

.section-heading {
    max-width: 1200px;
    margin: 40px auto 16px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.section-heading h2 {
    font-size: 28px;
    color: var(--ml-dark);
}

.section-heading p {
    color: var(--ml-gray);
    max-width: 520px;
}

.platform-grid,
.slot-grid,
.category-grid,
.widget-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.platform-card,
.widget-card,
.category-card {
    background: var(--ml-white);
    border-radius: 16px;
    border: 1px solid #e9e9e9;
    box-shadow: var(--shadow);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-card__badge {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.platform-card__description {
    color: var(--ml-gray);
    font-size: 14px;
}

.platform-card__cta,
.category-card__cta,
.widget-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-action);
    font-weight: 600;
    text-decoration: none;
}

.banner-wall {
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 30px 20px;
    border-radius: 18px;
    background: #f5f8ff;
    border: 1px solid #dfe8ff;
}

.banner-wall h3 {
    margin-bottom: 10px;
    color: var(--ml-dark);
}

.banner-wall p {
    color: var(--ml-gray);
    margin-bottom: 20px;
}

.banner-slot {
    background: var(--ml-white);
    border: 1px dashed #94a9ff;
    border-radius: 12px;
    padding: 20px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.banner-slot__label {
    font-weight: 700;
    color: var(--color-primary);
}

.banner-slot__hint {
    color: var(--ml-gray);
    font-size: 14px;
}

.seo-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.seo-list li {
    padding-left: 20px;
    position: relative;
    color: var(--ml-gray);
}

.seo-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-action);
}

/* ============================================
   PÁGINAS DE CATEGORIAS AFILIADAS
   ============================================ */
.page-hero {
    max-width: 1200px;
    margin: 30px auto;
    padding: 32px 28px;
    border-radius: 18px;
    background: var(--ml-white);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    border: 1px solid #eef1ff;
}

.page-hero__title {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-hero__title h1 {
    font-size: 30px;
    color: var(--ml-dark);
}

.page-hero__title p {
    color: var(--ml-gray);
}

.badge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-grid {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.info-card {
    background: var(--ml-white);
    border-radius: 14px;
    border: 1px solid var(--ml-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-card strong {
    font-size: 20px;
    color: var(--ml-dark);
}

.widget-card {
    min-height: 200px;
}

.widget-card__slot {
    flex: 1;
    border: 2px dashed #c1ccff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 16px;
    gap: 6px;
    color: var(--ml-gray);
}

.widget-card__slot strong {
    color: var(--color-primary);
}

.seo-note {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 24px 28px;
    border-radius: 18px;
    background: #f8f9ff;
    border: 1px solid #e0e6ff;
    color: var(--ml-gray);
}

@media (max-width: 768px) {
    .hero-home {
        padding: 32px 24px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .banner-wall {
        padding: 20px;
    }
}

.home-bottom-ads {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 28px;
    border-radius: 18px;
    background: var(--ml-white);
    box-shadow: var(--shadow);
    border: 1px solid #e7ebff;
}

.home-bottom-ads h3 {
    font-size: 24px;
    color: var(--ml-dark);
    margin-bottom: 8px;
}

.home-bottom-ads p {
    color: var(--ml-gray);
    margin-bottom: 20px;
}

.home-bottom-ads__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.home-bottom-ads .ad-banner {
    margin: 0;
    border: 1px dashed #cdd5ff;
    border-radius: 12px;
    padding: 10px;
    background: #f8f9ff;
}

/* ============================================
   PÁGINA DE CURSOS
   ============================================ */
.courses-page {
    background: linear-gradient(180deg, #f4f7ff 0%, #ffffff 65%);
    min-height: 100vh;
}

.courses-hero {
    background: var(--ml-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 20px auto 30px;
    max-width: 1200px;
}

.courses-hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--ml-dark);
}

.courses-hero p {
    color: var(--ml-gray);
    font-size: 16px;
}

.courses-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.course-stat {
    background: #f5f8ff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e1e6ff;
}

.course-stat span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ml-gray);
    margin-bottom: 6px;
}

.course-stat strong {
    font-size: 20px;
    color: var(--color-primary);
}

.filter-bar {
    background: var(--ml-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    max-width: 1200px;
    margin: 20px auto 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ml-dark);
}

.filter-field select,
.filter-field input[type="search"],
.filter-field input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ml-border);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--ml-white);
}

.filter-field__controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-field__controls input {
    flex: 1;
}

.filter-field__controls .btn-primary {
    white-space: nowrap;
}

.filter-field--search {
    grid-column: 1 / -1;
}

.filter-field--actions {
    align-self: flex-end;
}

.filter-bar--store,
.filter-bar--services {
    margin-top: 20px;
}

.filter-bar--courses {
    margin-top: 0;
}

.courses-grid {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: grid;
    gap: 20px;
    /* 4 colunas fixas em telas grandes */
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .courses-grid {
        /* 3 colunas em telas médias */
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .courses-grid {
        /* 2 colunas em tablets */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .courses-grid {
        /* 2 colunas no celular */
        grid-template-columns: repeat(2, 1fr);
    }
}

.course-card {
    background: var(--ml-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.course-cover {
    width: 100%;
    /* Altura fixa para padronizar todas as capas de curso */
    height: 180px;
    object-fit: cover; /* garante corte uniforme sem distorcer */
}

.course-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.course-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ml-dark);
}

.course-instructor {
    font-size: 14px;
    color: var(--ml-gray);
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--ml-gray);
}

.course-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #b4690e;
}

.rating-stars {
    color: #f4b400;
    font-size: 14px;
}

.course-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--ml-dark);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #fff4e5;
    color: #a34f00;
    width: fit-content;
}

.badge.new {
    background: #e6fbff;
    color: #008297;
}

.badge.updated {
    background: #eef2ff;
    color: #3949ab;
}

.course-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.course-actions button {
    flex: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

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

.review-panel {
    background: #f8f9ff;
    border-top: 1px solid #e0e4ff;
    padding: 16px 20px;
}

.review-panel h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--ml-dark);
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.review-form select,
.review-form textarea,
.review-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--ml-border);
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.review-form textarea {
    min-height: 90px;
    resize: vertical;
}

.review-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e6e9ff;
}

.review-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ml-dark);
}

.review-empty {
    text-align: center;
    color: var(--ml-gray);
    font-size: 14px;
}

.review-meta {
    font-size: 12px;
    color: var(--ml-gray);
    margin-top: 6px;
}

/* ============================================
   LISTA DE PRODUTOS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.product-card {
    background: var(--ml-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: var(--ml-white);
    padding: 10px;
}

.product-info {
    padding: 12px;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--ml-dark);
    margin-bottom: 8px;
}

.product-title {
    font-size: 14px;
    color: var(--ml-gray);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-location {
    font-size: 12px;
    color: var(--ml-gray);
}

.product-badge {
    display: inline-block;
    background: var(--ml-green);
    color: white;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 11px;
    margin-top: 4px;
}

/* Estilos para produtos Amazon afiliados */
.affiliate-product-card {
    background: var(--ml-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.affiliate-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.affiliate-product-card .product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: var(--ml-white);
    padding: 15px;
}

.affiliate-product-card .product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.affiliate-product-card .product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ml-dark);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.affiliate-product-card .product-category {
    font-size: 13px;
    color: var(--ml-gray);
    margin: 0;
}

.affiliate-product-card .product-actions {
    margin-top: auto;
    padding-top: 12px;
}

.affiliate-product-card .product-actions .btn-primary {
    width: 100%;
    text-align: center;
    display: block;
    padding: 12px;
    background: #FF9900;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.affiliate-product-card .product-actions .btn-primary:hover {
    background: #FF8800;
}

/* ============================================
   SIDEBAR DE PROPAGANDA
   ============================================ */
.sidebar-ads {
    background: var(--ml-white);
    border-radius: 4px;
    padding: 15px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.ad-banner {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.ad-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   PÁGINA DE PRODUTO
   ============================================ */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: var(--ml-white);
    padding: 30px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.product-gallery {
    position: relative;
}

.product-main-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background: var(--ml-white);
    border: 1px solid var(--ml-border);
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 2px solid var(--ml-border);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--color-primary);
}

.product-details h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--ml-dark);
}

.product-price-large {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--ml-dark);
}

.product-description {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--ml-border);
}

.product-description h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.product-description p {
    color: var(--ml-gray);
    line-height: 1.8;
}

.btn-primary {
    background-color: var(--color-action);
    color: var(--ml-white);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 15px;
}

.btn-primary:hover {
    background-color: #e67d00;
}

.btn-secondary {
    background-color: var(--ml-white);
    color: var(--color-primary);
    padding: 12px 30px;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--ml-white);
}

/* ============================================
   PÁGINA DE LOGIN
   ============================================ */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    background: var(--ml-white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--ml-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--ml-gray);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--ml-border);
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.btn-google {
    background-color: var(--ml-white);
    color: var(--ml-dark);
    border: 1px solid var(--ml-border);
    padding: 12px;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.btn-google:hover {
    background-color: var(--ml-light-gray);
}

.divider {
    text-align: center;
    margin: 20px 0;
    color: var(--ml-gray);
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--ml-border);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}



.history-item-info {
    flex: 1;
}

.history-item-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.history-item-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--ml-dark);
}

/* ============================================
   SERVIÇOS
   ============================================ */
.service-card {
    background: var(--ml-white);
    padding: 20px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.service-title {
    font-size: 20px;
    color: var(--ml-dark);
    margin-bottom: 8px;
}

.service-location {
    color: var(--ml-gray);
    font-size: 14px;
}

.service-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary);
}

.service-description {
    color: var(--ml-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.service-whatsapp:hover {
    background: #20ba5a;
}

.filters-panel {
    background: var(--ml-white);
    padding: 20px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--ml-dark);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--ml-border);
    border-radius: 4px;
}

.main-container.home-container {
    display: block;
}

/* ============================================
   AMAZON BANNER - MOBILE OPTIMIZED
   ============================================ */

/* --- AJUSTES EXCLUSIVOS PARA MOBILE --- */
@media (max-width: 768px) {
    /* Transforma o banner em layout inline para mobile */
    .amazon-banner-section {
        display: flex !important;
        justify-content: center !important;
        margin: 40px 20px !important;
    }

    .amazon-banner {
        width: 100% !important;
        max-width: 500px !important;
        padding: 20px !important;
        text-align: center !important;
    }

    .amazon-banner div[style*="max-width: 1200px"] {
        max-width: none !important;
        margin: 0 !important;
    }

    .amazon-banner div[style*="display: flex"] {
        display: block !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
    }

    .amazon-banner div[style*="flex: 1"] {
        flex: none !important;
        min-width: auto !important;
        text-align: center !important;
    }

    .amazon-banner div[style*="flex-shrink: 0"] {
        display: none !important;
    }

    .amazon-banner h2[data-i18n="products.banner.title"] {
        margin: 0 0 8px 0 !important;
        font-size: 22px !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        line-height: 1.2 !important;
        position: relative !important;
    }

    /* O wrapper do logo com altura exata da letra */
    .amazon-banner h2[data-i18n="products.banner.title"]::after {
        content: '';
        display: inline-block;
        height: 2.352em; /* 40% maior que 1.68em */
        width: 7.35em; /* 40% maior que 5.25em */
        background-image: url('https://logos-world.net/wp-content/uploads/2020/04/Amazon-Logo.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        filter: brightness(0) invert(1);
        margin-left: 8px;
        vertical-align: middle;
        position: relative;
        top: 1px; /* Ajuste fino para alinhamento */
    }

    .amazon-banner p[data-i18n="products.banner.discount"] {
        margin: 0 !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        opacity: 0.9 !important;
    }

    /* Ajuste fino para telas mini */
    @media (max-width: 360px) {
        .amazon-banner h2[data-i18n="products.banner.title"] {
            font-size: 18px !important;
        }
        .amazon-banner p[data-i18n="products.banner.discount"] {
            font-size: 15px !important;
        }
    }
}

/* ============================================
   WORKSHOP 3D BANNER - MOBILE OPTIMIZED
   ============================================ */

/* --- AJUSTES EXCLUSIVOS PARA MOBILE --- */
@media (max-width: 768px) {
    /* Transforma o banner do workshop em layout otimizado para mobile */
    .workshop3d-banner {
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #f39c12 100%) !important;
        border-radius: 12px !important;
        padding: 20px !important;
        color: white !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        max-width: 1100px !important;
        margin: 0 auto !important;
    }

    .workshop3d-banner div[style*="max-width: 1200px"] {
        max-width: none !important;
        margin: 0 !important;
    }

    .workshop3d-banner div[style*="display: flex"] {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px !important;
        flex-wrap: wrap !important;
    }

    /* Área do Modelo 3D */
    .workshop3d-banner div[style*="flex: 1"][style*="min-width: 200px"]:first-child {
        flex: 1 !important;
        min-width: 150px !important;
        height: 250px !important;
    }

    .workshop3d-banner div[style*="flex: 1"][style*="min-width: 200px"]:first-child model-viewer {
        width: 100% !important;
        height: 100% !important;
        outline: none !important;
    }

    /* Área do Texto */
    .workshop3d-banner div[style*="flex: 1"][style*="min-width: 200px"]:last-child {
        flex: 1.5 !important;
        text-align: left !important;
        min-width: 200px !important;
    }

    .workshop3d-banner h2[data-i18n="workshop3d.couponTitle"] {
        margin: 0 0 10px 0 !important;
        font-size: 24px !important;
        line-height: 1.2 !important;
    }

    .workshop3d-banner p[data-i18n="workshop3d.couponDiscount"] {
        margin: 0 !important;
        font-size: 18px !important;
        font-weight: 600 !important;
    }

    .workshop3d-banner p[data-i18n="workshop3d.couponNote"] {
        margin: 10px 0 0 0 !important;
        font-size: 13px !important;
        opacity: 0.8 !important;
    }

    /* --- RESPONSIVIDADE MOBILE --- */
    @media (max-width: 600px) {
        .workshop3d-banner div[style*="display: flex"] {
            gap: 10px !important;
        }

        .workshop3d-banner div[style*="flex: 1"][style*="min-width: 200px"]:first-child {
            flex: 0.8 !important;
            height: 180px !important;
        }

        .workshop3d-banner h2[data-i18n="workshop3d.couponTitle"] {
            font-size: 18px !important;
        }

        .workshop3d-banner p[data-i18n="workshop3d.couponDiscount"] {
            font-size: 15px !important;
        }

        .workshop3d-banner p[data-i18n="workshop3d.couponNote"] {
            font-size: 11px !important;
        }
    }

    /* Para telas muito pequenas, empilha para não cortar */
    @media (max-width: 400px) {
        .workshop3d-banner div[style*="display: flex"] {
            flex-direction: column !important;
            text-align: center !important;
        }
        .workshop3d-banner div[style*="flex: 1"][style*="min-width: 200px"]:last-child {
            text-align: center !important;
        }
    }

    /* Remove emoji e seta apenas no banner de visualização 3D */
    .workshop3d-viewer-banner div[style*="display: flex"] div[style*="font-size: 24px"],
    .workshop3d-viewer-banner div[style*="display: flex"] div[style*="font-size: 16px"] {
        display: none !important;
    }
}

.stat-card span {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--ml-gray);
    letter-spacing: 0.08em;
}

.stat-card strong {
    font-size: 22px;
    color: var(--ml-dark);
}

.banner-slot {
    background: repeating-linear-gradient(
        45deg,
        rgba(31, 69, 144, 0.08),
        rgba(31, 69, 144, 0.08) 12px,
        rgba(0, 166, 166, 0.08) 12px,
        rgba(0, 166, 166, 0.08) 24px
    );
    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 26px;
    text-align: center;
    color: var(--ml-dark);
    font-size: 14px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.banner-slot code {
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0 10px;
}

.section-heading h2 {
    font-size: 26px;
    color: var(--ml-dark);
}

.section-subtitle {
    color: var(--ml-gray);
    margin-bottom: 20px;
}

.affiliate-grid,
.slot-grid,
.tools-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.affiliate-card,
.slot-card,
.tool-card {
    background: var(--ml-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 166, 166, 0.12);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.slot-card__header h3 {
    font-size: 20px;
    color: var(--ml-dark);
    margin-bottom: 6px;
}

.slot-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slot-placeholder,
.widget-placeholder {
    border: 2px dashed rgba(31, 69, 144, 0.3);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    color: var(--ml-gray);
    font-size: 13px;
    background: rgba(31, 69, 144, 0.03);
}

.cta-link {
    color: var(--color-action);
    font-weight: 600;
    text-decoration: none;
}

.cta-link:hover {
    text-decoration: underline;
}

.page-hero {
    background: var(--ml-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 30px 0;
}

.page-hero h1 {
    font-size: clamp(28px, 4vw, 38px);
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--ml-gray);
}

/* ============================================
   NOVA HOME - HERO E SEÇÕES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Principal */
.hero-main {
    background: linear-gradient(135deg, #1F4590 0%, #00A6A6 100%);
    padding: 0 20px 20px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.hero-main::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

/* Amazon Banner com Efeito */
.amazon-banner {
    background: linear-gradient(135deg, #FF9900 0%, #FF6600 100%);
    position: relative;
    overflow: hidden;
}

.amazon-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

/* 3D Workshop Banner */
.workshop3d-banner {
    background: linear-gradient(90deg, #2B4494 0%, #22B5AD 50%, #F7941E 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.workshop3d-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

/* Cupom WIDEMARKET com sombra preta */
.workshop3d-coupon {
    color: #FFFFFF !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

/* Banner Visualização 3D */
.workshop3d-viewer-banner {
    background: linear-gradient(90deg, #2B4494 0%, #22B5AD 50%, #F7941E 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.workshop3d-viewer-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-main__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: auto;
    padding: 20px 0;
}

.hero-main__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.highlight-text {
    background: linear-gradient(120deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-main__subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.95;
}

.hero-main__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-hero-primary {
    background: #FF9900;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

.btn-hero-primary:hover {
    background: #FF8800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.5);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-main__text {
    flex: 1.2;
}

.hero-main__image {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image-placeholder {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    overflow: hidden;
}

.hero-img,
.promo-img {
    width: 100%;
    height: auto;
    display: block;
}

.dark-logo {
    display: none;
    width: 100%;
    height: auto;
}

:root.dark-mode .hero-img:not(.dark-logo),
:root.dark-mode .promo-img:not(.dark-logo) {
    display: none;
}

:root.dark-mode .dark-logo {
    display: block;
}

.floating-badge {
    position: absolute;
    background: var(--color-action);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    animation: float 3s ease-in-out infinite;
}

.badge-1 {
    top: 80px;
    left: 20px;
    animation-delay: 0s;
}

.badge-2 {
    top: 30%;
    right: 10px;
    transform: translateY(-50%);
    animation-delay: 1s;
}

.badge-3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

/* Badges para seção de Produtos (promo-section-1) */
.badge-promo1-1 {
    top: 18px;
    left: 15px;
    animation-delay: 0.3s;
}

.badge-promo1-2 {
    top: 45%;
    right: 12px;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

.badge-promo1-3 {
    bottom: 18px;
    left: 55%;
    transform: translateX(-50%);
    animation-delay: 2.7s;
}

/* Badges para seção de Produtos (promo-section-1) */
.badge-promo1-1 {
    top: 18px;
    left: 15px;
    animation-delay: 0.3s;
}

.badge-promo1-2 {
    top: 45%;
    right: 12px;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

.badge-promo1-3 {
    bottom: 18px;
    left: 55%;
    transform: translateX(-50%);
    animation-delay: 2.7s;
}

/* Badges para seção 3D */
.badge-3d-1 {
    top: 15px;
    left: 15px;
    animation-delay: 0s;
}

.badge-3d-2 {
    top: 40%;
    right: 10px;
    transform: translateY(-50%);
    animation-delay: 1.2s;
}

.badge-3d-3 {
    bottom: 15px;
    left: 60%;
    transform: translateX(-50%);
    animation-delay: 2.4s;
}

/* Badges para seção de Cursos */
.badge-courses-1 {
    top: 20px;
    right: 15px;
    animation-delay: 0.5s;
}

.badge-courses-2 {
    top: 35%;
    left: 10px;
    animation-delay: 1.7s;
}

.badge-courses-3 {
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    animation-delay: 2.9s;
}

/* Badges para seção de Ferramentas */
.badge-tools-1 {
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.8s;
}

.badge-tools-2 {
    top: 60%;
    right: 15px;
    transform: translateY(-50%);
    animation-delay: 2.0s;
}

.badge-tools-3 {
    bottom: 15px;
    left: 20px;
    animation-delay: 3.2s;
}

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

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--ml-dark);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--ml-dark);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--ml-gray);
    line-height: 1.6;
}

/* Promo Sections */
.promo-section {
    padding: 40px 20px;
}

.promo-section-1 {
    background: white;
}

.promo-section-2 {
    background: white;
}

.promo-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.promo-content-reverse {
    direction: rtl;
}

.promo-content-reverse > * {
    direction: ltr;
}

.promo-image-placeholder {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.promo-image-placeholder model-viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 16px;
}

.promo-image-placeholder {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 300px;
    width: 100%;
}

.floating-badge {
    position: absolute;
    background: var(--color-action);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

.promo-img {
    width: 100%;
    height: auto;
    display: block;
}

.promo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #FF9900;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
}

.promo-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--ml-dark);
}

.text-gradient {
    background: linear-gradient(135deg, #1F4590 0%, #00A6A6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ml-gray);
    margin-bottom: 24px;
}

.promo-list {
    list-style: none;
    margin-bottom: 30px;
}

.promo-list li {
    padding: 10px 0;
    font-size: 16px;
    color: var(--ml-dark);
}

.btn-promo {
    display: inline-block;
    padding: 14px 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-promo:hover {
    background: var(--ml-blue-dark);
    transform: translateY(-2px);
}

.promo-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--ml-gray);
    margin-top: 5px;
}

/* Quick Categories */
.quick-categories {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-quick-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: block;
}

.category-quick-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    color: var(--color-primary);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.category-quick-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ml-dark);
}

.category-quick-card p {
    color: var(--ml-gray);
    line-height: 1.6;
}

/* Tool SVG Icons */
.tool-svg-icon {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.tool-svg-icon svg {
    width: 80px;
    height: 80px;
}

/* Dark Mode for Tool SVG Icons */
:root.dark-mode .tool-svg-icon {
    background: var(--ml-white);
    color: #adb5bd;
}

:root.dark-mode .tool-svg-icon svg {
    color: #adb5bd;
    fill: currentColor;
    stroke: currentColor;
}

/* Dark Mode for Tool SVG Icons - Enhanced */
:root.dark-mode .tool-svg-icon svg path,
:root.dark-mode .tool-svg-icon svg circle,
:root.dark-mode .tool-svg-icon svg rect,
:root.dark-mode .tool-svg-icon svg line,
:root.dark-mode .tool-svg-icon svg polyline,
:root.dark-mode .tool-svg-icon svg polygon {
    stroke: #adb5bd !important;
    fill: transparent !important;
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #0f1419 0%, #1a1a2e 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
    z-index: 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-cta-primary {
    background: #FF9900;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

.btn-cta-primary:hover {
    background: #FF8800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.5);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Animações */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-slide-right {
    animation: slideRight 0.8s ease-out;
}

.animate-slide-left {
    animation: slideLeft 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

.animate-scale-in-delay-1 {
    animation: scaleIn 0.6s ease-out 0.1s both;
}

.animate-scale-in-delay-2 {
    animation: scaleIn 0.6s ease-out 0.2s both;
}

.animate-scale-in-delay-3 {
    animation: scaleIn 0.6s ease-out 0.3s both;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-main__content,
    .promo-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-main {
        padding: 60px 20px;
    }
    
    .features-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .promo-stats {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-main__cta,
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary,
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        text-align: center;
    }
    
    .features-grid,
    .categories-grid {
    grid-template-columns: 1fr;
}
}

.lead {
    font-size: 18px;
    color: var(--ml-gray);
    margin-bottom: 20px;
}

.offer-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.offer-pill {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 140, 0, 0.12);
    color: var(--color-action);
    font-weight: 600;
    font-size: 13px;
}

.tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tool-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--ml-gray);
}

.tool-card li::before {
    content: '•';
    margin-right: 6px;
    color: var(--color-action);
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    border: 1px solid var(--ml-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--ml-white);
    box-shadow: var(--shadow);
}

.accordion-trigger {
    width: 100%;
    text-align: left;
    padding: 18px 24px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--ml-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-body {
    padding: 0 24px 24px;
    color: var(--ml-gray);
    display: none;
}

.accordion-item.open .accordion-body {
    display: block;
}

.accordion-item.open .accordion-trigger {
    background: rgba(31, 69, 144, 0.05);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar-ads {
        position: relative;
        top: 0;
        margin-top: 20px;
    }
    
    .product-page {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .top-bar-content {
        flex-direction: row;
        gap: 10px;
        padding: 10px 15px;
        flex-wrap: nowrap;
    }

    .logo {
        font-size: 1.2rem;
        white-space: nowrap;
    }

    .logo img {
        height: 40px;
    }

    .top-bar-links {
        gap: 15px;
    }

    .language-text {
        display: none;
    }

    .language-button {
        min-width: auto;
        padding: 8px;
        gap: 4px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .banner-carousel {
        height: 200px;
    }

    .home-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .home-hero__stats {
        flex-direction: column;
    }

    .affiliate-grid,
    .slot-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .accordion-trigger {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* Mobile Hero Section Optimizations */
    .hero-main {
        height: auto;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 20px 20px;
        overflow: hidden;
        position: relative;
    }

    .hero-main::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

    .hero-main__content {
        display: flex;
        flex-direction: column;
        text-align: center;
        width: 100%;
        max-width: 600px;
        gap: 20px;
        padding: 20px 0;
    }

    .hero-main__text {
        margin-top: 0;
        padding-top: 0;
    }

    .hero-main__title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-main__subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 15px;
        opacity: 0.9;
    }

    .hero-main__cta {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 12px 20px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        display: block;
    }

    .hero-main__image {
        display: block;
        margin-top: 0;
    }

    .floating-badge {
        display: block;
    }

    /* Mobile Features Section Optimization - Horizontal Scrolling Carousel */
    .features-section .section-title {
        font-size: 1.8rem; /* Mesmo tamanho do título do hero */
        margin-bottom: 15px; /* Mesmo espaçamento do título do hero */
    }

    /* Garante que o container permita ver o que está "fora" da tela lateralmente */
    .features-section {
        overflow: hidden;
    }

    /* Mobile Promo Sections Optimization - Remove images and badges, keep only text and button */
    .promo-section-1 .promo-image,
    .promo-section-1 .floating-badge,
    .promo-section-2 .promo-image,
    .promo-section-2 .floating-badge,
    .promo-section-3 .promo-image,
    .promo-section-3 .floating-badge,
    .promo-section-books .promo-image,
    .promo-section-books .floating-badge,
    .promo-section-services .promo-image,
    .promo-section-services .floating-badge,
    .promo-section-4 .promo-image,
    .promo-section-4 .floating-badge {
        display: none !important;
    }

    /* Garante que o conteúdo de ambas as seções flua na mesma ordem no mobile */
    .promo-content,
    .promo-content-reverse {
        display: flex;
        flex-direction: column !important; /* Texto e imagem empilhados */
        align-items: flex-start !important; /* Alinha tudo à esquerda */
        text-align: left !important;        /* Alinha o texto à esquerda */
        gap: 20px;
    }

    /* Ajusta especificamente o bloco de texto */
    .promo-text {
        width: 100%;
        padding: 0 15px; /* Evita que o texto encoste na borda da tela */
    }

    /* Garante que o título não centralize */
    .promo-title {
        text-align: left !important;
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    /* Alinha a lista de checks à esquerda */
    .promo-list {
        list-style: none;
        padding: 0;
        margin: 15px 0;
        text-align: left !important;
    }

    .promo-list li {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Garante o check colado no texto à esquerda */
        margin-bottom: 8px;
        font-size: 0.95rem;
    }

    /* Garante que o botão não fique centralizado se não for o desejado */
    .btn-promo {
        display: inline-block;
        width: fit-content;
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    /* Espaçamento da imagem/viewer 3D no mobile */
    .promo-image {
        width: 100%;
        order: -1; /* Coloca a imagem/modelo 3D ACIMA do texto no mobile */
        margin-bottom: 10px;
    }

    .promo-image-placeholder {
        height: 250px; /* Altura fixa para o viewer não sumir */
    }

    .features-grid {
        display: flex !important; /* Força horizontal */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 10px;
        /* Remove qualquer filtro de cor ou opacidade que venha de outras classes */
        background: transparent;
        scrollbar-width: none; /* Esconde barra no Firefox */
    }

    .features-grid::-webkit-scrollbar {
        display: none; /* Esconde barra no Chrome/Safari */
    }

    .feature-card {
        flex: 0 0 250px; /* Largura fixa para garantir visibilidade */
        scroll-snap-align: center;
        min-width: 250px; /* Largura mínima para garantir que apareça */

        /* Garante visibilidade total */
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;

        /* Estilo aprimorado */
        background: #1a1a1a;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 20px;
        box-sizing: border-box;
        text-align: center;
        transition: transform 0.3s ease;
    }

    .feature-card:hover {
        transform: scale(1.02);
    }

    /* Remove qualquer animação automática */
    .features-grid {
        animation: none !important;
        transform: none !important;
    }

    /* Scroll suave mas sem animação automática */
    .features-grid {
        scroll-behavior: smooth;
    }

    /* Mobile Categories Section - Horizontal Scrolling Carousel */
    .categories-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 10px;
        background: transparent;
        scrollbar-width: none;
    }

    .categories-grid::-webkit-scrollbar {
        display: none;
    }

    .category-quick-card {
        flex: 0 0 280px; /* Largura fixa para garantir visibilidade */
        scroll-snap-align: center;
        min-width: 280px;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        background: #1a1a1a;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 20px;
        box-sizing: border-box;
        text-align: center;
        transition: transform 0.3s ease;
    }

    .category-quick-card:hover {
        transform: scale(1.02);
    }

    /* Esconde a barra de rolagem */
    .features-grid::-webkit-scrollbar {
        display: none;
    }
    .features-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 18px;
    }
}

/* ============================================
   UTILITÁRIOS
   ============================================ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--ml-gray);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ml-gray);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.site-footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 20px;
    margin-top: 40px;
}

.site-footer a,
.site-footer .footer-language-button,
.site-footer .footer-copyright {
    color: white !important;
}

.site-footer a:hover {
    color: var(--color-action) !important;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 200px;
    gap: 20px;
}

.footer-right-column {
    text-align: right;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 20px 0;
}

.footer-block h4 {
    margin-bottom: 12px;
    font-size: 16px;
}

.footer-block a {
    display: block;
    color: var(--ml-white);
    text-decoration: none;
    margin-bottom: 6px;
    font-size: 14px;
}

.footer-block a:hover {
    color: var(--color-action);
}


.footer-language {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.footer-language-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--ml-white);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
    opacity: 1;
}

.footer-language-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-language-button.open .footer-dropdown-arrow {
    transform: rotate(180deg);
}

.footer-dark-mode {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-top: 10px;
}

.footer-dark-mode-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--ml-white);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
    opacity: 1;
}

.footer-dark-mode-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.dark-mode-text {
    white-space: nowrap;
    color: white !important;
}

.dark-mode-icon svg {
    color: white !important;
}

.footer-dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
    flex-shrink: 0;
    color: var(--ml-white);
}

.footer-language-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: var(--ml-white);
    border: 1px solid var(--ml-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    color: var(--ml-dark);
}

.footer-language-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.footer-language-dropdown .language-option {
    color: var(--ml-dark);
}

.footer-language-dropdown .language-option:hover {
    background: #f8f9fa;
    color: var(--color-primary);
}

.footer-language-dropdown .language-option.active {
    background: rgba(31, 69, 144, 0.1);
    color: var(--color-primary);
    font-weight: 600;
}

.footer-copyright {
    text-align: center;
    color: var(--ml-white);
    flex: 1;
}

.footer-developer {
    margin-top: 10px;
    font-size: 14px;
}

.footer-developer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.footer-developer a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-language,
    .footer-copyright {
        text-align: center;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Banner Mobile Styles */
@media (max-width: 768px) {
    .amazon-banner { padding: 30px 15px; }
    .amazon-banner img { opacity: 0.3; width: 100% !important; height: auto !important; }
    /* Ajustado para mobile: remove a margem que empurra o texto */
    .amazon-banner div[style*="margin-left: 30%"] { margin-left: 0 !important; }
}

/* Esconder o texto do idioma no mobile para ganhar espaço, se necessário */
@media (max-width: 480px) {
    #current-language-text {
        display: none; /* Mantém apenas o ícone do tradutor no mobile */
    }
}

/* Badges para seção de Serviços */
.badge-services-1 {
    top: 20px;
    right: 15px;
    animation-delay: 0.5s;
}

.badge-services-2 {
    top: 35%;
    left: 10px;
    animation-delay: 1.7s;
}

.badge-services-3 {
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    animation-delay: 2.9s;
}
