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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
}

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

.giveaway-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.host-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.crown {
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

.giveaway-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.hosted-by {
    font-size: 1.1rem;
    color: #b3b3b3;
}

.hosted-by a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
}

.hosted-by a:hover {
    text-decoration: underline;
}

.winner-banner {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 30px rgba(255, 215, 0, 0.5); }
    to { box-shadow: 0 0 40px rgba(255, 215, 0, 0.8); }
}

.winner-banner h2 {
    color: #000;
    font-size: 2rem;
    margin-bottom: 20px;
}

.winner-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.winner-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #000;
}

.winner-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

.winner-stats {
    color: #333;
    font-size: 0.9rem;
}

.giveaway-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.giveaway-info h2 {
    margin-bottom: 20px;
    color: #ffd700;
}

.giveaway-details {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    line-height: 1.5;
    color: #b3b3b3;
    text-align: center;
}

.giveaway-details strong {
    color: #ffd700;
}

.entry-requirements {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.requirement-icon {
    font-size: 1.5rem;
}

.eligibility-section {
    text-align: center;
    margin-bottom: 30px;
}

.eligibility-message {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.eligibility-message.eligible {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

.eligibility-message.ineligible {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.join-button {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.join-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.join-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.actions-section {
    margin-bottom: 40px;
}

.actions-section h3 {
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.action-card.completed {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.action-icon {
    font-size: 2rem;
    min-width: 40px;
}

.action-text {
    flex: 1;
}

.action-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.action-reward {
    color: #ffd700;
    font-size: 0.9rem;
}

#wait-reward {
    font-size: 0.8rem;
}

.countdown-timer {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffd700;
    min-width: 60px;
    text-align: right;
}

.action-button {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: #3730a3;
}

.action-button:disabled {
    background: #22c55e;
    cursor: default;
}

.action-button:disabled::after {
    content: ' ✓';
}

.remove-entry-button {
    background: transparent;
    border: none;
    color: #ff5555;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0 5px;
    opacity: 0.5;
    transition: all 0.2s ease;
    align-self: center;
}

.remove-entry-button:hover {
    opacity: 1;
    transform: scale(1.1);
}

.entries-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.entries-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.entries-header h3 {
    color: #ffd700;
}

.total-entries {
    color: #b3b3b3;
    font-size: 0.9rem;
}

.end-giveaway-button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.end-giveaway-button:hover {
    background: #dc2626;
}

.entries-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.entry-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.entry-item.user-entry {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.entry-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.entry-info {
    flex: 1;
}

.entry-username {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.entry-stats {
    font-size: 0.8rem;
    color: #b3b3b3;
}

.entry-chance {
    text-align: right;
    min-width: 80px;
}

.chance-percentage {
    font-size: 1rem;
    font-weight: bold;
    color: #ffd700;
}

.chance-tickets {
    font-size: 0.8rem;
    color: #b3b3b3;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .giveaway-header h1 {
        font-size: 2rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .entries-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .entry-item {
        flex-direction: column;
        text-align: center;
    }
    
    .entry-chance {
        text-align: center;
        min-width: auto;
    }
}