/* ========== Global Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', 'Segoe UI', Tahoma, sans-serif;
    background: #0a0e27;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ========== Background Animation ========== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
}

.military-pattern {
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(139, 92, 246, 0.1) 35px,
            rgba(139, 92, 246, 0.1) 70px
        );
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* ========== Particle Canvas ========== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ========== Main Container ========== */
.announcement-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* ========== Event Header ========== */
.event-header {
    margin-bottom: 60px;
    animation: slideDown 0.8s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-decoration {
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 50%, #db2777 100%);
    border-radius: 20px;
    padding: 35px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.4);
}

.header-decoration::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: headerPulse 4s ease-in-out infinite;
}

@keyframes headerPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

.military-badge {
    position: absolute;
    top: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.2);
    border: 3px solid #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffd700;
    animation: badgeRotate 3s linear infinite;
}

.military-badge.left {
    left: 30px;
}

.military-badge.right {
    right: 30px;
}

@keyframes badgeRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.event-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #1e3a8a;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
    animation: logoFloat 3s ease-in-out infinite;
}

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

.event-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.event-subtitle {
    font-size: 22px;
    font-weight: 400;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.event-status {
    display: inline-block;
    margin-top: 10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid #22c55e;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.status-badge i {
    animation: statusBlink 1.5s infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ========== Alert Bar ========== */
.alert-bar {
    margin-top: 30px;
    padding: 15px 30px;
    background: linear-gradient(90deg, #dc2626 0%, #f59e0b 50%, #dc2626 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.4);
    animation: alertPulse 2s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes alertPulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(220, 38, 38, 0.7);
    }
}

/* ========== Events Grid ========== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* ========== Event Card ========== */
.event-card {
    background: linear-gradient(135deg, #1e1e3f 0%, #2d2d5f 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: all 0.4s ease;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.6);
    border-color: rgba(139, 92, 246, 0.8);
}

.event-card.featured {
    border: 3px solid #ffd700;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.event-card.featured:hover {
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.5);
}

.event-card.special {
    border: 2px solid #06b6d4;
}

.event-card.special:hover {
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.5);
}

/* ========== Card Ribbon ========== */
.card-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    padding: 8px 40px;
    transform: rotate(45deg);
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.5);
    z-index: 10;
    animation: ribbonShine 3s ease-in-out infinite;
}

@keyframes ribbonShine {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(168, 85, 247, 0.5);
    }
    50% {
        box-shadow: 0 5px 25px rgba(236, 72, 153, 0.7);
    }
}

.card-ribbon.special {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.5);
}

.card-ribbon.special {
    animation: ribbonShineGold 3s ease-in-out infinite;
}

@keyframes ribbonShineGold {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(251, 191, 36, 0.5);
    }
    50% {
        box-shadow: 0 5px 25px rgba(251, 191, 36, 0.8);
    }
}

.card-ribbon span {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* ========== Featured Badge ========== */
.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a8a;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
    z-index: 10;
}

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

/* ========== Card Header ========== */
.card-header {
    padding: 40px 25px 25px;
    text-align: center;
    position: relative;
}

.card-header.reward-gold {
    background: linear-gradient(135deg, #854d0e 0%, #ca8a04 100%);
}

.card-header.reward-silver {
    background: linear-gradient(135deg, #475569 0%, #94a3b8 100%);
}

.card-header.reward-premium {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.card-header.reward-mod {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    box-shadow: 0 5px 20px rgba(14, 165, 233, 0.4);
}

.card-header.reward-streamer {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    box-shadow: 0 5px 20px rgba(244, 114, 182, 0.4);
}

.card-header.reward-share {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 5px 20px rgba(52, 211, 153, 0.4);
}

.card-header.reward-social {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 5px 20px rgba(52, 211, 153, 0.4);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

.card-header h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.card-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* ========== Card Body ========== */
.card-body {
    padding: 30px 25px;
    background: rgba(0, 0, 0, 0.2);
}

/* ========== Event Details Section ========== */
.event-details {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.event-details .detail-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.event-details .detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.event-details .detail-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #a855f7;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-details .detail-item h4 i {
    font-size: 14px;
}

.event-details .detail-item p,
.event-details .detail-item ul {
    font-size: 14px;
    line-height: 1.8;
    color: #e0e0e0;
    margin: 0;
}

.event-details .detail-item ul {
    list-style: none;
    padding-left: 0;
}

.event-details .detail-item ul li {
    padding: 5px 0 5px 20px;
    position: relative;
}

.event-details .detail-item ul li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #a855f7;
    font-weight: bold;
    font-size: 16px;
}

.event-details .detail-item strong {
    color: #ffd700;
    font-weight: 600;
}

/* ========== Requirement Box ========== */
.requirement-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.requirement-box.premium {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}

.requirement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #c084fc;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.requirement-box.premium .requirement-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-color: rgba(251, 191, 36, 0.6);
    color: #fbbf24;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.requirement-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: #c084fc;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.requirement-box.premium .requirement-text h4 {
    color: #fbbf24;
}

.requirement-text p {
    font-size: 14px;
    color: #e0e0e0;
    margin: 3px 0;
}

.requirement-text strong {
    color: #8b5cf6;
    font-weight: 600;
}

.requirement-box.premium .requirement-text strong {
    color: #ffd700;
}

/* ========== Reward Showcase ========== */
.reward-showcase {
    padding: 25px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(219, 39, 119, 0.2) 100%);
    border-radius: 15px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.reward-showcase.premium {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.reward-showcase.special {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(219, 39, 119, 0.2) 100%);
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
}

.reward-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 700;
    color: #c084fc;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.reward-showcase.premium .reward-title {
    color: #fbbf24;
}

.reward-showcase.special .reward-title {
    color: #f472b6;
}

.reward-title i {
    font-size: 22px;
    filter: drop-shadow(0 2px 4px rgba(192, 132, 252, 0.5));
}

.reward-showcase.premium .reward-title i {
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.5));
}

.reward-showcase.special .reward-title i {
    filter: drop-shadow(0 2px 4px rgba(244, 114, 182, 0.5));
}

.reward-list {
    text-align: center;
}

.reward-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 16px;
    color: #f3f4f6;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.reward-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.reward-item i {
    font-size: 24px;
    color: #fbbf24;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

/* ========== Prize Pool - สำหรับ Streamer Card ========== */
.prize-pool {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.prize-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.prize-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.prize-item.first {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.prize-item.first:hover {
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.5);
}

.prize-item.second {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.3) 0%, rgba(156, 163, 175, 0.2) 100%);
    border-color: rgba(192, 192, 192, 0.6);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
}

.prize-item.second:hover {
    box-shadow: 0 6px 25px rgba(192, 192, 192, 0.5);
}

.prize-item.third {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.3) 0%, rgba(180, 83, 9, 0.2) 100%);
    border-color: rgba(205, 127, 50, 0.6);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.3);
}

.prize-item.third:hover {
    box-shadow: 0 6px 25px rgba(205, 127, 50, 0.5);
}

.prize-item.other {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.5);
}

.prize-rank {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.prize-item.first .prize-rank {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
}

.prize-item.second .prize-rank {
    color: #d1d5db;
    text-shadow: 0 0 10px rgba(209, 213, 219, 0.8);
}

.prize-item.third .prize-rank {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.8);
}

.prize-rank i {
    font-size: 24px;
}

.prize-item.first .prize-rank i {
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
    animation: medalGlow 2s ease-in-out infinite;
}

.prize-item.second .prize-rank i {
    color: #d1d5db;
    filter: drop-shadow(0 0 8px rgba(209, 213, 219, 0.8));
}

.prize-item.third .prize-rank i {
    color: #cd7f32;
    filter: drop-shadow(0 0 8px rgba(205, 127, 50, 0.8));
}

@keyframes medalGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(251, 191, 36, 1));
        transform: scale(1.1);
    }
}

.prize-amount {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.prize-item.first .prize-amount {
    font-size: 26px;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
}

.reward-count {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.count-number {
    font-size: 60px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.count-text {
    font-size: 24px;
    color: #e0e0e0;
}

.reward-duration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.15) 100%);
    border: 2px solid rgba(34, 197, 94, 0.5);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.reward-duration i {
    color: #22c55e;
    font-size: 20px;
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.6));
}

/* ========== Bonus Info ========== */
.bonus-info {
    text-align: center;
    margin: 20px 0;
}

.bonus-multiplier {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.multiplier {
    font-size: 80px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    line-height: 1;
    animation: multiplierPulse 2s ease-in-out infinite;
}

@keyframes multiplierPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 3px 3px 15px rgba(255, 215, 0, 0.8);
    }
}

.multiplier-text {
    font-size: 18px;
    color: #ffd700;
    font-weight: 600;
}

/* ========== Steps Guide ========== */
.steps-guide {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 25px;
}

.steps-guide h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #8b5cf6;
    margin-bottom: 15px;
}

.steps-guide ol {
    margin-left: 20px;
    color: #e0e0e0;
}

.steps-guide li {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

/* ========== MOD Benefits ========== */
.mod-benefits {
    padding: 20px;
    background: rgba(6, 182, 212, 0.1);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
}

.mod-benefits h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #06b6d4;
    margin-bottom: 15px;
}

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

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.benefits-list i {
    color: #22c55e;
    font-size: 18px;
}

/* ========== MOD Requirement ========== */
.mod-requirement {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
}

.mod-requirement h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #ffd700;
    margin-bottom: 15px;
}

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

.requirement-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    font-size: 15px;
    color: #f3f4f6;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #a855f7;
    transition: all 0.2s ease;
}

.requirement-list li:hover {
    background: rgba(168, 85, 247, 0.15);
    border-left-color: #c084fc;
    transform: translateX(5px);
}

.requirement-list i {
    color: #c084fc;
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(192, 132, 252, 0.5));
}

/* ========== Action Area ========== */
.action-area {
    text-align: center;
    margin-top: 25px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 35px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Kanit', sans-serif;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.btn-action:active {
    transform: translateY(-1px);
}

/* ========== Description Box - สำหรับ Recruitment Cards ========== */
.description-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(168, 85, 247, 0.15) 100%);
    border-left: 5px solid #a855f7;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.description-box:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(168, 85, 247, 0.2) 100%);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.description-box h4 {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.description-box h4 i {
    color: #c084fc;
    font-size: 22px;
    filter: drop-shadow(0 2px 4px rgba(192, 132, 252, 0.5));
}

.description-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.description-box li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    transition: all 0.2s ease;
}

.description-box li:hover {
    padding-left: 40px;
    color: #ffffff;
}

.description-box li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 900;
    font-size: 20px;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: checkPulse 2s ease-in-out infinite;
}

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

/* ========== Benefits Box - สำหรับ Recruitment Cards ========== */
.benefits-box {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(219, 39, 119, 0.15) 100%);
    border: 2px solid rgba(236, 72, 153, 0.5);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.25);
    position: relative;
    overflow: hidden;
}

.benefits-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.benefits-box h4 {
    font-size: 19px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
    position: relative;
    z-index: 1;
}

.benefits-box h4 i {
    color: #fbbf24;
    font-size: 22px;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
    animation: starSpin 3s linear infinite;
}

@keyframes starSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(168, 85, 247, 0.15) 100%);
    transform: translateX(5px) scale(1.02);
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.benefit-item i {
    font-size: 20px;
    color: #10b981;
    margin-top: 2px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5));
}

.benefit-item span {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    font-weight: 500;
}

/* ========== Info Alert Box ========== */
.info-alert {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(8, 145, 178, 0.15) 100%);
    border-left: 5px solid #06b6d4;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.info-alert:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(8, 145, 178, 0.2) 100%);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

.info-alert i {
    font-size: 26px;
    color: #22d3ee;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6));
    animation: alertGlow 2s ease-in-out infinite;
}

@keyframes alertGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6));
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.9));
    }
}

.info-alert p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.btn-login {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.btn-login:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 12px 35px rgba(34, 197, 94, 0.6);
}

.btn-show-items {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-show-items:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.6);
}

.btn-survey {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    font-weight: 700;
}

.btn-survey:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.6);
}

.btn-mod {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-mod:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-mod:hover:before {
    left: 100%;
}

.btn-mod:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.6);
}

.btn-streamer {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-streamer:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-streamer:hover:before {
    left: 100%;
}

.btn-streamer:hover {
    background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
    box-shadow: 0 12px 35px rgba(236, 72, 153, 0.6);
}

.btn-share {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-share:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-share:hover:before {
    left: 100%;
}

.btn-share:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6);
}

.btn-apply {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-apply:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-apply:hover:before {
    left: 100%;
}

.btn-apply:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.6);
}
    color: #ffffff;
}

.btn-share:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btnShine 3s infinite;
}

@keyframes btnShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* ========== Event Footer ========== */
.event-footer {
    margin-top: 60px;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.5) 0%, rgba(124, 58, 237, 0.5) 100%);
    border-radius: 20px;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.footer-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.footer-section i {
    font-size: 32px;
    color: #8b5cf6;
    margin-top: 5px;
}

.footer-section h4 {
    font-size: 18px;
    color: #8b5cf6;
    margin-bottom: 8px;
}

.footer-section p {
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.6;
}

/* ========== Back to Home ========== */
.back-home {
    text-align: center;
    margin-top: 40px;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

/* ========== Popup Styles ========== */
.popup-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.popup-overlay[style*="display: flex"] {
    display: flex !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-container,
.popup-content {
    background: linear-gradient(135deg, #1e1e3f 0%, #2d2d5f 100%);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(139, 92, 246, 0.5);
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-radius: 20px 20px 0 0;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    position: relative; /* แก้ไขให้เป็น relative แทน */
    z-index: 1;
    flex-shrink: 0; /* ไม่ให้ header ถูกบีบ */
}

.popup-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.popup-close,
.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.popup-close:hover,
.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.popup-body {
    padding: 0 !important; /* ลบ padding ทั้งหมด */
    overflow-y: auto;
    flex: 1;
    scroll-behavior: smooth;
    position: relative;
}

.items-table-wrapper {
    overflow-x: auto;
    display: none;
    margin: 0 !important;
    padding: 20px 30px 30px 30px !important; /* เพิ่ม padding ที่นี่แทน ไม่มี padding-top มาก */
    position: relative;
    top: 0;
    left: 0;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 !important; /* ไม่มี margin เลย */
}

.items-table thead {
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
}

.items-table thead th {
    padding: 15px 20px !important; /* ลดกลับมาเป็นปกติ */
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* เอา padding-top พิเศษออก เพราะไม่จำเป็นแล้ว */
.items-table tbody tr:first-child td {
    padding-top: 15px !important; /* ลดลงเป็นปกติ */
}

.items-table tbody tr {
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.items-table tbody tr:last-child {
    border-bottom: none;
}

.items-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.1);
}

.items-table tbody td {
    padding: 15px 20px;
    font-size: 15px;
    color: #e0e0e0;
}

.items-table .text-center {
    text-align: center;
}

.popup-loading,
.loading-indicator {
    /* Default: ซ่อนอย่างสมบูรณ์ */
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    
    /* ตำแหน่งเมื่อแสดง */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #8b5cf6;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 10;
}

.loading-indicator.show {
    /* แสดงเมื่อมี class show */
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: 40px !important;
    pointer-events: auto !important;
}

.popup-loading i,
.loading-indicator i {
    font-size: 48px;
}

.popup-loading span,
.loading-indicator p {
    font-size: 18px;
    font-weight: 500;
}

.popup-error,
.error-indicator {
    /* Default: ซ่อนอย่างสมบูรณ์ */
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    
    /* ตำแหน่งเมื่อแสดง */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #ef4444;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 10;
}

.error-indicator.show {
    /* แสดงเมื่อมี class show */
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: 40px !important;
    pointer-events: auto !important;
}

.popup-error i,
.error-indicator i {
    font-size: 48px;
}

.popup-error span,
.error-indicator p {
    font-size: 18px;
    font-weight: 500;
}

/* ========== Responsive Design ========== */
@media (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .announcement-container {
        padding: 20px 15px 60px;
    }

    .event-header {
        margin-bottom: 40px;
    }

    .header-decoration {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .military-badge {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .military-badge.left {
        left: 10px;
        top: 10px;
    }

    .military-badge.right {
        right: 10px;
        top: 10px;
    }

    .event-logo {
        width: 60px;
        height: 60px;
        font-size: 30px;
        margin-bottom: 15px;
    }

    .event-title {
        font-size: 24px;
        letter-spacing: 0.5px;
    }

    .event-subtitle {
        font-size: 16px;
    }

    .status-badge {
        font-size: 14px;
        padding: 8px 20px;
    }

    .alert-bar {
        font-size: 13px;
        padding: 12px 15px;
        flex-wrap: wrap;
        margin-top: 20px;
        white-space: normal;
        text-align: center;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-header {
        padding: 30px 20px 20px;
    }

    .card-header h3 {
        font-size: 20px;
    }

    .card-subtitle {
        font-size: 14px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .card-body {
        padding: 20px 15px;
    }

    .requirement-box {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .requirement-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .requirement-text h4 {
        font-size: 16px;
    }

    .requirement-list li {
        font-size: 14px;
        padding: 10px 12px;
    }

    .reward-showcase {
        padding: 20px 15px;
    }

    .reward-title {
        font-size: 16px;
    }

    .reward-item {
        font-size: 14px;
    }

    .prize-item {
        padding: 12px 15px;
    }

    .prize-rank {
        font-size: 14px;
    }

    .prize-rank i {
        font-size: 20px;
    }

    .prize-amount {
        font-size: 18px;
    }

    .prize-item.first .prize-amount {
        font-size: 22px;
    }

    .count-number {
        font-size: 40px;
    }

    .count-text {
        font-size: 18px;
    }

    .multiplier {
        font-size: 50px;
    }

    .btn-action {
        width: 100%;
        padding: 14px 25px;
        font-size: 16px;
    }

    .description-box {
        padding: 20px 15px;
    }

    .description-box h4 {
        font-size: 16px;
    }

    .description-box li {
        font-size: 14px;
    }

    .benefits-box {
        padding: 20px 15px;
    }

    .benefits-box h4 {
        font-size: 16px;
    }

    .benefit-item {
        padding: 12px;
    }

    .benefit-item span {
        font-size: 14px;
    }

    .info-alert {
        padding: 15px;
    }

    .info-alert i {
        font-size: 20px;
    }

    .info-alert p {
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .popup-container {
        width: 95%;
        max-height: 85vh;
    }
    
    .popup-header {
        padding: 20px;
    }
    
    .popup-header h3 {
        font-size: 20px;
    }
    
    .popup-body {
        padding: 60px 20px 20px 20px !important;
    }
    
    .items-table thead th,
    .items-table tbody td {
        padding: 12px 15px;
        font-size: 14px;
    }

    .card-ribbon {
        top: 15px;
        right: -40px;
        padding: 6px 35px;
    }

    .card-ribbon span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .announcement-container {
        padding: 15px 10px 50px;
    }

    .header-decoration {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .military-badge {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .military-badge.left {
        left: 8px;
        top: 8px;
    }

    .military-badge.right {
        right: 8px;
        top: 8px;
    }

    .event-logo {
        width: 50px;
        height: 50px;
        font-size: 25px;
        margin-bottom: 12px;
    }

    .event-title {
        font-size: 20px;
        letter-spacing: 0px;
    }

    .event-subtitle {
        font-size: 14px;
    }

    .status-badge {
        font-size: 12px;
        padding: 6px 15px;
    }

    .alert-bar {
        font-size: 12px;
        padding: 10px 12px;
        margin-top: 15px;
    }

    .card-header {
        padding: 25px 15px 15px;
    }

    .card-header h3 {
        font-size: 18px;
    }

    .card-subtitle {
        font-size: 13px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
        margin-bottom: 12px;
    }

    .card-body {
        padding: 15px 12px;
    }

    .requirement-box {
        padding: 15px 12px;
    }

    .requirement-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .requirement-text h4 {
        font-size: 15px;
    }

    .requirement-list li {
        font-size: 13px;
        padding: 8px 10px;
        padding-left: 28px;
    }

    .reward-showcase {
        padding: 15px 12px;
    }

    .reward-title {
        font-size: 15px;
    }

    .reward-title i {
        font-size: 18px;
    }

    .reward-item {
        font-size: 13px;
        padding: 8px;
    }

    .reward-item i {
        font-size: 20px;
    }

    .prize-pool {
        gap: 12px;
    }

    .prize-item {
        padding: 10px 12px;
    }

    .prize-rank {
        font-size: 13px;
        gap: 8px;
    }

    .prize-rank i {
        font-size: 18px;
    }

    .prize-amount {
        font-size: 16px;
    }

    .prize-item.first .prize-amount {
        font-size: 20px;
    }

    .count-number {
        font-size: 35px;
    }

    .count-text {
        font-size: 16px;
    }

    .multiplier {
        font-size: 45px;
    }

    .btn-action {
        padding: 12px 20px;
        font-size: 15px;
    }

    .description-box {
        padding: 15px 12px;
    }

    .description-box h4 {
        font-size: 15px;
    }

    .description-box h4 i {
        font-size: 18px;
    }

    .description-box li {
        font-size: 13px;
        padding: 10px 0;
        padding-left: 28px;
    }

    .description-box li:before {
        font-size: 18px;
    }

    .benefits-box {
        padding: 15px 12px;
    }

    .benefits-box h4 {
        font-size: 15px;
    }

    .benefits-box h4 i {
        font-size: 18px;
    }

    .benefits-list {
        gap: 10px;
    }

    .benefit-item {
        padding: 10px;
        gap: 10px;
    }

    .benefit-item i {
        font-size: 16px;
    }

    .benefit-item span {
        font-size: 13px;
    }

    .info-alert {
        padding: 12px;
        gap: 10px;
    }

    .info-alert i {
        font-size: 18px;
    }

    .info-alert p {
        font-size: 13px;
    }

    .reward-duration {
        padding: 12px 20px;
        font-size: 14px;
    }

    .reward-duration i {
        font-size: 18px;
    }
    
    .popup-header h3 {
        font-size: 18px;
    }
    
    .items-table thead th,
    .items-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .card-ribbon {
        top: 12px;
        right: -42px;
        padding: 5px 32px;
    }

    .card-ribbon span {
        font-size: 10px;
    }

    .events-grid {
        gap: 15px;
    }
}

/* ========== Print Styles ========== */
@media print {
    body {
        background: white;
        color: black;
    }

    .background-animation,
    #particleCanvas,
    .btn-action,
    .btn-home {
        display: none;
    }

    .event-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
