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

.raffle-header {
    text-align: center;
    margin-bottom: 40px;
}

.raffle-title {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(90deg, #a259c6, #6a11cb, #a259c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.raffle-title i {
    margin-right: 10px;
}

.raffle-subtitle {
    font-size: 1rem;
    color: #b4b4b4;
    margin-top: 10px;
}

.code-raffle {
    display: inline;
}

.code-raffle a {
    color: #9966cc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.code-raffle a:hover {
    color: #b084e0;
}

.raffle-ticket-price {
    font-size: 0.85rem;
    color: #b4b4b4;
    margin-top: 8px;
}

.raffle-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(23, 23, 29, 0.6);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(153, 102, 204, 0.2);
}

.stat-label {
    font-size: 0.85rem;
    color: #87858E;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #9966cc;
    font-family: 'Roboto Mono', monospace;
}

/* Countdown */
.countdown-raffle {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
}

.countdown-raffle h3 {
    margin-bottom: 20px;
    color: #EAEAEA;
    font-size: 1.5rem;
}

.countdown-display-wrapper-raffle {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    justify-content: center;
}

.countdown-line-raffle {
    height: 2px;
    flex-grow: 1;
    max-width: 300px;
    min-width: 50px;
}

.countdown-line-raffle.left {
    background: linear-gradient(to right, transparent, #9966cc);
}

.countdown-line-raffle.right {
    background: linear-gradient(to left, transparent, #9966cc);
}

.countdown-time-units-raffle {
    display: flex;
    gap: 30px;
    align-items: flex-end;
}

.time-unit-raffle {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit-raffle .number {
    font-size: 2.5em;
    font-weight: bold;
    color: #9966cc;
    margin-bottom: 5px;
    line-height: 1;
    font-family: 'Roboto Mono', monospace;
}

.time-unit-raffle .label {
    font-size: 0.8em;
    color: #87858E;
    font-weight: normal;
    letter-spacing: 0.5px;
}

.winners-section {
    margin: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #EAEAEA;
    margin-bottom: 40px;
}

.winners-podium {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.winner-spot {
    background: #17171d;
    border-radius: 12px;
    padding: 30px 40px;
    text-align: center;
    min-width: 200px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.winner-spot.first {
    margin-top: -20px;
    border-color: rgba(153, 102, 204, 0.4);
    box-shadow: 
        rgba(153, 102, 204, 0.4) 0px 5px,
        rgba(153, 102, 204, 0.3) 0px 10px,
        rgba(153, 102, 204, 0.2) 0px 15px;
}

.winner-spot.second {
    box-shadow: 
        rgba(153, 102, 204, 0.4) -5px 5px,
        rgba(153, 102, 204, 0.3) -10px 10px;
}

.winner-spot.third {
    box-shadow: 
        rgba(153, 102, 204, 0.4) 5px 5px,
        rgba(153, 102, 204, 0.3) 10px 10px;
}

.winner-spot:hover {
    transform: translateY(-5px);
    box-shadow: 
        rgba(153, 102, 204, 0.6) 0px 10px 20px,
        rgba(153, 102, 204, 0.4) 0px 5px 10px;
}

.winner-place {
    font-size: 1.5rem;
    font-weight: bold;
    color: #9966cc;
    margin-bottom: 15px;
}

.winner-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: #2a2a35;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.winner-spot.first .winner-avatar {
    width: 100px;
    height: 100px;
}

.winner-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #EAEAEA;
    margin-bottom: 10px;
}

.winner-prize {
    font-size: 1.3rem;
    color: #9966cc;
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
}

.other-winners {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.winner-row {
    background: #17171d;
    border-radius: 10px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 280px;
    transition: all 0.3s ease;
}

.winner-row:hover {
    transform: translateY(-2px);
    box-shadow: rgba(153, 102, 204, 0.4) 0px 5px, rgba(153, 102, 204, 0.3) 0px 10px;
}

.winner-row-place {
    font-size: 1.2rem;
    font-weight: bold;
    color: #87858E;
    min-width: 40px;
}

.winner-row-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a2a35;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.winner-row-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-row-name {
    flex: 1;
    font-weight: 600;
}

.winner-row-prize {
    color: #9966cc;
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
}

.participants-section {
    margin: 50px 0;
}

.participants-header {
    display: grid;
    grid-template-columns: 80px 1fr 150px 150px;
    padding: 15px 20px;
    background: rgba(23, 23, 29, 0.4);
    border-radius: 10px;
    font-weight: bold;
    color: #87858E;
    margin-bottom: 15px;
    text-align: center;
}

.participants-header > :nth-child(2) {
    text-align: left;
    padding-left: 12px;
}


.participant-row {
    display: grid;
    grid-template-columns: 80px 1fr 150px 150px;
    align-items: center;
    padding: 15px 20px;
    background: #17171d;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.participant-row:hover {
    transform: translateY(-2px);
    box-shadow: rgba(153, 102, 204, 0.4) 0px 5px, rgba(153, 102, 204, 0.3) 0px 10px;
    cursor: pointer;
}

.participant-rank {
    text-align: center;
    font-weight: bold;
    color: #87858E;
}

.participant-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.participant-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #2a2a35;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.participant-tickets {
    text-align: center;
    font-weight: bold;
    color: #9966cc;
    font-family: 'Roboto Mono', monospace;
}

.participant-chance {
    text-align: center;
    color: #b4b4b4;
}

.no-participants {
    text-align: center;
    padding: 40px;
    color: #87858E;
    font-size: 1.1rem;
}

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

    .winners-podium {
        flex-direction: column;
        align-items: center;
    }

    .winner-spot {
        width: 100%;
        max-width: 300px;
    }

    .winner-spot.first {
        margin-top: 0;
    }

    .participants-header,
    .participant-row {
        grid-template-columns: 60px 1fr 100px;
    }

    .participant-chance {
        display: none;
    }

    .participants-header > :last-child {
        display: none;
    }

    .raffle-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-box {
        width: 100%;
        max-width: 300px;
    }
}