﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock-container {
    text-align: center;
    position: relative;
}

.clock {
    font-size: 12vw;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 
        0 0 calc(2px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(4px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(8px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(16px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(24px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(32px * var(--neon-intensity)) var(--neon-color);
    animation: glow 2s ease-in-out infinite alternate;
    letter-spacing: 0.1em;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    text-transform: uppercase;
    -webkit-text-stroke: 0.5px #e0e0e0;
}

.date {
    font-size: 2.5vw;
    color: #ffffff;
    text-shadow: 
        0 0 calc(2px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(4px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(6px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(12px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(18px * var(--neon-intensity)) var(--neon-color);
    margin-top: 2vh;
    animation: dateGlow 3s ease-in-out infinite alternate;
    letter-spacing: 0.05em;
    font-family: 'Rajdhani', 'Arial', sans-serif;
    font-weight: 600;
    -webkit-text-stroke: 0.3px #e0e0e0;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 calc(2px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(4px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(8px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(16px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(24px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(32px * var(--neon-intensity)) var(--neon-color);
    }
    to {
        text-shadow: 
            0 0 calc(4px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(8px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(12px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(20px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(28px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(36px * var(--neon-intensity)) var(--neon-color);
    }
}

@keyframes dateGlow {
    from {
        text-shadow: 
            0 0 calc(2px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(4px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(6px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(12px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(18px * var(--neon-intensity)) var(--neon-color);
    }
    to {
        text-shadow: 
            0 0 calc(3px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(6px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(9px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(15px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(21px * var(--neon-intensity)) var(--neon-color);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .clock {
        font-size: 15vw;
    }
    
    .date {
        font-size: 4vw;
    }
    
    .fullscreen-btn {
        top: 20px;
        left: 20px;
        padding: 0;
        width: 48px;
        height: 48px;
    }
    
    .fullscreen-icon,
    .fullscreen-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .contact-btn {
        top: 20px;
        left: 76px; /* 20 + 48 + 8 gap */
        padding: 0;
        width: 48px;
        height: 48px;
    }
    
    .contact-icon,
    .contact-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .info-btn {
        top: 20px;
        left: 132px; /* 76 + 48 + 8 gap */
        padding: 0;
        width: 48px;
        height: 48px;
    }
    
    .info-icon,
    .info-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .menu-icon {
        top: 20px;
        right: 20px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .clock {
        font-size: 18vw;
    }
    
    .date {
        font-size: 5vw;
    }
    
    .fullscreen-btn {
        top: 15px;
        left: 15px;
        padding: 0;
        width: 44px;
        height: 44px;
    }
    
    .fullscreen-icon,
    .fullscreen-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .contact-btn {
        top: 15px;
        left: 63px; /* 15 + 44 + 4 gap */
        padding: 0;
        width: 44px;
        height: 44px;
    }
    
    .contact-icon,
    .contact-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .info-btn {
        top: 15px;
        left: 111px; /* 63 + 44 + 4 gap */
        padding: 0;
        width: 44px;
        height: 44px;
    }
    
    .info-icon,
    .info-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .menu-icon {
        top: 15px;
        right: 15px;
        padding: 10px;
    }
    
    .contact-modal-content {
        margin: 15px;
        padding: 15px;
    }
    
    .contact-modal-header {
        padding: 20px 20px 15px 20px;
    }
    
    .contact-modal-body {
        padding: 15px;
    }
    
    .contact-modal-footer {
        padding: 15px 15px 15px 15px;
    }
}

/* Extra small devices (phones, 360px and down) */
@media (max-width: 360px) {
    .fullscreen-btn {
        top: 10px;
        left: 10px;
        padding: 0;
        width: 36px;
        height: 36px;
    }
    
    .fullscreen-btn .fullscreen-icon,
    .fullscreen-btn .fullscreen-icon svg,
    .fullscreen-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .contact-btn {
        top: 10px;
        left: 50px; /* 10 + 36 + 4 gap */
        padding: 0;
        width: 36px;
        height: 36px;
    }
    
    .contact-btn .contact-icon,
    .contact-btn .contact-icon svg,
    .contact-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .info-btn {
        top: 10px;
        left: 90px; /* 50 + 36 + 4 gap */
        padding: 0;
        width: 36px;
        height: 36px;
    }
    
    .info-btn .info-icon,
    .info-btn .info-icon svg,
    .info-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .menu-icon {
        top: 10px;
        right: 10px;
        padding: 8px;
    }
    
    .menu-icon .hamburger span {
        width: 18px;
    }
    
    .clock {
        font-size: 20vw;
    }
    
    .date {
        font-size: 6vw;
    }
}

/* Full screen background effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--bg-gradient-color) 0%, rgba(0, 0, 0, 0.98) 70%);
    animation: backgroundPulse 4s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes backgroundPulse {
    from {
        opacity: 0.2;
    }
    to {
        opacity: 0.4;
    }
}

/* Neon border effect */
.clock-container::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    border: 2px solid var(--neon-color);
    border-radius: 15px;
    box-shadow: 
        0 0 calc(10px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(20px * var(--neon-intensity)) var(--neon-color),
        inset 0 0 calc(10px * var(--neon-intensity)) var(--neon-color);
    animation: borderGlow 3s ease-in-out infinite alternate;
    z-index: -1;
    opacity: 0.8;
}

@keyframes borderGlow {
    from {
        box-shadow: 
            0 0 calc(10px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(20px * var(--neon-intensity)) var(--neon-color),
            inset 0 0 calc(10px * var(--neon-intensity)) var(--neon-color);
    }
    to {
        box-shadow: 
            0 0 calc(15px * var(--neon-intensity)) var(--neon-color),
            0 0 calc(30px * var(--neon-intensity)) var(--neon-color),
            inset 0 0 calc(15px * var(--neon-intensity)) var(--neon-color);
    }
}

/* Fullscreen Button Styles */
.fullscreen-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    background: rgba(var(--neon-rgb), 0.1);
    border: 1px solid var(--neon-color);
    box-shadow: 
        0 0 calc(10px * var(--neon-intensity)) var(--neon-color),
        inset 0 0 calc(5px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.3s ease;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    filter: drop-shadow(0 0 calc(5px * var(--neon-intensity)) var(--neon-color));
}

.fullscreen-icon svg {
    width: 24px;
    height: 24px;
}

/* Contact Button Styles */
.contact-btn {
    position: fixed;
    top: 30px;
    left: 100px;
    z-index: 1000;
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    background: rgba(var(--neon-rgb), 0.1);
    border: 1px solid var(--neon-color);
    box-shadow: 
        0 0 calc(10px * var(--neon-intensity)) var(--neon-color),
        inset 0 0 calc(5px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.3s ease;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-btn:hover {
    background: rgba(var(--neon-rgb), 0.2);
    box-shadow: 
        0 0 calc(15px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(25px * var(--neon-intensity)) var(--neon-color),
        inset 0 0 calc(10px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.3);
    transform: scale(1.05) translateZ(0);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: #ffffff;
    filter: drop-shadow(0 0 calc(5px * var(--neon-intensity)) var(--neon-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

/* Info Button Styles */
.info-btn {
    position: fixed;
    top: 30px;
    left: 170px; /* 30 + 54 + 16 gap + 54 + 16 gap */
    z-index: 1000;
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    background: rgba(var(--neon-rgb), 0.1);
    border: 1px solid var(--neon-color);
    box-shadow: 
        0 0 calc(10px * var(--neon-intensity)) var(--neon-color),
        inset 0 0 calc(5px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.3s ease;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-btn:hover {
    background: rgba(var(--neon-rgb), 0.2);
    box-shadow: 
        0 0 calc(15px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(25px * var(--neon-intensity)) var(--neon-color),
        inset 0 0 calc(10px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.3);
    transform: scale(1.05) translateZ(0);
}

.info-icon {
    width: 24px;
    height: 24px;
    color: #ffffff;
    filter: drop-shadow(0 0 calc(5px * var(--neon-intensity)) var(--neon-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.fullscreen-btn:hover {
    background: rgba(var(--neon-rgb), 0.2);
    box-shadow: 
        0 0 calc(15px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(25px * var(--neon-intensity)) var(--neon-color),
        inset 0 0 calc(10px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.3);
    transform: scale(1.05) translateZ(0);
}

.fullscreen-icon {
    width: 24px;
    height: 24px;
    position: relative;
    color: #ffffff;
    filter: drop-shadow(0 0 calc(5px * var(--neon-intensity)) var(--neon-color));
}

.fullscreen-icon svg {
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.expand-icon {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

.compress-icon {
    opacity: 0;
    transform: scale(0.8) translateZ(0);
}

/* Fullscreen active state */
.fullscreen-btn.fullscreen-active .expand-icon {
    opacity: 0;
    transform: scale(0.8) translateZ(0);
}

.fullscreen-btn.fullscreen-active .compress-icon {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

/* Menu Icon Styles */
.menu-icon {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    background: rgba(var(--neon-rgb), 0.1);
    border: 1px solid var(--neon-color);
    box-shadow: 
        0 0 calc(10px * var(--neon-intensity)) var(--neon-color),
        inset 0 0 calc(5px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.2);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.menu-icon:hover {
    background: rgba(var(--neon-rgb), 0.2);
    box-shadow: 
        0 0 calc(15px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(25px * var(--neon-intensity)) var(--neon-color),
        inset 0 0 calc(10px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.3);
    transform: scale(1.05);
}

.hamburger {
    display: flex;
    flex-direction: column;
    width: 25px;
    height: 20px;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 
        0 0 calc(5px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(10px * var(--neon-intensity)) var(--neon-color);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* X düyməsi animasiyası */
.menu-icon.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-icon.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-icon.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-icon:hover .hamburger span {
    box-shadow: 
        0 0 calc(8px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(15px * var(--neon-intensity)) var(--neon-color);
}

/* Helper Panel Styles */
.helper-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    border-left: 2px solid var(--neon-color);
    box-shadow: 
        calc(-5px * var(--neon-intensity)) 0 calc(20px * var(--neon-intensity)) var(--neon-color),
        inset calc(5px * var(--neon-intensity)) 0 calc(20px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.1);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    scroll-behavior: smooth;
}

.helper-panel.active {
    transform: translateX(0);
}

/* Hide fullscreen and contact buttons when helper panel is active */
body.helper-panel-open .fullscreen-btn,
body.helper-panel-open .contact-btn {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8) translateY(-10px);
}

body.helper-panel-open .info-btn {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8) translateY(-10px);
}

/* Helper Panel Scrollbar Styling */
.helper-panel::-webkit-scrollbar {
    width: 8px;
}

.helper-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(0, 255, 170, 0.2);
}

.helper-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-color), rgba(0, 255, 170, 0.5));
    border-radius: 4px;
    box-shadow: 0 0 10px var(--neon-color);
}

.helper-panel::-webkit-scrollbar-thumb:hover {
    background: var(--neon-color);
    box-shadow: 0 0 15px var(--neon-color);
}

.panel-header {
    padding: 30px 20px 20px;
    border-bottom: 1px solid #00ffaa;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

.panel-header h3 {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 
        0 0 calc(5px * var(--neon-intensity)) var(--neon-color),
        0 0 calc(10px * var(--neon-intensity)) var(--neon-color);
    margin: 0;
}



.panel-content {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1800px;
    margin: 0 auto;
}

.panel-content p {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 0 0 5px #00ffaa;
    opacity: 0.8;
}

/* Language & Color Combined Section */
.language-color-wrapper {
    grid-column: 1 / -1; /* Full width on all screens */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 0;
}

/* Language Section Styles */
.language-section {
    margin-bottom: 0;
}

.language-section h4 {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 0 8px #00ffaa;
    margin: 0 0 15px 0;
    text-align: center;
}

.language-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.lang-btn {
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid #00ffaa;
    border-radius: 8px;
    padding: 10px 6px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    font-family: 'Rajdhani', sans-serif;
}

.lang-btn:hover {
    background: rgba(0, 255, 170, 0.2);
    box-shadow: 
        0 0 15px #00ffaa,
        inset 0 0 10px rgba(0, 255, 170, 0.3);
    transform: scale(1.05) translateZ(0);
}

.lang-btn:hover .flag {
    border-color: #00ffaa;
    box-shadow: 
        0 0 10px rgba(0, 255, 170, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.4);
    transform: scale(1.1) translateZ(0);
}

.lang-btn.active {
    background: rgba(0, 255, 170, 0.3);
    box-shadow: 
        0 0 20px #00ffaa,
        inset 0 0 15px rgba(0, 255, 170, 0.4);
    border-color: #00ffff;
}

.lang-btn .flag {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(0, 255, 170, 0.3);
    box-shadow: 
        0 0 5px rgba(0, 255, 170, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.lang-btn .lang-name {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 0 5px #00ffaa;
    text-align: center;
    line-height: 1.2;
}

.lang-btn.active .flag {
    border-color: #00ffff;
    box-shadow: 
        0 0 15px rgba(0, 255, 170, 0.8),
        0 6px 12px rgba(0, 0, 0, 0.5);
    transform: scale(1.15) translateZ(0);
}

.lang-btn.active .lang-name {
    color: #00ffff;
    text-shadow: 0 0 8px #00ffaa;
    font-weight: 600;
}

/* Control Sections */
.control-section {
    border: 1px solid rgba(0, 255, 170, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.control-section:hover {
    border-color: rgba(0, 255, 170, 0.6);
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 170, 0.2);
}

.control-section:first-child {
    border-top: 1px solid rgba(0, 255, 170, 0.3);
    padding-top: 25px;
}

.control-section h4 {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 0 10px #00ffaa;
    margin: 0 0 20px 0;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 170, 0.2);
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 0 5px #00ffaa;
    margin-bottom: 8px;
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.color-btn {
    width: 35px;
    height: 35px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.color-btn:hover {
    transform: scale(1.1) translateZ(0);
    box-shadow: 0 0 15px currentColor;
}

.color-btn.active {
    border-color: #ffffff;
    transform: scale(1.15) translateZ(0);
    box-shadow: 
        0 0 20px currentColor,
        0 0 40px currentColor;
}

/* Sliders */
.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    transition: all 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ffaa;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px #00ffaa;
    transition: all 0.15s ease;
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ffaa;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px #00ffaa;
}

.slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 15px #00ffaa;
}

/* Custom Select */
.custom-select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid #00ffaa;
    border-radius: 6px;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.15s ease;
}

.custom-select:hover,
.custom-select:focus {
    background: rgba(0, 255, 170, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

.custom-select option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 8px;
}

/* Checkbox styling */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #00ffaa;
    vertical-align: middle;
}

/* Value displays */
#intensityValue,
#sharpnessValue {
    color: #00ffaa;
    font-weight: 600;
    margin-left: 10px;
    text-shadow: 0 0 5px #00ffaa;
}

/* Timezone info */
.timezone-info {
    margin-top: 8px;
}

.timezone-info small {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Rajdhani', sans-serif;
    text-shadow: 0 0 3px #00ffaa;
}

/* Transition Controls */
.transition-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.transition-btn {
    background: rgba(var(--neon-rgb), 0.1);
    border: 1px solid rgba(var(--neon-rgb), 0.3);
    border-radius: 8px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    font-family: 'Rajdhani', sans-serif;
}

.transition-btn:hover {
    background: rgba(var(--neon-rgb), 0.2);
    border-color: rgba(var(--neon-rgb), 0.5);
    box-shadow: 
        0 0 calc(10px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.3),
        inset 0 0 calc(5px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.2);
    transform: scale(1.05) translateZ(0);
}

.transition-btn.active {
    background: rgba(var(--neon-rgb), 0.3);
    border-color: var(--neon-color);
    box-shadow: 
        0 0 calc(15px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.5),
        inset 0 0 calc(10px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.3);
    transform: scale(1.1) translateZ(0);
}

.transition-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 calc(3px * var(--neon-intensity)) var(--neon-color));
}

.transition-name {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    text-align: center;
    line-height: 1.2;
}

.transition-btn.active .transition-name {
    color: var(--neon-color);
    text-shadow: 0 0 calc(5px * var(--neon-intensity)) var(--neon-color);
    font-weight: 600;
}

/* Speed value display */
#speedValue {
    color: var(--neon-color);
    font-weight: 600;
    margin-left: 10px;
    text-shadow: 0 0 calc(5px * var(--neon-intensity)) var(--neon-color);
}

/* Color Picker Section */
.color-picker-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(var(--neon-rgb), 0.3);
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.color-picker {
    width: 50px;
    height: 35px;
    border: 2px solid rgba(var(--neon-rgb), 0.5);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 6px;
    overflow: hidden;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
    box-shadow: 
        0 0 calc(8px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.4),
        inset 0 0 calc(5px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.2);
}

.color-picker::-moz-color-swatch {
    border: none;
    border-radius: 6px;
    box-shadow: 
        0 0 calc(8px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.4),
        inset 0 0 calc(5px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.2);
}

.color-picker:hover {
    border-color: var(--neon-color);
    box-shadow: 
        0 0 calc(15px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.6),
        inset 0 0 calc(8px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.3);
    transform: scale(1.05) translateZ(0);
}

.color-picker:focus {
    border-color: var(--neon-color);
    box-shadow: 
        0 0 calc(20px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.8),
        inset 0 0 calc(10px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.4);
    transform: scale(1.1) translateZ(0);
}

.color-picker-btn {
    background: rgba(var(--neon-rgb), 0.15);
    border: 1px solid rgba(var(--neon-rgb), 0.4);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    outline: none;
}

.color-picker-btn:hover {
    background: rgba(var(--neon-rgb), 0.25);
    border-color: rgba(var(--neon-rgb), 0.6);
    box-shadow: 
        0 0 calc(12px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.4),
        inset 0 0 calc(6px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.2);
    transform: scale(1.05) translateZ(0);
}

.color-picker-btn:active {
    background: rgba(var(--neon-rgb), 0.35);
    border-color: var(--neon-color);
    box-shadow: 
        0 0 calc(15px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.6),
        inset 0 0 calc(10px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.3);
    transform: scale(0.98) translateZ(0);
}

.picker-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 calc(3px * var(--neon-intensity)) var(--neon-color));
}

.picker-text {
    color: #ffffff;
    font-size: 0.9rem;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    white-space: nowrap;
}

#customColorLabel {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 5px;
    display: block;
}

/* Manual Timezone Styles */
.manual-timezone-wrapper {
    margin-top: 8px;
}

.timezone-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.timezone-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
    text-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
    font-family: 'Rajdhani', sans-serif;
}

.timezone-offset-select,
.timezone-minutes-select {
    background: rgba(var(--neon-rgb), 0.1);
    border: 1px solid rgba(var(--neon-rgb), 0.4);
    border-radius: 6px;
    padding: 8px 12px;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.timezone-offset-select:hover,
.timezone-minutes-select:hover {
    background: rgba(var(--neon-rgb), 0.2);
    border-color: rgba(var(--neon-rgb), 0.6);
    box-shadow: 
        0 0 calc(8px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.3),
        inset 0 0 calc(5px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.2);
    transform: scale(1.02) translateZ(0);
}

.timezone-offset-select:focus,
.timezone-minutes-select:focus {
    background: rgba(var(--neon-rgb), 0.25);
    border-color: var(--neon-color);
    box-shadow: 
        0 0 calc(12px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.5),
        inset 0 0 calc(8px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.3);
    transform: scale(1.05) translateZ(0);
}

.apply-manual-timezone-btn {
    background: rgba(var(--neon-rgb), 0.15);
    border: 1px solid rgba(var(--neon-rgb), 0.4);
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    outline: none;
    width: 100%;
}

.apply-manual-timezone-btn:hover {
    background: rgba(var(--neon-rgb), 0.25);
    border-color: rgba(var(--neon-rgb), 0.6);
    box-shadow: 
        0 0 calc(12px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.4),
        inset 0 0 calc(6px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.2);
    transform: scale(1.02) translateZ(0);
}

.apply-manual-timezone-btn:active {
    background: rgba(var(--neon-rgb), 0.35);
    border-color: var(--neon-color);
    box-shadow: 
        0 0 calc(15px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.6),
        inset 0 0 calc(10px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.3);
    transform: scale(0.98) translateZ(0);
}

.timezone-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 calc(3px * var(--neon-intensity)) var(--neon-color));
}

.timezone-text {
    color: #ffffff;
    font-size: 0.9rem;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    white-space: nowrap;
}

.manual-timezone-info {
    margin-top: 8px;
}

.manual-timezone-info small {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Rajdhani', sans-serif;
    text-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
    font-weight: 500;
}

#manualTimezoneLabel {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 8px;
    display: block;
}

/* Professional Weather Display */
.weather-display {
    position: fixed;
    top: 20px;
    right: 120px; /* More space from menu button */
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(var(--neon-rgb), 0.1);
    border: 1px solid var(--neon-color);
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 0 calc(10px * var(--neon-intensity)) var(--neon-color);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 50; /* Lower than timer (1000) but higher than other elements */
}

.weather-display.active {
    opacity: 1;
    visibility: visible;
}

.weather-icon {
    font-size: 32px;
    animation: weatherFloat 3s ease-in-out infinite;
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.weather-temp {
    font-size: 22px;
    font-weight: bold;
    color: var(--neon-color);
    text-shadow: 0 0 calc(6px * var(--neon-intensity)) var(--neon-color);
}

.weather-description {
    font-size: 13px;
    color: rgba(var(--neon-rgb), 0.8);
    font-weight: 300;
}

.weather-location {
    font-size: 12px;
    color: rgba(var(--neon-rgb), 0.6);
    font-weight: 300;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.weather-location:hover {
    color: var(--neon-color);
    background: rgba(var(--neon-rgb), 0.1);
    text-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
    transform: scale(1.05);
}

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

/* System Information Panel - Under Fullscreen Button */
.system-info-panel {
    position: fixed;
    top: 120px; /* More space under fullscreen button */
    left: 20px; /* Aligned with fullscreen button */
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(var(--neon-rgb), 0.08);
    border: 1px solid rgba(var(--neon-rgb), 0.3);
    border-radius: 8px;
    padding: 12px;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 40; /* Below weather but above other elements */
}

.system-info-panel.active {
    opacity: 1;
    visibility: visible;
}

.system-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.system-icon {
    font-size: 14px;
}

.system-value {
    color: var(--neon-color);
    font-weight: 500;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
}

.system-status {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: statusPulse 2s ease-in-out infinite;
    min-width: 50px;
    text-align: center;
}

.system-status.online {
    color: #00ff88;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) #00ff88;
}

.system-status.offline {
    color: #ff4444;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) #ff4444;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* World Clocks Panel - Bottom Left */
.world-clocks-panel {
    position: fixed;
    bottom: 50px; /* Above ticker */
    left: 20px;
    display: flex;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 30;
}

.world-clocks-panel.active {
    opacity: 1;
    visibility: visible;
}

.world-clock {
    background: rgba(var(--neon-rgb), 0.08);
    border: 1px solid rgba(var(--neon-rgb), 0.3);
    border-radius: 8px;
    padding: 9px 13px;
    backdrop-filter: blur(8px);
    text-align: center;
    min-width: 72px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.world-clock:hover {
    border-color: var(--neon-color);
    background: rgba(var(--neon-rgb), 0.12);
    transform: translateY(-2px);
}

.world-city {
    font-size: 12px;
    color: rgba(var(--neon-rgb), 0.7);
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1;
    margin-top: 0;
}

.world-time {
    font-size: 16px;
    color: var(--neon-color);
    font-weight: 600;
    text-shadow: 0 0 calc(4px * var(--neon-intensity)) var(--neon-color);
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Add Clock Button */
.world-clock.add-clock {
    background: rgba(var(--neon-rgb), 0.05);
    border: 2px dashed rgba(var(--neon-rgb), 0.4);
    min-width: 72px;
    padding: 9px 13px;
}

.world-clock.add-clock:hover {
    background: rgba(var(--neon-rgb), 0.15);
    border-color: var(--neon-color);
    box-shadow: 0 0 calc(8px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.3);
}

.world-clock.add-clock .world-city {
    font-size: 28px;
    font-weight: 300;
    color: rgba(var(--neon-rgb), 0.6);
    margin-bottom: 2px;
    line-height: 1;
    margin-top: 0;
}

.world-clock.add-clock .world-time {
    font-size: 11px;
    font-weight: 400;
    color: rgba(var(--neon-rgb), 0.5);
    text-shadow: none;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Effects Toggle Button (Hidden) */
.effects-toggle-btn {
    display: none;
}

/* Custom Alert Modal - SweetAlert Style */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-alert-modal {
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid var(--neon-color);
    border-radius: 20px;
    padding: 40px 35px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 0 30px rgba(var(--neon-rgb), 0.5),
        inset 0 0 20px rgba(var(--neon-rgb), 0.1);
    transform: scale(0.7);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-alert-overlay.active .custom-alert-modal {
    transform: scale(1);
}

.custom-alert-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: alertIconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px currentColor);
}

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

.custom-alert-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--neon-color);
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--neon-color);
    font-family: 'Rajdhani', sans-serif;
}

.custom-alert-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
}

.custom-alert-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.custom-alert-btn {
    padding: 12px 30px;
    border: 2px solid;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 120px;
}

.custom-alert-btn.confirm {
    background: var(--neon-color);
    border-color: var(--neon-color);
    color: #000;
    box-shadow: 0 0 15px rgba(var(--neon-rgb), 0.5);
}

.custom-alert-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(var(--neon-rgb), 0.8);
}

.custom-alert-btn.cancel {
    background: transparent;
    border-color: rgba(var(--neon-rgb), 0.5);
    color: var(--neon-color);
}

.custom-alert-btn.cancel:hover {
    background: rgba(var(--neon-rgb), 0.1);
    border-color: var(--neon-color);
    box-shadow: 0 0 15px rgba(var(--neon-rgb), 0.3);
}

.custom-alert-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Effects Panel */
.effects-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 280px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--neon-color);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: all 0.3s ease;
    z-index: 99;
    overflow: hidden;
}

.effects-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.effects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(var(--neon-rgb), 0.3);
    background: rgba(var(--neon-rgb), 0.1);
}

.effects-header h4 {
    color: var(--neon-color);
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.effects-close-btn {
    background: none;
    border: none;
    color: var(--neon-color);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.effects-close-btn:hover {
    background: rgba(var(--neon-rgb), 0.2);
    transform: scale(1.1);
}

.effects-options {
    padding: 15px;
}

.effect-option {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(var(--neon-rgb), 0.05);
    border: 1px solid rgba(var(--neon-rgb), 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.effect-option:hover {
    background: rgba(var(--neon-rgb), 0.1);
    border-color: var(--neon-color);
    transform: translateX(5px);
}

.effect-option.active {
    background: rgba(var(--neon-rgb), 0.15);
    border-color: var(--neon-color);
    box-shadow: 0 0 15px rgba(var(--neon-rgb), 0.3);
}

.effect-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.effect-info {
    flex: 1;
}

.effect-info h5 {
    color: var(--neon-color);
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.effect-info p {
    color: rgba(var(--neon-rgb), 0.7);
    margin: 0;
    font-size: 12px;
}

.effect-status {
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.effect-status.active {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.4);
}

/* Effect Select Container */
.effect-select-container {
    margin-top: 10px;
    padding-left: 25px;
    display: none;
    transition: all 0.3s ease;
}

.effect-select-container.show {
    display: block !important;
    animation: slideDown 0.3s ease forwards;
}

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

.effect-select-container label {
    display: block;
    color: rgba(var(--neon-rgb), 0.8);
    font-size: 12px;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Effect Select Input */
.effect-select {
    width: 100%;
    padding: 8px 10px;
    background: rgba(var(--neon-rgb), 0.1);
    border: 1px solid rgba(var(--neon-rgb), 0.3);
    border-radius: 6px;
    color: var(--neon-color);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.effect-select:hover {
    border-color: var(--neon-color);
    background: rgba(var(--neon-rgb), 0.15);
}

.effect-select:focus {
    outline: none;
    border-color: var(--neon-color);
    box-shadow: 0 0 10px rgba(var(--neon-rgb), 0.3);
}

.effect-select option {
    background: rgba(0, 0, 0, 0.9);
    color: var(--neon-color);
    padding: 8px;
}

/* Graphics Quality Settings */
.graphics-select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(var(--neon-rgb), 0.1);
    border: 2px solid rgba(var(--neon-rgb), 0.3);
    border-radius: 8px;
    color: var(--neon-color);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.graphics-select:hover {
    border-color: var(--neon-color);
    background: rgba(var(--neon-rgb), 0.15);
    box-shadow: 0 0 15px rgba(var(--neon-rgb), 0.2);
}

.graphics-select:focus {
    outline: none;
    border-color: var(--neon-color);
    box-shadow: 0 0 20px rgba(var(--neon-rgb), 0.4);
}

.graphics-select option {
    background: rgba(0, 0, 0, 0.95);
    color: var(--neon-color);
    padding: 10px;
    font-weight: 500;
}

.graphics-info {
    margin-top: 12px;
    padding: 12px;
    background: rgba(var(--neon-rgb), 0.05);
    border-left: 3px solid var(--neon-color);
    border-radius: 6px;
    backdrop-filter: blur(5px);
}

.graphics-info small {
    color: rgba(var(--neon-rgb), 0.8);
    font-size: 11px;
    line-height: 1.5;
    display: block;
}

.graphics-info strong {
    color: var(--neon-color);
    font-weight: 600;
}

/* FPS Mode Specific Styles */
/* Ultra-low mode: Disable ONLY heavy particle effects, keep UI animations */
body[data-fps-mode="ultra-low"].no-animations .particle,
body[data-fps-mode="ultra-low"].no-animations .matrix-rain,
body[data-fps-mode="ultra-low"].no-animations .firework,
body[data-fps-mode="ultra-low"].no-animations .aurora,
body[data-fps-mode="ultra-low"].no-animations #particles-container,
body[data-fps-mode="ultra-low"].no-animations #particles-container *,
body[data-fps-mode="ultra-low"].no-animations .particles-js,
body[data-fps-mode="ultra-low"].no-animations #particleCanvas {
    display: none !important;
    animation: none !important;
    transition: none !important;
}

/* Low mode: Keep animations but reduce some effects */
body[data-fps-mode="low"] {
    /* Animations stay at normal speed, just fewer particles and effects */
}

/* Medium mode: Normal (default) */
body[data-fps-mode="medium"] {
    /* Normal speeds - no changes */
}

/* High mode: Full quality, more particles, but same animation speed */
body[data-fps-mode="high"] {
    /* More particles and effects, but animation speed stays normal */
}

/* Performance optimization classes */
/* Ensure modals and UI panels ALWAYS have backdrop blur for readability */
.helper-panel,
.city-modal-content,
.city-modal-overlay,
.contact-modal-content,
.modal-content,
.modal-overlay,
#helperPanel,
#cityModal .city-modal-content,
#contactModal .contact-modal-content {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(10, 10, 20, 0.95) !important;
}

/* Overlay backgrounds for modals */
.city-modal-overlay,
.contact-modal-overlay,
.modal-overlay {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Disable blur ONLY on heavy particle effect elements */
body.no-blur .particle,
body.no-blur .matrix-rain,
body.no-blur .firework,
body.no-blur .aurora,
body.no-blur #particles-container:not(.helper-panel):not([class*="modal"]),
body.no-blur #particles-container *:not(.helper-panel):not([class*="modal"]) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Disable blur ONLY on heavy elements, keep UI blur */
body.no-blur .particle,
body.no-blur .matrix-rain,
body.no-blur .firework,
body.no-blur .aurora,
body.no-blur #particles-container,
body.no-blur #particles-container * {
    filter: none !important;
    -webkit-filter: none !important;
}

body.no-shadows * {
    box-shadow: none !important;
    text-shadow: none !important;
}

/* no-animations class: ONLY affects particle effects, NOT UI */
body.no-animations .particle,
body.no-animations .matrix-rain,
body.no-animations .firework,
body.no-animations .aurora,
body.no-animations #particles-container,
body.no-animations #particles-container *,
body.no-animations .particles-js {
    animation: none !important;
    transition: none !important;
    display: none !important;
}

/* Ultra-low mode: Hide particle canvas completely */
body[data-fps-mode="ultra-low"] #particleCanvas {
    display: none !important;
}

/* Particle Effects */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-color);
    border-radius: 50%;
    pointer-events: none;
    animation: twinkle 3s infinite ease-in-out;
    box-shadow: 0 0 4px var(--neon-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Matrix Effect */
.matrix-column {
    position: absolute;
    top: -100%;
    width: 20px;
    animation: matrixRain 6s linear infinite;
}

.matrix-char {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    text-shadow: 0 0 5px #00ff00;
    margin: 2px 0;
    animation: matrixGlow 2s ease-in-out infinite;
}

@keyframes matrixRain {
    0% { top: -100%; }
    100% { top: 100%; }
}

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

/* Fireworks Effect */
.firework {
    position: absolute;
    width: 0;
    height: 0;
}

.firework-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: fireworkExplode 3s ease-out forwards;
    transform-origin: center;
}

.firework-particle:nth-child(odd) {
    background: #4ecdc4;
}

.firework-particle:nth-child(3n) {
    background: #45b7d1;
}

.firework-particle:nth-child(4n) {
    background: #96ceb4;
}

@keyframes fireworkExplode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(calc(cos(var(--angle)) * 100px), calc(sin(var(--angle)) * 100px)) scale(0);
        opacity: 0;
    }
}

/* Aurora Effect */
.aurora-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(0, 255, 255, 0.1) 25%,
        rgba(0, 255, 255, 0.3) 50%,
        rgba(0, 255, 255, 0.1) 75%,
        transparent 100%
    );
    animation: auroraWave 8s ease-in-out infinite;
    animation-delay: var(--wave-delay);
    opacity: 0.6;
}

.aurora-wave:nth-child(2) {
    background: linear-gradient(
        -45deg,
        transparent 0%,
        rgba(255, 0, 255, 0.1) 25%,
        rgba(255, 0, 255, 0.3) 50%,
        rgba(255, 0, 255, 0.1) 75%,
        transparent 100%
    );
}

.aurora-wave:nth-child(3) {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 255, 0, 0.1) 25%,
        rgba(0, 255, 0, 0.3) 50%,
        rgba(0, 255, 0, 0.1) 75%,
        transparent 100%
    );
}

.aurora-wave:nth-child(4) {
    background: linear-gradient(
        0deg,
        transparent 0%,
        rgba(255, 255, 0, 0.1) 25%,
        rgba(255, 255, 0, 0.3) 50%,
        rgba(255, 255, 0, 0.1) 75%,
        transparent 100%
    );
}

.aurora-wave:nth-child(5) {
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 165, 0, 0.1) 25%,
        rgba(255, 165, 0, 0.3) 50%,
        rgba(255, 165, 0, 0.1) 75%,
        transparent 100%
    );
}

@keyframes auroraWave {
    0%, 100% {
        transform: translateX(-100%) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateX(100%) rotate(180deg);
        opacity: 0.8;
    }
}

.particle:nth-child(odd) {
    animation-delay: 1.5s;
    animation-duration: 4s;
}

.particle:nth-child(3n) {
    animation-delay: 0.5s;
    animation-duration: 2.5s;
}

.particle:nth-child(4n) {
    animation-delay: 2s;
    animation-duration: 3.5s;
}

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

/* World Clock Modal */
.world-clock-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.world-clock-modal.hidden {
    display: none;
}

.world-clock-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.world-clock-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(var(--neon-rgb), 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
    border: 2px solid rgba(var(--neon-rgb), 0.4);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 calc(30px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.3);
}

.world-clock-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(var(--neon-rgb), 0.3);
}

.world-clock-modal-header h3 {
    color: var(--neon-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 calc(8px * var(--neon-intensity)) var(--neon-color);
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.world-clock-close-btn {
    background: none;
    border: none;
    color: var(--neon-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.world-clock-close-btn:hover {
    background: rgba(var(--neon-rgb), 0.2);
    transform: scale(1.1);
}

.world-clock-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--neon-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(var(--neon-rgb), 0.1);
    border: 1px solid rgba(var(--neon-rgb), 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--neon-color);
    box-shadow: 0 0 calc(10px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.3);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group small {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

.world-clock-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.world-clock-modal-footer-right {
    display: flex;
    gap: 15px;
}

.world-clock-modal-footer .world-clock-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 100px;
}

.world-clock-modal-footer .world-clock-btn.primary {
    background: var(--neon-color);
    color: #000;
}

.world-clock-modal-footer .world-clock-btn.primary:hover {
    background: rgba(var(--neon-rgb), 0.8);
    transform: translateY(-2px);
    box-shadow: 0 0 calc(15px * var(--neon-intensity)) var(--neon-color);
}

.world-clock-modal-footer .world-clock-btn.secondary {
    background: rgba(var(--neon-rgb), 0.2);
    color: var(--neon-color);
    border: 1px solid rgba(var(--neon-rgb), 0.4);
}

.world-clock-modal-footer .world-clock-btn.secondary:hover {
    background: rgba(var(--neon-rgb), 0.3);
    border-color: var(--neon-color);
}

.world-clock-modal-footer .world-clock-btn.danger {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

.world-clock-modal-footer .world-clock-btn.danger:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
}

/* Live Data Ticker - Bottom */
.live-data-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: rgba(var(--neon-rgb), 0.05);
    border-top: 1px solid rgba(var(--neon-rgb), 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 20;
}

.live-data-ticker.active {
    opacity: 1;
    visibility: visible;
}

.ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    animation: tickerScroll 60s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    margin-right: 50px;
    font-size: 12px;
    color: rgba(var(--neon-rgb), 0.8);
    font-weight: 300;
}

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Particle Background */
.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.particle-background.active {
    opacity: 1;
    visibility: visible;
}

#particleCanvas {
    width: 100%;
    height: 100%;
}

/* Hidden Timer Panel */
.timer-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(var(--neon-rgb), 0.15);
    border: 2px solid var(--neon-color);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 calc(20px * var(--neon-intensity)) var(--neon-color);
    text-align: center;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.timer-panel.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.8);
}

.timer-content h3 {
    color: var(--neon-color);
    margin-bottom: 20px;
    text-shadow: 0 0 calc(6px * var(--neon-intensity)) var(--neon-color);
}

.timer-display {
    font-size: 48px;
    color: var(--neon-color);
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 calc(10px * var(--neon-intensity)) var(--neon-color);
    font-family: 'Roboto Mono', monospace;
}

.timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.timer-btn {
    background: rgba(var(--neon-rgb), 0.2);
    border: 1px solid var(--neon-color);
    color: var(--neon-color);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.timer-btn:hover {
    background: rgba(var(--neon-rgb), 0.3);
    box-shadow: 0 0 calc(8px * var(--neon-intensity)) var(--neon-color);
}

.timer-btn:active {
    transform: scale(0.95);
}

/* Responsive Design for All Panels */
@media screen and (max-width: 768px) {
    .weather-display {
        top: 10px;
        right: 80px; /* More space from menu button on mobile */
        padding: 10px 15px;
        gap: 10px;
    }
    
    .weather-icon {
        font-size: 28px;
    }
    
    .weather-temp {
        font-size: 20px;
    }
    
    .weather-description {
        font-size: 12px;
    }
    
    .weather-location {
        font-size: 10px;
    }
    
    .system-info-panel {
        top: 80px; /* More space under fullscreen button on mobile */
        left: 10px; /* Aligned with fullscreen button on mobile */
        padding: 8px;
        gap: 6px;
    }
    
    .system-item {
        font-size: 10px;
    }
    
    .system-icon {
        font-size: 12px;
    }
    
    .world-clocks-panel {
        bottom: 40px;
        left: 10px;
        gap: 10px;
    }
    
    .world-clock {
        padding: 8px 10px;
        min-width: 60px;
    }
    
    .world-city {
        font-size: 9px;
    }
    
    .world-time {
        font-size: 12px;
    }
    
    .live-data-ticker {
        height: 25px;
    }
    
    .ticker-item {
        font-size: 10px;
        margin-right: 30px;
    }
}

/* City Selection Modal */
.city-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.city-modal.active {
    opacity: 1;
    visibility: visible;
}

.city-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.city-modal-content {
    position: relative;
    background: rgba(var(--neon-rgb), 0.05);
    border: 1px solid var(--neon-color);
    border-radius: 15px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 calc(20px * var(--neon-intensity)) var(--neon-color);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.city-modal.active .city-modal-content {
    transform: scale(1);
}

.city-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(var(--neon-rgb), 0.3);
    padding-bottom: 15px;
}

.city-modal-header h3 {
    color: var(--neon-color);
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 0 calc(5px * var(--neon-intensity)) var(--neon-color);
}

.city-close-btn {
    background: none;
    border: 1px solid rgba(var(--neon-rgb), 0.5);
    color: var(--neon-color);
    font-size: 18px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.city-close-btn:hover {
    background: rgba(var(--neon-rgb), 0.2);
    box-shadow: 0 0 calc(8px * var(--neon-intensity)) var(--neon-color);
    transform: scale(1.1);
}

.city-search-container {
    position: relative;
    margin-bottom: 25px;
}

.city-search-container input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    background: rgba(var(--neon-rgb), 0.1);
    border: 1px solid rgba(var(--neon-rgb), 0.3);
    border-radius: 8px;
    color: var(--neon-color);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.city-search-container input:focus {
    border-color: var(--neon-color);
    box-shadow: 0 0 calc(5px * var(--neon-intensity)) var(--neon-color);
}

.city-search-container input::placeholder {
    color: rgba(var(--neon-rgb), 0.6);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgba(var(--neon-rgb), 0.7);
    pointer-events: none;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(var(--neon-rgb), 0.5);
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.search-results-dropdown.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
}

.search-results-dropdown .city-list {
    padding: 5px;
}

.search-results-dropdown .search-loading,
.search-results-dropdown .search-error {
    padding: 20px;
    text-align: center;
    color: rgba(var(--neon-rgb), 0.7);
    font-size: 14px;
}

.search-results-dropdown .search-error {
    color: #ff5555;
}

.search-results-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: rgba(var(--neon-rgb), 0.05);
    border-radius: 4px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: rgba(var(--neon-rgb), 0.3);
    border-radius: 4px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--neon-rgb), 0.5);
}

.city-category {
    margin-bottom: 25px;
}

.city-category h4 {
    color: var(--neon-color);
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.city-item {
    background: rgba(var(--neon-rgb), 0.1);
    border: 1px solid rgba(var(--neon-rgb), 0.3);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(var(--neon-rgb), 0.9);
    font-size: 14px;
    font-weight: 500;
}

.city-item:hover {
    background: rgba(var(--neon-rgb), 0.2);
    border-color: var(--neon-color);
    color: var(--neon-color);
    box-shadow: 0 0 calc(8px * var(--neon-intensity)) var(--neon-color);
    transform: translateY(-2px);
}

.city-item.selected {
    background: rgba(var(--neon-rgb), 0.3);
    border-color: var(--neon-color);
    color: var(--neon-color);
    box-shadow: 0 0 calc(10px * var(--neon-intensity)) var(--neon-color);
}

.city-list {
    max-height: 200px;
    overflow-y: auto;
}

.city-list-item {
    background: rgba(var(--neon-rgb), 0.08);
    border: 1px solid rgba(var(--neon-rgb), 0.2);
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(var(--neon-rgb), 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.city-list-item:hover {
    background: rgba(var(--neon-rgb), 0.15);
    border-color: var(--neon-color);
    color: var(--neon-color);
    transform: translateX(5px);
}

.city-list-item .city-info {
    flex: 1;
}

.city-list-item .city-name {
    font-weight: 500;
    font-size: 14px;
}

.city-list-item .city-country {
    font-size: 12px;
    opacity: 0.7;
}

.current-location-btn-container {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid rgba(var(--neon-rgb), 0.3);
    padding-top: 20px;
}

.current-location-btn {
    background: rgba(var(--neon-rgb), 0.1);
    border: 1px solid var(--neon-color);
    color: var(--neon-color);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}

.current-location-btn:hover {
    background: rgba(var(--neon-rgb), 0.2);
    box-shadow: 0 0 calc(10px * var(--neon-intensity)) var(--neon-color);
    transform: scale(1.05);
}

/* Mobile Responsive for City Modal */
@media screen and (max-width: 768px) {
    .city-modal-content {
        max-width: 95%;
        padding: 20px;
        max-height: 80vh;
    }
    
    .city-modal-header h3 {
        font-size: 18px;
    }
    
    .city-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .city-item {
        padding: 10px 6px;
        font-size: 12px;
    }
    
    .city-search-container input {
        font-size: 14px;
        padding: 10px 40px 10px 12px;
    }
}

/* Contact Modal Styles */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.contact-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.contact-modal-content {
    background: rgba(var(--neon-rgb), 0.05);
    border: 1px solid var(--neon-color);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 calc(20px * var(--neon-intensity)) var(--neon-color);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.contact-modal.show .contact-modal-content {
    transform: scale(1);
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 20px 25px;
    border-bottom: 1px solid rgba(var(--neon-rgb), 0.3);
}

.contact-modal-header h3 {
    color: var(--neon-color);
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-shadow: 0 0 calc(8px * var(--neon-intensity)) var(--neon-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.contact-modal-close {
    background: none;
    border: 1px solid rgba(var(--neon-rgb), 0.5);
    color: var(--neon-color);
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-modal-close:hover {
    background: rgba(var(--neon-rgb), 0.2);
    box-shadow: 0 0 calc(8px * var(--neon-intensity)) var(--neon-color);
    transform: scale(1.1);
}

.contact-modal-body {
    padding: 25px;
}

.contact-section {
    margin-bottom: 30px;
}

.contact-section h4 {
    color: var(--neon-color);
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    border-bottom: 1px solid rgba(var(--neon-rgb), 0.2);
    padding-bottom: 8px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(var(--neon-rgb), 0.05);
    border-radius: 10px;
    border: 1px solid rgba(var(--neon-rgb), 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(var(--neon-rgb), 0.1);
    border-color: rgba(var(--neon-rgb), 0.3);
    transform: translateX(5px);
}

.contact-item i {
    color: var(--neon-color);
    font-size: 18px;
    width: 20px;
    text-align: center;
    margin-top: 2px;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
}

.contact-icon-svg {
    width: 20px;
    height: 20px;
    color: var(--neon-color);
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-icon-svg svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 calc(3px * var(--neon-intensity)) var(--neon-color));
}

.contact-info {
    flex: 1;
}

.contact-info strong {
    display: block;
    color: var(--neon-color);
    margin-bottom: 5px;
    font-size: 14px;
    text-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
}

.contact-info a,
.contact-info span {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--neon-color);
    text-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
}

.contact-modal-footer {
    padding: 20px 25px 25px 25px;
    border-top: 1px solid rgba(var(--neon-rgb), 0.3);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== SYSTEM INFO MODAL ===== */
.system-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.system-info-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.system-info-modal-content {
    background: rgba(var(--neon-rgb), 0.05);
    border: 1px solid var(--neon-color);
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 calc(20px * var(--neon-intensity)) var(--neon-color);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.system-info-modal.show .system-info-modal-content {
    transform: scale(1);
}

.system-info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 20px 25px;
    border-bottom: 1px solid rgba(var(--neon-rgb), 0.3);
    position: sticky;
    top: 0;
    background: rgba(var(--neon-rgb), 0.08);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.system-info-modal-header h3 {
    color: var(--neon-color);
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-shadow: 0 0 calc(5px * var(--neon-intensity)) var(--neon-color);
}

.system-info-modal-close {
    background: none;
    border: 1px solid rgba(var(--neon-rgb), 0.5);
    color: var(--neon-color);
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.system-info-modal-close:hover {
    background: rgba(var(--neon-rgb), 0.2);
    box-shadow: 0 0 calc(8px * var(--neon-intensity)) var(--neon-color);
    transform: scale(1.1) rotate(90deg);
}

.system-info-modal-body {
    padding: 25px;
}

.info-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(var(--neon-rgb), 0.03);
    border-radius: 12px;
    border: 1px solid rgba(var(--neon-rgb), 0.15);
}

.info-section h4 {
    color: var(--neon-color);
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    border-bottom: 2px solid rgba(var(--neon-rgb), 0.3);
    padding-bottom: 10px;
    font-family: 'Inter', 'Roboto', sans-serif;
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(var(--neon-rgb), 0.05);
    border-radius: 8px;
    border: 1px solid rgba(var(--neon-rgb), 0.1);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(var(--neon-rgb), 0.1);
    border-color: rgba(var(--neon-rgb), 0.3);
    transform: translateX(3px);
}

.info-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.info-value {
    color: var(--neon-color);
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
    text-align: right;
    font-family: 'Roboto Mono', monospace;
}

/* Developer Message Section */
.developer-message {
    background: rgba(var(--neon-rgb), 0.08);
    border: 2px solid rgba(var(--neon-rgb), 0.3);
}

.developer-message-content {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.developer-message-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
}

.developer-message-content p:last-child {
    margin-bottom: 0;
}

.developer-signature {
    font-style: italic;
    color: var(--neon-color);
    text-align: right;
    margin-top: 20px;
    font-weight: 600;
    text-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
}

/* Scrollbar for modal */
.system-info-modal-content::-webkit-scrollbar {
    width: 8px;
}

.system-info-modal-content::-webkit-scrollbar-track {
    background: rgba(var(--neon-rgb), 0.05);
    border-radius: 10px;
}

.system-info-modal-content::-webkit-scrollbar-thumb {
    background: rgba(var(--neon-rgb), 0.3);
    border-radius: 10px;
    border: 2px solid rgba(var(--neon-rgb), 0.05);
}

.system-info-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--neon-rgb), 0.5);
}

.contact-modal-btn {
    padding: 12px 20px;
    border: 1px solid var(--neon-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.contact-modal-btn svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 calc(2px * var(--neon-intensity)) var(--neon-color));
}

.contact-modal-btn.primary {
    background: var(--neon-color);
    color: #000;
}

.contact-modal-btn.primary:hover {
    background: rgba(var(--neon-rgb), 0.8);
    box-shadow: 0 0 calc(10px * var(--neon-intensity)) var(--neon-color);
    transform: scale(1.05);
}

.contact-modal-btn.secondary {
    background: rgba(var(--neon-rgb), 0.1);
    color: var(--neon-color);
}

.contact-modal-btn.secondary:hover {
    background: rgba(var(--neon-rgb), 0.2);
    box-shadow: 0 0 calc(8px * var(--neon-intensity)) var(--neon-color);
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive for Contact Modal */
@media screen and (max-width: 768px) {
    .contact-modal-content {
        max-width: 95%;
        margin: 20px;
        max-height: 85vh;
    }
    
    .contact-modal-header h3 {
        font-size: 20px;
    }
    
    .contact-modal-body {
        padding: 20px;
    }
    
    .contact-modal-footer {
        padding: 15px 20px 20px 20px;
        flex-direction: column;
    }
    
    .contact-modal-btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-item {
        padding: 12px;
        gap: 12px;
    }
    
    .contact-item i {
        font-size: 16px;
        width: 18px;
    }
    
    /* Mobile responsive for contact button */
    .contact-btn {
        top: 20px;
        left: 80px;
        padding: 12px;
    }
    
    .contact-icon {
        width: 20px;
        height: 20px;
    }
}

.character-body {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: center bottom;
}

/* Minimal Character Parts */
.modern-character .head {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid var(--neon-color);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 calc(4px * var(--neon-intensity)) var(--neon-color);
    background: rgba(var(--neon-rgb), 0.1);
}

.modern-character .torso {
    position: absolute;
    width: 2px;
    height: 18px;
    background: var(--neon-color);
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    border-radius: 1px;
}

.modern-character .arm {
    position: absolute;
    width: 1px;
    height: 12px;
    background: var(--neon-color);
    top: 12px;
    border-radius: 1px;
    box-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
    transform-origin: top center;
}

.modern-character .arm.left {
    left: 11px;
    transform: rotate(-20deg);
}

.modern-character .arm.right {
    right: 11px;
    transform: rotate(20deg);
}

.modern-character .leg {
    position: absolute;
    width: 2px;
    height: 15px;
    background: var(--neon-color);
    top: 26px;
    border-radius: 1px;
    box-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
    transform-origin: top center;
}

.modern-character .leg.left {
    left: 12px;
}

.modern-character .leg.right {
    right: 12px;
}

/* Character Types */
.modern-character.ninja .head {
    background: rgba(var(--neon-rgb), 0.3);
    border-color: #ff6b6b;
    box-shadow: 0 0 calc(6px * var(--neon-intensity)) #ff6b6b;
}

.modern-character.ninja .torso,
.modern-character.ninja .arm,
.modern-character.ninja .leg {
    background: #ff6b6b;
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) #ff6b6b;
}

.modern-character.dancer .head {
    background: rgba(var(--neon-rgb), 0.3);
    border-color: #4ecdc4;
    box-shadow: 0 0 calc(6px * var(--neon-intensity)) #4ecdc4;
}

.modern-character.dancer .torso,
.modern-character.dancer .arm,
.modern-character.dancer .leg {
    background: #4ecdc4;
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) #4ecdc4;
}

.modern-character.fighter .head {
    background: rgba(var(--neon-rgb), 0.3);
    border-color: #ffa726;
    box-shadow: 0 0 calc(6px * var(--neon-intensity)) #ffa726;
}

.modern-character.fighter .torso,
.modern-character.fighter .arm,
.modern-character.fighter .leg {
    background: #ffa726;
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) #ffa726;
}

.modern-character.explorer .head {
    background: rgba(var(--neon-rgb), 0.3);
    border-color: #42a5f5;
    box-shadow: 0 0 calc(6px * var(--neon-intensity)) #42a5f5;
}

.modern-character.explorer .torso,
.modern-character.explorer .arm,
.modern-character.explorer .leg {
    background: #42a5f5;
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) #42a5f5;
}

/* Modern Animations */
.modern-character.walking .arm.left {
    animation: modernWalkArmLeft 0.6s ease-in-out infinite;
}

.modern-character.walking .arm.right {
    animation: modernWalkArmRight 0.6s ease-in-out infinite;
}

.modern-character.walking .leg.left {
    animation: modernWalkLegLeft 0.6s ease-in-out infinite;
}

.modern-character.walking .leg.right {
    animation: modernWalkLegRight 0.6s ease-in-out infinite;
}

@keyframes modernWalkArmLeft {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(30deg); }
}

@keyframes modernWalkArmRight {
    0%, 100% { transform: rotate(20deg); }
    50% { transform: rotate(-30deg); }
}

@keyframes modernWalkLegLeft {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-25deg); }
}

@keyframes modernWalkLegRight {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(25deg); }
}

.modern-character.dancing {
    animation: modernDance 2s ease-in-out infinite;
}

.modern-character.dancing .arm {
    animation: modernDanceArms 1s ease-in-out infinite;
}

@keyframes modernDance {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(2deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(0.95); }
    75% { transform: rotate(-2deg) scale(1.05); }
}

@keyframes modernDanceArms {
    0%, 100% { transform: rotate(20deg); }
    25% { transform: rotate(-40deg); }
    50% { transform: rotate(45deg); }
    75% { transform: rotate(-20deg); }
}

.modern-character.fighting .arm.left {
    animation: modernFightLeft 0.4s ease-in-out infinite;
}

.modern-character.fighting .arm.right {
    animation: modernFightRight 0.5s ease-in-out infinite;
}

@keyframes modernFightLeft {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(-80deg); }
}

@keyframes modernFightRight {
    0%, 100% { transform: rotate(20deg); }
    50% { transform: rotate(80deg); }
}

/* Modern Effects */
.character-effects {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.trail {
    position: absolute;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-color), transparent);
    top: 20px;
    left: -10px;
    opacity: 0;
    border-radius: 1px;
}

.trail.active {
    animation: trailEffect 0.4s ease-out;
}

@keyframes trailEffect {
    0% { opacity: 0; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(-15px); }
    100% { opacity: 0; transform: translateX(-30px); }
}

.sparkles {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

.sparkles::before,
.sparkles::after {
    content: '✨';
    position: absolute;
    font-size: 8px;
    color: var(--neon-color);
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
}

.sparkles::before { top: 0; left: -8px; }
.sparkles::after { top: 5px; left: 8px; }

.sparkles.active {
    opacity: 1;
    animation: sparkleFloat 1s ease-out;
}

@keyframes sparkleFloat {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-15px); }
}

.impact {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid var(--neon-color);
    border-radius: 50%;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    box-shadow: 0 0 calc(5px * var(--neon-intensity)) var(--neon-color);
}

.impact.active {
    animation: impactPulse 0.3s ease-out;
}

@keyframes impactPulse {
    0% { opacity: 0; transform: translateX(-50%) scale(0.5); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
    100% { opacity: 0; transform: translateX(-50%) scale(1.5); }
}

/* Professional Lottie Characters */
.lottie-character {
    position: absolute;
    width: 80px;
    height: 80px;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    filter: drop-shadow(0 0 calc(5px * var(--neon-intensity)) var(--neon-color));
}

.lottie-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(var(--neon-rgb), 0.1);
    border: 1px solid var(--neon-color);
    overflow: hidden;
}

.lottie-character[data-type="robot"] .lottie-container {
    border-color: #00ff88;
    box-shadow: 0 0 calc(8px * var(--neon-intensity)) #00ff88;
}

.lottie-character[data-type="animal"] .lottie-container {
    border-color: #ff6b35;
    box-shadow: 0 0 calc(8px * var(--neon-intensity)) #ff6b35;
}

/* Professional Sprite Characters */
.sprite-character {
    position: absolute;
    width: 64px;
    height: 64px;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.sprite-animation {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
    border: 2px solid var(--neon-color);
    box-shadow: 0 0 calc(6px * var(--neon-intensity)) var(--neon-color);
    background-color: rgba(var(--neon-rgb), 0.1);
}

/* Knight Sprite Animations */
.sprite-character[data-type="knight"] .sprite-animation.walking {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMzIiIGN5PSIxNiIgcj0iOCIgZmlsbD0iIzQyYTVmNSIgc3Ryb2tlPSIjMGZmIiBzdHJva2Utd2lkdGg9IjIiLz4KPHJlY3QgeD0iMjgiIHk9IjI0IiB3aWR0aD0iOCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzQyYTVmNSIgc3Ryb2tlPSIjMGZmIiBzdHJva2Utd2lkdGg9IjIiLz4KPGxpbmUgeDE9IjIwIiB5MT0iMzAiIHgyPSIyOCIgeTI9IjM2IiBzdHJva2U9IiMwZmYiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CjxsaW5lIHgxPSI0NCIgeTE9IjMwIiB4Mj0iMzYiIHkyPSIzNiIgc3Ryb2tlPSIjMGZmIiBzdHJva2Utd2lkdGg9IjMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8bGluZSB4MT0iMjgiIHkxPSI0OCIgeDI9IjIwIiB5Mj0iNjAiIHN0cm9rZT0iIzBmZiIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPGxpbmUgeDE9IjM2IiB5MT0iNDgiIHgyPSI0NCIgeTI9IjYwIiBzdHJva2U9IiMwZmYiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CjxyZWN0IHg9IjQ2IiB5PSIyNiIgd2lkdGg9IjEyIiBoZWlnaHQ9IjQiIGZpbGw9IiNmZmM5NDciIHN0cm9rZT0iIzBmZiIgc3Ryb2tlLXdpZHRoPSIxIi8+CjwvZXZnPgo=');
    animation: knightWalk 1.2s ease-in-out infinite;
}

.sprite-character[data-type="knight"] .sprite-animation.fighting {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMzIiIGN5PSIxNiIgcj0iOCIgZmlsbD0iI2ZmNjY2NiIgc3Ryb2tlPSIjZmYwMDAwIiBzdHJva2Utd2lkdGg9IjIiLz4KPHJlY3QgeD0iMjgiIHk9IjI0IiB3aWR0aD0iOCIgaGVpZ2h0PSIyNCIgZmlsbD0iI2ZmNjY2NiIgc3Ryb2tlPSIjZmYwMDAwIiBzdHJva2Utd2lkdGg9IjIiLz4KPGxpbmUgeDE9IjE2IiB5MT0iMjAiIHgyPSIyOCIgeTI9IjMwIiBzdHJva2U9IiNmZjAwMDAiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CjxsaW5lIHgxPSI0OCIgeTE9IjIwIiB4Mj0iMzYiIHkyPSIzMCIgc3Ryb2tlPSIjZmYwMDAwIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8bGluZSB4MT0iMzAiIHkxPSI0OCIgeDI9IjI2IiB5Mj0iNjAiIHN0cm9rZT0iI2ZmMDAwMCIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPGxpbmUgeDE9IjM0IiB5MT0iNDgiIHgyPSIzOCIgeTI9IjYwIiBzdHJva2U9IiNmZjAwMDAiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPgo=');
    animation: knightFight 0.6s ease-in-out infinite;
}

/* Mage Sprite Animations */
.sprite-character[data-type="mage"] .sprite-animation.idle {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMzIiIGN5PSIxNiIgcj0iOCIgZmlsbD0iIzlkNGVkZCIgc3Ryb2tlPSIjN2MzYWVkIiBzdHJva2Utd2lkdGg9IjIiLz4KPHJlY3QgeD0iMjgiIHk9IjI0IiB3aWR0aD0iOCIgaGVpZ2h0PSIyOCIgZmlsbD0iIzlkNGVkZCIgc3Ryb2tlPSIjN2MzYWVkIiBzdHJva2Utd2lkdGg9IjIiLz4KPGxpbmUgeDE9IjI0IiB5MT0iMzIiIHgyPSIxNiIgeTI9IjI4IiBzdHJva2U9IiM3YzNhZWQiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CjxsaW5lIHgxPSI0MCIgeTE9IjMyIiB4Mj0iNDgiIHkyPSIyOCIgc3Ryb2tlPSIjN2MzYWVkIiBzdHJva2Utd2lkdGg9IjMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8bGluZSB4MT0iMzAiIHkxPSI1MiIgeDI9IjI2IiB5Mj0iNjAiIHN0cm9rZT0iIzdjM2FlZCIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPGxpbmUgeDE9IjM0IiB5MT0iNTIiIHgyPSIzOCIgeTI9IjYwIiBzdHJva2U9IiM3YzNhZWQiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CjxjaXJjbGUgY3g9IjQ4IiBjeT0iMjAiIHI9IjQiIGZpbGw9IiNmZmY5OTQiIHN0cm9rZT0iI2ZmZjMwMCIgc3Ryb2tlLXdpZHRoPSIxIi8+CjxjaXJjbGUgY3g9IjUyIiBjeT0iMjQiIHI9IjIiIGZpbGw9IiNmZmY5OTQiLz4KPGNpcmNsZSBjeD0iNDQiIGN5PSIxNiIgcj0iMiIgZmlsbD0iI2ZmZjk5NCIvPgo8L3N2Zz4K');
    animation: mageIdle 2s ease-in-out infinite;
}

.sprite-character[data-type="mage"] .sprite-animation.casting {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMzIiIGN5PSIxNiIgcj0iOCIgZmlsbD0iIzBkZjZmZiIgc3Ryb2tlPSIjMDBiY2ZmIiBzdHJva2Utd2lkdGg9IjIiLz4KPHJlY3QgeD0iMjgiIHk9IjI0IiB3aWR0aD0iOCIgaGVpZ2h0PSIyOCIgZmlsbD0iIzBkZjZmZiIgc3Ryb2tlPSIjMDBiY2ZmIiBzdHJva2Utd2lkdGg9IjIiLz4KPGxpbmUgeDE9IjI0IiB5MT0iMzIiIHgyPSIxMiIgeTI9IjIwIiBzdHJva2U9IiMwMGJjZmYiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CjxsaW5lIHgxPSI0MCIgeTE9IjMyIiB4Mj0iNTIiIHkyPSIyMCIgc3Ryb2tlPSIjMDBiY2ZmIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8bGluZSB4MT0iMzAiIHkxPSI1MiIgeDI9IjI2IiB5Mj0iNjAiIHN0cm9rZT0iIzAwYmNmZiIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPGxpbmUgeDE9IjM0IiB5MT0iNTIiIHgyPSIzOCIgeTI9IjYwIiBzdHJva2U9IiMwMGJjZmYiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CjxjaXJjbGUgY3g9IjEwIiBjeT0iMTgiIHI9IjMiIGZpbGw9IiNmZmZmZmYiIHN0cm9rZT0iIzAwYmNmZiIgc3Ryb2tlLXdpZHRoPSIxIi8+CjxjaXJjbGUgY3g9IjU0IiBjeT0iMTgiIHI9IjMiIGZpbGw9IiNmZmZmZmYiIHN0cm9rZT0iIzAwYmNmZiIgc3Ryb2tlLXdpZHRoPSIxIi8+Cjwvc3ZnPgo=');
    animation: mageCast 1s ease-in-out infinite;
}

/* Professional Animation Keyframes */
@keyframes knightWalk {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(1deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-2px) rotate(-1deg); }
}

@keyframes knightFight {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(2deg); }
    50% { transform: scale(0.95) rotate(0deg); }
    75% { transform: scale(1.1) rotate(-2deg); }
}

@keyframes mageIdle {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.02); }
}

@keyframes mageCast {
    0%, 100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
    50% { transform: scale(1.15) rotate(2deg); filter: brightness(1.3); }
}

/* Head Structure */
.sm-head {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 3px solid var(--neon-color);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 
        0 0 calc(8px * var(--neon-intensity)) var(--neon-color),
        inset 0 0 calc(4px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.3);
    background: rgba(var(--neon-rgb), 0.1);
}

.sm-face {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.sm-eye {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--neon-color);
    border-radius: 50%;
    top: 4px;
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
}

.sm-eye.left { left: 3px; }
.sm-eye.right { right: 3px; }

.sm-mouth {
    position: absolute;
    width: 6px;
    height: 2px;
    background: var(--neon-color);
    border-radius: 3px;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
}

.sm-expression {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* Torso Structure */
.sm-torso {
    position: absolute;
    width: 4px;
    height: 35px;
    background: linear-gradient(
        to bottom,
        var(--neon-color) 0%,
        rgba(var(--neon-rgb), 0.8) 50%,
        var(--neon-color) 100%
    );
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 calc(5px * var(--neon-intensity)) var(--neon-color);
    border-radius: 2px;
}

.sm-chest {
    position: absolute;
    width: 8px;
    height: 15px;
    border: 2px solid var(--neon-color);
    border-radius: 4px;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(var(--neon-rgb), 0.1);
    box-shadow: 0 0 calc(4px * var(--neon-intensity)) var(--neon-color);
}

.sm-belly {
    position: absolute;
    width: 6px;
    height: 10px;
    border: 1px solid var(--neon-color);
    border-radius: 3px;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(var(--neon-rgb), 0.05);
    box-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
}

/* Arm Structure */
.sm-arm-group {
    position: absolute;
    top: 20px;
}

.sm-arm-group.left {
    left: 8px;
    transform-origin: right center;
}

.sm-arm-group.right {
    right: 8px;
    transform-origin: left center;
}

.sm-shoulder {
    position: absolute;
    width: 6px;
    height: 6px;
    border: 2px solid var(--neon-color);
    border-radius: 50%;
    background: rgba(var(--neon-rgb), 0.2);
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
}

.sm-upper-arm {
    position: absolute;
    width: 3px;
    height: 18px;
    background: var(--neon-color);
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    transform-origin: top center;
}

.sm-elbow {
    position: absolute;
    width: 4px;
    height: 4px;
    border: 1px solid var(--neon-color);
    border-radius: 50%;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(var(--neon-rgb), 0.3);
    box-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
}

.sm-forearm {
    position: absolute;
    width: 3px;
    height: 16px;
    background: var(--neon-color);
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    transform-origin: top center;
}

.sm-wrist {
    position: absolute;
    width: 3px;
    height: 3px;
    border: 1px solid var(--neon-color);
    border-radius: 50%;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(var(--neon-rgb), 0.4);
    box-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
}

.sm-fist {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--neon-color);
    border: 2px solid var(--neon-color);
    border-radius: 50%;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 
        0 0 calc(4px * var(--neon-intensity)) var(--neon-color),
        inset 0 0 calc(2px * var(--neon-intensity)) rgba(var(--neon-rgb), 0.5);
}

/* Leg Structure */
.sm-leg-group {
    position: absolute;
    top: 51px;
}

.sm-leg-group.left {
    left: 23px;
    transform-origin: top center;
}

.sm-leg-group.right {
    right: 23px;
    transform-origin: top center;
}

.sm-hip {
    position: absolute;
    width: 5px;
    height: 5px;
    border: 2px solid var(--neon-color);
    border-radius: 50%;
    background: rgba(var(--neon-rgb), 0.2);
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
}

.sm-thigh {
    position: absolute;
    width: 4px;
    height: 20px;
    background: var(--neon-color);
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    transform-origin: top center;
}

.sm-knee {
    position: absolute;
    width: 5px;
    height: 5px;
    border: 1px solid var(--neon-color);
    border-radius: 50%;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(var(--neon-rgb), 0.3);
    box-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
}

.sm-shin {
    position: absolute;
    width: 3px;
    height: 18px;
    background: var(--neon-color);
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    transform-origin: top center;
}

.sm-ankle {
    position: absolute;
    width: 4px;
    height: 4px;
    border: 1px solid var(--neon-color);
    border-radius: 50%;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(var(--neon-rgb), 0.4);
    box-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
}

.sm-foot {
    position: absolute;
    width: 10px;
    height: 4px;
    background: var(--neon-color);
    border-radius: 2px;
    top: 43px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
}

/* Professional Combat Animations */

/* Combat State: Idle */
.pro-stickman[data-state="idle"] .sm-arm-group.left {
    animation: idleArmLeft 3s ease-in-out infinite;
}

.pro-stickman[data-state="idle"] .sm-arm-group.right {
    animation: idleArmRight 3s ease-in-out infinite;
}

.pro-stickman[data-state="idle"] .sm-leg-group {
    animation: idleLegs 4s ease-in-out infinite;
}

.pro-stickman[data-state="idle"] .sm-torso {
    animation: idleBreathing 2s ease-in-out infinite;
}

@keyframes idleArmLeft {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

@keyframes idleArmRight {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-5deg); }
}

@keyframes idleLegs {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

@keyframes idleBreathing {
    0%, 100% { transform: translateX(-50%) scaleY(1); }
    50% { transform: translateX(-50%) scaleY(1.05); }
}

/* Combat State: Fighting */
.pro-stickman[data-state="fighting"] .stickman-container {
    animation: fightStance 0.1s ease-in-out infinite;
}

.pro-stickman[data-state="fighting"] .sm-arm-group.left {
    animation: fightArmLeftPro 0.3s ease-in-out infinite;
}

.pro-stickman[data-state="fighting"] .sm-arm-group.right {
    animation: fightArmRightPro 0.4s ease-in-out infinite;
}

.pro-stickman[data-state="fighting"] .sm-leg-group.left {
    animation: fightLegLeft 0.6s ease-in-out infinite;
}

.pro-stickman[data-state="fighting"] .sm-leg-group.right {
    animation: fightLegRight 0.7s ease-in-out infinite;
}

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

@keyframes fightArmLeftPro {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-90deg); }
    40% { transform: rotate(45deg); }
    60% { transform: rotate(-45deg); }
    80% { transform: rotate(30deg); }
    100% { transform: rotate(0deg); }
}

@keyframes fightArmRightPro {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(90deg); }
    35% { transform: rotate(-45deg); }
    55% { transform: rotate(60deg); }
    75% { transform: rotate(-30deg); }
    100% { transform: rotate(0deg); }
}

@keyframes fightLegLeft {
    0%, 100% { transform: rotate(0deg); }
    33% { transform: rotate(20deg); }
    66% { transform: rotate(-10deg); }
}

@keyframes fightLegRight {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-25deg); }
    75% { transform: rotate(15deg); }
}

/* Combat State: Punching */
.pro-stickman[data-state="punch-left"] .sm-arm-group.left {
    animation: punchLeft 0.3s ease-out;
}

.pro-stickman[data-state="punch-right"] .sm-arm-group.right {
    animation: punchRight 0.3s ease-out;
}

@keyframes punchLeft {
    0% { transform: rotate(-30deg); }
    30% { transform: rotate(-120deg) translateX(-5px); }
    100% { transform: rotate(-30deg); }
}

@keyframes punchRight {
    0% { transform: rotate(30deg); }
    30% { transform: rotate(120deg) translateX(5px); }
    100% { transform: rotate(30deg); }
}

/* Combat State: Blocking */
.pro-stickman[data-state="blocking"] .sm-arm-group.left {
    animation: blockLeft 0.2s ease-in-out;
    transform: rotate(-80deg) translateY(-5px);
}

.pro-stickman[data-state="blocking"] .sm-arm-group.right {
    animation: blockRight 0.2s ease-in-out;
    transform: rotate(80deg) translateY(-5px);
}

@keyframes blockLeft {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-80deg) translateY(-5px); }
}

@keyframes blockRight {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(80deg) translateY(-5px); }
}

/* Combat State: Hit */
.pro-stickman[data-state="hit"] .stickman-container {
    animation: hitReaction 0.4s ease-out;
}

.pro-stickman[data-state="hit"] .sm-head {
    animation: hitHeadShake 0.4s ease-out;
}

@keyframes hitReaction {
    0% { transform: translateX(0px); }
    25% { transform: translateX(-3px) rotate(-2deg); }
    50% { transform: translateX(2px) rotate(1deg); }
    75% { transform: translateX(-1px) rotate(-0.5deg); }
    100% { transform: translateX(0px) rotate(0deg); }
}

@keyframes hitHeadShake {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-50%) rotate(-5deg); }
    75% { transform: translateX(-50%) rotate(3deg); }
}

/* Enhanced Stick Figure Parts */
.stick-head {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--neon-color);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 calc(6px * var(--neon-intensity)) var(--neon-color);
    background: rgba(var(--neon-rgb), 0.1);
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.eye {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-color);
    border-radius: 50%;
    top: 3px;
    box-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
}

.eye.left { left: 3px; }
.eye.right { right: 3px; }

.mouth {
    position: absolute;
    width: 4px;
    height: 1px;
    background: var(--neon-color);
    border-radius: 2px;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
}

.stick-body {
    position: absolute;
    width: 3px;
    height: 28px;
    background: var(--neon-color);
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 calc(4px * var(--neon-intensity)) var(--neon-color);
    border-radius: 1px;
}

.stick-arms {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 2px;
}

.arm {
    position: absolute;
    width: 14px;
    height: 3px;
    background: var(--neon-color);
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    transform-origin: left center;
    border-radius: 1px;
}

.arm.left {
    left: 0;
    transform-origin: left center;
}

.arm.right {
    right: 0;
    transform-origin: right center;
}

.hand {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-color);
    border-radius: 50%;
    top: -1px;
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
}

.arm.left .hand { right: -2px; }
.arm.right .hand { left: -2px; }

.stick-legs {
    position: absolute;
    top: 42px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
}

.leg {
    position: absolute;
    width: 3px;
    height: 18px;
    background: var(--neon-color);
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    transform-origin: top center;
    border-radius: 1px;
}

.leg.left {
    left: 6px;
}

.leg.right {
    right: 6px;
}

.foot {
    position: absolute;
    width: 6px;
    height: 3px;
    background: var(--neon-color);
    border-radius: 1px;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
}

/* Action Effects */
.action-effects {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.dust-cloud {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(var(--neon-rgb), 0.3);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    box-shadow: 0 0 calc(4px * var(--neon-intensity)) var(--neon-color);
}

.impact-stars {
    position: absolute;
    width: 6px;
    height: 6px;
    top: 10px;
    right: -10px;
    opacity: 0;
}

.impact-stars::before,
.impact-stars::after {
    content: '★';
    position: absolute;
    color: var(--neon-color);
    font-size: 6px;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
}

.impact-stars::before { top: 0; left: 0; }
.impact-stars::after { top: 3px; left: 3px; }

.sweat-drops {
    position: absolute;
    width: 2px;
    height: 4px;
    background: rgba(var(--neon-rgb), 0.6);
    border-radius: 0 50% 50% 50%;
    top: 5px;
    right: -3px;
    opacity: 0;
    box-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
}

.music-notes {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

.music-notes::before,
.music-notes::after {
    content: '♪';
    position: absolute;
    color: var(--neon-color);
    font-size: 8px;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
}

.music-notes::before { top: 0; left: -5px; }
.music-notes::after { top: -5px; left: 5px; }

.trouble-cloud {
    position: absolute;
    width: 12px;
    height: 8px;
    background: rgba(var(--neon-rgb), 0.4);
    border-radius: 50%;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
}

/* Interaction Effects */
.interaction-effects {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.fight-cloud {
    position: absolute;
    width: 40px;
    height: 30px;
    border-radius: 50%;
    background: rgba(var(--neon-rgb), 0.2);
    border: 2px solid var(--neon-color);
    opacity: 0;
    transform: scale(0);
    box-shadow: 0 0 calc(8px * var(--neon-intensity)) var(--neon-color);
}

.fight-cloud::before,
.fight-cloud::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--neon-color);
    border-radius: 50%;
    box-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
}

.fight-cloud::before { top: 8px; left: 10px; }
.fight-cloud::after { top: 15px; right: 8px; }

.peace-hearts {
    position: absolute;
    opacity: 0;
    transform: scale(0);
}

.peace-hearts::before,
.peace-hearts::after {
    content: '♥';
    position: absolute;
    color: var(--neon-color);
    font-size: 10px;
    text-shadow: 0 0 calc(4px * var(--neon-intensity)) var(--neon-color);
}

.peace-hearts::before { top: 0; left: 0; }
.peace-hearts::after { top: 5px; left: 15px; }

.collision-burst {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-color);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    box-shadow: 0 0 calc(6px * var(--neon-intensity)) var(--neon-color);
}

/* Smooth Character Animation States */
.stick-figure.walking .arm.left {
    animation: smoothWalkArmLeft 0.6s ease-in-out infinite;
}

.stick-figure.walking .arm.right {
    animation: smoothWalkArmRight 0.6s ease-in-out infinite;
}

.stick-figure.walking .leg.left {
    animation: smoothWalkLegLeft 0.6s ease-in-out infinite;
}

.stick-figure.walking .leg.right {
    animation: smoothWalkLegRight 0.6s ease-in-out infinite;
}

.stick-figure.walking .stick-body {
    animation: walkBodyBob 0.6s ease-in-out infinite;
}

.stick-figure.walking .stick-head {
    animation: walkHeadBob 0.6s ease-in-out infinite;
}

@keyframes smoothWalkArmLeft {
    0%, 100% { transform: rotate(25deg); }
    50% { transform: rotate(-25deg); }
}

@keyframes smoothWalkArmRight {
    0%, 100% { transform: rotate(-25deg); }
    50% { transform: rotate(25deg); }
}

@keyframes smoothWalkLegLeft {
    0%, 100% { transform: rotate(20deg); }
    50% { transform: rotate(-20deg); }
}

@keyframes smoothWalkLegRight {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(20deg); }
}

@keyframes walkBodyBob {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-2px); }
}

@keyframes walkHeadBob {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-1px); }
}

/* Jumping Animation */
.stick-figure.jumping {
    animation: smoothJump 1.5s ease-in-out infinite;
}

.stick-figure.jumping .arm {
    animation: jumpArms 1.5s ease-in-out infinite;
}

.stick-figure.jumping .leg {
    animation: jumpLegs 1.5s ease-in-out infinite;
}

.stick-figure.jumping .stick-head {
    animation: jumpHeadMovement 1.5s ease-in-out infinite;
}

@keyframes smoothJump {
    0%, 20%, 100% { transform: translateY(0px) scaleY(1); }
    10% { transform: translateY(0px) scaleY(0.8) scaleX(1.1); }
    40% { transform: translateY(-40px) scaleY(1.1) scaleX(0.9); }
    60% { transform: translateY(-20px) scaleY(1) scaleX(1); }
}

@keyframes jumpArms {
    0%, 20%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(10deg); }
    40% { transform: rotate(-50deg); }
    60% { transform: rotate(-25deg); }
}

@keyframes jumpLegs {
    0%, 20%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-5deg); }
    40% { transform: rotate(-35deg); }
    60% { transform: rotate(-15deg); }
}

@keyframes jumpHeadMovement {
    0%, 20%, 100% { transform: translateX(-50%) translateY(0px); }
    40% { transform: translateX(-50%) translateY(-3px); }
    60% { transform: translateX(-50%) translateY(-1px); }
}

/* Dancing Animation */
.stick-figure.dancing {
    animation: smoothDance 2s ease-in-out infinite;
}

.stick-figure.dancing .arm.left {
    animation: danceArmLeft 1s ease-in-out infinite;
}

.stick-figure.dancing .arm.right {
    animation: danceArmRight 1s ease-in-out infinite;
}

.stick-figure.dancing .leg.left {
    animation: danceLegsLeft 1.5s ease-in-out infinite;
}

.stick-figure.dancing .leg.right {
    animation: danceLegsRight 1.5s ease-in-out infinite;
}

.stick-figure.dancing .stick-body {
    animation: danceBodySway 2s ease-in-out infinite;
}

.stick-figure.dancing .stick-head {
    animation: danceHeadNod 1s ease-in-out infinite;
}

@keyframes smoothDance {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(3deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(0.95); }
    75% { transform: rotate(-3deg) scale(1.05); }
}

@keyframes danceArmLeft {
    0%, 100% { transform: rotate(45deg); }
    25% { transform: rotate(-20deg); }
    50% { transform: rotate(60deg); }
    75% { transform: rotate(-45deg); }
}

@keyframes danceArmRight {
    0%, 100% { transform: rotate(-45deg); }
    25% { transform: rotate(60deg); }
    50% { transform: rotate(-20deg); }
    75% { transform: rotate(45deg); }
}

@keyframes danceLegsLeft {
    0%, 100% { transform: rotate(5deg); }
    50% { transform: rotate(-15deg); }
}

@keyframes danceLegsRight {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(15deg); }
}

@keyframes danceBodySway {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(2deg); }
}

@keyframes danceHeadNod {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-2px); }
}

/* Fighting Animation */
.stick-figure.fighting .arm.left {
    animation: fightArmLeft 0.4s ease-in-out infinite;
}

.stick-figure.fighting .arm.right {
    animation: fightArmRight 0.5s ease-in-out infinite;
}

.stick-figure.fighting .leg.left {
    animation: fightLegLeft 0.6s ease-in-out infinite;
}

.stick-figure.fighting .leg.right {
    animation: fightLegRight 0.7s ease-in-out infinite;
}

.stick-figure.fighting .stick-body {
    animation: fightBodyShake 0.3s ease-in-out infinite;
}

.stick-figure.fighting .stick-head {
    animation: fightHeadShake 0.4s ease-in-out infinite;
}

@keyframes fightArmLeft {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-90deg); }
    50% { transform: rotate(45deg); }
    75% { transform: rotate(-45deg); }
}

@keyframes fightArmRight {
    0%, 100% { transform: rotate(0deg); }
    30% { transform: rotate(90deg); }
    60% { transform: rotate(-45deg); }
    80% { transform: rotate(60deg); }
}

@keyframes fightLegLeft {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(30deg); }
}

@keyframes fightLegRight {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-30deg); }
}

@keyframes fightBodyShake {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-1px); }
}

@keyframes fightHeadShake {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    25% { transform: translateX(-50%) translateY(-1px) rotate(2deg); }
    75% { transform: translateX(-50%) translateY(-1px) rotate(-2deg); }
}

/* Hanging Animation */
.stick-figure.hanging .arm {
    animation: hangingArms 2s ease-in-out infinite;
}

.stick-figure.hanging .leg {
    animation: hangingLegs 3s ease-in-out infinite;
}

.stick-figure.hanging .stick-body {
    animation: hangingBody 2.5s ease-in-out infinite;
}

@keyframes hangingArms {
    0%, 100% { transform: rotate(-90deg); }
    50% { transform: rotate(-85deg); }
}

@keyframes hangingLegs {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

@keyframes hangingBody {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(1deg); }
}

/* Falling Animation */
.stick-figure.falling .arm {
    animation: fallingArms 0.5s ease-in-out infinite;
}

.stick-figure.falling .leg {
    animation: fallingLegs 0.6s ease-in-out infinite;
}

.stick-figure.falling .stick-head {
    animation: fallingHead 0.4s ease-in-out infinite;
}

@keyframes fallingArms {
    0%, 100% { transform: rotate(-30deg); }
    50% { transform: rotate(30deg); }
}

@keyframes fallingLegs {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(20deg); }
}

@keyframes fallingHead {
    0%, 100% { transform: translateX(-50%) rotate(-5deg); }
    50% { transform: translateX(-50%) rotate(5deg); }
}

/* Peaceful/Happy Animation */
.stick-figure.peaceful .arm {
    animation: peacefulArms 3s ease-in-out infinite;
}

.stick-figure.peaceful .stick-head {
    animation: peacefulHead 2s ease-in-out infinite;
}

@keyframes peacefulArms {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); }
}

@keyframes peacefulHead {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-1px); }
}

/* Emotional Expressions */
.stick-figure.happy .mouth {
    transform: translateX(-50%) scaleY(0.3) !important;
    border-radius: 50% !important;
}

.stick-figure.angry .mouth {
    transform: translateX(-50%) scaleY(2) !important;
    border-radius: 0 !important;
    background: #ff4444 !important;
}

.stick-figure.excited .eye {
    animation: excitedEyes 0.5s ease-in-out infinite;
}

@keyframes excitedEyes {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.3); }
}

/* Gesture Animations */
.stick-figure.gesture-wave .arm.right {
    animation: gestureWave 1s ease-in-out;
}

@keyframes gestureWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-45deg); }
    50% { transform: rotate(45deg); }
    75% { transform: rotate(-20deg); }
}

.stick-figure.gesture-wiggle {
    animation: gestureWiggle 0.8s ease-in-out;
}

@keyframes gestureWiggle {
    0%, 100% { transform: translateX(0px); }
    25% { transform: translateX(-3px) rotate(2deg); }
    50% { transform: translateX(3px) rotate(-2deg); }
    75% { transform: translateX(-2px) rotate(1deg); }
}

.stick-figure.gesture-bounce {
    animation: gestureBounce 0.6s ease-in-out;
}

@keyframes gestureBounce {
    0%, 100% { transform: translateY(0px) scaleY(1); }
    50% { transform: translateY(-15px) scaleY(1.1); }
}

.stick-figure.gesture-spin {
    animation: gestureSpin 0.8s ease-in-out;
}

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

.stick-figure.gesture-stomp .leg {
    animation: gestureStomp 0.5s ease-in-out;
}

@keyframes gestureStomp {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

.stick-figure.gesture-nod .stick-head {
    animation: gestureNod 1s ease-in-out;
}

@keyframes gestureNod {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-3px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0px); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Smooth character transitions */
.stick-figure {
    transition: opacity 0.3s ease-in-out;
}

/* Enhanced effect animations */
.dust-cloud.active {
    animation: dustPuff 0.8s ease-out;
}

@keyframes dustPuff {
    0% { 
        opacity: 0; 
        transform: translateX(-50%) scale(0.5); 
    }
    50% { 
        opacity: 1; 
        transform: translateX(-50%) scale(1.2); 
    }
    100% { 
        opacity: 0; 
        transform: translateX(-50%) scale(1.5); 
    }
}

.music-notes.active {
    animation: musicalFloat 2s ease-out;
}

@keyframes musicalFloat {
    0% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(0px); 
    }
    50% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(-10px); 
    }
    100% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(-20px); 
    }
}

.sweat-drops.active {
    animation: sweatFall 1s ease-in;
}

@keyframes sweatFall {
    0% { 
        opacity: 1; 
        transform: translateY(0px); 
    }
    100% { 
        opacity: 0; 
        transform: translateY(15px); 
    }
}

.impact-stars.active {
    animation: starBurst 0.8s ease-out;
}

@keyframes starBurst {
    0% { 
        opacity: 0; 
        transform: scale(0.3); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2); 
    }
    100% { 
        opacity: 0; 
        transform: scale(1.5); 
    }
}

/* Enhanced interaction effects */
.fight-cloud.active {
    animation: fightCloudBurst 1.5s ease-out;
}

@keyframes fightCloudBurst {
    0% { 
        opacity: 0; 
        transform: scale(0); 
    }
    20% { 
        opacity: 1; 
        transform: scale(1.2); 
    }
    80% { 
        opacity: 0.8; 
        transform: scale(1); 
    }
    100% { 
        opacity: 0; 
        transform: scale(0.8); 
    }
}

.peace-hearts.active {
    animation: heartFloat 2s ease-out;
}

@keyframes heartFloat {
    0% { 
        opacity: 0; 
        transform: scale(0) translateY(0px); 
    }
    30% { 
        opacity: 1; 
        transform: scale(1.2) translateY(-5px); 
    }
    70% { 
        opacity: 1; 
        transform: scale(1) translateY(-10px); 
    }
    100% { 
        opacity: 0; 
        transform: scale(0.8) translateY(-20px); 
    }
}

.collision-burst.active {
    animation: collisionRipple 0.8s ease-out;
}

@keyframes collisionRipple {
    0% { 
        opacity: 0; 
        transform: scale(0); 
        border-width: 4px;
    }
    50% { 
        opacity: 1; 
        transform: scale(1.5); 
        border-width: 2px;
    }
    100% { 
        opacity: 0; 
        transform: scale(2); 
        border-width: 1px;
    }
}

/* Characters info styles */
.characters-info {
    margin-top: 8px;
}

.characters-info small {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Rajdhani', sans-serif;
    text-shadow: 0 0 calc(2px * var(--neon-intensity)) var(--neon-color);
    font-weight: 500;
}

#charactersSectionTitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-shadow: 0 0 calc(5px * var(--neon-intensity)) var(--neon-color);
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

#animatedCharactersLabel {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    font-family: 'Rajdhani', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.15s;
    will-change: opacity;
    transform: translateZ(0);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Fullscreen specific font sizes */
:fullscreen .clock,
:-webkit-full-screen .clock,
:-moz-full-screen .clock,
:-ms-fullscreen .clock {
    font-size: 15vw !important;
}

:fullscreen .date,
:-webkit-full-screen .date,
:-moz-full-screen .date,
:-ms-fullscreen .date {
    font-size: 3vw !important;
}

/* Ensure proper font sizes when exiting fullscreen */
body:not(:fullscreen) .clock,
body:not(:-webkit-full-screen) .clock,
body:not(:-moz-full-screen) .clock,
body:not(:-ms-fullscreen) .clock {
    font-size: 12vw !important;
}

body:not(:fullscreen) .date,
body:not(:-webkit-full-screen) .date,
body:not(:-moz-full-screen) .date,
body:not(:-ms-fullscreen) .date {
    font-size: 2.5vw !important;
}

/* Responsive Menu */
@media (max-width: 768px) {
    .fullscreen-btn {
        top: 20px;
        left: 20px;
        padding: 12px;
    }
    
    .fullscreen-icon {
        width: 20px;
        height: 20px;
    }
    
    .fullscreen-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .menu-icon {
        top: 20px;
        right: 20px;
        padding: 12px;
    }
    
    .helper-panel {
        width: 100%;
        max-width: 100vw;
    }
    
    .panel-content {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .language-color-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hamburger {
        width: 20px;
        height: 16px;
    }
    
    .hamburger span {
        height: 2px;
    }
    
    .lang-btn .flag {
        width: 20px;
        height: 15px;
    }
}

@media (max-width: 480px) {
    .fullscreen-btn {
        padding: 10px;
    }
    
    .fullscreen-icon {
        width: 18px;
        height: 18px;
    }
    
    .fullscreen-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .helper-panel {
        width: 280px;
    }
    
    .lang-btn .flag {
        width: 18px;
        height: 14px;
    }
}

/* CSS Custom Properties for Dynamic Theming */
:root {
    --neon-color: #00aaff;
    --neon-intensity: 0.1;
    --neon-rgb: 0, 170, 255;
    --bg-gradient-color: rgba(0, 170, 255, 0.08);
}

/* Prevent flash of unstyled content during initialization */
body {
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

.clock, .date {
    transform: translateZ(0);
    will-change: auto;
}

/* Disable animations on reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Advertisement Modal Styles */
.ad-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
}

.ad-modal.show {
    display: flex;
    animation: adFadeIn 0.5s ease-out;
}

.ad-modal-content {
    background: linear-gradient(135deg, rgba(var(--neon-rgb), 0.1) 0%, rgba(0, 0, 0, 0.95) 100%);
    border: 2px solid var(--neon-color);
    border-radius: 20px;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 calc(30px * var(--neon-intensity)) var(--neon-color);
    transform: scale(0.8);
    transition: transform 0.5s ease;
}

.ad-modal.show .ad-modal-content {
    transform: scale(1);
}

.ad-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 20px 25px;
    border-bottom: 1px solid rgba(var(--neon-rgb), 0.3);
    background: linear-gradient(90deg, rgba(var(--neon-rgb), 0.1) 0%, transparent 100%);
}

.ad-modal-header h3 {
    color: var(--neon-color);
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-shadow: 0 0 calc(8px * var(--neon-intensity)) var(--neon-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.ad-modal-close {
    background: none;
    border: 1px solid rgba(var(--neon-rgb), 0.5);
    color: var(--neon-color);
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ad-modal-close:hover {
    background: rgba(var(--neon-rgb), 0.2);
    box-shadow: 0 0 calc(10px * var(--neon-intensity)) var(--neon-color);
    transform: scale(1.1);
}

.ad-modal-body {
    padding: 25px;
}

.ad-image-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(var(--neon-rgb), 0.3);
}

.ad-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ad-image:hover {
    transform: scale(1.05);
}

.ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(var(--neon-rgb), 0.3) 0%, transparent 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 15px;
}

.ad-badge {
    background: var(--neon-color);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 calc(10px * var(--neon-intensity)) var(--neon-color);
    line-height: 1.1;
}

.ad-content h4 {
    color: var(--neon-color);
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-shadow: 0 0 calc(5px * var(--neon-intensity)) var(--neon-color);
    line-height: 1.3;
}

.ad-content p {
    color: #ffffff;
    margin: 0 0 20px 0;
    font-size: 15px;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
    letter-spacing: 0.2px;
}



.ad-modal-footer {
    padding: 20px 25px 25px 25px;
    border-top: 1px solid rgba(var(--neon-rgb), 0.3);
    background: linear-gradient(90deg, transparent 0%, rgba(var(--neon-rgb), 0.05) 100%);
}

.ad-countdown {
    margin-top: 15px;
    margin-bottom: 0;
    text-align: center;
}

.countdown-text {
    color: var(--neon-color);
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 8px;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) var(--neon-color);
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.countdown-progress {
    width: 100%;
    height: 6px;
    background: rgba(var(--neon-rgb), 0.2);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(var(--neon-rgb), 0.3);
    margin-bottom: 0;
}

.countdown-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-color) 0%, rgba(var(--neon-rgb), 0.7) 100%);
    border-radius: 3px;
    width: 100%;
    transition: width 0.1s linear;
    box-shadow: 0 0 calc(5px * var(--neon-intensity)) var(--neon-color);
}

.ad-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 15px;
}

.ad-btn {
    padding: 14px 24px;
    border: 1px solid var(--neon-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.1;
    white-space: nowrap;
    min-width: 140px;
    justify-content: center;
}

.ad-btn.primary {
    background: var(--neon-color);
    color: #000;
}

.ad-btn.primary:hover {
    background: rgba(var(--neon-rgb), 0.8);
    box-shadow: 0 0 calc(15px * var(--neon-intensity)) var(--neon-color);
    transform: scale(1.05);
}

.ad-btn.secondary {
    background: rgba(var(--neon-rgb), 0.1);
    color: var(--neon-color);
}

.ad-btn.secondary:hover {
    background: rgba(var(--neon-rgb), 0.2);
    box-shadow: 0 0 calc(10px * var(--neon-intensity)) var(--neon-color);
    transform: scale(1.05);
}

@keyframes adFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive for Ad Modal */
@media screen and (max-width: 768px) {
    .ad-modal-content {
        max-width: 95%;
        margin: 20px;
        max-height: 90vh;
        width: 95%;
    }
    
    .ad-modal-header h3 {
        font-size: 20px;
        font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .ad-modal-body {
        padding: 20px;
    }
    
    .ad-modal-footer {
        padding: 15px 20px 20px 20px;
    }
    
    .ad-buttons {
        flex-direction: column;
    }
    
    .ad-btn {
        width: 100%;
        justify-content: center;
        font-size: 13px;
        padding: 12px 20px;
        min-width: auto;
    }
    

}

/* Mouse Cursor Auto-Hide */
body.cursor-hidden {
    cursor: none !important;
}

/* Helper Panel Responsive Grid - Large Screens */
@media (min-width: 1400px) {
    .panel-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding: 40px;
    }
    
    .language-color-wrapper {
        gap: 30px;
    }
}

@media (min-width: 1024px) and (max-width: 1399px) {
    .panel-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 30px;
    }
    
    .language-color-wrapper {
        gap: 25px;
    }
}

@media (max-width: 1023px) {
    .panel-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .language-color-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

body.cursor-hidden * {
    cursor: none !important;
}

/* Ad Blocker Warning Styles */
.ad-blocker-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
}

.ad-blocker-warning.show {
    display: flex;
    animation: adBlockerFadeIn 0.6s ease-out;
}

.ad-blocker-warning-content {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(0, 0, 0, 0.98) 100%);
    border: 2px solid #ff4444;
    border-radius: 25px;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(25px);
    box-shadow: 0 0 calc(40px * var(--neon-intensity)) #ff4444;
    transform: scale(0.7);
    transition: transform 0.6s ease;
    position: relative;
}

.ad-blocker-warning-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 68, 68, 0.05) 0%, transparent 50%, rgba(255, 68, 68, 0.05) 100%);
    border-radius: 25px;
    pointer-events: none;
}

.ad-blocker-warning.show .ad-blocker-warning-content {
    transform: scale(1);
    animation: modalBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ad-blocker-warning-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 30px 25px 30px;
    border-bottom: 1px solid rgba(255, 68, 68, 0.3);
    background: linear-gradient(90deg, rgba(255, 68, 68, 0.1) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.ad-blocker-warning-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 68, 68, 0.5) 50%, transparent 100%);
}

.ad-blocker-warning-header h3 {
    color: #ff4444;
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    text-shadow: 0 0 calc(10px * var(--neon-intensity)) #ff4444;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.ad-blocker-warning-header h3::before {
    content: '🚫';
    margin-right: 15px;
    font-size: 28px;
    animation: warningPulse 2s ease-in-out infinite;
}



.ad-blocker-warning-body {
    padding: 30px;
    text-align: center;
}

.ad-blocker-icon {
    margin-bottom: 25px;
    color: #ff4444;
    text-shadow: 0 0 calc(8px * var(--neon-intensity)) #ff4444;
    position: relative;
}

.ad-blocker-icon svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 calc(8px * var(--neon-intensity)) #ff4444);
    animation: iconFloat 3s ease-in-out infinite;
}

.ad-blocker-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 68, 68, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: iconGlow 2s ease-in-out infinite;
}

.ad-blocker-warning-subtitle {
    color: #ff4444 !important;
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 0 calc(6px * var(--neon-intensity)) #ff4444 !important;
    position: relative;
    display: inline-block;
}

.ad-blocker-warning-subtitle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background: #ff4444;
    border-radius: 50%;
    box-shadow: 0 0 calc(8px * var(--neon-intensity)) #ff4444;
    animation: subtitleDot 2s ease-in-out infinite;
}

.ad-blocker-warning-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background: #ff4444;
    border-radius: 50%;
    box-shadow: 0 0 calc(8px * var(--neon-intensity)) #ff4444;
    animation: subtitleDot 2s ease-in-out infinite reverse;
}

.ad-blocker-warning-text {
    color: #ffffff !important;
    margin: 0 0 30px 0;
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 calc(8px * var(--neon-intensity)) rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    position: relative;
}

.ad-blocker-warning-text::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    border-radius: 1px;
}

.ad-blocker-warning-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    border-radius: 1px;
}

/* ID-based styles for specific elements */
#adBlockerWarningSubtitle {
    color: #ff4444 !important;
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 0 calc(6px * var(--neon-intensity)) #ff4444 !important;
    position: relative;
    display: inline-block;
    text-align: center;
}

#adBlockerWarningSubtitle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background: #ff4444;
    border-radius: 50%;
    box-shadow: 0 0 calc(8px * var(--neon-intensity)) #ff4444;
    animation: subtitleDot 2s ease-in-out infinite;
}

#adBlockerWarningSubtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background: #ff4444;
    border-radius: 50%;
    box-shadow: 0 0 calc(8px * var(--neon-intensity)) #ff4444;
    animation: subtitleDot 2s ease-in-out infinite reverse;
}

#adBlockerWarningText {
    color: #ffffff !important;
    margin: 0 0 30px 0;
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 calc(8px * var(--neon-intensity)) rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    position: relative;
    text-align: center;
}

#adBlockerWarningText::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    border-radius: 1px;
}

#adBlockerWarningText::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    border-radius: 1px;
}

.ad-blocker-steps {
    margin-bottom: 35px;
    text-align: left;
}

.ad-blocker-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 68, 68, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ad-blocker-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 68, 68, 0.1) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.ad-blocker-step:hover::before {
    left: 100%;
}

.ad-blocker-step:hover {
    background: rgba(255, 68, 68, 0.08);
    border-color: rgba(255, 68, 68, 0.4);
    transform: translateX(5px);
}

.step-number {
    background: #ff4444;
    color: #000;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 calc(8px * var(--neon-intensity)) #ff4444;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff4444, #ff6666, #ff4444);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ad-blocker-step:hover .step-number::before {
    opacity: 1;
    animation: stepNumberGlow 1s ease-in-out infinite;
}

.step-content h5 {
    color: #ff4444;
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 0 calc(4px * var(--neon-intensity)) #ff4444;
}

.step-content p {
    color: #ffffff;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

.ad-blocker-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.ad-blocker-btn {
    padding: 15px 30px;
    border: 2px solid #ff4444;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

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

.ad-blocker-btn.primary {
    background: #ff4444;
    color: #000;
}

.ad-blocker-btn.primary:hover {
    background: rgba(255, 68, 68, 0.8);
    box-shadow: 0 0 calc(20px * var(--neon-intensity)) #ff4444;
    transform: scale(1.05) translateY(-2px);
}

.ad-blocker-btn.secondary {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
}

.ad-blocker-btn.secondary:hover {
    background: rgba(255, 68, 68, 0.2);
    box-shadow: 0 0 calc(15px * var(--neon-intensity)) #ff4444;
    transform: scale(1.05) translateY(-2px);
}

.ad-blocker-btn i {
    font-size: 18px;
}

.ad-blocker-btn:active {
    transform: scale(0.98) translateY(0px);
}

/* Ad Disabled Message */
.ad-disabled-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 5000;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 15px 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 calc(15px * var(--neon-intensity)) #ffc107;
    animation: adDisabledSlideIn 0.5s ease-out;
}

.ad-disabled-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffc107;
}

.ad-disabled-content i {
    font-size: 20px;
    text-shadow: 0 0 calc(5px * var(--neon-intensity)) #ffc107;
}

.ad-disabled-content span {
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 0 calc(3px * var(--neon-intensity)) #ffc107;
}

/* Animations */
@keyframes adBlockerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes iconGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes stepNumberGlow {
    0%, 100% {
        box-shadow: 0 0 calc(8px * var(--neon-intensity)) #ff4444;
    }
    50% {
        box-shadow: 0 0 calc(15px * var(--neon-intensity)) #ff4444, 0 0 calc(25px * var(--neon-intensity)) rgba(255, 68, 68, 0.5);
    }
}

@keyframes modalBounce {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes subtitleDot {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

@keyframes adDisabledSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive for Ad Blocker Warning */
@media screen and (max-width: 768px) {
    .ad-blocker-warning-content {
        max-width: 95%;
        margin: 20px;
        max-height: 95vh;
    }
    
    .ad-blocker-warning-header h3 {
        font-size: 22px;
    }
    
    .ad-blocker-warning-body {
        padding: 25px;
    }
    
    .ad-blocker-warning-subtitle {
        font-size: 20px;
        color: #ff4444 !important;
        text-shadow: 0 0 calc(5px * var(--neon-intensity)) #ff4444 !important;
    }
    
    .ad-blocker-warning-text {
        font-size: 15px;
        color: #ffffff !important;
        text-shadow: 0 0 calc(6px * var(--neon-intensity)) rgba(255, 255, 255, 0.8) !important;
    }
    
    #adBlockerWarningSubtitle {
        font-size: 20px;
        color: #ff4444 !important;
        text-shadow: 0 0 calc(5px * var(--neon-intensity)) #ff4444 !important;
    }
    
    #adBlockerWarningText {
        font-size: 15px;
        color: #ffffff !important;
        text-shadow: 0 0 calc(5px * var(--neon-intensity)) rgba(255, 255, 255, 0.8) !important;
    }
    
    .ad-blocker-step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .ad-blocker-actions {
        flex-direction: column;
    }
    
    .ad-blocker-btn {
        width: 100%;
        min-width: auto;
    }
    
    .ad-disabled-message {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

/* ===== GRAPHICS QUALITY NOTIFICATION ===== */
.graphics-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0, 0, 0, 0.98);
    border: 3px solid var(--neon-color);
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    box-shadow: 0 0 40px rgba(var(--neon-rgb), 0.7),
                0 0 80px rgba(var(--neon-rgb), 0.4),
                inset 0 0 30px rgba(var(--neon-rgb), 0.1);
    z-index: 99999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.graphics-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

/* Notification overlay backdrop */
.graphics-notification.show::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.graphics-notification-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.graphics-notification-icon {
    font-size: 64px;
    line-height: 1;
    flex-shrink: 0;
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 20px rgba(255, 200, 0, 0.5));
    }
    50% {
        transform: scale(1.15);
        filter: brightness(1.3) drop-shadow(0 0 30px rgba(255, 200, 0, 0.8));
    }
}

.graphics-notification-text {
    flex: 1;
}

.graphics-notification-text h4 {
    color: var(--neon-color);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 0 15px rgba(var(--neon-rgb), 0.9);
    letter-spacing: 0.5px;
}

.graphics-notification-text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.graphics-notification-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

.graphics-notification-btn {
    background: var(--neon-color);
    color: #000;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(var(--neon-rgb), 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.graphics-notification-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(var(--neon-rgb), 1);
    filter: brightness(1.2);
}

.graphics-notification-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.graphics-notification-close:hover {
    background: rgba(255, 0, 0, 0.8);
    border-color: rgba(255, 0, 0, 1);
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .graphics-notification {
        max-width: 90%;
        padding: 25px 20px;
    }
    
    .graphics-notification-icon {
        font-size: 48px;
    }
    
    .graphics-notification-text h4 {
        font-size: 18px;
    }
    
    .graphics-notification-text p {
        font-size: 14px;
    }
    
    .graphics-notification-btn {
        padding: 12px 24px;
        font-size: 13px;
    }
}
