:root {
    --primary-color: #00ff88;
    --secondary-color: #00ccff;
    --bg-color: #0a0a12;
    --card-bg: #161625;
    --text-color: #e0e0e0;
    --accent-glow: 0 0 10px rgba(0, 255, 136, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Global offset for sticky header */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Orbitron', sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 18, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: var(--accent-glow);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links .nav-highlight {
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
}

.nav-links .nav-highlight:hover {
    background: var(--secondary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.4);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Fake Ad Styles */
.fake-ad-overlay {
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    border-radius: 12px; /* Match parent radius */
    overflow: hidden;
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

#adVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.no-video-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #111, #222);
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.no-video-fallback i {
    font-size: 5rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}

.ad-ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through to video if needed */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    z-index: 3;
}

.ad-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ad-badge {
    background: #f1c40f;
    color: #000;
    padding: 0.2rem 0.5rem;
    font-weight: bold;
    font-size: 0.8rem;
    border-radius: 2px;
}

.ad-url {
    color: #fff;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

.ad-controls {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: auto;
}

.skip-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.skip-timer {
    color: #fff;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.6);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.yt-skip-btn {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 1px solid #555;
    padding: 0.8rem 2rem;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border-radius: 4px;
}

.yt-skip-btn:hover {
    background: rgba(50, 50, 50, 0.9);
    border-color: #fff;
}

.yt-skip-btn.hidden {
    display: none;
}

.menu-toggle {
    display: none;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a12 70%);
}

.hero-content {
    max-width: 800px;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
    text-shadow: var(--accent-glow);
}

.promo-banner {
    background: linear-gradient(45deg, #ff0055, #ff5500);
    padding: 1rem;
    border-radius: 8px;
    margin: 2rem auto;
    display: inline-block;
    animation: pulse 2s infinite;
}

.badge {
    background: #fff;
    color: #b3003b;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    text-transform: uppercase;
}

.download-area {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-top: 2rem;
}

.ram-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ram-option {
    background: #252535;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.ram-option:hover {
    transform: translateY(-5px);
}

.ram-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.17em;
    font-weight: bold;
    margin-bottom: 1rem;
}

.ram-option.selected {
    border-color: var(--secondary-color);
    background: rgba(0, 204, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.4);
}

/* Share Bonus Styles */
.share-bonus-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed #555;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.share-bonus-container.unlocked {
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
    border-style: solid;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.bonus-title {
    font-weight: bold;
    color: #aaa;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.unlocked .bonus-title {
    color: var(--primary-color);
}

.bonus-desc {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.x { background: #000000; }
.facebook { background: #1877F2; }
.whatsapp { background: #25D366; }
.telegram { background: #0088cc; }
.reddit { background: #FF4500; }
.tiktok { background: #000000; border: 1px solid #333; }

.enterprise-promo-link {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #aaa;
    animation: fadeIn 1s ease-out;
}

.enterprise-promo-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    margin-left: 0.5rem;
    transition: all 0.3s;
    display: inline-block;
}

.enterprise-promo-link a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--secondary-color);
    transform: translateX(5px);
}

.cta-button {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
}

.cta-button:disabled {
    background: #555;
    cursor: not-allowed;
    box-shadow: none;
}

/* Tech Specs Panel */
.tech-specs-panel {
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #00ff88;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.1);
}

.tech-specs-panel div {
    border-bottom: 1px dashed #333;
    padding-bottom: 0.2rem;
}

.tech-specs-panel span {
    color: #aaa;
    font-weight: bold;
}

/* Download Overlay (Lightbox) */
.download-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed from center to allow scroll */
    z-index: 20000; /* Increased to be above Hot RAM Banner (9999) and Radio */
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
    overflow-y: auto; /* Enable vertical scroll */
    padding: 20px 0; /* Add breathing room */
}

.download-overlay.hidden {
    display: none;
}

/* Sections Scroll Offset */
section, #products, #testimonials, #support, #features, #how-it-works, #pricing-table, #faq, #enterprise {
    scroll-margin-top: 80px;
}

/* Download Status Panel */
.download-status-panel {
    background: #0a0a12;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.2);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    margin: auto; /* Center vertically if space allows */
    flex-shrink: 0; /* Prevent shrinking */
}

.close-download-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    transition: color 0.3s;
}

.close-download-btn:hover {
    color: #fff;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.blink {
    animation: blink 1s infinite;
    color: #ff0055;
}

.server-name {
    color: #fff;
}

/* Visuals */
.download-visuals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.device-icon {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 0 10px var(--secondary-color);
}

.data-stream {
    flex-grow: 1;
    height: 2px;
    background: #333;
    margin: 0 1rem;
    position: relative;
    display: flex;
    align-items: center;
}

.stream-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
}

.stream-particles i {
    position: absolute;
    color: var(--primary-color);
    font-size: 1rem;
    animation: streamMove 1s linear infinite;
    opacity: 0;
}

.stream-particles i:nth-child(1) { animation-delay: 0s; }
.stream-particles i:nth-child(2) { animation-delay: 0.3s; }
.stream-particles i:nth-child(3) { animation-delay: 0.6s; }

@keyframes streamMove {
    0% { left: 0; opacity: 0; transform: scale(0.5); }
    10% { opacity: 1; transform: scale(1); }
    90% { opacity: 1; transform: scale(1); }
    100% { left: 100%; opacity: 0; transform: scale(0.5); }
}

/* Progress Info */
.progress-wrapper {
    margin-bottom: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.progress-bar-bg {
    background: #1a1a2e;
    height: 25px;
    border-radius: 4px;
    border: 1px solid #333;
    overflow: hidden;
}

.progress-bar-fill {
    background: repeating-linear-gradient(
        45deg,
        var(--primary-color),
        var(--primary-color) 10px,
        #00cc6a 10px,
        #00cc6a 20px
    );
    background-size: 200% 200%;
    animation: stripeMove 1s linear infinite;
    height: 100%;
    width: 0%;
    box-shadow: 0 0 15px var(--primary-color);
    transition: width 0.1s linear;
}

@keyframes stripeMove {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #333;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: #aaa;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    color: #66d9ff;
}

/* Boost Button */
.boost-container {
    margin-bottom: 1.5rem;
    text-align: center;
}

.boost-button {
    background: linear-gradient(45deg, #ff9900, #ff5500);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.4);
    transition: all 0.3s;
    animation: pulse 2s infinite;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.boost-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 153, 0, 0.6);
}

.boost-button.disabled {
    background: #333;
    cursor: not-allowed;
    box-shadow: none;
    animation: none;
    opacity: 0.5;
}

/* Terminal */
.terminal-window {
    background: #0a0a12;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
}

.terminal-header {
    background: #333;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    color: #ccc;
    font-family: monospace;
}

.terminal-log {
    height: 120px;
    padding: 0.8rem;
    font-size: 0.8rem;
    border: none;
    border-top: 1px solid #333;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Testimonials Marquee */
.testimonials {
    background: #111;
    padding: 5rem 0; /* Remove side padding to allow full width marquee */
    text-align: center;
    overflow: hidden;
}

.speed-warning {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.testimonial-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 3s linear infinite; /* Super fast speed */
}

.testimonial-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    background: #161625; /* Dark background matching card-bg */
    padding: 1.5rem;
    border-radius: 4px;
    width: 350px;
    flex-shrink: 0;
    white-space: normal;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    color: #e0e0e0; /* Light text */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.1);
    border-color: #555;
}

/* Trustpilot Style Elements */
.tp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tp-stars {
    display: flex;
    gap: 2px;
}

.tp-stars i {
    background-color: #00b67a; /* Trustpilot Green */
    color: #fff;
    padding: 4px;
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-date {
    font-size: 0.8rem;
    color: #aaa; /* Lighter gray for dark mode */
}

.tp-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    color: #fff; /* White title */
    font-family: 'Roboto', sans-serif;
}

.tp-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #ccc; /* Light gray text */
    flex-grow: 1;
    margin: 0;
}

.tp-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    border-top: 1px solid #333; /* Darker border */
    padding-top: 1rem;
}

.tp-avatar {
    width: 40px;
    height: 40px;
    background: #252535; /* Darker avatar bg */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 0.9rem;
    border: 1px solid #444;
}

.tp-user-info {
    display: flex;
    flex-direction: column;
}

.tp-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.tp-verified {
    font-size: 0.8rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tp-verified i {
    color: #aaa;
}

/* Trustpilot Summary Widget */
.tp-summary-widget {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 1s ease-out;
}

.tp-summary-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.tp-summary-stars {
    display: flex;
    gap: 4px;
}

.tp-summary-stars i {
    background-color: #00b67a;
    color: #fff;
    padding: 6px;
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-summary-text {
    font-size: 0.9rem;
    color: #aaa;
}

.tp-summary-text strong {
    color: #fff;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves half way because we will duplicate content */
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Enterprise Section */
.enterprise-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #0a0a12 0%, #1a1a2e 100%);
    text-align: center;
    border-top: 1px solid #333;
}

.enterprise-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 0 50px rgba(0, 204, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.enterprise-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 204, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

.enterprise-content {
    position: relative;
    z-index: 1;
}

.enterprise-content h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.enterprise-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.enterprise-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #ccc;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.3);
}

.cta-button.secondary:hover {
    background: var(--secondary-color);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 204, 255, 0.6);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

footer {
    padding: 3rem 2rem;
    text-align: center;
    color: #aaa;
    border-top: 1px solid #333;
    background: #050508;
}

.eci-badge {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: inline-block;
    border: 1px dashed #444;
}

.eci-link {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    margin: 0.5rem 0;
    transition: color 0.3s;
}

.eci-link:hover {
    color: var(--secondary-color);
}

.innocent-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: bold;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--text-color);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(10, 10, 18, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-bottom: 1px solid #333;
        padding: 2rem 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 16px 0;
    }
}

/* New Styles for Extended Content */

.ram-option .price {
    font-weight: bold;
    color: var(--primary-color);
}

.ram-option .trial {
    font-size: 0.8rem;
    color: #aaa;
    display: block;
    margin-top: 0.2rem;
}

/* How It Works */
.how-it-works {
    padding: 5rem 2rem;
    background: #0f0f1a;
    text-align: center;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.step {
    max-width: 300px;
    position: relative;
}

.step-number {
    background: var(--secondary-color);
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    font-family: 'Orbitron', sans-serif;
}

/* Pricing Table */
.pricing-section {
    padding: 5rem 2rem;
    text-align: center;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pricing-table {
    width: 100%;
    max-width: 1000px;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.pricing-table th, .pricing-table td {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #333;
}

.pricing-table th {
    background: #252535;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* FAQ */
.faq-section {
    padding: 5rem 2rem;
    background: #0f0f1a;
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: left;
}

details {
    background: var(--card-bg);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: bold;
    list-style: none;
    position: relative;
    transition: color 0.3s;
}

summary:hover {
    color: var(--primary-color);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
}

details[open] summary::after {
    content: '-';
}

details p {
    padding: 0 1.5rem 1.5rem;
    color: #aaa;
    border-top: 1px solid #333;
    margin-top: 0;
    padding-top: 1rem;
}

/* Support Section */
.support-section {
    padding: 5rem 2rem;
    text-align: center;
}

.support-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.support-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    text-align: left;
    border: 1px solid #333;
}

.support-card h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.status-indicator {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.status-indicator.offline {
    background: rgba(255, 102, 153, 0.2);
    color: #ff6699;
    border: 1px solid #ff6699;
}

.status-indicator .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ff6699;
    border-radius: 50%;
    margin-right: 5px;
}

#supportForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#supportForm input,
#supportForm select,
#supportForm textarea {
    background: #0a0a12;
    border: 1px solid #333;
    padding: 1rem;
    color: #fff;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
}

#supportForm input:focus,
#supportForm select:focus,
#supportForm textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.cta-button.small {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    width: 100%;
}

/* Custom Alert Modal */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30000; /* Highest priority (above Radio, Hot RAM, Download) */
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

/* Specific Z-Index for NFT Alert to be above Album Modal */
#customAlert.custom-alert-overlay {
    z-index: 30001 !important;
}

.custom-alert-overlay.hidden {
    display: none;
}

.custom-alert-box {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    overflow: hidden;
    transform: scale(0.9);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.alert-header {
    background: rgba(0, 255, 136, 0.1);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.alert-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-alert {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-alert:hover {
    color: #fff;
}

.alert-body {
    padding: 2rem;
    text-align: center;
    font-size: 1.1rem;
    color: #fff;
}

.alert-footer {
    padding: 1rem;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Hot RAM Banner (Invasive Ad) */
.hot-ram-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    color: #000;
    width: 320px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    z-index: 20002; /* Higher than download overlay (20000) */
    border: 2px solid #ff0055;
    animation: slideInRight 0.5s ease-out 3s forwards; /* Appears after 3s */
    transform: translateX(150%); /* Start hidden */
    font-family: 'Arial', sans-serif; /* Generic ad font */
    text-align: left;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.hot-ram-banner.hidden-by-footer,
.cyber-radio.hidden-by-footer {
    transform: translateY(200%) !important;
    opacity: 0;
    pointer-events: none;
}

@keyframes slideInRight {
    to { transform: translateX(0); }
}

.hot-ram-content {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.hot-ram-icon {
    font-size: 3rem;
    color: #ff0055;
    animation: pulse 1s infinite;
}

.hot-ram-text .hot-ram-title {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #d32f2f;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
}

.hot-ram-text p {
    font-size: 0.9rem;
    line-height: 1.3;
    color: #333;
    font-style: italic;
}

.hot-ram-btn {
    display: block;
    background: #2ecc71;
    color: #000;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}

.hot-ram-btn:hover {
    background: #27ae60;
}

.close-hot-ram {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #ff0000;
    border: 2px solid #fff;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    z-index: 10000;
    transition: all 0.2s ease;
}

.close-hot-ram.escaping {
    animation: blink-red 0.5s infinite;
}

.close-hot-ram:hover {
    background: #cc0000;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 0, 0, 1);
}

@keyframes blink-red {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(255, 0, 0, 0.8); }
    50% { opacity: 0.8; box-shadow: 0 0 25px rgba(255, 0, 0, 1); }
}
/* Shared Button State - Updated */
.share-btn.shared {
    opacity: 0.8;
    cursor: pointer !important;
    filter: grayscale(1);
    position: relative;
}

.share-btn.shared::after {
    content: '\f00c'; /* FontAwesome Check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -5px;
    right: -5px;
    background: #00ff88;
    color: #000;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
}

.share-btn.shared:hover {
    transform: translateY(-3px);
    filter: grayscale(0);
}


/* Cyberpunk Radio */
.cyber-radio {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 325px;
    background: rgba(10, 10, 18, 0.95);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    z-index: 20001; /* Higher than download overlay (20000) */
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cyber-radio.minimized {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    background: var(--primary-color); /* Fix dark borders */
    box-shadow: 0 0 15px var(--primary-color);
    transition: none; /* Instant minimize to avoid deformation */
}

.cyber-radio.minimized .radio-body, 
.cyber-radio.minimized .radio-header span {
    display: none;
}

.cyber-radio.minimized .radio-header {
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-color);
    border: none;
}

.cyber-radio.minimized .minimize-btn {
    color: #000;
    font-size: 1.2rem;
}

.radio-header {
    background: rgba(0, 255, 136, 0.1);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.minimize-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.minimize-btn:hover {
    color: #fff;
}

.radio-body {
    padding: 1rem;
}

.radio-display {
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.equalizer {
    display: flex;
    gap: 2px;
    height: 20px;
    align-items: flex-end;
}

.bar {
    width: 3px;
    background: var(--primary-color);
    height: 20%;
    animation: equalize 0.5s infinite alternate;
    animation-play-state: paused;
}

.cyber-radio.playing .bar {
    animation-play-state: running;
}

@keyframes equalize {
    0% { height: 20%; }
    100% { height: 100%; }
}

.equalizer .bar:nth-child(1) { animation-delay: 0.1s; }
.equalizer .bar:nth-child(2) { animation-delay: 0.3s; }
.equalizer .bar:nth-child(3) { animation-delay: 0.5s; }
.equalizer .bar:nth-child(4) { animation-delay: 0.2s; }
.equalizer .bar:nth-child(5) { animation-delay: 0.4s; }

.track-marquee {
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.75rem;
    color: #fff;
    width: 100%;
    text-overflow: ellipsis;
}

.radio-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.control-btn {
    background: none;
    border: 1px solid #333;
    color: #aaa;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    border-color: var(--primary-color);
    color: #fff;
}

.play-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
}

.play-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.radio-bonus {
    text-align: center;
    font-size: 0.7rem;
    color: #666;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.radio-bonus.active {
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    /* Typography & Layout */
    h1 { font-size: 2rem; }
    
    section, .features, .pricing-section, .faq-section, .support-section, .enterprise-section {
        padding: 3rem 1rem;
    }

    .hero {
        min-height: auto;
        padding: 6rem 1rem 3rem;
    }

    /* Navigation */
    .menu-toggle {
        display: block;
        cursor: pointer;
        position: relative; /* Fix z-index issue */
        z-index: 1001; /* Higher than nav-links */
    }

    .menu-toggle .menu-bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: #fff !important; /* Force White for Menu */
        box-shadow: 0 0 2px rgba(0,0,0,0.5);
    }

    .menu-toggle.active .menu-bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .menu-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .menu-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Fix for Equalizer Bars in Mobile */
    .equalizer .bar {
        background: #00ff88 !important; /* Force Neon Green */
        background-color: #00ff88 !important;
        width: 4px !important;
        min-height: 4px !important; /* Ensure minimum visibility */
        margin: 0 1px !important; 
        box-shadow: 0 0 8px #00ff88 !important; 
        opacity: 1 !important;
        display: inline-block !important;
        /* Animation restored */
        animation: equalize 0.5s infinite alternate !important;
        animation-play-state: paused !important; /* Default paused */
    }

    .cyber-radio.playing .bar {
        animation-play-state: running !important;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: rgba(10, 10, 18, 0.98);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        border-bottom: 1px solid #333;
        padding: 5rem 0 2rem;
        overflow-y: auto;
        z-index: 1000; /* High but below toggle */
    }

    .nav-links.active { left: 0; }
    .nav-links li { margin: 16px 0; }

    /* Components */
    .ram-selector {
        gap: 0.5rem;
    }
    
    .ram-option {
        padding: 0.8rem;
        flex: 1 1 40%; /* 2 per row */
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-status-panel {
        width: 95%;
        padding: 1rem;
    }

    .download-visuals {
        padding: 0;
    }

    .device-icon {
        font-size: 1.5rem;
    }

    /* Radio & Ads Mobile Adjustment */
    .cyber-radio {
        bottom: 180px; /* Raised significantly to avoid Hot RAM banner overlap */
        left: 10px;
        width: 325px;
        z-index: 10001;
    }
    
    .cyber-radio.minimized {
        width: 50px;
        height: 50px;
    }

    .hot-ram-banner {
        width: 100%;
        right: 0;
        left: 0;
        bottom: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 10px;
        transform: translateY(100%); /* Start hidden downwards */
        z-index: 19999 !important; /* Lower than download overlay (20000) on mobile */
    }

    @keyframes slideInRight {
        to { transform: translateY(0); } /* Slide up instead of left */
    }
    
    .hot-ram-content {
        justify-content: center;
    }
    
    .close-hot-ram {
        top: -15px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .ram-option {
        flex: 1 1 100%; /* 1 per row */
    }

    .share-buttons {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .share-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .tech-specs-panel {
        grid-template-columns: 1fr;
    }
    
    .pricing-table th, .pricing-table td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .cyber-radio {
        width: calc(100% - 20px);
    }
}


@media (max-width: 768px) {
    /* Fix for Ad Overlay on Mobile - Make it full screen fixed so controls are always visible */
    .fake-ad-overlay {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        z-index: 9999 !important;
    }

    /* Ensure Ad Controls are accessible */
    .ad-controls {
        padding-bottom: 40px; /* Lift controls up a bit */
    }

    /* Reduce Terminal Height on Mobile to save space */
    .terminal-log {
        height: 80px !important;
    }

    /* Improve scrolling for the download panel */
    .download-overlay {
        padding-top: 20px;
        padding-bottom: 100px; /* Extra space at bottom for scrolling */
        align-items: flex-start;
    }

    .download-status-panel {
        margin-bottom: 50px;
    }
}

.fake-ad-overlay {
    z-index: 20000 !important; /* Ensure it is above Hot RAM banner (9999) */
}


/* Installed RAM Option State */
.ram-option.installed {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
    position: relative;
}

.ram-option.installed::after {
    content: '\f00c'; /* FontAwesome Check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -10px;
    right: -10px;
    background: #00ff88;
    color: #000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    z-index: 10;
}

.ram-option.installed h3 {
    color: #00ff88;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.ram-option.installed .price {
    color: #666;
}


/* Album Promo Banner */
.album-promo {
    background: linear-gradient(90deg, #ff0055, #ff5500);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid #000;
    transition: filter 0.3s;
}

.album-promo:hover {
    filter: brightness(1.2);
}

.album-art {
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 4px;
    border: 1px solid #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.album-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.album-title {
    font-weight: bold;
    font-size: 0.85rem;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}

.album-sub {
    font-size: 0.7rem;
    color: #ffd700;
    font-weight: bold;
}

/* Hide album promo when minimized */
.cyber-radio.minimized .album-promo {
    display: none;
}


/* Album Modal Specific Styles */
.album-modal-box {
    max-width: 400px; /* Slightly narrower to look more packed */
}

.album-modal-box .alert-body {
    padding: 1rem 1.5rem; /* Reduced padding */
}

.album-modal-box .album-cover-large img {
    max-width: 100% !important; /* Override inline style */
    margin-bottom: 0.5rem !important;
    box-shadow: 0 0 15px rgba(0,0,0,0.8) !important;
}

.album-modal-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem !important;
}

.album-modal-box p {
    font-size: 0.9rem;
    margin-bottom: 1rem !important;
}


/* Mini Game Styles */
.mini-game-wrapper {
    margin-top: 1rem;
    background: #050505;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0;
    position: relative;
    text-align: center;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #151520;
    border-bottom: 1px solid #333;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
}

.game-title {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-score {
    color: #fff;
    font-family: 'Roboto', monospace;
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

#snakeCanvas {
    background: #080808;
    border: none;
    width: 100%;
    display: block;
    image-rendering: pixelated;
    /* Scanline effect background */
    background-image: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
}

.game-overlay {
    position: absolute;
    top: 36px; /* Header height approx */
    left: 0;
    width: 100%;
    height: calc(100% - 36px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.85);
    z-index: 10;
    backdrop-filter: blur(2px);
    flex-direction: column;
    gap: 10px;
}

.game-overlay .cta-button {
    width: auto;
    min-width: 140px;
}

.game-overlay.hidden {
    display: none;
}

/* Mobile Joystick */
.joystick-area {
    display: none; /* Hidden by default (desktop) */
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    touch-action: none; /* Prevent zoom/scroll */
}

.joystick-base {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #444;
    border-radius: 50%;
    position: relative;
    touch-action: none; /* Prevent scroll */
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.joystick-stick {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centered by default */
    box-shadow: 0 0 15px var(--primary-color);
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.joystick-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
    font-family: 'Orbitron', sans-serif;
}

/* Mobile D-Pad */
.mobile-controls {
    display: none; /* Hidden by default */
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    max-width: 150px;
    margin: 10px auto;
    padding-bottom: 10px;
    touch-action: none; /* Prevent zoom/scroll */
}

.d-pad {
    background: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.1s;
    touch-action: manipulation; /* Prevent double-tap zoom */
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none;
}

.d-pad:active {
    background: var(--primary-color);
    color: #000;
}

.d-pad.up { grid-column: 2; }
.d-pad.left { grid-column: 1; grid-row: 2; }
.d-pad.right { grid-column: 3; grid-row: 2; }
.d-pad.down { grid-column: 2; grid-row: 2; }

/* Controls Toggle */
.controls-toggle-wrapper {
    display: none; /* Hidden on desktop */
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    touch-action: manipulation;
}

.toggle-btn {
    background: #111;
    border: 1px solid #333;
    color: #888;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    touch-action: manipulation;
}

.toggle-btn.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .controls-toggle-wrapper {
        display: flex;
    }
    
    /* Show active control scheme */
    .joystick-area.active {
        display: flex;
    }
    
    .mobile-controls.active {
        display: grid;
    }
    
    /* Hide inactive ones (override display flex/grid) */
    .joystick-area.hidden {
        display: none !important;
    }
    
    .mobile-controls.hidden {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-controls, .joystick-area, .controls-toggle-wrapper {
        display: none !important; /* Hide on desktop, use keyboard */
    }
}


/* Forbidden Button (Subtle) */
.danger-btn {
    background: transparent;
    color: #d9534f;
    border: 1px solid #d9534f;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Segoe UI', sans-serif;
    border-radius: 4px;
    opacity: 0.7;
    transition: all 0.3s;
    margin-top: 10px;
}

.danger-btn:hover {
    background: #d9534f;
    color: #fff;
    opacity: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Mac Kernel Panic Style */
.bsod-overlay.mac-panic {
    background: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    align-items: flex-start;
    padding-top: 100px;
}

.bsod-overlay.mac-panic .bsod-face,
.bsod-overlay.mac-panic .bsod-qr,
.bsod-overlay.mac-panic .bsod-details {
    display: none;
}

.bsod-overlay.mac-panic .bsod-content h1 {
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: none;
    margin-bottom: 10px;
}

/* Linux Kernel Panic Style */
.bsod-overlay.linux-panic {
    background: #000000;
    font-family: 'Courier New', Courier, monospace;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    overflow: hidden;
}

.bsod-overlay.linux-panic .bsod-face,
.bsod-overlay.linux-panic .bsod-qr,
.bsod-overlay.linux-panic .bsod-details,
.bsod-overlay.linux-panic .bsod-progress {
    display: none;
}

.bsod-overlay.linux-panic .bsod-content {
    font-size: 14px;
    line-height: 1.2;
    color: #cccccc;
    text-shadow: none;
}

.bsod-overlay.linux-panic .panic-line {
    display: block;
    margin-bottom: 2px;
}

.bsod-overlay.linux-panic .panic-error {
    color: #ff5555;
    font-weight: bold;
}

/* BSOD Overlay */
.bsod-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0078d7; /* Windows Blue */
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 999999; /* Top of everything */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10%;
    cursor: none; /* Hide cursor */
}

.bsod-overlay.hidden {
    display: none;
}

.bsod-content {
    max-width: 1000px;
    width: 100%;
}

.bsod-face {
    font-size: 10rem;
    margin-bottom: 2rem;
    font-weight: lighter;
}

.bsod-text {
    font-size: 1.5rem;
    line-height: 1.4;
}

.bsod-text p {
    margin-bottom: 1.5rem;
}

.bsod-progress {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.bsod-qr {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 2rem;
}

.bsod-qr img {
    width: 120px;
    height: 120px;
    background: #fff;
    padding: 5px;
}

.bsod-details {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.bsod-details p {
    margin-bottom: 0.5rem;
}

/* Retro Mode BSOD Override */
.retro-mode .bsod-overlay {
    background-color: #0000aa; /* DOS Blue */
    font-family: 'Courier New', monospace;
}

/* Crypto Miner Widget (Footer) */
.crypto-miner {
    display: inline-block;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: #00ff00;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    border: 1px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
    transition: all 0.3s;
    cursor: help;
    text-align: left;
}

.crypto-miner:hover {
    background: #220000;
    color: #ff5555;
    border-color: #ff5555;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.miner-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.75rem;
}

.miner-value {
    text-align: right;
    font-size: 1rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .crypto-miner {
        display: none !important;
    }
}


/* --- BINARY MODE --- */
.binary-mode {
    font-family: 'Courier New', monospace !important;
    color: #00ff88 !important;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.binary-mode h1, .binary-mode h2, .binary-mode h3, .binary-mode .logo, .binary-mode .ram-title {
    font-family: 'Courier New', monospace !important;
    text-transform: uppercase;
}

.binary-mode .cta-button, .binary-mode .ram-option {
    border: 1px solid #00ff88 !important;
    background: #000 !important;
    color: #00ff88 !important;
    box-shadow: none !important;
}

.binary-mode img {
    filter: grayscale(100%) contrast(120%) brightness(0.8) sepia(100%) hue-rotate(90deg) saturate(300%);
    opacity: 0.8;
}

/* --- MATRIX BUTTON STYLE --- */
.matrix-trigger {
    display: inline-flex; /* Changed to inline-flex for better centering */
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 12px;
    border: 1px solid #333;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    vertical-align: middle;
}

.matrix-trigger:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    color: #00ff88 !important;
}

.matrix-trigger.active {
    background: #00ff88;
    color: #000 !important;
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    font-weight: bold;
}

.matrix-trigger i {
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .matrix-trigger {
        width: 80%; /* Wider on mobile */
        margin: 0 auto; /* Center it */
        padding: 10px;
        border-color: #444;
    }
    
    /* Optimize Navbar: Hide less important links on mobile to prevent clutter */
    .nav-links li:nth-child(2), /* Características */
    .nav-links li:nth-child(3), /* Cómo Funciona */
    .nav-links li:nth-child(5), /* FAQ */
    .nav-links li:nth-child(6)  /* Testimonios */
    {
        display: none;
    }
}



/* --- RESPONSIVE MENU ICONS (1550px) --- */
@media (max-width: 1550px) and (min-width: 769px) {
    .nav-links span {
        display: none;
    }
    .nav-links i {
        font-size: 1.4rem;
        margin-right: 0;
    }
    .nav-links {
        gap: 1.5rem;
    }
    /* Matrix button specific adjustment for icon-only mode */
    .matrix-trigger span {
        display: none;
    }
    .matrix-trigger {
        padding: 8px;
    }
}

/* --- NAVBAR ALIGNMENT FIX --- */
.navbar {
    align-items: center;
}
.nav-links {
    align-items: center;
}



