html {
    overflow-y: scroll; 
}
:root {
    --bg: #050505;
    --card: #0f1115;
    --border: #1f2329;
    --accent: #3b82f6;
    --malware: #ef4444;
    --safe: #22c55e;
    --text: #e2e8f0;
    --text-dim: #94a3b8;
}

body {
    transition: padding-right 0s;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Courier New', Courier, monospace; 
    margin: 0;
    padding: 40px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

header { text-align: center; margin-bottom: 50px; }
h1 { font-size: 3rem; margin: 0; text-shadow: 0 0 10px var(--accent); }
p { color: var(--text-dim); }

/* ── TOOLS NAV BUTTON ── */
.tools-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 9px 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-dim);
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.tools-nav-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.06), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}
.tools-nav-btn:hover::before { transform: translateX(100%); }
.tools-nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 16px rgba(59,130,246,0.15), inset 0 0 16px rgba(59,130,246,0.04);
}
.tools-nav-icon {
    font-style: normal;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.3s;
}
.tools-nav-btn:hover .tools-nav-icon {
    opacity: 1;
    transform: rotate(90deg);
}
.tools-nav-arrow {
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s, transform 0.2s;
    font-size: 0.9rem;
}
.tools-nav-btn:hover .tools-nav-arrow {
    opacity: 1;
    transform: translateX(0);
}

.glitch:hover {
    text-shadow: 2px 0 var(--malware), -2px 0 var(--accent);
}


.upload-area {
    border: 2px dashed var(--border);
    background: rgba(15, 17, 21, 0.5);
    border-radius: 12px;
    padding: 80px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    backdrop-filter: blur(5px);
}
.upload-area:hover { border-color: var(--accent); box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }
.icon { font-size: 3rem; margin-bottom: 10px; }
.browse-btn { color: var(--accent); text-decoration: underline; }


.hidden { display: none !important; }


.verdict-card {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid var(--border);
    animation: slideUp 0.5s ease-out;
}
.verdict-card.scanning { border-color: var(--accent); background: rgba(59, 130, 246, 0.1); }
.verdict-card.malware { 
    border-color: var(--malware); 
    background: rgba(239, 68, 68, 0.1); 
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
}
.verdict-card.safe { border-color: var(--safe); background: rgba(34, 197, 94, 0.1); }


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    animation: slideUp 0.6s ease-out;
}
.card h3 { margin-top: 0; border-bottom: 1px solid var(--border); padding-bottom: 10px; color: var(--text-dim); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.danger-text { color: var(--malware) !important; text-shadow: 0 0 5px var(--malware); }

.list-box {
    list-style: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.85rem;
}
.list-box li {
    word-break: break-word;        
    overflow-wrap: break-word;    
    white-space: normal;         
    line-height: 1.4;             
    padding: 8px 0;               
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.empty-msg { font-size: 0.8rem; color: var(--text-dim); font-style: italic; }
.list-box li:last-child {
    border-bottom: none;
}


.malware-entry-title {
    color: var(--malware);
    font-weight: bold;
    display: block;             
}

.btn-primary {
    margin-top: 30px;
    padding: 12px;
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: 0.2s;
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #000; font-weight: bold; }

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


::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }


.policy-notice {
    margin-top: 15px;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: center;
    opacity: 0.8;
}

.policy-notice a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dotted var(--accent);
    transition: all 0.2s;
}

.policy-notice a:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
    text-shadow: 0 0 5px var(--accent);
}


.verdict-card.obfuscated {
    border-color: #eab308;
    background: rgba(234, 179, 8, 0.1);
    color: #facc15;
    margin-bottom: 10px;
}


.badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    margin-left: 10px;
    color: #000;
}


.card {
    transition: transform 0.2s ease;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.danger-text { 
    color: var(--malware); 
    animation: pulse 1.5s infinite;
}

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


.download-sample { 
    font-size: 0.7rem; 
    color: var(--malware); 
    border: 1px solid var(--malware); 
    padding: 3px 8px; 
    text-decoration: none; 
    border-radius: 4px; 
    float: right;
    font-weight: bold;
    text-transform: uppercase;
}
.download-sample:hover { 
    background: var(--malware); 
    color: #000; 
}


.verdict-card.obfuscated-box { 
    border-color: var(--warning); 
    background: rgba(234, 179, 8, 0.1); 
    color: var(--warning); 
    margin-bottom: 10px;
}


.badge { 
    font-size: 0.7rem; 
    padding: 2px 6px; 
    border-radius: 4px; 
    margin-left: 8px; 
    color: #000; 
    font-weight: bold; 
}

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

.secondary-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent);
    transform: translateY(-2px); 
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%); 
    background: rgba(34, 197, 94, 0.9); 
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none; 
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap; 
}
.toast.hidden {
    display: none;
    opacity: 0;
    transform: translate(-50%, 20px); 
}

.toast.success { 
    background: rgba(34, 197, 94, 0.8); 
    border-color: #22c55e;
}

.toast.info { 
    background: rgba(59, 130, 246, 0.8); 
    border-color: #3b82f6;
}

.toast.error { 
    background: rgba(239, 68, 68, 0.8); 
    border-color: #ef4444;
}

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

.toast.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}




#verdict-desc strong {
    color: var(--accent);
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--accent);
}

#webhook-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
    border-radius: 6px;
    word-break: break-all;
}

.nuke-btn {
    background: linear-gradient(135deg, #ff4b2b, #ff416c);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    margin-left: 10px;
    flex-shrink: 0;
}

.nuke-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    filter: brightness(1.2);
}

.nuke-btn {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.risk-meter-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-top: 15px;
    overflow: hidden;
}

.risk-bar-fill {
    height: 100%;
    width: 0%; 
    transition: width 1s ease-in-out, background-color 1s ease;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}
.modal-content {
    background: rgba(15, 15, 15, 0.95);
    border: 2px solid rgba(239, 68, 68, 0.3); 
    border-radius: 12px;
    margin: 0;
    position: relative;
    padding: 30px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.1);
    transform: scale(1); 
    animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
body.modal-open {
    height: 100vh;
    overflow: hidden;
}
#custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-header h3 {
    color: #ef4444;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.modal-footer button {
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-secondary {
    background: #333;
    color: white;
    border: none;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.hidden { display: none !important; }


#nested-jar-banner {
    animation: slideUp 0.4s ease-out;
}

#nested-jar-banner strong {
    font-family: 'Courier New', Courier, monospace;
}


.file-tree-box {
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    padding: 10px;
    background: rgba(0,0,0,0.2);
}

.file-entry {
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    transition: 0.2s;
    border-radius: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}
.file-entry:hover { background: rgba(59, 130, 246, 0.1); color: var(--accent); }
.file-entry.suspicious-file { color: #eab308; }
.file-entry.malware-file { color: #ef4444; font-weight: bold; background: rgba(239, 68, 68, 0.1); }

.large-modal {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    background: #0d0d10;
    border: 1px solid var(--border);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.code-body {
    flex: 1;
    overflow: auto;
    background: #050505;
    padding: 0;
    display: flex;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.line-numbers {
    width: 50px;
    background: #0f1115;
    border-right: 1px solid var(--border);
    color: #4b5563;
    text-align: right;
    padding: 10px 5px;
    user-select: none;
    line-height: 1.5;
}

#source-code {
    flex: 1;
    padding: 10px 20px;
    margin: 0;
    color: #a5b3ce;
    font-family: 'Consolas', 'Monaco', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
}

.close-btn { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 0 10px; }
.small-btn { padding: 4px 10px; font-size: 0.7rem; margin-right: 10px; }
.info-footer { font-size: 0.8rem; color: var(--text-dim); padding: 10px 20px; background: var(--card); }fo-footer { font-size: 0.8rem; color: var(--text-dim); padding: 10px 20px; background: var(--card); }

.hl-string { color: #a5d6ff; } 
.hl-keyword { color: #ff7b72; } 
.hl-class { color: #d2a8ff; }   
.hl-method { color: #79c0ff; }  
.hl-threat { background: rgba(239, 68, 68, 0.3); color: #fff; border-radius: 2px; padding: 0 4px; font-weight: bold; }
.hl-comment { color: #8b949e; font-style: italic; }


.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}
.modal-content {
    background: var(--card);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.modal-header {
    padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--card);
}

#file-search:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.file-tree-box {
    max-height: 400px; 
    overflow-y: auto;
    background: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

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

.modal-content {
    cursor: default; 
}

.home-link {
    text-decoration: none;
    color: inherit;        
    cursor: pointer;
}

.home-link:hover .glitch {
    opacity: 0.8;          
}

.file-entry.malicious-file {
    background-color: rgba(239, 68, 68, 0.2) !important; 
    border-left: 3px solid #ef4444;
}

.file-entry.malicious-file span {
    color: #fca5a5; 
    font-weight: bold;
}



/* MOBILE SUPPORT (finally)*/
@media (max-width: 768px) {

    #source-modal.modal-overlay {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    .large-modal {
        width: 100vw;
        height: 100dvh; 
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        border: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .modal-header {
        flex-shrink: 0;
        padding: 10px 12px;
        gap: 8px;
        min-height: 48px;
        box-sizing: border-box;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    #source-title {
        font-size: 0.72rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
        margin: 0;
    }

    .modal-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .small-btn {
        padding: 4px 8px;
        font-size: 0.65rem;
        margin-right: 0;
        white-space: nowrap;
    }

    .close-btn {
        font-size: 1.2rem;
        padding: 0 4px;
        line-height: 1;
    }

    .code-body {
        flex: 1;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
    }

    #source-code {
        font-size: 11px;
        padding: 8px 10px;
        word-break: break-all;
        white-space: pre-wrap;
    }

    .line-numbers {
        font-size: 11px;
        width: 32px;
        padding: 8px 4px;
    }

    .info-footer {
        flex-shrink: 0;
        font-size: 0.7rem;
        padding: 8px 12px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .info-footer {
        display: none;
    }
}

@media (max-width: 768px) {

    #source-modal.modal-overlay {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    .large-modal {
        width: 100vw;
        height: 100dvh; 
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        border: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .modal-header {
        flex-shrink: 0;
        padding: 10px 12px;
        gap: 8px;
        min-height: 48px;
        box-sizing: border-box;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    #source-title {
        font-size: 0.72rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0; 
        margin: 0;
    }

    .modal-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .small-btn {
        padding: 4px 8px;
        font-size: 0.65rem;
        margin-right: 0;
        white-space: nowrap;
    }

    .close-btn {
        font-size: 1.2rem;
        padding: 0 4px;
        line-height: 1;
    }

    .code-body {
        flex: 1;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 0; 
    }

    #source-code {
        font-size: 11px;
        padding: 8px 10px;
        word-break: break-all;
        white-space: pre-wrap;
    }

    .line-numbers {
        font-size: 11px;
        width: 32px;
        padding: 8px 4px;
    }

    .info-footer {
        flex-shrink: 0;
        font-size: 0.7rem;
        padding: 8px 12px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .info-footer {
        display: none;
    }
}
/* the end. */