@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Orbitron:wght@400;900&display=swap');

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

:root {
    --hack-green: #00ff41;
    --hack-bg: #050505;
    --hack-pink: #ff0055;
    --hack-cyan: #00ffff;
    --hack-gold: #ffd700;
    --gov-blue: #0055ff;
    --gov-red: #ff3333;
    --win-bg: rgba(13, 13, 13, 0.9);
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-green: 0 0 10px rgba(0, 255, 65, 0.3);
    --glow-cyan: 0 0 10px rgba(0, 255, 255, 0.3);
    --glow-pink: 0 0 10px rgba(255, 0, 85, 0.3);
    --scroll-gold: #ffc857;
    --scroll-gold-rgb: 255, 200, 87;
    --scroll-cyan-rgb: 78, 230, 255;
}

/* Глобальный скроллбар страницы — в стиле директив */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--scroll-gold-rgb), .55) rgba(255, 255, 255, .04);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    border-left: 1px dashed rgba(var(--scroll-gold-rgb), .14);
    background:
        linear-gradient(180deg, rgba(var(--scroll-gold-rgb), .03), rgba(7, 9, 13, .2) 18%, rgba(7, 9, 13, .2) 82%, rgba(var(--scroll-cyan-rgb), .03));
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    border: 1px solid rgba(var(--scroll-gold-rgb), .35);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(var(--scroll-gold-rgb), .78), rgba(var(--scroll-gold-rgb), .42));
    box-shadow:
        0 0 8px rgba(var(--scroll-gold-rgb), .22),
        inset 0 1px 0 rgba(255, 255, 255, .12);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    border-color: rgba(var(--scroll-gold-rgb), .65);
    background:
        linear-gradient(180deg, var(--scroll-gold), rgba(var(--scroll-gold-rgb), .62));
    box-shadow:
        0 0 12px rgba(var(--scroll-gold-rgb), .35),
        inset 0 1px 0 rgba(255, 255, 255, .18);
}

html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active {
    border-color: rgba(var(--scroll-cyan-rgb), .55);
    background:
        linear-gradient(180deg, rgba(var(--scroll-cyan-rgb), .85), rgba(var(--scroll-gold-rgb), .55));
    box-shadow: 0 0 14px rgba(var(--scroll-cyan-rgb), .28);
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
    background: transparent;
}

/* --- ОСНОВА --- */
body {
    margin: 0;
    padding: 0;
    background: #000;
    color: var(--hack-green);
    font-family: 'JetBrains Mono', monospace;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: radial-gradient(circle at center, #111 0%, #000 100%);
}

.terminal-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.panel {
    border: 1px solid var(--border);
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--glow-green);
    border: 1px solid var(--glass-border);
}

.panel-premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.terminal-container h3 {
    font-size: 18px;
    letter-spacing: 0.5px;
}

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

/* КНОПКИ И ВВОД */
.btn-hack {
    background: #000;
    border: 1px solid var(--hack-green);
    color: var(--hack-green);
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Orbitron';
    font-size: 15px;
    text-transform: uppercase;
    transition: 0.2s;
    width: 100%;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-hack:hover {
    background: var(--hack-green);
    color: #000;
    box-shadow: 0 0 15px var(--hack-green);
}

.input-hack {
    background: #000;
    border: 1px solid var(--hack-green);
    color: #fff;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'JetBrains Mono';
    font-size: 16px;
}

/* ЗАДАЧИ */
.task-card {
    border: 1px solid #333;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    position: relative;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.task-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 255, 0.45);
    box-shadow:
        0 10px 26px rgba(0, 0, 0, .24),
        0 0 18px rgba(0, 255, 255, 0.1);
}

.glitch-out {
    pointer-events: none;
    transition: none !important;
    animation: glitch-anim 0.72s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.task-card.is-collapsing {
    pointer-events: none;
    overflow: hidden;
    min-height: 0 !important;
}

@keyframes glitch-anim {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
        filter: none;
    }

    12% {
        transform: translate3d(-4px, 3px, 0);
        clip-path: inset(8% 0 78% 0);
        filter: drop-shadow(2px 0 rgba(255, 0, 85, .6)) drop-shadow(-2px 0 rgba(0, 255, 255, .6));
    }

    26% {
        transform: translate3d(4px, -3px, 0);
        clip-path: inset(76% 0 10% 0);
        filter: drop-shadow(-2px 0 rgba(255, 0, 85, .65)) drop-shadow(2px 0 rgba(0, 255, 255, .65));
    }

    40% {
        transform: translate3d(-3px, 2px, 0);
        clip-path: inset(34% 0 46% 0);
    }

    54% {
        transform: translate3d(2px, -1px, 0) scale(1.01);
        clip-path: inset(12% 0 70% 0);
        opacity: 0.92;
    }

    68% {
        transform: translate3d(0, 0, 0) scale(1);
        clip-path: inset(0 0 0 0);
        filter: none;
    }

    82% {
        transform: translate3d(0, 0, 0) scale(0.96);
        opacity: 0.5;
        filter: blur(1px);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(0.9);
        opacity: 0;
        filter: blur(4px);
        clip-path: inset(0 0 0 0);
    }
}

/* КРУГОВОЙ ПРОГРЕСС */
.circular-progress {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circular-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

.bg-ring {
    fill: none;
    stroke: #1a1a1a;
    stroke-width: 8;
}

.fg-ring {
    fill: none;
    stroke: var(--hack-green);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251;
    stroke-dashoffset: 251;
    transition:
        stroke-dashoffset 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        stroke 0.45s ease,
        filter 0.45s ease;
    filter: drop-shadow(0 0 5px var(--hack-green));
}

/* ВИРТУАЛЬНАЯ ОС */
.desktop-wrapper {
    position: fixed;
    inset: 0;
    background-color: #050505;
    z-index: 1;
    background-image: linear-gradient(#111 1px, transparent 1px), linear-gradient(90deg, #111 1px, transparent 1px);
    background-size: 40px 40px;
}

.login-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.login-box {
    border: 2px solid var(--hack-green);
    padding: 40px;
    width: 300px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    text-align: center;
}

.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 5;
}

.d-icon {
    width: 90px;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.d-icon:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--hack-green);
}

.d-img {
    font-size: 40px;
    display: block;
    margin-bottom: 5px;
}

.d-label {
    font-size: 11px;
    color: #fff;
    text-shadow: 0 2px 2px #000;
}

.window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--win-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 100;
    animation: openWin 0.2s forwards;
    overflow: hidden;
}

@keyframes openWin {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.w-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
    color: #fff;
    padding: 10px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Orbitron';
    letter-spacing: 1px;
}

.w-close {
    cursor: pointer;
    font-weight: 900;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.2s;
}

.w-close:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff3333;
}

.w-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* BROWSER */
.browser-nav {
    background: #222;
    padding: 10px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #444;
}

.url-bar {
    flex: 1;
    background: #000;
    color: #aaa;
    border: 1px solid #444;
    padding: 5px;
    font-family: 'Courier New';
}

.browser-body {
    padding: 20px;
    overflow-y: auto;
    color: #ccc;
    font-family: sans-serif;
    line-height: 1.6;
}

.onion-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #333;
    background: #0a0a0a;
    cursor: pointer;
    margin-bottom: 10px;
    transition: 0.2s;
}

.onion-link:hover {
    border-color: var(--hack-green);
    background: #111;
    transform: translateX(5px);
}

.contract-card {
    border: 1px solid #444;
    padding: 15px;
    margin-bottom: 15px;
    background: radial-gradient(circle at top right, #220000 0%, #000 100%);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
}

.contract-card:hover {
    border-color: red;
    transform: scale(1.02);
}

/* TERMINAL GAME */
.term-screen {
    background: #080808;
    color: #aaa;
    font-family: 'Courier New';
    font-size: 16px;
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.code-done {
    color: var(--hack-green);
    text-shadow: 0 0 5px var(--hack-green);
}

.code-cursor {
    background: var(--hack-green);
    color: #000;
    animation: blink 1s infinite;
}

/* ДОБАВЛЕН КЛАСС ДЛЯ НЕНАПЕЧАТАННОГО ТЕКСТА */
.code-todo {
    color: #555;
}

.red-screen {
    position: absolute;
    inset: 0;
    background: rgba(50, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    backdrop-filter: blur(5px);
}

.error-box {
    border: 4px solid red;
    padding: 40px;
    background: #000;
    color: red;
    text-align: center;
    box-shadow: 0 0 50px red;
    font-family: 'Orbitron';
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ACHIEVEMENTS */
.achieve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.achieve-grid::-webkit-scrollbar {
    width: 5px;
}

.achieve-grid::-webkit-scrollbar-thumb {
    background: var(--hack-green);
}

.achieve-card {
    border: 1px solid #333;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    text-align: center;
    font-size: 11px;
    position: relative;
}

.achieve-locked {
    opacity: 0.3;
    filter: grayscale(100%);
}

.achieve-unlocked {
    border-color: var(--hack-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* SYSTEM NOTIFICATION CONTAINER & TOASTS */
#system-notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200000;
    pointer-events: none;
    max-width: 380px;
    width: 100%;
}

.toast {
    background: rgba(5, 2, 4, 0.95);
    border: 2px solid var(--toast-color, var(--hack-gold));
    color: var(--toast-color, var(--hack-gold));
    padding: 12px 18px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
    box-shadow: 0 0 15px rgba(var(--toast-color-rgb, 255, 215, 0), 0.25), inset 0 0 8px rgba(var(--toast-color-rgb, 255, 215, 0), 0.1);
    backdrop-filter: blur(15px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    position: relative;
    overflow: hidden;
    margin-left: auto;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: toastSlideIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    border-radius: 4px;
}

.toast.toast-fade-out {
    animation: toastSlideOut 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.toast-green {
    --toast-color: var(--hack-green, #00ff41);
    --toast-color-rgb: 0, 255, 65;
}

.toast-red {
    --toast-color: #ff3366;
    --toast-color-rgb: 255, 51, 102;
}

.toast-gold {
    --toast-color: var(--hack-gold, #ffd700);
    --toast-color-rgb: 255, 215, 0;
}

.toast-info {
    --toast-color: var(--hack-cyan, #00ffff);
    --toast-color-rgb: 0, 255, 255;
}

.toast-icon {
    font-size: 24px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 4px var(--toast-color);
}

.toast-desc {
    color: #eee;
    font-size: 11px;
    line-height: 1.3;
}

.toast-close {
    position: absolute;
    top: 5px;
    right: 8px;
    cursor: pointer;
    font-size: 10px;
    color: var(--toast-color);
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    font-weight: bold;
}

.toast-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--toast-color);
    opacity: 0.7;
    transform-origin: left;
    animation: toastProgress 4.5s linear forwards;
}

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

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
        max-height: 100px;
        margin-bottom: 10px;
        padding-top: 12px;
        padding-bottom: 12px;
        border-width: 2px;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
    }
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* CHAT APP — SecureChat (gray messenger) */
#win-chat {
    background: #3d3d40 !important;
    border: 1px solid #5a5a5f !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

#win-chat .w-header {
    background: #48484c !important;
    border-bottom: 1px solid #5a5a5f !important;
    color: #ececec !important;
    text-shadow: none !important;
    font-family: 'Ubuntu', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    min-height: 36px;
}

#win-chat .w-close {
    color: #c8c6cd !important;
    text-shadow: none !important;
}

#win-chat .w-close:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

#chat-access-lvl {
    color: #000 !important;
    background: var(--hack-gold) !important;
    padding: 2px 6px !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 9px !important;
    font-weight: bold !important;
    border-radius: 3px !important;
    letter-spacing: 1px !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3) !important;
}

#chat-signal-node {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    color: var(--hack-cyan) !important;
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

#chat-signal-node::before {
    content: "●" !important;
    color: #00ff66 !important;
    animation: blink 1.2s infinite !important;
    text-shadow: 0 0 5px #00ff66 !important;
}

.chat-main-container {
    display: flex;
    height: calc(100% - 35px);
    background: #030204;
}

.chat-sidebar-unified {
    width: 280px !important;
    background: rgba(4, 3, 6, 0.98) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.chat-sidebar-search {
    padding: 12px 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

#chat-search {
    width: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    padding: 8px 10px !important;
    color: #fff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

#chat-search:focus {
    outline: none !important;
    border-color: var(--hack-gold) !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2) !important;
}

.chat-contact-list {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 10px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.chat-contact-item {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    color: #bbb !important;
    padding: 10px 12px !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    position: relative !important;
    border: 1px solid transparent !important;
    background: rgba(255, 255, 255, 0.01) !important;
}

.chat-contact-item:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.chat-contact-item.active {
    color: var(--hack-gold) !important;
    background: rgba(255, 215, 0, 0.08) !important;
    border-color: rgba(255, 215, 0, 0.2) !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.05) !important;
}

.chat-contact-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.chat-contact-item.active .chat-contact-avatar {
    border-color: var(--hack-gold) !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4) !important;
}

.chat-contact-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.chat-contact-name {
    font-weight: bold !important;
    color: #fff !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.chat-contact-item.active .chat-contact-name {
    color: var(--hack-gold) !important;
}

.chat-contact-preview {
    font-size: 10px !important;
    color: #666 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.chat-contact-item.active .chat-contact-preview {
    color: #aaa !important;
}

.chat-contact-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
}

.chat-contact-status-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    border: 1.5px solid #040306 !important;
}

.chat-contact-status-dot.online {
    background: #00ff66 !important;
    box-shadow: 0 0 6px #00ff66 !important;
}

.chat-contact-status-dot.offline {
    background: #ff3366 !important;
    box-shadow: 0 0 6px #ff3366 !important;
}

.chat-contact-clearance {
    font-size: 8px !important;
    font-family: 'Orbitron', sans-serif !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #888 !important;
    padding: 1px 4px !important;
    border-radius: 2px !important;
}

.chat-contact-item.active .chat-contact-clearance {
    background: var(--hack-gold) !important;
    color: #000 !important;
    font-weight: bold !important;
}

.chat-main-unified {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: radial-gradient(circle at center, #0a080d 0%, #030204 100%) !important;
    position: relative !important;
}

.chat-pane-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    box-sizing: border-box !important;
}

.chat-pane-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-history::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.chat-history::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.chat-history::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.15);
    border-radius: 3px;
}
.chat-history::-webkit-scrollbar-thumb:hover {
    background: var(--hack-gold);
    box-shadow: 0 0 8px var(--hack-gold);
}

.msg {
    padding: 10px 14px !important;
    border-radius: 4px !important;
    max-width: 80% !important;
    font-size: 12px !important;
    word-wrap: break-word;
    position: relative;
    line-height: 1.4 !important;
    animation: toastSlideIn 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
    font-family: 'JetBrains Mono', monospace !important;
}

.msg-in {
    align-self: flex-start !important;
    background: rgba(0, 255, 255, 0.02) !important;
    border: 1px solid rgba(0, 255, 255, 0.1) !important;
    border-left: 3px solid var(--hack-cyan) !important;
    color: #cceeff !important;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.03) !important;
}

.msg-in::before {
    content: "📡 [SENDER // " attr(data-sender) "]" !important;
    display: block !important;
    font-size: 9px !important;
    color: var(--hack-cyan) !important;
    margin-bottom: 6px !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
    opacity: 0.8 !important;
    text-shadow: 0 0 4px rgba(0, 255, 255, 0.4) !important;
}

.msg-out {
    align-self: flex-end !important;
    background: rgba(0, 255, 65, 0.02) !important;
    border: 1px solid rgba(0, 255, 65, 0.1) !important;
    border-right: 3px solid var(--hack-green) !important;
    color: #e0ffe0 !important;
    text-align: left !important;
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.03) !important;
}

.msg-out::before {
    content: "👤 [YOU]" !important;
    display: block !important;
    font-size: 9px !important;
    color: var(--hack-green) !important;
    margin-bottom: 6px !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
    opacity: 0.8 !important;
    text-shadow: 0 0 4px rgba(0, 255, 65, 0.4) !important;
}

.info-block {
    margin: 10px 0;
    padding: 12px;
    background: rgba(255, 215, 0, 0.03);
    border: 1px dashed var(--hack-gold);
    border-radius: 4px;
    color: var(--hack-gold);
    font-size: 11px;
    font-family: 'JetBrains Mono';
    white-space: pre-wrap;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.02);
}

.chat-input-area {
    display: flex;
    padding: 16px 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: rgba(10, 10, 15, 0.85) !important;
    gap: 15px !important;
    align-items: center;
}

.chat-prompt-wrap {
    display: flex;
    align-items: center;
    gap: 8px !important;
}

.btn-enc-toggle {
    font-size: 9px !important;
    padding: 3px 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #888 !important;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5) !important;
    transition: all 0.2s ease !important;
    user-select: none;
    border-radius: 3px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.btn-enc-toggle:hover {
    color: #fff !important;
    border-color: #fff !important;
}

.btn-enc-toggle.active {
    border-color: var(--hack-pink) !important;
    color: #fff !important;
    background: rgba(255, 51, 102, 0.15) !important;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.3) !important;
    text-shadow: 0 0 4px #fff;
}

.chat-prompt {
    font-family: 'JetBrains Mono', monospace !important;
    color: var(--hack-cyan) !important;
    font-weight: bold;
    font-size: 12px !important;
}

.chat-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--hack-green) !important;
    padding: 6px 0 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 13px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.chat-input:focus {
    border-bottom-color: var(--hack-cyan) !important;
    box-shadow: 0 1px 0 var(--hack-cyan) !important;
}

.packet-log-container {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, 0.97) !important;
    z-index: 10;
    display: none;
    flex-direction: column;
    padding: 20px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.packet-line {
    color: #666 !important;
    margin-bottom: 5px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    padding-bottom: 3px !important;
}

.packet-timestamp {
    color: var(--hack-gold) !important;
    margin-right: 10px !important;
}

.packet-type {
    font-weight: bold;
    margin-right: 10px !important;
}

.packet-data {
    color: #999 !important;
}

.packet-dir-in {
    color: var(--hack-cyan) !important;
    text-shadow: 0 0 3px rgba(0, 255, 255, 0.3);
}

.packet-dir-out {
    color: var(--hack-green) !important;
    text-shadow: 0 0 3px rgba(0, 255, 65, 0.3);
}

.chat-header-tools {
    display: flex;
    gap: 12px;
    font-size: 10px;
    color: #666;
    font-family: 'Orbitron', sans-serif;
}

.chat-tool-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.02);
}

.chat-tool-btn:hover {
    color: var(--hack-cyan) !important;
    border-color: var(--hack-cyan) !important;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.2) !important;
}

.chat-tool-btn.active {
    color: var(--hack-gold) !important;
    border-color: var(--hack-gold) !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2) !important;
}

/* --- БИРЖА (EXCHANGE) --- */
.stock-item {
    padding: 15px;
    border-bottom: 1px solid #222;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-item:hover {
    background: #111;
}

.stock-item.active {
    background: #1a1a1a;
    border-left: 3px solid var(--hack-gold);
}

.price-up {
    color: var(--hack-green);
}

.price-down {
    color: var(--hack-pink);
}

.ticker-name {
    font-weight: bold;
    color: #fff;
    display: block;
    font-size: 14px;
}

.ticker-val {
    font-family: 'JetBrains Mono';
    font-size: 12px;
    text-align: right;
}

/* Анимация тревоги */
@keyframes pulseRed {
    0% {
        box-shadow: 0 0 10px red;
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 30px red;
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 10px red;
        transform: scale(1);
    }
}

/* Иконки рабочего стола и проводника */
.desktop-icon:hover {
    transform: scale(1.1);
    background: rgba(0, 255, 65, 0.1);
    border-radius: 5px;
}

.fs-item {
    transition: 0.2s;
    border: 1px solid transparent;
}

.fs-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #333;
    border-radius: 5px;
}

/* --- ТЕМЫ ОФОРМЛЕНИЯ --- */

/* ТЕМА: NEON SYNDICATE */
body.theme-neon {
    /* Меняем базовые цвета системы */
    --hack-green: #00ffff;
    /* Главный цвет теперь циановый */
    --hack-pink: #ff00ff;
    /* Акценты маджента */

    /* Анимированный переливающийся фон */
    background: linear-gradient(45deg, #05001a, #001a1a, #1a001a, #00001a);
    background-size: 400% 400%;
    animation: neonBGFlow 12s ease infinite;
}

body.theme-neon .panel,
body.theme-neon .window,
body.theme-neon .task-card {
    border-color: var(--hack-green);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.15), inset 0 0 10px rgba(255, 0, 255, 0.05);
    background: rgba(0, 10, 20, 0.85);
    /* Легкий синий оттенок для окон */
}

body.theme-neon .btn-hack {
    text-shadow: 0 0 5px var(--hack-green);
}

body.theme-neon .btn-hack:hover {
    box-shadow: 0 0 15px var(--hack-green);
    background: var(--hack-green);
    color: #000;
}

@keyframes neonBGFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ТЕМА: CRIMSON REAPER (Blood) */
body.theme-blood {
    --hack-green: #ff2a2a;
    /* Кроваво-красный */
    --hack-pink: #ff8000;
    /* Оранжевый акцент */
    --hack-cyan: #ff0000;
    --hack-gold: #ffaa00;
    background: radial-gradient(circle at center, #220000 0%, #000 100%);
}

body.theme-blood .panel,
body.theme-blood .window,
body.theme-blood .task-card {
    border-color: var(--hack-green);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.15), inset 0 0 10px rgba(255, 0, 0, 0.05);
    background: rgba(20, 0, 0, 0.85);
    /* Багровый оттенок окон */
}

body.theme-blood .btn-hack {
    text-shadow: 0 0 5px var(--hack-green);
}

body.theme-blood .btn-hack:hover {
    box-shadow: 0 0 15px var(--hack-green);
    background: var(--hack-green);
    color: #000;
}

/* ТЕМА: CORPO ELITE (Gold) */
body.theme-gold {
    --hack-green: #ffd700;
    /* Золотой */
    --hack-pink: #ffffff;
    /* Белый акцент */
    --hack-cyan: #ffea80;
    --hack-gold: #ffaa00;
    background: linear-gradient(135deg, #111 0%, #221a00 100%);
}

body.theme-gold .panel,
body.theme-gold .window,
body.theme-gold .task-card {
    border-color: var(--hack-green);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
    background: rgba(20, 18, 0, 0.9);
}

body.theme-gold .btn-hack {
    text-shadow: none;
}

body.theme-gold .btn-hack:hover {
    box-shadow: 0 0 15px var(--hack-green);
    background: var(--hack-green);
    color: #000;
}

/* =========================================
   НОВЫЕ ТЕМЫ ИНТЕРФЕЙСА (THEMES)
========================================= */
.theme-matrix {
    --hack-green: #00ff00;
    --hack-cyan: #00cc00;
    --hack-pink: #33ff33;
    --hack-gold: #ccffcc;
    background-color: #000500;
}

.theme-ocean {
    --hack-green: #00ffff;
    --hack-cyan: #0088ff;
    --hack-pink: #0044ff;
    --hack-gold: #88ccff;
    background-color: #000510;
}

.theme-synthwave {
    --hack-green: #ff00ff;
    --hack-cyan: #00ffff;
    --hack-pink: #ff0077;
    --hack-gold: #ffaa00;
    background-color: #1a001a;
}

.theme-amber {
    --hack-green: #ffb000;
    --hack-cyan: #ffaa00;
    --hack-pink: #ff9900;
    --hack-gold: #ffcc00;
    background-color: #100500;
}

.theme-dracula {
    --hack-green: #50fa7b;
    --hack-cyan: #8be9fd;
    --hack-pink: #ff79c6;
    --hack-gold: #f1fa8c;
    background-color: #282a36;
}

.theme-cyber {
    --hack-green: #fcee0a;
    --hack-cyan: #00fff5;
    --hack-pink: #ff003c;
    --hack-gold: #fcee0a;
    background-color: #050505;
}

.theme-toxic {
    --hack-green: #bfff00;
    --hack-cyan: #00ff00;
    --hack-pink: #8a2be2;
    --hack-gold: #ff00ff;
    background-color: #050a05;
}

.theme-ghost {
    --hack-green: #e0e0e0;
    --hack-cyan: #b0c4de;
    --hack-pink: #d3d3d3;
    --hack-gold: #f8f8ff;
    background-color: #0f1012;
}

.theme-inferno {
    --hack-green: #ff4500;
    --hack-cyan: #ff8c00;
    --hack-pink: #ff0000;
    --hack-gold: #ffd700;
    background-color: #1a0500;
}

.theme-ice {
    --hack-green: #00ffff;
    --hack-cyan: #add8e6;
    --hack-pink: #87ceeb;
    --hack-gold: #e0ffff;
    background-color: #00111a;
}

.theme-monochrome {
    --hack-green: #ffffff;
    --hack-cyan: #dddddd;
    --hack-pink: #aaaaaa;
    --hack-gold: #cccccc;
    background-color: #000000;
}

.theme-hacker_white {
    --hack-green: #000000;
    --hack-cyan: #333333;
    --hack-pink: #555555;
    --hack-gold: #111111;
    background-color: #e0e0e0;
    color: #000;
}

/* =========================================
   ЧИСТЫЕ ТЕМЫ (ВЫСОКАЯ ЧИТАЕМОСТЬ)
========================================= */

/* 1. NORDIC ICE (Нордический холодный - серо-синие матовые тона) */
.theme-nord {
    --hack-green: #88c0d0;
    --hack-cyan: #81a1c1;
    --hack-pink: #b48ead;
    --hack-gold: #ebcb8b;
    background-color: #2e3440;
    color: #eceff4;
}

.theme-nord .panel,
.theme-nord .window,
.theme-nord .task-card {
    background: #3b4252;
    border-color: #4c566a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.theme-nord .btn-hack {
    background: #434c5e;
    color: #eceff4;
    border-color: #88c0d0;
    text-shadow: none;
    box-shadow: none;
}

.theme-nord .btn-hack:hover {
    background: #88c0d0;
    color: #2e3440;
    border-color: #88c0d0;
}

.theme-nord .input-hack {
    background: #2e3440;
    color: #eceff4;
    border-color: #4c566a;
}

/* 2. MATERIAL OCEAN (Глубокий бирюзово-серый) */
/* 2. CLASSIC CLEAN (Базовая тема без CRT-полос) */
.theme-material {
    --hack-green: #00ff41;
    --hack-cyan: #00ffff;
    --hack-pink: #ff0055;
    --hack-gold: #ffd700;
    background-color: #000;
    color: var(--hack-green);
}

/* Мы намеренно не переопределяем .panel и .btn-hack, чтобы вернуть классическое неоновое свечение */

/* 3. VELVET NIGHT (Бархатная ночь - глубокий фиолетовый с яркими акцентами) */
.theme-velvet {
    --hack-green: #c792ea;
    --hack-cyan: #82aaff;
    --hack-pink: #ff5370;
    --hack-gold: #ffcb6b;
    background-color: #1a0b2e;
    color: #eeffff;
}

.theme-velvet .panel,
.theme-velvet .window,
.theme-velvet .task-card {
    background: #291442;
    border-color: #44246b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.theme-velvet .btn-hack {
    background: #351a5c;
    color: #eeffff;
    border-color: #c792ea;
    text-shadow: none;
    box-shadow: none;
}

.theme-velvet .btn-hack:hover {
    background: #c792ea;
    color: #1a0b2e;
    border-color: #c792ea;
}

.theme-velvet .input-hack {
    background: #1a0b2e;
    color: #eeffff;
    border-color: #44246b;
}

/* 4. FLAT DARK (Строгий минимализм - черный/графит и белый) */
.theme-flat_dark {
    --hack-green: #ffffff;
    --hack-cyan: #4da8da;
    --hack-pink: #ee6c4d;
    --hack-gold: #f3c623;
    background-color: #121212;
    color: #e0e0e0;
}

.theme-flat_dark .panel,
.theme-flat_dark .window,
.theme-flat_dark .task-card {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.theme-flat_dark .btn-hack {
    background: #2a2a2a;
    color: #fff;
    border-color: #555;
    text-shadow: none;
    box-shadow: none;
}

.theme-flat_dark .btn-hack:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.theme-flat_dark .input-hack {
    background: #121212;
    color: #fff;
    border-color: #333;
}

/* 5. SOLARIZED DARK (Винтажный код - теплый темно-зеленый фон) */
.theme-solarized {
    --hack-green: #859900;
    --hack-cyan: #2aa198;
    --hack-pink: #d33682;
    --hack-gold: #b58900;
    background-color: #002b36;
    color: #839496;
}

.theme-solarized .panel,
.theme-solarized .window,
.theme-solarized .task-card {
    background: #073642;
    border-color: #586e75;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.theme-solarized .btn-hack {
    background: #002b36;
    color: #93a1a1;
    border-color: #859900;
    text-shadow: none;
    box-shadow: none;
}

.theme-solarized .btn-hack:hover {
    background: #859900;
    color: #002b36;
    border-color: #859900;
}

.theme-solarized .input-hack {
    background: #002b36;
    color: #93a1a1;
    border-color: #586e75;
}

/* =========================================
   ОБОИ ДЛЯ РАБОЧЕГО СТОЛА (WALLPAPERS)
========================================= */
.wp-grid {
    background: linear-gradient(transparent 95%, rgba(0, 255, 65, 0.2) 100%), linear-gradient(90deg, transparent 95%, rgba(0, 255, 65, 0.2) 100%);
    background-size: 30px 30px;
    background-color: #050505;
}

.wp-hex {
    background: radial-gradient(circle at 50% 50%, #111 0%, #000 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0l20 11.5v23L20 46 0 34.5v-23z' fill-opacity='0.05' fill='%2300ff41' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.wp-binary {
    background-color: #000;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(0, 255, 65, 0.05) 20px, rgba(0, 255, 65, 0.05) 40px);
}

.wp-circuit {
    background-color: #050505;
    background-image: radial-gradient(rgba(0, 255, 65, 0.1) 2px, transparent 2px);
    background-size: 20px 20px;
}

.wp-radar {
    background: repeating-radial-gradient(circle at center, transparent 0, transparent 20px, rgba(0, 255, 65, 0.1) 21px);
    background-color: #000;
}

.wp-abyss {
    background: radial-gradient(circle at center, #112 0%, #000 100%);
}

.wp-bloodline {
    background: repeating-linear-gradient(45deg, #1a0000, #1a0000 10px, #220000 10px, #220000 20px);
}

.wp-cybercity {
    background: linear-gradient(to bottom, #2b003e 0%, #000000 100%);
}

.wp-glitch {
    background: repeating-linear-gradient(90deg, #050505 0px, #050505 10px, #111 10px, #111 20px);
}

.wp-space {
    background: #000 url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='1' fill='%23fff'/%3E%3Ccircle cx='50' cy='60' r='1' fill='%23fff' opacity='0.5'/%3E%3Ccircle cx='80' cy='30' r='1.5' fill='%23fff' opacity='0.8'/%3E%3C/svg%3E");
}

.wp-wireframe {
    background: linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%, #000), linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%, #000);
    background-color: rgba(0, 255, 65, 0.1);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.wp-scanlines {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    background-color: #0a0a0a;
}

/* Стили для Dev Studio */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.app-card {
    border: 1px dashed #333;
    padding: 15px;
    cursor: pointer;
    transition: 0.2s;
    background: #0a0a0a;
    text-align: center;
}

.app-card:hover {
    border-color: var(--hack-green);
    background: rgba(0, 255, 65, 0.1);
    transform: scale(1.05);
}

.app-card h4 {
    margin: 10px 0 5px 0;
    color: #fff;
    font-family: 'Orbitron';
}

.app-card small {
    color: var(--hack-gold);
    font-size: 12px;
}

/* =========================================
   ПЛАВНЫЙ ПЕРЕХОД МЕЖДУ СТРАНИЦАМИ
========================================= */
body {
    animation: pageFadeIn 1.5s ease-in-out forwards;
}

@keyframes pageFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Класс, который мы будем вешать перед переадресацией */
.fade-out-active {
    opacity: 0 !important;
    transition: opacity 1s ease-in-out;
}

/* =========================================
   A.R.G.U.S. HEAT SYSTEM & UNKNOWN CHAT
========================================= */

/* Секретный чат (выплывает справа) */
.unknown-chat {
    position: absolute;
    bottom: 30px;
    right: -450px;
    /* Изначально спрятан за экраном */
    width: 350px;
    background: rgba(10, 5, 15, 0.95);
    border: 1px solid #333;
    border-left: 4px solid var(--hack-pink);
    padding: 15px;
    transition: right 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Эффект пружины */
    z-index: 1000;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.9);
}

.unknown-chat.show {
    right: 30px;
}

/* Класс для показа */

.chat-header {
    font-family: 'Orbitron';
    color: #fff;
    margin-bottom: 12px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #444;
    padding-bottom: 5px;
}

.chat-msg {
    font-size: 13px;
    line-height: 1.6;
    color: #ddd;
    font-family: 'JetBrains Mono';
}

/* =========================================
   A.R.G.U.S. LOCKDOWN SCREEN
========================================= */
.lockdown-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 0, 0, 0.95);
    z-index: 999999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
}

.lockdown-overlay.active {
    display: flex;
    animation: lockdownFlash 0.5s infinite alternate;
}

@keyframes lockdownFlash {
    0% {
        background: rgba(10, 0, 0, 0.95);
        box-shadow: inset 0 0 50px red;
    }

    100% {
        background: rgba(30, 0, 0, 0.98);
        box-shadow: inset 0 0 150px darkred;
    }
}

.lockdown-title {
    font-size: 5rem;
    color: #ff0000;
    text-shadow: 0 0 20px #ff0000;
    margin: 0;
}

.lockdown-sub {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 30px;
}

.argus-game-box {
    width: 600px;
    height: 350px;
    border: 2px dashed #ff0000;
    background: #050000;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
}

.argus-timer {
    font-size: 4rem;
    color: #ff0055;
    font-weight: bold;
    margin-bottom: 10px;
}

.argus-task-text {
    color: var(--hack-cyan);
    font-size: 20px;
    font-family: 'JetBrains Mono';
    margin-bottom: 20px;
    text-align: center;
    padding: 0 20px;
}

/* Тряска экрана для микро-игр */
.shake-screen {
    animation: shakeHard 0.2s infinite;
}

@keyframes shakeHard {
    0% {
        transform: translate(2px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(0px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(2px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(2px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

/* =========================================
   ПРОДВИНУТЫЙ ТЕРМИНАЛ (ФАЗА 1)
========================================= */
.terminal-pro-content {
    background: rgba(5, 5, 5, 0.98);
    color: var(--hack-cyan);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 13px;
    padding: 15px;
    height: calc(100% - 35px);
    overflow-y: auto;
    /* Скролл для длинной истории */
    display: flex;
    flex-direction: column;
}

/* Строки вывода */
.term-line {
    margin-bottom: 4px;
    line-height: 1.5;
    word-wrap: break-word;
}

.term-line.error {
    color: #ff5555;
}

.term-line.success {
    color: var(--hack-green);
}

.term-line.system {
    color: #888;
    font-style: italic;
}

/* Строка активного ввода */
.term-pro-input-line {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

/* Префикс (root@local:~#) */
.term-prompt {
    color: var(--hack-green);
    margin-right: 10px;
    font-weight: bold;
    white-space: nowrap;
}

/* Само поле ввода */
#term-pro-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    flex: 1;
    outline: none;
    caret-color: var(--hack-pink);
    /* Розовая мигающая каретка */
}

/* Кликабельные IP-адреса в Терминале */
.clickable-ip {
    color: var(--hack-cyan);
    cursor: pointer;
    text-decoration: underline;
    font-weight: bold;
    transition: 0.2s;
}

.clickable-ip:hover {
    color: #fff;
    background: rgba(0, 255, 255, 0.2);
}

/* =========================================
   ZERO-DAY FORGE (КУЗНИЦА ВИРУСОВ)
========================================= */
.forge-container {
    display: flex;
    gap: 15px;
    padding: 15px;
    height: calc(100% - 35px);
    color: #fff;
    background: #050000;
}

.forge-col {
    flex: 1;
    background: rgba(20, 0, 0, 0.6);
    border: 1px dashed var(--hack-pink);
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* --- GOVERNMENT WINDOWS --- */
.gov-terminal-content {
    background: #050505;
    font-family: 'JetBrains Mono', monospace;
    padding: 15px;
    height: calc(100% - 35px);
    overflow-y: auto;
    color: var(--hack-green);
}

.term-pro-input-line {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 5px;
}

.term-prompt {
    font-weight: bold;
    white-space: nowrap;
}

#gov-term-input,
#term-pro-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--hack-green);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    caret-color: var(--hack-green);
}

.term-line {
    margin-bottom: 4px;
    line-height: 1.4;
}

.radio-content {
    background: #050505;
    position: relative;
    height: calc(100% - 35px);
    overflow: hidden;
}

.radio-static {
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.05;
    pointer-events: none;
    animation: staticMove 0.2s infinite;
}

@keyframes staticMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(5px, 5px);
    }
}

.radio-log {
    padding: 15px;
    position: relative;
    z-index: 2;
    height: 100%;
    overflow-y: auto;
    font-size: 13px;
    color: #ffaa00;
    font-family: 'JetBrains Mono';
}

.radio-msg {
    margin-bottom: 8px;
    animation: fadeIn 0.3s forwards;
    padding-left: 10px;
    border-left: 2px solid rgba(255, 170, 0, 0.3);
}

.radio-msg.dept-fdru {
    border-color: #ff4444;
    color: #ff6666;
}

.radio-msg.dept-mtc {
    border-color: #ffffff;
    color: #ffffff;
}

.radio-msg.dept-cert {
    border-color: #ffaa00;
    color: #ffcc66;
}

.radio-msg.dept-unit7 {
    border-color: #ffd700;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 5px gold;
}

.radio-msg.dept-sentinel {
    border-color: #0055ff;
    color: #6699ff;
}

.radio-msg.dispatch-msg {
    border-left: 4px solid #00ffff;
    background: rgba(0, 255, 255, 0.05);
    padding: 8px 10px;
    margin: 10px 0;
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-container {
    position: relative;
    background: radial-gradient(circle, #1a1a1a 0%, #000 100%);
    border-top: 1px solid #333;
}

.map-legend {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    line-height: 1.5;
}

#gov-map-canvas {
    image-rendering: auto;
    width: 100%;
    height: 100%;
}

.map-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 10;
    opacity: 0.3;
}

.map-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0, 255, 255, 0) 0%, rgba(0, 255, 255, 0.05) 50%, rgba(0, 255, 255, 0) 100%);
    z-index: 11;
    pointer-events: none;
    animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
    from {
        top: -100px;
    }

    to {
        top: 100%;
    }
}

/* Scrollbar for windows */
.w-content::-webkit-scrollbar {
    width: 6px;
}

.w-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.w-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.forge-title {
    color: var(--hack-pink);
    text-align: center;
    font-family: 'Orbitron';
    font-size: 14px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--hack-pink);
    padding-bottom: 5px;
    text-shadow: 0 0 5px red;
}

.forge-option {
    background: #000;
    border: 1px solid #333;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.forge-option:hover {
    border-color: var(--hack-cyan);
}

.forge-option.selected {
    border-color: var(--hack-gold);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.forge-opt-title {
    font-weight: bold;
    font-size: 13px;
    color: var(--hack-cyan);
    margin-bottom: 5px;
}

.forge-opt-desc {
    font-size: 10px;
    color: #aaa;
    line-height: 1.3;
}

.forge-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0a0000;
    border-top: 1px solid var(--hack-pink);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.forge-stats {
    font-family: 'JetBrains Mono';
    font-size: 12px;
    color: #fff;
}

.forge-stat-val {
    font-weight: bold;
    color: var(--hack-gold);
}

/* =========================================
   ZERO-DAY MARKET (ТЕНЕВОЙ РЫНОК)
========================================= */
#win-market.market-window {
    width: 720px;
    height: 480px;
    border-color: #3d2358 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(125, 68, 179, 0.15) !important;
}

#win-market .market-window-header {
    background: linear-gradient(180deg, #14101c 0%, #0a0810 100%) !important;
    color: #dfc5fe !important;
    border-bottom: 1px solid #3d2358;
    text-shadow: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 0.06em;
}

.market-container {
    display: flex;
    height: calc(100% - 36px);
    background: #0a0512;
    color: #ccc;
}

.market-panel {
    flex: 1;
    padding: 14px;
    border-right: 1px solid #2d183f;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.market-panel:last-child {
    border-right: none;
}

.market-title {
    color: #c09bf8;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 12px;
    text-shadow: none;
    border-bottom: 1px solid #2d183f;
    padding-bottom: 8px;
}

.market-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid #2d183f;
    border-left: 3px solid var(--hack-cyan);
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.market-item:hover {
    border-color: #3d2358;
    border-left-color: var(--hack-cyan);
}

.market-item-title {
    font-weight: 600;
    color: #e8e0ff;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 4px;
}

.market-item-stats {
    font-size: 10px;
    color: #888;
    margin-bottom: 8px;
    line-height: 1.45;
}

.market-item .btn-hack {
    font-size: 10px;
    padding: 6px 10px;
}

/* =========================================
   BLACK MARKET (МАГАЗИН АПГРЕЙДОВ)
========================================= */
#win-blackmarket.bm-window {
    width: 680px;
    height: 520px;
    border-color: #3d2358 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

#win-blackmarket .bm-window-header {
    background: linear-gradient(180deg, #14101c 0%, #0a0810 100%) !important;
    color: #ffd700 !important;
    border-bottom: 1px solid #3d2358;
    text-shadow: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 0.06em;
}

#win-blackmarket .bm-window-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    background: #0a0512;
}

.bm-intro {
    font-size: 11px;
    color: #888;
    line-height: 1.55;
    padding: 10px 12px;
    border-left: 3px solid #7d44b3;
    background: rgba(125, 68, 179, 0.06);
    border-radius: 0 4px 4px 0;
    margin-bottom: 16px;
}

.bm-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid #2d183f;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: border-color 0.2s, background 0.2s;
}

.bm-item:hover {
    border-color: #3d2358;
    background: rgba(125, 68, 179, 0.05);
}

.bm-info {
    flex: 1;
    min-width: 0;
}

.bm-title {
    color: #dfc5fe;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    text-shadow: none;
}

.bm-desc {
    font-size: 11px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 8px;
}

.bm-desc b {
    color: var(--hack-cyan);
    font-weight: 600;
}

.bm-current {
    font-size: 10px;
    color: var(--hack-cyan);
    font-family: 'JetBrains Mono', monospace;
}

.bm-current span {
    color: #fff;
    font-weight: 600;
}

.bm-action {
    text-align: right;
    min-width: 130px;
    flex-shrink: 0;
}

.bm-cost {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--hack-gold);
    margin-bottom: 8px;
    font-weight: 600;
}

.bm-item .btn-hack {
    border-color: var(--hack-gold);
    color: var(--hack-gold);
    font-size: 10px;
    padding: 8px 14px;
    width: 100%;
}

.bm-item .btn-hack:hover {
    background: var(--hack-gold);
    color: #000;
}

.relevance-bar-bg {
    width: 100%;
    height: 6px;
    background: #222;
    margin-bottom: 5px;
}

.relevance-bar-fill {
    height: 100%;
    background: var(--hack-green);
    transition: width 1s linear;
    box-shadow: 0 0 5px var(--hack-green);
}

.status-patched {
    color: red;
    font-weight: bold;
    animation: pulseRed 2s infinite;
}

/* =========================================
   OS TOP BAR (ГЛОБАЛЬНАЯ ПАНЕЛЬ СТАТУСА)
========================================= */
.os-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--hack-cyan);
    z-index: 100000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.os-stat-group {
    display: flex;
    gap: 20px;
}

.os-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.os-stat-val {
    color: var(--hack-green);
    font-weight: bold;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
}

.os-stat-val.gx {
    color: var(--hack-gold);
}

.os-stat-val.xp {
    color: var(--hack-pink);
}


/* Фиксированная шапка для магазина */
.shop-fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Чтобы шапка была поверх всех товаров */
    background: rgba(5, 5, 5, 0.95);
    /* Полупрозрачный фон, чтобы текст не сливался */
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--hack-cyan);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* ОЧЕНЬ ВАЖНО: Отступ для всего остального контента */
.shop-body-content {
    padding-top: 80px;
    /* Подгони это значение под высоту твоей шапки */
}

/* Класс для окон, размер которых можно менять */
.window-resizable {
    resize: both;
    /* Разрешает растягивать окно за правый нижний угол */
    overflow: hidden;
    /* Обязательное условие для работы resize */
    min-width: 350px;
    /* Окно нельзя сжать слишком сильно */
    min-height: 250px;
}

/* Чтобы внутренности окна тянулись вслед за рамкой */
.window-resizable .w-content {
    flex: 1;
    overflow-y: auto;
}

/* =========================================
   GOV MAP HUD & TACTICAL ELEMENTS
========================================= */
.map-hud-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 20, 30, 0.95), transparent);
    border-top: 1px solid rgba(0, 255, 170, 0.3);
    padding: 10px;
    display: flex;
    gap: 15px;
    z-index: 50;
    box-sizing: border-box;
    overflow-x: auto;
    pointer-events: auto;
    min-height: 80px;
}

.map-hud-item {
    background: rgba(10, 30, 40, 0.8);
    border: 1px solid #00ffaa;
    min-width: 180px;
    padding: 8px;
    font-family: 'Orbitron';
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    clip-path: polygon(0 0, 90% 0, 100% 20%, 100% 100%, 10% 100%, 0 80%);
}

.map-hud-item:hover {
    background: rgba(0, 255, 170, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.3);
}

.map-hud-title {
    font-size: 10px;
    color: #00ffaa;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: bold;
    padding-right: 40px;
    /* Защита от наезжания таймера */
}

.map-hud-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 9px;
    color: #fff;
}

.map-hud-stat-line {
    display: flex;
    justify-content: space-between;
    opacity: 0.8;
}

.map-hud-stat-val {
    color: #00aaff;
    font-family: 'JetBrains Mono';
}

.map-hud-timer {
    position: absolute;
    top: 8px;
    right: 15px;
    font-size: 11px;
    color: #ffaa00;
}

.map-hud-empty {
    width: 100%;
    text-align: center;
    color: rgba(0, 255, 170, 0.3);
    font-family: 'Orbitron';
    font-size: 12px;
    padding-top: 20px;
    letter-spacing: 2px;
}

/* DATA STREAM ANIMATION */
@keyframes dataStream {
    0% {
        transform: translateY(-100%);
    }

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

.data-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.1;
    z-index: 0;
}

.data-stream::after {
    content: "01011010101101010110101101010101101010110101011010110101";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    color: var(--hack-green);
    font-size: 10px;
    animation: dataStream 10s linear infinite;
    word-break: break-all;
}

.glow-text {
    text-shadow: 0 0 10px currentColor;
}

.panel-sub {
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    transition: 0.3s;
}

.panel-sub:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--hack-cyan);
}

/* --- USER WEB CONTAINERS --- */
.web-container {
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.web-container-header {
    background: rgba(0, 255, 255, 0.05);
    border-bottom: 1px solid #333;
    padding: 8px 15px;
    font-family: 'Orbitron';
    font-size: 12px;
    color: var(--hack-cyan);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.web-container-body {
    padding: 15px;
}

.web-container.pink {
    border-left: 3px solid var(--hack-pink);
}

.web-container.gold {
    border-left: 3px solid var(--hack-gold);
}

.web-container.cyan {
    border-left: 3px solid var(--hack-cyan);
}

.web-container.green {
    border-left: 3px solid var(--hack-green);
}

/* --- DDOS DEFENSE & TERMINAL EFFECTS --- */
@keyframes cursor-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cursor-blink {
    animation: cursor-blink 0.8s infinite;
}

.typer-console {
    background: rgba(0, 10, 20, 0.95);
    border: 1px solid var(--hack-cyan);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--hack-green);
    padding: 15px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.compilation-box {
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid var(--hack-cyan);
    padding: 10px;
    margin-bottom: 15px;
    font-family: 'JetBrains Mono';
    font-size: 10px;
}

.comp-bar-container {
    height: 6px;
    background: #111;
    border: 1px solid #333;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
}

.comp-bar-fill {
    height: 100%;
    background: var(--hack-cyan);
    width: 0%;
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--hack-cyan);
}

.typer-line {
    white-space: pre;
    line-height: 1.2;
    margin-bottom: 2px;
    text-shadow: 0 0 5px var(--hack-green);
}

.typer-progress-bar {
    height: 4px;
    background: #111;
    border: 1px solid #333;
    width: 100%;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.typer-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hack-cyan), var(--hack-green));
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--hack-cyan);
}

/* --- DRAMATIC INTRO AND SWAT RAID --- */
.intro-container {
    width: 100%;
    max-width: 600px;
    background: #000;
    border: 1px solid #222;
    padding: 30px;
    box-sizing: border-box;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.9);
}

.intro-container.intro-register-mode {
    max-width: min(1120px, calc(100vw - 24px));
    max-height: calc(100vh - 32px);
    margin: 0 auto;
    align-self: center;
    padding: 12px;
    border: none;
    background: transparent;
    box-shadow: none;
}

.intro-terminal {
    width: 100%;
    min-height: 250px;
    max-height: 350px;
    background: #030303;
    border: 1px solid #111;
    padding: 15px;
    box-sizing: border-box;
    overflow-y: auto;
    font-size: 13px;
    color: var(--hack-green);
    line-height: 1.6;
    margin-bottom: 20px;
}

.intro-log-line {
    margin-bottom: 5px;
    white-space: pre-wrap;
}

.intro-log-line.info { color: var(--hack-green); }
.intro-log-line.warn { color: var(--hack-gold); }
.intro-log-line.crit { color: var(--hack-pink); text-shadow: 0 0 5px var(--hack-pink); }
.intro-log-line.system { color: var(--hack-cyan); }

/* --- INTRO BOOT: 5 TERMINALS (SCATTERED) --- */

.intro-container.intro-boot-mode {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    z-index: 5010;
    pointer-events: none;
}

#login-screen.login-boot-active {
    overflow: hidden;
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}

.intro-stage {
    position: relative;
    width: 100%;
    height: 100%;
    animation: introStageIn 0.5s ease;
    pointer-events: none;
}

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

.intro-stage-top {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 8px 20px;
    border: 1px solid rgba(0, 240, 255, 0.22);
    background: rgba(0, 0, 0, 0.72);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.12);
    pointer-events: auto;
}

.intro-stage-kicker {
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(0, 240, 255, 0.65);
    text-transform: uppercase;
}

.intro-stage-counter {
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255, 0, 85, 0.85);
    font-weight: 700;
}

.intro-global-progress {
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 22;
    width: min(560px, calc(100vw - 40px));
    padding: 10px 16px 12px;
    border: 1px solid rgba(0, 240, 255, 0.28);
    background: rgba(0, 0, 0, 0.78);
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.1);
    pointer-events: none;
    box-sizing: border-box;
}

.intro-global-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.intro-global-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 240, 255, 0.75);
}

.intro-global-pct {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--hack-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
}

.intro-global-track {
    position: relative;
    height: 12px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    background: rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.intro-global-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.85), rgba(0, 255, 136, 0.85));
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
    transition: width 0.35s ease;
}

.intro-global-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: introLoadScan 1.8s linear infinite;
    pointer-events: none;
}

.intro-term-grid {
    position: absolute;
    inset: 0;
}

.intro-term-window {
    position: absolute;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 240, 255, 0.28);
    background: rgba(2, 4, 8, 0.96);
    box-shadow:
        0 0 40px rgba(0, 240, 255, 0.08),
        inset 0 0 30px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    pointer-events: auto;
}

.intro-term-window-in {
    animation: introTermPop 0.45s ease both;
}

@keyframes introTermPop {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.intro-term-window.is-complete {
    border-color: rgba(0, 255, 136, 0.35);
    box-shadow: 0 0 22px rgba(0, 255, 136, 0.1);
}

.intro-term-window.is-background {
    opacity: 0.35;
    filter: saturate(0.65) brightness(0.75);
    transition: opacity 0.55s ease, filter 0.55s ease;
}

.intro-term-window-center {
    z-index: 30;
    transform: translate(-50%, -50%);
}

.intro-term-window.is-deferred {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.94);
}

.intro-term-window-center.is-revealed {
    visibility: visible;
    pointer-events: auto;
    animation: introPacketReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes introPacketReveal {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
        box-shadow: 0 0 0 rgba(255, 200, 64, 0);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 0 60px rgba(255, 200, 64, 0.22),
            inset 0 0 30px rgba(0, 0, 0, 0.75);
    }
}

.intro-packet-backdrop {
    position: absolute;
    inset: 0;
    z-index: 25;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.6s ease;
}

.intro-packet-backdrop.is-active {
    background: rgba(0, 0, 0, 0.62);
    pointer-events: auto;
}

.intro-term-window[data-theme="green"] { border-color: rgba(0, 255, 136, 0.35); }
.intro-term-window[data-theme="cyan"] { border-color: rgba(0, 240, 255, 0.35); }
.intro-term-window[data-theme="red"] { border-color: rgba(255, 0, 85, 0.45); box-shadow: 0 0 36px rgba(255, 0, 85, 0.12); }
.intro-term-window[data-theme="gold"] { border-color: rgba(255, 200, 64, 0.4); }

.intro-term-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    min-height: 38px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent);
    flex-shrink: 0;
    box-sizing: border-box;
}

.intro-term-dots {
    display: inline-flex;
    gap: 5px;
}

.intro-term-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: block;
}

.intro-term-dots i:nth-child(1) { background: #ff5f57; }
.intro-term-dots i:nth-child(2) { background: #febc2e; }
.intro-term-dots i:nth-child(3) { background: #28c840; }

.intro-term-title {
    flex: 1;
    font-size: 11px;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.intro-term-status {
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 3px 8px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: var(--hack-cyan);
    background: rgba(0, 240, 255, 0.08);
    flex-shrink: 0;
}

.intro-term-status[data-theme="green"] { color: #00ff88; border-color: rgba(0, 255, 136, 0.4); background: rgba(0, 255, 136, 0.08); }
.intro-term-status[data-theme="red"] { color: var(--hack-pink); border-color: rgba(255, 0, 85, 0.45); background: rgba(255, 0, 85, 0.1); }
.intro-term-status[data-theme="gold"] { color: #ffc840; border-color: rgba(255, 200, 64, 0.45); background: rgba(255, 200, 64, 0.08); }

.intro-term-body {
    flex: none;
    overflow: hidden;
    padding: 10px 14px;
    box-sizing: border-box;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    line-height: 1.45;
}

.intro-term-window-corner {
    max-width: calc(50vw - 24px);
}

.intro-term-body-green { color: #00ff88; }
.intro-term-body-cyan { color: var(--hack-cyan); }
.intro-term-body-red { color: #ff6688; }
.intro-term-body-gold { color: #ffd278; }

.intro-code-line,
.intro-code-slot {
    height: 22px;
    min-height: 22px;
    max-height: 22px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.intro-code-prefix {
    opacity: 0.55;
}

.intro-code-ok { color: inherit; }
.intro-code-run { color: rgba(255, 255, 255, 0.72); }
.intro-code-warn { color: var(--hack-gold); }
.intro-code-crit {
    color: var(--hack-pink);
    text-shadow: 0 0 8px rgba(255, 0, 85, 0.45);
}

.intro-term-packets {
    padding-top: 4px;
}

.intro-packet-rows {
    display: flex;
    flex-direction: column;
}

.intro-packet-head,
.intro-packet-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 0.8fr 0.9fr;
    gap: 8px;
    align-items: center;
    font-size: 10px;
    height: 28px;
    min-height: 28px;
    box-sizing: border-box;
}

.intro-packet-head {
    height: 34px;
    min-height: 34px;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid rgba(255, 200, 64, 0.25);
    color: rgba(255, 200, 64, 0.65);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.intro-packet-row {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.intro-packet-slot {
    opacity: 0;
}

.intro-packet-slot.is-visible {
    opacity: 1;
    animation: introPacketIn 0.35s ease;
}

@keyframes introPacketIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.intro-packet-row.is-intercepted {
    background: rgba(255, 0, 85, 0.08);
}

.intro-packet-status {
    font-weight: 700;
    letter-spacing: 1px;
}

.intro-packet-row.is-intercepted .intro-packet-status {
    color: var(--hack-pink);
    text-shadow: 0 0 8px rgba(255, 0, 85, 0.45);
}

.intro-term-footer {
    padding: 6px 10px 8px;
    border-top: 1px solid rgba(255, 200, 64, 0.2);
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.intro-packet-hint {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 200, 64, 0.75);
    letter-spacing: 1px;
    text-align: center;
}

.intro-packet-ok {
    border: 1px solid rgba(255, 200, 64, 0.45);
    background: rgba(255, 200, 64, 0.08);
    color: #ffd278;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    padding: 8px 18px;
    cursor: not-allowed;
    opacity: 0.45;
    transition: opacity 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.intro-packet-ok.is-ready {
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 0 18px rgba(255, 200, 64, 0.25);
}

.intro-packet-ok.is-ready:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 26px rgba(255, 200, 64, 0.4);
}

.intro-packet-ok.is-confirmed {
    border-color: rgba(0, 255, 136, 0.55);
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
}

.intro-term-loader {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.intro-load-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.intro-load-label {
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.82);
}

.intro-load-pct {
    font-size: 22px;
    font-weight: 700;
    color: var(--hack-cyan);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
}

.intro-load-track {
    position: relative;
    height: 16px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    background: rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.intro-load-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.85), rgba(0, 255, 136, 0.85));
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.45);
    transition: width 0.35s ease;
}

.intro-load-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    animation: introLoadScan 1.8s linear infinite;
    pointer-events: none;
}

@keyframes introLoadScan {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.intro-load-log {
    overflow: hidden;
    font-size: 10px;
    color: rgba(0, 240, 255, 0.75);
    margin-top: 8px;
}

.intro-load-entry {
    padding: 2px 0;
}

.intro-stage-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.65);
    pointer-events: auto;
    z-index: 20;
}

.intro-stage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.intro-stage-dot.is-active:not(.is-done) {
    background: var(--hack-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.55);
    transform: scale(1.1);
}

.intro-stage-dot.is-done {
    background: #00ff88;
    border-color: rgba(0, 255, 136, 0.55);
}

.intro-term-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(42vw, 620px);
    height: min(38vh, 360px);
    border: 1px dashed rgba(255, 200, 64, 0.08);
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 980px) {
    .intro-term-window-corner:not(.intro-term-window-center) {
        width: min(46vw, 480px) !important;
    }

    .intro-term-window-center,
    .intro-term-window-center.is-revealed {
        transform: translate(-50%, -50%);
        animation-name: introPacketReveal;
    }

    .intro-term-window[data-index="1"],
    .intro-term-window[data-index="4"] {
        transform-origin: top right;
    }

    .intro-term-window[data-index="4"] {
        transform-origin: bottom right;
    }
}

@media (max-width: 620px) {
    .intro-stage-top {
        flex-direction: column;
        gap: 4px;
        width: calc(100% - 24px);
    }

    .intro-term-window:not(.intro-term-window-center) {
        transform: scale(0.82);
    }

    .intro-term-window-center.is-revealed {
        width: min(88vw, 580px) !important;
    }

    .intro-packet-head,
    .intro-packet-row {
        grid-template-columns: 1fr 1fr;
        height: auto;
        min-height: 24px;
    }
}

.intro-alert {
    border: 2px solid var(--hack-pink);
    background: rgba(15, 0, 5, 0.95);
    padding: 25px;
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.2);
    text-align: center;
    animation: borderPulse 2s infinite;
}

@keyframes borderPulse {
    0%, 100% { border-color: var(--hack-pink); box-shadow: 0 0 20px rgba(255, 0, 85, 0.2); }
    50% { border-color: red; box-shadow: 0 0 40px rgba(255, 0, 0, 0.4); }
}

.alert-title {
    color: var(--hack-pink);
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    margin-top: 0;
    letter-spacing: 3px;
    font-size: 24px;
}

.alert-text {
    font-size: 14px;
    color: #eee;
    line-height: 1.6;
    margin: 15px 0;
}

.highlight-red {
    color: var(--hack-pink);
    font-weight: bold;
    text-shadow: 0 0 10px var(--hack-pink);
}

.intro-timer-box {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    color: red;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    margin: 15px 0 25px 0;
    letter-spacing: 2px;
}

.intro-form {
    margin-top: 20px;
    animation: fadeIn 0.5s forwards;
}

/* --- INTRO HACK TERMINAL (centered, post-registration) --- */
.intro-hack-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 32px);
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    box-sizing: border-box;
}

.intro-hack-overlay[hidden] {
    display: none !important;
}

.intro-hack-terminal {
    display: flex;
    flex-direction: column;
    width: min(920px, calc(100vw - 32px));
    height: min(580px, calc(100vh - 48px));
    max-height: calc(100vh - 48px);
    border: 1px solid #3e3e42;
    background: #1e1e1e;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    font-family: 'Segoe UI', system-ui, sans-serif;
    animation: introHackTerminalIn 0.35s ease both;
}

@keyframes introHackTerminalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.intro-hack-terminal__titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 0 14px;
    background: #2d2d30;
    border-bottom: 1px solid #3e3e42;
    flex-shrink: 0;
}

.intro-hack-terminal__dots {
    display: inline-flex;
    gap: 6px;
    flex-shrink: 0;
}

.intro-hack-terminal__dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.intro-hack-terminal__dots i:nth-child(1) { background: #ff5f57; }
.intro-hack-terminal__dots i:nth-child(2) { background: #febc2e; }
.intro-hack-terminal__dots i:nth-child(3) { background: #28c840; }

.intro-hack-terminal__title {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: #e8e8e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.intro-hack-terminal__timer {
    flex-shrink: 0;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #f48771;
    letter-spacing: 0.04em;
}

.intro-hack-terminal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 8px 14px;
    background: #252526;
    border-bottom: 1px solid #3e3e42;
    font-size: 11px;
    color: #858585;
    flex-shrink: 0;
}

.intro-hack-terminal__meta b {
    color: #cccccc;
    font-weight: 600;
}

.intro-typer-display {
    flex: 1;
    min-height: 280px;
    margin: 0;
    padding: 14px 16px;
    background: #1e1e1e;
    border: none;
    border-bottom: 1px solid #3e3e42;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.55;
    color: #6a9955;
    overflow-y: auto;
    overflow-x: auto;
    text-align: left;
    white-space: pre;
    font-family: Consolas, 'JetBrains Mono', 'Courier New', monospace;
    outline: none;
}

.intro-typer-display .typed {
    color: #9cdcfe;
    text-shadow: none;
}

.intro-typer-display .code-todo {
    color: #4a4a4a;
}

.intro-hack-terminal__statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    background: #252526;
    border-top: 1px solid #3e3e42;
    font-size: 11px;
    color: #858585;
    flex-shrink: 0;
}

.intro-hack-terminal__hint {
    flex: 1;
}

.intro-hack-terminal__pct {
    font-family: Consolas, 'Courier New', monospace;
    color: #cccccc;
    font-weight: 600;
}

.intro-hack-terminal__progress {
    height: 3px;
    background: #1a1a1a;
    flex-shrink: 0;
}

.intro-hack-terminal__progress-fill {
    height: 100%;
    width: 0%;
    background: #007acc;
    transition: width 0.12s linear;
}

.intro-hack-terminal--success .intro-hack-terminal__titlebar {
    border-bottom-color: rgba(78, 201, 78, 0.35);
}

.intro-hack-terminal__success {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 24px;
    text-align: center;
    background: #1e1e1e;
}

.intro-hack-terminal__success-title {
    font-size: 18px;
    font-weight: 700;
    color: #4ec94e;
    letter-spacing: 0.04em;
}

.intro-hack-terminal__success-sub {
    font-size: 13px;
    color: #858585;
    line-height: 1.55;
    max-width: 420px;
}

.intro-hack-terminal__success-sub em {
    color: #9cdcfe;
    font-style: normal;
    font-weight: 600;
}

.intro-hack-cursor {
    color: #cccccc;
    font-weight: 700;
    animation: blink 1s step-end infinite;
}

@media (max-width: 640px) {
    .intro-hack-terminal {
        height: min(520px, calc(100vh - 24px));
    }

    .intro-hack-terminal__meta {
        flex-direction: column;
        gap: 4px;
    }

    .intro-typer-display {
        font-size: 11px;
        min-height: 220px;
    }
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: #111;
    border: 1px solid #333;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hack-pink), var(--hack-cyan));
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--hack-cyan);
}

.intro-failure-screen {
    position: fixed;
    inset: 0;
    background: rgba(40, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: flashRed 1s infinite alternate;
}

@keyframes flashRed {
    0% { background: rgba(30, 0, 0, 0.95); }
    100% { background: rgba(70, 0, 0, 0.98); }
}

.failure-box {
    border: 3px solid red;
    padding: 40px;
    background: #000;
    color: #fff;
    text-align: center;
    box-shadow: 0 0 50px red;
    font-family: 'Orbitron', monospace;
    max-width: 500px;
}

.shatter-text {
    color: red;
    font-size: 32px;
    margin-top: 0;
    letter-spacing: 5px;
    text-shadow: 0 0 20px red;
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2px, -1px); }
    30% { transform: translate(1px, 2px); }
    50% { transform: translate(-1px, 1px); }
    70% { transform: translate(2px, 1px); }
    90% { transform: translate(-2px, -2px); }
}

.animate-pulse-red {
    animation: pulseRedTitle 1.5s infinite;
}

@keyframes pulseRedTitle {
    0%, 100% { transform: scale(1); text-shadow: 0 0 10px var(--hack-pink); }
    50% { transform: scale(1.05); text-shadow: 0 0 25px red; }
}

/* --- ВЕКТОРЫ АТАКИ И ЗАЩИТЫ --- */
.btn-exploit {
    background: rgba(255, 0, 85, 0.03);
    border: 1px solid rgba(255, 0, 85, 0.4);
    color: #ff3366;
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-align: left;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.btn-exploit:hover {
    background: rgba(255, 0, 85, 0.15);
    border-color: #ff0055;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
}

.btn-defense {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #eee;
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-align: left;
    transition: all 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.btn-defense:hover {
    background: rgba(0, 255, 65, 0.08);
    border-color: var(--hack-green);
    color: var(--hack-green);
    box-shadow: var(--glow-green);
}

/* --- ВИРУСЫ ВЗЛОМА (GLITCH & LAG) --- */
.glitch-virus-active {
    animation: virusShake 0.4s infinite alternate;
    filter: hue-rotate(280deg) contrast(140%) saturate(180%) !important;
}

@keyframes virusShake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-0.5deg); }
    20% { transform: translate(-2px, 0px) rotate(0.5deg); }
    30% { transform: translate(0px, 1px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(0.5deg); }
    50% { transform: translate(-1px, 1px) rotate(-0.5deg); }
    60% { transform: translate(-2px, 1px) rotate(0deg); }
    70% { transform: translate(1px, 1px) rotate(-0.5deg); }
    80% { transform: translate(-1px, -1px) rotate(0.5deg); }
    90% { transform: translate(2px, 1px) rotate(0deg); }
    100% { transform: translate(1px, -1px) rotate(-0.5deg); }
}

.lag-virus-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99999;
    border: 3px solid rgba(255, 153, 0, 0.4);
    box-shadow: inset 0 0 50px rgba(255, 153, 0, 0.2);
    animation: pulseOrangeGlow 2s infinite alternate;
}

@keyframes pulseOrangeGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

@keyframes argusRowPulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 0, 85, 0.4);
        border-color: rgba(255, 0, 85, 0.6);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 0, 85, 0.8);
        border-color: rgba(255, 0, 85, 1);
        background: rgba(255, 0, 85, 0.25);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 0, 85, 0.4);
        border-color: rgba(255, 0, 85, 0.6);
    }
}

@keyframes scannerScan {
    0% { transform: translateY(0); }
    100% { transform: translateY(150px); }
}

/* --- DARKNOT BROWSER REDESIGN --- */
#win-browser {
    border-color: #7d44b3 !important; /* Tor Purple Accent */
    box-shadow: 0 20px 50px rgba(125, 68, 179, 0.25) !important;
}

#win-browser .w-header {
    background: linear-gradient(90deg, #1e0a2d, #0c0612) !important;
    border-bottom: 1px solid #7d44b3 !important;
    color: #dfc5fe !important;
}

.browser-nav {
    background: #0d0615 !important;
    border-bottom: 1px solid #2d183f !important;
    padding: 8px 12px !important;
    align-items: center !important;
    display: flex !important;
    gap: 8px !important;
}

.url-bar-container {
    display: flex;
    flex: 1;
    align-items: center;
    background: #000;
    border: 1px solid #482c66;
    border-radius: 4px;
    padding: 2px 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.url-bar-container:focus-within {
    border-color: #8c52d0;
    box-shadow: 0 0 8px rgba(140, 82, 208, 0.4);
}

.url-icon {
    margin-right: 6px;
    font-size: 13px;
    cursor: pointer;
}

.url-bar {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    padding: 4px 0 !important;
    font-size: 12px;
    color: #dfc5fe !important;
    flex: 1;
}

.btn-browser-nav {
    background: transparent;
    border: 1px solid #482c66;
    color: #dfc5fe;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Orbitron', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-browser-nav:hover {
    background: #391c53;
    border-color: #8c52d0;
    color: #fff;
    box-shadow: 0 0 5px rgba(140, 82, 208, 0.3);
}

/* Tor-like circuit dropdown */
.circuit-panel {
    position: absolute;
    top: 75px;
    left: 15px;
    width: 310px;
    background: rgba(12, 6, 18, 0.96);
    border: 1px solid #7d44b3;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(125, 68, 179, 0.3);
    border-radius: 4px;
    padding: 15px;
    z-index: 1000;
    display: none;
    font-family: 'JetBrains Mono', monospace;
    color: #ccc;
    font-size: 11px;
    animation: fadeIn 0.2s forwards;
}

.circuit-title {
    color: #c09bf8;
    font-weight: bold;
    font-size: 12px;
    border-bottom: 1px solid #3d2358;
    padding-bottom: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.circuit-node-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
}

.circuit-node-list::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, #7d44b3, #7d44b3 4px, transparent 4px, transparent 8px);
}

.circuit-node {
    position: relative;
    text-align: left;
}

.circuit-node::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff41;
    box-shadow: 0 0 5px #00ff41;
}

.circuit-node.inactive::before {
    background: #555;
    box-shadow: none;
}

.circuit-node-type {
    color: #888;
    font-size: 9px;
    text-transform: uppercase;
}

.circuit-node-ip {
    color: #fff;
    font-weight: bold;
}

.circuit-node-country {
    color: #dfc5fe;
}

/* Security level badge/button styling */
.security-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}
.security-standard { background: rgba(0, 255, 65, 0.15); color: #00ff41; border: 1px solid #00ff41; }
.security-safer { background: rgba(255, 215, 0, 0.15); color: #ffd700; border: 1px solid #ffd700; }
.security-safest { background: rgba(255, 0, 85, 0.15); color: #ff0055; border: 1px solid #ff0055; }

/* Custom elements for darknet onion pages */
.darksearch-logo {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 34px;
    letter-spacing: 5px;
    margin-bottom: 15px;
    color: #c09bf8;
    text-shadow: 0 0 15px rgba(125, 68, 179, 0.6);
}

.darksearch-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto 30px auto;
    border: 1px solid #482c66;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.darksearch-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 15px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
}

.darksearch-btn {
    background: #482c66;
    border: none;
    color: #fff;
    padding: 0 20px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    transition: 0.2s;
}

.darksearch-btn:hover {
    background: #7d44b3;
    box-shadow: 0 0 10px rgba(125, 68, 179, 0.5);
}

/* Redesign elements for deep web sites */
.hidden-wiki-container {
    background: #0a0512;
    border: 1px solid #3d2358;
    padding: 20px;
    border-radius: 4px;
    color: #ddd;
    text-align: left;
}

.hidden-wiki-header {
    border-bottom: 2px solid #7d44b3;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hidden-wiki-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hidden-wiki-section {
    border: 1px solid #2d183f;
    background: rgba(0,0,0,0.4);
    border-radius: 4px;
    padding: 15px;
}

.hidden-wiki-section h3 {
    color: #c09bf8;
    margin-top: 0;
    border-bottom: 1px solid #2d183f;
    padding-bottom: 5px;
    font-size: 14px;
    font-family: 'Orbitron', sans-serif;
}

.hidden-wiki-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hidden-wiki-link {
    cursor: pointer;
    font-size: 12px;
}

.hidden-wiki-link b {
    color: #00ff41;
    text-decoration: underline;
}

.hidden-wiki-link:hover b {
    color: #fff;
    text-shadow: 0 0 5px #00ff41;
}

.hidden-wiki-link span {
    color: #aaa;
    display: block;
    font-size: 11px;
    margin-top: 2px;
}

/* Casino Slot Machine styles */
.slot-machine {
    background: linear-gradient(180deg, #150b24 0%, #080310 100%);
    border: 3px solid #7d44b3;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 25px rgba(125, 68, 179, 0.4), inset 0 0 15px rgba(0,0,0,0.8);
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}

.slot-reels {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.slot-reel {
    width: 80px;
    height: 100px;
    background: #000;
    border: 2px solid #482c66;
    border-radius: 4px;
    font-size: 50px;
    line-height: 100px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.9);
    overflow: hidden;
}

.slot-reel.spinning {
    animation: reelSpin 0.1s infinite linear;
}

@keyframes reelSpin {
    0% { transform: translateY(-10px); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(-10px); }
}

/* ABM Decryption Mini-game */
.abm-panel {
    background: #050a05;
    border: 1px solid #00ff41;
    color: #00ff41;
    font-family: 'JetBrains Mono', monospace;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.15);
    text-align: left;
}

.hack-grid-item {
    width: 45px;
    height: 45px;
    border: 1px solid #113311;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    transition: 0.1s;
    background: #000;
    user-select: none;
}

.hack-grid-item:hover {
    background: #113311;
    color: #fff;
    box-shadow: 0 0 8px #00ff41;
}

.hack-grid-item.active {
    background: #00ff41;
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 10px #00ff41;
}

/* --- DARKNOT ADVANCED ONION ROUTING & UI IMPROVEMENTS --- */
.onion-loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 5, 18, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    font-family: 'JetBrains Mono', monospace;
    color: #dfc5fe;
}

.onion-loader-box {
    text-align: center;
    width: 80%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #7d44b3;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(125, 68, 179, 0.25);
}

.onion-spinner {
    font-size: 60px;
    margin-bottom: 20px;
    display: inline-block;
    animation: onionRotatePulse 2s infinite ease-in-out;
}

@keyframes onionRotatePulse {
    0% { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 5px #7d44b3); }
    50% { transform: rotate(180deg) scale(1.15); filter: drop-shadow(0 0 20px #c09bf8); }
    100% { transform: rotate(360deg) scale(1); filter: drop-shadow(0 0 5px #7d44b3); }
}

.onion-loader-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 3px;
    color: #c09bf8;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(192, 155, 248, 0.4);
}

.onion-loader-steps {
    text-align: left;
    font-size: 11px;
    background: #000;
    border: 1px solid #2d183f;
    padding: 15px;
    border-radius: 4px;
    height: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.onion-loader-step-line {
    opacity: 0;
    transform: translateY(5px);
    animation: loaderStepFadeIn 0.3s forwards;
    color: #00ff41;
}

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

/* Circuit Dropdown Redesign */
.circuit-panel {
    width: 320px !important;
    padding: 18px !important;
    border-radius: 6px !important;
}

.circuit-node {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-left: 0 !important;
}

.circuit-node::before {
    display: none !important; /* Hide old dots */
}

.circuit-node-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
    flex-shrink: 0;
    box-shadow: 0 0 3px #555;
}

.circuit-node-status-dot.glowing {
    background: #00ff41;
    box-shadow: 0 0 8px #00ff41;
    animation: nodePulseGreen 1.5s infinite;
}

.circuit-node-status-dot.secured {
    background: #ffd700;
    box-shadow: 0 0 8px #ffd700;
    animation: nodePulseGold 1.5s infinite;
}

@keyframes nodePulseGreen {
    0%, 100% { transform: scale(1); box-shadow: 0 0 5px #00ff41; }
    50% { transform: scale(1.2); box-shadow: 0 0 12px #00ff41; }
}

@keyframes nodePulseGold {
    0%, 100% { transform: scale(1); box-shadow: 0 0 5px #ffd700; }
    50% { transform: scale(1.2); box-shadow: 0 0 12px #ffd700; }
}

.circuit-node-info {
    text-align: left;
}

.circuit-ping {
    font-size: 9px;
    background: rgba(0, 255, 65, 0.15);
    color: #00ff41;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: 5px;
    font-family: monospace;
}

.circuit-connector-line {
    width: 2px;
    height: 15px;
    background: repeating-linear-gradient(to bottom, #7d44b3, #7d44b3 3px, transparent 3px, transparent 6px);
    margin-left: 4px;
    position: relative;
}

.circuit-connector-line::after {
    content: '▼';
    position: absolute;
    bottom: -6px;
    left: -4px;
    font-size: 8px;
    color: #7d44b3;
}

/* Forum Boards Layout */
.forum-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 15px;
    height: 100%;
    color: #ccc;
    font-family: 'JetBrains Mono', monospace;
}

.forum-sidebar {
    background: #090510;
    border: 1px solid #3d2358;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.forum-thread-tab {
    padding: 8px 10px;
    border: 1px solid #2d183f;
    border-radius: 3px;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 11px;
    text-align: left;
    transition: 0.2s;
    color: #aaa;
}

.forum-thread-tab:hover {
    border-color: #7d44b3;
    color: #fff;
    background: rgba(125, 68, 179, 0.1);
}

.forum-thread-tab.active {
    border-color: #c09bf8;
    color: #dfc5fe;
    background: rgba(125, 68, 179, 0.2);
    box-shadow: inset 0 0 5px rgba(125, 68, 179, 0.3);
}

.forum-content {
    background: #050208;
    border: 1px solid #2d183f;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.forum-post {
    border: 1px solid #1c0d2a;
    background: rgba(15, 8, 22, 0.4);
    padding: 12px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.forum-post-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #777;
    border-bottom: 1px dashed #222;
    padding-bottom: 4px;
}

.forum-post-body {
    font-size: 12px;
    line-height: 1.4;
    color: #ddd;
    text-align: left;
}

.forum-post-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2d183f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #dfc5fe;
}

/* Mixer Laundromat layout */
.mixer-container {
    padding: 15px;
    font-family: 'JetBrains Mono', monospace;
    color: #dfc5fe;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.mixer-panel {
    background: rgba(12, 6, 18, 0.85);
    border: 2px solid #7d44b3;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(125, 68, 179, 0.2);
    margin-bottom: 20px;
}

.mixer-console-screen {
    background: #000;
    border: 1px solid #2d183f;
    border-radius: 4px;
    height: 120px;
    padding: 12px;
    overflow-y: auto;
    font-size: 11px;
    color: #00ff41;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 15px 0;
}

.mixer-input-box {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.mixer-quick-btn {
    flex: 1;
    background: transparent;
    border: 1px solid #482c66;
    color: #dfc5fe;
    padding: 8px;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.mixer-quick-btn:hover {
    background: #391c53;
    border-color: #8c52d0;
    color: #fff;
}

/* --- DARKNOT CUSTOM SCROLLBARS --- */
#win-browser ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#win-browser ::-webkit-scrollbar-track {
    background: #090510;
    border-left: 1px solid #2d183f;
    border-top: 1px solid #2d183f;
}

#win-browser ::-webkit-scrollbar-thumb {
    background: #7d44b3;
    border-radius: 4px;
    border: 2px solid #090510;
}

#win-browser ::-webkit-scrollbar-thumb:hover {
    background: #c09bf8;
}

#win-browser .browser-body,
#win-browser .onion-loader-steps,
#win-browser .forum-sidebar,
#win-browser .forum-content,
#win-browser .mixer-console-screen {
    scrollbar-width: thin;
    scrollbar-color: #7d44b3 #090510;
}

/* Darknot — onion v3 page chrome & directory */
.onion-page {
    animation: fadeIn 0.35s ease;
    text-align: left;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #d8dce6;
    min-height: 100%;
}

.onion-page-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #14121a 0%, #0c0a10 100%);
    border: 1px solid #2a2438;
    border-radius: 6px 6px 0 0;
    font-size: 12px;
}

.onion-page-lock {
    font-size: 14px;
    filter: grayscale(0.2);
}

.onion-page-meta {
    flex: 1;
    min-width: 0;
}

.onion-page-title {
    font-weight: 600;
    color: #f0eef5;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.onion-page-url {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 10px;
    color: #8b949e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.onion-page-badges {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.onion-badge {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 7px;
    border-radius: 4px;
    background: #1a1525;
    border: 1px solid #3d3250;
    color: #b794f6;
}

.onion-badge-ok {
    color: #3ddc84;
    border-color: rgba(61, 220, 132, 0.35);
    background: rgba(61, 220, 132, 0.08);
}

.onion-page-tagline {
    padding: 8px 14px;
    font-size: 11px;
    color: #8b949e;
    background: #0a0810;
    border-left: 1px solid #2a2438;
    border-right: 1px solid #2a2438;
    border-bottom: 1px solid #1e1a28;
}

.onion-page-body {
    padding: 16px 14px;
    background: #0d0b12;
    border-left: 1px solid #2a2438;
    border-right: 1px solid #2a2438;
    line-height: 1.55;
}

.onion-page-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #08070c;
    border: 1px solid #2a2438;
    border-radius: 0 0 6px 6px;
    font-size: 10px;
}

.onion-foot-muted {
    color: #5c6370;
}

.onion-foot-link {
    color: #9d7bd8;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.onion-foot-link:hover {
    color: #c4a8f0;
}

.onion-theme-purple .onion-page-chrome { border-top-color: #7d44b3; }
.onion-theme-pink .onion-page-chrome { border-top: 2px solid #ff0055; }
.onion-theme-cyan .onion-page-chrome { border-top: 2px solid #00d4aa; }
.onion-theme-gold .onion-page-chrome { border-top: 2px solid #ffd700; }
.onion-theme-green .onion-page-chrome { border-top: 2px solid #00ff66; }
.onion-theme-red .onion-page-chrome { border-top: 2px solid #f66151; }
.onion-theme-amber .onion-page-chrome { border-top: 2px solid #ffaa00; }

.onion-portal {
    animation: fadeIn 0.35s ease;
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 4px 20px;
}

.onion-portal-header {
    text-align: center;
    margin-bottom: 22px;
}

.onion-portal-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    letter-spacing: 4px;
    color: #c09bf8;
    text-shadow: 0 0 18px rgba(125, 68, 179, 0.45);
}

.onion-portal-tag {
    margin-top: 6px;
    font-size: 11px;
    color: #6e7681;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.onion-directory {
    margin-top: 28px;
    text-align: left;
}

.onion-directory-head {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8b949e;
    border-bottom: 1px solid #2a2438;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.onion-dir-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: #0f0d14;
    border: 1px solid #252030;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.onion-dir-entry:hover {
    border-color: #7d44b3;
    background: #141018;
    transform: translateX(3px);
}

.onion-dir-entry--featured {
    border-left: 3px solid #7d44b3;
}

.onion-dir-entry-title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #e6edf3;
}

.onion-dir-entry-desc {
    margin: 0;
    font-size: 11px;
    color: #8b949e;
    line-height: 1.45;
}

.onion-dir-entry-url {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.onion-dir-entry-url code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #58a6ff;
    background: #0a0810;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #21262d;
}

.onion-dir-entry-go {
    color: #7d44b3;
    font-size: 14px;
}

.onion-v3-addr {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #58a6ff !important;
    margin-bottom: 4px;
    word-break: break-all;
}

.onion-search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.onion-search-result {
    padding: 12px 14px;
    background: #0f0d14;
    border: 1px solid #252030;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.15s;
}

.onion-search-result:hover {
    border-color: #7d44b3;
}

.onion-search-result-title {
    color: #58a6ff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.onion-search-result-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #3ddc84;
    margin-bottom: 6px;
}

.onion-search-result-desc {
    font-size: 12px;
    color: #8b949e;
    line-height: 1.45;
}

.onion-search-snippet {
    border: 1px solid #21262d;
    background: #0a0810;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 12px;
    color: #adbac7;
    line-height: 1.45;
}

.onion-search-snippet-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #6e7681;
    margin-bottom: 6px;
}

.onion-page--compact .onion-page-body {
    padding: 0;
}

.onion-page--compact .onion-page-body iframe {
    display: block;
    width: 100%;
    min-height: 360px;
    border: none;
    background: transparent;
}

.hidden-wiki-link b {
    display: block;
    margin-bottom: 2px;
}

#win-browser .url-bar {
    font-size: 11px;
    color: #8a52d0;
}

/* Darknot site chrome & rich page layout */
.dn-site { animation: fadeIn 0.35s ease; text-align: left; min-height: 100%; }
.dn-chrome {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    background: linear-gradient(180deg, #14101c 0%, #0a0810 100%);
    border: 1px solid #3d2358; border-radius: 6px 6px 0 0;
}
.dn-lock { font-size: 16px; filter: drop-shadow(0 0 6px rgba(125,68,179,0.5)); }
.dn-chrome-meta { flex: 1; min-width: 0; }
.dn-site-title { font-family: 'Orbitron', sans-serif; font-size: 12px; color: #dfc5fe; letter-spacing: 1px; }
.dn-site-url { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #8a52d0; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-status-pulse { font-size: 10px; color: #00ff41; text-shadow: 0 0 8px #00ff41; animation: pulseRed 2s infinite; white-space: nowrap; }
.dn-tagline { padding: 8px 14px; font-size: 11px; color: #888; background: #08060c; border-left: 1px solid #3d2358; border-right: 1px solid #3d2358; border-bottom: 1px solid #2d183f; font-style: italic; }
.dn-hero { padding: 18px 14px; text-align: center; border-left: 1px solid #3d2358; border-right: 1px solid #3d2358; position: relative; overflow: hidden; }
.dn-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(125,68,179,0.12) 0%, transparent 70%); pointer-events: none; }
.dn-hero-title { font-family: 'Orbitron', sans-serif; font-size: 18px; color: #fff; letter-spacing: 2px; text-shadow: 0 0 20px rgba(192,155,248,0.4); position: relative; }
.dn-hero-sub { font-size: 11px; color: #aaa; margin-top: 6px; position: relative; }
.dn-hero--pink { background: linear-gradient(135deg, #1a0010 0%, #0a0810 100%); }
.dn-hero--purple { background: linear-gradient(135deg, #120820 0%, #0a0810 100%); }
.dn-hero--gold { background: linear-gradient(135deg, #1a1400 0%, #0a0810 100%); }
.dn-hero--cyan { background: linear-gradient(135deg, #001a1a 0%, #0a0810 100%); }
.dn-hero--red { background: linear-gradient(135deg, #1a0000 0%, #0a0810 100%); }
.dn-hero--amber { background: linear-gradient(135deg, #1a1000 0%, #0a0810 100%); }
.dn-hero--green { background: linear-gradient(135deg, #001a0a 0%, #0a0810 100%); }
.dn-body { padding: 16px 14px; background: #0a0512; border-left: 1px solid #3d2358; border-right: 1px solid #3d2358; line-height: 1.55; color: #ccc; }
.dn-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: #050208; border: 1px solid #3d2358; border-radius: 0 0 6px 6px; font-size: 10px; }
.dn-foot-meta { color: #555; }
.dn-foot-link { color: #8a52d0; cursor: pointer; text-decoration: underline; }
.dn-foot-link:hover { color: #c09bf8; }
.dn-site--compact .dn-body { padding: 0; }
.dn-site--compact .dn-body iframe { display: block; width: 100%; min-height: 520px; border: none; background: transparent; }
.dn-lore { font-size: 12px; color: #aaa; line-height: 1.6; padding: 12px 14px; border-left: 3px solid #7d44b3; background: rgba(125,68,179,0.06); border-radius: 0 4px 4px 0; margin-bottom: 12px; }
.dn-stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.dn-stat { flex: 1; min-width: 80px; text-align: center; padding: 10px 8px; border: 1px solid #2d183f; border-radius: 4px; background: rgba(0,0,0,0.4); }
.dn-stat-val { font-family: 'Orbitron', sans-serif; font-size: 16px; color: var(--dn-stat-color, var(--hack-cyan)); text-shadow: 0 0 8px var(--dn-stat-color, var(--hack-cyan)); }
.dn-stat-lbl { font-size: 9px; color: #666; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.dn-section-head { color: #c09bf8; font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid #2d183f; padding-bottom: 6px; margin: 16px 0 12px; }
.dn-panel { background: rgba(0,0,0,0.35); border-radius: 4px; }
.dn-catalog-link { transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.dn-catalog-link:hover { box-shadow: 0 0 15px rgba(125,68,179,0.15); }
.dn-catalog-link--vip { border-left: 3px solid #7d44b3 !important; }
.dn-catalog-left { display: flex; gap: 12px; align-items: flex-start; text-align: left; flex: 1; }
.dn-catalog-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.dn-catalog-desc { font-size: 11px; color: #888; margin-top: 4px; line-height: 1.45; }
.dn-catalog-tagline { font-size: 9px; color: #7d44b3; margin-top: 4px; letter-spacing: 0.06em; text-transform: uppercase; }
.onion-search-result-url { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #8a52d0 !important; margin-bottom: 6px; }

/* TERM.GUIDE — terminal field manual (Darknot) */
.tm-guide { font-size: 12px; }
.tm-intro { padding: 12px 14px; border: 1px solid #1a3a35; border-radius: 6px; background: linear-gradient(135deg, rgba(0,255,170,0.04) 0%, rgba(0,0,0,0.2) 100%); color: #bbb; line-height: 1.65; margin-bottom: 14px; }
.tm-intro b { color: var(--hack-cyan); }
.tm-block { margin: 20px 0; }
.tm-block-title { font-family: 'Orbitron', sans-serif; font-size: 12px; color: #e8e0ff; letter-spacing: 0.08em; margin: 0 0 8px; }
.tm-block-lead { font-size: 11px; color: #888; margin: 0 0 12px; line-height: 1.55; }
.tm-pipeline { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; margin-bottom: 14px; }
.tm-pipeline-step { flex: 1; min-width: 88px; display: flex; gap: 8px; align-items: flex-start; padding: 10px; border: 1px solid #1e3a35; border-radius: 6px; background: rgba(0,0,0,0.45); }
.tm-pipeline-step b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--hack-cyan); }
.tm-pipeline-step small { display: block; font-size: 9px; color: #666; margin-top: 3px; line-height: 1.35; }
.tm-pipeline-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,255,170,0.12); border: 1px solid var(--hack-cyan); color: var(--hack-cyan); font-family: 'Orbitron', sans-serif; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.tm-pipeline-arrow { align-self: center; color: #333; font-size: 14px; padding: 0 2px; }
.tm-demo { border: 1px solid #222; border-radius: 6px; overflow: hidden; background: #030806; }
.tm-demo-bar { display: flex; justify-content: space-between; padding: 6px 10px; background: #0a1210; border-bottom: 1px solid #1a2a22; font-size: 9px; color: #555; font-family: 'Orbitron', sans-serif; letter-spacing: 0.06em; }
.tm-demo-live { color: var(--hack-green); text-shadow: 0 0 6px var(--hack-green); }
.tm-demo-body { margin: 0; padding: 12px; font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1.65; color: #9aa; white-space: pre-wrap; overflow-x: auto; }
.tm-demo-body .tm-dim { color: #4a6; }
.tm-demo-body .tm-ok { color: var(--hack-green); }
.tm-demo-body .tm-info { color: var(--hack-cyan); }
.tm-help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 520px) { .tm-help-grid { grid-template-columns: 1fr; } }
.tm-help-card { padding: 10px 12px; border: 1px solid #2d183f; border-radius: 6px; background: rgba(0,0,0,0.35); display: flex; flex-direction: column; gap: 4px; }
.tm-help-card code { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--hack-cyan); }
.tm-help-card span { font-size: 10px; color: #777; line-height: 1.4; }
.tm-help-card--pve { border-color: rgba(0,255,170,0.25); }
.tm-help-card--mesh { border-color: rgba(0,212,255,0.25); }
.tm-help-card--pvp { border-color: rgba(255,51,102,0.25); }
.tm-help-card--locked { opacity: 0.65; }
.tm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 12px; padding-bottom: 10px; border-bottom: 1px solid #2d183f; }
.tm-tab { border: 1px solid #333; background: rgba(0,0,0,0.4); color: #888; font-family: 'Orbitron', sans-serif; font-size: 9px; letter-spacing: 0.04em; padding: 8px 12px; border-radius: 4px; cursor: pointer; transition: 0.2s; }
.tm-tab:hover { border-color: #7d44b3; color: #ccc; }
.tm-tab--active { border-color: var(--hack-cyan); color: var(--hack-cyan); background: rgba(0,255,170,0.06); box-shadow: 0 0 12px rgba(0,255,170,0.08); }
.tm-pane { display: none; animation: fadeIn 0.25s ease; }
.tm-pane--active { display: block; }
.tm-cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tm-cmd { border: 1px solid #252525; border-radius: 6px; padding: 12px; background: rgba(0,0,0,0.35); transition: border-color 0.2s, transform 0.2s; }
.tm-cmd:hover { border-color: #444; transform: translateY(-1px); }
.tm-cmd--cyan { border-left: 3px solid var(--hack-cyan); }
.tm-cmd--pink { border-left: 3px solid var(--hack-pink); }
.tm-cmd--gold { border-left: 3px solid var(--hack-gold); }
.tm-cmd--green { border-left: 3px solid var(--hack-green); }
.tm-cmd--amber { border-left: 3px solid #ffaa00; }
.tm-cmd-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.tm-cmd-syntax { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #fff; background: rgba(255,255,255,0.04); padding: 3px 6px; border-radius: 3px; }
.tm-cmd-title { font-size: 11px; font-weight: bold; color: #ddd; margin-bottom: 4px; }
.tm-cmd-desc { font-size: 10px; color: #888; line-height: 1.55; margin: 0 0 8px; }
.tm-cmd-example { font-size: 9px; color: #555; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 8px; border-top: 1px dashed #222; }
.tm-cmd-example code { color: var(--hack-gold); font-family: 'JetBrains Mono', monospace; font-size: 10px; }
.tm-badge { font-size: 8px; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 3px; border: 1px solid var(--tm-badge-color, #666); color: var(--tm-badge-color, #666); white-space: nowrap; }
.tm-tip { font-size: 10px; color: #999; padding: 10px 12px; border-radius: 6px; border: 1px solid #2a2a2a; background: rgba(255,255,255,0.02); margin-bottom: 12px; line-height: 1.55; }
.tm-tip code { color: var(--hack-cyan); font-family: 'JetBrains Mono', monospace; font-size: 10px; }
.tm-tip--mesh { border-color: rgba(0,212,255,0.2); background: rgba(0,100,120,0.06); }
.tm-tip--warn { border-color: rgba(255,51,102,0.25); background: rgba(255,0,85,0.04); color: #bbb; }
.tm-tip--gov { border-color: rgba(255,170,0,0.25); background: rgba(255,170,0,0.04); }
.tm-locked { text-align: center; padding: 28px 16px; border: 1px dashed rgba(255,51,102,0.35); border-radius: 8px; background: rgba(255,0,85,0.03); }
.tm-locked-icon { font-size: 28px; margin-bottom: 8px; }
.tm-locked-title { font-family: 'Orbitron', sans-serif; color: var(--hack-pink); font-size: 12px; margin-bottom: 10px; }
.tm-locked p { font-size: 11px; color: #888; line-height: 1.6; margin: 6px 0; }
.tm-locked code { color: var(--hack-cyan); font-family: 'JetBrains Mono', monospace; }
.tm-mesh-status { padding: 12px 14px !important; margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; font-size: 11px; border-color: rgba(0,255,170,0.2) !important; }
.tm-mesh-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; box-shadow: 0 0 8px currentColor; vertical-align: middle; }
.tm-mesh-hint { font-size: 10px; color: #666; }
.tm-block--cheat { margin-top: 24px; padding-top: 16px; border-top: 1px solid #2d183f; }
.tm-cheat { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid #2d183f; border-radius: 6px; background: rgba(125,68,179,0.05); font-size: 11px; color: #aaa; line-height: 1.55; }
.tm-cheat b { color: #c09bf8; font-family: 'Orbitron', sans-serif; font-size: 10px; margin-right: 6px; }

/* --- A.R.G.U.S. SYSTEM STYLING (DARKNOT STYLE OVERHAUL) --- */
#win-argus, #win-argus-login {
    border-color: #ff0055 !important;
    background: rgba(10, 2, 4, 0.96) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 20px 50px rgba(255, 0, 85, 0.25), inset 0 0 15px rgba(255, 0, 85, 0.05) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

#win-argus .w-header, #win-argus-login .w-header {
    background: linear-gradient(90deg, #2a030c, #0c0104) !important;
    border-bottom: 1px solid #ff0055 !important;
    color: #ffccdd !important;
    text-shadow: 0 0 8px rgba(255, 0, 85, 0.6) !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
}

/* Badge styled like Darknot's labels but red */
#argus-officer-badge {
    font-size: 10px !important;
    background: rgba(255, 0, 85, 0.15) !important;
    color: #ff3366 !important;
    padding: 3px 8px !important;
    font-weight: bold !important;
    border: 1px solid rgba(255, 0, 85, 0.3) !important;
    border-radius: 3px !important;
    box-shadow: 0 0 8px rgba(255, 0, 85, 0.2) !important;
}

/* Tab Bar */
#win-argus > div[style*="display: flex; background: #120000;"],
#win-argus > div[style*="display: flex; background:#120000;"] {
    background: #0d0104 !important;
    border-bottom: 1px solid #ff0055 !important;
}

/* Tabs */
.argus-tab-btn {
    flex: 1;
    background: transparent !important;
    border: none !important;
    border-right: 1px solid #4a0d17 !important;
    color: #ff3366 !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 10px !important;
    padding: 10px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-shadow: 0 0 4px rgba(255, 51, 102, 0.2);
}

.argus-tab-btn:hover {
    background: rgba(255, 0, 85, 0.08) !important;
    color: #ff88aa !important;
    text-shadow: 0 0 8px rgba(255, 51, 102, 0.5);
}

.argus-tab-btn.active {
    background: rgba(255, 0, 85, 0.15) !important;
    color: #fff !important;
    border-bottom: 2px solid #ff0055 !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 -2px 10px rgba(255, 0, 85, 0.2);
}

/* Content Frame */
#win-argus .w-content, #win-argus-login .w-content {
    background: #050102 !important;
    padding: 15px !important;
}

/* Sidebar lists and log panels */
#argus-user-list,
#argus-officer-list,
#argus-cases-list,
#argus-incidents-log,
.argus-tab-content > div,
#argus-tab-dossier > div,
#argus-case-detail-panel,
#argus-captcha-matrix,
#incoming-alert-container > div {
    border: 1px solid #4a0d17 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 4px !important;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.9) !important;
}

#argus-incidents-log {
    color: #ff4477 !important;
}

/* User item and Officer item styling in lists */
#argus-user-list > div,
#argus-officer-list > div,
#argus-cases-list > div {
    border: 1px solid #4a0d17 !important;
    background: rgba(153, 0, 34, 0.03) !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    transition: all 0.2s ease !important;
}

#argus-user-list > div:hover,
#argus-officer-list > div:hover,
#argus-cases-list > div:hover {
    background: rgba(255, 0, 85, 0.08) !important;
    border-color: #ff0055 !important;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.2) !important;
}

/* Custom scrollbars for Argus */
#win-argus ::-webkit-scrollbar,
#win-argus-login ::-webkit-scrollbar,
#win-incoming-alert ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#win-argus ::-webkit-scrollbar-track,
#win-argus-login ::-webkit-scrollbar-track,
#win-incoming-alert ::-webkit-scrollbar-track {
    background: #0d0104;
    border-left: 1px solid #2d0c12;
}

#win-argus ::-webkit-scrollbar-thumb,
#win-argus-login ::-webkit-scrollbar-thumb,
#win-incoming-alert ::-webkit-scrollbar-thumb {
    background: #990022;
    border-radius: 4px;
    border: 2px solid #0d0104;
}

#win-argus ::-webkit-scrollbar-thumb:hover,
#win-argus-login ::-webkit-scrollbar-thumb:hover,
#win-incoming-alert ::-webkit-scrollbar-thumb:hover {
    background: #ff3366;
}

/* Firefox scrollbar support */
#win-argus #argus-user-list,
#win-argus #argus-officer-list,
#win-argus #argus-cases-list,
#win-argus #argus-incidents-log,
#win-argus #argus-case-detail-panel,
#win-argus .argus-tab-content > div {
    scrollbar-width: thin;
    scrollbar-color: #990022 #0d0104;
}

/* Inputs, textareas, selects inside Argus */
#win-argus .input-hack,
#win-argus textarea,
#win-argus-login .input-hack,
#win-argus-login select,
#win-incoming-alert .input-hack {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid #4a0d17 !important;
    color: #ff3366 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    font-family: 'JetBrains Mono', monospace !important;
    transition: all 0.2s ease !important;
}

#win-argus .input-hack:focus,
#win-argus textarea:focus,
#win-argus-login .input-hack:focus,
#win-argus-login select:focus,
#win-incoming-alert .input-hack:focus {
    border-color: #ff0055 !important;
    box-shadow: 0 0 8px rgba(255, 0, 85, 0.4) !important;
    outline: none !important;
    color: #fff !important;
}

/* Argus buttons */
#win-argus .btn-hack,
#win-argus-login .btn-hack,
#win-incoming-alert .btn-hack,
.btn-exploit, .btn-defense {
    background: rgba(153, 0, 34, 0.1) !important;
    border: 1px solid #990022 !important;
    color: #ff3366 !important;
    font-family: 'Orbitron', sans-serif !important;
    border-radius: 4px !important;
    padding: 8px 15px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-shadow: 0 0 5px rgba(255, 51, 102, 0.3);
}

#win-argus .btn-hack:hover,
#win-argus-login .btn-hack:hover,
#win-incoming-alert .btn-hack:hover {
    background: rgba(255, 0, 85, 0.15) !important;
    border-color: #ff0055 !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(255, 0, 85, 0.4) !important;
}

/* Action buttons in User rows */
#argus-user-list .btn-hack {
    font-size: 10px !important;
    padding: 3px 8px !important;
    border-radius: 3px !important;
    margin: 0 !important;
}

#argus-user-list button[onclick*="ISOLATE"] {
    background: rgba(255, 0, 85, 0.05) !important;
    border: 1px solid #ff0055 !important;
    color: #ff0055 !important;
}
#argus-user-list button[onclick*="ISOLATE"]:hover {
    background: rgba(255, 0, 85, 0.2) !important;
    color: #fff !important;
    box-shadow: 0 0 8px rgba(255, 0, 85, 0.4) !important;
}

#argus-user-list button[onclick*="JAIL"] {
    background: rgba(153, 0, 34, 0.05) !important;
    border: 1px solid #990022 !important;
    color: #ff3366 !important;
}
#argus-user-list button[onclick*="JAIL"]:hover {
    background: rgba(153, 0, 34, 0.2) !important;
    color: #fff !important;
    box-shadow: 0 0 8px rgba(153, 0, 34, 0.4) !important;
}

#argus-user-list button[onclick*="RELEASE"] {
    background: rgba(0, 255, 65, 0.05) !important;
    border: 1px solid var(--hack-green) !important;
    color: var(--hack-green) !important;
}
#argus-user-list button[onclick*="RELEASE"]:hover {
    background: rgba(0, 255, 65, 0.2) !important;
    color: #fff !important;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.4) !important;
}

/* Biometric Pad and CAPTCHA enhancements */
#argus-biometric-pad {
    border: 2px dashed #ff0055 !important;
    background: rgba(255, 0, 85, 0.05) !important;
    color: #ff3366 !important;
    font-size: 40px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.1) !important;
    border-radius: 50% !important;
}

#argus-biometric-pad:hover {
    background: rgba(255, 0, 85, 0.1) !important;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.3) !important;
}

#argus-biometric-pad.scanning {
    animation: bioPulseScan 1s infinite alternate !important;
    background: rgba(255, 0, 85, 0.2) !important;
    border-color: #ff3366 !important;
}

@keyframes bioPulseScan {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 0, 85, 0.3); }
    100% { transform: scale(1.08); box-shadow: 0 0 30px rgba(255, 0, 85, 0.8); }
}

#argus-captcha-matrix {
    border-color: #4a0d17 !important;
    background: #030001 !important;
    border-radius: 4px !important;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.9) !important;
}

#win-argus-login .progress-bar-container {
    background: #0d0104 !important;
    border: 1px solid #4a0d17 !important;
}

#argus-bio-bar {
    background: linear-gradient(90deg, #990022, #ff0055) !important;
    box-shadow: 0 0 10px #ff0055 !important;
}

/* --- ICE STUDIO & COMPILER STYLE OVERHAUL --- */
#win-ice-studio {
    border-color: var(--hack-cyan) !important;
    background: rgba(5, 10, 16, 0.96) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 20px 50px rgba(0, 255, 255, 0.25), inset 0 0 15px rgba(0, 255, 255, 0.05) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

#win-ice-studio .w-header {
    background: linear-gradient(90deg, #022b3a, #050a10) !important;
    border-bottom: 1px solid var(--hack-cyan) !important;
    color: #dff7ff !important;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6) !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: bold !important;
}

.ice-column-box {
    flex: 1;
    border: 1px solid #1a3038 !important;
    padding: 12px !important;
    background: rgba(2, 5, 8, 0.6) !important;
    border-radius: 4px !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5) !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.ice-column-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
    font-weight: bold;
}

.ice-card {
    border: 1px solid #20353c;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    background: rgba(0,0,0,0.4);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ice-card:hover {
    border-color: #3b5f6b;
    background: rgba(0, 255, 255, 0.03);
}

.ice-card.selected-sensor {
    border-color: var(--hack-cyan) !important;
    background: rgba(0, 255, 255, 0.08) !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.15);
}

.ice-card.selected-shield {
    border-color: var(--hack-green) !important;
    background: rgba(0, 255, 65, 0.08) !important;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
}

.ice-card.selected-counter {
    border-color: var(--hack-pink) !important;
    background: rgba(255, 0, 85, 0.08) !important;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.15);
}

.ice-grid-cell {
    border: 1px solid #1a3038;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.15s ease;
}

.ice-grid-cell:hover {
    border-color: #3b5f6b;
    background: rgba(0, 255, 255, 0.05);
}

.ice-grid-cell .cell-addr {
    font-size: 8px;
    color: #4f7380;
    font-weight: bold;
    position: absolute;
    top: 4px;
    left: 4px;
}

.ice-grid-cell .cell-status {
    font-size: 10px;
    color: var(--hack-green);
    font-weight: bold;
}

.ice-grid-cell.collided {
    border-color: #ff0055 !important;
    background: rgba(255, 0, 85, 0.15) !important;
    animation: cellGlitchPulse 0.5s infinite alternate;
}

.ice-grid-cell.collided .cell-status {
    color: #ff0055 !important;
    text-shadow: 0 0 5px #ff0055;
}

@keyframes cellGlitchPulse {
    0% { box-shadow: 0 0 2px rgba(255, 0, 85, 0.3); }
    100% { box-shadow: 0 0 10px rgba(255, 0, 85, 0.7); }
}

/* --- LIMEMON & SCRUBGATE SYSTEM STYLES --- */
.ddos-shake {
    animation: ddosShakeAnim 0.15s infinite;
}

@keyframes ddosShakeAnim {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(0px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(2px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(2px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

#win-limemon ::-webkit-scrollbar,
#win-scrubgate ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
#win-limemon ::-webkit-scrollbar-track,
#win-scrubgate ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
#win-limemon ::-webkit-scrollbar-thumb {
    background: #00ff66;
    border-radius: 3px;
}
#win-scrubgate ::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 3px;
}

#win-limemon .w-content,
#win-scrubgate .w-content {
    scrollbar-width: thin;
}
#win-limemon .w-content {
    scrollbar-color: #00ff66 rgba(0,0,0,0.3);
}
#win-scrubgate .w-content {
    scrollbar-color: #00ffff rgba(0,0,0,0.3);
}

/* DDOS EXTRA EFFECTS: GLITCHES & MOUSE INVERSION */
@keyframes ddosGlitch {
    0% { filter: hue-rotate(0deg) skew(0deg); }
    10% { filter: hue-rotate(90deg) skew(3deg); }
    20% { filter: hue-rotate(0deg) skew(0deg); }
    30% { filter: hue-rotate(180deg) skew(-3deg); }
    40% { filter: hue-rotate(0deg) skew(0deg); }
    50% { filter: hue-rotate(270deg) skew(5deg); }
    60% { filter: hue-rotate(0deg) skew(0deg); }
    70% { filter: hue-rotate(360deg) skew(-5deg); }
    80% { filter: hue-rotate(0deg) skew(0deg); }
    100% { filter: hue-rotate(0deg) skew(0deg); }
}
.ddos-glitch {
    animation: ddosGlitch 0.4s infinite !important;
}
.ddos-mouse-invert {
    cursor: none !important;
}
.ddos-mouse-invert * {
    cursor: none !important;
}

/* Dev Studio Tab Button styling */
.devstudio-tab-btn {
    transition: all 0.3s ease !important;
}

.devstudio-tab-btn:hover {
    background: rgba(255, 0, 85, 0.08) !important;
    color: #ff88aa !important;
    text-shadow: 0 0 8px rgba(255, 0, 85, 0.5) !important;
}

.devstudio-tab-btn.active {
    background: rgba(255, 0, 85, 0.15) !important;
    color: #fff !important;
    border-bottom: 2px solid var(--hack-pink) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
    box-shadow: inset 0 -2px 10px rgba(255, 0, 85, 0.2) !important;
}

/* --- DEV_CONSOLE & CRITICAL ALERT REDESIGN (DARKNOT STYLE) --- */
#dev-console {
    border-color: #ff0055 !important;
    background: rgba(10, 2, 4, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 20px 50px rgba(255, 0, 85, 0.25), inset 0 0 15px rgba(255, 0, 85, 0.05) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

#dev-console .w-header {
    background: linear-gradient(90deg, #2a030c, #0c0104) !important;
    border-bottom: 1px solid #ff0055 !important;
    color: #ffccdd !important;
    text-shadow: 0 0 8px rgba(255, 0, 85, 0.6) !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
}

#attack-warning {
    background: rgba(42, 0, 10, 0.9) !important;
    border: 1px solid #ff0055 !important;
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.4), inset 0 0 10px rgba(255, 0, 85, 0.2) !important;
    border-radius: 4px !important;
    color: #ffccdd !important;
    text-shadow: 0 0 8px rgba(255, 0, 85, 0.6) !important;
    font-family: 'Orbitron', sans-serif !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease;
}

/* --- OFFSHORE BANK HACK TERMINAL (console style) --- */
#win-bank {
    border-color: var(--hack-gold) !important;
    background: rgba(12, 10, 2, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 20px 50px rgba(255, 183, 0, 0.25), inset 0 0 15px rgba(255, 183, 0, 0.05) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

#win-bank .w-header {
    background: linear-gradient(90deg, #2a1f03, #0c0901) !important;
    border-bottom: 1px solid var(--hack-gold) !important;
    color: #ffeed3 !important;
    text-shadow: 0 0 8px rgba(255, 183, 0, 0.6) !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
}

#offshore-sec-code-display::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}

#offshore-sec-code-display::-webkit-scrollbar-track {
    background: #000 !important;
    border-radius: 3px !important;
}

#offshore-sec-code-display::-webkit-scrollbar-thumb {
    background: var(--hack-gold) !important;
    border-radius: 3px !important;
    box-shadow: 0 0 5px var(--hack-gold) !important;
}

#offshore-sec-code-display::-webkit-scrollbar-thumb:hover {
    background: #fff !important;
    box-shadow: 0 0 8px #fff !important;
}

/* Sys monitor styling — see sys-monitor.css */

/* --- EXPLORER WINDOW (Linux Files style) --- */
.explorer-window {
    background: #1e1c22 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    font-family: 'Ubuntu', 'Cantarell', sans-serif;
}

.explorer-header {
    background: #3d3846 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f6f5f4 !important;
    text-shadow: none !important;
    font-family: 'Ubuntu', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 0 14px !important;
    min-height: 36px;
    box-sizing: border-box;
}

.explorer-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.explorer-title-icon {
    font-size: 15px;
}

.explorer-title {
    font-size: 13px;
    font-weight: 500;
}

.explorer-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #2b2733;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.explorer-nav-group,
.explorer-view-toggle {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.explorer-pathbar {
    flex: 1;
    min-width: 0;
    background: #1a1722;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px 8px;
    overflow: hidden;
}

.explorer-breadcrumb {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.explorer-breadcrumb::-webkit-scrollbar {
    display: none;
}

.explorer-crumb {
    border: none;
    background: transparent;
    color: #9b99a0;
    font: 500 12px/1 'Ubuntu Mono', monospace;
    padding: 4px 6px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.explorer-crumb:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f6f5f4;
}

.explorer-crumb.is-current {
    color: #f6f5f4;
    cursor: default;
}

.explorer-crumb-sep {
    color: #5e5c64;
    font-size: 11px;
    user-select: none;
}

.explorer-icon-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #c8c6cd;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.explorer-icon-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.explorer-icon-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.explorer-icon-btn.is-active {
    background: rgba(233, 84, 32, 0.2);
    color: #ffb380;
}

.explorer-actions {
    display: flex;
    gap: 6px;
    padding: 6px 10px;
    background: #25222c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.explorer-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    color: #d6d4db;
    font: 500 12px/1 'Ubuntu', sans-serif;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.explorer-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.explorer-action-upload {
    margin: 0;
}

.explorer-action-icon {
    font-size: 13px;
}

.explorer-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    background: #1e1c22;
}

.explorer-sidebar {
    width: 168px;
    background: #25222c;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    box-sizing: border-box;
    flex-shrink: 0;
}

.explorer-sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.explorer-sidebar-label {
    font: 600 10px/1 'Ubuntu', sans-serif;
    color: #6e6c75;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 8px 4px;
}

.explorer-place-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #b8b6be;
    font: 500 12px/1 'Ubuntu', sans-serif;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.explorer-place-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f6f5f4;
}

.explorer-place-item.active {
    background: rgba(233, 84, 32, 0.18);
    color: #ffc89a;
}

.explorer-place-item .place-icon {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.explorer-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.explorer-list-header {
    display: grid;
    grid-template-columns: 1fr 120px 72px 32px;
    gap: 8px;
    padding: 6px 14px;
    background: #2b2733;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font: 600 10px/1 'Ubuntu', sans-serif;
    color: #6e6c75;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.explorer-main.view-grid .explorer-list-header {
    display: none;
}

.explorer-main.view-list .explorer-list-header {
    display: grid;
}

.explorer-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #1e1c22;
    box-sizing: border-box;
}

.explorer-content.explorer-view-list {
    padding: 0;
}

.explorer-content.explorer-view-grid {
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: flex-start;
}

.explorer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 180px;
    color: #6e6c75;
    font: 500 13px/1.4 'Ubuntu', sans-serif;
    text-align: center;
    padding: 24px;
}

.explorer-empty-icon {
    font-size: 36px;
    opacity: 0.45;
}

.explorer-row {
    display: grid;
    grid-template-columns: 28px 1fr 120px 72px 32px;
    gap: 8px;
    align-items: center;
    padding: 7px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.12s;
    position: relative;
}

.explorer-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.explorer-row.is-selected {
    background: rgba(233, 84, 32, 0.14);
}

.explorer-row-icon {
    font-size: 18px;
    text-align: center;
}

.explorer-row-name {
    font: 500 13px/1.3 'Ubuntu', sans-serif;
    color: #eceaef;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explorer-row-type,
.explorer-row-size {
    font: 400 11px/1 'Ubuntu Mono', monospace;
    color: #8b8992;
}

.explorer-row-delete {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #8b8992;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.explorer-row:hover .explorer-row-delete {
    opacity: 1;
}

.explorer-row-delete:hover {
    background: rgba(192, 28, 40, 0.2);
    color: #f66151;
}

.explorer-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 12px;
    background: #2b2733;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font: 400 11px/1 'Ubuntu Mono', monospace;
    color: #8b8992;
    flex-shrink: 0;
}

.explorer-sidebar::-webkit-scrollbar,
.explorer-content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.explorer-sidebar::-webkit-scrollbar-track,
.explorer-content::-webkit-scrollbar-track {
    background: transparent;
}

.explorer-sidebar::-webkit-scrollbar-thumb,
.explorer-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.explorer-content::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 84, 32, 0.45);
}

/* Grid view file cards */
.explorer-content .fs-item {
    position: relative;
    width: 88px;
    height: 98px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    box-sizing: border-box;
}

.explorer-content .fs-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(233, 84, 32, 0.35);
    transform: translateY(-1px);
    box-shadow: none;
}

.explorer-content .fs-icon-wrapper {
    font-size: 28px;
    margin-bottom: 6px;
    text-shadow: none !important;
}

.explorer-content .fs-name {
    font: 500 10px/1.25 'Ubuntu', sans-serif;
    color: #b8b6be;
    text-align: center;
    max-height: 26px;
}

.explorer-content .fs-item:hover .fs-name {
    color: #f6f5f4;
}

.explorer-content .fs-delete-btn {
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: #2b2733;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f66151;
    border-radius: 5px;
    font-size: 10px;
}

.explorer-content .fs-delete-btn:hover {
    background: #c01c28;
    color: #fff;
    border-color: #c01c28;
    box-shadow: none;
}

#desktop.linux-de .explorer-window .w-header {
    background: #3d3846 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-family: 'Ubuntu', sans-serif !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
    padding: 0 8px 0 14px !important;
    min-height: 36px;
}

#desktop.linux-de .explorer-window {
    border-radius: 10px !important;
    background: #1e1c22 !important;
}

/* Typing indicator for chat */
#typing-indicator {
    padding: 10px 20px !important;
    font-size: 10px !important;
    color: var(--hack-cyan) !important;
    font-family: 'JetBrains Mono', monospace !important;
    letter-spacing: 1px;
    text-shadow: 0 0 4px var(--hack-cyan);
    animation: blink 1.2s infinite;
}

/* Custom scrollbar for Net Exploitation Console */
#win-hack-terminal::-webkit-scrollbar,
#win-hack-terminal ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
#win-hack-terminal::-webkit-scrollbar-track,
#win-hack-terminal ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.95);
}
#win-hack-terminal::-webkit-scrollbar-thumb,
#win-hack-terminal ::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 85, 0.4);
    border-radius: 3px;
    border: 1px solid rgba(255, 0, 85, 0.2);
    box-shadow: inset 0 0 4px rgba(255, 0, 85, 0.2);
    transition: all 0.2s ease;
}
#win-hack-terminal::-webkit-scrollbar-thumb:hover,
#win-hack-terminal ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 85, 0.85);
    box-shadow: 0 0 8px rgba(255, 0, 85, 0.5);
}
#win-hack-terminal {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 0, 85, 0.5) rgba(0, 0, 0, 0.95);
}

/* Custom scrollbars for PVP Typer Display and ICE Typer Display */
#pvp-typer-display::-webkit-scrollbar,
#ice-typer-display::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
#pvp-typer-display::-webkit-scrollbar-track,
#ice-typer-display::-webkit-scrollbar-track {
    background: #000;
    border-left: 1px solid rgba(255, 0, 85, 0.2);
}
#pvp-typer-display::-webkit-scrollbar-thumb,
#ice-typer-display::-webkit-scrollbar-thumb {
    background: #ff0055;
    border-radius: 3px;
}
#pvp-typer-display::-webkit-scrollbar-thumb:hover,
#ice-typer-display::-webkit-scrollbar-thumb:hover {
    background: #ff3366;
}

/* Screen Shake Trolling Effect */
@keyframes screenShake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(0px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(2px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(2px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}
.shake-effect {
    animation: screenShake 0.4s infinite;
}

/* --- CYBERPUNK LOGIN FORM --- */

.login-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #0a0514 0%, #000000 100%) !important;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

.login-screen::before {
    content: "";
    position: absolute;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.08) 0%, rgba(255, 0, 85, 0.04) 50%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 255, 255, 0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    transform: perspective(600px) rotateX(60deg) translateY(-20%) translateZ(0);
    animation: gridScroll 15s linear infinite;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

@keyframes gridScroll {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 400px;
    }
}

.cyber-login-panel {
    position: relative;
    z-index: 10;
    width: min(860px, calc(100vw - 32px));
    background: rgba(6, 4, 10, 0.88);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 4px;
    padding: 40px 35px;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.25), inset 0 0 35px rgba(0, 255, 255, 0.08);
    backdrop-filter: none;
    box-sizing: border-box;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

.cyber-auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 26px;
    align-items: stretch;
}

.cyber-auth-credentials {
    min-width: 0;
}

.cyber-pin-panel {
    --pin-cyan: #00e8ff;
    --pin-cyan-soft: rgba(0, 232, 255, 0.55);
    --pin-cyan-dim: rgba(0, 232, 255, 0.14);
    --pin-blue: #3d7dff;
    --pin-glow: rgba(0, 232, 255, 0.42);
    position: relative;
    overflow: hidden;
    padding: 18px 16px 14px;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0, 232, 255, 0.18), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(61, 125, 255, 0.12), transparent 45%),
        linear-gradient(165deg, rgba(2, 10, 18, 0.97) 0%, rgba(4, 14, 24, 0.94) 100%);
    border: 1px solid var(--pin-cyan-soft);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    box-shadow:
        inset 0 0 40px rgba(0, 232, 255, 0.06),
        inset 0 1px 0 rgba(0, 232, 255, 0.25),
        0 0 28px rgba(0, 232, 255, 0.14),
        0 0 60px rgba(61, 125, 255, 0.08);
    animation: cyberPinPulse 4.2s ease-in-out infinite;
}

.cyber-pin-panel.is-locked {
    pointer-events: none;
    opacity: 0.55;
    filter: saturate(0.45) brightness(0.82);
}

.cyber-pin-panel.is-locked .cyber-pin-keypad button {
    cursor: not-allowed;
}

.cyber-pin-panel.is-locked::after {
    content: 'LOCKED';
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 8, 14, 0.55);
    color: rgba(0, 232, 255, 0.75);
    font: 800 14px/1 'Orbitron', sans-serif;
    letter-spacing: 0.35em;
    text-shadow: 0 0 16px rgba(0, 232, 255, 0.45);
    pointer-events: none;
}

.cyber-pin-panel.is-locked .cyber-pin-scan {
    animation: none;
    opacity: 0.2;
}

.cyber-pin-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.cyber-pin-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.55;
}

.cyber-pin-glow-a {
    width: 140px;
    height: 90px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 232, 255, 0.55), transparent 70%);
    animation: cyberPinGlowA 3.6s ease-in-out infinite;
}

.cyber-pin-glow-b {
    width: 80px;
    height: 80px;
    right: -20px;
    bottom: 20px;
    background: radial-gradient(circle, rgba(61, 125, 255, 0.45), transparent 70%);
    animation: cyberPinGlowB 4.8s ease-in-out infinite;
}

.cyber-pin-hex {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image:
        linear-gradient(30deg, var(--pin-cyan) 1px, transparent 1px),
        linear-gradient(150deg, var(--pin-cyan) 1px, transparent 1px),
        linear-gradient(90deg, var(--pin-cyan) 1px, transparent 1px);
    background-size: 18px 32px, 18px 32px, 18px 18px;
}

.cyber-pin-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pin-cyan), transparent);
    box-shadow: 0 0 16px var(--pin-glow), 0 0 32px rgba(0, 232, 255, 0.25);
    opacity: 0.65;
    animation: cyberPinScan 3.2s linear infinite;
}

.cyber-pin-bracket {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--pin-cyan);
    box-shadow: 0 0 8px var(--pin-glow);
    pointer-events: none;
    z-index: 2;
}

.cyber-pin-bracket-tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.cyber-pin-bracket-tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.cyber-pin-bracket-bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.cyber-pin-bracket-br { bottom: 6px; right: 6px; border-left: none; border-top: none; }

.cyber-pin-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.1;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 3px,
        rgba(0, 232, 255, 0.18) 4px
    );
}

.cyber-pin-topline {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font: 700 8px/1 'Orbitron', sans-serif;
    letter-spacing: 0.14em;
}

.cyber-pin-badge {
    color: var(--pin-cyan);
    text-shadow: 0 0 10px var(--pin-glow);
}

.cyber-pin-signal {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #7dffe8;
    font-size: 7px;
    letter-spacing: 0.1em;
    text-shadow: 0 0 8px rgba(125, 255, 232, 0.6);
}

.cyber-pin-signal i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ffc8;
    box-shadow: 0 0 10px #00ffc8, 0 0 18px rgba(0, 255, 200, 0.5);
    animation: cyberPinSignal 1.4s ease-in-out infinite;
}

.cyber-pin-title {
    position: relative;
    z-index: 1;
    margin: 12px 0 11px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cyber-pin-title-main {
    color: #eefcff;
    font: 800 13px/1.1 'Orbitron', sans-serif;
    letter-spacing: 0.14em;
    text-shadow: 0 0 14px rgba(0, 232, 255, 0.35);
}

.cyber-pin-title-sub {
    color: rgba(0, 232, 255, 0.62);
    font: 600 7px/1 'JetBrains Mono', monospace;
    letter-spacing: 0.18em;
}

.cyber-pin-display {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    padding: 12px 10px;
    border: 1px solid rgba(0, 232, 255, 0.45);
    background:
        linear-gradient(180deg, rgba(0, 18, 28, 0.92), rgba(0, 8, 14, 0.96));
    box-shadow:
        inset 0 0 24px rgba(0, 232, 255, 0.1),
        inset 0 -2px 0 rgba(0, 232, 255, 0.2),
        0 0 20px rgba(0, 232, 255, 0.08);
}

.cyber-pin-display span {
    position: relative;
    height: 32px;
    border: 1px solid rgba(0, 232, 255, 0.22);
    border-bottom: 2px solid rgba(0, 232, 255, 0.5);
    background: rgba(0, 232, 255, 0.03);
    color: var(--pin-cyan);
    text-align: center;
    font: 800 26px/32px 'JetBrains Mono', monospace;
    text-shadow: 0 0 12px var(--pin-cyan), 0 0 24px rgba(0, 232, 255, 0.4);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.cyber-pin-display span.filled {
    border-color: rgba(0, 232, 255, 0.65);
    background: rgba(0, 232, 255, 0.08);
    box-shadow:
        inset 0 0 14px rgba(0, 232, 255, 0.15),
        0 0 12px rgba(0, 232, 255, 0.2);
    animation: cyberPinDigitPop 0.22s ease-out;
}

.cyber-pin-display span.filled::after {
    content: '•';
}

.cyber-pin-keypad {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.cyber-pin-keypad button {
    position: relative;
    height: 44px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid rgba(0, 232, 255, 0.32);
    background:
        linear-gradient(155deg, rgba(0, 232, 255, 0.1) 0%, rgba(0, 0, 0, 0.78) 55%);
    color: #e8fcff;
    cursor: pointer;
    font: 700 16px/1 'Orbitron', sans-serif;
    text-shadow: 0 0 8px rgba(0, 232, 255, 0.35);
    transition: 0.14s ease;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.cyber-pin-keypad button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 2px;
    background: var(--pin-cyan);
    box-shadow: 0 0 8px var(--pin-cyan);
}

.cyber-pin-keypad button::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at 50% 0, rgba(0, 232, 255, 0.35), transparent 65%);
    transition: opacity 0.14s;
    pointer-events: none;
}

.cyber-pin-keypad button small {
    display: block;
    margin-top: 3px;
    color: rgba(0, 232, 255, 0.38);
    font: 600 6px/1 'JetBrains Mono', monospace;
    letter-spacing: 0.14em;
}

.cyber-pin-keypad button:hover {
    border-color: var(--pin-cyan);
    background: linear-gradient(155deg, rgba(0, 232, 255, 0.28), rgba(0, 40, 55, 0.92));
    color: #fff;
    box-shadow:
        0 0 18px rgba(0, 232, 255, 0.35),
        inset 0 0 16px rgba(0, 232, 255, 0.12);
    transform: translateY(-2px);
}

.cyber-pin-keypad button:hover::after {
    opacity: 1;
}

.cyber-pin-keypad button:hover small {
    color: rgba(0, 232, 255, 0.75);
}

.cyber-pin-keypad button:active {
    transform: scale(0.96) translateY(0);
    box-shadow: 0 0 28px rgba(0, 232, 255, 0.5);
}

.cyber-pin-keypad .cyber-pin-action {
    color: #ff6b9d;
    border-color: rgba(255, 107, 157, 0.4);
    text-shadow: 0 0 8px rgba(255, 107, 157, 0.4);
    font-size: 9px;
}

.cyber-pin-keypad .cyber-pin-action::before {
    background: #ff6b9d;
    box-shadow: 0 0 8px #ff6b9d;
}

.cyber-pin-keypad .cyber-pin-action:hover {
    border-color: #ff6b9d;
    background: linear-gradient(155deg, rgba(255, 107, 157, 0.22), rgba(30, 0, 12, 0.9));
    box-shadow: 0 0 18px rgba(255, 107, 157, 0.3);
}

.cyber-pin-status {
    position: relative;
    z-index: 1;
    min-height: 22px;
    margin-top: 11px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 232, 255, 0.15);
    color: rgba(0, 232, 255, 0.45);
    font: 600 7px/1.45 'Orbitron', sans-serif;
    letter-spacing: 0.1em;
}

.cyber-pin-power {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.cyber-pin-power span {
    flex: 1;
    height: 3px;
    background: rgba(0, 232, 255, 0.12);
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
}

.cyber-pin-power span:nth-child(1) { background: rgba(0, 232, 255, 0.35); box-shadow: 0 0 6px rgba(0, 232, 255, 0.3); }
.cyber-pin-power span:nth-child(2) { background: rgba(0, 232, 255, 0.5); box-shadow: 0 0 8px rgba(0, 232, 255, 0.35); }
.cyber-pin-power span:nth-child(3) { background: rgba(0, 232, 255, 0.65); box-shadow: 0 0 10px rgba(0, 232, 255, 0.4); }
.cyber-pin-power span:nth-child(4) { background: rgba(0, 232, 255, 0.8); box-shadow: 0 0 12px rgba(0, 232, 255, 0.45); }
.cyber-pin-power span:nth-child(5) {
    background: var(--pin-cyan);
    box-shadow: 0 0 14px var(--pin-glow);
    animation: cyberPinPowerPulse 1.8s ease-in-out infinite;
}

.cyber-pin-panel.is-valid {
    border-color: #55ffba;
    box-shadow:
        0 0 32px rgba(85, 255, 186, 0.28),
        inset 0 0 30px rgba(85, 255, 186, 0.08);
    animation: none;
}

.cyber-pin-panel.is-valid .cyber-pin-signal,
.cyber-pin-panel.is-valid .cyber-pin-status {
    color: #55ffba;
    text-shadow: 0 0 10px rgba(85, 255, 186, 0.5);
}

.cyber-pin-panel.is-valid .cyber-pin-scan {
    background: linear-gradient(90deg, transparent, #55ffba, transparent);
    box-shadow: 0 0 20px rgba(85, 255, 186, 0.5);
}

.cyber-pin-panel.is-error {
    animation: cyberPinError 0.28s linear 2;
    border-color: #ff3d6a;
    box-shadow:
        0 0 35px rgba(255, 61, 106, 0.4),
        inset 0 0 20px rgba(255, 61, 106, 0.08);
}

.cyber-pin-panel.is-error .cyber-pin-status {
    color: #ff3d6a;
    text-shadow: 0 0 10px rgba(255, 61, 106, 0.45);
}

.cyber-pin-panel.is-error .cyber-pin-glow-a {
    background: radial-gradient(circle, rgba(255, 61, 106, 0.45), transparent 70%);
}

.cyber-pin-circuit {
    position: absolute;
    right: -18px;
    bottom: -16px;
    width: 110px;
    height: 78px;
    opacity: 0.28;
    border-top: 1px solid var(--pin-cyan);
    border-left: 1px solid var(--pin-cyan);
    box-shadow: -4px -4px 12px rgba(0, 232, 255, 0.15);
    transform: skewX(-30deg);
}

.cyber-pin-circuit::before,
.cyber-pin-circuit::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(0, 232, 255, 0.35);
}

.cyber-pin-circuit::before {
    width: 24px;
    height: 24px;
    top: 12px;
    left: 18px;
}

.cyber-pin-circuit::after {
    width: 14px;
    height: 14px;
    top: 34px;
    left: 42px;
    box-shadow: 0 0 8px rgba(0, 232, 255, 0.2);
}

@keyframes cyberPinPulse {
    0%, 100% { box-shadow: inset 0 0 40px rgba(0, 232, 255, 0.06), inset 0 1px 0 rgba(0, 232, 255, 0.25), 0 0 28px rgba(0, 232, 255, 0.14), 0 0 60px rgba(61, 125, 255, 0.08); }
    50% { box-shadow: inset 0 0 48px rgba(0, 232, 255, 0.1), inset 0 1px 0 rgba(0, 232, 255, 0.35), 0 0 38px rgba(0, 232, 255, 0.22), 0 0 72px rgba(61, 125, 255, 0.12); }
}

@keyframes cyberPinGlowA {
    0%, 100% { opacity: 0.45; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.75; transform: translateX(-50%) scale(1.08); }
}

@keyframes cyberPinGlowB {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.6; }
}

@keyframes cyberPinScan {
    0% { top: -2px; opacity: 0; }
    8% { opacity: 0.7; }
    92% { opacity: 0.7; }
    100% { top: calc(100% + 2px); opacity: 0; }
}

@keyframes cyberPinSignal {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

@keyframes cyberPinDigitPop {
    0% { transform: scale(0.85); }
    60% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

@keyframes cyberPinPowerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

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

.cyber-btn-connect {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cyber-btn-connect small {
    color: rgba(255, 255, 255, 0.48);
    font: 600 7px/1 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
}

@media (max-width: 720px), (max-height: 760px) {
    .cyber-login-panel {
        max-height: calc(100vh - 24px);
        padding: 22px;
        overflow-y: auto;
    }

    .cyber-login-header {
        margin-bottom: 15px;
    }

    .cyber-auth-layout {
        grid-template-columns: 1fr;
    }

    .cyber-pin-panel {
        max-width: 320px;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
}

/* Corner brackets decoration */
.cyber-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--hack-cyan);
    pointer-events: none;
}
.cyber-corner.top-left {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}
.cyber-corner.top-right {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
    border-color: var(--hack-pink);
}
.cyber-corner.bottom-left {
    bottom: -1px;
    left: -1px;
    border-right: none;
    border-top: none;
    border-color: var(--hack-pink);
}
.cyber-corner.bottom-right {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

/* Header style */
.cyber-login-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}
.cyber-logo {
    font-size: 38px;
    color: var(--hack-cyan);
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.7);
    margin-bottom: 10px;
    animation: blink 2s infinite;
}
.cyber-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.2);
}
.cyber-version {
    font-size: 10px;
    color: var(--hack-pink);
    letter-spacing: 1.5px;
    display: block;
    margin-top: 5px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 0, 85, 0.5);
}

/* Scanning scanner-line */
.cyber-scanner-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hack-cyan), transparent);
    top: 0;
    opacity: 0.6;
    animation: scanLineMove 4s linear infinite;
    pointer-events: none;
}

@keyframes scanLineMove {
    0% {
        top: 0%;
    }
    100% {
        top: 100%;
    }
}

/* System status line */
.cyber-system-status {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
    border-bottom: 1px dashed rgba(0, 255, 255, 0.25);
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: bold;
}
.status-node {
    font-family: monospace;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}
.status-ping {
    color: var(--hack-green);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

/* Input Styles */
.cyber-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.input-label-tag {
    font-size: 11px;
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border-radius: 2px;
}
.input-prefix {
    color: var(--hack-cyan);
    font-weight: bold;
    padding-left: 12px;
    font-size: 16px;
    pointer-events: none;
}
.cyber-input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 16px !important;
    padding: 12px 12px 12px 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none !important;
}
.input-glow-bar {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hack-cyan);
    box-shadow: 0 0 8px var(--hack-cyan);
    transition: width 0.3s ease;
}
.input-wrapper:focus-within {
    border-color: var(--hack-cyan);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}
.input-wrapper:focus-within .input-glow-bar {
    width: 100%;
}

/* Password key styling focus with pink glow */
.cyber-input-group:nth-child(even) .input-wrapper:focus-within {
    border-color: var(--hack-pink);
    box-shadow: 0 0 12px rgba(255, 0, 85, 0.2);
}
.cyber-input-group:nth-child(even) .input-wrapper:focus-within .input-glow-bar {
    background: var(--hack-pink);
    box-shadow: 0 0 8px var(--hack-pink);
}

/* Login button with neon cyberpunk styles */
.cyber-btn-connect {
    position: relative;
    background: transparent;
    border: 1px solid var(--hack-cyan);
    color: var(--hack-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    padding: 15px 25px;
    margin-top: 30px;
    width: 100%;
    cursor: pointer;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
    border-radius: 2px;
}
.cyber-btn-connect:hover {
    background: var(--hack-cyan);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.45);
    text-shadow: none;
}
.cyber-btn-connect:active {
    transform: scale(0.98);
}

/* Footer details */
.cyber-login-footer {
    margin-top: 25px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 15px;
    font-size: 10px;
    color: #999;
    line-height: 1.6;
}
.footer-stat-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.footer-warning {
    text-align: center;
    color: rgba(255, 0, 85, 0.6);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 0, 85, 0.2);
}

@keyframes pulseCyan {
    0% {
        opacity: 0.6;
        text-shadow: 0 0 5px var(--hack-cyan);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 20px var(--hack-cyan);
    }
    100% {
        opacity: 0.6;
        text-shadow: 0 0 5px var(--hack-cyan);
    }
}

/* ============================================================================
   ROLE-BASED STYLING & ACCENT SCHEMES
   ============================================================================ */

body.role-netrunner {
    --hack-green: #00ffff;
    --glow-green: 0 0 10px rgba(0, 255, 255, 0.4);
    --hack-cyan: #00ffff;
    color: #00ffff;
}
body.role-mercenary {
    --hack-green: #ff0055;
    --glow-green: 0 0 10px rgba(255, 0, 85, 0.4);
    --hack-cyan: #ff0055;
    color: #ff0055;
}
body.role-agent {
    --hack-green: #9d00ff;
    --glow-green: 0 0 10px rgba(157, 0, 255, 0.4);
    --hack-cyan: #9d00ff;
    color: #9d00ff;
}
body.role-broker {
    --hack-green: #ffd700;
    --glow-green: 0 0 10px rgba(255, 215, 0, 0.4);
    --hack-cyan: #ffd700;
    color: #ffd700;
}
body.role-neo {
    --hack-green: #00ff41;
    --glow-green: 0 0 10px rgba(0, 255, 65, 0.4);
    --hack-cyan: #00ff41;
    color: #00ff41;
}
body.role-ghost {
    --hack-green: #ffffff;
    --glow-green: 0 0 10px rgba(255, 255, 255, 0.4);
    --hack-cyan: #ffffff;
    color: #ffffff;
}
body.role-breaker {
    --hack-green: #ff3366;
    --glow-green: 0 0 10px rgba(255, 51, 102, 0.4);
    --hack-cyan: #ff3366;
    color: #ff3366;
}
body.role-lord {
    --hack-green: #ff33aa;
    --glow-green: 0 0 15px rgba(255, 51, 170, 0.5);
    --hack-cyan: #00ffff;
    color: #ff33aa;
}
body.role-argus {
    --hack-green: #ff0000;
    --glow-green: 0 0 10px rgba(255, 0, 0, 0.4);
    --hack-cyan: #ff0000;
    color: #ff0000;
}

/* REGISTRATION ROLE SELECT CARDS */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.role-select-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.role-select-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

.role-select-card.active {
    background: rgba(255, 255, 255, 0.05);
}

.role-card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}

.role-title-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.role-desc-text {
    font-size: 10px;
    color: #888;
    line-height: 1.3;
}

/* === VIRTUAL OS LOGIN — ROLE PREVIEW & ANIMATIONS === */

.login-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: none;
    opacity: 0.22;
    animation: loginOrbFloat 8s ease-in-out infinite;
}

.login-orb-1 {
    width: 320px;
    height: 320px;
    background: rgba(0, 255, 255, 0.15);
    top: 15%;
    left: 20%;
}

.login-orb-2 {
    width: 280px;
    height: 280px;
    background: rgba(255, 0, 85, 0.12);
    bottom: 10%;
    right: 15%;
    animation-delay: -4s;
}

.login-scan-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 255, 0.03) 48%, rgba(0, 255, 255, 0.06) 50%, rgba(0, 255, 255, 0.03) 52%, transparent 100%);
    animation: loginScanSweep 6s linear infinite;
}

@keyframes loginOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.08); }
}

@keyframes loginScanSweep {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.cyber-login-panel {
    animation: loginPanelIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes loginPanelIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cyber-login-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(0,255,255,0.25), transparent 40%, rgba(255,0,85,0.15)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    border-radius: 4px;
}

.intro-container {
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 60px rgba(0, 255, 255, 0.08), inset 0 0 40px rgba(0, 0, 0, 0.8);
    backdrop-filter: none;
    background: rgba(4, 6, 10, 0.94);
    position: relative;
    z-index: 10;
}

.intro-container.intro-register-mode {
    width: min(1120px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100vh - 32px);
    margin: 0 auto;
    align-self: center;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.role-preview-stage {
    --role-color: var(--hack-cyan);
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 14px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid color-mix(in srgb, var(--role-color) 30%, transparent);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.role-preview-stage.role-preview-compact {
    margin-bottom: 10px;
    padding: 12px 14px;
}

.role-preview-ring {
    position: absolute;
    width: 72px;
    height: 72px;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px dashed color-mix(in srgb, var(--role-color) 50%, transparent);
    border-radius: 50%;
    animation: roleRingSpin 8s linear infinite;
    pointer-events: none;
}

.role-preview-ring-2 {
    width: 88px;
    height: 88px;
    left: 10px;
    animation-direction: reverse;
    animation-duration: 12s;
    opacity: 0.5;
}

.role-preview-icon {
    position: relative;
    z-index: 2;
    font-size: 32px;
    width: 48px;
    text-align: center;
    filter: drop-shadow(0 0 10px var(--role-color));
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.role-preview-meta {
    position: relative;
    z-index: 2;
    text-align: left;
    flex: 1;
}

.role-preview-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--role-color);
    text-shadow: 0 0 12px color-mix(in srgb, var(--role-color) 40%, transparent);
    transition: color 0.35s ease;
}

.role-preview-desc,
.role-preview-fx-label {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
    line-height: 1.35;
}

.role-preview-fx-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    z-index: 1;
}

.role-preview-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    background-image: radial-gradient(circle at 20% 50%, var(--role-color) 1px, transparent 1px),
                      radial-gradient(circle at 70% 30%, var(--role-color) 1px, transparent 1px),
                      radial-gradient(circle at 40% 80%, var(--role-color) 1px, transparent 1px);
    background-size: 100% 100%;
    transition: opacity 0.3s ease;
}

.role-preview-stage.role-preview-pulse {
    animation: rolePreviewPulse 0.55s ease;
}

.role-preview-stage.role-preview-pulse .role-preview-icon {
    transform: scale(1.2) rotate(-5deg);
}

.role-preview-stage.role-preview-pulse .role-preview-particles {
    opacity: 0.6;
    animation: roleParticleBurst 0.55s ease forwards;
}

@keyframes rolePreviewPulse {
    0% { box-shadow: 0 0 0 rgba(0,0,0,0); }
    40% { box-shadow: 0 0 30px color-mix(in srgb, var(--role-color) 35%, transparent); }
    100% { box-shadow: 0 0 12px color-mix(in srgb, var(--role-color) 15%, transparent); }
}

@keyframes roleRingSpin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes roleParticleBurst {
    0% { transform: scale(0.8); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 0; }
}

/* Role-specific preview FX */
.role-preview-stage.fx-netrunner .role-preview-fx-layer {
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, color-mix(in srgb, var(--role-color) 8%, transparent) 2px, color-mix(in srgb, var(--role-color) 8%, transparent) 4px);
    animation: matrixRainPreview 1.2s linear infinite;
}

.role-preview-stage.fx-mercenary .role-preview-fx-layer {
    animation: glitchPreview 0.35s steps(2) infinite;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--role-color) 15%, transparent), transparent);
}

.role-preview-stage.fx-agent .role-preview-fx-layer {
    background: radial-gradient(circle at 30% 50%, color-mix(in srgb, var(--role-color) 20%, transparent), transparent 60%),
                radial-gradient(circle at 70% 50%, color-mix(in srgb, var(--role-color) 15%, transparent), transparent 50%);
    animation: neuralPulse 2s ease-in-out infinite;
}

.role-preview-stage.fx-broker .role-preview-fx-layer {
    background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--role-color) 25%, transparent) 50%, transparent 70%);
    animation: goldSweep 2.5s ease-in-out infinite;
}

@keyframes matrixRainPreview {
    from { background-position: 0 0; }
    to { background-position: 0 20px; }
}

@keyframes glitchPreview {
    0%, 100% { transform: translate(0); opacity: 0.3; }
    50% { transform: translate(3px, -2px); opacity: 0.5; }
}

@keyframes neuralPulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.55; }
}

@keyframes goldSweep {
    0%, 100% { transform: translateX(-20%); opacity: 0.2; }
    50% { transform: translateX(20%); opacity: 0.45; }
}

.login-role-select {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    padding: 8px 10px;
    border-color: rgba(255,255,255,0.12);
    color: #fff;
    background: rgba(0,0,0,0.6);
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.login-role-select:focus {
    border-color: var(--hack-cyan);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
    outline: none;
}

/* Enhanced role cards */
.role-select-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.role-card-scan {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    pointer-events: none;
    z-index: 2;
}

.role-select-card:hover .role-card-scan {
    animation: roleCardScan 0.7s ease forwards;
}

.role-select-card.active {
    transform: translateY(-3px);
}

.role-select-card.selecting {
    animation: roleCardSelect 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.role-select-card.selecting .role-card-scan {
    animation: roleCardScan 0.5s ease forwards;
}

@keyframes roleCardScan {
    from { left: -60%; }
    to { left: 120%; }
}

.intro-container.intro-register-mode {
    width: min(1120px, calc(100vw - 24px));
    max-width: none;
    height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    margin: 0 auto;
    align-self: center;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    min-height: 0;
}

.intro-alert-register {
    text-align: left;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    animation: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.55) rgba(0, 0, 0, 0.4);
}

.intro-alert-register::-webkit-scrollbar {
    width: 10px;
}

.intro-alert-register::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
}

.intro-alert-register::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.45);
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.35);
}

.intro-alert-register::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.65);
}

.intro-alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 16px 20px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 5;
    border: 1px solid rgba(255, 0, 85, 0.45);
    background:
        linear-gradient(90deg, rgba(255, 0, 85, 0.12), transparent 55%),
        rgba(8, 0, 4, 0.92);
    box-shadow: 0 0 28px rgba(255, 0, 85, 0.18), inset 0 0 24px rgba(255, 0, 85, 0.06);
}

.intro-alert-banner .alert-title {
    font-size: clamp(16px, 2.2vw, 22px);
    margin-bottom: 6px;
}

.intro-alert-banner .alert-text {
    margin: 0;
    font-size: 13px;
}

.intro-timer-box {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid rgba(255, 0, 85, 0.55);
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.25);
}

.intro-timer-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 2px;
}

.intro-timer-unit {
    font-size: 18px;
    margin-left: 2px;
}

/* --- CYBER REGISTRATION FORM --- */

.cyber-register {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
}

.intro-alert-register::-webkit-scrollbar-track,
.cyber-register::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.45);
    border-left: 1px solid rgba(0, 240, 255, 0.12);
}

.intro-alert-register::-webkit-scrollbar-thumb,
.cyber-register::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.7), rgba(255, 0, 85, 0.55));
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

.intro-alert-register::-webkit-scrollbar-thumb:hover,
.cyber-register::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.95), rgba(255, 0, 85, 0.75));
}

#login-screen.login-register-active #intro-alert.intro-alert-register {
    display: flex !important;
    overflow-y: auto !important;
}

.cyber-register-shell {
    --reg-cyan: #00f0ff;
    --reg-cyan-rgb: 0, 240, 255;
    --reg-pink: #ff0055;
    --reg-pink-rgb: 255, 0, 85;
    --reg-green: #00ff88;
    position: relative;
    padding: 28px 28px 24px;
    background:
        radial-gradient(circle at 12% 0%, rgba(var(--reg-cyan-rgb), 0.14), transparent 38%),
        radial-gradient(circle at 88% 100%, rgba(var(--reg-pink-rgb), 0.1), transparent 42%),
        rgba(3, 5, 10, 0.96);
    border: 1px solid rgba(var(--reg-cyan-rgb), 0.35);
    box-shadow:
        0 0 60px rgba(var(--reg-cyan-rgb), 0.12),
        0 0 120px rgba(var(--reg-pink-rgb), 0.08),
        inset 0 0 40px rgba(0, 0, 0, 0.65);
    overflow: visible;
}

.cyber-register-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.07;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.12) 2px, rgba(255, 255, 255, 0.12) 4px);
}

.cyber-register-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: var(--reg-cyan);
    border-style: solid;
    opacity: 0.85;
    z-index: 2;
    box-shadow: 0 0 10px rgba(var(--reg-cyan-rgb), 0.45);
}

.cyber-register-corner-tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.cyber-register-corner-tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.cyber-register-corner-bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.cyber-register-corner-br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.cyber-register-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    top: -2px;
    background: linear-gradient(90deg, transparent, var(--reg-cyan), transparent);
    box-shadow: 0 0 16px var(--reg-cyan);
    animation: cyberRegisterScan 4.5s linear infinite;
    pointer-events: none;
    z-index: 3;
    opacity: 0.75;
}

@keyframes cyberRegisterScan {
    0% { top: -2px; opacity: 0; }
    8% { opacity: 0.85; }
    92% { opacity: 0.85; }
    100% { top: calc(100% + 2px); opacity: 0; }
}

.cyber-register-head {
    position: relative;
    z-index: 2;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(var(--reg-cyan-rgb), 0.22);
}

.cyber-register-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--reg-green);
    border: 1px solid rgba(0, 255, 136, 0.35);
    background: rgba(0, 255, 136, 0.06);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.45);
}

.cyber-register-title {
    margin: 0 0 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    letter-spacing: 3px;
    color: #fff;
    text-shadow:
        0 0 12px rgba(var(--reg-cyan-rgb), 0.55),
        0 0 28px rgba(var(--reg-pink-rgb), 0.25);
}

.cyber-register-sub {
    margin: 0;
    color: #8a939e;
    font-size: 13px;
}

.cyber-register-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cyber-register-section {
    padding: 16px 16px 14px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(var(--reg-cyan-rgb), 0.18);
    box-shadow: inset 0 0 24px rgba(var(--reg-cyan-rgb), 0.04);
}

.cyber-register-section-wide {
    grid-column: 1 / -1;
}

.cyber-register-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--reg-cyan);
    text-shadow: 0 0 10px rgba(var(--reg-cyan-rgb), 0.35);
}

.cyber-register-section-title span {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(var(--reg-cyan-rgb), 0.45);
    color: var(--reg-green);
    font-size: 10px;
}

.cyber-field {
    display: block;
    margin-bottom: 14px;
}

.cyber-field:last-child {
    margin-bottom: 0;
}

.cyber-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #7f8a96;
}

.cyber-field-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    min-height: 44px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(var(--reg-cyan-rgb), 0.28);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cyber-field-wrap:focus-within {
    border-color: var(--reg-cyan);
    box-shadow:
        0 0 0 1px rgba(var(--reg-cyan-rgb), 0.35),
        0 0 18px rgba(var(--reg-cyan-rgb), 0.22);
}

.cyber-field-prefix {
    color: var(--reg-cyan);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(var(--reg-cyan-rgb), 0.5);
}

.cyber-field-input,
.cyber-field-select,
.cyber-field-textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #eef6f8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

.cyber-field-select-wrap {
    padding: 0;
}

.cyber-field-select {
    padding: 11px 12px;
    cursor: pointer;
    appearance: none;
    background:
        linear-gradient(90deg, rgba(var(--reg-cyan-rgb), 0.06), transparent),
        rgba(0, 0, 0, 0.55);
}

.cyber-field-select option {
    background: #05080c;
    color: #fff;
}

.cyber-field-textarea {
    min-height: 88px;
    padding: 12px;
    resize: vertical;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(var(--reg-cyan-rgb), 0.28);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cyber-field-textarea:focus {
    border-color: var(--reg-cyan);
    box-shadow: 0 0 18px rgba(var(--reg-cyan-rgb), 0.2);
}

.cyber-field-hint {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    color: #5f6a75;
}

.cyber-threat-meter {
    padding: 4px 2px 0;
}

.cyber-threat-slider {
    width: 100%;
    accent-color: var(--reg-pink);
    cursor: pointer;
}

.cyber-threat-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 1px;
    color: #66707a;
}

.cyber-threat-labels #intro-threat-label {
    color: var(--reg-pink);
    text-shadow: 0 0 8px rgba(var(--reg-pink-rgb), 0.45);
    font-weight: 700;
}

.cyber-register-role-preview {
    margin-bottom: 14px;
}

.cyber-register-roles.roles-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.cyber-register-roles .role-select-card {
    padding: 12px 10px;
    min-height: 92px;
}

.cyber-register-footer {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(var(--reg-cyan-rgb), 0.18);
}

.cyber-register-terms {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.5;
    color: #9aa3ad;
}

.cyber-register-terms input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cyber-register-terms-box {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 1px solid rgba(var(--reg-cyan-rgb), 0.45);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 0 8px rgba(var(--reg-cyan-rgb), 0.08);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.cyber-register-terms input:checked + .cyber-register-terms-box {
    background:
        radial-gradient(circle at center, rgba(var(--reg-cyan-rgb), 0.55), rgba(var(--reg-cyan-rgb), 0.15));
    box-shadow: 0 0 12px rgba(var(--reg-cyan-rgb), 0.45);
}

.cyber-register-terms b {
    color: var(--reg-cyan);
}

.cyber-register-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 12px;
    color: #ffb4c7;
    border: 1px solid rgba(var(--reg-pink-rgb), 0.45);
    background: rgba(var(--reg-pink-rgb), 0.08);
    box-shadow: 0 0 16px rgba(var(--reg-pink-rgb), 0.12);
}

.cyber-register-submit {
    position: relative;
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(var(--reg-cyan-rgb), 0.55);
    background: linear-gradient(90deg, rgba(var(--reg-cyan-rgb), 0.16), rgba(var(--reg-pink-rgb), 0.12));
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow:
        0 0 24px rgba(var(--reg-cyan-rgb), 0.2),
        inset 0 0 20px rgba(var(--reg-cyan-rgb), 0.08);
}

.cyber-register-submit:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 32px rgba(var(--reg-cyan-rgb), 0.35),
        0 0 48px rgba(var(--reg-pink-rgb), 0.15);
}

.cyber-register-submit-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.16) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: cyberRegisterBtnShine 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cyberRegisterBtnShine {
    0%, 55% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

.cyber-register-submit-text {
    position: relative;
    z-index: 1;
    text-shadow: 0 0 12px rgba(var(--reg-cyan-rgb), 0.55);
}

@media (max-width: 900px) {
    .intro-alert-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .cyber-register-grid {
        grid-template-columns: 1fr;
    }

    .cyber-register-roles.roles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cyber-register-shell {
        padding: 20px 16px 18px;
    }
}

@media (max-width: 520px) {
    .cyber-register-roles.roles-grid {
        grid-template-columns: 1fr;
    }
}
