* {
    font-family: "Courier New", monospace;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection in modal */
.modal-content * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    cursor: text !important;
}

.modal-close {
    cursor: pointer !important;
}

body {
    margin: 0;
    color: #e0e0e0;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Matrix Glitch Panic Splash Screen - ENHANCED CHAOS EDITION */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
    transition:
        opacity 0.5s ease-out,
        transform 0.1s ease-out,
        filter 0.1s ease-out;
    will-change: transform, opacity, filter;
}

#splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.glitch-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: #0f0;
    overflow: hidden;
}

.panic-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    width: 90%;
    max-width: 1200px;
}

.glitch {
    font-size: clamp(3rem, 15vw, 12rem);
    font-weight: 900;
    color: #ff0000;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation:
        glitchShake 0.1s infinite,
        colorPulse 0.3s infinite;
    text-shadow:
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 40px #ff0000,
        0 0 80px #ff0000,
        0 0 120px #ff0000;
    line-height: 1;
    will-change: transform, filter;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitchAnim1 0.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitchAnim2 0.475s infinite linear alternate-reverse;
}

@keyframes glitchShake {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-5px, 5px);
    }
    40% {
        transform: translate(-5px, -5px);
    }
    60% {
        transform: translate(5px, 5px);
    }
    80% {
        transform: translate(5px, -5px);
    }
    100% {
        transform: translate(0);
    }
}

@keyframes glitchAnim1 {
    0% {
        clip: rect(20px, 9999px, 80px, 0);
        transform: skew(0.5deg);
    }
    10% {
        clip: rect(90px, 9999px, 120px, 0);
        transform: skew(0.8deg);
    }
    20% {
        clip: rect(40px, 9999px, 70px, 0);
        transform: skew(-0.5deg);
    }
    30% {
        clip: rect(10px, 9999px, 150px, 0);
        transform: skew(0.3deg);
    }
    40% {
        clip: rect(70px, 9999px, 100px, 0);
        transform: skew(-0.8deg);
    }
    50% {
        clip: rect(5px, 9999px, 90px, 0);
        transform: skew(0.6deg);
    }
    60% {
        clip: rect(110px, 9999px, 140px, 0);
        transform: skew(-0.4deg);
    }
    70% {
        clip: rect(30px, 9999px, 60px, 0);
        transform: skew(0.7deg);
    }
    80% {
        clip: rect(80px, 9999px, 130px, 0);
        transform: skew(-0.6deg);
    }
    90% {
        clip: rect(50px, 9999px, 110px, 0);
        transform: skew(0.4deg);
    }
    100% {
        clip: rect(15px, 9999px, 95px, 0);
        transform: skew(-0.3deg);
    }
}

@keyframes glitchAnim2 {
    0% {
        clip: rect(65px, 9999px, 95px, 0);
        transform: skew(-0.4deg);
    }
    10% {
        clip: rect(25px, 9999px, 55px, 0);
        transform: skew(0.7deg);
    }
    20% {
        clip: rect(105px, 9999px, 135px, 0);
        transform: skew(-0.6deg);
    }
    30% {
        clip: rect(35px, 9999px, 75px, 0);
        transform: skew(0.5deg);
    }
    40% {
        clip: rect(85px, 9999px, 125px, 0);
        transform: skew(-0.8deg);
    }
    50% {
        clip: rect(55px, 9999px, 85px, 0);
        transform: skew(0.3deg);
    }
    60% {
        clip: rect(15px, 9999px, 45px, 0);
        transform: skew(-0.5deg);
    }
    70% {
        clip: rect(95px, 9999px, 145px, 0);
        transform: skew(0.8deg);
    }
    80% {
        clip: rect(45px, 9999px, 105px, 0);
        transform: skew(-0.7deg);
    }
    90% {
        clip: rect(75px, 9999px, 115px, 0);
        transform: skew(0.6deg);
    }
    100% {
        clip: rect(5px, 9999px, 65px, 0);
        transform: skew(-0.4deg);
    }
}

.error-code {
    font-size: clamp(1.5rem, 6vw, 3rem);
    color: #888;
    margin-top: 2rem;
    font-family: "Courier New", monospace;
    text-shadow:
        0 0 20px #fff,
        0 0 40px #fff;
    animation:
        errorFlicker 0.15s infinite,
        errorShake 0.5s infinite;
    letter-spacing: 0.3em;
    will-change: opacity, transform;
}

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

@keyframes errorShake {
    0%,
    100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-2px, 2px);
    }
    50% {
        transform: translate(2px, -2px);
    }
    75% {
        transform: translate(-2px, -2px);
    }
}

@keyframes colorPulse {
    0%,
    100% {
        filter: hue-rotate(0deg) brightness(1);
    }
    50% {
        filter: hue-rotate(15deg) brightness(1.2);
    }
}

.glitch-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 0, 0, 0.15) 0px,
        rgba(255, 0, 0, 0.15) 2px,
        transparent 2px,
        transparent 4px
    );
    animation:
        scanlineMove 0.1s linear infinite,
        scanlineGlitch 0.5s infinite;
    pointer-events: none;
    opacity: 0.8;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

@keyframes scanlineMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(4px);
    }
}

@keyframes scanlineGlitch {
    0%,
    90%,
    100% {
        opacity: 0.8;
    }
    95% {
        opacity: 0.3;
    }
}

#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

@media (min-width: 768px) {
    #tracker {
        position: fixed;
        width: 12px;
        height: 12px;
        border: 2px solid #888888;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transition: all 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 0 15px rgba(136, 136, 136, 0.6);
        transform-origin: center;
        transform: translate(-50%, -50%);
        left: 0;
        top: 0;
        mix-blend-mode: difference;
    }

    #tracker.hover {
        width: 24px;
        height: 24px;
        border-color: #cccccc;
        box-shadow: 0 0 25px rgba(204, 204, 204, 0.8);
    }
}

@media (max-width: 767px) {
    #tracker {
        display: none !important;
    }
}

.logo-3d {
    text-shadow:
        0 0 20px rgba(136, 136, 136, 0.8),
        0 0 40px rgba(136, 136, 136, 0.5),
        0 0 60px rgba(136, 136, 136, 0.3),
        4px 4px 0 rgba(0, 0, 0, 0.4);
    transform: perspective(800px) rotateX(5deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.logo-3d:hover {
    transform: perspective(800px) rotateX(0deg) scale(1.05);
    text-shadow:
        0 0 30px rgba(136, 136, 136, 1),
        0 0 60px rgba(136, 136, 136, 0.7),
        0 0 90px rgba(136, 136, 136, 0.5),
        4px 4px 0 rgba(0, 0, 0, 0.4);
}

@keyframes blink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

.blink {
    animation: blink 1s steps(1) infinite;
    display: inline-block;
    width: 8px;
    height: 18px;
    background-color: white;
    vertical-align: middle;
    margin-left: 4px;
}

.download-section {
    position: relative;
    padding: 2rem 0;
    margin-top: 100px;
}

.download-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(136, 136, 136, 0.3),
        transparent
    );
    transform: translateY(-50%);
    z-index: 1;
}

.download-card {
    background: linear-gradient(
        145deg,
        var(--color-base-200),
        var(--color-base-300)
    );
    border: 1px solid rgba(136, 136, 136, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    border-radius: var(--radius-box);
    margin-bottom: 2rem;
    z-index: 2;
}

.download-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: inherit;
    z-index: 2;
}

.download-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(136, 136, 136, 0.15),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.download-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(136, 136, 136, 0.6);
    box-shadow:
        0 20px 60px rgba(136, 136, 136, 0.3),
        0 0 40px rgba(136, 136, 136, 0.2);
}

.download-card:not(:hover) {
    transform: translateY(0) scale(1);
}

.iso-icon {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 3px solid rgba(136, 136, 136, 0.4);
    border-radius: 20px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 180px;
    overflow: hidden;
    padding: 0;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(136, 136, 136, 0.2);
}

.iso-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.iso-icon:hover {
    border-color: rgba(136, 136, 136, 0.8);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(136, 136, 136, 0.6),
        inset 0 0 20px rgba(136, 136, 136, 0.1);
    transform: scale(1.15) rotate(5deg);
}

.iso-icon:active {
    transform: scale(1.05) rotate(2deg);
}

.download-card:hover .iso-icon {
    border-color: rgba(136, 136, 136, 0.6);
}

.btn-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(136, 136, 136, 0.5);
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    box-shadow:
        0 4px 0 #0a0a0a,
        0 6px 12px rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .btn-3d {
        font-size: 0.75rem;
        padding: 0.5rem 0.7rem;
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .btn-3d {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        gap: 0.25rem;
    }
}

.btn-3d:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #0a0a0a,
        0 10px 20px rgba(136, 136, 136, 0.4);
    border-color: rgba(136, 136, 136, 0.8);
}

.btn-3d:active {
    transform: translateY(3px);
    box-shadow:
        0 1px 0 #0a0a0a,
        0 3px 6px rgba(0, 0, 0, 0.4);
}

.checksum-tile {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(136, 136, 136, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    color: #888;
    transition: all 0.3s ease;
}

.checksum-tile:hover {
    border-color: rgba(136, 136, 136, 0.4);
    background: rgba(15, 15, 15, 0.8);
}

.link-glow {
    position: relative;
    transition: all 0.3s ease;
}

.link-glow::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #888888, #cccccc);
    transition: width 0.3s ease;
}

.link-glow:hover::after {
    width: 100%;
}

.link-glow:hover {
    color: #cccccc;
    text-shadow: 0 0 10px rgba(136, 136, 136, 0.5);
}

.section-spacing {
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
}

.hero-spacing {
    padding: clamp(4rem, 10vh, 8rem) clamp(1rem, 3vw, 2rem);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-separator {
    position: relative;
    margin: 3rem 0;
}

.card-separator::before {
    content: "";
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-primary),
        transparent
    );
    border-radius: 1px;
}

.card-label {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;
}

.card-label h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(136, 136, 136, 0.3);
    letter-spacing: 1px;
}

.badge-beta {
    background: linear-gradient(
        135deg,
        var(--color-primary),
        var(--color-secondary)
    );
    box-shadow: 0 4px 15px rgba(136, 136, 136, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

.badge-disabled {
    background: linear-gradient(
        135deg,
        var(--color-neutral),
        var(--color-base-300)
    );
    opacity: 0.6;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

@keyframes pulse-glow {
    0%,
    100% {
        box-shadow: 0 4px 15px rgba(136, 136, 136, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(136, 136, 136, 0.7);
    }
}

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

.download-card.float-animation {
    animation: card-float 6s ease-in-out infinite;
}

.download-card:nth-child(1) {
    animation-delay: 0s;
}

.download-card:nth-child(2) {
    animation-delay: 2s;
}

.more-options-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(136, 136, 136, 0.5);
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 4px 0 #0a0a0a,
        0 6px 12px rgba(0, 0, 0, 0.5);
}

.more-options-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #0a0a0a,
        0 10px 20px rgba(136, 136, 136, 0.4);
    border-color: rgba(136, 136, 136, 0.8);
}

.more-options-btn:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #0a0a0a,
        0 4px 8px rgba(0, 0, 0, 0.4);
}

.more-options-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 2px solid rgba(136, 136, 136, 0.5);
    border-radius: 8px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(136, 136, 136, 0.3);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.more-options-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.more-options-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: #cccccc;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(136, 136, 136, 0.2);
}

.more-options-menu a:last-child {
    border-bottom: none;
}

.more-options-menu a:hover {
    background: rgba(136, 136, 136, 0.1);
    color: white;
}

.options-container {
    position: relative;
    display: inline-block;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(204, 204, 204, 0.7);
    font-size: 14px;
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-indicator svg {
    display: block;
    margin: 0 auto 8px;
    width: 24px;
    height: 24px;
}

body.scrolled .scroll-indicator {
    display: none !important;
}

/* Scroll to Downloads Button */
.scroll-to-downloads-btn {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(
        145deg,
        var(--color-base-200),
        var(--color-base-300)
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(136, 136, 136, 0.2);
    border-radius: 50px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(136, 136, 136, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    pointer-events: none;
    position: fixed;
    overflow: hidden;
}

.scroll-to-downloads-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: inherit;
    z-index: 2;
}

.scroll-to-downloads-btn.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.scroll-to-downloads-btn:hover {
    border-color: rgba(136, 136, 136, 0.6);
    transform: translateX(-50%) translateY(-5px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(136, 136, 136, 0.5);
}

.scroll-to-downloads-btn:active {
    transform: translateX(-50%) translateY(-2px);
}

.scroll-to-downloads-btn .arrow-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    animation: bounceArrow 2s infinite;
    position: relative;
    z-index: 3;
}

.scroll-to-downloads-btn span {
    position: relative;
    z-index: 3;
}

@keyframes bounceArrow {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .scroll-to-downloads-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
        gap: 6px;
    }

    .scroll-to-downloads-btn .arrow-icon {
        width: 16px;
        height: 16px;
    }
}

.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent,
            transparent 1px,
            rgba(0, 255, 0, 0.03) 1px,
            rgba(0, 255, 0, 0.03) 2px
        ),
        radial-gradient(
            ellipse at center,
            transparent 0%,
            rgba(0, 0, 0, 0.4) 100%
        );
    mask-image: radial-gradient(circle at center, black 60%, transparent 85%);
    -webkit-mask-image: radial-gradient(
        circle at center,
        black 60%,
        transparent 85%
    );
    animation:
        flicker 0.15s infinite alternate,
        scanline 6s linear infinite;
}

@keyframes flicker {
    0%,
    100% {
        opacity: 1;
    }
    92% {
        opacity: 1;
    }
    93% {
        opacity: 0.97;
    }
    94% {
        opacity: 1;
    }
    95% {
        opacity: 0.98;
    }
    96% {
        opacity: 1;
    }
    97% {
        opacity: 0.96;
    }
}

@keyframes scanline {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100vh;
    }
}

.top-menu-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(136, 136, 136, 0.5);
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 4px 0 #0a0a0a,
        0 6px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.top-menu-btn-bg {
    position: fixed;
    top: -4px;
    right: -4px;
    width: 72px;
    height: 72px;
    background: linear-gradient(
        145deg,
        var(--color-base-200),
        var(--color-base-300)
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(136, 136, 136, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    pointer-events: none;
    overflow: hidden;
}

.top-menu-btn-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: inherit;
    z-index: 1;
}

.top-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #0a0a0a,
        0 10px 20px rgba(136, 136, 136, 0.4);
    border-color: rgba(136, 136, 136, 0.8);
}

.top-menu-btn:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #0a0a0a,
        0 4px 8px rgba(0, 0, 0, 0.4);
}

.top-menu {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 2px solid rgba(136, 136, 136, 0.5);
    border-radius: 8px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(136, 136, 136, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.top-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.top-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: #cccccc;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(136, 136, 136, 0.2);
}

.top-menu a:last-child {
    border-bottom: none;
}

.top-menu a:hover {
    background: rgba(136, 136, 136, 0.1);
    color: white;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .download-card {
        padding: 1rem;
    }

    .iso-icon {
        width: 100px;
        height: 100px;
        min-width: 100px;
    }

    .checksum-tile {
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 640px) {
    .download-card .flex.items-start {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .iso-icon {
        margin-bottom: 1rem;
    }
}

/* Modal Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

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

.modal-content {
    background: linear-gradient(
        145deg,
        var(--color-base-200),
        var(--color-base-300)
    );
    backdrop-filter: blur(10px);
    border: 2px solid rgba(136, 136, 136, 0.4);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(136, 136, 136, 0.3);
    transform: scale(0.9) translateY(30px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: inherit;
    z-index: 1;
}

.modal-header,
.modal-details {
    position: relative;
    z-index: 2;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(
        145deg,
        var(--color-base-200),
        var(--color-base-300)
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(136, 136, 136, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-close::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: inherit;
    z-index: 1;
}

.modal-close:hover {
    border-color: rgba(255, 0, 0, 0.6);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(136, 136, 136, 0.3);
}

.modal-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    margin: 0 auto 20px;
    display: block;
    border: 2px solid rgba(136, 136, 136, 0.4);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 0 4px rgba(26, 26, 26, 0.3);
    position: relative;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(136, 136, 136, 0.3);
}

.modal-details {
    color: #e0e0e0;
    line-height: 1.8;
}

.modal-details > h3:first-of-type {
    margin-top: 0;
}

.modal-details h3 {
    font-size: 1.3rem;
    color: #aaa;
    margin-top: 25px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 3px solid rgba(136, 136, 136, 0.6);
    padding-left: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.modal-details p {
    margin-bottom: 15px;
    color: #b0b0b0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-details ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.modal-details ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #b0b0b0;
    border-bottom: 1px solid rgba(136, 136, 136, 0.1);
}

.modal-details ul li:last-child {
    border-bottom: none;
}

.modal-details ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #888;
    font-size: 1.2rem;
}

/* Collapsible requirement items */
.requirements-list {
    list-style: none;
    padding-left: 0;
}

.requirement-item {
    padding: 0;
    margin-bottom: 12px;
    background: linear-gradient(
        145deg,
        var(--color-base-200),
        var(--color-base-300)
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(136, 136, 136, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.requirement-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: inherit;
    z-index: 1;
}

.requirement-item::before {
    display: none;
}

.requirement-item:hover {
    border-color: rgba(136, 136, 136, 0.5);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.requirement-item.active {
    border-color: rgba(136, 136, 136, 0.6);
}

.requirement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer !important;
    transition: all 0.3s ease;
    user-select: none !important;
    position: relative;
    z-index: 2;
}

.requirement-title {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.95rem;
    flex: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.requirement-arrow {
    color: #888;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    margin-left: 10px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
    flex-shrink: 0;
}

.requirement-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
    z-index: 2;
}

.requirement-details p {
    padding: 0 20px 16px 20px;
    margin: 0;
    color: #b0b0b0;
    line-height: 1.7;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        max-height: 85vh;
    }

    .modal-image {
        width: 150px;
        height: 150px;
    }

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

    .modal-details h3 {
        font-size: 1.2rem;
    }
}

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

.modal-content::-webkit-scrollbar-track {
    background: rgba(136, 136, 136, 0.1);
    border-radius: 10px;
    margin: 10px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(136, 136, 136, 0.4);
    border-radius: 10px;
    transition: background 0.3s ease;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(136, 136, 136, 0.6);
    background-clip: padding-box;
}
