/* 
 * MODERN INDEX STYLES - BIG PENHORES (CLEAN VERSION)
 * Design moderno e clean com melhor legibilidade seguindo o padrão do dashboard
 */

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

/* ROOT VARIABLES - PALETA CLEAN E MODERNA */
:root {
    /* Cores principais da marca */
    --primary-green: #00D4AA;
    --primary-green-dark: #17A589;
    --primary-green-darker: #138A73;
    --primary-green-light: #4DFFDA;
    --secondary-blue: #3498DB;
    --secondary-purple: #9B59B6;
    --accent-orange: #F39C12;
    --accent-pink: #E91E63;
    --accent-cyan: #1ABC9C;
    
    /* Fundo clean como dashboard */
    --bg-clean: #f8fafc;
    --bg-white: #ffffff;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    --bg-card-green: #f0fdf4;
    --bg-card-green-hover: #ecfdf5;
    
    /* Gradientes sutis */
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --gradient-card-green: linear-gradient(145deg, var(--bg-card-green) 0%, #ffffff 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(23, 165, 137, 0.05) 100%);
    
    /* Glass morphism adaptado para fundo claro */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-bg-strong: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(0, 212, 170, 0.15);
    --glass-border-strong: rgba(0, 212, 170, 0.25);
    
    /* Textos com melhor contraste */
    --text-dark: #1f2937;
    --text-gray: #374151;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    /* Efeitos modernos */
    --backdrop-blur: blur(20px);
    --border-radius: 20px;
    --border-radius-sm: 16px;
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 12px rgba(0, 212, 170, 0.2);
    --shadow-primary-hover: 0 8px 25px rgba(0, 212, 170, 0.3);
    --transition: all 0.3s ease;
    --transition-slow: all 0.4s ease;
}

/* BODY & GLOBAL - BACKGROUND CLEAN */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-clean);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* BACKGROUND ANIMATED SHAPES - MAIS SUTIS */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.03;
    animation: float 12s ease-in-out infinite;
    filter: blur(1px);
}

.shape:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.shape:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 15%;
    animation-delay: 4s;
    animation-duration: 15s;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 25%;
    left: 20%;
    animation-delay: 8s;
    animation-duration: 18s;
}

.shape:nth-child(4) {
    width: 90px;
    height: 90px;
    bottom: 15%;
    right: 10%;
    animation-delay: 12s;
    animation-duration: 14s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1); 
        opacity: 0.03;
    }
    50% { 
        transform: translateY(-20px) translateX(10px) scale(1.1); 
        opacity: 0.05;
    }
}

/* HEADER NAVIGATION - CLEAN E MODERNO COM TOQUE VERDE */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid rgba(19, 138, 115, 0.1);
    transition: var(--transition);
}

.header-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(19, 138, 115, 0.2);
    box-shadow: 0 4px 12px rgba(19, 138, 115, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-nav {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.logo-nav:hover {
    transform: scale(1.05);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.btn-nav {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-nav.btn-ghost {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid #e5e7eb;
}

.btn-nav.btn-ghost:hover {
    background: var(--bg-gray-50);
    border-color: var(--glass-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.btn-nav.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-primary);
    border: 1px solid transparent;
}

.btn-nav.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
}

/* MAIN CONTENT */
.main-content {
    padding-top: 100px;
    padding-bottom: 2rem;
}

/* HERO SECTION - CLEAN E ELEGANTE */
.hero-section {
    text-align: center;
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: slideInUp 1s ease-out;
    position: relative;
    background: var(--gradient-hero);
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-card);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-hero {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
    justify-content: center;
    position: relative;
}

.btn-hero.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-primary);
    border: 1px solid transparent;
}

.btn-hero.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary-hover);
}

.btn-hero.btn-ghost {
    background: var(--bg-white);
    color: var(--text-gray);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-card);
}

.btn-hero.btn-ghost:hover {
    background: var(--bg-gray-50);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

/* FEATURES SECTIONS - CARDS CLEAN COM VERDE ESCURO */
.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-glass {
    background: var(--gradient-card-green);
    border: 1px solid rgba(19, 138, 115, 0.15);
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(19, 138, 115, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.section-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green-darker) 0%, var(--primary-green) 50%, var(--primary-green-darker) 100%);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.section-glass:hover {
    background: var(--bg-card-green-hover);
    border-color: rgba(19, 138, 115, 0.25);
    box-shadow: 0 8px 25px rgba(19, 138, 115, 0.15);
    transform: translateY(-5px);
}

.section-glass:hover::before {
    opacity: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* SORTEIOS GRID - DESIGN CLEAN */
.sorteios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.sorteio-card {
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-card-green) 100%);
    border: 1px solid rgba(19, 138, 115, 0.2);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: var(--transition-slow);
    box-shadow: 0 4px 12px rgba(19, 138, 115, 0.1);
    position: relative;
}

.sorteio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green-darker) 0%, var(--primary-green) 50%, var(--primary-green-darker) 100%);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.sorteio-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-card-green-hover) 100%);
    box-shadow: 0 12px 30px rgba(19, 138, 115, 0.2);
    border-color: rgba(19, 138, 115, 0.3);
}

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

.sorteio-card.featured {
    border-color: var(--primary-green-darker);
    box-shadow: 0 6px 20px rgba(19, 138, 115, 0.25);
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-card-green) 100%);
}

.sorteio-card.featured::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--primary-green-darker) 0%, var(--primary-green) 50%, var(--primary-green-darker) 100%);
}

.sorteio-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.sorteio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.sorteio-card:hover .sorteio-image {
    transform: scale(1.05);
}

.sorteio-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-primary);
}

.sorteio-content {
    padding: 1.5rem;
}

.sorteio-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.sorteio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sorteio-price {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.sorteio-value {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sorteio-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.sorteio-numbers {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.number-badge {
    background: var(--bg-gray-100);
    color: var(--text-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.sorteio-button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sorteio-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
}

/* BAÚ SHOWCASE - DESIGN CLEAN */
.bau-showcase {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

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

.bau-container {
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-card-green) 100%);
    border: 1px solid rgba(19, 138, 115, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(19, 138, 115, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bau-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green-darker) 0%, var(--primary-green) 50%, var(--primary-green-darker) 100%);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.bau-container:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-card-green-hover) 100%);
    box-shadow: 0 8px 25px rgba(19, 138, 115, 0.15);
    border-color: rgba(19, 138, 115, 0.3);
}

.bau-container:hover::before {
    opacity: 1;
}

.bau-icon-container {
    margin-bottom: 1.5rem;
}

.bau-icon {
    font-size: 4rem;
    color: var(--primary-green);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { 
        text-shadow: 0 0 20px var(--primary-green);
        transform: scale(1);
    }
    to { 
        text-shadow: 0 0 30px var(--primary-green), 0 0 40px var(--primary-green);
        transform: scale(1.05);
    }
}

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

.bau-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bau-label {
    color: var(--text-muted);
    font-weight: 500;
}

.bau-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bau-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.bau-features {
    list-style: none;
    margin-bottom: 2rem;
}

.bau-features li {
    padding: 0.75rem 0;
    position: relative;
    padding-left: 2rem;
    color: var(--text-gray);
    font-weight: 500;
}

.bau-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    animation: sparkle 2s ease-in-out infinite;
}

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

.bau-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* LOTERIA GRID - CLEAN E MODERNA */
.loteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.loteria-card {
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-card-green) 100%);
    border: 1px solid rgba(19, 138, 115, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(19, 138, 115, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.loteria-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green-darker) 0%, var(--primary-green) 50%, var(--primary-green-darker) 100%);
    opacity: 0.8;
    transition: opacity 0.3s;
}

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

.loteria-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-card-green-hover) 100%);
    box-shadow: 0 8px 25px rgba(19, 138, 115, 0.15);
    border-color: rgba(19, 138, 115, 0.3);
}

.loteria-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.loteria-numbers {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.loteria-number {
    width: 3rem;
    height: 3rem;
    background: var(--bg-gray-100);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid transparent;
    transition: var(--transition);
}

.loteria-number:hover {
    transform: scale(1.1);
    background: var(--primary-green);
    color: var(--text-white);
    border-color: var(--primary-green-dark);
}

.loteria-number.bg-success {
    background: #10b981;
    color: var(--text-white);
}

.loteria-number.bg-primary {
    background: var(--primary-green);
    color: var(--text-white);
}

.loteria-date {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.loteria-actions .btn {
    background: transparent;
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.loteria-actions .btn:hover {
    background: var(--primary-green);
    color: var(--text-white);
    text-decoration: none;
}

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

.loteria-info small {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* NÍVEIS GRID - CLEAN E ORGANIZADOS */
.niveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.nivel-card {
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-card-green) 100%);
    border: 1px solid rgba(19, 138, 115, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(19, 138, 115, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nivel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green-darker) 0%, var(--primary-green) 50%, var(--primary-green-darker) 100%);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nivel-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-card-green-hover) 100%);
    box-shadow: 0 8px 25px rgba(19, 138, 115, 0.15);
    border-color: rgba(19, 138, 115, 0.3);
}

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

.nivel-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(19, 138, 115, 0.1) 0%, rgba(0, 212, 170, 0.05) 100%);
    border: 2px solid rgba(19, 138, 115, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
    animation: iconFloat 3s ease-in-out infinite;
}

.nivel-card:hover .nivel-icon {
    background: linear-gradient(135deg, rgba(19, 138, 115, 0.15) 0%, rgba(0, 212, 170, 0.1) 100%);
    border-color: rgba(19, 138, 115, 0.3);
    transform: scale(1.05);
}

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

.nivel-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.nivel-requirement {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* TIMELINE DE NÍVEIS - DESIGN MODERNO E COMPACTO */
.niveis-timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.niveis-timeline {
    position: relative;
    padding: 0 2rem;
}

/* Linha principal da timeline */
.niveis-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, 
        var(--primary-green-light) 0%,
        var(--primary-green) 30%,
        var(--primary-green-dark) 60%,
        var(--primary-green-darker) 100%
    );
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
    animation: timelinePulse 3s ease-in-out infinite;
}

@keyframes timelinePulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
        transform: translateX(-50%) scaleY(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(0, 212, 170, 0.5);
        transform: translateX(-50%) scaleY(1.02);
    }
}

/* Item da timeline */
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    animation: fadeInTimeline 0.8s ease-out;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
    margin-right: 2rem;
    margin-left: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
    margin-left: 2rem;
    margin-right: 0;
}

/* Círculo do nível */
.timeline-circle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-card-green) 100%);
    border: 4px solid var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.25);
    cursor: pointer;
}

.timeline-circle:hover {
    transform: translateX(-50%) scale(1.15);
    border-color: var(--primary-green-light);
    box-shadow: 0 12px 35px rgba(0, 212, 170, 0.4);
    background: linear-gradient(145deg, #ffffff 0%, rgba(0, 212, 170, 0.1) 100%);
}

.timeline-circle img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.timeline-circle:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(0, 212, 170, 0.3));
}

/* Conteúdo do item */
.timeline-content {
    flex: 1;
    max-width: 280px;
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-card-green) 100%);
    border: 1px solid rgba(19, 138, 115, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(19, 138, 115, 0.12);
    transition: all 0.4s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -24px;
    border-right-color: rgba(19, 138, 115, 0.2);
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -24px;
    border-left-color: rgba(19, 138, 115, 0.2);
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(19, 138, 115, 0.2);
    border-color: rgba(19, 138, 115, 0.3);
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-card-green-hover) 100%);
}

.timeline-nivel-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-nivel-requirement {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.timeline-nivel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    0% { box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3); }
    100% { box-shadow: 0 6px 20px rgba(0, 212, 170, 0.5); }
}

.timeline-nivel-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.4);
    animation: numberPulse 2s ease-in-out infinite;
}

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

/* Animações de entrada */
@keyframes fadeInTimeline {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Controles dos níveis */
.niveis-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

#toggleNiveisView {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#toggleNiveisView::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#toggleNiveisView:hover::before {
    left: 100%;
}

#toggleNiveisView:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.2);
}

#toggleNiveisView:active {
    transform: translateY(0);
}

/* Transições suaves para mudança de layout */
#niveis-container {
    transition: opacity 0.3s ease;
}

/* Versão responsiva da timeline */
@media (max-width: 768px) {
    .niveis-timeline {
        padding: 0 1rem;
    }
    
    .niveis-timeline::before {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 80px;
    }
    
    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
        max-width: none;
    }
    
    .timeline-circle {
        left: 30px;
        width: 60px;
        height: 60px;
    }
    
    .timeline-circle img {
        width: 32px;
        height: 32px;
    }
    
    .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -24px;
        right: auto;
        border-right-color: rgba(19, 138, 115, 0.2);
        border-left-color: transparent;
    }
    
    .niveis-controls {
        margin-top: 1.5rem;
    }
    
    #toggleNiveisView {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

/* FOOTER CLEAN COM TOQUE VERDE */
.footer {
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-card-green) 100%);
    border-top: 1px solid rgba(19, 138, 115, 0.15);
    padding: 2rem 0;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-green-darker) 50%, transparent 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .btn-nav {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero {
        width: 100%;
        max-width: 300px;
    }

    .section-glass {
        padding: 2rem 1rem;
    }

    .sorteios-grid {
        grid-template-columns: 1fr;
    }

    .bau-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bau-icon {
        font-size: 3rem;
    }

    .niveis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-glass {
        padding: 1.5rem 1rem;
    }

    .sorteio-card,
    .loteria-card,
    .nivel-card {
        margin: 0 0.5rem;
    }

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

    .bau-amount {
        font-size: 2rem;
    }

    .nivel-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .bau-icon {
        font-size: 2.5rem;
    }
}

/* LOADING STATES */
html {
    scroll-behavior: smooth;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-gray-100);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* FOCUS STATES */
.btn-nav:focus,
.btn-hero:focus,
.sorteio-button:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* HIGH CONTRAST SUPPORT */
@media (prefers-contrast: high) {
    .section-glass,
    .sorteio-card,
    .loteria-card,
    .nivel-card {
        border-width: 2px;
    }
} 