/* ===================================
   ESTILOS GERAIS
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
}

.text-gold {
    color: #d4af37 !important;
}

.spinner-border.text-gold {
    border-color: #d4af37;
    border-right-color: transparent;
}

/* ===================================
   NAVBAR PREMIUM
=================================== */
.navbar-transparent {
    background: linear-gradient(180deg, rgba(13, 40, 24, 0.95) 0%, rgba(13, 40, 24, 0.8) 100%);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(212, 175, 55, 0.1);
    transition: all 0.3s;
}

.navbar-transparent.scrolled {
    background: rgba(13, 40, 24, 1);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.logo-img {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    transition: all 0.3s;
}

.logo-brand:hover .logo-img {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
    transform: scale(1.05);
}

.nav-link-custom {
    color: #d4af37 !important;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link-custom:hover::after {
    width: 80%;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    color: #0d2818 !important;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

/* ===================================
   HERO SECTION PREMIUM
=================================== */
.hero-premium {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d2818 0%, #1a4d3a 50%, #0d2818 100%);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(212, 175, 55, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(244, 208, 63, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(212, 175, 55, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(244, 208, 63, 0.2), transparent);
    background-size: 200% 200%, 180% 180%, 150% 150%, 220% 220%;
    background-position: 50% 50%;
    animation: particles 20s ease-in-out infinite;
}

@keyframes particles {
    0%, 100% { background-position: 50% 50%, 40% 60%, 60% 40%, 70% 30%; }
    50% { background-position: 60% 40%, 50% 50%, 40% 60%, 30% 70%; }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-live {
    display: inline-block;
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(220, 53, 69, 0.5);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    animation: pulse 2s ease-in-out infinite;
}

.pulse-dot {
    display: inline-block;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glow-text {
    text-shadow: 
        0 0 20px rgba(212, 175, 55, 0.8),
        0 0 40px rgba(212, 175, 55, 0.5),
        0 0 60px rgba(212, 175, 55, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 40px rgba(212, 175, 55, 0.5); }
    to { text-shadow: 0 0 30px rgba(212, 175, 55, 1), 0 0 60px rgba(212, 175, 55, 0.7), 0 0 80px rgba(212, 175, 55, 0.5); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #f4d03f;
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-hero {
    padding: 18px 45px !important;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    color: #0d2818 !important;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
    transition: all 0.3s;
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.7);
}

.btn-outline-gold {
    background: transparent;
    border: 2px solid #d4af37;
    color: #d4af37 !important;
    transition: all 0.3s;
}

.btn-outline-gold:hover {
    background: #d4af37;
    color: #0d2818 !important;
    transform: translateY(-3px);
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-gold:hover .btn-shine::before {
    left: 100%;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.stat-label {
    color: #f4d03f;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Image */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-big {
    max-width: 400px;
    width: 100%;
    filter: drop-shadow(0 0 50px rgba(212, 175, 55, 0.6));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-card {
    position: absolute;
    animation: float-card 3s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 0;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.mini-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid #d4af37;
    font-weight: 700;
    white-space: nowrap;
}

.mini-card i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* ===================================
   BADGES E SECTIONS
=================================== */
.badge-section {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #0d2818;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0d2818;
    margin-bottom: 15px;
}

/* ===================================
   FEATURE CARDS
=================================== */
.feature-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37 0%, #f4d03f 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #0d2818;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    transform: rotate(-5deg);
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    transform: rotate(0deg) scale(1.1);
}

.feature-number {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.1);
}

.feature-card h4 {
    font-weight: 700;
    color: #0d2818;
    margin-bottom: 15px;
}

/* ===================================
   STEP CARDS
=================================== */
.step-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    border: 2px solid #e0e0e0;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a4d3a 0%, #0d2818 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: #d4af37;
    box-shadow: 0 5px 20px rgba(13, 40, 24, 0.3);
}

.step-number-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #d4af37;
    color: #0d2818;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
}

.step-arrow {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #d4af37;
    font-weight: bold;
}

.step-card-final .step-arrow {
    display: none;
}

.step-card h5 {
    font-weight: 700;
    color: #0d2818;
    margin: 15px 0 10px;
}

.step-card p {
    color: #666;
    margin: 0;
}

/* ===================================
   CTA SECTION
=================================== */
.cta-section {
    background: linear-gradient(135deg, #0d2818 0%, #1a4d3a 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: pulse-bg 5s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: #f4d03f;
    margin-bottom: 40px;
}

.btn-xl {
    padding: 20px 60px !important;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-note {
    color: #d4af37;
    margin-top: 20px;
    font-size: 1.1rem;
}

/* Cards */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Badges */
.badge-cotacao {
    font-size: 1.1rem;
    padding: 8px 15px;
}

/* Piloto Card */
.piloto-card {
    cursor: pointer;
    border: 3px solid #e0e0e0;
    transition: all 0.3s;
    background: white;
}

.piloto-card:hover {
    border-color: #d4af37;
    transform: scale(1.02);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.2);
}

.piloto-card.selected {
    border-color: #d4af37 !important;
    background: linear-gradient(135deg, #fffef0 0%, #fff9e6 100%) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4) !important;
    transform: scale(1.05) !important;
}

.piloto-numero {
    width: 50px;
    height: 50px;
    background: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

/* Saldo Display */
.saldo-display {
    background: linear-gradient(135deg, #1a4d3a 0%, #0d2818 100%);
    color: #d4af37;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #d4af37;
}

.saldo-valor {
    font-size: 2rem;
    font-weight: bold;
}

/* Status Badges */
.status-ativa {
    background-color: #ffc107;
    color: #000;
}

.status-venceu {
    background-color: #28a745;
    color: white;
}

.status-perdeu {
    background-color: #dc3545;
    color: white;
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a4d3a 0%, #0d2818 100%);
}

.auth-card {
    max-width: 450px;
    width: 100%;
}

/* Corrida Status */
.corrida-ao-vivo {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* ===================================
   CORRIDAS SECTION
=================================== */
.corridas-section {
    background: #f8f9fa;
}

.corrida-card-premium {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
    border: 2px solid transparent;
    height: 100%;
}

.corrida-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
}

.corrida-header {
    background: linear-gradient(135deg, #0d2818 0%, #1a4d3a 100%);
    padding: 20px;
    position: relative;
}

.badge-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.status-aberta {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.status-ao-vivo {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.5);
    animation: pulse 1.5s ease-in-out infinite;
}

.corrida-header h5 {
    color: #d4af37;
    font-weight: 700;
    margin: 0;
    padding-right: 100px;
}

.corrida-body {
    padding: 25px;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #333;
}

.info-row i {
    width: 25px;
    color: #d4af37;
    font-size: 1.1rem;
}

.info-row span {
    font-weight: 500;
}

.corrida-footer {
    padding: 0 20px 20px;
}

.corrida-footer .btn {
    font-weight: 700;
    padding: 15px;
    font-size: 1rem;
}

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-hero {
        width: 100%;
    }
    
    .hero-stats {
        justify-content: space-around;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-logo-big {
        max-width: 250px;
        margin-top: 50px;
    }
    
    .floating-card {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .btn-xl {
        font-size: 1.1rem;
        padding: 18px 40px !important;
    }
    
    .step-arrow {
        display: none;
    }
    
    .saldo-valor {
        font-size: 1.5rem;
    }
}

/* Alert customizado */
.alert-custom {
    border-left: 4px solid;
    border-radius: 0.25rem;
}

.alert-custom.alert-success {
    border-left-color: #28a745;
}

.alert-custom.alert-danger {
    border-left-color: #dc3545;
}

/* Botões */
.btn {
    font-weight: 500;
    padding: 10px 20px;
}

.btn-lg {
    padding: 12px 30px;
}

.btn-success {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #0d2818 !important;
}

.btn-success:hover {
    background-color: #f4d03f !important;
    border-color: #f4d03f !important;
}

.btn-primary {
    background-color: #1a4d3a !important;
    border-color: #1a4d3a !important;
}

.btn-primary:hover {
    background-color: #0d2818 !important;
}

/* Tabelas */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
}

/* Input de valor */
input[type="number"].valor-aposta {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

/* Box de retorno possível */
.retorno-box {
    background: linear-gradient(135deg, #1a4d3a 0%, #0d2818 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid #d4af37;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.retorno-box small {
    color: #f4d03f;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.retorno-valor {
    font-size: 3rem;
    font-weight: 900;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    margin-top: 10px;
}

/* ===================================
   BOTÃO FLUTUANTE WHATSAPP
=================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.8);
    color: #fff;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.8);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* Ajustes de Navbar para Mobile - ocultar logo e reduzir altura,
   mantendo somente o botão hamburguer visível */
@media (max-width: 768px) {
    /* Remover logo completamente no mobile */
    .navbar .navbar-brand,
    .navbar .navbar-brand img,
    .logo-brand,
    .logo-img {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden;
    }
    /* Diminuir a barra e o botão hamburguer */
    .navbar.navbar-transparent,
    .navbar {
        padding: 6px 0 !important;
        min-height: 48px !important;
    }
    .navbar-toggler {
        padding: .25rem .6rem !important;
        font-size: .9rem !important;
        line-height: 1 !important;
    }
    .navbar-toggler-icon {
        width: 1.2em !important;
        height: 1.2em !important;
        background-size: 1.2em 1.2em !important;
    }
    .navbar .container {
        justify-content: flex-end;
    }
    /* Evitar que o conteúdo inicial fique sob a navbar fixa */
    .hero-premium {
        padding-top: 110px;
    }
}

