.som-overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.som-particle {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
}

.som-particle-snow {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
    animation: som-fall-snow linear infinite;
}

@keyframes som-fall-snow {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(360deg);
        opacity: 0.6;
    }
}

.som-particle-heart {
    width: 20px;
    height: 20px;
    animation: som-fall-hearts linear infinite;
}

@keyframes som-fall-hearts {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(20deg);
        opacity: 0.3;
    }
}

@keyframes som-fall-hearts-rotate {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

.som-particle-confetti-streamers {
    width: 15px;
    height: 30px;
    animation: som-fall-confetti linear infinite;
}

@keyframes som-fall-confetti {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(100px) rotate(720deg);
        opacity: 0.4;
    }
}

@keyframes som-fall-confetti-rotate {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(1080deg);
        opacity: 0.4;
    }
}

.som-particle-fireworks {
    width: 40px;
    height: 40px;
    animation: som-fall-fireworks linear infinite;
}

@keyframes som-fall-fireworks {
    0% {
        transform: translateY(100vh) scale(0.2);
        opacity: 0;
    }
    10% {
        transform: translateY(80vh) scale(0.5);
        opacity: 0.5;
    }
    20% {
        transform: translateY(50vh) scale(1);
        opacity: 1;
    }
    40% {
        transform: translateY(30vh) scale(1.5);
        opacity: 0.8;
    }
    60% {
        transform: translateY(20vh) scale(2);
        opacity: 0.6;
    }
    80% {
        transform: translateY(15vh) scale(2.5);
        opacity: 0.3;
    }
    100% {
        transform: translateY(10vh) scale(3);
        opacity: 0;
    }
}

.som-particle-easter-eggs {
    width: 25px;
    height: 30px;
    animation: som-fall-easter linear infinite;
}

@keyframes som-fall-easter {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(180deg);
        opacity: 0.4;
    }
}

@keyframes som-fall-easter-rotate {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(540deg);
        opacity: 0.4;
    }
}

.som-particle-hanukkah-mixed {
    width: 28px;
    height: 28px;
    animation: som-fall-hanukkah linear infinite;
}

@keyframes som-fall-hanukkah {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(40px) rotate(360deg);
        opacity: 0.5;
    }
}

@keyframes som-fall-hanukkah-rotate {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0.5;
    }
}

@keyframes som-fall-snow-rotate {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(360deg);
        opacity: 0.6;
    }
}

.som-particle-leaf {
    width: 25px;
    height: 25px;
    animation: som-fall-leaves linear infinite;
}

@keyframes som-fall-leaves {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) translateX(30px) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(-20px) rotate(360deg);
        opacity: 0.3;
    }
}

.som-particle-confetti {
    width: 8px;
    height: 16px;
    animation: som-fall-confetti linear infinite;
}

@keyframes som-fall-confetti {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0.4;
    }
}

.som-particle-bat,
.som-particle-ghost {
    width: 30px;
    height: 30px;
    animation: som-float-spooky 8s ease-in-out infinite;
}

@keyframes som-float-spooky {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-30px) translateX(20px);
    }
}

.som-particle-star,
.som-particle-sparkle {
    width: 15px;
    height: 15px;
    animation: som-twinkle 2s ease-in-out infinite;
}

@keyframes som-twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

.som-corner-overlay {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.85;
    padding: 12px;
}

.som-corner-overlay.top-left {
    top: 0;
    left: 0;
}

.som-corner-overlay.top-right {
    top: 0;
    right: 0;
    transform: scaleX(-1);
}

.som-corner-overlay img {
    display: block;
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.som-border-lights {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9997;
    border: 4px solid transparent;
    animation: som-lights-pulse 2s ease-in-out infinite;
}

@keyframes som-lights-pulse {
    0%, 100% {
        border-color: rgba(255, 215, 0, 0.8);
        box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.4);
    }
    50% {
        border-color: rgba(255, 215, 0, 0.4);
        box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.2);
    }
}

.som-ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9996;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: som-glow-pulse 4s ease-in-out infinite;
}

@keyframes som-glow-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}


.som-cursor-sparkle {
    position: fixed;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9995;
    animation: som-cursor-fade 0.8s ease-out forwards;
}

@keyframes som-cursor-fade {
    0% {
        opacity: 1;
        transform: scale(0);
    }
    50% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.som-floating-icon {
    position: absolute;
    pointer-events: none;
    animation: som-float 4s ease-in-out infinite;
}

@keyframes som-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    75% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

.som-firework {
    position: absolute;
    pointer-events: none;
    animation: som-firework-burst 1s ease-out forwards;
}

@keyframes som-firework-burst {
    0% {
        opacity: 1;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@media (prefers-reduced-motion: reduce) {
    .som-particle,
    .som-corner-overlay,
    .som-border-lights,
    .som-ambient-glow,
    .som-cursor-sparkle,
    .som-floating-icon,
    .som-firework {
        animation: none !important;
        opacity: 0.5 !important;
    }
}

@media (max-width: 768px) {
    .som-corner-overlay img {
        width: 50px;
        height: 50px;
    }

    .som-particle {
        opacity: 0.6;
    }
}

.som-hidden {
    display: none !important;
}

/* Design Style Variations */

/* Futuristic Style */
.som-style-futuristic .som-particle {
    filter: drop-shadow(0 0 8px currentColor);
    opacity: 0.9;
}

.som-style-futuristic .som-holiday-banner {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
    border: 2px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(255, 0, 255, 0.2);
}

.som-style-futuristic .som-corner-overlay {
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.6));
}

/* Glassmorphic Style */
.som-style-glassmorphic .som-particle {
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.som-style-glassmorphic .som-holiday-banner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.som-style-glassmorphic .som-corner-overlay {
    opacity: 0.6;
    backdrop-filter: blur(10px);
}

/* Isometric Style */
.som-style-isometric .som-particle {
    transform-style: preserve-3d;
    transform: rotateX(45deg) rotateZ(45deg);
}

.som-style-isometric .som-corner-overlay {
    transform: perspective(1000px) rotateY(20deg) rotateX(20deg);
}

.som-style-isometric .som-holiday-banner {
    transform: perspective(1000px) rotateX(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Classic Style */
.som-style-classic .som-particle {
    opacity: 0.7;
    filter: sepia(0.2) contrast(1.1);
}

.som-style-classic .som-holiday-banner {
    border-radius: 0;
    border-top: 3px solid rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.som-style-classic .som-corner-overlay {
    filter: sepia(0.3) contrast(1.2);
}

/* Traditional Style */
.som-style-traditional .som-particle {
    filter: brightness(0.95) contrast(1.1) saturate(1.2);
}

.som-style-traditional .som-holiday-banner {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, transparent 100%);
    border: none;
    border-top: 2px solid rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    font-family: Georgia, serif;
}

.som-style-traditional .som-corner-overlay {
    opacity: 0.8;
    filter: brightness(0.9);
}

/* Professional Style */
.som-style-professional .som-particle {
    opacity: 0.5;
    filter: grayscale(0.2);
}

.som-style-professional .som-holiday-banner {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9));
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.som-style-professional .som-corner-overlay {
    opacity: 0.4;
    filter: grayscale(0.3);
}

/* Modern Style (Default) */
.som-style-modern .som-particle {
    /* Default modern styling already applied */
}

.som-style-modern .som-holiday-banner {
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.som-style-modern .som-corner-overlay {
    /* Default modern styling */
}

/* Edge Decorations */
.som-edge-overlay {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    background-size: contain;
    background-repeat: repeat-x;
    opacity: 0.9;
}

.som-edge-overlay.top {
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
}

.som-edge-overlay.bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
}

.som-edge-overlay.left {
    top: 0;
    bottom: 0;
    left: 0;
    width: 60px;
    background-repeat: repeat-y;
}

.som-edge-overlay.right {
    top: 0;
    bottom: 0;
    right: 0;
    width: 60px;
    background-repeat: repeat-y;
}

/* Logo Treatment */
.som-logo-treatment {
    position: absolute;
    pointer-events: none;
    z-index: 10000;
    max-width: 80px;
    max-height: 80px;
}

.som-logo-treatment.santa-hat {
    top: -20px;
    right: -10px;
    transform: rotate(15deg);
}

.som-logo-treatment.party-hat {
    top: -25px;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
}

.som-logo-treatment.flag-banner {
    top: -15px;
    right: -15px;
}

.som-logo-treatment.menorah-glow {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 0 10px #ffd700);
}

.som-logo-treatment.shamrock {
    top: -10px;
    right: -10px;
}

.som-logo-treatment.bunny-ears {
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.som-animated-character {
    animation: som-character-idle 3s ease-in-out infinite;
}

@keyframes som-character-idle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.som-character-snowman svg {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.som-snow-accumulated {
    position: relative;
}

.som-snow-accumulated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0) 100%);
    border-radius: 50% 50% 0 0;
    pointer-events: none;
}

.som-music-player {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    user-select: none;
}

.som-music-player button:hover {
    opacity: 0.8;
}

.som-music-player input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    height: 5px;
    outline: none;
}

.som-music-player input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.som-music-player input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
}

@keyframes som-snow-sparkle {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
        filter: brightness(1.2);
    }
}

.som-progressive-snow {
    animation: som-snow-sparkle 3s ease-in-out infinite;
}

/* XMLA SaaS Design Style - Stripe-inspired, modern, professional */
.som-style-xmla .som-particle {
    filter: drop-shadow(0 2px 8px rgba(43, 120, 184, 0.3));
}

.som-style-xmla .som-particle-snow {
    background: radial-gradient(circle, rgba(43, 120, 184, 0.9) 0%, rgba(43, 120, 184, 0.5) 50%, rgba(43, 120, 184, 0) 100%);
}

.som-style-xmla .som-corner-overlay {
    filter: drop-shadow(0 4px 12px rgba(11, 19, 32, 0.2));
}

.som-style-xmla .som-banner {
    background: linear-gradient(135deg, #0B1320 0%, #1a2433 100%);
    border-bottom: 2px solid #2b78b8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.som-style-xmla .som-banner-content {
    color: #ffffff;
    font-weight: 500;
}

.som-style-xmla .som-banner-close {
    background: rgba(43, 120, 184, 0.1);
    color: #2b78b8;
    border: 1px solid rgba(43, 120, 184, 0.3);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.som-style-xmla .som-banner-close:hover {
    background: rgba(43, 120, 184, 0.2);
    border-color: #2b78b8;
}

.som-style-xmla .som-logo-treatment {
    filter: drop-shadow(0 2px 6px rgba(43, 120, 184, 0.4));
}

/* XMLA particle colors */
.som-style-xmla .som-particle-heart,
.som-style-xmla .som-particle-confetti,
.som-style-xmla .som-particle-leaf,
.som-style-xmla .som-particle-shamrock {
    filter: hue-rotate(210deg) saturate(1.2) drop-shadow(0 2px 4px rgba(43, 120, 184, 0.3));
}

.som-style-xmla .som-particle-pumpkin,
.som-style-xmla .som-particle-ghost,
.som-style-xmla .som-particle-bat {
    filter: drop-shadow(0 2px 6px rgba(11, 19, 32, 0.4));
}

/* XMLA corner decorations with minimal, clean styling */
.som-style-xmla .som-corner-decoration {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.som-style-xmla .som-corner-decoration:hover {
    opacity: 1;
}

/* XMLA banner button styling */
.som-style-xmla .som-banner button,
.som-style-xmla .som-banner a.button {
    background: #2b78b8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.som-style-xmla .som-banner button:hover,
.som-style-xmla .som-banner a.button:hover {
    background: #236399;
    box-shadow: 0 4px 12px rgba(43, 120, 184, 0.3);
    transform: translateY(-1px);
}

/* XMLA light background integration */
.som-style-xmla .som-overlay-container {
    background: rgba(244, 246, 249, 0);
}

/* XMLA professional animations - subtle and smooth */
.som-style-xmla .som-particle {
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* XMLA mobile optimizations */
@media (max-width: 768px) {
    .som-style-xmla .som-banner {
        padding: 12px 16px;
    }

    .som-style-xmla .som-banner button,
    .som-style-xmla .som-banner a.button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .som-style-xmla .som-particle {
        filter: drop-shadow(0 1px 4px rgba(43, 120, 184, 0.2));
    }
}

.som-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: all;
}

.som-modal-overlay.som-modal-visible {
    opacity: 1;
}

.som-modal-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: som-modal-appear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.som-modal-visible .som-modal-content {
    transform: scale(1) translateY(0);
}

@keyframes som-modal-appear {
    0% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.som-modal-body {
    text-align: center;
}

.som-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: som-modal-icon-bounce 0.6s ease;
}

@keyframes som-modal-icon-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.som-modal-text {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.som-modal-button {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.som-modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.som-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 4px 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.som-modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .som-modal-content {
        max-width: 90%;
        padding: 32px 24px;
    }

    .som-modal-text {
        font-size: 18px;
    }

    .som-modal-icon {
        font-size: 40px;
    }
}
