  :root {
        --primary-gradient: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #45b7d1 100%);
        --secondary-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
        --rainbow-gradient: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 16.66%, #6bcf7f 33.33%, #4d96ff 50%, #9b59b6 66.66%, #ff6b6b 100%);
        --magical-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
        --sparkle-gradient: linear-gradient(45deg, #c8aa00ff, #ffed4a, #f093fb, #667eea);
        --card-shadow: 0 20px 40px rgba(0,0,0,0.1);
        --card-hover-shadow: 0 30px 60px rgba(0,0,0,0.2);
        --glow-shadow: 0 0 30px rgba(255, 107, 107, 0.6);
    }

    * {
        box-sizing: border-box;
    }

    body {
        background: linear-gradient(135deg, hsl(0, 0%, 100%) 0%, hwb(303 65% 0%) 25%, hwb(0 100% 0%) 50%, hsl(352, 100%, 85%) 75%, hsl(0, 0%, 100%) 100%);
        background-size: 400% 400%;
        animation: gradientShift 15s ease infinite;
        min-height: 100vh;
        font-family: 'Fredoka', cursive;
        overflow-x: hidden;
    }

    @keyframes gradientShift {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    /* Floating particles background */
    .particles {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: -1;
    }

    .particle {
        position: absolute;
        font-size: 20px;
        animation: float 6s ease-in-out infinite;
        opacity: 0.7;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0px) rotate(0deg); }
        50% { transform: translateY(-20px) rotate(180deg); }
    }

    /* Magical sparkle animation */
    .sparkle {
        position: relative;
        overflow: visible;
    }

    .sparkle::before, .sparkle::after {
        content: '✨';
        position: absolute;
        font-size: 1.5rem;
        animation: sparkleFloat 3s ease-in-out infinite;
        pointer-events: none;
        z-index: 10;
    }

    .sparkle::before {
        top: -10px;
        left: -10px;
        animation-delay: 0s;
    }

    .sparkle::after {
        bottom: -10px;
        right: -10px;
        animation-delay: 1.5s;
    }

    @keyframes sparkleFloat {
        0%, 100% { 
            opacity: 0; 
            transform: scale(0) rotate(0deg);
        }
        50% { 
            opacity: 1; 
            transform: scale(1) rotate(180deg);
        }
    }

    /* Stats Section */
    .stats-section {
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(20px);
        border-radius: 30px;
        margin-bottom: 40px;
        border: 3px solid rgba(255,255,255,0.3);
        box-shadow: var(--card-shadow);
        position: relative;
        overflow: hidden;
    }

    .stats-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
        animation: shimmer 3s infinite;
        pointer-events: none;
    }

    @keyframes shimmer {
        0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
        100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    }

    .stat-card {
        background: var(--rainbow-gradient);
        background-size: 200% 200%;
        animation: rainbowShift 4s ease infinite;
        border-radius: 25px;
        color: white;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: none;
        box-shadow: var(--card-shadow);
        position: relative;
        overflow: hidden;
        transform-style: preserve-3d;
    }

    @keyframes rainbowShift {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    .stat-card:hover {
        transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.05);
        box-shadow: var(--card-hover-shadow);
    }

    .stat-card h6 {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 15px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    .hot-pick-card {
        background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 50%, #f093fb 100%);
        width: 120%;
        animation: pulseGlow 2s ease-in-out infinite alternate;
    }

    @keyframes pulseGlow {
        0% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.4); }
        100% { box-shadow: 0 0 40px rgba(255, 107, 107, 0.8); }
    }

    .ad-card {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #6bcf7f 100%);
        margin-left: 20%;
    }

    /* Header with magical effects */
    .gallery-header {
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(20px);
        border-radius: 30px;
        padding: 40px;
        margin-bottom: 40px;
        border: 3px solid rgba(255,255,255,0.3);
        box-shadow: var(--card-shadow);
        position: relative;
        overflow: hidden;
    }


    .gallery-header h2 {
        background: var(--rainbow-gradient);
        background-size: 200% 200%;
        animation: rainbowText 3s ease infinite;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 700;
        font-size: 2.5rem;
        font-family: 'Comic Neue', cursive;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    }

    @keyframes rainbowText {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    /* Bouncy filter buttons */
    .filter-btn {
        background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
        border: 3px solid transparent;
        background-clip: padding-box;
        border-radius: 50px;
        padding: 15px 30px;
        margin: 8px;
        font-weight: 600;
        font-size: 1.1rem;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        backdrop-filter: blur(10px);
        position: relative;
        overflow: hidden;
        font-family: 'Comic Neue', cursive;
    }

    .filter-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.6s;
    }

    .filter-btn:hover::before {
        left: 100%;
    }

    .filter-btn:hover {
        background: var(--rainbow-gradient);
        background-size: 200% 200%;
        animation: rainbowShift 1s ease infinite;
        color: white;
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
        border-color: rgba(255,255,255,0.5);
    }

    .filter-btn.active {
        background: var(--rainbow-gradient);
        background-size: 200% 200%;
        animation: rainbowShift 2s ease infinite;
        color: white;
        transform: scale(1.1);
        box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6);
    }

    /* Magical photo cards */
    .photo-card {
        border-radius: 30px;
        overflow: hidden;
        transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 3px solid rgba(255,255,255,0.3);
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(20px);
        box-shadow: var(--card-shadow);
        position: relative;
        transform-style: preserve-3d;
    }

    .photo-card::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: var(--rainbow-gradient);
        background-size: 200% 200%;
        animation: rainbowBorder 4s ease infinite;
        border-radius: 30px;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    @keyframes rainbowBorder {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    .photo-card:hover::before {
        opacity: 1;
    }

    .photo-card:hover {
        transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.05);
        box-shadow: var(--card-hover-shadow);
    }

    .photo-card img {
        height: 300px;
        object-fit: cover;
        transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border-radius: 20px 20px 0 0;
    }

    .photo-card:hover img {
        transform: scale(1.1) rotate(2deg);
        filter: brightness(1.1) saturate(1.2);
    }

    /* Heart animation enhanced */
    .vote-container {
        background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
        border-radius: 25px;
        padding: 12px 20px;
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255,255,255,0.3);
        transition: all 0.4s ease;
    }

    .vote-icon {
        font-size: 2.2rem;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        cursor: pointer;
        filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
        position: relative;
    }

    .vote-icon:hover {
        transform: scale(1.3) rotate(15deg);
        filter: drop-shadow(0 8px 16px rgba(255, 0, 0, 0.4));
    }

    .vote-icon.clicked {
        transform: scale(1.6);
        animation: heartExplode 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    @keyframes heartExplode {
        0% { transform: scale(1); }
        20% { transform: scale(1.4) rotate(10deg); }
        40% { transform: scale(1.6) rotate(-10deg); }
        60% { transform: scale(1.5) rotate(5deg); }
        80% { transform: scale(1.3) rotate(-5deg); }
        100% { transform: scale(1); }
    }

    /* Floating hearts effect */
    .floating-heart {
        position: absolute;
        font-size: 1.5rem;
        color: #ff6b6b;
        pointer-events: none;
        animation: floatUp 2s ease-out forwards;
        z-index: 1000;
    }

    @keyframes floatUp {
        0% {
            opacity: 1;
            transform: translateY(0) scale(1) rotate(0deg);
        }
        100% {
            opacity: 0;
            transform: translateY(-100px) scale(1.5) rotate(360deg);
        }
    }

    .like-count {
        font-weight: 700;
        color: #333;
        transition: all 0.4s ease;
        font-size: 1.1rem;
        font-family: 'Comic Neue', cursive;
    }

    .like-count.bounce {
        animation: numberBounce 0.6s ease;
    }

    @keyframes numberBounce {
        0% { transform: scale(1); }
        50% { transform: scale(1.5) rotate(5deg); }
        100% { transform: scale(1); }
    }

    /* Action buttons with enhanced effects */
    .action-buttons {
        gap: 12px;
    }

    .action-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        font-size: 1.3rem;
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        position: relative;
        overflow: hidden;
    }

    .action-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255,255,255,0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.4s ease;
    }

    .action-btn:hover::before {
        width: 100%;
        height: 100%;
    }

    .action-btn:hover {
        transform: translateY(-5px) scale(1.2) rotate(360deg);
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    }

    .download-btn {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .share-btn {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        color: white;
    }

    /* Login button with rainbow effect */
    .login-vote-btn {
        background: var(--rainbow-gradient);
        background-size: 200% 200%;
        animation: rainbowShift 3s ease infinite;
        border: none;
        border-radius: 35px;
        padding: 12px 25px;
        color: white;
        font-weight: 700;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        text-decoration: none;
        display: inline-block;
        font-family: 'Comic Neue', cursive;
        font-size: 1.1rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    .login-vote-btn:hover {
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 15px 35px rgba(250, 112, 154, 0.6);
        color: white;
    }

    /* Contest status with pulsing effect */
    .contest-status {
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(10px);
        border-radius: 25px;
        padding: 15px 25px;
        border: 2px solid rgba(255,255,255,0.3);
        font-weight: 700;
        box-shadow: var(--card-shadow);
        font-family: 'Comic Neue', cursive;
        font-size: 1.1rem;
    }

    .contest-status.active {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        color: white;
        animation: statusPulse 2s ease-in-out infinite;
    }

    @keyframes statusPulse {
        0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(79, 172, 254, 0.4); }
        50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(79, 172, 254, 0.8); }
    }

    .contest-status.ended {
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
        color: white;
        animation: shake 0.5s ease-in-out;
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-5px); }
        75% { transform: translateX(5px); }
    }

    /* Section cards with enhanced styling */
    .gallery-section .card {
        border-radius: 30px;
        width:100%;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(20px);
        box-shadow: var(--card-shadow);
        position:relative;
    }
@media (max-width: 768px) {
    .gallery-section {
        width: 100%; /* remove overflow */
        margin-left: 0; /* reset negative margin */
        margin-bottom: 20px; /* spacing between sections */
        border-radius: 30px;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(20px);
        box-shadow: var(--card-shadow);
        position: relative;
        z-index: 2; /* ensure gallery is above stats section if overlapping */
    }

    .stats-section {
        z-index: 1; /* behind gallery if needed */
        margin-bottom: 20px;
    }
}


    .gallery-section .card-header {
        background: var(--rainbow-gradient);
        background-size: 200% 200%;
        animation: rainbowShift 5s ease infinite;
        border: none;
        padding: 25px;
        position: relative;
    }

    .gallery-section .card-header::after {
        content: '🎨🌟🎭';
        position: absolute;
        right: 25px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        animation: bounce 2s ease-in-out infinite;
    }

    @keyframes bounce {
        0%, 100% { transform: translateY(-50%); }
        50% { transform: translateY(-70%); }
    }

    .gallery-section .card-header h3 {
        color: white;
        font-weight: 700;
        margin: 0;
        font-size: 1.8rem;
        font-family: 'Comic Neue', cursive;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    /* Hot picks with enhanced styling */
    .hot-pick-img {
        width: 70px;
        height: 70px;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid white;
        margin-right: 15px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        transition: all 0.4s ease;
    }

    .hot-pick-item {
        background: rgba(255,255,255,0.9);
        border-radius: 20px;
        padding: 15px;
        margin-bottom: 12px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 2px solid rgba(255,255,255,0.3);
    }

    .hot-pick-item:hover {
        background: rgba(255,255,255,1);
        transform: translateX(10px) scale(1.02);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

    .hot-pick-item:hover .hot-pick-img {
        transform: scale(1.1) rotate(5deg);
    }

    /* Vote status items */
    .vote-status-item {
        background: hsla(190, 78%, 55%, 0.90);
        border-radius: 15px;
        padding: 15px 20px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 2px solid rgba(255,255,255,0.3);
    }

    .vote-status-item:hover {
        background: rgba(255,255,255,1);
        transform: translateX(10px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    /* Already voted message */
    .already-voted-msg {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.9rem;
        margin-left: 10px;
        display: inline-block;
        font-weight: 600;
        animation: slideIn 0.5s ease;
        font-family: 'Comic Neue', cursive;
    }

    @keyframes slideIn {
        0% { opacity: 0; transform: translateX(-20px); }
        100% { opacity: 1; transform: translateX(0); }
    }

    /* Modal enhancements */
    .modal-content {
        border-radius: 30px;
        border: 3px solid rgba(255,255,255,0.3);
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(30px);
        box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    }

    .modal-header {
        background: var(--rainbow-gradient);
        background-size: 200% 200%;
        animation: rainbowShift 4s ease infinite;
        color: white;
        border-bottom: none;
        border-radius: 30px 30px 0 0;
    }

    .modal-header h5 {
        font-weight: 700;
        font-family: 'Comic Neue', cursive;
        font-size: 1.5rem;
    }

    .btn-close {
        filter: brightness(0) invert(1);
        font-size: 1.2rem;
    }

    /* Card body improvements */
    .photo-card .card-body {
        background: rgba(255,255,255,0.9);
    }

    .photo-card .card-body h5 {
        color: #333;
        font-weight: 700;
        margin-bottom: 12px;
        font-size: 1.4rem;
        font-family: 'Comic Neue', cursive;
    }

    .photo-card .card-body p {
        color: #666;
        margin-bottom: 10px;
        font-size: 1rem;
        font-family: 'Fredoka', cursive;
    }


    /* Responsive adjustments */
    @media (max-width: 768px) {
        .gallery-header h2 {
            font-size: 2rem;
        }
        
        .photo-card {
            margin-bottom: 25px;
        }
        

        .vote-icon {
            font-size: 2rem;
        }
    }

    /* Success message styling */
    .success-message {
        position: fixed;
        top: 20px;
        right: 20px;
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        color: white;
        padding: 15px 20px;
        border-radius: 25px;
        font-weight: 600;
        z-index: 1000;
        animation: slideInRight 0.5s ease, fadeOut 0.5s ease 2.5s;
        font-family: 'Comic Neue', cursive;
    }

    @keyframes slideInRight {
        0% { transform: translateX(100%); }
        100% { transform: translateX(0); }
    }

    @keyframes fadeOut {
        0% { opacity: 1; }
        100% { opacity: 0; }
    }

    .hot-pick-name {
  font-size: 2.25rem; /* bigger name */
  font-weight: 700;
  color: var(--accent); /* optional highlight */
}

.hot-pick-category {
  font-size: 1rem;  /* larger than default small */
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden !important;
}

/* Make container content fit */
.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fixed responsive card */
.stat-card {
    background: var(--rainbow-gradient);
    background-size: 200% 200%;
    animation: rainbowShift 4s ease infinite;
    border-radius: 20px;
    color: white;
    text-align: center;
    transition: 0.3s ease;
    border: none;
    box-shadow: var(--card-shadow);
    padding: 15px;
    width: 100%;
}

/* Vote status list */
.vote-status-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vote-status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}


/* Spacing fixes for mobile */
@media (max-width: 576px) {
    .stat-card {
        padding: 12px;
    }
    .vote-status-item {
        font-size: 14px;
    }
    .hot-pick-img {
        width: 100px;
        height: 100px;
    }
}
