:root {
    --bg-color: #0d1b2a; /* Azul Escuro */
    --text-color: #e0e0e0; /* Cinza Claro */
    --accent-color: #ff8c00; /* Laranja */
    --btn-blue: #343a40; /* Cinza Escuro */
    --btn-gray: #808080;
    --btn-gold: #ff8c00; /* Laranja */
    --danger-color: #dc3545;
    --success-color: #28a745;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Nav */
header {
    background-color: #1b263b;
    border-bottom: 2px solid var(--accent-color);
    padding: 10px 0;
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wallet-badge {
    background-color: #415a77;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: bold;
}

.user-menu {
    position: relative;
    cursor: pointer;
}

.dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #1b263b;
    border: 1px solid #415a77;
    border-radius: 5px;
    display: none;
    flex-direction: column;
    width: 150px;
    z-index: 1000;
}

.user-menu:hover .dropdown {
    display: flex;
}

.dropdown a {
    padding: 10px;
    border-bottom: 1px solid #415a77;
}

.dropdown a:hover {
    background-color: #415a77;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.3s;
    text-align: center;
    display: inline-block;
}

.btn:hover {
    opacity: 0.9;
}

.btn-gold {
    background-color: var(--btn-gold);
    color: #000;
}

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

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

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

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

/* Layout Columns */
.main-content {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.col-left {
    flex: 1;
}

.col-right {
    flex: 1;
}

/* Home Specific */
.slogan {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 10px;
}

h1.title {
    font-size: 3rem;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.description {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.raffle-info {
    background-color: #1b263b;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #415a77;
}

.raffle-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.buy-section select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #415a77;
    color: #fff;
    border: 1px solid #415a77;
    border-radius: 5px;
    font-size: 1rem;
}

.buy-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.trust-badges {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    color: #a0a0a0;
}

/* Carousel Placeholder */
.carousel {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #1b263b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.copy-text {
    text-align: center;
    font-style: italic;
    color: var(--accent-color);
}

/* Vitrine */
.vitrine-section {
    margin-top: 40px;
}

.vitrine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.raffle-card {
    background-color: #1b263b;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #415a77;
}

.raffle-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
}

/* Vitrine Pontos (New Feature) */
.numbers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.number-item {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Make them circular */
    font-weight: bold;
    user-select: none;
    transition: all 0.2s ease;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.number-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.number-item:active {
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.number-item.available {
    background-color: var(--accent-color);
    color: #000;
    cursor: pointer;
    border: 2px solid #cc7000; /* Darker orange border */
}

.number-item.sold {
    background-color: #415a77;
    color: #aaa;
    cursor: not-allowed;
    border: 2px solid #415a77;
}

.number-item.selected {
    background-color: #fff;
    color: #000;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    transform: scale(1.1);
}

.selected-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    min-height: 40px;
    padding: 10px;
    background-color: #415a77;
    border-radius: 5px;
    border: 1px solid #415a77;
}

.selected-badge {
    background-color: var(--accent-color);
    color: #000;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
}

.packages-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Advantages Cards */
.advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 40px;
}

.adv-card {
    background-color: #1b263b;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--accent-color);
}

/* Footer */
footer {
    background-color: #1b263b;
    padding: 40px 0;
    margin-top: auto;
    border-top: 1px solid #415a77;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-links a {
    margin-left: 20px;
    color: #a0a0a0;
}

.footer-links a:hover {
    color: #fff;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: #415a77;
    border: 1px solid #415a77;
    color: #fff;
    border-radius: 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.modal-content {
    background-color: #1b263b;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--accent-color);
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    opacity: 1;
    transform: scale(1);
    margin: auto !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.dash-card {
    background-color: #1b263b;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #415a77;
}

.balance-display {
    font-size: 2rem;
    color: var(--accent-color);
    margin: 20px 0;
}

/* Estilos do Carrossel */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.3s;
    pointer-events: all;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.carousel-dot.active {
    background-color: var(--accent-color);
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* RESPONSIVE MEDIA QUERIES */
@media screen and (max-width: 768px) {
    /* Navbar */
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-left {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
    }

    /* Main Content Stacking */
    .main-content {
        flex-direction: column-reverse;
        gap: 20px;
        margin-top: 20px;
    }
    
    /* Order manipulation if desired: 
    .col-right { order: -1; } 
    to show image first */

    /* Typography */
    h1.title {
        font-size: 2rem;
    }

    /* Vitrine Numbers */
    .number-item {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .numbers-grid {
        gap: 5px;
    }

    /* Advantages Grid */
    .advantages {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links a {
        margin-left: 0;
    }

    /* Dashboard */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    /* Carousel Height */
    .carousel-images {
        height: 250px;
    }
}
