/* style.css */

/* CSS Custom Properties for better theming support */
:root {
    --primary-color: #00ff41;
    --secondary-color: #00cc33;
    --background-color: #000000;
    --text-color: #ffffff;
    --accent-color: #ccc;
    --border-color: #333;
    --glow-color: rgba(0, 255, 65, 0.5);
    --transition-speed: 0.3s;
    --border-radius: 8px;
}

/* Fallback for browsers without CSS custom properties */
* {
    margin: 0;
    padding: 0;
    /* Use standard box-sizing with fallback */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    overflow: auto;
    background: rgba(0, 0, 0, 0);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    /* Fallback for older browsers */
    background: linear-gradient(135deg, #00000000 0%, #1a1a1a00 50%, #00000000 100%);
    color: #00ff41;
    min-height: 100vh;
    overflow-x: hidden;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: -3;
    /* behind enhanced rainbow matrix canvas */
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.05) 2px,
            rgba(0, 255, 65, 0.05) 4px);
}

/* Enhanced matrix canvas styling */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.8;
    /* Fallback for browsers without mix-blend-mode support */
    opacity: 0.6;
    mix-blend-mode: screen;
}

/* Parallax layers styling */
#particleCanvas {
    /* Fallback for browsers without mix-blend-mode support */
    opacity: 0.7;
    mix-blend-mode: screen;
}

/* Enhanced container for parallax depth */
.container {
    position: relative;
    z-index: 10;
}

/* Smooth scrolling for better parallax effect */
html {
    /* Smooth scrolling with fallback */
    scroll-behavior: smooth;
    /* Fallback for older browsers - removed -webkit-overflow-scrolling as it's deprecated */
}

/* Enhanced sections with depth */
.features,
.getting-started,
.shortcuts,
.cta {
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    margin: 30px 0;
    padding: 30px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 65, 0.1);
}

/* Performance optimization for mobile */
@media (max-width: 768px) {

    /* Reduce motion for better mobile performance */
    .features,
    .getting-started,
    .shortcuts,
    .cta {
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        transform: none !important;
        -webkit-transition: none !important;
        -moz-transition: none !important;
        -ms-transition: none !important;
        transition: none !important;
    }

    /* Simplify backgrounds on mobile */
    .matrix-bg {
        opacity: 0.02;
    }

    /* Disable backdrop-filter on mobile for better performance */
    .features,
    .getting-started,
    .shortcuts,
    .cta {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(0, 0, 0, 0.8);
        /* Solid fallback */
    }
}

/* High performance mode for low-end devices */
@media (prefers-reduced-motion: reduce) {

    /* Disable parallax for users who prefer reduced motion */
    * {
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        transform: none !important;
        -webkit-transition: none !important;
        -moz-transition: none !important;
        -ms-transition: none !important;
        transition: none !important;
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    -webkit-filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.5));
    filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.5));
    -webkit-animation: glow 2s ease-in-out infinite alternate;
    -moz-animation: glow 2s ease-in-out infinite alternate;
    -ms-animation: glow 2s ease-in-out infinite alternate;
    animation: glow 2s ease-in-out infinite alternate;
}

@-webkit-keyframes glow {
    from {
        -webkit-filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.5));
        filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.5));
    }

    to {
        -webkit-filter: drop-shadow(0 0 30px rgba(0, 255, 65, 0.8)) drop-shadow(0 0 40px rgba(0, 255, 65, 0.3));
        filter: drop-shadow(0 0 30px rgba(0, 255, 65, 0.8)) drop-shadow(0 0 40px rgba(0, 255, 65, 0.3));
    }
}

@-moz-keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.5));
    }

    to {
        filter: drop-shadow(0 0 30px rgba(0, 255, 65, 0.8)) drop-shadow(0 0 40px rgba(0, 255, 65, 0.3));
    }
}

@keyframes glow {
    from {
        -webkit-filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.5));
        filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.5));
    }

    to {
        -webkit-filter: drop-shadow(0 0 30px rgba(0, 255, 65, 0.8)) drop-shadow(0 0 40px rgba(0, 255, 65, 0.3));
        filter: drop-shadow(0 0 30px rgba(0, 255, 65, 0.8)) drop-shadow(0 0 40px rgba(0, 255, 65, 0.3));
    }
}

.header .tagline {
    font-size: 1.2rem;
    color: #cccccc23;
    margin-bottom: 30px;
}

.version-badge {
    background: #00ff41;
    /* Fallback for older browsers */
    background: linear-gradient(45deg, #00ff41, #00cc33);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
}

.features {
    /* Fallback for older browsers */
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;

    /* Modern grid layout */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

/* Fallback spacing for flexbox */
.features>.feature {
    margin: 15px;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 300px;
    flex: 1 1 300px;
}

.feature {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    -webkit-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -moz-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -ms-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-perspective: 1000px;
    -moz-perspective: 1000px;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    opacity: 0;
    -webkit-transition: opacity 0.4s ease;
    -moz-transition: opacity 0.4s ease;
    -ms-transition: opacity 0.4s ease;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature:hover {
    border-color: #00ff41;
    -webkit-box-shadow:
        0 0 30px rgba(0, 255, 65, 0.4),
        0 0 60px rgba(0, 255, 65, 0.2),
        0 0 90px rgba(0, 255, 65, 0.1),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    -moz-box-shadow:
        0 0 30px rgba(0, 255, 65, 0.4),
        0 0 60px rgba(0, 255, 65, 0.2),
        0 0 90px rgba(0, 255, 65, 0.1),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    box-shadow:
        0 0 30px rgba(0, 255, 65, 0.4),
        0 0 60px rgba(0, 255, 65, 0.2),
        0 0 90px rgba(0, 255, 65, 0.1),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    -webkit-transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.05);
    -moz-transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.05);
    -ms-transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.05);
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.05);
    background: rgba(0, 20, 0, 0.8);
}

.feature:hover::before {
    opacity: 1;
}

.feature:active {
    -webkit-transform: translateY(-10px) rotateX(2deg) rotateY(2deg) scale(1.02);
    -moz-transform: translateY(-10px) rotateX(2deg) rotateY(2deg) scale(1.02);
    -ms-transform: translateY(-10px) rotateX(2deg) rotateY(2deg) scale(1.02);
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg) scale(1.02);
    -webkit-transition: all 0.1s ease;
    -moz-transition: all 0.1s ease;
    -ms-transition: all 0.1s ease;
    transition: all 0.1s ease;
}

.feature .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    -webkit-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -moz-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -ms-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-transform-origin: center;
    -moz-transform-origin: center;
    -ms-transform-origin: center;
    transform-origin: center;
    position: relative;
    z-index: 2;
}

.feature:hover .icon {
    -webkit-transform: translateZ(20px) rotateY(360deg) scale(1.2);
    -moz-transform: translateZ(20px) rotateY(360deg) scale(1.2);
    -ms-transform: translateZ(20px) rotateY(360deg) scale(1.2);
    transform: translateZ(20px) rotateY(360deg) scale(1.2);
    -webkit-filter: drop-shadow(0 0 15px rgba(0, 255, 65, 0.8));
    filter: drop-shadow(0 0 15px rgba(0, 255, 65, 0.8));
    -webkit-animation: iconPulse 2s ease-in-out infinite;
    -moz-animation: iconPulse 2s ease-in-out infinite;
    -ms-animation: iconPulse 2s ease-in-out infinite;
    animation: iconPulse 2s ease-in-out infinite;
}

@-webkit-keyframes iconPulse {

    0%,
    100% {
        -webkit-transform: translateZ(20px) rotateY(360deg) scale(1.2);
        transform: translateZ(20px) rotateY(360deg) scale(1.2);
    }

    50% {
        -webkit-transform: translateZ(25px) rotateY(360deg) scale(1.3);
        transform: translateZ(25px) rotateY(360deg) scale(1.3);
        -webkit-filter: drop-shadow(0 0 25px rgba(0, 255, 65, 1));
        filter: drop-shadow(0 0 25px rgba(0, 255, 65, 1));
    }
}

@-moz-keyframes iconPulse {

    0%,
    100% {
        transform: translateZ(20px) rotateY(360deg) scale(1.2);
    }

    50% {
        transform: translateZ(25px) rotateY(360deg) scale(1.3);
        filter: drop-shadow(0 0 25px rgba(0, 255, 65, 1));
    }
}

@keyframes iconPulse {

    0%,
    100% {
        -webkit-transform: translateZ(20px) rotateY(360deg) scale(1.2);
        -moz-transform: translateZ(20px) rotateY(360deg) scale(1.2);
        -ms-transform: translateZ(20px) rotateY(360deg) scale(1.2);
        transform: translateZ(20px) rotateY(360deg) scale(1.2);
    }

    50% {
        -webkit-transform: translateZ(25px) rotateY(360deg) scale(1.3);
        -moz-transform: translateZ(25px) rotateY(360deg) scale(1.3);
        -ms-transform: translateZ(25px) rotateY(360deg) scale(1.3);
        transform: translateZ(25px) rotateY(360deg) scale(1.3);
        -webkit-filter: drop-shadow(0 0 25px rgba(0, 255, 65, 1));
        filter: drop-shadow(0 0 25px rgba(0, 255, 65, 1));
    }
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #00ff41;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.feature:hover h3 {
    color: #ffffff;
    text-shadow:
        0 0 10px rgba(0, 255, 65, 0.8),
        0 0 20px rgba(0, 255, 65, 0.6),
        0 0 30px rgba(0, 255, 65, 0.4);
    transform: translateZ(10px);
}

.feature p {
    color: #ccc;
    line-height: 1.6;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.feature:hover p {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.144);
    transform: translateZ(5px);
}

.getting-started {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    border-radius: 12px;
    padding: 30px;
    margin: 50px 0;
}

.getting-started h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #00ff41;
    text-align: center;
}

.steps {
    /* Fallback for older browsers */
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;

    /* Modern grid layout */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Fallback spacing for flexbox */
.steps>.step {
    margin: 10px;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 250px;
    flex: 1 1 250px;
}

.step {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.step-number {
    background: #00ff41;
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.step h4 {
    color: #00ff41;
    margin-bottom: 10px;
}

.step p {
    color: #ccc;
    font-size: 0.9rem;
}

.shortcuts {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.shortcuts h2 {
    color: #00ff41;
    margin-bottom: 20px;
    text-align: center;
}

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

.shortcut {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(0, 255, 65, 0.05);
    border-radius: 6px;
}

.shortcut dt {
    font-weight: normal;
}

.shortcut dd {
    margin: 0;
}

.key {
    background: #00ff41;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    font-size: 0.8rem;
    border: none;
}

.cta {
    text-align: center;
    margin: 50px 0;
}

.btn {
    background: #00ff41;
    /* Fallback for older browsers */
    background: linear-gradient(45deg, #00ff41, #00cc33);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.btn:hover {
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 8px 25px rgba(0, 255, 65, 0.4);
    -moz-box-shadow: 0 8px 25px rgba(0, 255, 65, 0.4);
    box-shadow: 0 8px 25px rgba(0, 255, 65, 0.4);
}

.btn.secondary {
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
}

.disclaimer {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    border-radius: 8px;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
}

.disclaimer h3 {
    color: #ff4444;
    margin-bottom: 10px;
}

.disclaimer p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 20px 10px;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

.image {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.image:hover {
    transform: rotate(5deg);
}

.image:active {
    transform: scale(1.2);
}

/* Additional styles for semantic HTML and accessibility */
.getting-started-intro {
    text-align: center;
    color: #ccc;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-link {
    display: inline-block;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link:focus {
    outline: 2px solid #00ff41;
    outline-offset: 4px;
    border-radius: 4px;
}

.social-icon {
    width: 100%;
    height: auto;
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* YouTube Icon Hover - Red Shadow */
.social-link:nth-child(1) .social-icon:hover {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 0, 0, 0.932));
    transform: scale(1.1);
}

/* Twitter/X Icon Hover - Sky Blue Shadow */
.social-link:nth-child(2) .social-icon:hover {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(0, 220, 228, 0.89));
    transform: scale(1.1);
}

/* Facebook Icon Hover - Blue Shadow */
.social-link:nth-child(3) .social-icon:hover {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(9, 5, 255, 0.877));
    transform: scale(1.1);
}

/* App Icon Styles */
.app-link {
    position: relative;
}

.app-icon {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

/* App Icon Hover - Green Shadow (matching site theme) */
.social-link:nth-child(4).social-icon:hover {
    filter: brightness(1.2) drop-shadow(0 0 15px rgb(0, 255, 64));
    transform: scale(1.15);
}

/* App Icon Hover Effect - Switch to hover image */
.social-icon-app:hover .app-icon {
    content: url('gooimage/app-hover.png');
}

/* Legacy styles for backward compatibility */
.social-icon-red:hover {
    filter: brightness(1.2) drop-shadow(0 0 10px rgb(255, 0, 0));
}

.social-icon-skyblue:hover {
    filter: brightness(1.2) drop-shadow(0 0 10px rgb(0, 195, 255));
}

.social-icon-blue:hover {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(38, 0, 255, 0.986));
}

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

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

.footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.footer-text {
    color: rgba(102, 102, 102, 0.6);
    font-size: 0.9rem;
}

/* Focus styles for better accessibility */
.btn:focus,
.feature:focus-within {
    outline: 2px solid #00ff41;
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #00ff41;
    color: #000;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature {
        border-width: 2px;
    }

    .btn {
        border: 2px solid #00ff41;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .header h1 {
        animation: none;
        filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.5));
    }
}

/* Too
l Preview Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-container {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 20, 0, 0.95));
    border: 2px solid #00ff41;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 0 50px rgba(0, 255, 65, 0.3),
        0 0 100px rgba(0, 255, 65, 0.1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.1);
}

.modal-title {
    color: #00ff41;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.modal-close {
    background: none;
    border: none;
    color: #00ff41;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    transform: rotate(90deg);
}

.modal-content {
    padding: 0;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
}

.tab-button:hover {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
}

.tab-button.active {
    color: #00ff41;
    background: rgba(0, 255, 65, 0.2);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

/* Tab Panels */
.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
    padding: 25px;
    min-height: 400px;
}

.tab-panel.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tool Description */
.tool-description {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.6;
}

/* Demo Container */
.demo-container {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
}

.demo-preview {
    color: #00ff41;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Mini Console Styles */
.mini-console {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ff41;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 255, 65, 0.1);
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.console-title {
    color: #00ff41;
    font-weight: bold;
}

.console-controls {
    display: flex;
    gap: 10px;
}

.console-btn {
    background: rgba(0, 255, 65, 0.2);
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.console-btn:hover {
    background: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.console-output {
    padding: 15px;
    min-height: 150px;
    max-height: 200px;
    overflow-y: auto;
    color: #00ff41;
    font-size: 0.9rem;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.5);
}

.console-input-container {
    display: flex;
    align-items: flex-start;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(0, 255, 65, 0.3);
}

.console-prompt {
    color: #00ff41;
    margin-right: 10px;
    font-weight: bold;
    line-height: 1.4;
}

#consoleInput {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff41;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    min-height: 20px;
}

#consoleInput::placeholder {
    color: rgba(0, 255, 65, 0.5);
}

/* Network Diagram Styles */
.network-diagram {
    position: relative;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
}

#networkSvg {
    border-radius: 4px;
    background: radial-gradient(circle at center, rgba(0, 20, 0, 0.3), rgba(0, 0, 0, 0.8));
}

.network-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cccccc59;
    font-size: 0.9rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.legend-color.secure {
    background: #00ff41;
    color: #00ff41;
}

.legend-color.vulnerable {
    background: #ff4444;
    color: #ff4444;
}

.legend-color.scanning {
    background: #ffff00;
    color: #ffff00;
    animation: scanPulse 1.5s ease-in-out infinite;
}

@keyframes scanPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .tab-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .tab-panel {
        padding: 20px;
    }

    .network-legend {
        gap: 15px;
    }

    .legend-item {
        font-size: 0.8rem;
    }
}

/* Accessibility improvements */
.modal-overlay:focus-within .modal-container {
    outline: 2px solid #00ff41;
    outline-offset: 2px;
}

.tab-button:focus {
    outline: 2px solid #00ff41;
    outline-offset: -2px;
}

.console-btn:focus {
    outline: 2px solid #00ff41;
    outline-offset: 2px;
}

/* Easter Egg System Styles */
.easter-egg-celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.easter-egg-celebration.active {
    opacity: 1;
    visibility: visible;
}

.celebration-content {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.2), rgba(0, 200, 255, 0.2));
    border: 2px solid #00ff41;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    transform: scale(0.5) rotateY(180deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 0 50px rgba(0, 255, 65, 0.5),
        0 0 100px rgba(0, 255, 65, 0.3),
        inset 0 0 30px rgba(0, 255, 65, 0.1);
}

.easter-egg-celebration.active .celebration-content {
    transform: scale(1) rotateY(0deg);
}

.celebration-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: eggBounce 2s ease-in-out infinite;
}

@keyframes eggBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(5deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(-5px) rotate(-5deg);
    }
}

.celebration-title {
    color: #00ff41;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
    }

    to {
        text-shadow: 0 0 30px rgba(0, 255, 65, 1), 0 0 40px rgba(0, 255, 65, 0.5);
    }
}

.celebration-description {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.celebration-reward {
    background: rgba(0, 255, 65, 0.2);
    border: 1px solid rgba(0, 255, 65, 0.5);
    border-radius: 10px;
    padding: 10px 20px;
    color: #00ff41;
    font-weight: bold;
    display: inline-block;
    animation: rewardPulse 1.5s ease-in-out infinite;
}

@keyframes rewardPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
    }
}

/* Special Mode Indicator */
.special-mode-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #ff8c00, #ff6600);
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 9999;
    animation: specialModeGlow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

@keyframes specialModeGlow {
    from {
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
    }

    to {
        box-shadow: 0 0 30px rgba(255, 140, 0, 0.8), 0 0 40px rgba(255, 140, 0, 0.3);
    }
}

/* Konami Effect */
.konami-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: #00ff41;
    font-family: monospace;
    font-weight: bold;
    z-index: 9998;
    text-shadow: 0 0 30px rgba(0, 255, 65, 1);
    animation: konamiFloat 3s ease-in-out;
    pointer-events: none;
}

@keyframes konamiFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotateY(180deg);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotateY(0deg);
    }

    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateY(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) rotateY(-180deg);
    }
}

/* Matrix Glitch Effect */
.matrix-glitch {
    animation: matrixGlitchEffect 2s ease-in-out;
}

@keyframes matrixGlitchEffect {

    0%,
    100% {
        filter: none;
    }

    10% {
        filter: hue-rotate(90deg) saturate(2);
    }

    20% {
        filter: hue-rotate(180deg) saturate(3);
    }

    30% {
        filter: hue-rotate(270deg) saturate(2);
    }

    40% {
        filter: hue-rotate(360deg) saturate(1);
    }

    50% {
        filter: invert(1) hue-rotate(180deg);
    }

    60% {
        filter: hue-rotate(90deg) saturate(2);
    }

    70% {
        filter: hue-rotate(270deg) saturate(3);
    }

    80% {
        filter: hue-rotate(180deg) saturate(2);
    }

    90% {
        filter: hue-rotate(360deg) saturate(1);
    }
}

/* Hacker Access Effect */
.hacker-access-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #00ff41;
    font-family: monospace;
    font-weight: bold;
    z-index: 9998;
    text-shadow: 0 0 30px rgba(0, 255, 65, 1);
    animation: hackerAccess 2s ease-in-out;
    pointer-events: none;
}

@keyframes hackerAccess {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotateX(90deg);
        filter: blur(10px);
    }

    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1) rotateX(0deg);
        filter: blur(0px);
    }

    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateX(0deg);
        filter: blur(0px);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) rotateX(-90deg);
        filter: blur(5px);
    }
}

/* Leet Effect */
.leet-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    color: #00ff41;
    font-family: monospace;
    font-weight: bold;
    z-index: 9998;
    text-shadow: 0 0 50px rgba(0, 255, 65, 1);
    animation: leetCelebration 2s ease-in-out;
    pointer-events: none;
}

@keyframes leetCelebration {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }

    25% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3) rotate(360deg);
    }

    75% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(720deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(1080deg);
    }
}

/* Scroll Effect */
.scroll-effect {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #00ff41;
    font-family: monospace;
    font-weight: bold;
    z-index: 9998;
    text-shadow: 0 0 20px rgba(0, 255, 65, 1);
    animation: scrollCelebration 2.5s ease-in-out;
    pointer-events: none;
}

@keyframes scrollCelebration {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(50px) scale(0.5);
    }

    20% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1.1);
    }

    80% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px) scale(0.8);
    }
}

/* Click Celebration Effect */
.click-celebration {
    animation: clickCelebrationEffect 1.5s ease-in-out;
}

@keyframes clickCelebrationEffect {

    0%,
    100% {
        transform: none;
    }

    25% {
        transform: scale(1.02) rotate(1deg);
    }

    50% {
        transform: scale(1.05) rotate(-1deg);
    }

    75% {
        transform: scale(1.02) rotate(0.5deg);
    }
}

/* Enhanced effects for special mode */
.special-mode .feature:hover {
    transform: translateY(-20px) rotateX(10deg) rotateY(10deg) scale(1.1);
    box-shadow:
        0 0 40px rgba(0, 255, 65, 0.6),
        0 0 80px rgba(0, 255, 65, 0.4),
        0 0 120px rgba(0, 255, 65, 0.2),
        inset 0 0 30px rgba(0, 255, 65, 0.2);
}

.special-mode #matrixCanvas {
    opacity: 1;
    mix-blend-mode: screen;
    filter: saturate(1.5) brightness(1.2);
}

.special-mode #particleCanvas {
    opacity: 1;
    filter: saturate(2) brightness(1.3);
}

/* Enhanced click effects */
.enhanced-clicks * {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.enhanced-clicks *:active {
    transform: scale(0.95);
    filter: brightness(1.2) saturate(1.5);
}

/* Theme unlock indicators */
.matrix-theme-unlocked::after,
.leet-theme-unlocked::after,
.console-theme-unlocked::after,
.advanced-tools-unlocked::after {
    content: '🔓';
    position: fixed;
    top: 60px;
    right: 20px;
    font-size: 1.5rem;
    animation: unlockIndicator 3s ease-in-out;
    z-index: 9999;
}

@keyframes unlockIndicator {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    20% {
        opacity: 1;
        transform: scale(1.2) rotate(360deg);
    }

    80% {
        opacity: 1;
        transform: scale(1) rotate(360deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.8) rotate(720deg);
    }
}

/* Progress Tracking and Badge System Styles */
.progress-panel {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.progress-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.progress-toggle {
    background: rgba(0, 255, 65, 0.2);
    border: 1px solid #00ff41;
    color: #00ff41;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.progress-toggle:hover {
    background: rgba(0, 255, 65, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.progress-content {
    display: none;
}

.level-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.level-display {
    font-size: 1.4rem;
    font-weight: bold;
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.points-display {
    font-size: 1rem;
    color: #ccc;
}

.progress-bar-container {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #00cc33);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 5px;
}

.achievements-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.achievement-count,
.badge-count {
    text-align: center;
    font-size: 0.9rem;
}

.achievement-count span:first-child,
.badge-count span:first-child {
    font-weight: bold;
    color: #00ff41;
    font-size: 1.1rem;
}

/* Achievement Notification Styles */
.achievement-notification {
    position: fixed;
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.2), rgba(0, 200, 255, 0.2));
    border: 2px solid #00ff41;
    border-radius: 15px;
    padding: 20px;
    min-width: 350px;
    z-index: 10000;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 0 30px rgba(0, 255, 65, 0.4),
        0 0 60px rgba(0, 255, 65, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.achievement-notification.show {
    right: 20px;
}

.achievement-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.achievement-icon {
    font-size: 3rem;
    animation: achievementBounce 2s ease-in-out infinite;
}

@keyframes achievementBounce {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(5deg);
    }

    50% {
        transform: scale(1) rotate(0deg);
    }

    75% {
        transform: scale(1.05) rotate(-5deg);
    }
}

.achievement-text {
    flex: 1;
}

.achievement-title {
    color: #00ff41;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.achievement-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.achievement-description {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.achievement-points {
    color: #00ff41;
    font-weight: bold;
    font-size: 1rem;
}

.level-up {
    color: #ffff00;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 5px;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
    animation: levelUpGlow 1s ease-in-out infinite alternate;
}

@keyframes levelUpGlow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
    }

    to {
        text-shadow: 0 0 20px rgba(255, 255, 0, 1), 0 0 30px rgba(255, 255, 0, 0.5);
    }
}

/* Badge Notification Styles */
.badge-notification {
    position: fixed;
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
    min-width: 350px;
    z-index: 10001;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 215, 0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.badge-notification.show {
    right: 20px;
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-icon {
    font-size: 3rem;
    animation: badgeRotate 3s ease-in-out infinite;
}

@keyframes badgeRotate {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(90deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }

    75% {
        transform: scale(1.1) rotate(270deg);
    }
}

.badge-text {
    flex: 1;
}

.badge-title {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.badge-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.badge-tier {
    color: #ffd700;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.badge-tier.bronze {
    color: #cd7f32;
}

.badge-tier.silver {
    color: #c0c0c0;
}

.badge-tier.gold {
    color: #ffd700;
}

.badge-tier.platinum {
    color: #e5e4e2;
}

.badge-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Developer Mode Indicator */
.developer-mode-indicator {
    position: fixed;
    top: 70px;
    right: 20px;
    background: linear-gradient(45deg, #ff8c00, #ff6600);
    color: #000;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: developerModeGlow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

@keyframes developerModeGlow {
    from {
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
        transform: scale(1);
    }

    to {
        box-shadow: 0 0 30px rgba(255, 140, 0, 0.8), 0 0 40px rgba(255, 140, 0, 0.3);
        transform: scale(1.05);
    }
}

.dev-mode-icon {
    font-size: 1.2rem;
    animation: rocketPulse 1.5s ease-in-out infinite;
}

@keyframes rocketPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Special Mode Celebration */
.special-mode-celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.special-mode-celebration.show {
    opacity: 1;
    visibility: visible;
}

.special-mode-celebration .celebration-content {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(255, 215, 0, 0.2));
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    transform: scale(0.5) rotateY(180deg);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 0 50px rgba(255, 215, 0, 0.5),
        0 0 100px rgba(255, 215, 0, 0.3),
        inset 0 0 30px rgba(255, 215, 0, 0.1);
}

.special-mode-celebration.show .celebration-content {
    transform: scale(1) rotateY(0deg);
}

.special-mode-celebration .celebration-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: specialCelebrationBounce 2s ease-in-out infinite;
}

@keyframes specialCelebrationBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-15px) rotate(5deg) scale(1.1);
    }

    50% {
        transform: translateY(0) rotate(0deg) scale(1.2);
    }

    75% {
        transform: translateY(-10px) rotate(-5deg) scale(1.1);
    }
}

.special-mode-celebration .celebration-title {
    color: #ffd700;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: specialTitleGlow 2s ease-in-out infinite alternate;
}

@keyframes specialTitleGlow {
    from {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }

    to {
        text-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.5);
    }
}

.special-mode-celebration .celebration-description {
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.celebration-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    color: #ffd700;
    font-weight: bold;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Enhanced Developer Mode Styles */
.developer-mode .feature:hover {
    transform: translateY(-20px) rotateX(15deg) rotateY(15deg) scale(1.15);
    box-shadow:
        0 0 50px rgba(255, 140, 0, 0.6),
        0 0 100px rgba(255, 140, 0, 0.4),
        0 0 150px rgba(255, 140, 0, 0.2),
        inset 0 0 40px rgba(255, 140, 0, 0.2);
    border-color: #ff8c00;
}

.developer-mode #matrixCanvas {
    opacity: 1.2;
    filter: saturate(2) brightness(1.5) hue-rotate(30deg);
}

.developer-mode #particleCanvas {
    opacity: 1.2;
    filter: saturate(2.5) brightness(1.5) hue-rotate(30deg);
}

.developer-mode .btn {
    background: linear-gradient(45deg, #ff8c00, #ff6600);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

.developer-mode .btn:hover {
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.6);
    transform: translateY(-3px) scale(1.05);
}

/* Mobile optimizations for progress and badges */
@media (max-width: 768px) {
    .progress-panel {
        left: 10px;
        top: 10px;
        min-width: 200px;
        transform: translateX(-220px);
    }

    .achievement-notification,
    .badge-notification {
        right: -350px;
        min-width: 300px;
        padding: 15px;
    }

    .achievement-notification.show,
    .badge-notification.show {
        right: 10px;
    }

    .achievement-content,
    .badge-content {
        gap: 10px;
    }

    .achievement-icon,
    .badge-icon {
        font-size: 2.5rem;
    }

    .achievement-title,
    .badge-title {
        font-size: 1rem;
    }

    .achievement-name,
    .badge-name {
        font-size: 1rem;
    }

    .developer-mode-indicator {
        top: 60px;
        right: 10px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .special-mode-celebration .celebration-content {
        padding: 30px 20px;
        max-width: 90%;
    }

    .special-mode-celebration .celebration-title {
        font-size: 2rem;
    }

    .special-mode-celebration .celebration-icon {
        font-size: 4rem;
    }

    .celebration-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-item {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Mobile optimizations for easter eggs */
@media (max-width: 768px) {
    .celebration-content {
        padding: 30px 20px;
        max-width: 90%;
    }

    .celebration-title {
        font-size: 1.5rem;
    }

    .celebration-icon {
        font-size: 3rem;
    }

    .konami-effect,
    .hacker-access-effect {
        font-size: 2.5rem;
    }

    .leet-effect {
        font-size: 4rem;
    }

    .scroll-effect {
        font-size: 1.5rem;
    }

    .special-mode-indicator {
        top: 10px;
        right: 10px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* Accessibility improvements for easter eggs */
@media (prefers-reduced-motion: reduce) {

    .easter-egg-celebration,
    .celebration-content,
    .celebration-icon,
    .celebration-title,
    .celebration-reward,
    .konami-effect,
    .hacker-access-effect,
    .leet-effect,
    .scroll-effect,
    .special-mode-indicator {
        animation: none !important;
        transition: opacity 0.3s ease !important;
    }

    .matrix-glitch {
        animation: none !important;
        filter: none !important;
    }

    .click-celebration {
        animation: none !important;
        transform: none !important;
    }
}

/* Script Marketplace Styles */
.script-marketplace {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin: 50px 0;
    position: relative;
}

.marketplace-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.marketplace-header h2 {
    color: #00ff41;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.marketplace-tagline {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.marketplace-counters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cart-counter,
.favorites-counter,
.history-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 25px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cart-counter:hover,
.favorites-counter:hover,
.history-counter:hover {
    background: rgba(0, 255, 65, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
}

.counter-text {
    color: #00ff41;
    font-weight: bold;
    font-size: 0.9rem;
}

.counter-icon {
    font-size: 1.2rem;
}

.counter-number {
    background: #00ff41;
    color: #000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    animation: counterPulse 0.3s ease;
}

@keyframes counterPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.marketplace-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 25px;
    padding: 5px;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff41;
    padding: 10px 15px;
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(0, 255, 65, 0.5);
}

.search-btn {
    background: rgba(0, 255, 65, 0.2);
    border: none;
    color: #00ff41;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(0, 255, 65, 0.3);
    transform: scale(1.05);
}

.filter-container {
    display: flex;
    gap: 15px;
}

.category-filter,
.difficulty-filter {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: #00ff41;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.category-filter:hover,
.difficulty-filter:hover {
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.category-filter option,
.difficulty-filter option {
    background: #000;
    color: #00ff41;
}

.script-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.script-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.script-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.script-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #00ff41;
    box-shadow:
        0 12px 40px rgba(0, 255, 65, 0.3),
        0 0 20px rgba(0, 255, 65, 0.2);
}

.script-card:hover::before {
    opacity: 1;
}

.script-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.script-title {
    color: #00ff41;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
    flex: 1;
}

.script-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: #00ff41;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn:hover {
    background: rgba(0, 255, 65, 0.2);
    transform: scale(1.05);
}

.action-btn.active {
    background: rgba(0, 255, 65, 0.3);
    color: #fff;
}

.script-category {
    display: inline-block;
    background: rgba(0, 255, 65, 0.2);
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.script-description {
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.script-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.script-difficulty {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ccc;
}

.script-features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.feature-tag {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.script-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.script-btn {
    background: linear-gradient(45deg, #00ff41, #00cc33);
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex: 1;
}

.script-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.4);
}

.script-btn.secondary {
    background: transparent;
    border: 1px solid #00ff41;
    color: #00ff41;
}

/* Cart and Favorites Panels */
.cart-panel,
.favorites-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    border-left: 2px solid #00ff41;
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.cart-panel.active,
.favorites-panel.active {
    right: 0;
}

.cart-header,
.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.1);
}

.cart-header h3,
.favorites-header h3 {
    color: #00ff41;
    margin: 0;
    font-size: 1.3rem;
}

.cart-close,
.favorites-close {
    background: none;
    border: none;
    color: #00ff41;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cart-close:hover,
.favorites-close:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
}

.cart-content,
.favorites-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.empty-cart,
.empty-favorites {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 50px;
}

.cart-item,
.favorite-item {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.cart-item:hover,
.favorite-item:hover {
    background: rgba(0, 255, 65, 0.15);
    transform: translateX(5px);
}

.cart-item-header,
.favorite-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cart-item-title,
.favorite-item-title {
    color: #00ff41;
    font-weight: bold;
    font-size: 1rem;
}

.cart-item-remove,
.favorite-item-remove {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.cart-item-remove:hover,
.favorite-item-remove:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: scale(1.05);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
    display: flex;
    gap: 10px;
}

.cart-clear {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    flex: 1;
}

.cart-package {
    background: linear-gradient(45deg, #ff8c00, #ff6600);
    color: #000;
    flex: 1;
}

.cart-download {
    background: linear-gradient(45deg, #00ff41, #00cc33);
    color: #000;
    flex: 1;
}

/* Download History Panel */
.download-history-panel {
    position: fixed;
    bottom: -400px;
    left: 20px;
    right: 20px;
    height: 350px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ff41;
    border-radius: 12px 12px 0 0;
    z-index: 1001;
    transition: bottom 0.3s ease;
    display: flex;
    flex-direction: column;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.download-history-panel.active {
    bottom: 0;
}

.download-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.1);
    border-radius: 10px 10px 0 0;
}

.download-history-header h3 {
    color: #00ff41;
    margin: 0;
    font-size: 1.2rem;
}

.download-history-close {
    background: none;
    border: none;
    color: #00ff41;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.download-history-close:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
}

.download-history-content {
    flex: 1;
    padding: 15px 20px;
    overflow-y: auto;
}

.empty-history {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 50px;
}

.history-item {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item-info {
    flex: 1;
}

.history-item-name {
    color: #00ff41;
    font-weight: bold;
    margin-bottom: 4px;
}

.history-item-details {
    color: #ccc;
    font-size: 0.85rem;
}

.history-item-actions {
    display: flex;
    gap: 8px;
}

.history-action-btn {
    background: rgba(0, 255, 65, 0.2);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: #00ff41;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.history-action-btn:hover {
    background: rgba(0, 255, 65, 0.3);
}

.download-history-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
}

.history-clear {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    width: 100%;
}

/* Package Builder Modal */
.package-builder-container {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
}

.package-builder-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.package-info-section,
.package-scripts-section,
.package-options-section,
.package-preview-section {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    padding: 20px;
}

.package-info-section h3,
.package-scripts-section h3,
.package-options-section h3,
.package-preview-section h3 {
    color: #00ff41;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    padding-bottom: 8px;
}

.package-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: #00ff41;
    font-weight: bold;
    font-size: 0.9rem;
}

.package-input,
.package-textarea {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: #00ff41;
    padding: 10px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.package-input:focus,
.package-textarea:focus {
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.package-textarea {
    resize: vertical;
    min-height: 80px;
}

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

.selected-script-item {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-script-info {
    flex: 1;
}

.selected-script-name {
    color: #00ff41;
    font-weight: bold;
    font-size: 0.9rem;
}

.selected-script-category {
    color: #ccc;
    font-size: 0.8rem;
}

.remove-script-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.remove-script-btn:hover {
    background: rgba(255, 0, 0, 0.3);
}

.package-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.option-checkbox:hover {
    color: #00ff41;
}

.option-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.option-checkbox input[type="checkbox"]:checked+.checkmark {
    background: rgba(0, 255, 65, 0.3);
    border-color: #00ff41;
}

.option-checkbox input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #00ff41;
    font-weight: bold;
    font-size: 14px;
}

.package-structure {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #00ff41;
    max-height: 200px;
    overflow-y: auto;
}

.package-structure .folder {
    color: #ffff00;
    margin: 2px 0;
}

.package-structure .file {
    color: #00ff41;
    margin: 2px 0;
    padding-left: 20px;
}

.package-structure .file.js {
    color: #ff79c6;
}

.package-structure .file.json {
    color: #50fa7b;
}

.package-structure .file.md {
    color: #8be9fd;
}

.package-builder-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
}

.package-builder-footer .btn {
    min-width: 120px;
}

/* Mobile Responsive for Package Builder */
@media (max-width: 768px) {
    .package-builder-container {
        width: 98%;
        max-height: 95vh;
    }

    .package-builder-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .package-builder-footer {
        flex-direction: column;
    }

    .package-builder-footer .btn {
        min-width: auto;
    }

    .download-history-panel {
        left: 10px;
        right: 10px;
        height: 300px;
    }

    .cart-footer {
        flex-direction: column;
        gap: 8px;
    }

    .cart-clear,
    .cart-package,
    .cart-download {
        flex: none;
    }
}

/* Script Preview Modal Styles */
#scriptPreviewModal .modal-container {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
}

.script-preview-info {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.preview-title-section {
    flex: 1;
}

.preview-script-title {
    color: #00ff41;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.preview-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.preview-category,
.preview-difficulty {
    background: rgba(0, 255, 65, 0.2);
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.preview-actions {
    display: flex;
    gap: 8px;
}

.preview-favorite,
.preview-cart {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: #00ff41;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-favorite:hover,
.preview-cart:hover {
    background: rgba(0, 255, 65, 0.2);
    transform: scale(1.05);
}

.preview-favorite.active,
.preview-cart.active {
    background: rgba(0, 255, 65, 0.3);
    color: #fff;
}

.preview-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
}

.preview-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-features .feature-tag {
    background: rgba(0, 255, 65, 0.15);
    color: #00ff41;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.code-preview-container,
.source-code-container {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.code-preview-header,
.source-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 255, 65, 0.1);
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.code-language {
    color: #00ff41;
    font-weight: bold;
    font-size: 0.9rem;
}

.copy-code-btn,
.source-btn {
    background: rgba(0, 255, 65, 0.2);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: #00ff41;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.copy-code-btn:hover,
.source-btn:hover {
    background: rgba(0, 255, 65, 0.3);
    transform: translateY(-1px);
}

.code-preview,
.source-code {
    margin: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

.code-preview code,
.source-code code {
    color: inherit;
    background: none;
    padding: 0;
}

/* Demo Container Styles */
.demo-container {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 255, 65, 0.1);
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.demo-header h4 {
    color: #00ff41;
    margin: 0;
    font-size: 1.1rem;
}

.demo-controls {
    display: flex;
    gap: 8px;
}

.demo-btn {
    background: rgba(0, 255, 65, 0.2);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: #00ff41;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.demo-btn:hover {
    background: rgba(0, 255, 65, 0.3);
    transform: scale(1.05);
}

.demo-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(0, 255, 65, 0.3);
}

.demo-input-section,
.demo-output-section {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
}

.demo-input-section label,
.demo-output-section label {
    display: block;
    color: #00ff41;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.demo-input {
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: #00ff41;
    padding: 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    resize: vertical;
    outline: none;
}

.demo-input:focus {
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.demo-output {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    padding: 10px;
    min-height: 200px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #00ff41;
}

.demo-placeholder {
    color: rgba(0, 255, 65, 0.5);
    font-style: italic;
    margin: 0;
}

.demo-output .output-line {
    margin: 2px 0;
    padding: 2px 0;
}

.demo-output .output-error {
    color: #ff4444;
}

.demo-output .output-success {
    color: #00ff41;
}

.demo-output .output-info {
    color: #00ccff;
}

.source-actions {
    display: flex;
    gap: 8px;
}

/* Syntax Highlighting Styles */
.language-javascript .token.keyword {
    color: #ff79c6;
}

.language-javascript .token.string {
    color: #f1fa8c;
}

.language-javascript .token.function {
    color: #50fa7b;
}

.language-javascript .token.number {
    color: #bd93f9;
}

.language-javascript .token.comment {
    color: #6272a4;
    font-style: italic;
}

.language-javascript .token.operator {
    color: #ff79c6;
}

.language-javascript .token.punctuation {
    color: #f8f8f2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .marketplace-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        max-width: none;
        margin-bottom: 15px;
    }

    .filter-container {
        justify-content: space-between;
    }

    .script-grid {
        grid-template-columns: 1fr;
    }

    .cart-panel,
    .favorites-panel {
        width: 100%;
        right: -100%;
    }

    .marketplace-counters {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1000;
        flex-direction: column;
        gap: 10px;
    }

    #scriptPreviewModal .modal-container {
        width: 98%;
        max-height: 95vh;
    }

    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .preview-actions {
        align-self: flex-end;
    }

    .demo-workspace {
        grid-template-columns: 1fr;
    }

    .demo-input,
    .demo-output {
        height: 150px;
        min-height: 150px;
        max-height: 150px;
    }
}

/*
 Additional Browser Compatibility Improvements */

/* Internet Explorer 10+ specific fixes */
@media screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) {
    .feature {
        /* IE doesn't support backdrop-filter, use solid background */
        background: rgba(0, 0, 0, 0.9);
    }

    .modal-overlay {
        /* IE fallback for backdrop-filter */
        background: rgba(0, 0, 0, 0.95);
    }
}

/* Firefox specific improvements - using feature detection instead */
@supports (-moz-appearance: none) {
    .feature {
        /* Firefox specific optimizations */
        will-change: transform;
    }
}

/* Safari specific improvements */
@supports (-webkit-appearance: none) {
    .feature:hover {
        /* Enhanced Safari support for 3D transforms */
        -webkit-transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.05);
        transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.05);
    }
}

/* Edge specific improvements */
@supports (-ms-ime-align: auto) {
    .features {
        /* Edge fallback for grid */
        display: -ms-flexbox;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
}

/* Older WebKit browsers */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .feature {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }
}

/* Print styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .matrix-bg,
    #matrixCanvas,
    #particleCanvas {
        display: none !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .feature .icon {
        /* Sharper icons on high DPI displays - Cross-browser support */
        image-rendering: -moz-crisp-edges;
        /* Firefox */
        image-rendering: -webkit-optimize-contrast;
        /* Safari/Chrome/Edge 79+ */
        image-rendering: -webkit-crisp-edges;
        /* Older Safari/Chrome */
        image-rendering: pixelated;
        /* Modern browsers fallback */
        image-rendering: crisp-edges;
        /* Standard property */
    }
}

/* Reduced data mode */
@media (prefers-reduced-data: reduce) {

    .matrix-bg,
    #matrixCanvas,
    #particleCanvas {
        display: none;
    }

    .feature::before {
        display: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #000000;
        --text-color: #ffffff;
    }
}

/* Light mode fallback */
@media (prefers-color-scheme: light) {
    :root {
        --background-color: #f0f0f0;
        --text-color: #000000;
        --primary-color: #00aa00;
    }

    body {
        background: var(--background-color);
        color: var(--text-color);
    }
}

/* Contrast preferences */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #00ff00;
        --border-color: #ffffff;
    }

    .feature {
        border-width: 2px;
        border-color: var(--border-color);
    }
}

/* Animation preferences */
@media (prefers-reduced-motion: no-preference) {

    /* Enhanced animations for users who prefer motion */
    .feature:hover {
        animation: featureHoverEnhanced 0.5s ease-in-out;
    }
}

@keyframes featureHoverEnhanced {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.1);
    }

    100% {
        transform: translateY(-15px) scale(1.05);
    }
}

/* Fallback for browsers without CSS Grid support */
@supports not (display: grid) {
    .features {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .feature {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 300px;
        flex: 1 1 300px;
        margin: 15px;
    }
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(5px)) {

    .features,
    .getting-started,
    .shortcuts,
    .cta {
        background: rgba(0, 0, 0, 0.85);
        border: 1px solid rgba(0, 255, 65, 0.3);
    }

    .modal-overlay {
        background: rgba(0, 0, 0, 0.95);
    }
}

/* Fallback for browsers without CSS custom properties */
@supports not (color: var(--primary-color)) {
    .feature h3 {
        color: #00ff41;
    }

    .btn {
        background: #00ff41;
    }

    .version-badge {
        background: #00ff41;
    }
}

.btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1.25rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* 
Fix for elements showing as text - Hide by default */
.theme-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    min-width: 300px;
    z-index: 1000;
    margin-top: 10px;
}

.theme-dropdown.active {
    display: block;
}

.performance-settings {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    max-width: 350px;
    z-index: 999;
}

.performance-settings.active {
    display: block;
}

.share-buttons {
    display: none;
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 15px;
    z-index: 998;
}

.share-buttons.active {
    display: block;
}

/* Hide marketplace panels by default */
.cart-panel,
.favorites-panel,
.download-history-panel,
.package-builder-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
}

.cart-panel.active,
.favorites-panel.active,
.download-history-panel.active,
.package-builder-container.active {
    display: block;
}

/* Hide modal overlays by default */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide share modal by default */
.share-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1002;
}

.share-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide notification by default */
.share-notification {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: #000;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 1003;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.share-notification.show {
    display: block;
    transform: translateX(0);
}

/* Hide performance options by default */
.performance-options {
    display: none;
    margin-top: 15px;
}

.performance-options.active {
    display: block;
}

/* Basic styling for visible elements */
.theme-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: #000;
}

/* Fix for elements appearing as text */
.theme-dropdown-header,
.theme-options,
.theme-option,
.performance-header,
.performance-option,
.share-btn,
.cart-counter,
.favorites-counter,
.history-counter {
    display: block;
}

/* Ensure proper spacing */
.theme-option {
    display: flex;
    align-items: center;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
}

.theme-option:hover,
.theme-option.active {
    border-color: var(--primary-color);
    background: rgba(0, 255, 65, 0.1);
}

.theme-preview {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 10px;
}

.theme-info h4 {
    margin: 0 0 2px 0;
    font-size: 14px;
}

.theme-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.7;
}

/ * Theme preview colors */ .matrix-preview {
    background: #00ff41;
}

.cyberpunk-preview {
    background: #ff00ff;
}

.hacker-preview {
    background: #00ffff;
}

.neon-preview {
    background: #ffff00;
}

.ocean-preview {
    background: #0099ff;
}

.fire-preview {
    background: #ff4500;
}

/* Theme close button */
.theme-close {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Performance toggle button */
.performance-toggle {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.performance-toggle:hover {
    background: var(--primary-color);
    color: #000;
}

/* Hide elements that should not be visible initially */
.marketplace-counters,
.marketplace-controls,
.script-grid {
    display: block;
}

/* Ensure proper display for counters */
.cart-counter,
.favorites-counter,
.history-counter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--primary-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin: 0 5px;
}

/* Fix for script marketplace section */
.script-marketplace {
    display: block;
    margin: 40px 0;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
}

.marketplace-header h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.marketplace-tagline {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 30px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .theme-selector {
        position: relative;
        top: auto;
        right: auto;
        text-align: center;
        margin-bottom: 20px;
    }

    .theme-dropdown {
        position: relative;
        right: auto;
        margin-top: 10px;
        min-width: auto;
        width: 100%;
    }

    .performance-settings {
        position: relative;
        top: auto;
        right: auto;
        margin: 20px 0;
        max-width: none;
    }
}

/* Enhance
d image rendering support for all images */
img,
.social-icon,
.theme-preview {
    /* Cross-browser image rendering for crisp images */
    image-rendering: -moz-crisp-edges;
    /* Firefox */
    image-rendering: -webkit-optimize-contrast;
    /* Safari/Chrome/Edge 79+ */
    image-rendering: -webkit-crisp-edges;
    /* Older Safari/Chrome */
    image-rendering: pixelated;
    /* Modern browsers fallback */
    image-rendering: crisp-edges;
    /* Standard property */
}

/* Specific optimization for social icons */
.social-icon {
    /* Additional properties for better rendering */
    -webkit-backface-visibility: hidden;
    /* Prevent flickering */
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    /* Hardware acceleration */
    transform: translateZ(0);
}

/* Theme preview optimization */
.theme-preview {
    /* Ensure crisp rendering for theme color blocks */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Icon optimization for all icon elements */
.icon,
[class*="icon"],
.step-number {
    /* Crisp rendering for emoji and icon fonts */
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* Additional text rendering optimization */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Canvas optimization for matrix background */
canvas {
    /* Ensure crisp canvas rendering */
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Button and interactive element optimization */
button,
.btn,
.theme-toggle,
.theme-close {
    /* Crisp rendering for buttons */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Text rendering optimization */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Cross-
browser compatibility fixes for Edge and other browsers */

/* Backdrop filter fallback */
.theme-dropdown,
.performance-settings,
.cart-panel,
.favorites-panel {
    /* Fallback background for browsers without backdrop-filter support */
    background: rgba(0, 0, 0, 0.95);
    /* Modern backdrop filter with fallback */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Scroll behavior fallback */
html {
    /* IE/Edge fallback */
    -ms-scroll-behavior: smooth;
    /* Smooth scrolling with fallback */
    scroll-behavior: smooth;
}

/* Transform and transition fallbacks */
.feature,
.theme-option,
.step {
    /* Transform with vendor prefixes */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);

    /* Transition with vendor prefixes */
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Flexbox fallbacks */
.theme-options,
.social-links,
.shortcut-list {
    /* Flexbox with fallbacks */
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
}

.theme-option,
.shortcut {
    /* Flex item properties with fallbacks */
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

/* Grid fallbacks for older browsers */
.features {
    /* Grid with fallback */
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Box shadow with vendor prefixes */
.feature:hover,
.theme-dropdown,
.performance-settings {
    /* Box shadow with fallbacks */
    -webkit-box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
    -moz-box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
}

/* Border radius with vendor prefixes */
.theme-dropdown,
.feature,
.step,
.shortcut {
    /* Border radius with fallbacks */
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

/* Text shadow with vendor prefixes */
.header h1 {
    /* Text shadow with fallbacks */
    text-shadow: 0 0 20px var(--primary-color);
    /* IE filter fallback */
    filter: progid:DXImageTransform.Microsoft.Glow(color='#00ff41', strength=2);
}

/* Animation keyframes with vendor prefixes */
@-webkit-keyframes glow {
    from {
        text-shadow: 0 0 20px var(--primary-color);
    }

    to {
        text-shadow: 0 0 30px var(--primary-color), 0 0 40px var(--primary-color);
    }
}

@-moz-keyframes glow {
    from {
        text-shadow: 0 0 20px var(--primary-color);
    }

    to {
        text-shadow: 0 0 30px var(--primary-color), 0 0 40px var(--primary-color);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px var(--primary-color);
    }

    to {
        text-shadow: 0 0 30px var(--primary-color), 0 0 40px var(--primary-color);
    }
}

/* Animation with vendor prefixes */
.header h1 {
    -webkit-animation: glow 2s ease-in-out infinite alternate;
    -moz-animation: glow 2s ease-in-out infinite alternate;
    animation: glow 2s ease-in-out infinite alternate;
}/* 
เครื่องมือหลัก */
.main-tools {
    margin: 40px 0;
    padding: 20px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 26px rgba(0, 255, 65, 0.18);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #ffd700;
    box-shadow: 0 0 46px rgba(255, 215, 0, 0.32);
}

.tool-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.tool-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.3rem;
}

.tool-card p {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: center;
}

.tool-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-tool {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-tool:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.4);
}

.btn-tool.secondary {
    background: linear-gradient(135deg, #333, #555);
    color: var(--primary-color);
}

/* เครื่องมือเพิ่มเติม */
.additional-tools {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 2px solid var(--primary-color);
}

/* Bookmarklet Collection */
.bookmarklet-collection {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 2px solid var(--primary-color);
}

.section-intro {
    text-align: center;
    color: #ccc;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.bookmarklet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bookmarklet-item {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.bookmarklet-item:hover {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.bookmarklet-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.bookmarklet-code {
    background: rgba(22, 8, 226, 0.18);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    max-height: 120px;
    overflow-y: auto;
}

.bookmarklet-code code {
    color: #d7fffd;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    white-space: pre-wrap;
}

.bookmarklet-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-copy, .btn-test {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-copy:hover, .btn-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 255, 65, 0.4);
}

.btn-test {
    background: linear-gradient(135deg, #08d1ff, #00a8cc);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .bookmarklet-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-actions {
        flex-direction: column;
    }
    
    .bookmarklet-actions {
        flex-direction: column;
    }
    
    .tool-card {
        padding: 15px;
    }
    
    .bookmarklet-item {
        padding: 15px;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    backdrop-filter: blur(10px);
    font-size: 14px;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.toast.show {
    opacity: 1;
}

/* Enhanced hover effects */
.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s;
}

.tool-card:hover::before {
    left: 100%;
}

/* Glowing border animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 26px rgba(0, 255, 65, 0.18);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 65, 0.4);
    }
}

.tool-card:hover {
    animation: glow 2s infinite;
}/
* Marketplace Demo Styles */
.script-card {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.script-card:hover {
    transform: translateY(-5px);
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.script-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.script-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.script-meta {
    flex: 1;
}

.script-meta h4 {
    color: var(--primary-color);
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.script-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #ccc;
}

.script-actions {
    display: flex;
    gap: 5px;
}

.btn-favorite {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.btn-favorite:hover,
.btn-favorite.active {
    opacity: 1;
    transform: scale(1.2);
}

.script-description {
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 15px;
}

.script-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.tag.category-security { background: rgba(255, 0, 0, 0.2); color: #ff6b6b; }
.tag.category-automation { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.tag.category-data { background: rgba(0, 123, 255, 0.2); color: #007bff; }
.tag.category-performance { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.tag.category-fun { background: rgba(220, 53, 69, 0.2); color: #dc3545; }

.tag.difficulty-beginner { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.tag.difficulty-intermediate { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.tag.difficulty-advanced { background: rgba(220, 53, 69, 0.2); color: #dc3545; }

.script-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-script {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 100px;
}

.btn-script.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000;
}

.btn-script.secondary {
    background: linear-gradient(135deg, #333, #555);
    color: var(--primary-color);
}

.btn-script:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 255, 65, 0.4);
}

/* Panel Styles */
.cart-panel,
.favorites-panel,
.download-history-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 70vh;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(10px);
}

.cart-header,
.favorites-header,
.download-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--primary-color);
}

.cart-header h3,
.favorites-header h3,
.download-history-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.cart-close,
.favorites-close,
.download-history-close {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.cart-content,
.favorites-content,
.download-history-content {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item,
.favorite-item,
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    margin-bottom: 10px;
}

.cart-item-info,
.favorite-item-info,
.history-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.cart-item-icon,
.favorite-item-icon {
    font-size: 1.2rem;
}

.cart-item-name,
.favorite-item-name,
.history-item-name {
    color: var(--primary-color);
    font-weight: bold;
}

.history-item-date {
    color: #ccc;
    font-size: 0.8rem;
    margin-left: 10px;
}

.btn-remove,
.btn-download {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    transform: scale(1.2);
}

.btn-download:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.cart-footer,
.download-history-footer {
    padding: 20px;
    border-top: 1px solid var(--primary-color);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.empty-cart,
.empty-favorites,
.empty-history {
    text-align: center;
    color: #ccc;
    font-style: italic;
    padding: 40px 20px;
}

/* Counter Styles */
.marketplace-counters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-counter,
.favorites-counter,
.history-counter {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 255, 65, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.cart-counter:hover,
.favorites-counter:hover,
.history-counter:hover {
    background: rgba(0, 255, 65, 0.2);
    transform: scale(1.05);
}

.counter-icon {
    font-size: 1.2rem;
}

.counter-number {
    background: var(--primary-color);
    color: #000;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.counter-text {
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive Design for Marketplace */
@media (max-width: 768px) {
    .script-footer {
        flex-direction: column;
    }
    
    .btn-script {
        min-width: auto;
    }
    
    .marketplace-counters {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cart-panel,
    .favorites-panel,
    .download-history-panel {
        width: 95%;
        max-height: 80vh;
    }
    
    .script-header {
        flex-direction: column;
        text-align: center;
    }
    
    .script-actions {
        justify-content: center;
    }
}

/* Animation for script cards */
.script-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation */
.script-grid:empty::after {
    content: '🔄 กำลังโหลดสคริปต์...';
    display: block;
    text-align: center;
    padding: 40px;
    color: var(--primary-color);
    font-size: 1.2rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}/*
 Twitter Theme Extension Styles */
.extension-info {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
}

.extension-info p {
    margin: 5px 0;
    color: #ccc;
}

.extension-info strong {
    color: var(--primary-color);
}

.extension-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.extension-info a:hover {
    color: #ffd700;
    text-shadow: 0 0 5px var(--primary-color);
}

/* Twitter Theme specific styling */
.tool-card .tool-icon:has-text("🐦") {
    color: #1da1f2;
    filter: drop-shadow(0 0 10px #1da1f2);
}

/* Enhanced download button styling */
.btn-tool[href*="extension.crx"] {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-tool[href*="extension.crx"]:hover {
    background: linear-gradient(135deg, #0d8bd9, #0a7bc4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

/* Guide button styling */
.btn-tool[onclick*="showTwitterThemeGuide"] {
    background: linear-gradient(135deg, #17bf63, #14a554);
}

.btn-tool[onclick*="showTwitterThemeGuide"]:hover {
    background: linear-gradient(135deg, #14a554, #128a47);
}

/* Twitter theme bookmarklet item */
.bookmarklet-item:has(h4:contains("Twitter Theme")) {
    border-color: #1da1f2;
    background: rgba(29, 161, 242, 0.05);
}

.bookmarklet-item:has(h4:contains("Twitter Theme")):hover {
    border-color: #1da1f2;
    box-shadow: 0 0 20px rgba(29, 161, 242, 0.2);
}

/* Twitter icon animation */
@keyframes twitter-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px #1da1f2);
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px #1da1f2);
    }
}

.tool-card:hover .tool-icon:has-text("🐦") {
    animation: twitter-pulse 2s infinite;
}

/* Mobile responsive for extension info */
@media (max-width: 768px) {
    .extension-info {
        font-size: 0.8rem;
        padding: 8px;
    }
    
    .extension-info p {
        margin: 3px 0;
    }
}