@font-face {
    font-family: 'Share Tech Mono';
    src: url('../fonts/ShareTechMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Press Start 2P';
    src: url('../fonts/PressStart2P-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
  
@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #0f0;
    --secondary-color: #00ff9d;
    --accent-color: #00b3ff;
    --warning-color: rgb(255, 94, 0);
    --error-color: rgb(255, 0, 0);
    --text-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
    --glow-shadow: 0 0 18px rgba(0, 255, 0, 0.6);
    --bg-color: #000806;
    --terminal-bg: rgba(0, 15, 10, 0.85);
    --scan-line-color: rgba(0, 255, 0, 0.1);
    --border-color: rgba(0, 255, 150, 0.3);
    --menu-btn-text: #000000;
    --game-font: 'Share Tech Mono', monospace;
    --font-scale: 1;
    --font-size-base: calc(16px * var(--font-scale));
    --font-size-small: calc(12px * var(--font-scale));
    --font-size-medium: calc(14px * var(--font-scale));
    --font-size-large: calc(18px * var(--font-scale));
    --font-size-xl: calc(20px * var(--font-scale));
    --font-size-xxl: calc(24px * var(--font-scale));
    --font-size-huge: calc(32px * var(--font-scale));
    --btn-yes-bg: #28a745;
    --btn-no-bg: #dc3545;
    
    transition: --primary-color 0.3s, --secondary-color 0.3s, --accent-color 0.3s, 
                --text-shadow 0.3s, --glow-shadow 0.3s, --terminal-bg 0.3s, 
                --scan-line-color 0.3s, --border-color 0.3s, --font-scale 0.3s;
}

html.effects-disabled .crt-glitch,
html.effects-disabled .crt-flicker,
html.effects-disabled .flicker,
html.effects-disabled .color-shift,
html.effects-disabled .crt-noise,
html.effects-disabled .scan-line,
html.effects-disabled #scan-animation,
html.effects-disabled #scan-wave,
html.effects-disabled .screen-shake {
    animation: none !important;
    -webkit-animation: none !important;
    opacity: 0 !important;
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

html.effects-disabled .crt-glitch::before,
html.effects-disabled .crt-flicker::before {
    display: none !important;
}

html, body,
.window, .window *,
.terminal-output, .terminal-output .line,
.menu, .taskbar,
input, button, select, textarea,
.vds-window, .vds-window * {
    font-family: var(--game-font) !important;
}

.theme-blue {
    --primary-color: #00b3ff;
    --secondary-color: #0088ff;
    --accent-color: #84d7ff;
    --text-shadow: 0 0 8px rgba(0, 123, 255, 0.8);
    --glow-shadow: 0 0 18px rgba(0, 123, 255, 0.6);
    --bg-color: #000814;
    --terminal-bg: rgba(0, 8, 20, 0.85);
    --scan-line-color: rgba(0, 123, 255, 0.1);
    --border-color: rgba(0, 150, 255, 0.3);
    --menu-btn-text: #ffffff;
}

.theme-red {
    --primary-color: #ff0033;
    --secondary-color: #ff5555;
    --accent-color: #ff8888;
    --text-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
    --glow-shadow: 0 0 18px rgba(255, 0, 0, 0.6);
    --bg-color: #140000;
    --terminal-bg: rgba(20, 0, 0, 0.85);
    --scan-line-color: rgba(255, 0, 0, 0.1);
    --border-color: rgba(255, 50, 50, 0.3);
    --menu-btn-text: #ffffff;
}

.theme-purple {
    --primary-color: #b300ff;
    --secondary-color: #d355ff;
    --accent-color: #e088ff;
    --text-shadow: 0 0 8px rgba(179, 0, 255, 0.8);
    --glow-shadow: 0 0 18px rgba(179, 0, 255, 0.6);
    --bg-color: #0c0014;
    --terminal-bg: rgba(12, 0, 20, 0.85);
    --scan-line-color: rgba(179, 0, 255, 0.1);
    --border-color: rgba(179, 50, 255, 0.3);
    --menu-btn-text: #000000;
}

.theme-amber {
    --primary-color: #ffb300;
    --secondary-color: #ffc855;
    --accent-color: #ffdc88;
    --text-shadow: 0 0 8px rgba(255, 179, 0, 0.8);
    --glow-shadow: 0 0 18px rgba(255, 179, 0, 0.6);
    --bg-color: #140c00;
    --terminal-bg: rgba(20, 12, 0, 0.85);
    --scan-line-color: rgba(255, 179, 0, 0.1);
    --border-color: rgba(255, 179, 50, 0.3);
    --menu-btn-text: #000000;
}

.theme-white {
    --primary-color: #e1e1e1;
    --secondary-color: #ffffff;
    --accent-color: #b3e6ff;
    --warning-color: rgb(255, 94, 0);
    --error-color: rgb(255, 0, 0);
    --text-shadow: 0 0 8px rgba(220, 220, 220, 0.8);
    --glow-shadow: 0 0 18px rgba(220, 220, 220, 0.6);
    --bg-color: #101010;
    --terminal-bg: rgba(16, 16, 16, 0.85);
    --scan-line-color: rgba(220, 220, 220, 0.1);
    --border-color: rgba(220, 220, 220, 0.3);
        --menu-btn-text: #000000;
}

    .command-button {
        display: inline-block;
        padding: 8px 12px;
        margin: 6px 8px 6px 0;
        background: var(--secondary-color);
        color: var(--menu-btn-text);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 4px;
        cursor: pointer;
        font-family: var(--game-font);
        font-size: var(--font-size-medium);
        text-align: center;
        user-select: none;
    }

    .command-button:hover {
        filter: brightness(1.05);
    }

    .command-button.yes {
        background: var(--btn-yes-bg);
        color: #ffffff;
        border-color: rgba(0,0,0,0.2);
    }

    .command-button.no {
        background: var(--btn-no-bg);
        color: #ffffff;
        border-color: rgba(0,0,0,0.2);
    }

    #terminal-domain-submit.command-button {
        padding: 8px 15px !important;
        background: var(--btn-yes-bg) !important;
        color: #ffffff !important;
        border: 1px solid rgba(0,0,0,0.2) !important;
        border-radius: 4px;
    }

@keyframes flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.4; }
    94% { opacity: 0.6; }
    95% { opacity: 1; }
    96% { opacity: 0.8; }
    97% { opacity: 0.5; }
    98% { opacity: 0.9; }
    99% { opacity: 0.7; }
}

@keyframes scanLine {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

@keyframes glitch {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

@keyframes neonGlow {
    from {
        text-shadow: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color);
    }
    to {
        text-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color), 0 0 30px var(--secondary-color);
    }
}

.fish-eye {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: transparent;
    border-radius: 50% / 10%;
    box-shadow: 0 0 50px 30px rgba(0, 50, 0, 0.1) inset;
    overflow: hidden;
    filter: url('#fish-eye-filter');
    transform-origin: center center;
    transform: scale(1.03);
    animation: subtle-pulse 10s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0% { transform: scale(1.03); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1.03); }
}

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

.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 20, 0, 0.1) 50%,
        rgba(0, 20, 0, 0.1)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9990;
}

.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 255, 0, 0.05);
    pointer-events: none;
    z-index: 9991;
    animation: scanLine 6s linear infinite;
}

.crt-flicker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 50, 0, 0.03);
    pointer-events: none;
    z-index: 9992;
    animation: flicker 0.3s infinite;
}

.crt-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 60%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
    z-index: 9993;
}

.crt-glitch {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9994;
    animation: glitch 0.2s steps(1) infinite;
    opacity: 0;
}

.crt-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAFbnpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarVdtdiMpDP3PKrIEJCEBy+Hz3Owgy88VVNvtpJPM9HS6qgsMWEiPJ9nt/vfvlvsHl0SY5Kin2FOcNeYoLC7yctUxrcuPS7zfZ3J9uF8egsu1vp7fX3zaxHXKl0X0tZDr+/oI+VzI5aMgXQupzuthXAupry+QgFDW1qcl5mshnOv12qR+RNFLuS47zNda7k9Nva+vv/Q3IKElTYKoKFsUYl3LUUN+L6S6FRJbq5X8llJ+x/0dkoqM7jXgnnQcYmSvY/o8xce8L6N8BaXs68gejPx5tPvlvmT2uZL7nZFR2KjMr/jjej9XfKHD91mJv80r5eu8fH+fc/j7Ga+7+/NeFnm8LL6f7zlnqq9K+W3O7TnAZfZqKr9uGj5bUPiMunwtRP41+DGvYfxtMB5yjOxKtjhLNgAKgVSAmW0VFkYMiBESDQgJUJDECDNYoBhlZYW5MdJoYSFTBrLBaFImTlLYYBuMBAMsNbCSGYwUmBJyylkDZyMOLCqqqpo0q9WoWVOOnHTqKWfNOeese0k0qaSmJi1atWnXgYGFp4erS5cuXQcPnHSITjM1a9Gq7cJlRJaefMqqy5YtW3fseOPa4dn23fe999j3kdvg2pBhhg4bNmLUqN0P1i7Ufrl/wRovrJE2PvzCGqz6NoWV6J2yYw0s10TJGoywkB1rEAxsnFhbSIkTbccaK0MyMhYaJmuOdWONkYFTyChTfnD3g7lP8ebS/i3e+C3muMPdP4k57nD3N+Z+4m1nsVcVyUw9QqRvUbC2t0bWcZ/I/Xlx/+iFfqvgL1XcdQQ3XfCr6l6lxtvadGE2Y8YVxmGRiMFGEzWpWWfKQmPHYYAQWJfk51zZdIf+qPIJYpgZ4oSGPRXsJK0pj5FwcY5SDBi0Mcw+lswD9z1jGgb7ADszYMVshMFBncDWnHfk0VYYdNa5p5BtzmPs0UJnZbGrjDVQmGEFbK2QRc2Qg76NyUflEkZvOd9QOiDmA6JfF/e3CL8VRMJnjdqNTQCG7Qy6zNKGGUxsB/I04Kzx2c5NZrw1mXqyYWcIbBhYa8pjgiFhI6E2cAQMSuCf0tDXTGBHhtDdAqwJtICvTJkUo+9/0YuH/qnoi4r7XfR/j17or0f0WfS3o1f6c9HvnF5yekn0RdEXRV8U/SWnU45+JqcrJ5ScXnJ6yeklpytOfx19x+k7Tt9x+o7Td5y+4/Qdp+84fcfpO07fcfr+b07fcXp1+vM5faeAqgKqCqgqoCqgt5zeKqC3CugtoLcK6K0CeqvnrQJ6q4DeKqC3Cuh/UQG9rYDeFlBv67ktoN4WUG8LqLcF1NtFbwuotwXU2wLqbQH1fwHUo9OvTn/u9Gcdrzr+udNfdfxVx191/FXHX3X8VcdfdfxVxaOOR8ejjkfHo45Hx6OOR8ejjsddHnc57vK4y+Muj7s87vK4y+Muj7s87vK4y+Muj7v872d5POSH/AWVrTb4WHOUcwAAAYVpQ0NQSUNDIHByb2ZpbGUAAHicfZE9SMNAHMVfU6VFKg52EHXI0DpZEBVx1CoUoUKoFVp1MLn0C5o0JCkujoJrwcGPxaqDi7OuDq6CIPgB4uTopOgiJf4vKbSI8eC4H+/uPe7eAUK9zDSraxzQdNtMJeJiJrsqBl7RjzAEEMSszMxjUpKK47t+7Kse3Z/FZ+XfD1CNWcwJiEfJbJsF3iCeWbXtOe8Th1lRUozPicdMuiDxI9cVj984F1wWeGbYzKRmiceEY2K1g6UezCrmU+IIYY2VVqZcm/UM42zjFDNlVTKFpA9LHK9hNbLm6k+yZzHKG8pMOs8Yh7iW0sQKrtIHg/c2OxPG/3SU4nLKVSowSI8X6OiGRQL07YbF467jY2+B8BPgysj1pv7xGJDdBRo17R5TwMAQMFLU8nrvsZ3fsfP0y8+F3Fx1bwEj58z0cZMmI0B/F6hU7efGXdWpAe9z4DpDY5cMkRlKUyhXgvk5fT8Z+QYMtQJ91t6c+zfpQ3Il6emKFwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAylJREFUeJyVl1tS3DAQRXsNFRYSRjOwR1ZCLR/ESrzIZQm84LPID94ECwkMwyrI6aNbFjPjt6pU9dDrbkl9W6HhZ7Fk+MlwYbjpdnOe45zhyvCL4dLwm+E3E38yfDH84HaF4fvucLo4P8fZOc4Z7tzGta33F4bvDJdus7w7mKoYJ7Dxa5zJV6n7yfDXyfjF6bSGZTScWJxKx4UD/9U1mQRoWOOE8fCKIexwOr04R1YTBIdzFRhw/rCG0xsKOCvO2QqctdBlF+eK5JdTdZwtw/mIszPcwckKHWejASdtdCenCkbDiVCccpwtwRkJpzo5KcJZOZ30OFWBswGcdDglwalijBCnFedzhPPe6VRBkDgVQJw1zoY4W9XpVYKDcT7FOS4dJ7rjpMmDmLzHSZ7U5D1OilCc2VufcOo46eUBTnZyPvQ4ScjZ0pycOk5GkodIHlryEclHAE9xXvlJCxbkOC08pjrDAyZv0TzZ5GtPXgqTR/NQk/89eWydTk8eDZP3yaN28jWTR03yk3nqJ1+dPPwmP558CeCR5Ikmj3zyXMkJTz518gGT9zlBNk938ijIeTrJvTPPdPIoTL5q8siSd5NHw+Rdz2MkT5C8m7xP3l+eUvJtm7wlj3wytzXPWPJ+8uiS90xugMftNk8+Y/Lxm2f28mjJFyzP5Mu5vzzUlgeLeYaSR/vbMyTP6MvDxbw8TM8zv+VBfllAz4MEeWYtD3p5ODRPCeRh5jzsloe952GK5KGTp9XzoJBnQc+DQp6tQh6my7NVfR4U8izoeVDIs5U9D0TysKbnQSHPFuc5WdbzoKbnWdTzoLjnwYKeB4U8WyDPUpKH7HlYWx5Wl4eS9TxTlwdmeVjU82zV86CVh7M8L1oeVpWHcM/DyvJQsp6H5D0PCnlY7nlQKw9rysNYz0P6PIQ9D8zysL7ngWl5YNbzsOh5YFoeFj0PzD1Pyp4HZnlY0/OglIcVPQ+L8jD3PDB7HliWh1U9D8p6HlbKw9jzwCgPi3oelvU8qOx5Upsn9TzU56E+D/V5qM9DfR7q81Cfh/o81OehPg/1eajPQ30e6vNQn4f6PNTnoT4P9Xmoz0N9HpLyJLQ8/AfV1WK+r0gP+AAAAABJRU5ErkJggg==');
    background-repeat: repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: 9995;
}

.crt-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 10px 2px rgba(0, 255, 0, 0.1) inset;
    pointer-events: none;
    z-index: 9996;
}

.crt-effect {
    position: relative;
    overflow: hidden;
    filter: brightness(1.1) contrast(1.15);
}

@keyframes color-shift {
    0% { filter: brightness(1.1) contrast(1.15); }
    10% { filter: brightness(1.3) contrast(1.2) hue-rotate(5deg); }
    20% { filter: brightness(1.1) contrast(1.15) hue-rotate(0deg); }
    30% { filter: brightness(1.2) contrast(1.25) hue-rotate(-5deg); }
    40% { filter: brightness(1.1) contrast(1.15) hue-rotate(0deg); }
    100% { filter: brightness(1.1) contrast(1.15); }
}

.color-shift {
    animation: color-shift 0.2s steps(4) forwards;
}

@keyframes screen-shake {
    0% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    20% { transform: translateX(5px); }
    30% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    50% { transform: translateX(-1px); }
    60% { transform: translateX(1px); }
    70% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    90% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

.screen-shake {
    animation: screen-shake 0.15s steps(5) forwards;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--game-font);
}

body {
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-size: var(--font-size-base);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100vh;
}

#game-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 15px;
    position: relative;
    z-index: 2;
}

#status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--terminal-bg);
    border-radius: 5px;
    border: 1px solid var(--secondary-color);
    margin-bottom: 10px;
    box-shadow: 0 0 10px var(--glow-shadow);
}

#status-bar span {
    margin-right: 15px;
    text-shadow: var(--text-shadow);
}

.near-capacity {
    color: var(--warning-color) !important;
    text-shadow: 0 0 8px rgba(255, 94, 0, 0.8) !important;
    animation: blink 1s infinite;
}

.server-offline {
    background-color: rgba(30, 0, 0, 0.7) !important;
    color: var(--error-color) !important;
    border-color: var(--error-color) !important;
}

@keyframes pulse-red {
    0%, 100% { text-shadow: 0 0 8px rgba(255, 0, 0, 0.6); }
    50% { text-shadow: 0 0 15px rgba(255, 0, 0, 0.9); }
}

.warning-icon {
    color: var(--warning-color);
    animation: pulse-red 2s infinite;
}

.server-panel-window {
    background-color: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 0 25px var(--glow-shadow), inset 0 0 15px rgba(0, 255, 150, 0.1);
    max-height: 80vh;
    position: absolute;
    top: 20%;
    left: 20%;
    overflow: hidden;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.server-panel-window::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        var(--scan-line-color),
        var(--scan-line-color) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 1000;
    opacity: 0.4;
}

.window {
    background: linear-gradient(180deg, rgba(10, 18, 16, 0.55), rgba(8, 14, 12, 0.5));
    border: 1px solid rgba(120, 220, 190, 0.18);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(120, 220, 190, 0.1) inset;
    position: absolute; 
    top: 20%; 
    left: 20%;
    overflow: hidden;
    z-index: 10;
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    min-width: 380px;
    min-height: 260px;
    resize: none;
}

.window-resizer {
    position: absolute;
    background: transparent;
    z-index: 1000;
}

.window-resizer.nw-resize {
    top: -5px;
    left: -5px;
    width: 15px;
    height: 15px;
    cursor: nw-resize;
}

.window-resizer.ne-resize {
    top: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    cursor: ne-resize;
}

.window-resizer.sw-resize {
    bottom: -5px;
    left: -5px;
    width: 15px;
    height: 15px;
    cursor: sw-resize;
}

.window-resizer.se-resize {
    bottom: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    cursor: se-resize;
    background: linear-gradient(
        135deg,
        transparent 0%,
        var(--secondary-color) 30%,
        transparent 70%
    );
    opacity: 0.3;
    border-radius: 3px;
}

.window-resizer.se-resize:hover {
    opacity: 0.6;
    background: linear-gradient(
        135deg,
        transparent 0%,
        var(--accent-color) 30%,
        transparent 70%
    );
}

.window-resizer.n-resize {
    top: -5px;
    left: 15px;
    right: 15px;
    height: 10px;
    cursor: n-resize;
}

.window-resizer.s-resize {
    bottom: -5px;
    left: 15px;
    right: 15px;
    height: 10px;
    cursor: s-resize;
}

.window-resizer.w-resize {
    left: -5px;
    top: 15px;
    bottom: 15px;
    width: 10px;
    cursor: w-resize;
}

.window-resizer.e-resize {
    right: -5px;
    top: 15px;
    bottom: 15px;
    width: 10px;
    cursor: e-resize;
}

.window::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(120% 100% at 0% 0%, rgba(0,255,150,0.08), transparent 50%),
                radial-gradient(120% 100% at 100% 0%, rgba(0,140,255,0.06), transparent 55%);
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

.window-title {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
    color: var(--color-text);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(120, 220, 190, 0.18);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    cursor: move;
}

.window-brand { display: flex; align-items: center; gap: 10px; }
.window-brand-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--bg-color);
    font-weight: bold;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-medium);
    box-shadow: 0 0 5px var(--glow-shadow);
}
.window-brand-text { color: var(--color-text); font-weight: 700; letter-spacing: 0.5px; }
.window-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--secondary-color), var(--accent-color));
    opacity: 0.6;
}

.window-close {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(120, 220, 190, 0.25);
    color: var(--color-text);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: all 0.15s ease;
    z-index: 100;
}

.window-close:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.window-content {
    padding: 0; 
    position: relative;
    z-index: 2;
    height: calc(100% - 44px); 
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
    box-sizing: border-box;
}

.tutorial-window {
    background: linear-gradient(180deg, rgba(0,0,0,0.75), rgba(0,0,0,0.55));
    border: 1px solid var(--border-color);
    border-radius: 10px;
    min-width: 320px;
    min-height: 120px;
    padding: 0;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.tutorial-window .window-title {
    background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tutorial-window .tutorial-content {
    padding: 12px 14px;
    color: #f6f6f6;
    line-height: 1.45;
}
.tutorial-window .tutorial-progress .tutorial-step {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: inline-block;
    margin: 0 6px;
}
.tutorial-window .tutorial-progress .tutorial-step.active,
.tutorial-window .tutorial-progress .tutorial-step.completed {
    background: var(--secondary-color);
}


.window-content::-webkit-scrollbar {
    width: 6px;
}

.window-content::-webkit-scrollbar-track {
    background: transparent;
}

.window-content::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.server-status-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.server-stat-group {
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 4px;
}

.server-stat-group h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.server-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    padding: 3px 0;
}

.stat-label {
    color: var(--primary-color);
}

.stat-value {
    color: var(--secondary-color);
}

.stat-value.warning {
    color: #ffcc00;
}

.stat-value.critical {
    color: var(--color-warning);
}

.stat-percentage {
    font-size: 0.85em;
    opacity: 0.8;
    margin-left: 5px;
}

.stat-note {
    display: block;
    font-size: 0.8em;
    color: var(--color-text-dim);
    margin-top: 2px;
    font-style: italic;
}

.server-status-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--color-text-dim);
}

.refresh-note {
    font-size: 0.8em;
    color: var(--color-text-dim);
}

.refresh-button {
    padding: 3px 10px;
    background-color: var(--color-text-dim);
    color: var(--color-background);
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

.refresh-button:hover {
    background-color: rgba(0, 255, 0, 0.2);
}

.restart-button {
    background: transparent;
    border: 1px solid var(--color-warning);
    color: var(--color-warning);
    padding: 5px 10px;
    cursor: pointer;
    margin-left: 10px;
    font-family: monospace;
    transition: all 0.3s ease;
}

.restart-button:hover {
    background-color: rgba(255, 0, 0, 0.2);
}

.server-stat-loading {
    text-align: center;
    padding: 30px 0;
}

.loading-text {
    color: var(--color-text-dim);
    margin-top: 15px;
    animation: blink 1s infinite;
}

.error-message {
    color: var(--color-warning);
    text-align: center;
    padding: 20px;
    border: 1px solid var(--color-warning);
    border-radius: 4px;
}

#main-area {
    display: flex;
    flex: 1;
    margin-bottom: 10px;
    overflow: hidden;
}

#terminal {
    flex: 2;
    background-color: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    padding: 15px;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 15px rgba(0, 255, 150, 0.2), inset 0 0 10px rgba(0, 255, 150, 0.1);
    position: relative;
    overflow: hidden;
}

#terminal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        var(--scan-line-color),
        var(--scan-line-color) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

#terminal::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent-color);
    border-left: 2px solid var(--accent-color);
    border-top-left-radius: 5px;
}

#terminal-output {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
    position: relative;
    z-index: 2;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
    overflow-x: hidden;
    max-height: calc(100vh - 200px); 
}

#terminal-output::-webkit-scrollbar {
    width: 6px;
}

#terminal-output::-webkit-scrollbar-track {
    background: transparent;
}

#terminal-output::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 10px;
}

#terminal-input {
    display: flex;
    align-items: center;
    padding: 8px 5px;
    background-color: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.prompt {
    color: var(--accent-color);
    margin-right: 8px;
    font-weight: bold;
    text-shadow: 0 0 5px var(--accent-color);
}

#command-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-family: var(--game-font);
    font-size: var(--font-size-base);
    outline: none;
    caret-color: var(--primary-color);
    caret-shape: block;
}

#menu {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#menu button {
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--primary-color);
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: var(--text-shadow);
}

#menu button:hover {
    background-color: var(--secondary-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--glow-shadow);
}

#right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#event-log {
    flex: 3; 
    background-color: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 15px var(--glow-shadow), inset 0 0 10px rgba(0, 255, 150, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

#event-log::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        var(--scan-line-color),
        var(--scan-line-color) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

#event-log h3 {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    position: relative;
    z-index: 2;
    text-shadow: var(--text-shadow);
}

#events {
    flex: 1;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
    overflow-x: hidden;
}

#events::-webkit-scrollbar {
    width: 6px;
}

#events::-webkit-scrollbar-track {
    background: transparent;
}

#events::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.event {
    margin-bottom: 8px;
    padding: 5px;
    border-radius: 3px;
    position: relative;
    z-index: 2;
}

.event.warning {
    color: var(--warning-color);
    text-shadow: 0 0 5px rgba(255, 94, 0, 0.6);
}

.event.success {
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.6);
}

.event.info {
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(0, 179, 255, 0.6);
}

.event.danger {
    color: var(--error-color);
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.6);
}

.mini-game {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 600px;
    max-width: 90%;
    background-color: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 0 25px var(--glow-shadow), inset 0 0 15px rgba(0, 255, 150, 0.1);
    z-index: 2000;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.mini-game::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        var(--scan-line-color),
        var(--scan-line-color) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.mini-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--secondary-color);
    position: relative;
    z-index: 2;
    cursor: move;
    user-select: none;
}

.mini-game-header h2 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: var(--text-shadow);
}

.mini-game-header .close-button {
    background-color: rgba(255, 0, 0, 0.3);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: all 0.2s;
}

.mini-game-header .close-button:hover {
    background-color: rgba(255, 0, 0, 0.6);
    transform: scale(1.1);
}

.mini-game-content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

.mini-game-footer {
    margin-top: 20px;
    text-align: right;
    padding: 10px 15px;
    border-top: 1px solid var(--secondary-color);
    position: relative;
    z-index: 2;
}

.mini-game-footer .cancel-button {
    background-color: rgba(50, 0, 0, 0.6);
    color: #ff5050;
    border: 1px solid #ff5050;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-game-footer .cancel-button:hover {
    background-color: rgba(80, 0, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 50, 50, 0.3);
}

.game-result {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    animation: fadeIn 0.5s ease;
    padding: 20px;
    text-align: center;
}

.game-result h3 {
    font-size: 2.2em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.game-result p {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.game-result.success {
    background: rgba(0, 40, 0, 0.85);
    color: var(--color-success);
    border: 1px solid var(--color-success);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.game-result.failure {
    background: rgba(40, 0, 0, 0.85);
    color: var(--color-warning);
    border: 1px solid var(--color-warning);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.game-result button {
    margin-top: 20px;
    padding: 10px 25px;
    cursor: pointer;
    font-size: var(--font-size-base);
    background-color: rgba(0, 20, 10, 0.8);
    transition: all 0.3s ease;
}

.game-result.success button {
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.game-result.success button:hover {
    background-color: rgba(0, 40, 20, 0.9);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    transform: translateY(-2px);
}

.game-result.failure button {
    color: var(--color-warning);
    border: 1px solid var(--color-warning);
}

.game-result.failure button:hover {
    background-color: rgba(40, 10, 10, 0.9);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.code-breaking {
    padding: 20px;
}

.game-info {
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 20, 10, 0.4);
    border-left: 3px solid var(--secondary-color);
}

.input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#code-input {
    background: rgba(0, 10, 10, 0.6);
    border: 1px solid var(--secondary-color);
    color: var(--color-text);
    padding: 10px;
    font-family: monospace;
    font-size: var(--font-size-large);
    letter-spacing: 5px;
    flex: 1;
}

.attempts-history {
    font-family: monospace;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 10, 10, 0.3);
    border: 1px solid rgba(0, 255, 150, 0.2);
}

.attempt {
    margin: 8px 0;
    padding: 8px;
    border-left: 3px solid var(--color-text-dim);
    background: rgba(0, 20, 10, 0.4);
}

.correct {
    color: var(--color-success);
    font-weight: bold;
}

.wrong-position {
    color: #ffff00;
    font-weight: bold;
}

.pattern-recognition {
    padding: 20px;
}

.game-info {
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 20, 10, 0.4);
    border-left: 3px solid var(--secondary-color);
}

.pattern {
    font-family: monospace;
    font-size: var(--font-size-xl);
    letter-spacing: 5px;
    color: var(--secondary-color);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 150, 0.5);
}

.grid {
    display: inline-block;
    border: 1px solid var(--secondary-color);
    padding: 10px;
    margin-bottom: 20px;
    background: rgba(0, 20, 10, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 150, 0.1) inset;
}

.row {
    display: flex;
}

.cell {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(0, 255, 150, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 20, 10, 0.6);
    font-family: monospace;
    font-size: var(--font-size-large);
    margin: 2px;
    transition: all 0.2s ease;
    color: var(--color-text);
}

.cell:hover {
    background: rgba(0, 40, 20, 0.7);
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.cell.selected {
    background: rgba(0, 100, 50, 0.4);
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 255, 150, 0.3);
    color: var(--secondary-color);
}

.controls {
    margin-top: 20px;
    text-align: center;
}

.memory-challenge {
    padding: 20px;
    text-align: center;
}

.sequence-display {
    font-family: monospace;
    font-size: var(--font-size-xxl);
    letter-spacing: 10px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid var(--secondary-color);
    background: rgba(0, 20, 10, 0.6);
    display: inline-block;
    box-shadow: 0 0 15px rgba(0, 255, 150, 0.2) inset;
}

.sequence-item {
    padding: 5px;
    display: inline-block;
    animation: subtle-pulse 2s infinite;
}

.sequence-item.number {
    color: var(--color-success);
}

.sequence-item.letter {
    color: #ff00ff;
}

.sequence-item.symbol {
    color: #ffff00;
}

#sequence-input {
    background: rgba(0, 10, 10, 0.6);
    border: 1px solid var(--secondary-color);
    color: var(--color-text);
    padding: 10px;
    font-family: monospace;
    font-size: var(--font-size-xxl);
    letter-spacing: 10px;
    text-align: center;
    margin: 20px 0;
    width: 80%;
}

.mini-game button {
    background: rgba(0, 60, 30, 0.7);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Share Tech Mono', monospace;
}

.mini-game button:hover {
    background: rgba(0, 80, 40, 0.8);
    box-shadow: 0 0 15px rgba(0, 255, 150, 0.3);
    transform: translateY(-2px);
}

.mini-game input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 255, 150, 0.3);
}

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

.blink {
    animation: blink 1s infinite;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-background);
}

::-webkit-scrollbar-thumb {
    background: var(--color-text-dim);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text);
}

button {
    background-color: rgba(0, 40, 20, 0.6);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    padding: 8px 15px;
    font-family: 'Share Tech Mono', monospace;
    font-size: var(--font-size-medium);
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: var(--text-shadow);
    box-shadow: 0 0 10px rgba(0, 255, 150, 0.2);
}

button:hover {
    background-color: rgba(0, 60, 30, 0.7);
    box-shadow: 0 0 15px rgba(0, 255, 150, 0.4);
}

#year {
    display: flex;
    align-items: center;
}

.year-month-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.year-display {
    font-size: var(--font-size-medium);
    color: var(--secondary-color);
    margin-bottom: 4px;
    text-shadow: var(--text-shadow);
}

.month-boxes {
    display: flex;
    gap: 2px;
}

.month-box {
    width: 8px;
    height: 8px;
    background: rgba(0, 30, 20, 0.7);
    border: 1px solid var(--secondary-color);
    border-radius: 2px;
}

.month-box.filled {
    background-color: var(--secondary-color);
    box-shadow: 0 0 5px var(--secondary-color);
}

.month-box:hover::after {
    content: attr(data-month);
    position: absolute;
    margin-top: -20px;
    margin-left: -5px;
    font-size: calc(10px * var(--font-scale));
    background-color: var(--color-background);
    border: 1px solid var(--color-text);
    padding: 2px 4px;
    z-index: 9999;
}

.ads-panel-window {
    width: 800px;
    max-width: 90%;
    max-height: 80vh;
    background-color: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 0 25px var(--glow-shadow), inset 0 0 15px var(--glow-shadow);
    position: absolute;
    top: 10%;
    left: 10%;
    z-index: 1000;
}

.ads-panel-window::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        var(--scan-line-color),
        var(--scan-line-color) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.ads-content {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.tab-menu {
    display: flex;
    border-bottom: 1px solid var(--color-text-dim);
    background-color: var(--terminal-bg);
}

.tab-button {
    background: none;
    border: none;
    color: var(--color-text-dim);
    padding: 10px 20px;
    cursor: pointer;
    font-family: monospace;
    font-size: var(--font-size-medium);
    transition: all 0.2s;
}

.tab-button:hover {
    background-color: var(--terminal-bg);
    color: var(--color-text);
}

.tab-button.active {
    color: var(--color-text);
    border-bottom: 2px solid var(--color-text);
    background-color: var(--terminal-bg);
}

.tab-content {
    padding: 15px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.loading-message {
    text-align: center;
    padding: 20px;
    color: var(--color-text-dim);
}

.empty-message {
    text-align: center;
    padding: 30px;
    color: var(--color-text-dim);
    font-style: italic;
}

.ad-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.ad-card {
    border: 1px solid var(--color-text-dim);
    border-radius: 4px;
    padding: 15px;
    background-color: var(--terminal-bg);
    position: relative;
    transition: all 0.2s;
}

.ad-card:hover {
    box-shadow: 0 0 5px var(--glow-shadow);
}

.ad-type-banner {
    border-left: 4px solid #00aa00; 
}

.ad-type-popup {
    border-left: 4px solid #aaaa00; 
}

.ad-type-misleading {
    border-left: 4px solid #aa0000; 
}

.ad-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: var(--font-size-base);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ad-type-badge {
    font-size: calc(11px * var(--font-scale));
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.type-banner {
    background-color: rgba(0, 170, 0, 0.2);
    border: 1px solid #00aa00;
    color: #00ff00;
}

.type-popup {
    background-color: rgba(170, 170, 0, 0.2);
    border: 1px solid #aaaa00;
    color: #ffff00;
}

.type-misleading {
    background-color: rgba(170, 0, 0, 0.2);
    border: 1px solid #aa0000;
    color: #ff0000;
}

.ad-description {
    font-size: var(--font-size-medium);
    margin-bottom: 15px;
    color: var(--color-text-dim);
    line-height: 1.3;
}

.ad-details {
    margin-bottom: 15px;
}

.ad-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ad-details li {
    margin-bottom: 5px;
    font-size: calc(13px * var(--font-scale));
    color: var(--color-text);
}

.ad-progress-container {
    width: 100%;
    height: 10px;
    background-color: rgba(0, 255, 0, 0.08);
    border-radius: 6px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.ad-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.ad-progress-text {
    text-align: center;
    font-size: var(--font-size-small);
    margin-bottom: 15px;
    color: var(--color-text-dim);
}

.ad-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ad-action-button {
    padding: 6px 15px;
    border-radius: 3px;
    font-size: var(--font-size-small);
    cursor: pointer;
    transition: all 0.2s;
    font-family: monospace;
}

.accept-ad {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--color-text);
    color: var(--color-text);
}

.accept-ad:hover {
    background-color: rgba(0, 255, 0, 0.3);
}

.reject-ad, .cancel-ad {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--color-warning);
    color: var(--color-warning);
}

.reject-ad:hover, .cancel-ad:hover {
    background-color: rgba(255, 0, 0, 0.3);
}

.success-message {
    text-align: center;
    padding: 20px;
    color: var(--color-success);
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--color-text);
    border-radius: 4px;
    margin: 20px;
}

.confirmation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 5, 3, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(3px);
}

.confirmation-content {
    background-color: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 25px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 0 25px rgba(0, 255, 150, 0.3), inset 0 0 15px rgba(0, 255, 150, 0.1);
    position: relative;
    overflow: hidden;
}

.confirmation-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        var(--scan-line-color),
        var(--scan-line-color) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.confirmation-content h3 {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
    text-shadow: var(--text-shadow);
}

.confirmation-content p {
    margin-bottom: 20px;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.warning-text {
    color: var(--warning-color);
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    text-shadow: 0 0 8px rgba(255, 94, 0, 0.6);
    position: relative;
    z-index: 2;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.confirmation-buttons button {
    min-width: 100px;
    padding: 8px 15px;
}

.confirm-yes {
    background-color: rgba(0, 120, 60, 0.6);
    border: 1px solid var(--secondary-color);
}

.confirm-yes:hover {
    background-color: rgba(0, 150, 80, 0.7);
}

.confirm-no {
    background-color: rgba(120, 0, 0, 0.5);
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
}

.confirm-no:hover {
    background-color: rgba(150, 0, 0, 0.6);
}

.next-offer-info {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border: 1px dashed var(--color-text-dim);
    background-color: rgba(0, 255, 0, 0.05);
    border-radius: 4px;
}

.time-highlight {
    color: var(--color-text);
    font-weight: bold;
    font-size: 1.1em;
}

.website-simulation-window {
    width: 80%;
    max-width: 950px;
    height: 80%;
    max-height: 650px;
}

.website-content {
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
    background: #fff;
    color: #333;
}

.website-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #2c3e50;
    color: white;
}

.website-logo {
    font-size: var(--font-size-xxl);
    font-weight: bold;
    color: #ecf0f1;
}

.website-nav {
    display: flex;
    gap: 15px;
}

.nav-item {
    color: #ecf0f1;
    text-decoration: none;
    font-size: var(--font-size-medium);
}

.nav-item.forum-link {
    color: #00b3ff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-item.forum-link:hover {
    color: #84d7ff;
    text-shadow: 0 0 8px rgba(0, 179, 255, 0.6);
}

.website-banner-ad {
    width: 100%;
    height: 90px;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-container {
    position: relative;
    width: 95%;
    height: 80%;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.ad-container.banner {
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
}

.ad-container.misleading {
    background: linear-gradient(45deg, #f5f5f5, #e9e9e9);
    cursor: pointer;
}

.ad-label {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: calc(10px * var(--font-scale));
    color: #999;
}

.ad-content {
    font-size: var(--font-size-large);
    font-weight: bold;
    text-align: center;
    color: #555;
}

.website-main-content {
    display: flex;
    flex: 1;
}

.website-sidebar {
    width: 180px;
    padding: 15px;
    background: #f5f5f5;
    border-right: 1px solid #ddd;
}

.website-categories h3 {
    font-size: var(--font-size-base);
    margin-bottom: 10px;
    color: #333;
}

.website-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.website-categories li {
    margin-bottom: 8px;
}

.website-categories a {
    color: #2980b9;
    text-decoration: none;
    font-size: var(--font-size-medium);
}

.website-center-content {
    flex: 1;
    padding: 15px;
    min-width: 0;
}

.website-latest-uploads h2 {
    font-size: var(--font-size-large);
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.upload-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upload-item {
    display: flex;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fafafa;
}

.upload-icon {
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 5px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    color: white;
}

.upload-icon.game {
    background: #e74c3c;
}

.upload-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.upload-delete {
    background: transparent;
    border: none;
    color: #c0392b;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
}

.upload-delete:hover {
    background: rgba(192, 57, 43, 0.08);
    box-shadow: 0 0 6px rgba(192, 57, 43, 0.12);
}

.upload-icon.software, .upload-icon.application {
    background: #3498db;
}

.upload-icon.movie {
    background: #f39c12;
}

.upload-icon.music {
    background: #9b59b6;
}

.upload-details {
    flex: 1;
    min-width: 0;
}

.upload-details h3 {
    font-size: var(--font-size-base);
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-meta {
    font-size: var(--font-size-small);
    color: #777;
    display: flex;
    gap: 10px;
}

.upload-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
}

.download-button, .magnet-button {
    padding: 5px 10px;
    font-size: var(--font-size-small);
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.download-button {
    background: #27ae60;
    color: white;
}

.magnet-button {
    background: #e67e22;
    color: white;
}

.website-popup-ad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.popup-ad-container {
    width: 500px;
    max-width: 90%;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-ad-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #3498db;
    color: white;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    font-size: var(--font-size-xl);
    cursor: pointer;
}

.popup-ad-content {
    padding: 20px;
    text-align: center;
}

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

.popup-button {
    padding: 8px 25px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

.popup-button.yes {
    background: #2ecc71;
    color: white;
}

.popup-button.no {
    background: #e74c3c;
    color: white;
}

.fake-download-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to bottom, #4CAF50, #45a049);
    color: white;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-icon {
    font-size: var(--font-size-large);
    font-weight: bold;
}

.website-stats {
    margin-top: 20px;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
}

.website-stats h3 {
    font-size: var(--font-size-medium);
    margin-bottom: 8px;
    color: #333;
}

.website-stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: var(--font-size-small);
    color: #555;
}

.website-stats li {
    margin-bottom: 5px;
}

.website-footer {
    padding: 15px;
    background: #2c3e50;
    color: #ecf0f1;
    font-size: var(--font-size-small);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.website-disclaimer {
    padding: 8px;
    background: #f8f8f8;
    color: #666;
    text-align: center;
    font-size: calc(11px * var(--font-scale));
    border-top: 1px solid #ddd;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 3;
}

.corner-tl {
    top: 0;
    left: 0;
    border-top: 2px solid var(--accent-color);
    border-left: 2px solid var(--accent-color);
    border-top-left-radius: 5px;
}

.corner-tr {
    top: 0;
    right: 0;
    border-top: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    border-top-right-radius: 5px;
}

.corner-bl {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid var(--accent-color);
    border-left: 2px solid var(--accent-color);
    border-bottom-left-radius: 5px;
}

.corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    border-bottom-right-radius: 5px;
}

.blinking-cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: var(--primary-color);
    vertical-align: middle;
    margin-left: 2px;
    opacity: 1;
}

.upload-progress {
    display: none;
    margin-top: 10px;
    width: 100%;
    height: 20px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--secondary-color);
    border-radius: 3px;
    overflow: hidden;
}

.upload-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 255, 150, 0.4);
}

@keyframes cat-scanline {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 10px;
    }
}

.ascii-cat {
    font-family: monospace;
    line-height: 1;
    white-space: pre;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1em !important;
}

.ascii-cat .cat-body {
    margin: 0;
    padding: 0;
}

.ascii-cat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    animation: cat-scanline 8s linear infinite;
}

.speech-bubble {
    position: relative;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: var(--secondary-color) transparent transparent transparent;
    opacity: 0.7;
}

.marketplace-window {
    width: 850px;
    height: 650px;
    max-width: 90%;
    max-height: 80vh;
}

.marketplace-browser {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.2));
}

.marketplace-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(0, 20, 20, 0.8);
    border-bottom: 1px solid rgba(0, 255, 150, 0.15);
}

.mp-window-controls { display: flex; gap: 6px; }
.mp-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; opacity: 0.8; }
.mp-dot.red { background: #ff5f56; }
.mp-dot.yellow { background: #ffbd2e; }
.mp-dot.green { background: #27c93f; }

.marketplace-urlbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 8px;
}
.mp-lock { opacity: 0.9; font-size: 12px; }
.mp-url {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text);
    font-family: monospace;
    font-size: calc(13px * var(--font-scale));
}
.mp-refresh {
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--secondary-color);
    color: var(--color-text);
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
}
.mp-actions { display: flex; gap: 6px; }
.mp-action-btn {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    color: var(--bg-color);
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-weight: bold;
    cursor: pointer;
}

.marketplace-siteheader {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(0, 30, 30, 0.6);
    border-bottom: 1px solid rgba(0, 255, 150, 0.12);
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-nav { display: flex; gap: 8px; }
.nav-link {
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border-color);
    color: var(--color-text);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: calc(13px * var(--font-scale));
}
.nav-link.active, .nav-link:hover { border-color: var(--secondary-color); color: var(--primary-color); }
.site-search { width: 320px; }
.site-search .marketplace-search { width: 100%; }

.marketplace-hero {
    position: relative;
    min-height: 180px;
    padding: 20px;
    background:
      radial-gradient(120% 80% at 20% 0%, rgba(0, 255, 150, 0.18), transparent 60%),
      radial-gradient(120% 80% at 100% 0%, rgba(0, 150, 255, 0.15), transparent 60%),
      linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0));
    border-bottom: 1px solid rgba(0, 255, 150, 0.12);
    backdrop-filter: blur(3px);
}
.marketplace-hero-skeleton { height: 132px; border-radius: 10px; background: rgba(0,0,0,0.25); border: 1px dashed rgba(255,255,255,0.15); }
.marketplace-hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
}
.mp-hero-badge {
    display: inline-block;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--secondary-color);
    color: var(--color-text);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: calc(11px * var(--font-scale));
}

/* VDS mission-complete badge and particles */
.vds-badge-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10010;
    display: block;
}

.vds-badge-overlay.fade-out {
    opacity: 0;
    transition: opacity 600ms ease-in-out;
}

.bit-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    transform: translate(0,0) scale(1);
    transition: transform 900ms cubic-bezier(.2,.9,.2,1), opacity 500ms linear;
    opacity: 0.95;
    will-change: transform, opacity;
}


.vds-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    /* start a bit off-screen above and small to simulate distance */
    transform: translate(-50%, -120%) scale(0.25);
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 600ms cubic-bezier(.2,.9,.2,1), opacity 300ms ease;
    pointer-events: none;
}

.vds-badge.show {
    transform: translate(-50%, -50%) scale(1);
}

.vds-badge svg { display:block; width:100%; height:100%; }

.vds-badge-wrap { display:flex; flex-direction:column; align-items:center; gap:8px; }
.vds-badge-text {
    color: #E6FFFB;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
    margin-top: 6px;
}

.marketplace-hero-title { margin: 6px 0; font-size: calc(22px * var(--font-scale)); color: var(--color-text); text-shadow: 0 0 6px rgba(0,255,150,0.25); }
.marketplace-hero-meta { color: var(--color-text-dim); font-family: monospace; display: flex; gap: 8px; }
.marketplace-hero-actions { display: flex; gap: 10px; align-items: center; }
.marketplace-hero-price { color: var(--color-success); font-weight: bold; font-family: monospace; }
.marketplace-hero-button {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    color: var(--bg-color);
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: bold;
}

.marketplace-content {
    padding: 0;
    overflow: hidden;
    height: calc(100% - 40px); 
    background: linear-gradient(180deg, rgba(0, 10, 10, 0.35), rgba(0, 0, 0, 0));
}

.marketplace-container {
    display: flex;
    height: calc(100% - 210px);
}

.marketplace-sidebar {
    width: 220px;
    background-color: var(--terminal-bg);
    border-right: 1px solid var(--secondary-color);
    padding: 15px 0;
    display: flex;
    flex-direction: column;
}

.marketplace-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 150, 0.2);
}

.marketplace-logo-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--bg-color);
    font-weight: bold;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-medium);
    margin-right: 10px;
    box-shadow: 0 0 5px var(--glow-shadow);
}

.marketplace-logo-text {
    color: var(--secondary-color);
    font-size: var(--font-size-large);
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 150, 0.5);
}

.marketplace-categories {
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    margin-bottom: 20px;
}

.marketplace-category {
    padding: 10px;
    color: var(--color-text-dim);
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-size-medium);
}

.marketplace-category:hover {

    background-color: rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
}

.marketplace-category.active {
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--color-text);
    border-left: 3px solid var(--secondary-color);
}

.marketplace-search-container {
    padding: 0 15px;
    margin-top: auto;
}

.marketplace-search {
    width: 100%;
    padding: 8px 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    color: var(--color-text);
    font-family: monospace;
}

.marketplace-search::placeholder {
    color: var(--color-text-dim);
}

.marketplace-content-area {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.marketplace-content-area::-webkit-scrollbar {
    width: 6px;
}

.marketplace-content-area::-webkit-scrollbar-track {
    background: transparent;
}

.marketplace-content-area::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.marketplace-featured {
    border-bottom: 1px solid rgba(0, 255, 150, 0.2);
    padding-bottom: 20px;
}

.marketplace-featured h2, 
.marketplace-list h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: var(--font-size-large);
    font-weight: normal;
    letter-spacing: 1px;
}

.marketplace-featured-items {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.marketplace-featured-items::-webkit-scrollbar {
    height: 6px;
}

.marketplace-featured-items::-webkit-scrollbar-track {
    background: transparent;
}

.marketplace-featured-items::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.marketplace-featured-item {
    min-width: 280px;
    background-color: var(--terminal-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.marketplace-featured-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--glow-shadow);
    border-color: var(--secondary-color);
}

.marketplace-featured-item-header {
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.marketplace-featured-item-name {
    margin-left: 10px;
    font-weight: bold;
    color: var(--color-text);
    flex: 1;
}

.marketplace-featured-item-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.marketplace-featured-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: calc(13px * var(--font-scale));
}

.marketplace-featured-item-type,
.marketplace-featured-item-year,
.marketplace-featured-item-size {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: 10px;
    color: var(--color-text-dim);
}

.marketplace-featured-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.marketplace-featured-item-price {
    color: var(--color-success);
    font-weight: bold;
    font-family: monospace;
}

.marketplace-featured-item-button {
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    color: var(--bg-color);
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.marketplace-featured-item-button:hover {
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    transform: scale(1.05);
}

.marketplace-list {
    flex: 1;
}

.marketplace-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.marketplace-sort select {
    background-color: rgba(0, 30, 30, 0.7);
    border: 1px solid var(--secondary-color);
    color: var(--color-text);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: calc(13px * var(--font-scale));
}

.marketplace-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.marketplace-item {
    background-color: var(--terminal-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.marketplace-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 255, 150, 0.1);
    border-color: rgba(0, 255, 150, 0.3);
}

.marketplace-item[data-type="game"] {
    border-left: 3px solid #44aaff;
}

.marketplace-item[data-type="application"] {
    border-left: 3px solid #ff7700;
}

.marketplace-item[data-type="utility"] {
    border-left: 3px solid #ffcc00;
}

.marketplace-item[data-type="os"] {
    border-left: 3px solid #ff44aa;
}

.marketplace-item-header {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.marketplace-item-icon {
    font-style: normal;
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
}

.marketplace-item-icon.game {
    color: #44aaff;
}

.marketplace-item-icon.app {
    color: #ff7700;
}

.marketplace-item-icon.utility {
    color: #ffcc00;
}

.marketplace-item-icon.os {
    color: #ff44aa;
}

.marketplace-item-name {
    margin-left: 8px;
    font-weight: bold;
    color: var(--color-text);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--font-size-medium);
}

.marketplace-item-year {
    font-size: var(--font-size-small);
    color: var(--color-text-dim);
    margin-left: 5px;
}

.marketplace-item-details {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-small);
    color: var(--color-text-dim);
}

.marketplace-item-footer {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.marketplace-item-price {
    color: var(--color-success);
    font-weight: bold;
    font-family: monospace;
}

.marketplace-item-button {
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    color: var(--bg-color);
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: var(--font-size-small);
    transition: all 0.2s ease;
}

.marketplace-item-button:hover {
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    transform: scale(1.05);
}

.marketplace-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
}

.marketplace-pagination .pagination-button {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--secondary-color);
    color: var(--color-text);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    font-family: monospace;
    transition: all 0.2s ease;
}

.marketplace-pagination .pagination-button:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.4);
    color: var(--primary-color);
}

.marketplace-pagination .pagination-button.active {
    background: rgba(0, 0, 0, 0.5);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.marketplace-pagination .pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.marketplace-pagination .pagination-info {
    margin-left: 10px;
    color: var(--color-text-dim);
    font-family: monospace;
    font-size: var(--font-size-small);
}

.pagination-ellipsis {
    color: var(--color-text-dim);
    margin: 0 2px;
}

.marketplace-loading {
    text-align: center;
    padding: 20px;
    color: var(--color-text-dim);
    font-style: italic;
}

.marketplace-error, .marketplace-no-results {
    text-align: center;
    padding: 20px;
    color: var(--color-text-dim);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 10px 0;
}

.upload-center-window {
    width: 850px;
    height: 650px;
    max-width: 90%;
    max-height: 80vh;
}

.upload-center-content {
    padding: 0;
    overflow: hidden;
    height: calc(100% - 40px);
}

.upload-center-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.upload-center-header {
    background-color: var(--terminal-bg);
    border-bottom: 1px solid var(--secondary-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.upload-center-info {
    display: flex;
    flex-direction: column;
}

.upload-center-title {
    color: var(--secondary-color);
    font-size: var(--font-size-xl);
    font-weight: bold;
    margin-bottom: 5px;
}

.upload-center-subtitle {
    color: var(--color-text-dim);
    font-size: var(--font-size-medium);
}

.upload-center-stats {
    display: flex;
    gap: 15px;
}

.upload-center-stat {
    background-color: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    padding: 8px 12px;
}

.upload-center-stat-label {
    color: var(--color-text-dim);
    font-size: var(--font-size-small);
    margin-bottom: 3px;
}

.upload-center-stat-value {
    color: var(--color-text);
    font-size: var(--font-size-medium);
    font-family: monospace;
}

.upload-center-stat-value.online {
    color: var(--color-success);
}

.upload-center-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.upload-center-files {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.upload-center-section-header h2 {
    color: var(--secondary-color);
    font-size: var(--font-size-large);
    font-weight: normal;
    letter-spacing: 1px;
    margin: 0;
}

.upload-center-filters {
    display: flex;
    gap: 10px;
}

.upload-center-filter,
.upload-center-sort {
    background-color: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    color: var(--color-text);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: calc(13px * var(--font-scale));
}

.upload-center-files-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.upload-center-files-list::-webkit-scrollbar {
    width: 6px;
}

.upload-center-files-list::-webkit-scrollbar-track {
    background: transparent;
}

.upload-center-files-list::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.upload-center-item {
    background-color: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.upload-center-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--glow-shadow);
}

.upload-center-item[data-type="game"] {
    border-left: 3px solid #44aaff;
}

.upload-center-item[data-type="application"],
.upload-center-item[data-type="app"] {
    border-left: 3px solid #ff7700;
}

.upload-center-item[data-type="utility"] {
    border-left: 3px solid #ffcc00;
}

.upload-center-item[data-type="os"] {
    border-left: 3px solid #ff44aa;
}

.upload-center-item-header {
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
}

.upload-center-item-icon {
    font-style: normal;
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    margin-right: 10px;
}

.upload-center-item-icon.game {
    color: #44aaff;
}

.upload-center-item-icon.app {
    color: #ff7700;
}

.upload-center-item-icon.utility {
    color: #ffcc00;
}

.upload-center-item-icon.os {
    color: #ff44aa;
}

.upload-center-item-name {
    flex: 1;
    font-weight: bold;
    color: var(--color-text);
    font-size: calc(15px * var(--font-scale));
}

.upload-center-item-size {
    color: var(--color-text-dim);
    font-family: monospace;
    margin-left: 15px;
}

.upload-center-item-details {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-center-item-type {
    color: var(--color-text-dim);
    font-size: calc(13px * var(--font-scale));
    background-color: rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: 10px;
}

.upload-center-item-info {
    color: var(--color-text-dim);
    font-size: calc(13px * var(--font-scale));
}

.upload-center-item-peers {
    font-family: monospace;
}

.upload-center-item-progress {
    height: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    display: none;
}

.upload-center-item-progress.active {
    display: block;
}

.upload-center-item-progress.complete .upload-center-progress-bar {
    background-color: var(--color-success);
}

.upload-center-item-progress.error .upload-center-progress-bar {
    background-color: var(--color-warning);
}

.upload-center-progress-bar {
    height: 100%;
    background-color: var(--secondary-color);
    width: 0%;
    transition: width 0.5s linear;
}

.upload-center-item-controls {
    padding: 12px 15px;
    display: flex;
    justify-content: flex-end;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(0, 255, 150, 0.1);
}

.upload-center-button {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--bg-color);
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: calc(13px * var(--font-scale));
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.upload-center-button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: translateY(-1px);
}

.upload-center-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.upload-center-button-icon {
    margin-right: 6px;
    font-style: normal;
}

.upload-center-button-icon.uploading {
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.upload-center-sidebar {
    width: 220px;
    background-color: var(--terminal-bg);
    border-left: 1px solid var(--secondary-color);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.upload-center-info-box,
.upload-center-tracker {
    background-color: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    padding: 15px;
}

.upload-center-info-box h3,
.upload-center-tracker h3 {
    color: var(--secondary-color);
    font-size: var(--font-size-base);
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 150, 0.1);
}

.upload-center-guidelines {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.upload-center-guidelines li {
    color: var(--color-text-dim);
    font-size: calc(13px * var(--font-scale));
    line-height: 1.5;
    padding: 5px 0 5px 20px;
    position: relative;
}

.upload-center-guidelines li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.upload-center-activity-graph {
    height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 10px;
    gap: 3px;
}

.upload-center-activity-bar {
    flex: 1;
    background: var(--secondary-color);
    height: 50%;
    transition: height 0.5s ease;
}

.upload-center-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 255, 150, 0.1);
    margin-top: 10px;
    flex-shrink: 0;
}

.upload-center-pagination .pagination-button {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--secondary-color);
    color: var(--color-text);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    font-family: monospace;
    transition: all 0.2s ease;
}

.upload-center-pagination .pagination-button:hover:not(:disabled) {
    background: rgba(0, 255, 150, 0.1);
}

.upload-center-pagination .pagination-button.active {
    background: rgba(0, 255, 150, 0.2);
    color: var(--color-text);
    border-color: var(--secondary-color);
}

.upload-center-pagination .pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-center-pagination .pagination-info {
    margin-left: 10px;
    color: var(--color-text-dim);
    font-family: monospace;
    font-size: var(--font-size-small);
}

.upload-center-loading {
    text-align: center;
    padding: 30px;
    color: var(--color-text-dim);
    font-style: italic;
}

.upload-center-empty, 
.upload-center-error {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    color: var(--color-text-dim);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.upload-center-error {
    color: var(--color-warning);
    border-color: rgba(255, 0, 0, 0.3);
}

.upload-center-item.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.upload-tracker-content {
    position: absolute;
    top: 40px; 
    left: 0;
    width: 100%;
    height: calc(100% - 40px); 
    background-color: var(--terminal-bg);
    border-radius: 0 0 8px 8px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.upload-tracker-header {
    background-color: var(--terminal-bg);
    padding: 15px 20px;
    border-bottom: 1px solid var(--secondary-color);
}

.upload-tracker-title {
    color: var(--secondary-color);
    font-size: var(--font-size-large);
    font-weight: bold;
    margin-bottom: 5px;
}

.upload-tracker-subtitle {
    color: var(--color-text-dim);
    font-size: var(--font-size-medium);
}

.upload-tracker-main {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow-y: auto;
}

.upload-tracker-software {
    background-color: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 15px;
}

.upload-tracker-software-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.upload-tracker-software-name {
    font-weight: bold;
    color: var(--color-text);
    font-size: var(--font-size-large);
    margin-left: 10px;
}

.upload-tracker-software-info {
    display: flex;
    justify-content: space-between;
    color: var(--color-text-dim);
    font-size: var(--font-size-medium);
}

.upload-tracker-status {
    text-align: center;
    padding: 15px;
    background-color: var(--terminal-bg);
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
}

.upload-tracker-status-text {
    font-size: var(--font-size-large);
    color: var(--color-text);
    margin-bottom: 8px;
}

.upload-tracker-status-text.success {
    color: var(--color-success);
}

.upload-tracker-status-text.error {
    color: var(--color-warning);
}

.upload-tracker-peers {
    font-size: var(--font-size-medium);
    color: var(--color-text-dim);
    margin-bottom: 5px;
}

.upload-tracker-time {
    font-family: monospace;
    font-size: var(--font-size-medium);
    color: var(--color-text-dim);
}

.upload-tracker-progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-tracker-progress {
    width: 100%;
    height: 20px;
    background-color: var(--terminal-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--secondary-color);
}

.upload-tracker-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-tracker-progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: progress-shine 2s infinite linear;
}

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

.upload-tracker-progress-bar.success {
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
}

.upload-tracker-progress-bar.error {
    background: linear-gradient(to right, var(--color-warning), var(--accent-color));
}

.upload-tracker-progress-percent {
    font-family: monospace;
    font-size: var(--font-size-base);
    color: var(--color-text);
}

.upload-tracker-peers-graph {
    background-color: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 15px;
}

.upload-tracker-peers-title {
    color: var(--color-text);
    font-size: var(--font-size-base);
    margin-bottom: 15px;
    text-align: center;
}

.upload-tracker-activity-graph {
    height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 10px;
    gap: 5px;
}

.upload-tracker-activity-bar {
    flex: 1;
    background: linear-gradient(to top, var(--secondary-color), var(--accent-color));
    height: 50%;
    border-radius: 3px 3px 0 0;
    transition: height 0.5s ease;
}

.upload-tracker-cancel {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.upload-tracker-cancel-button {
    background-color: var(--terminal-bg);
    color: var(--color-text);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    padding: 10px 25px;
    font-size: var(--font-size-medium);
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-tracker-cancel-button:hover {
    background-color: var(--terminal-bg);
    transform: translateY(-2px);
}

.upload-tracker-return-button {
    background-color: var(--terminal-bg);
    color: var(--color-text);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    padding: 10px 25px;
    font-size: var(--font-size-medium);
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-tracker-return-button:hover {
    background-color: var(--terminal-bg);
    transform: translateY(-2px);
}

.upgrades-window {
    width: 850px;
    height: 650px;
    max-width: 90%;
    max-height: 80vh;
}

.upgrades-content {
    padding: 0;
    overflow: hidden;
    height: calc(100% - 40px);
}

.upgrades-container {
    display: flex;
    height: 100%;
}

.upgrades-sidebar {
    width: 200px;
    background-color: var(--terminal-bg);
    border-right: 1px solid var(--secondary-color);
    padding: 15px 0;
    display: flex;
    flex-direction: column;
}

.upgrades-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--secondary-color);
}

.upgrades-logo-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--bg-color);
    font-weight: bold;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-medium);
    margin-right: 10px;
    box-shadow: 0 0 5px var(--glow-shadow);
}

.upgrades-logo-text {
    color: var(--secondary-color);
    font-size: var(--font-size-large);
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--glow-shadow);
}

#upgrades-categories {
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    gap: 5px;
}

.category-button {
    padding: 10px;
    color: var(--color-text-dim);
    background-color: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-size-medium);
    text-align: left;
}

.category-button:hover {
    background-color: var(--terminal-bg);
    color: var(--color-text);
    border-color: var(--secondary-color);
}

.category-button.active {
    background-color: var(--terminal-bg);
    color: var(--secondary-color);
    border-left: 3px solid var(--secondary-color);
}

.upgrades-main {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.upgrades-main::-webkit-scrollbar {
    width: 6px;
}

.upgrades-main::-webkit-scrollbar-track {
    background: transparent;
}

.upgrades-main::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 10px;
}

#upgrades-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upgrade-category {
    margin-bottom: 20px;
}

.upgrade-category h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: monospace;
    font-size: 1.2em;
    padding-left: 10px;
    border-left: 3px solid var(--secondary-color);
    text-shadow: 0 0 5px var(--glow-shadow);
}

.upgrade-item {
    border: 1px solid var(--secondary-color);
    margin: 10px 0;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--terminal-bg);
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.upgrade-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--glow-shadow);
    border-color: var(--secondary-color);
    background: var(--terminal-bg);
}

.future-upgrade {
    opacity: 0.8;
    background: var(--terminal-bg);
    border: 1px dashed var(--secondary-color);
}

.future-overlay {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--terminal-bg);
    color: var(--color-text);
    padding: 5px 10px;
    font-size: 0.8em;
    font-weight: bold;
    transform: rotate(45deg) translateY(-10px) translateX(10px);
    width: 140px;
    text-align: center;
    box-shadow: 0 0 8px var(--glow-shadow);
}

.upgrade-info {
    flex: 1;
}

.upgrade-name {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: var(--font-size-base);
}

.upgrade-description {
    font-size: var(--font-size-medium);
    color: var(--color-text-dim);
    margin-top: 5px;
}

.upgrade-cost {
    margin: 0 20px;
    font-family: monospace;
    color: var(--color-text);
    font-size: var(--font-size-base);
    background: var(--terminal-bg);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid var(--secondary-color);
}

.upgrade-item button {
    background: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 5px 15px;
    cursor: pointer;
    font-family: monospace;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.upgrade-item button:hover {
    background: var(--terminal-bg);
    box-shadow: 0 0 10px var(--glow-shadow);
    transform: translateY(-2px);
}

.upgrade-item button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--terminal-bg);
    border-color: var(--secondary-color);
    color: var(--color-text-dim);
}

.server-upgrade {
    flex-direction: column;
    align-items: stretch;
    background: var(--terminal-bg);
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.server-upgrade:hover {
    background: var(--terminal-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--glow-shadow);
}

.upgrade-service-info {
    margin-bottom: 15px;
}

.upgrade-level-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--terminal-bg);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--secondary-color);
}

.current-level {
    font-family: monospace;
    color: var(--secondary-color);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 3px;
    background: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
}

.error-message {
    color: var(--color-warning);
    padding: 20px;
    text-align: center;
    background: var(--terminal-bg);
    border-radius: 5px;
    border: 1px dashed var(--secondary-color);
}

.upgrades-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 15px;
    border-top: 1px solid rgba(0, 255, 150, 0.1);
    margin-top: auto;
}

.pagination-button {
    background: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    color: var(--color-text);
    padding: 5px 10px;
    cursor: pointer;
    font-family: monospace;
    min-width: 30px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.pagination-button:hover:not(:disabled) {
    background: var(--terminal-bg);
    color: var(--color-text);
    border-color: var(--secondary-color);
}

.pagination-button.active {
    background: var(--terminal-bg);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--terminal-bg);
    border-color: var(--secondary-color);
    color: var(--color-text-dim);
}

.pagination-info {
    margin-left: 10px;
    color: var(--color-text-dim);
    font-family: monospace;
}

.cracking-tools-window {
    width: 850px;
    height: 650px;
    max-width: 90%;
    max-height: 80vh;
}

.cracking-tools-content {
    padding: 0;
    overflow: hidden;
    height: calc(100% - 40px);
    background-color: var(--terminal-bg);
    position: relative;
}

.cracking-tools-container {
    display: flex;
    height: 100%;
}

.cracking-tools-sidebar {
    width: 250px;
    background-color: var(--terminal-bg);
    border-right: 1px solid var(--secondary-color);
    padding: 15px 0;
    display: flex;
    flex-direction: column;
}

.cracking-tools-header {
    padding: 15px;
    border-bottom: 1px solid var(--secondary-color);
    margin-bottom: 15px;
}

.cracking-tools-logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cracking-tools-logo-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--bg-color);
    font-weight: bold;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-medium);
    margin-right: 10px;
    box-shadow: 0 0 5px var(--glow-shadow);
}

.cracking-tools-logo-text {
    color: var(--secondary-color);
    font-size: var(--font-size-large);
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--glow-shadow);
}

.cracking-tools-subtitle {
    color: var(--color-text-dim);
    font-size: var(--font-size-medium);
    margin-left: 40px;
}

.cracking-tools-stats {
    margin-top: 20px;
}

.cracking-tools-stat {
    margin-bottom: 15px;
    padding: 0 15px;
}

.cracking-tools-stat-label {
    color: var(--color-text-dim);
    font-size: var(--font-size-medium);
    margin-bottom: 5px;
}

.cracking-tools-stat-value {
    font-family: monospace;
    font-size: var(--font-size-base);
    color: var(--secondary-color);
    background-color: var(--terminal-bg);
    padding: 5px 10px;
    border-radius: 4px;
    border-left: 3px solid var(--secondary-color);
}

.cracking-tools-stat-value.success {
    color: var(--color-success);
    border-left-color: var(--color-success);
}

.cracking-tools-stat-value.warning {
    color: var(--color-warning);
    border-left-color: var(--color-warning);
}

.cracking-tools-main {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cracking-tools-main::-webkit-scrollbar {
    width: 6px;
}

.cracking-tools-main::-webkit-scrollbar-track {
    background: transparent;
}

.cracking-tools-main::-webkit-scrollbar-thumb {
    background-color: rgba(0, 200, 255, 0.5);
    border-radius: 10px;
}

.cracking-tools-title {
    color: var(--secondary-color);
    font-size: var(--font-size-large);
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.cracking-tools-title::before {
    content: ">";
    margin-right: 10px;
    color: var(--secondary-color);
    animation: blink 1s infinite;
}

#software-to-crack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.software-to-crack {
    border: 1px solid var(--secondary-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--terminal-bg);
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.software-to-crack:hover {
    background: var(--terminal-bg);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--glow-shadow);
}

.software-to-crack::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary-color), transparent);
}

.crack-info {
    flex: 1;
}

.crack-name {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.crack-details {
    display: flex;
    gap: 20px;
    font-size: var(--font-size-medium);
    color: var(--color-text-dim);
}

.crack-details span {
    display: flex;
    align-items: center;
}

.crack-details span::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: rgba(0, 200, 255, 0.5);
    border-radius: 50%;
    margin-right: 8px;
}

.crack-button {
    background: var(--terminal-bg);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-family: monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-size-medium);
    position: relative;
    overflow: hidden;
}

.crack-button:hover {
    background: var(--terminal-bg);
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px var(--glow-shadow);
}

.crack-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--terminal-bg);
    border-color: var(--secondary-color);
    color: var(--color-text-dim);
}

.crack-button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        var(--secondary-color),
        transparent,
        transparent,
        transparent
    );
    transform: rotate(30deg);
    transition: transform 0.3s ease;
}

.crack-button:hover::after {
    transform: rotate(30deg) translate(10%, 10%);
}

.cracking-tools-matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 0;
    opacity: 0.07;
    pointer-events: none;
    overflow: hidden;
}

.matrix-column {
    position: absolute;
    top: -100px;
    width: 20px;
    color: var(--color-text-dim);
    font-family: monospace;
    font-size: var(--font-size-medium);
    text-align: center;
    line-height: 1;
}

.cracking-error {
    color: var(--color-warning);
    padding: 20px;
    text-align: center;
    background: var(--terminal-bg);
    border-radius: 5px;
    border: 1px dashed var(--secondary-color);
}

.cracking-tools-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 15px;
    margin-top: 20px;
    border-top: 1px solid var(--secondary-color);
}

.pagination-button {
    background: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    color: var(--color-text);
    padding: 5px 10px;
    cursor: pointer;
    font-family: monospace;
    min-width: 30px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.pagination-button:hover:not(:disabled) {
    background: var(--terminal-bg);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.pagination-button.active {
    background: var(--terminal-bg);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--terminal-bg);
    border-color: var(--secondary-color);
    color: var(--color-text-dim);
}

.pagination-info {
    margin-left: 10px;
    color: var(--color-text-dim);
    font-family: monospace;
}

@keyframes matrix-fall {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100vh);
    }
}

#netmap-container {
    flex: 1; 
    min-height: 150px;
    position: relative;
    overflow: hidden;
}

#site-rankings {
    height: 150px;
    margin-bottom: 10px;
    background-color: var(--terminal-bg);
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 10px;
    overflow: hidden;
}

#site-rankings h3 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    padding: 0;
    font-size: var(--font-size-medium);
    text-align: center;
    text-shadow: var(--text-shadow);
}

#rankings-list {
    overflow-y: auto;
    max-height: 108px;
    padding-right: 5px;
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    padding: 3px 5px;
    border-bottom: 1px dotted var(--border-color);
    font-size: var(--font-size-small);
}

.ranking-item.player {
    background-color: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 5px var(--primary-color);
}

.ranking-rank {
    color: var(--secondary-color);
    width: 30px;
    text-align: center;
}

.ranking-domain {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 5px;
}

.ranking-visitors {
    color: var(--accent-color);
    text-align: right;
    min-width: 70px;
}

.anonchat-window {
    max-width: 800px;
    min-width: 600px;
    min-height: 450px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, rgba(0, 20, 0, 0.9), rgba(0, 15, 0, 0.85));
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2), inset 0 0 10px rgba(0, 255, 0, 0.1);
}

.anonchat-window::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg, 
        rgba(0, 255, 0, 0.05) 1px, 
        transparent 1px
    ), 
    linear-gradient(0deg, 
        rgba(0, 255, 0, 0.05) 1px, 
        transparent 1px
    );
    background-size: 20px 20px;
    z-index: 0;
}

.anonchat-window .window-title {
    background: linear-gradient(to right, rgba(0, 60, 0, 0.9), rgba(0, 30, 0, 0.9));
    border-bottom: 1px solid rgba(0, 255, 0, 0.4);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
    padding: 8px 15px;
    font-weight: bold;
    font-size: var(--font-size-medium);
}

.anonchat-content {
    display: flex;
    height: 100%;
    min-height: 400px;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.anonchat-sidebar {
    width: 180px;
    background: rgba(0, 25, 0, 0.7);
    border-right: 1px solid var(--accent-color);
    padding: 15px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.anonchat-folder {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.anonchat-folder:hover {
    background-color: rgba(0, 255, 0, 0.15);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.anonchat-folder.active {
    background-color: rgba(0, 255, 0, 0.25);
    border-left: 3px solid var(--accent-color);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
}

.anonchat-folder-icon {
    margin-right: 10px;
    font-size: var(--font-size-base);
}

.anonchat-folder-name {
    flex-grow: 1;
}

.anonchat-folder-count {
    background-color: rgba(0, 20, 0, 0.8);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    font-size: calc(11px * var(--font-scale));
    padding: 2px 6px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.anonchat-folder-count[data-count="0"] {
    display: none;
}

.anonchat-messages {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: rgba(0, 15, 0, 0.5);
}

.anonchat-message-list {
    flex: 1;
    overflow-y: auto;
    border-bottom: 1px solid var(--accent-color);
    max-height: 200px;
}

.anonchat-message-item {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.anonchat-message-item:nth-child(odd) {
    background-color: rgba(0, 20, 0, 0.3);
}

.anonchat-message-item:hover {
    background-color: rgba(0, 255, 0, 0.15);
    text-shadow: 0 0 2px rgba(0, 255, 0, 0.5);
}

.anonchat-message-item.selected {
    background-color: rgba(0, 255, 0, 0.25);
    box-shadow: inset 0 0 5px rgba(0, 255, 0, 0.2);
}

.anonchat-message-item.unread {
    position: relative;
}

.anonchat-message-item.unread::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(0, 255, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

.anonchat-message-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.anonchat-message-item-title {
    font-weight: bold;
    color: var(--accent-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.anonchat-message-item-date {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
}

.anonchat-message-item-preview {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anonchat-message-view {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: rgba(0, 10, 0, 0.3);
}

.anonchat-message-view-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.5);
}

.anonchat-empty-icon {
    font-size: calc(48px * var(--font-scale));
    margin-bottom: 15px;
    opacity: 0.7;
}

.anonchat-empty-text {
    font-size: var(--font-size-base);
    font-style: italic;
}

.anonchat-message-view-header {
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    padding-bottom: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.anonchat-message-view-title {
    font-size: var(--font-size-large);
    font-weight: bold;
    color: var(--accent-color);
    margin: 0;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.anonchat-message-view-date {
    font-size: var(--font-size-small);
    color: rgba(255, 255, 255, 0.6);
}

.anonchat-cancel-mission-button {
    background: rgba(255, 0, 0, 0.12);
    border: 1px solid rgba(255, 0, 0, 0.45);
    color: #ff8080;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--game-font);
    font-size: 13px;
}
.anonchat-cancel-mission-button:hover {
    background: rgba(255, 0, 0, 0.18) !important;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.25);
}
.anonchat-message-view-date {
    margin-left: auto;
}

.anonchat-message-view-content {
    line-height: 1.6;
    flex-grow: 1;
    white-space: pre-line;
    padding: 5px 10px;
    background: rgba(0, 30, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.1);
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.anonchat-toolbar {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid var(--accent-color);
}

.anonchat-button {
    background-color: rgba(0, 70, 0, 0.7);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: calc(13px * var(--font-scale));
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.anonchat-button:hover:not(:disabled) {
    background-color: rgba(0, 100, 0, 0.7);
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.anonchat-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.anonchat-button-icon {
    margin-right: 6px;
    font-size: var(--font-size-medium);
}

.anonchat-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    height: 100%;
}

.anonchat-loading .loading-text {
    margin-top: 15px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.anonchat-empty-folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: rgba(255, 255, 255, 0.5);
}

.error-message {
    color: #ff3636;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.search-engine {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: white;
    color: #333;
    font-family: Arial, sans-serif;
    height: 100%;
}

.search-logo {
    text-align: center;
    margin-bottom: 20px;
}

.search-logo-text {
    font-size: var(--font-size-huge);
    font-weight: bold;
    background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #4285f4, #34a853, #ea4335);
    background-size: 600% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-move 15s linear infinite;
}

@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    100% { background-position: 600% 50%; }
}

.search-box {
    display: flex;
    margin-bottom: 30px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    border-radius: 24px;
    overflow: hidden;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: var(--font-size-base);
}

.search-button {
    background-color: #f8f9fa;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: var(--font-size-medium);
    color: #5f6368;
    border-left: 1px solid #dfe1e5;
}

.search-button:hover {
    background-color: #f1f3f4;
}

.search-results {
    max-width: 650px;
    margin-left: 60px;
    flex: 1;
    overflow-y: auto;
}

.result-stats {
    color: #70757a;
    font-size: var(--font-size-medium);
    margin-bottom: 15px;
}

.result-item {
    margin-bottom: 25px;
}

.result-title {
    color: #1a0dab;
    font-size: var(--font-size-xl);
    font-weight: normal;
    margin: 0 0 5px 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.result-title:hover {
    text-decoration: underline;
}

.result-title.user-site {
    color: #1a73e8;
    font-weight: 500;
}

.result-url {
    color: #006621;
    font-size: var(--font-size-medium);
    margin-bottom: 5px;
    display: block;
    text-decoration: none;
}

.result-url:hover {
    text-decoration: underline;
}

.result-description {
    color: #4d5156;
    font-size: var(--font-size-medium);
    line-height: 1.5;
    margin: 5px 0 0 0;
}

.search-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ebebeb;
}

.pagination-logo {
    color: #4285f4;
    font-weight: bold;
    font-size: calc(22px * var(--font-scale));
    margin-right: 30px;
}

.pagination-links {
    display: flex;
    align-items: center;
}

.pagination-links a, 
.pagination-links span:not(.pagination-current):not(.disabled) {
    margin: 0 8px;
    color: #4285f4;
    text-decoration: none;
    font-size: var(--font-size-medium);
}

.pagination-links a:hover {
    text-decoration: underline;
}

.pagination-current {
    color: #4d5156 !important;
    font-weight: bold;
    margin: 0 8px;
    font-size: var(--font-size-medium);
}

.pagination-next {
    margin-left: 20px !important;
    position: relative;
    padding-right: 12px;
}

.pagination-next::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-color: transparent transparent transparent #4285f4;
}

.pagination-link.disabled, 
.pagination-next.disabled {
    color: #70757a;
    cursor: default;
    margin: 0 8px;
    font-size: var(--font-size-medium);
}

.pagination-next.disabled::after {
    border-color: transparent transparent transparent #70757a;
}

.website-footer {
    font-size: 0.8em;
    color: #aaa;
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #444;
}

.forum-topic-list {
    margin: 15px 0;
}

.forum-topic-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 5px;
    border: 1px solid #444;
    transition: all 0.5s ease;
}

.forum-topic-item:hover {
    background-color: rgba(40, 40, 40, 0.8);
}

.forum-topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.forum-topic-title {
    font-size: 1.1em;
    margin: 0;
    color: #ddd;
}

.forum-topic-author {
    font-size: 0.9em;
    color: #999;
}

.forum-topic-content {
    margin-bottom: 15px;
    line-height: 1.5;
    white-space: pre-wrap;
    color: #bbb;
    font-size: 0.9em;
}

.forum-topic-date {
    font-size: 0.8em;
    color: #777;
    margin-bottom: 10px;
}

.forum-topic-moderation {
    display: flex;
    gap: 10px;
}

.forum-approve-button, .forum-reject-button {
    padding: 5px 12px;
    border: none;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
}

.forum-approve-button {
    background-color: #28a745;
}

.forum-approve-button:hover {
    background-color: #218838;
}

.forum-reject-button {
    background-color: #dc3545;
}

.forum-reject-button:hover {
    background-color: #c82333;
}

.forum-no-topics, .forum-reason {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
}

.forum-wait-message {
    margin-top: 10px;
    color: #6c757d;
    font-style: italic;
}

.moderation-reminder {
    padding: 10px 15px;
    margin-bottom: 15px;
    background-color: rgba(0, 123, 255, 0.1);
    border-left: 4px solid #0d6efd;
    border-radius: 3px;
    color: #aaa;
    font-size: 0.9em;
}

.moderation-status {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 10px;
    background-color: #555;
    color: white;
    font-size: 0.8em;
    text-transform: uppercase;
}

.floating-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: var(--font-size-base);
    z-index: 9999;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.positive-effect {
    background-color: rgba(40, 167, 69, 0.8);
}

.negative-effect {
    background-color: rgba(220, 53, 69, 0.8);
}

.forum-quarter-info {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #364a5f;
    border-radius: 5px;
    text-align: center;
    font-style: italic;
    color: #ddd;
    border-left: 4px solid #3498db;
}

.cipher-ruler {
    background-color: var(--accent-bg);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    padding: 10px;
    margin: 15px 0;
    font-family: 'Share Tech Mono', monospace;
    box-shadow: 0 0 5px rgba(0, 255, 150, 0.3);
}

.cipher-ruler-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}

.cipher-ruler-label {
    min-width: 120px;
    margin-right: 10px;
    color: var(--accent-color);
}

.cipher-char {
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    margin: 2px;
    border: 1px solid var(--secondary-color);
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 2px var(--secondary-color);
}

.cipher-message {
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 3px;
    letter-spacing: 1px;
    margin: 10px 0;
    display: inline-block;
}

.cipher-show-ruler {
    margin-top: 15px;
    background-color: var(--secondary-color-dark);
    color: var(--primary-color);
    border: none;
    padding: 6px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.2s ease;
}

.cipher-show-ruler:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 0 5px var(--secondary-color);
}

.cipher-ruler-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-in-out;
}

.cipher-ruler-overlay-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background-color: var(--terminal-bg);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 255, 150, 0.4), inset 0 0 10px rgba(0, 255, 150, 0.2);
}

.cipher-ruler-title {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--secondary-color);
    font-family: 'Share Tech Mono', monospace;
}

.cipher-ruler-overlay .cipher-ruler {
    background-color: rgba(0, 0, 0, 0.6);
    margin: 20px 0;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid var(--accent-color);
}

.cipher-ruler-overlay .cipher-ruler-row {
    justify-content: center;
    margin-bottom: 20px;
}

.cipher-ruler-overlay .cipher-char {
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin: 3px;
    font-size: 1.2rem;
    box-shadow: 0 0 5px var(--secondary-color);
    animation: glow 2s infinite alternate;
}

.cipher-ruler-overlay .cipher-ruler-label {
    min-width: 150px;
    font-size: 1.1rem;
}

.cipher-ruler-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cipher-ruler-close:hover {
    background-color: var(--secondary-color);
    color: black;
    box-shadow: 0 0 10px var(--secondary-color);
}

.cipher-ruler-message {
    text-align: center;
    color: var(--primary-color);
    margin-top: 20px;
    font-family: 'Share Tech Mono', monospace;
}

.encrypted-code {
    font-family: 'Share Tech Mono', monospace;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    display: inline-block;
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin: 10px 0;
}

.cipher-instruction {
    margin-top: 20px;
    color: var(--primary-color);
    opacity: 0.8;
    text-align: center;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px var(--secondary-color);
    }
    to {
        box-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color-dark);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.game-over-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease-out;
}

.game-over-content {
    background-color: #111;
    border: 2px solid var(--danger-color);
    padding: 2rem;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.game-over-content h2 {
    color: var(--danger-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--danger-color);
}

.game-over-content p {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.game-over-content button {
    background-color: var(--danger-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.game-over-content button:hover {
    background-color: #aa0000;
    transform: scale(1.05);
}

body.game-over {
    overflow: hidden;
}

.demo-end-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 8, 12, 0.98), rgba(0, 20, 30, 0.98));
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Share Tech Mono', monospace;
    overflow-y: auto;
}

.demo-end-content {
    background: linear-gradient(135deg, #001a2e, #002847);
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 30px var(--primary-color), inset 0 0 20px rgba(0, 255, 0, 0.1);
    padding: 30px;
    border-radius: 15px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.demo-end-header {
    text-align: center;
    margin-bottom: 30px;
}

.demo-end-header h1 {
    color: var(--secondary-color);
    text-shadow: 0 0 15px var(--secondary-color);
    margin-bottom: 10px;
    font-size: 2.8em;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.demo-end-header .subtitle {
    color: var(--primary-color);
    font-size: 1.2em;
    opacity: 0.8;
}

.demo-main-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
}

.demo-cat-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.demo-cat-ascii {
    font-size: 3em !important;
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1;
}

.demo-cat-speech {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    max-width: 200px;
}

.demo-cat-speech::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--secondary-color);
}

.demo-cat-speech p {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1em;
}

.wishlist-button {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 1.1em;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.wishlist-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.demo-stats-section {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
}

.stats-carousel {
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-slide.active {
    display: block;
    opacity: 1;
}

.stat-slide h3 {
    color: var(--secondary-color);
    font-size: 1.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 8px var(--secondary-color);
}

.stat-slide .stat-value {
    color: var(--primary-color);
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 0 0 10px var(--primary-color);
    margin: 10px 0;
}

.stat-slide .stat-description {
    color: #ccc;
    font-size: 1em;
    line-height: 1.4;
}

.stats-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.stat-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 255, 0, 0.3);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.stat-dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

.demo-actions-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.demo-action-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.demo-action-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.demo-action-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.demo-action-card p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 0.9em;
    line-height: 1.4;
}

.steam-review-button {
    background: linear-gradient(45deg, #171a21, #2a475e);
    color: #66c0f4;
    border: 2px solid #66c0f4;
    padding: 12px 20px;
    font-size: 1em;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.steam-review-button:hover {
    background: #66c0f4;
    color: #171a21;
    transform: translateY(-2px);
}

.demo-social-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-button {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 20px;
    font-size: 1em;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.social-button:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.demo-footer {
    text-align: center;
    border-top: 2px solid var(--primary-color);
    padding-top: 20px;
}

.return-menu-button {
    background: var(--secondary-color);
    color: var(--bg-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.return-menu-button:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .demo-main-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .demo-actions-section {
        grid-template-columns: 1fr;
    }
    
    .demo-social-section {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-end-header h1 {
        font-size: 2em;
    }
    
    .demo-cat-ascii {
        font-size: 2em !important;
    }
}

#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary-color) 25%, #1a1a2e) 0%,
        color-mix(in srgb, var(--primary-color) 15%, #0d0d1a) 50%,
        color-mix(in srgb, var(--primary-color) 20%, #1a1a2e) 100%
    );
    border-top: 2px solid color-mix(in srgb, var(--primary-color) 60%, transparent);
    z-index: 1000;
    font-family: 'Segoe UI', 'Share Tech Mono', Tahoma, sans-serif;
    box-shadow: 
        0 -2px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 color-mix(in srgb, var(--primary-color) 30%, transparent),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

#taskbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        color-mix(in srgb, var(--primary-color) 50%, transparent) 20%,
        var(--primary-color) 50%,
        color-mix(in srgb, var(--primary-color) 50%, transparent) 80%,
        transparent 100%
    );
}

.taskbar-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 4px;
    gap: 2px;
}

.taskbar-start {
    flex-shrink: 0;
}

.start-button {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px 0 8px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary-color) 40%, #2a2a4a) 0%,
        color-mix(in srgb, var(--primary-color) 25%, #1a1a3a) 45%,
        color-mix(in srgb, var(--primary-color) 20%, #151528) 50%,
        color-mix(in srgb, var(--primary-color) 30%, #1a1a3a) 100%
    );
    border: 1px solid color-mix(in srgb, var(--primary-color) 50%, transparent);
    border-radius: 0 8px 8px 0;
    color: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 
        inset 0 1px 0 color-mix(in srgb, var(--primary-color) 40%, transparent),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3),
        2px 0 8px rgba(0, 0, 0, 0.3);
    margin-left: -4px;
}

.start-button:hover {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary-color) 55%, #3a3a5a) 0%,
        color-mix(in srgb, var(--primary-color) 40%, #2a2a4a) 45%,
        color-mix(in srgb, var(--primary-color) 35%, #252538) 50%,
        color-mix(in srgb, var(--primary-color) 45%, #2a2a4a) 100%
    );
    box-shadow: 
        inset 0 1px 0 color-mix(in srgb, var(--primary-color) 50%, transparent),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3),
        0 0 15px color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.start-button:active {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary-color) 20%, #151528) 0%,
        color-mix(in srgb, var(--primary-color) 30%, #1a1a3a) 50%,
        color-mix(in srgb, var(--primary-color) 25%, #1a1a3a) 100%
    );
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.start-icon {
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.start-text {
    letter-spacing: 0.5px;
    text-transform: none;
}

.taskbar-apps {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 6px;
    height: 100%;
}

.taskbar-apps::-webkit-scrollbar {
    display: none;
}

.taskbar-app {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 30px;
    padding: 0 10px;
    border-radius: 4px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary-color) 15%, rgba(255, 255, 255, 0.1)) 0%,
        color-mix(in srgb, var(--primary-color) 10%, rgba(0, 0, 0, 0.1)) 50%,
        color-mix(in srgb, var(--primary-color) 8%, rgba(0, 0, 0, 0.2)) 100%
    );
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.taskbar-app:hover {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary-color) 30%, rgba(255, 255, 255, 0.15)) 0%,
        color-mix(in srgb, var(--primary-color) 20%, rgba(0, 0, 0, 0.05)) 50%,
        color-mix(in srgb, var(--primary-color) 15%, rgba(0, 0, 0, 0.15)) 100%
    );
    border-color: color-mix(in srgb, var(--primary-color) 50%, transparent);
    box-shadow: 
        inset 0 1px 0 color-mix(in srgb, var(--primary-color) 30%, transparent),
        0 0 10px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.taskbar-app.active {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary-color) 10%, rgba(0, 0, 0, 0.2)) 0%,
        color-mix(in srgb, var(--primary-color) 20%, rgba(0, 0, 0, 0.3)) 50%,
        color-mix(in srgb, var(--primary-color) 15%, rgba(0, 0, 0, 0.25)) 100%
    );
    border: 1px solid color-mix(in srgb, var(--primary-color) 60%, transparent);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px color-mix(in srgb, var(--primary-color) 20%, transparent),
        0 0 8px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.taskbar-app.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 0 6px var(--primary-color);
}

.app-icon {
    font-size: 18px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
    transition: all 0.15s ease;
}

.taskbar-app:hover .app-icon {
    filter: drop-shadow(0 0 4px var(--primary-color));
    transform: scale(1.05);
}

.app-indicator {
    display: none;
}

.taskbar-tray {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    height: 100%;
    padding: 0 4px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary-color) 8%, rgba(0, 0, 0, 0.2)) 0%,
        color-mix(in srgb, var(--primary-color) 5%, rgba(0, 0, 0, 0.3)) 100%
    );
    border-left: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
    box-shadow: 
        inset 1px 0 0 color-mix(in srgb, var(--primary-color) 15%, transparent),
        inset -1px 0 0 rgba(0, 0, 0, 0.2);
}

.tray-status {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 8px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary-color) 12%, rgba(255, 255, 255, 0.05)) 0%,
        color-mix(in srgb, var(--primary-color) 8%, rgba(0, 0, 0, 0.1)) 100%
    );
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    border-radius: 3px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4444;
    box-shadow: 0 0 4px #ff4444;
    animation: status-pulse 2s ease-in-out infinite;
}

.status-indicator.active {
    background: var(--primary-color);
    box-shadow: 0 0 6px var(--primary-color);
}

.status-text {
    font-size: 10px;
    color: #fff;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

.taskbar-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 10px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary-color) 12%, rgba(255, 255, 255, 0.05)) 0%,
        color-mix(in srgb, var(--primary-color) 8%, rgba(0, 0, 0, 0.1)) 100%
    );
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    border-radius: 3px;
    min-width: 55px;
}

.taskbar-clock::before {
    display: none;
}

.clock-time {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    line-height: 1;
}

@media (max-width: 1024px) {
    .taskbar-app {
        min-width: 38px;
        height: 28px;
        padding: 0 8px;
    }
    
    .app-icon {
        font-size: 16px;
    }
    
    .start-button {
        padding: 0 10px 0 6px;
    }
}

@media (max-width: 768px) {
    #taskbar {
        height: 36px;
    }
    
    .taskbar-content {
        padding: 0 2px;
    }
    
    .taskbar-app {
        min-width: 34px;
        height: 26px;
        padding: 0 6px;
    }
    
    .app-icon {
        font-size: 14px;
    }
    
    .start-button {
        height: 28px;
        padding: 0 8px 0 4px;
        font-size: 11px;
    }
    
    .start-icon {
        font-size: 14px;
    }
    
    .tray-status,
    .taskbar-clock {
        height: 22px;
        padding: 0 6px;
    }
    
    .status-text,
    .clock-time {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .start-text {
        display: none;
    }
    
    .start-button {
        padding: 0 8px;
        border-radius: 0 6px 6px 0;
    }
    
    .taskbar-app {
        min-width: 30px;
        padding: 0 4px;
    }
    
    .tray-status {
        display: none;
    }
    
    .taskbar-font-controls {
        display: none;
    }
}

.taskbar-font-controls {
    display: flex;
    gap: 2px;
    align-items: center;
    margin-right: 4px;
}

.taskbar-font-btn {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary-color) 12%, rgba(255, 255, 255, 0.05)) 0%,
        color-mix(in srgb, var(--primary-color) 8%, rgba(0, 0, 0, 0.1)) 100%
    );
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    color: #fff;
    padding: 0;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.15s ease;
    min-width: 24px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.taskbar-font-btn:hover {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary-color) 30%, rgba(255, 255, 255, 0.1)) 0%,
        color-mix(in srgb, var(--primary-color) 20%, rgba(0, 0, 0, 0.05)) 100%
    );
    border-color: color-mix(in srgb, var(--primary-color) 50%, transparent);
    box-shadow: 0 0 6px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

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

@media (max-width: 768px) {
    .taskbar-font-controls {
        gap: 2px;
        margin-right: 8px;
    }
    
    .taskbar-font-btn {
        padding: 3px 6px;
        font-size: calc(10px * var(--font-scale));
        min-width: 25px;
        height: 20px;
    }
}

#game-container {
    padding-bottom: 45px;
}

@keyframes taskbar-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#taskbar {
    animation: taskbar-slide-up 0.6s ease-out;
}

.mining-panel-window {
    width: 900px;
    max-width: 95%;
    max-height: 90vh;
    background-color: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 0 25px var(--glow-shadow), inset 0 0 15px var(--glow-shadow);
    position: absolute;
    top: 10%;
    left: 15%;
    z-index: 1000;
}

.mining-panel-window::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        var(--scan-line-color),
        var(--scan-line-color) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.mining-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100% - 40px);
}

.exchange-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 100%;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.1) 0%, rgba(0, 40, 20, 0.1) 100%);
}

.exchange-container-compact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 10px;
    height: 100%;
    overflow-y: auto;
}

.crypto-status-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #555555;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.status-item {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-item.positive {
    border-color: rgba(50, 205, 50, 0.4);
    background: rgba(50, 205, 50, 0.05);
}

.status-item.negative {
    border-color: rgba(220, 20, 60, 0.4);
    background: rgba(220, 20, 60, 0.05);
}

.status-label {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.status-value {
    font-size: 14px;
    font-weight: bold;
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.status-item.positive .status-value {
    color: #32cd32;
    text-shadow: 0 0 5px rgba(50, 205, 50, 0.5);
}

.status-item.negative .status-value {
    color: #dc143c;
    text-shadow: 0 0 5px rgba(220, 20, 60, 0.5);
}

.trading-panel-unified {
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
    border: 1px solid #555555;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.trading-header h3 {
    color: #e0e0e0;
    font-size: 18px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    margin: 0;
}

.trade-type-selector {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #555555;
}

.mode-button {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
}

.mode-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

.mode-button.active {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    text-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
    box-shadow: inset 0 0 10px rgba(74, 144, 226, 0.3);
}

.trade-input-section {
    margin-bottom: 20px;
}

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

.input-group label {
    color: #e0e0e0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #555555;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
    background: rgba(74, 144, 226, 0.05);
}

.conversion-preview {
    font-size: 12px;
    color: #aaa;
    font-style: italic;
    text-align: right;
    margin-top: 5px;
}

.trade-button-unified {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trade-button-unified.buy {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.trade-button-unified.buy:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.trade-button-unified.sell {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.trade-button-unified.sell:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
}

.chart-section-compact {
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
    border: 1px solid #555555;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.chart-section-compact .section-header h3 {
    color: #e0e0e0;
    font-size: 16px;
    margin: 0 0 15px 0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.chart-container {
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.history-section-compact {
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
    border: 1px solid #555555;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.history-section-compact .section-header h3 {
    color: #e0e0e0;
    font-size: 16px;
    margin: 0 0 15px 0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.transaction-list-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.transaction-item-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 3px solid #4a90e2;
    transition: all 0.3s ease;
}

.transaction-item-compact:hover {
    background: rgba(74, 144, 226, 0.05);
    transform: translateX(5px);
}

.transaction-item-compact.buy {
    border-left-color: #28a745;
}

.transaction-item-compact.sell {
    border-left-color: #dc3545;
}

.transaction-item-compact.mining {
    border-left-color: #ffc107;
}

.transaction-item-compact.scan {
    border-left-color: #6f42c1;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-type {
    font-size: 12px;
    font-weight: bold;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transaction-date {
    font-size: 10px;
    color: #aaa;
}

.transaction-amounts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.transaction-amount {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.transaction-price {
    font-size: 10px;
    color: #aaa;
}

.mining-container-network {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    height: 100%;
    overflow-y: auto;
}

.mining-controls-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #555555;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.control-stats {
    display: flex;
    gap: 30px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-label {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.network-scan-button {
    position: relative;
    padding: 15px 30px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    overflow: hidden;
    min-width: 180px;
}

.network-scan-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #357abd 0%, #2a5f94 100%);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    transform: translateY(-2px);
}

.network-scan-button:disabled {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.scan-text {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.scan-cost {
    display: block;
    font-size: 10px;
    opacity: 0.8;
}

.scan-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    z-index: 1;
    transition: none;
}

.network-scan-button .scan-text,
.network-scan-button .scan-cost {
    position: relative;
    z-index: 2;
}

.network-map-container {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.8) 0%, rgba(60, 60, 60, 0.8) 100%);
    border-radius: 10px;
    border: 1px solid #555555;
    overflow-y: auto;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
}

.pc-grid-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 15px;
    height: 100%;
    min-height: 450px;
}

.pc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #444444 0%, #333333 100%);
    border: 2px solid #666666;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
}

.pc-card:hover {
    border-color: #4a90e2;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transform: translateY(-2px);
}

.pc-card.empty {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px dashed #555555;
    cursor: default;
    opacity: 0.5;
}

.pc-card.empty:hover {
    border-color: #555555;
    box-shadow: none;
    transform: none;
}

.pc-card.discovered {
    border-color: #ffa500;
    background: linear-gradient(135deg, #5a4a2a 0%, #4a3a1a 100%);
    animation: discovered-pulse 2s infinite;
}

.pc-card.installing {
    border-color: #4a90e2;
    background: linear-gradient(135deg, #2a4a5a 0%, #1a3a4a 100%);
    animation: installing-glow 1s infinite;
}

.pc-card.active {
    border-color: #32cd32;
    background: linear-gradient(135deg, #2a5a2a 0%, #1a4a1a 100%);
    animation: active-glow 3s infinite;
}

@keyframes discovered-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes installing-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(74, 144, 226, 0.3); }
    50% { box-shadow: 0 0 20px rgba(74, 144, 226, 0.6); }
}

@keyframes active-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(50, 205, 50, 0.3); }
    50% { box-shadow: 0 0 20px rgba(50, 205, 50, 0.6); }
}

.pc-icon {
    font-size: 24px;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.pc-name {
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pc-progress-indicator {
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    height: 3px;
    background: rgba(74, 144, 226, 0.8);
    border-radius: 2px;
    animation: progress-pulse 1s infinite;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.pc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.pc-popup {
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
    border: 1px solid #555555;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 400px;
    max-width: 500px;
    animation: popup-appear 0.3s ease-out;
}

@keyframes popup-appear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pc-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #555555;
}

.pc-popup-header h3 {
    color: #e0e0e0;
    font-size: 18px;
    margin: 0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.pc-popup-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pc-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.pc-popup-content {
    padding: 20px;
}

.pc-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.pc-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
    font-size: 14px;
    color: #aaa;
    font-weight: bold;
}

.detail-value {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: bold;
}

.detail-value.status-discovered {
    color: #ffa500;
}

.detail-value.status-installing {
    color: #4a90e2;
}

.detail-value.status-active {
    color: #32cd32;
}

.pc-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.install-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.install-button:hover {
    background: linear-gradient(135deg, #357abd 0%, #2a5f94 100%);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    transform: translateY(-2px);
}

.pc-installation {
    text-align: center;
}

.installation-status {
    font-size: 16px;
    color: #4a90e2;
    font-weight: bold;
    margin-bottom: 15px;
}

.installation-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
}

.installation-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.installation-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: progress-shine 2s infinite;
}

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

.installation-time {
    font-size: 14px;
    color: #aaa;
    font-weight: bold;
}

.pc-mining-info {
    text-align: center;
}

.mining-status {
    font-size: 16px;
    color: #32cd32;
    font-weight: bold;
    margin-bottom: 10px;
}

.mining-income {
    font-size: 14px;
    color: #e0e0e0;
    background: rgba(50, 205, 50, 0.1);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(50, 205, 50, 0.3);
}

.installation-panel {
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
    border: 1px solid #555555;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.installation-header {
    margin-bottom: 15px;
}

.installation-header h3 {
    color: #e0e0e0;
    font-size: 16px;
    margin: 0 0 10px 0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.installation-pc-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.pc-install-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.pc-install-power {
    font-size: 12px;
    color: #ffa500;
    font-weight: bold;
}

.installation-progress-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.installation-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.installation-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    width: 0%;
    transition: none;
    position: relative;
    overflow: hidden;
}

.installation-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: progress-shine 2s infinite;
}

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

.installation-time {
    text-align: center;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .control-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .mining-controls-panel {
        flex-direction: column;
        gap: 15px;
    }
    
    .network-map-container {
        height: 300px;
    }
    
    .pc-node-info {
        min-width: 80px;
        padding: 6px 8px;
    }
}

.exchange-left, .exchange-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wallet-info, .price-info, .trading-panel, .price-chart, .transaction-history {
    background: linear-gradient(145deg, rgba(0, 25, 50, 0.8) 0%, rgba(0, 15, 30, 0.9) 100%);
    border: 1px solid rgba(0, 255, 150, 0.3);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.wallet-info::before, .price-info::before, .trading-panel::before, 
.price-chart::before, .transaction-history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 150, 0.6), transparent);
    animation: glow-line 3s ease-in-out infinite;
}

@keyframes glow-line {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.wallet-info h3, .price-info h3, .price-chart h3, .transaction-history h3 {
    color: var(--secondary-color);
    margin: 0 0 15px 0;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 150, 0.5);
}

.tsx-balance {
    font-size: 28px;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 255, 150, 0.6);
    animation: balance-glow 2s ease-in-out infinite alternate;
}

@keyframes balance-glow {
    from { text-shadow: 0 0 15px rgba(0, 255, 150, 0.6); }
    to { text-shadow: 0 0 25px rgba(0, 255, 150, 0.9), 0 0 35px rgba(0, 255, 150, 0.4); }
}

.wallet-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.wallet-stats div {
    color: var(--color-text-dim);
    font-size: 12px;
    padding: 8px;
    background: rgba(0, 255, 150, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 150, 0.1);
}

.current-price {
    font-size: 24px;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(0, 255, 150, 0.5);
}

.price-change {
    font-size: 16px;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
}

.price-change.positive {
    color: #00ff96;
    background: rgba(0, 255, 150, 0.1);
    border: 1px solid rgba(0, 255, 150, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 150, 0.2);
}

.price-change.negative {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}

.volume {
    color: var(--color-text-dim);
    font-size: 14px;
    text-align: center;
    padding: 8px;
    background: rgba(0, 255, 150, 0.05);
    border-radius: 4px;
    margin-top: 10px;
}

.trading-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trading-section {
    background: rgba(0, 40, 20, 0.3);
    border: 1px solid rgba(0, 255, 150, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.trading-section h4 {
    color: var(--secondary-color);
    margin: 0 0 12px 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trading-section input {
    width: 100%;
    padding: 12px;
    background: linear-gradient(145deg, rgba(0, 20, 40, 0.8), rgba(0, 10, 20, 0.9));
    border: 1px solid rgba(0, 255, 150, 0.3);
    color: var(--color-text);
    border-radius: 6px;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.trading-section input:focus {
    outline: none;
    border-color: rgba(0, 255, 150, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 150, 0.3);
    background: linear-gradient(145deg, rgba(0, 25, 50, 0.8), rgba(0, 15, 30, 0.9));
}

.trading-section button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(145deg, rgba(0, 40, 20, 0.8), rgba(0, 60, 30, 0.9));
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trading-section button:hover:not(:disabled) {
    background: linear-gradient(145deg, rgba(0, 60, 30, 0.9), rgba(0, 80, 40, 1));
    box-shadow: 0 0 20px rgba(0, 255, 150, 0.4);
    transform: translateY(-2px);
}

.trading-section button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.price-chart {
    flex: 1;
    min-height: 280px;
}

#tsx-price-chart {
    width: 100%;
    height: 220px;
    border: 1px solid rgba(0, 255, 150, 0.3);
    border-radius: 6px;
    background: linear-gradient(145deg, rgba(0, 10, 20, 0.9), rgba(0, 5, 15, 0.9));
    box-shadow: inset 0 0 20px rgba(0, 255, 150, 0.1);
}

.transaction-history {
    flex: 1;
    min-height: 220px;
}

.transaction-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(0, 255, 150, 0.2);
    border-radius: 6px;
    background: linear-gradient(145deg, rgba(0, 10, 20, 0.8), rgba(0, 5, 15, 0.9));
}

.transaction-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.transaction-item:hover {
    background: rgba(0, 255, 150, 0.05);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item.buy {
    background: linear-gradient(90deg, rgba(0, 255, 150, 0.08), rgba(0, 255, 150, 0.02));
    border-left: 3px solid rgba(0, 255, 150, 0.5);
}

.transaction-item.sell {
    background: linear-gradient(90deg, rgba(255, 68, 68, 0.08), rgba(255, 68, 68, 0.02));
    border-left: 3px solid rgba(255, 68, 68, 0.5);
}

.transaction-item.mining {
    background: linear-gradient(90deg, rgba(255, 165, 0, 0.08), rgba(255, 165, 0, 0.02));
    border-left: 3px solid rgba(255, 165, 0, 0.5);
}

.tx-type {
    color: var(--secondary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
}

.tx-amount {
    color: var(--accent-color);
    font-weight: bold;
}

.tx-price {
    color: var(--color-text);
}

.tx-date {
    color: var(--color-text-dim);
    font-size: 11px;
}

.mining-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px;
}

.mining-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 20, 40, 0.3);
    border: 1px solid var(--color-text-dim);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.scan-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#scan-pcs-btn {
    padding: 12px 24px;
    background-color: var(--terminal-bg);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-weight: bold;
}

#scan-pcs-btn:hover:not(:disabled) {
    background-color: rgba(0, 255, 150, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 150, 0.3);
}

#scan-pcs-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.scan-cost {
    color: var(--color-text-dim);
    font-size: 12px;
}

.tsx-balance {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 14px;
}

.mining-stats h4 {
    color: var(--secondary-color);
    margin: 0 0 8px 0;
    font-size: 16px;
}

.pc-count {
    color: var(--accent-color);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.total-rate {
    color: var(--color-text);
    font-size: 14px;
}

.mining-map {
    flex: 1;
    position: relative;
    background-color: rgba(0, 5, 10, 0.9);
    border: 1px solid var(--color-text-dim);
    border-radius: 4px;
    min-height: 480px;
    overflow: hidden;
    background-image: 
        linear-gradient(rgba(0, 255, 150, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 150, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 15% 20%, rgba(0, 255, 255, 0.15) 2px, transparent 3px),
        radial-gradient(circle at 85% 25%, rgba(255, 150, 0, 0.15) 2px, transparent 3px),
        radial-gradient(circle at 25% 75%, rgba(150, 0, 255, 0.15) 2px, transparent 3px),
        radial-gradient(circle at 75% 80%, rgba(255, 0, 150, 0.15) 2px, transparent 3px),
        linear-gradient(45deg, transparent 48%, rgba(0, 255, 150, 0.05) 49%, rgba(0, 255, 150, 0.05) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(0, 255, 150, 0.05) 49%, rgba(0, 255, 150, 0.05) 51%, transparent 52%);
    background-size: 
        60px 60px,
        60px 60px,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        120px 120px,
        120px 120px;
    background-position:
        0 0,
        0 0,
        0 0,
        0 0,
        0 0,
        0 0,
        0 0,
        0 0;
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 150, 0.03) 3px,
            rgba(0, 255, 150, 0.03) 4px
        ),
        conic-gradient(from 0deg at 50% 50%, 
            transparent 0deg, 
            rgba(0, 255, 150, 0.1) 90deg, 
            transparent 180deg, 
            rgba(0, 255, 150, 0.05) 270deg, 
            transparent 360deg
        );
    opacity: 0.6;
    animation: radar-sweep 8s linear infinite;
}

@keyframes radar-sweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.scan-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, 
            rgba(0, 255, 150, 0.2) 0%, 
            rgba(0, 255, 150, 0.1) 30%, 
            transparent 70%
        );
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    animation: scan-pulse 2s ease-in-out infinite;
}

@keyframes scan-pulse {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2); 
    }
}

.scan-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 255, 150, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: 6;
}

.scan-wave.active {
    animation: scan-wave-expand 3s ease-out forwards;
}

@keyframes scan-wave-expand {
    0% {
        width: 100px;
        height: 100px;
        opacity: 1;
        border-width: 3px;
    }
    100% {
        width: 800px;
        height: 800px;
        opacity: 0;
        border-width: 1px;
    }
}

.no-pcs {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text-dim);
    font-style: italic;
    text-align: center;
    font-size: 16px;
}

.mining-pc {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.mining-pc:hover {
    transform: scale(1.1);
}

.pc-icon {
    font-size: 24px;
    text-align: center;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.pc-info {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 20, 40, 0.9);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    padding: 8px;
    min-width: 150px;
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.mining-pc:hover .pc-info {
    opacity: 1;
}

.pc-name {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 4px;
}

.pc-ip {
    color: var(--color-text-dim);
    margin-bottom: 4px;
}

.pc-power {
    color: var(--accent-color);
    margin-bottom: 2px;
}

.pc-rate {
    color: var(--color-text);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--color-text-dim);
    font-style: italic;
}

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

@keyframes macWindowOpen {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0.1);
    }
    40% {
        opacity: 1;
        transform: translateY(-20px) scale(1.05);
    }
    60% {
        transform: translateY(10px) scale(0.98);
    }
    80% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes macWindowClose {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    30% {
        opacity: 1;
        transform: translateY(-30px) scale(1.03);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) scale(0.1);
    }
}

@keyframes macGenieOpen {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateX(90deg) translateY(50%) scaleY(0.1);
        transform-origin: bottom center;
    }
    50% {
        opacity: 1;
        transform: perspective(1000px) rotateX(-10deg) translateY(0) scaleY(1.05);
    }
    70% {
        transform: perspective(1000px) rotateX(5deg) translateY(0) scaleY(0.98);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateX(0deg) translateY(0) scaleY(1);
    }
}

@keyframes macGenieClose {
    0% {
        opacity: 1;
        transform: perspective(1000px) rotateX(0deg) translateY(0) scaleY(1);
        transform-origin: bottom center;
    }
    40% {
        opacity: 1;
        transform: perspective(1000px) rotateX(-15deg) translateY(-20px) scaleY(1.02);
    }
    100% {
        opacity: 0;
        transform: perspective(1000px) rotateX(90deg) translateY(50%) scaleY(0.1);
    }
}

.window.window-opening {
    animation: macGenieOpen 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: bottom center;
}

.window.window-closing {
    animation: macGenieClose 0.35s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
    transform-origin: bottom center;
    pointer-events: none;
}

.window.window-opening.bounce-style {
    animation: macWindowOpen 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.window.window-closing.bounce-style {
    animation: macWindowClose 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

/* File System Styles */
.file-system-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.file-system-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(0, 255, 150, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.file-stats {
    display: flex;
    gap: 20px;
    font-size: var(--font-size-small);
    color: var(--secondary-color);
}

.file-count, .file-size {
    padding: 4px 8px;
    background: rgba(0, 255, 150, 0.1);
    border-radius: 3px;
}

.btn-refresh {
    background: rgba(0, 255, 150, 0.1);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--game-font);
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: rgba(0, 255, 150, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 150, 0.3);
}

.file-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(0, 255, 150, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-item:hover {
    background: rgba(0, 255, 150, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 150, 0.2);
    transform: translateX(3px);
}

.file-icon {
    font-size: 24px;
    min-width: 30px;
    text-align: center;
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    color: var(--primary-color);
    font-weight: bold;
    font-size: var(--font-size-medium);
}

.file-meta {
    display: flex;
    gap: 15px;
    font-size: var(--font-size-small);
    color: rgba(0, 255, 150, 0.6);
}

.file-source {
    color: var(--accent-color);
}

.file-size-small {
    color: rgba(255, 255, 255, 0.5);
}

.file-date {
    color: rgba(255, 255, 255, 0.4);
}

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

.btn-view, .btn-delete {
    background: rgba(0, 255, 150, 0.1);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: rgba(0, 180, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 180, 255, 0.3);
}

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

.file-viewer {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    z-index: 10;
    border-top: 1px solid var(--border-color);
}

.file-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 255, 150, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.file-viewer-title {
    margin: 0;
    color: var(--primary-color);
    font-size: var(--font-size-medium);
}

.close-viewer {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.4);
    color: #ff0000;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

.file-viewer-info {
    padding: 10px 15px;
    background: rgba(0, 255, 150, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.info-row {
    display: flex;
    gap: 10px;
    padding: 5px 0;
    font-size: var(--font-size-small);
}

.info-label {
    color: var(--secondary-color);
    min-width: 100px;
    font-weight: bold;
}

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

.file-viewer-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.file-viewer-content pre {
    margin: 0;
    color: var(--primary-color);
    font-family: var(--game-font);
    font-size: var(--font-size-small);
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.no-files {
    text-align: center;
    padding: 40px 20px;
    color: rgba(0, 255, 150, 0.5);
}

.no-files p {
    margin: 10px 0;
    font-size: var(--font-size-medium);
}

.help-text {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: var(--font-size-small) !important;
}

.loading {
    text-align: center;
    padding: 20px;
    color: var(--secondary-color);
    font-size: var(--font-size-medium);
}

.error {
    text-align: center;
    padding: 20px;
    color: var(--error-color);
    font-size: var(--font-size-medium);
}

.notepad-window {
    background-color: var(--terminal-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}
.notepad-content { 
    padding: 10px; 
    height: calc(100% - 44px); 
    display: flex; 
    flex-direction: column; 
}

.notepad-toolbar { 
    display: flex; 
    gap: 8px; 
    margin-bottom: 8px; 
}

.notepad-toolbar .btn-new, .notepad-toolbar .btn-save, .notepad-toolbar .btn-delete {
    background: transparent; 
    border: 1px solid var(--secondary-color); 
    color: var(--primary-color); 
    padding: 6px 8px; 
    cursor: pointer; 
    border-radius: 4px;
}

.notepad-main { 
    display: flex; 
    gap: 10px; 
    height: 100%; 
    flex: 1 1 auto; 
}

.notepad-list { 
    width: 240px; 
    background: rgba(255,255,255,0.02); 
    border-radius: 6px; 
    padding: 6px; 
    overflow: auto; 
    box-shadow: inset 0 0 8px rgba(0,0,0,0.3); 
}

.note-item { 
    padding: 10px; 
    border-bottom: 1px solid rgba(255,255,255,0.03); 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
}

.note-item:hover { 
    background: rgba(255,255,255,0.02); 
}

.note-item .note-title { 
    color: var(--secondary-color); 
    font-size: var(--font-size-medium); 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.note-item .note-meta { 
    color: rgba(255,255,255,0.32); 
    font-size: var(--font-size-small); 
    margin-left: 8px; 
    white-space: nowrap; 
}

.notepad-editor { 
    position: relative; 
    flex: 1 1 auto; 
    display: flex; 
    background: transparent; 
    border: 1px solid rgba(255,255,255,0.03); 
}

.notepad-editor .gutter { 
    width:48px; 
    background: rgba(0,0,0,0.12); 
    padding: 8px 6px; 
    overflow:auto; 
    color: rgba(255,255,255,0.35); 
    text-align: right; 
}

.notepad-editor .gutter-line { 
    height: 20px; 
    line-height: 20px; 
    font-size: var(--font-size-small); 
}

.notepad-editor .notepad-textarea { 
    flex: 1 1 auto; 
    padding: 8px 12px; 
    background: transparent; 
    border: none; 
    color: var(--primary-color); 
    outline: none; 
    resize: none; 
    font-family: var(--game-font); 
    font-size: var(--font-size-medium); 
    line-height: 20px; 
    white-space: pre-wrap; 
}

.notepad-controls { 
    position: absolute; 
    bottom: 10px; 
    right: 10px; 
    display: flex; 
    gap: 8px; 
    z-index: 5; 
}

.notepad-controls button { 
    background: transparent; 
    border: 1px solid var(--secondary-color); 
    color: var(--primary-color); 
    padding: 6px 10px; 
    cursor: pointer; 
    border-radius: 4px; 
    transition: all 0.2s; 
}

.notepad-controls button:hover { 
    background: rgba(255,255,255,0.02); 
    box-shadow: 0 0 8px var(--glow-shadow); 
}

.notepad-controls button[title] { 
    padding: 0; 
}