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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a472a 0%, #0d1f17 50%, #2d1b1b 100%);
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Christmas Snow Animation */
.snowflake {
    position: fixed;
    top: -50px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    pointer-events: none;
    animation: fall linear infinite;
    user-select: none;
}

@keyframes fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 50px)) rotate(360deg);
        opacity: 0;
    }
}

/* Viele Schneeflocken mit unterschiedlichen Positionen und Geschwindigkeiten */
.snowflake:nth-child(1) { left: 2%; animation-duration: 11s; animation-delay: 0s; font-size: 14px; }
.snowflake:nth-child(2) { left: 5%; animation-duration: 13s; animation-delay: 1s; font-size: 20px; }
.snowflake:nth-child(3) { left: 8%; animation-duration: 9s; animation-delay: 2s; font-size: 16px; }
.snowflake:nth-child(4) { left: 11%; animation-duration: 15s; animation-delay: 0.5s; font-size: 22px; }
.snowflake:nth-child(5) { left: 14%; animation-duration: 12s; animation-delay: 3s; font-size: 18px; }
.snowflake:nth-child(6) { left: 17%; animation-duration: 10s; animation-delay: 1.5s; font-size: 15px; }
.snowflake:nth-child(7) { left: 20%; animation-duration: 14s; animation-delay: 2.5s; font-size: 21px; }
.snowflake:nth-child(8) { left: 23%; animation-duration: 11s; animation-delay: 0.8s; font-size: 17px; }
.snowflake:nth-child(9) { left: 26%; animation-duration: 13s; animation-delay: 3.5s; font-size: 19px; }
.snowflake:nth-child(10) { left: 29%; animation-duration: 9s; animation-delay: 1.2s; font-size: 14px; }
.snowflake:nth-child(11) { left: 32%; animation-duration: 12s; animation-delay: 2.8s; font-size: 20px; }
.snowflake:nth-child(12) { left: 35%; animation-duration: 14s; animation-delay: 0.3s; font-size: 16px; }
.snowflake:nth-child(13) { left: 38%; animation-duration: 10s; animation-delay: 4s; font-size: 22px; }
.snowflake:nth-child(14) { left: 41%; animation-duration: 13s; animation-delay: 1.8s; font-size: 18px; }
.snowflake:nth-child(15) { left: 44%; animation-duration: 11s; animation-delay: 3.2s; font-size: 15px; }
.snowflake:nth-child(16) { left: 47%; animation-duration: 15s; animation-delay: 0.6s; font-size: 21px; }
.snowflake:nth-child(17) { left: 50%; animation-duration: 9s; animation-delay: 2.2s; font-size: 17px; }
.snowflake:nth-child(18) { left: 53%; animation-duration: 12s; animation-delay: 3.8s; font-size: 19px; }
.snowflake:nth-child(19) { left: 56%; animation-duration: 14s; animation-delay: 1.4s; font-size: 14px; }
.snowflake:nth-child(20) { left: 59%; animation-duration: 10s; animation-delay: 2.6s; font-size: 20px; }
.snowflake:nth-child(21) { left: 62%; animation-duration: 13s; animation-delay: 0.9s; font-size: 16px; }
.snowflake:nth-child(22) { left: 65%; animation-duration: 11s; animation-delay: 3.4s; font-size: 22px; }
.snowflake:nth-child(23) { left: 68%; animation-duration: 15s; animation-delay: 1.6s; font-size: 18px; }
.snowflake:nth-child(24) { left: 71%; animation-duration: 9s; animation-delay: 2.9s; font-size: 15px; }
.snowflake:nth-child(25) { left: 74%; animation-duration: 12s; animation-delay: 0.4s; font-size: 21px; }
.snowflake:nth-child(26) { left: 77%; animation-duration: 14s; animation-delay: 3.6s; font-size: 17px; }
.snowflake:nth-child(27) { left: 80%; animation-duration: 10s; animation-delay: 1.9s; font-size: 19px; }
.snowflake:nth-child(28) { left: 83%; animation-duration: 13s; animation-delay: 2.4s; font-size: 14px; }
.snowflake:nth-child(29) { left: 86%; animation-duration: 11s; animation-delay: 0.7s; font-size: 20px; }
.snowflake:nth-child(30) { left: 89%; animation-duration: 15s; animation-delay: 3.1s; font-size: 16px; }
.snowflake:nth-child(31) { left: 92%; animation-duration: 9s; animation-delay: 1.3s; font-size: 22px; }
.snowflake:nth-child(32) { left: 95%; animation-duration: 12s; animation-delay: 2.7s; font-size: 18px; }
.snowflake:nth-child(33) { left: 98%; animation-duration: 14s; animation-delay: 0.2s; font-size: 15px; }
.snowflake:nth-child(34) { left: 4%; animation-duration: 10s; animation-delay: 3.9s; font-size: 21px; }
.snowflake:nth-child(35) { left: 7%; animation-duration: 13s; animation-delay: 1.1s; font-size: 17px; }
.snowflake:nth-child(36) { left: 10%; animation-duration: 11s; animation-delay: 2.3s; font-size: 19px; }
.snowflake:nth-child(37) { left: 13%; animation-duration: 15s; animation-delay: 0.5s; font-size: 14px; }
.snowflake:nth-child(38) { left: 16%; animation-duration: 9s; animation-delay: 3.7s; font-size: 20px; }
.snowflake:nth-child(39) { left: 19%; animation-duration: 12s; animation-delay: 1.7s; font-size: 16px; }
.snowflake:nth-child(40) { left: 22%; animation-duration: 14s; animation-delay: 2.1s; font-size: 22px; }
.snowflake:nth-child(41) { left: 25%; animation-duration: 10s; animation-delay: 0.8s; font-size: 18px; }
.snowflake:nth-child(42) { left: 28%; animation-duration: 13s; animation-delay: 3.3s; font-size: 15px; }
.snowflake:nth-child(43) { left: 31%; animation-duration: 11s; animation-delay: 1.5s; font-size: 21px; }
.snowflake:nth-child(44) { left: 34%; animation-duration: 15s; animation-delay: 2.8s; font-size: 17px; }
.snowflake:nth-child(45) { left: 37%; animation-duration: 9s; animation-delay: 0.6s; font-size: 19px; }
.snowflake:nth-child(46) { left: 40%; animation-duration: 12s; animation-delay: 3.5s; font-size: 14px; }
.snowflake:nth-child(47) { left: 43%; animation-duration: 14s; animation-delay: 1.2s; font-size: 20px; }
.snowflake:nth-child(48) { left: 46%; animation-duration: 10s; animation-delay: 2.6s; font-size: 16px; }
.snowflake:nth-child(49) { left: 49%; animation-duration: 13s; animation-delay: 0.9s; font-size: 22px; }
.snowflake:nth-child(50) { left: 52%; animation-duration: 11s; animation-delay: 3.8s; font-size: 18px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Login Page */
.login-box {
    background: linear-gradient(135deg, rgba(200, 50, 50, 0.15), rgba(20, 100, 50, 0.15));
    border: 2px solid #FFD700;
    padding: 50px;
    max-width: 420px;
    margin: 120px auto;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), 0 0 60px rgba(200, 50, 50, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
}

.login-box::before {
    content: '🎄';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
}

.login-box h1 {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.login-box p {
    color: #c8f0c8;
    margin-bottom: 32px;
    font-size: 15px;
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #c83232, #146432);
    color: white;
    padding: 13px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.discord-btn:hover {
    background: linear-gradient(135deg, #146432, #c83232);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, rgba(200, 50, 50, 0.3), rgba(20, 100, 50, 0.3));
    border-bottom: 2px solid #FFD700;
    padding: 16px 0;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
    position: relative;
    z-index: 10;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-content h2::before {
    content: '🎅 ';
}

.nav-content h2::after {
    content: ' 🎁';
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #FFD700;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.admin-btn, .logout-btn {
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    border: 2px solid #FFD700;
}

.admin-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.admin-btn:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.logout-btn {
    background: rgba(200, 50, 50, 0.3);
    color: #fff;
}

.logout-btn:hover {
    background: rgba(200, 50, 50, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(200, 50, 50, 0.4);
}

/* Giveaways */
h1 {
    font-size: 36px;
    margin-bottom: 32px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    text-align: center;
}

h1::before {
    content: '🎄 ';
}

h1::after {
    content: ' 🎄';
}

.giveaways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.giveaway-card {
    background: linear-gradient(135deg, rgba(200, 50, 50, 0.2), rgba(20, 100, 50, 0.2));
    border: 2px solid #FFD700;
    padding: 24px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
    position: relative;
}

.giveaway-card::before {
    content: '⭐';
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 32px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.giveaway-card:hover {
    border-color: #FFA500;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

.giveaway-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #FFD700;
}

.description {
    color: #c8f0c8;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.giveaway-info {
    margin: 20px 0;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.giveaway-info > div {
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.giveaway-info > div:not(:last-child) {
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.giveaway-info strong {
    color: #FFD700;
    font-weight: 500;
}

.enter-btn, .view-entries-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #c83232, #146432);
    color: #fff;
    border: 2px solid #FFD700;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.enter-btn:hover, .view-entries-btn:hover {
    background: linear-gradient(135deg, #146432, #c83232);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.enter-btn.entered {
    background: rgba(20, 100, 50, 0.5);
    color: #FFD700;
    border: 2px solid #4ade80;
    cursor: default;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

.enter-btn.entered:hover {
    transform: none;
}

.view-entries-btn {
    background: rgba(0, 0, 0, 0.3);
    color: #FFD700;
    border: 2px solid #FFD700;
}

.view-entries-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.no-giveaways {
    background: linear-gradient(135deg, rgba(200, 50, 50, 0.1), rgba(20, 100, 50, 0.1));
    border: 2px solid #FFD700;
    padding: 80px 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.no-giveaways p {
    font-size: 16px;
    color: #c8f0c8;
}

/* Admin Panel */
.admin-section {
    background: linear-gradient(135deg, rgba(200, 50, 50, 0.15), rgba(20, 100, 50, 0.15));
    border: 2px solid #FFD700;
    padding: 32px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.admin-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
    font-weight: 600;
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.create-form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #FFD700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #c83232, #146432);
    color: #fff;
    border: 2px solid #FFD700;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #146432, #c83232);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* Table */
.giveaways-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px;
    text-align: left;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    font-size: 14px;
}

th {
    font-weight: 600;
    color: #FFD700;
}

td {
    color: #fff;
}

tr:hover {
    background: rgba(255, 215, 0, 0.1);
}

.status-badge {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-badge.active {
    background: rgba(20, 100, 50, 0.3);
    color: #4ade80;
    border: 2px solid #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.status-badge.completed {
    background: rgba(100, 100, 100, 0.3);
    color: #c8f0c8;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.draw-btn, .view-btn, .reroll-btn {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: 2px solid #FFD700;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    margin-right: 8px;
    transition: all 0.3s;
}

.draw-btn:hover, .view-btn:hover, .reroll-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.draw-btn {
    background: linear-gradient(135deg, #c83232, #146432);
    color: #fff;
    border: 2px solid #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.draw-btn:hover {
    background: linear-gradient(135deg, #146432, #c83232);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.reroll-btn {
    background: linear-gradient(135deg, #FF6B35, #c83232);
    color: #fff;
    border: 2px solid #FFD700;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.reroll-btn:hover {
    background: linear-gradient(135deg, #c83232, #FF6B35);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.winners-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border: 2px solid #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.winners-btn:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(200, 50, 50, 0.2), rgba(20, 100, 50, 0.2));
    padding: 32px;
    border: 2px solid #FFD700;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 40px rgba(255, 215, 0, 0.4);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.close {
    color: #FFD700;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    border: none;
    background: none;
    transition: all 0.3s;
    line-height: 1;
}

.close:hover {
    color: #FFA500;
    transform: scale(1.2);
}

.entries-list {
    list-style: none;
}

.entries-list li {
    padding: 14px 0;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.entries-list li:last-child {
    border-bottom: none;
}

.entries-list .avatar {
    width: 36px;
    height: 36px;
    border: 2px solid #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.no-entries {
    color: #c8f0c8;
    text-align: center;
    padding: 40px;
    font-size: 14px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #c83232, #146432);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

/* Responsive */
@media (max-width: 768px) {
    .giveaways-grid {
        grid-template-columns: 1fr;
    }

    .nav-content {
        flex-direction: column;
        gap: 12px;
    }

    .nav-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 24px;
    }

    .login-box {
        margin: 60px 20px;
        padding: 32px;
    }
}
