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

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

.raffle-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 15px;
}

.raffle-subtitle {
    font-size: 1.2em;
}

.raffle-timer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.timer-label {
    font-size: 1.1em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.timer-display {
    font-size: 2.5em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

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

.stat-item {
    text-align: center;
    padding: 20px 40px;
    background: #f8f9fa;
    border-radius: 10px;
    min-width: 150px;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
}

.raffle-user-info {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 40px;
}

.raffle-user-info h2 {
    margin-top: 0;
}

.raffle-prizes {
    margin-bottom: 40px;
}

.raffle-prizes h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.prize-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.prize-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.prize-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.prize-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.prize-count {
    font-size: 0.9em;
}

.raffle-winners {
    margin-bottom: 40px;
}

.raffle-winners h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
}

.winners-list {
    border-radius: 10px;
    padding: 30px;
}

.winners-group {
    margin-bottom: 30px;
}

.winners-group:last-child {
    margin-bottom: 0;
}

.winners-group h3 {
    margin-bottom: 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prize-icon-header {
    font-size: 1.5em;
    display: inline-block;
    animation: bounce 2s infinite;
}

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

.winners-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.winner-item {
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.winner-item::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;
}

.winner-item:hover::before {
    left: 100%;
}

.winner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


.winner-number {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1em;
    position: relative;
}

.medal-icon {
    font-size: 1.5em;
    line-height: 1;
}

.winner-info {
    flex: 1;
    min-width: 0;
}

.winner-login {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    display: block;
}

.winner-login a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.winner-login a:hover {
    text-decoration: underline;
}

.winner-login i {
    font-size: 0.9em;
    opacity: 0.7;
}

.winner-prize-icon {
    font-size: 1.8em;
    flex-shrink: 0;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

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

.winner-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9em;
}

.winner-amount,
.winner-chances {
    padding: 3px 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.winners-count {
    font-size: 0.7em;
    font-weight: normal;
    margin-left: 10px;
}

.raffle-winners-info {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
}

.winners-total {
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.prize-instructions {
    text-align: left;
    margin-top: 15px;
}

.prize-instructions p {
    margin: 10px 0;
    line-height: 1.6;
}

.prize-instructions a {
    text-decoration: underline;
    cursor: pointer;
}

.prize-instructions a:hover {
    text-decoration: none;
}

.raffle-rules {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}

.raffle-rules h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.raffle-rules ul {
    list-style: none;
    padding: 0;
}

.raffle-rules li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.raffle-rules li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
}

.raffle-cta {
    text-align: center;
    margin-top: 40px;
}

.raffle-cta .btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.raffle-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.raffle-error {
    text-align: center;
    padding: 60px 20px;
}

.raffle-error h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

/* Баннер на главной странице */
.raffle-banner-main {
    margin-bottom: 30px;
    margin-top: 20px;
}

.raffle-banner-modal {
    margin: 15px;
    margin-bottom: 20px;
}

.raffle-banner-link {
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.raffle-banner-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

.raffle-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.raffle-banner-icon {
    font-size: 3em;
    flex-shrink: 0;
}

.raffle-banner-text {
    flex: 1;
}

.raffle-banner-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.raffle-banner-desc {
    font-size: 1em;
    opacity: 0.9;
}

.raffle-banner-arrow {
    font-size: 2em;
    flex-shrink: 0;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .raffle-title {
        font-size: 2em;
    }
    
    .timer-display {
        font-size: 1.8em;
    }
    
    .prizes-grid {
        grid-template-columns: 1fr;
    }
    
    .raffle-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .raffle-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .raffle-banner-icon {
        font-size: 2.5em;
    }
    
    .raffle-banner-title {
        font-size: 1.3em;
    }
    
    .raffle-banner-desc {
        font-size: 0.9em;
    }
    
    .raffle-banner-arrow {
        display: none;
    }
    
    .winner-item {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .winner-number {
        min-width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
    
    .medal-icon {
        font-size: 1.3em;
    }
    
    .winner-prize-icon {
        font-size: 1.5em;
    }
    
    .winner-login {
        font-size: 1em;
    }
    
    .winners-group h3 {
        font-size: 1.1em;
    }
    
    .prize-icon-header {
        font-size: 1.3em;
    }
}

