header img {
    width: 100%;
    height: 100vh;
}

.candidate-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.symbol-img {
    width: 70px;
    height: 50px;
}

.vote-btn {
    background-color: #0d6efd;
    border: none;
    border-radius: 25px;
    padding: 8px 25px;
    color: white;
    font-weight: 600;
}

table th, table td {
    vertical-align: middle;
    text-align: center;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
}

#totalVotes {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 6px;
    background:
        repeating-linear-gradient(to right,
            #fff 0 24px,
            #0000 24px 30px);
    padding: 6px 8px;
    border-radius: 6px;
    border: 2px solid #0d6efd;
    font-family: monospace;
}


/* COMMON CELEBRATION LAYERS */
#confetti-container,
#fireworks-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
}

/* CONFETTI */
.confetti {
    position: absolute;
    width: 8px;
    height: 14px;
    animation: confettiFall 3s linear forwards;
    opacity: 0.9;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-20px) rotate(0);
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* FIREWORKS */
.firework {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: firework 1.2s ease-out forwards;
}

@keyframes firework {
    from {
        transform: scale(0.3);
        opacity: 1;
    }

    to {
        transform: scale(25);
        opacity: 0;
    }
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .confetti {
        width: 6px;
        height: 10px;
    }
}


/* ================= MODAL BACKDROP ================= */
.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ================= MODAL BOX ================= */
.modal-box {
    width: 450px;
    max-width: 90%;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.25);
    animation: modalFade 0.35s ease;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================= TOP BANNER ================= */
.top-banner {
    position: relative;
    height: 180px;
    /* ✅ FIXED HEIGHT */
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

/* FULL SIZE IMAGE + ROTATION */
.banner-img {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, rgb(102, 157, 251), transparent 100px);
    object-fit: contain;
    transform-origin: center;
    animation: rotateZoom 1.2s ease-out forwards;
}

/* ROTATION + ZOOM */
@keyframes rotateZoom {
    0% {
        transform: scale(1.4) rotate(-12deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ================= CLOSE BUTTON ================= */
.close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    z-index: 5;
    cursor: pointer;
    font-size: 22px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
}

/* ================= CONTENT ================= */
.green-msg {
    color: green;
    font-weight: 600;
}

.whatsapp-btn {
    background: #25D366;
    padding: 10px;
    border-radius: 10px;
    border: none;
    width: 100%;
    color: white;
    font-size: 18px;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 576px) {
    header img {
        height: 35vh;
    }

    .candidate-img {
        width: 30px;
        height: 30px;
    }

    .symbol-img {
        width: 50px;
        height: 40px;
    }

    table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .vote-btn {
        padding: 6px 15px;
        font-size: 14px;
        border-radius: 20px;
    }

    .modal-box {
        width: 92%;
        border-radius: 16px;
    }

    .top-banner {
        height: 120px;
        /* ✅ MOBILE FIX */
    }

    .close-btn {
        font-size: 18px;
        right: 10px;
        top: 8px;
    }

    .whatsapp-btn {
        font-size: 16px;
        padding: 8px;
    }
}