/* =====================================
   ENHANCED RAFFLE SYSTEM CSS - RESPONSIVE DARK GLASS-MORPHISM STYLE
   Updated with 360px layout fixes and improved visibility
   ===================================== */

/* ENHANCED BUTTON AREA TRANSITIONS */
.sr-raffle-join-options {
    transition: height 0.5s ease-out, opacity 0.3s ease-out, margin 0.5s ease-out, padding 0.5s ease-out !important;
    overflow: hidden !important;
    /* BUTTON LAYOUT FIXES */
    width: 100% !important;
    max-width: 400px !important;
    margin: 8px auto !important; /* Controlled margin */
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important; /* Tight spacing between button tiers */
}

.sr-raffle-join-options[style*="display: none"] {
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ENHANCED BUTTON ANIMATIONS - REMOVE GLOWING TICKETS */
.sr-raffle-join-button.processing-pulse {
    animation: processingPulse 1s ease-in-out infinite !important;
}

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

.sr-raffle-join-button.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: enhancedSuccessPulse 0.6s ease-out !important;
    border-color: #10b981;
    color: #fff !important;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5) !important;
}

@keyframes enhancedSuccessPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0.3);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
    }
}

/* ENHANCED MESSAGE SYSTEM */
.sr-message-updated {
    animation: messageUpdate 0.8s ease-out !important;
}

@keyframes messageUpdate {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 12px rgba(52, 211, 153, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
    }
}

/* ENHANCED FLYING TICKET ANIMATION */
.sr-flying-ticket {
    position: absolute !important;
    font-size: 24px !important;
    pointer-events: none !important;
    z-index: 1000 !important;
    animation: ticketFly 2s ease-out forwards !important;
}

@keyframes ticketFly {
    0% {
        transform: scale(1) translateY(0) rotate(0deg) !important;
        opacity: 1 !important;
    }
    25% {
        transform: scale(1.3) translateY(-30px) rotate(90deg) !important;
        opacity: 1 !important;
    }
    50% {
        transform: scale(1.5) translateY(-70px) rotate(180deg) !important;
        opacity: 0.8 !important;
    }
    75% {
        transform: scale(1.8) translateY(-120px) rotate(270deg) !important;
        opacity: 0.4 !important;
    }
    100% {
        transform: scale(2.2) translateY(-180px) rotate(360deg) !important;
        opacity: 0 !important;
    }
}

.sr-button-icon {
    display: inline !important;
    margin-left: 8px !important;
    transition: transform 0.3s ease !important;
}

.sr-raffle-message-area {
    transition: all 0.4s ease-in-out !important;
    /* MESSAGE AREA FIXES */
    width: 360px !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.sr-error {
    animation: errorShake 0.5s ease-in-out !important;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* ENHANCED REENTRY STYLING WITH PROPER TIMER */
.sr-reentry-info {
    background: rgba(15, 23, 42, 0.95) !important; /* Dark sapphire blue */
    border: 2px solid rgba(30, 58, 138, 0.9) !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin: 0 auto !important;
    display: block !important;
    width: 360px !important;
    max-width: 360px !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.4) !important;
    text-align: center !important;
    box-sizing: border-box !important;
    color: #e2e8f0 !important;
}

.sr-reentry-cooldown-message {
    text-align: center !important;
    margin: 16px auto !important;
    width: 360px !important;
    max-width: 360px !important;
    box-sizing: border-box !important;
}

/* REENTRY TIMER STYLING - MATCH MAIN COUNTDOWN */
.sr-reentry-countdown,
.sr-countdown-timer.sr-reentry-countdown {
    display: block !important;
    width: 320px !important;
   
    margin: 0 auto !important;
    text-align: center !important;
    padding: 12px 16px !important;
    font-size: 18px !important;
    font-family: 'Courier New', monospace !important;
    letter-spacing: 0.05em !important;
    backdrop-filter: blur(10px) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(96, 165, 250, 0.3) !important;
    color: #e2e8f0 !important; /* Match other countdown timers */
    font-weight: 600 !important;
    box-sizing: border-box !important;
}

.sr-reentry-countdown::before,
.sr-countdown-timer.sr-reentry-countdown::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.6), transparent) !important;
    animation: countdownPulse 2s ease-in-out infinite !important;
}

/* INFO TAG STYLING - Restored with background bubbles */
.sr-raffle-info-panel {
    padding: 6px 12px !important;
    margin: 8px auto 0 auto !important; /* Controlled margin */
    /* INFO PANEL FIXES */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.sr-info-tags-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: center !important;
}

.sr-info-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Featured - Gold */
.sr-info-tag.sr-tag-featured {
    background: linear-gradient(135deg, #fe6c61 0%, #7565b5 50%, #ff8c00 100%) !important;
    color: #1a1a1a;
    border: 1px solid #ff8c00 !important;
    text-shadow: 0 1px 2px rgba(255, 215, 0, 0.3) !important;
}

/* Boosted - Light Emerald Green (Jewel) */
.sr-info-tag.sr-tag-boosted {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    color: #ffffff !important;
    border: 1px solid #059669;
}

/* Re-entry - Deep Purple */
.sr-info-tag.sr-tag-reentry {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 50%, #7c3aed 100%);
    color: #ffffff !important;
    border: 1px solid #7c3aed;
}

/* Drawing - Crimson Red */
.sr-info-tag.sr-tag-drawing {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    color: #ffffff !important;
    border: 1px solid #b91c1c;
}

/* Schedule - Electric Blue */
.sr-info-tag.sr-tag-schedule {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: #ffffff !important;
    border: 1px solid #1d4ed8;
}

/* Date - Orange */
.sr-info-tag.sr-tag-date {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
    color: #ffffff !important;
    border: 1px solid #c2410c;
}

/* Tiers - Teal */
.sr-info-tag.sr-tag-tiers {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
    color: #ffffff !important;
    border: 1px solid #0f766e;
}

/* Recurring - Violet/Purple */
.sr-info-tag.sr-tag-recurring {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
    color: #ffffff !important;
    border: 1px solid #6d28d9;
}

.sr-tag-icon {
    font-size: 11px;
    opacity: 0.9 !important;
}

.sr-tag-text {
    font-size: 9px;
    font-weight: 700;
}

/* INNER CONTENT WRAPPER - 360PX LAYOUT FIXES */
.sr-raffle-main-content-wrapper {
    width: 360px !important;
    max-width: 360px !important;
    min-width: 360px !important;
    margin: 4px auto !important; /* Some space from header but controlled */
    padding: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0px !important; /* Remove automatic gaps, control individually */
}

/* INDIVIDUAL ELEMENT SPACING */
.sr-raffle-main-content-wrapper .sr-raffle-timing {
    margin: 16px 0 !important; /* Give top countdown proper space */
}

.sr-raffle-main-content-wrapper .sr-prize-list {
    margin: 12px 0 !important;
}

.sr-raffle-main-content-wrapper .sr-winners-display {
    margin: 12px 0 !important;
}

.sr-raffle-main-content-wrapper .sr-winner-count {
    margin: 6px 0 !important; /* Tighter spacing for info bars */
}

.sr-raffle-main-content-wrapper .sr-raffle-status-section {
    margin: 6px 0 !important;
}

.sr-raffle-main-content-wrapper .sr-raffle-join-options {
    margin: 8px 0 !important;
}

.sr-raffle-main-content-wrapper .sr-raffle-message-area {
    margin: 2px 0 !important; /* Very tight for message areas */
}

/* Force override any conflicting styles */
.sr-raffle-main-content-wrapper .sr-raffle-status-section .sr-raffle-message,
.sr-raffle-main-content-wrapper .sr-raffle-status-section .sr-success,
.sr-raffle-main-content-wrapper .sr-raffle-status-section .sr-info,
.sr-raffle-main-content-wrapper .sr-raffle-status-section .sr-error {
    margin: 20px auto !important;
}

/* ENSURE ALL CONTENT WITHIN WRAPPER IS EXACTLY 360PX */
.sr-raffle-main-content-wrapper > *,
.sr-raffle-main-content-wrapper .sr-raffle-content,
.sr-raffle-main-content-wrapper .sr-raffle-timing,
.sr-raffle-main-content-wrapper .sr-prize-list,
.sr-raffle-main-content-wrapper .sr-winners-display,
.sr-raffle-main-content-wrapper .sr-raffle-status-section,
.sr-raffle-main-content-wrapper .sr-raffle-message,
.sr-raffle-main-content-wrapper .sr-winner-count {
    width: 360px !important;
    max-width: 360px !important;
    min-width: 360px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

@keyframes reentryGlow {
    0% {
        box-shadow: 0 8px 32px rgba(52, 211, 153, 0.2), 0 0 20px rgba(52, 211, 153, 0.3);
    }
    100% {
        box-shadow: 0 8px 32px rgba(52, 211, 153, 0.3), 0 0 30px rgba(52, 211, 153, 0.5);
    }
}

.sr-reentry-note {
    color: #6ee7b7 !important;
    font-style: italic !important;
    font-size: 14px;
    margin: 10px 0 0 0 !important;
    display: block !important;
    text-align: center !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* RESET & BASE STRUCTURAL STYLES */
.sr-raffle-container {
    box-sizing: border-box !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 20px !important;
    background: rgba(30, 41, 59, 0.8);
    background-size: cover !important;
    background-position: top center !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    margin-bottom: 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    word-wrap: break-word !important;
    gap: 0px !important; /* Remove gap since we control spacing individually */
}

.sr-raffle-container::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.8), transparent) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.sr-raffle-container:hover::before {
    opacity: 1 !important;
}

.sr-raffle-container:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(96, 165, 250, 0.2) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}

.sr-raffle-container * {
    box-sizing: border-box !important;
}

/* ENHANCED TYPOGRAPHY - RESPONSIVE */
.sr-raffle-title {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    line-height: 1.2;
    margin-bottom: 12px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    letter-spacing: 0.025em !important;
}

.sr-raffle-description {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    line-height: 1.6;
    margin-bottom: 16px !important;
}

/* ENHANCED PRIZE LISTS - RESPONSIVE GOLD TREATMENT */
.sr-prize-list {
    display: block !important;
    width: 360px !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    text-align: center !important;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.4) 0%, rgba(251, 191, 36, 0.5) 50%, rgba(255, 193, 7, 0.4) 100%) !important;
    border: 2px solid rgba(234, 179, 8, 0.6) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 8px 32px rgba(234, 179, 8, 0.3), 
                0 4px 16px rgba(234, 179, 8, 0.2),
                0 0 30px rgba(251, 191, 36, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-sizing: border-box !important;
}

.sr-prize-list::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #8b5cf6) !important;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6) !important;
    animation: rainbow 3s linear infinite !important;
}

.sr-prize-list:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 12px 40px rgba(234, 179, 8, 0.4), 
                0 0 40px rgba(251, 191, 36, 0.5) !important;
}

.sr-prize-list-heading {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 12px !important;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(234, 179, 8, 0.4) 100%) !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 15px rgba(251, 191, 36, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
}

.sr-prize-list-container {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.sr-prize-item {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 8px 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    padding: 12px 16px !important;
    background: rgba(51, 65, 85, 0.7) !important;
    border-radius: 6px !important;
    border-left: 3px solid #fbbf24 !important;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.sr-prize-item:hover {
    background: rgba(71, 85, 105, 0.8) !important;
    transform: translateX(4px) !important;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3) !important;
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes innerGlow {
    0%, 100% { 
        border-color: rgba(251, 191, 36, 0.8);
        box-shadow: inset 0 0 20px rgba(251, 191, 36, 0.3);
    }
    20% { 
        border-color: rgba(239, 68, 68, 0.8);
        box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.3);
    }
    40% { 
        border-color: rgba(34, 197, 94, 0.8);
        box-shadow: inset 0 0 20px rgba(34, 197, 94, 0.3);
    }
    60% { 
        border-color: rgba(59, 130, 246, 0.8);
        box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.3);
    }
    80% { 
        border-color: rgba(139, 92, 246, 0.8);
        box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.3);
    }
}

/* ENHANCED WINNERS LISTS - RESPONSIVE PLATINUM TREATMENT */
.sr-winners-display {
    display: block !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 16px !important;
    width: 360px !important;
    max-width: 360px !important;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.3) 0%, rgba(100, 116, 139, 0.4) 50%, rgba(71, 85, 105, 0.3) 100%) !important;
    border: 2px solid rgba(148, 163, 184, 0.5) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 8px 32px rgba(148, 163, 184, 0.3), 
                0 4px 16px rgba(148, 163, 184, 0.2),
                0 0 30px rgba(148, 163, 184, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.sr-winners-display::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, #c0c0c0, #e5e7eb, #f8fafc, #e5e7eb, #c0c0c0) !important;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.5) !important;
    animation: shimmer 2.5s linear infinite !important;
}

.sr-winners-display:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 12px 40px rgba(148, 163, 184, 0.4), 
                0 0 40px rgba(148, 163, 184, 0.3) !important;
}

.sr-winners-heading {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 12px !important;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.3) 0%, rgba(100, 116, 139, 0.4) 100%) !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 15px rgba(148, 163, 184, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(148, 163, 184, 0.4) !important;
}

.sr-winners-list-container {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 8px !important;
}

.sr-winner-item {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 10px !important;
    padding: 12px 16px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    background: rgba(71, 85, 105, 0.7) !important;
    border-radius: 6px !important;
    border-left: 3px solid #94a3b8 !important;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.sr-winner-item:hover {
    background: rgba(100, 116, 139, 0.8) !important;
    transform: translateX(4px) !important;
    box-shadow: 0 4px 16px rgba(148, 163, 184, 0.3) !important;
}

/* ENHANCED COUNTDOWN TIMERS - RESPONSIVE WITH PROPER SPACING */
.sr-countdown-timer {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
    padding: 12px 16px !important;
    font-size: 18px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em !important;
    backdrop-filter: blur(10px) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-sizing: border-box !important;
	color:#fff;
}

/* Ensure main countdown has proper spacing */
.sr-raffle-timing .sr-countdown-timer {
    margin: 8px auto !important; /* Extra spacing for top countdown */
}

.sr-countdown-timer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.6), transparent) !important;
    animation: countdownPulse 2s ease-in-out infinite !important;
}

.sr-countdown-timer:hover {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 10px rgba(96, 165, 250, 0.3) !important;
}

@keyframes countdownPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ENHANCED SECTION TITLES - FULL WIDTH GRADIENT STYLE */
.sr-raffle-section-title {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    text-align: center !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    padding: 16px 24px !important;
    border-radius: 10px;
    margin-bottom: 20px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
}

.sr-raffle-section-title::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    animation: shimmer 4s infinite !important;
}

.sr-raffle-section-title::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent) !important;
    border-radius: 10px 10px 0 0;
}

/* ENHANCED SUCCESS & ERROR MESSAGES - IMPROVED VISIBILITY */
.sr-raffle-message-area .sr-raffle-message {
    width: 360px !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.sr-raffle-message.sr-success,
.sr-success {
    background: rgba(16, 185, 129, 0.95) !important; /* High opacity green */
    border: 2px solid rgba(52, 211, 153, 0.95) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin: 15px auto !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2), 
                0 4px 12px rgba(16, 185, 129, 0.1),
                0 0 20px rgba(52, 211, 153, 0.3) !important;
    display: block !important;
    width: 360px !important;
    
    position: relative !important;
    overflow: hidden !important;
    text-align: center !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    transform: scale(1) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    color: #ffffff !important;
}

.sr-raffle-message.sr-success:hover,
.sr-success:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.3), 
                0 0 30px rgba(52, 211, 153, 0.4) !important;
}

.sr-raffle-message.sr-success::before,
.sr-success::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 360px!important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(110, 231, 183, 0.4), transparent) !important;
    animation: shimmer 3s infinite !important;
}

.sr-raffle-message.sr-error,
.sr-error {
    background: rgba(239, 68, 68, 0.95) !important; /* High opacity red */
    border: 2px solid rgba(248, 113, 113, 0.95) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin: 5px auto !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 8px 24px rgba(248, 113, 113, 0.2), 
                0 4px 12px rgba(248, 113, 113, 0.1),
                0 0 20px rgba(248, 113, 113, 0.3) !important;
    display: block !important;
    width: fit-content !important;
    max-width: calc(100% - 20px) !important;
    text-align: center !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    animation: errorPulse 0.5s ease-in-out !important;
    color: #ffffff !important;
}

/* ENHANCED INFO MESSAGES - DARK SAPPHIRE BLUE */
.sr-raffle-message.sr-info,
.sr-info,
.sr-winner-count {
    background: rgba(15, 23, 42, 0.95) !important; /* Dark sapphire blue with high opacity */
    border: 1px solid rgba(30, 58, 138, 0.9) !important; /* Darker blue border */
    backdrop-filter: blur(12px) !important;
    color: #e2e8f0 !important; /* Light gray text for contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.4) !important;
    border-radius: 8px !important;
    padding: 10px 10px !important;
    margin: 5px auto !important;
    display: block !important;
    width: fit-content !important;
    width: 360px !important;
    text-align: center !important;
}

.sr-drawing-closed-message {
    background: rgba(71, 85, 105, 0.95) !important; /* High opacity gray */
    border: 1px solid rgba(100, 116, 139, 0.9) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    margin: 5px auto !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.2) !important;
    display: block !important;
    width: fit-content !important;
    max-width: calc(100% - 20px) !important;
    text-align: center !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    color: #e2e8f0 !important;
}

/* ENHANCED DASHICONS */
.sr-raffle-message .dashicons {
    vertical-align: middle !important;
    margin-right: 6px !important;
    filter: drop-shadow(0 0 5px currentColor) !important;
}

.sr-raffle-message .dashicons.sr-large-icon {
    width: auto !important;
    height: auto !important;
    line-height: inherit !important;
    margin: 0 6px 0 0 !important;
    display: inline !important;
}

/* ENHANCED ENTRY BUTTONS - RESPONSIVE GLOW STYLE */
.sr-raffle-tier-wrapper {
    display: block !important;
    width: 100% !important;
    margin: 0 !important; /* Remove individual margins, use gap instead */
}

.sr-raffle-join-button {
    display: block !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important; /* Remove individual margins, use gap instead */
    padding: 12px 16px !important;
    border-radius: 8px;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(96, 165, 250, 0.4) !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.8) 0%, rgba(59, 130, 246, 0.9) 100%);
    text-align: center !important;
    box-sizing: border-box !important;
    position: relative !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 16px rgba(96, 165, 250, 0.3), 
                0 2px 8px rgba(96, 165, 250, 0.2) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.2 !important; /* Reduced line height */
}

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

.sr-raffle-join-button:hover::before {
    left: 100% !important;
}

.sr-raffle-join-button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4), 
                0 0 20px rgba(96, 165, 250, 0.3) !important;
    border-color: rgba(96, 165, 250, 0.6) !important;
}

.sr-raffle-join-button.boosted {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.8) 0%, rgba(16, 185, 129, 0.9) 100%);
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3), 
                0 2px 8px rgba(52, 211, 153, 0.2),
                0 0 20px rgba(52, 211, 153, 0.3) !important;
    animation: none !important; /* Remove boost glow animation */
}

.sr-raffle-join-button.boosted:hover {
    box-shadow: 0 6px 20px rgba(52, 211, 153, 0.4), 
                0 0 25px rgba(52, 211, 153, 0.4) !important;
    transform: translateY(-1px) scale(1.01) !important;
}

.sr-raffle-join-button.free-entry {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.8) 0%, rgba(217, 119, 6, 0.9) 100%);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3), 
                0 2px 8px rgba(251, 191, 36, 0.2) !important;
}

.sr-button-text {
    display: inline !important;
}

/* SIMPLIFIED BUTTON ANIMATIONS */
@keyframes boostGlow {
    0%, 100% { 
        box-shadow: 0 4px 16px rgba(96, 165, 250, 0.3);
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

/* MASTER WRAPPER & STRUCTURE - FULLY RESPONSIVE */
.sr-raffles-master-wrapper {
    /* Max-width controlled by your container_max_width setting */
    display: block;
    padding: 16px;
    box-sizing: border-box;
}

.sr-raffles-section {
    margin-bottom: 32px !important;
    display: block !important;
    width: 100% !important;
}

.sr-section-header {
    margin: 0px 0px 20px 0px !important;
    display: block !important;
    width: 100% !important;
}

.sr-raffles-grid {
    display: block !important;
    width: 100% !important;
}

.sr-raffle-item {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px !important;
	padding:10px;
}

.sr-no-raffles-container {
    text-align: center !important;
    padding: 40px 20px !important;
    display: block !important;
    width: 100% !important;
}

.sr-no-raffles-container .sr-raffle-message {
    display: block !important;
    width: fit-content !important;
    max-width: calc(100% - 20px) !important;
    margin: 0 auto !important;
}

/* ENHANCED PAGINATION */
.sr-pagination-container {
    margin: 32px 0 !important;
    text-align: center !important;
    padding: 20px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
    width: 100% !important;
}

/* LOAD MORE BUTTON STYLING */
.sr-load-more-container { 
    text-align: center; 
    margin: 20px 0; 
}

.sr-load-more-btn { 
    padding: 12px 24px; 
    background: #007cba; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 14px; 
    transition: background 0.3s; 
}

.sr-load-more-btn:hover:not(:disabled) { 
    background: #005a87; 
}

.sr-load-more-btn:disabled { 
    background: #ccc; 
    cursor: not-allowed; 
}

.sr-pagination-container .page-numbers {
    border: 1px solid rgba(96, 165, 250, 0.3) !important;
    padding: 10px 14px !important;
    margin: 4px 2px !important;
    text-decoration: none !important;
    background: rgba(30, 41, 59, 0.8) !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    backdrop-filter: blur(10px) !important;
}

.sr-pagination-container .page-numbers.current {
    background: rgba(96, 165, 250, 0.8) !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.4) !important;
}

.sr-pagination-container .page-numbers:hover {
    background: rgba(96, 165, 250, 0.3) !important;
    border-color: #60a5fa !important;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2) !important;
}

/* ENHANCED REENTRY FEATURES */
.sr-reentry-success-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(52, 211, 153, 0.4) 100%) !important;
    border: 1px solid rgba(52, 211, 153, 0.5) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin: 12px auto !important;
    display: block !important;
    width: fit-content !important;
    max-width: calc(100% - 20px) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2) !important;
    text-align: center !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.sr-sticky-badge-inline {
    display: inline-block !important;
    vertical-align: middle !important;
    width: 100px !important;
    height: 100px !important;
    margin-left: 0px !important;
    background-image: url('https://warpcoreintegrity.com/wp-content/uploads/2025/07/featured-ticket-late-1.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6)) !important;
    animation: featuredFloat 3s ease-in-out infinite !important;
}

/* FEATURED RAFFLES - RESPONSIVE ENHANCED GLOW */
.sr-sticky-badge {
    position: absolute !important;
    top: 0px !important;
    right: 10px !important;
    background-image: url('https://warpcoreintegrity.com/wp-content/uploads/2025/07/featured-ticket-late-1.png') !important;
    width: 80px !important;
    height: 80px !important;
    color: #000 !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    text-shadow: none !important;
    animation: featuredFloat 3s ease-in-out infinite !important;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6)) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

@keyframes featuredFloat {
    0%, 100% { 
        transform: translateY(0px);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    }
    50% { 
        transform: translateY(-3px);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
}

.sr-sticky-raffle-container {
    position: relative !important;
    border: 3px solid rgba(251, 191, 36, 0.8) !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(251, 191, 36, 0.2) 50%, rgba(255, 193, 7, 0.15) 100%) !important;
    backdrop-filter: blur(20px) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    animation: innerGlow 3s ease-in-out infinite !important;
}

/* Keep normal hover effects for all featured raffles */
.sr-sticky-raffle-container:hover {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(251, 191, 36, 0.3) 50%, rgba(255, 193, 7, 0.25) 100%) !important;
}

/* Remove hover effects ONLY for completed featured raffles */
.sr-sticky-raffle-container.sr-raffle-completed:hover {
    transform: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(251, 191, 36, 0.2) 50%, rgba(255, 193, 7, 0.15) 100%) !important;
}

.sr-sticky-raffle-container .sr-raffle-title {
    color: #f8fafc !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.5) !important;
    font-weight: 700 !important;
}

.sr-sticky-raffle-container .sr-countdown-timer {
    background: rgba(234, 179, 8, 0.4) !important;
    border: 2px solid rgba(234, 179, 8, 0.8) !important;
    color: #fbbf24 !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px) !important;
    position: relative !important;
    z-index: 2 !important;
}

/* RESPONSIVE DESIGN - MOBILE FIRST */
@media (max-width: 767px) {
    .sr-raffles-master-wrapper {
        padding: 12px !important;
    }
    
    .sr-raffles-section {
        margin-bottom: 24px !important;
    }
    
    .sr-sticky-badge {
        top: 4px !important;
        right: 4px !important;
        width: 60px !important;
        height: 60px !important;
        font-size: 8px !important;
    }
    
    .sr-raffle-container {
        padding: 16px !important;
        margin: 16px 0 !important;
    }
    
    .sr-raffle-join-button {
        padding: 12px 16px !important;
        font-size: 14px !important;
        max-width: calc(100% - 20px) !important;
    }
    
    .sr-prize-list,
    .sr-winners-display {
        padding: 14px !important;
        margin: 16px auto !important;
        max-width: calc(100% - 10px) !important;
    }
    
    .sr-countdown-timer,
    .sr-reentry-countdown {
        padding: 10px 12px !important;
        font-size: 16px !important;
        max-width: calc(100% - 10px) !important;
        white-space: normal !important;
        word-wrap: break-word !important;
		color:#fff;
    }
    
    .sr-raffle-section-title {
        padding: 12px 16px !important;
        font-size: 18px !important;
    }
    
    .sr-prize-item,
    .sr-winner-item {
        padding: 10px 12px !important;
    }
    
    /* MOBILE 360PX ADJUSTMENTS */
    .sr-raffle-main-content-wrapper {
        width: calc(100vw - 40px) !important;
        max-width: 340px !important;
        min-width: 300px !important;
    }
    
    .sr-raffle-main-content-wrapper > *,
    .sr-raffle-main-content-wrapper .sr-raffle-content,
    .sr-raffle-main-content-wrapper .sr-raffle-timing,
    .sr-raffle-main-content-wrapper .sr-prize-list,
    .sr-raffle-main-content-wrapper .sr-winners-display,
    .sr-raffle-main-content-wrapper .sr-raffle-status-section,
    .sr-raffle-main-content-wrapper .sr-raffle-message,
    .sr-raffle-main-content-wrapper .sr-winner-count,
    .sr-countdown-timer,
    .sr-reentry-countdown,
    .sr-reentry-info,
    .sr-reentry-cooldown-message,
    .sr-raffle-message-area,
    .sr-raffle-info-panel {
        width: calc(100vw - 40px) !important;
        max-width: 100% !important;
        min-width: 300px !important;
    }
}

@media (max-width: 480px) {
    .sr-raffles-master-wrapper {
        padding: 8px !important;
    }
    
    .sr-raffle-container {
        padding: 12px !important;
    }
    
    .sr-countdown-timer,
    .sr-reentry-countdown {
        font-size: 14px !important;
        padding: 8px 10px !important;
    }
    
    .sr-sticky-badge {
        width: 50px !important;
        height: 50px !important;
        font-size: 7px !important;
    }
    
    /* EXTRA SMALL MOBILE ADJUSTMENTS */
    .sr-raffle-main-content-wrapper {
        width: calc(100vw - 20px) !important;
        max-width: 320px !important;
        min-width: 280px !important;
    }
    
    .sr-raffle-main-content-wrapper > *,
    .sr-raffle-main-content-wrapper .sr-raffle-content,
    .sr-raffle-main-content-wrapper .sr-raffle-timing,
    .sr-raffle-main-content-wrapper .sr-prize-list,
    .sr-raffle-main-content-wrapper .sr-winners-display,
    .sr-raffle-main-content-wrapper .sr-raffle-status-section,
    .sr-raffle-main-content-wrapper .sr-raffle-message,
    .sr-raffle-main-content-wrapper .sr-winner-count,
    .sr-countdown-timer,
    .sr-reentry-countdown,
    .sr-reentry-info,
    .sr-reentry-cooldown-message,
    .sr-raffle-message-area,
    .sr-raffle-info-panel {
        width: calc(100vw - 20px) !important;
        max-width: 100% !important;
        min-width: 280px !important;
    }
}

/* PREVENT WIDTH OVERFLOW */
.sr-raffles-master-wrapper,
.sr-raffles-section,
.sr-raffle-container,
.sr-prize-list,
.sr-winners-display {
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* ENSURE ALL TEXT CONTENT WRAPS PROPERLY */
.sr-raffle-title,
.sr-raffle-description,
.sr-prize-text,
.sr-winner-name,
.sr-winner-prize-desc {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    text-align: center !important;
}

/* Auto Posts Widget Styling */
.sr-current-raffle-linked,
.sr-winner-item-linked {
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.sr-current-raffle-linked:hover,
.sr-winner-item-linked:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.sr-raffle-title-link {
    text-decoration: none !important;
    color: inherit !important;
    transition: color 0.2s ease !important;
}

.sr-raffle-title-link:hover {
    color: #0073aa !important;
    text-decoration: underline !important;
}

.sr-raffle-link-indicator,
.sr-winner-link-indicator {
    font-size: 11px !important;
    opacity: 0.7 !important;
    text-align: center !important;
    margin-top: 8px !important;
    padding: 4px !important;
    background: rgba(0,115,170,0.1) !important;
    border-radius: 4px !important;
    transition: opacity 0.2s ease !important;
}

.sr-current-raffle-linked:hover .sr-raffle-link-indicator,
.sr-winner-item-linked:hover .sr-winner-link-indicator {
    opacity: 1 !important;
}

/* Dark theme adjustments */
.sr-widget-dark .sr-raffle-link-indicator,
.sr-widget-dark .sr-winner-link-indicator {
    background: rgba(255,255,255,0.1) !important;
}

.sr-widget-dark .sr-raffle-title-link:hover {
    color: #4fc3f7 !important;
}

/* Colorful theme adjustments */
.sr-widget-colorful .sr-raffle-title-link:hover {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
}

.sr-widget-colorful .sr-raffle-link-indicator,
.sr-widget-colorful .sr-winner-link-indicator {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}