* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {

    min-height: 100vh;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 50% -10%,
            #1e3a8a 0%,
            #101936 28%,
            #080b16 55%,
            #03040a 100%
        );

    overflow-x: hidden;
}


body::before {

    content: "";

    position: fixed;

    width: 600px;
    height: 600px;

    top: -300px;
    left: 50%;

    transform: translateX(-50%);

    background:
        rgba(14, 165, 233, 0.13);

    filter: blur(100px);

    pointer-events: none;
}


/* =========================================
   CONTAINER
========================================= */

.container {

    width: min(1000px, 92%);

    margin: auto;

    padding: 55px 0;
}


/* =========================================
   HEADER
========================================= */

.header {

    text-align: center;

    margin-bottom: 38px;
}


.logo {

    font-size: 44px;

    font-weight: 900;

    letter-spacing: -1px;

    text-shadow:
        0 0 30px
        rgba(56, 189, 248, .25);
}


.logo span {

    color: #38bdf8;
}


.subtitle {

    margin-top: 10px;

    color: #94a3b8;

    font-size: 14px;
}


/* =========================================
   UPLOAD
========================================= */

.upload-box {

    position: relative;

    overflow: hidden;

    border:
        1px dashed
        rgba(148, 163, 184, .35);

    border-radius: 24px;

    padding: 65px 25px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, .92),
            rgba(8, 15, 30, .82)
        );

    box-shadow:
        0 25px 80px
        rgba(0, 0, 0, .35),

        inset 0 1px 0
        rgba(255,255,255,.04);

    transition: .3s ease;

    cursor: pointer;
}


.upload-box:hover,
.upload-box.dragover {

    border-color: #38bdf8;

    transform: translateY(-4px);

    box-shadow:
        0 25px 80px
        rgba(14, 165, 233, .15),

        inset 0 1px 0
        rgba(255,255,255,.05);
}


.upload-icon {

    width: 82px;
    height: 82px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin:
        0 auto 22px;

    border-radius: 22px;

    background:
        rgba(14, 165, 233, .09);

    border:
        1px solid
        rgba(56, 189, 248, .2);

    font-size: 42px;

    box-shadow:
        0 0 35px
        rgba(56,189,248,.08);
}


.upload-title {

    font-size: 24px;

    font-weight: 800;
}


.upload-info {

    margin-top: 10px;

    color: #94a3b8;

    font-size: 14px;
}


.upload-info b {

    color: #e2e8f0;
}


.upload-btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 25px;

    padding: 14px 30px;

    border-radius: 13px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #0ea5e9,
            #2563eb
        );

    font-size: 14px;

    font-weight: 800;

    box-shadow:
        0 10px 30px
        rgba(37,99,235,.25);

    cursor: pointer;

    transition: .25s;
}


.upload-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 15px 35px
        rgba(37,99,235,.35);
}


#fileInput {

    display: none;
}


.file-name {

    margin-top: 18px;

    color: #38bdf8;

    font-size: 13px;

    font-weight: 700;

    word-break: break-all;
}


.upload-hint {

    margin-top: 18px;

    color: #64748b;

    font-size: 12px;
}


/* =========================================
   LOADING
========================================= */

.loading {

    display: none;

    text-align: center;

    margin-top: 30px;

    padding: 25px;

    color: #94a3b8;
}


.loader {

    width: 48px;
    height: 48px;

    margin: auto;

    border:
        4px solid
        #1e293b;

    border-top-color:
        #38bdf8;

    border-radius: 50%;

    animation:
        spin .8s linear infinite;
}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


.loading-text {

    margin-top: 14px;

    font-size: 14px;
}


/* =========================================
   RESULT
========================================= */

.result {

    display: none;

    margin-top: 30px;
}


.result-card {

    border:
        1px solid
        rgba(51,65,85,.8);

    border-radius: 22px;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(15,23,42,.94),
            rgba(7,12,25,.94)
        );

    box-shadow:
        0 25px 70px
        rgba(0,0,0,.35);
}


.result-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    flex-wrap: wrap;
}


.result-title {

    font-size: 25px;

    font-weight: 900;
}


.status {

    margin-top: 8px;

    color: #94a3b8;

    font-size: 14px;
}


.score {

    font-size: 38px;

    font-weight: 900;

    letter-spacing: -1px;
}


.safe {

    color: #22c55e;

    text-shadow:
        0 0 20px
        rgba(34,197,94,.25);
}


.warning {

    color: #f59e0b;

    text-shadow:
        0 0 20px
        rgba(245,158,11,.25);
}


.danger {

    color: #ef4444;

    text-shadow:
        0 0 20px
        rgba(239,68,68,.25);
}


/* =========================================
   PROGRESS
========================================= */

.progress {

    width: 100%;

    height: 9px;

    margin: 25px 0;

    overflow: hidden;

    border-radius: 20px;

    background: #1e293b;
}


.progress-bar {

    width: 0;

    height: 100%;

    border-radius: inherit;

    transition: width .7s ease;
}


.progress-safe {
    background: #22c55e;
}


.progress-warning {
    background: #f59e0b;
}


.progress-danger {
    background: #ef4444;
}


/* =========================================
   SUMMARY
========================================= */

.summary {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;

    margin-bottom: 28px;
}


.stat {

    padding: 20px;

    border:
        1px solid
        #1e293b;

    border-radius: 15px;

    background:
        rgba(2,8,23,.65);

    text-align: center;
}


.stat-number {

    font-size: 27px;

    font-weight: 900;
}


.stat-label {

    margin-top: 6px;

    color: #64748b;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .5px;
}


/* =========================================
   FINDINGS
========================================= */

.findings-title {

    margin-bottom: 15px;

    font-size: 19px;

    font-weight: 800;
}


.finding {

    padding: 18px;

    margin-bottom: 10px;

    border:
        1px solid
        #1e293b;

    border-radius: 14px;

    background: #080f1d;

    transition: .2s;
}


.finding:hover {

    transform: translateX(3px);

    border-color: #334155;
}


.finding.high {

    border-left:
        4px solid
        #ef4444;
}


.finding.medium {

    border-left:
        4px solid
        #f59e0b;
}


.finding.low {

    border-left:
        4px solid
        #38bdf8;
}


.finding-name {

    font-size: 14px;

    font-weight: 800;
}


.finding-detail {

    margin-top: 7px;

    color: #94a3b8;

    font-size: 13px;

    line-height: 1.55;
}


.line {

    display: inline-block;

    margin-top: 8px;

    color: #64748b;

    font-size: 11px;
}


.no-findings {

    padding: 20px;

    border:
        1px solid
        rgba(34,197,94,.2);

    border-radius: 13px;

    color: #86efac;

    background:
        rgba(22,101,52,.12);
}


/* =========================================
   WARNING
========================================= */

.warning-box {

    margin-top: 20px;

    padding: 16px;

    border:
        1px solid
        rgba(245,158,11,.22);

    border-radius: 13px;

    color: #fbbf24;

    background:
        rgba(245,158,11,.06);

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================
   RESET
========================================= */

.reset-btn {

    margin-top: 20px;

    padding: 12px 20px;

    border:
        1px solid
        #334155;

    border-radius: 11px;

    color: #e2e8f0;

    background: #111827;

    cursor: pointer;

    transition: .2s;
}


.reset-btn:hover {

    background: #1e293b;

    border-color: #475569;
}


/* =========================================
   FOOTER
========================================= */

footer {

    margin-top: 35px;

    text-align: center;

    color: #475569;

    font-size: 12px;
}


/* =================================================
   SECURITY POPUP
================================================= */

.security-overlay {

    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(2, 6, 23, .72);

    backdrop-filter: blur(7px);

    -webkit-backdrop-filter: blur(7px);
}


/* POPUP CARD */

.security-status {

    position: relative;

    width: min(430px, 92vw);

    padding: 38px 28px 30px;

    text-align: center;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, .98),
            rgba(5, 10, 22, .98)
        );

    border:
        1px solid
        rgba(71, 85, 105, .8);

    box-shadow:
        0 30px 100px
        rgba(0, 0, 0, .65);

    animation:
        securityPopupIn
        .35s
        cubic-bezier(.2,.8,.2,1);
}


@keyframes securityPopupIn {

    0% {

        opacity: 0;

        transform:
            translateY(25px)
            scale(.88);

    }

    100% {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }
}


/* ICON */

.security-icon {

    width: 88px;
    height: 88px;

    margin:
        0 auto 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 43px;
}


/* TEXT */

.security-text {

    font-size: 29px;

    font-weight: 900;

    letter-spacing: .5px;
}


.security-subtext {

    margin-top: 10px;

    color: #94a3b8;

    font-size: 13px;

    line-height: 1.5;
}


/* CLOSE */

.security-close {

    margin-top: 24px;

    min-width: 120px;

    padding: 12px 25px;

    border: none;

    border-radius: 12px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #0ea5e9,
            #2563eb
        );

    font-size: 13px;

    font-weight: 800;

    letter-spacing: .5px;

    cursor: pointer;

    box-shadow:
        0 8px 25px
        rgba(37, 99, 235, .3);

    transition: .2s ease;
}


.security-close:hover {

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px
        rgba(37, 99, 235, .45);
}


/* =========================================
   SAFE POPUP
========================================= */

.security-status.safe-status {

    border-color:
        rgba(34, 197, 94, .45);

    background:
        radial-gradient(
            circle at center,
            rgba(34, 197, 94, .14),
            rgba(5, 10, 22, .98) 70%
        );

    box-shadow:
        0 0 70px
        rgba(34, 197, 94, .18),

        0 30px 100px
        rgba(0, 0, 0, .65);
}


.safe-status .security-icon {

    background:
        rgba(34, 197, 94, .13);

    border:
        1px solid
        rgba(34, 197, 94, .4);

    box-shadow:
        0 0 40px
        rgba(34, 197, 94, .3);

    animation:
        safePulse
        1.8s
        infinite;
}


.safe-status .security-text {

    color:
        #22c55e;

    text-shadow:
        0 0 25px
        rgba(34, 197, 94, .5);
}


@keyframes safePulse {

    0%,
    100% {

        transform: scale(1);

    }

    50% {

        transform: scale(1.08);

        box-shadow:
            0 0 55px
            rgba(34, 197, 94, .45);

    }
}


/* =========================================
   KEYLOGGER
========================================= */

.security-status.keylogger-status {

    border-color:
        rgba(239, 68, 68, .55);

    background:
        radial-gradient(
            circle at center,
            rgba(239, 68, 68, .18),
            rgba(5, 10, 22, .98) 70%
        );

    box-shadow:
        0 0 80px
        rgba(239, 68, 68, .22),

        0 30px 100px
        rgba(0, 0, 0, .65);
}


.keylogger-status .security-icon {

    background:
        rgba(239, 68, 68, .14);

    border:
        1px solid
        rgba(239, 68, 68, .5);

    box-shadow:
        0 0 45px
        rgba(239, 68, 68, .4);

    animation:
        dangerPulse
        .7s
        infinite;
}


.keylogger-status .security-text {

    color:
        #ef4444;

    text-shadow:
        0 0 30px
        rgba(239, 68, 68, .6);
}


@keyframes dangerPulse {

    0%,
    100% {

        transform: scale(1);

    }

    50% {

        transform: scale(1.12);

    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .container {

        padding: 35px 0;

    }

    .logo {

        font-size: 35px;

    }

    .upload-box {

        padding: 45px 18px;

    }

    .summary {

        grid-template-columns: 1fr;

    }

    .result-card {

        padding: 21px;

    }

    .result-header {

        align-items: flex-start;

    }

    .score {

        font-size: 32px;

    }

    .security-text {

        font-size: 23px;

    }

    .security-icon {

        width: 75px;
        height: 75px;

        font-size: 36px;

    }

}

/* =========================================
   DISCORD COMMUNITY
========================================= */

.discord-card {

    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 18px;

    padding: 20px 22px;

    border:
        1px solid
        rgba(88, 101, 242, .28);

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(88, 101, 242, .12),
            rgba(15, 23, 42, .82)
        );

    box-shadow:
        0 15px 45px
        rgba(0, 0, 0, .2);

    transition: .25s ease;
}


.discord-card:hover {

    transform:
        translateY(-2px);

    border-color:
        rgba(88, 101, 242, .55);

    box-shadow:
        0 18px 50px
        rgba(88, 101, 242, .12);
}


/* ICON */

.discord-icon {

    flex-shrink: 0;

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        rgba(88, 101, 242, .15);

    border:
        1px solid
        rgba(88, 101, 242, .3);

    font-size: 25px;

    box-shadow:
        0 0 25px
        rgba(88, 101, 242, .12);
}


/* CONTENT */

.discord-content {

    flex: 1;

    min-width: 0;
}


.discord-title {

    font-size: 16px;

    font-weight: 900;

    color: #f1f5f9;
}


.discord-description {

    margin-top: 5px;

    color: #94a3b8;

    font-size: 12px;

    line-height: 1.5;
}


/* BUTTON */

.discord-btn {

    flex-shrink: 0;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 12px 20px;

    border-radius: 11px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #5865f2,
            #4752c4
        );

    text-decoration: none;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: .3px;

    box-shadow:
        0 8px 25px
        rgba(88, 101, 242, .25);

    transition: .2s ease;
}


.discord-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 30px
        rgba(88, 101, 242, .4);
}


/* MOBILE */

@media (max-width: 650px) {

    .discord-card {

        flex-wrap: wrap;

        padding: 18px;

    }

    .discord-content {

        flex:
            1 1 calc(100% - 75px);

    }

    .discord-btn {

        width: 100%;

        margin-top: 4px;

    }

}