:root{
    --bg:#080c14;
    --bg2:#0c111b;
    --card:#101722;
    --card2:#141d2b;
    --border:#202b3c;
    --border-light:#29364a;
    --text:#fff;
    --muted:#8794a8;
    --blue:#1473e6;
    --blue-hover:#0f64cd;
    --green:#25D366;
    --yellow:#f59e0b;
    --red:#e53935;
}

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

html{
    scroll-behavior:smooth;
}

body{
    min-height:100vh;
    background:
        radial-gradient(
            circle at top,
            #101a2a 0,
            #080c14 420px
        );
    color:var(--text);
    font-family:Arial,Helvetica,sans-serif;
}

header{
    width:100%;
    height:70px;
    border-bottom:1px solid var(--border);
    background:rgba(8,12,20,.92);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    position:sticky;
    top:0;
    z-index:2000;
}

.nav{
    max-width:1150px;
    height:100%;
    margin:auto;
    padding:0 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    color:#fff;
    font-size:22px;
    font-weight:800;
    text-decoration:none;
    letter-spacing:-.5px;
}

.logo span{
    color:var(--blue);
}

.nav-label{
    color:#9ca8ba;
    font-size:12px;
}

.container{
    width:100%;
    max-width:1100px;
    margin:auto;
    padding:44px 20px 70px;
}

.hero{
    text-align:center;
    margin-bottom:30px;
}

.hero h1{
    font-size:39px;
    margin-bottom:10px;
}

.hero h1 span{
    color:var(--blue);
}

.hero p{
    max-width:760px;
    margin:auto;
    color:var(--muted);
    font-size:14px;
    line-height:1.7;
}

.control-card{
    max-width:760px;
    margin:0 auto 24px;
    padding:20px;
    background:rgba(255,255,255,.035);
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
}

.control-card p{
    color:var(--muted);
    font-size:13px;
    line-height:1.6;
    margin-bottom:15px;
}

.actions{
    display:flex;
    gap:10px;
}

.btn{
    min-height:48px;
    border:0;
    border-radius:10px;
    padding:0 18px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
}

.btn-primary{
    flex:1;
    background:var(--blue);
    color:#fff;
}

.btn-primary:hover{
    background:var(--blue-hover);
}

.btn-dark{
    background:#141b27;
    border:1px solid var(--border-light);
    color:#e9eef6;
}

.btn:disabled{
    opacity:.6;
    cursor:not-allowed;
}

.loading,
.error-box,
.service-box{
    display:none;
    max-width:760px;
    margin:0 auto 20px;
    padding:14px 16px;
    border-radius:10px;
    font-size:13px;
}

.loading.active,
.error-box.active,
.service-box.active{
    display:block;
}

.loading{
    color:var(--muted);
    text-align:center;
}

.error-box{
    color:#ffd5d5;
    background:rgba(229,57,53,.10);
    border:1px solid rgba(229,57,53,.30);
}


.service-box{
    display:none;
    max-width:760px;
    margin:0 auto 20px;
    padding:16px 18px;
    border-radius:10px;
    font-size:13px;
    line-height:1.6;
    text-align:center;
    color:#ffd5d5;
    background:rgba(229,57,53,.10);
    border:1px solid rgba(229,57,53,.30);
}

.service-box.active{
    display:block;
}


.result{
    display:none;
}

.result.active{
    display:block;
}

.score-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-bottom:18px;
}

.score-card{
    padding:22px;
    border-radius:17px;
    background:rgba(255,255,255,.035);
    border:1px solid rgba(255,255,255,.08);
    display:flex;
    gap:18px;
    align-items:center;
}

.score-circle{
    width:95px;
    height:95px;
    min-width:95px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    border:7px solid;
    font-size:28px;
    font-weight:800;
}

.score-low{
    color:#8bf0ae;
    border-color:rgba(37,211,102,.50);
    background:rgba(37,211,102,.07);
}

.score-mid{
    color:#ffd27b;
    border-color:rgba(245,158,11,.50);
    background:rgba(245,158,11,.07);
}

.score-high{
    color:#ff9999;
    border-color:rgba(229,57,53,.50);
    background:rgba(229,57,53,.07);
}

.score-title{
    color:var(--muted);
    font-size:12px;
    margin-bottom:4px;
}

.score-card h2{
    font-size:22px;
    margin-bottom:6px;
}

.score-card p{
    color:var(--muted);
    font-size:12px;
    line-height:1.5;
}

.confidence{
    margin-bottom:18px;
    padding:12px 15px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
    border-radius:10px;
    color:var(--muted);
    font-size:13px;
}

.grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-bottom:18px;
}

.card{
    padding:22px;
    border-radius:16px;
    background:rgba(255,255,255,.035);
    border:1px solid rgba(255,255,255,.08);
}

.card h2{
    font-size:18px;
    margin-bottom:16px;
}

.row{
    display:flex;
    justify-content:space-between;
    gap:15px;
    padding:11px 0;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.row:last-child{
    border-bottom:0;
}

.row span{
    color:var(--muted);
    font-size:12px;
}

.row strong{
    max-width:62%;
    text-align:right;
    font-size:13px;
    color:#edf2f8;
    overflow-wrap:anywhere;
}

.bad{
    color:#ff8585 !important;
}

.good{
    color:#73e69a !important;
}

.warn{
    color:#ffc760 !important;
}

.neutral{
    color:#aab5c5 !important;
}

.notice{
    padding:14px 16px;
    margin-bottom:18px;
    border-radius:10px;
    font-size:13px;
    line-height:1.6;
}

.notice.warning{
    color:#ffda91;
    background:rgba(245,158,11,.10);
    border:1px solid rgba(245,158,11,.30);
}

.notice.success{
    color:#c8f7d8;
    background:rgba(37,211,102,.09);
    border:1px solid rgba(37,211,102,.30);
}

.notice.info{
    color:#cfe4ff;
    background:rgba(20,115,230,.09);
    border:1px solid rgba(20,115,230,.30);
}

.tests{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin-bottom:18px;
}

.test{
    min-height:118px;
    padding:16px;
    border-radius:14px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.08);
}

.test-top{
    display:flex;
    align-items:center;
    gap:9px;
    margin-bottom:8px;
}

.dot{
    width:9px;
    height:9px;
    border-radius:50%;
    flex:0 0 9px;
}

.dot.good{
    background:var(--green);
}

.dot.warn{
    background:var(--yellow);
}

.dot.bad{
    background:var(--red);
}

.dot.neutral{
    background:#69768a;
}

.test h3{
    font-size:14px;
}

.test p{
    color:var(--muted);
    font-size:12px;
    line-height:1.5;
}

.reason-list{
    display:grid;
    gap:9px;
}

.reason{
    padding:11px 13px;
    border-radius:9px;
    font-size:13px;
    line-height:1.5;
}

.reason.bad{
    background:rgba(229,57,53,.08);
    border:1px solid rgba(229,57,53,.18);
}

.reason.warn{
    background:rgba(245,158,11,.07);
    border:1px solid rgba(245,158,11,.18);
}

details{
    margin-bottom:18px;
    border-radius:14px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.08);
    overflow:hidden;
}

summary{
    cursor:pointer;
    padding:17px 20px;
    font-weight:700;
    font-size:14px;
}

.details-body{
    padding:0 20px 20px;
}

.codebox{
    padding:14px;
    border-radius:10px;
    overflow:auto;
    background:#080c12;
    border:1px solid var(--border);
    color:#a9b6c8;
    font-size:12px;
    line-height:1.6;
    white-space:pre-wrap;
    word-break:break-word;
}

.compare-table{
    width:100%;
    border-collapse:collapse;
}

.compare-table th,
.compare-table td{
    padding:11px 8px;
    border-bottom:1px solid rgba(255,255,255,.06);
    font-size:12px;
    text-align:left;
}

.compare-table th{
    color:var(--muted);
}

.compare-table td{
    color:#eef3fa;
    word-break:break-word;
}

.footer{
    padding:26px 20px;
    text-align:center;
    color:#657287;
    font-size:12px;
}

@media(max-width:800px){
    .tests{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:700px){
    header{
        height:62px;
    }

    .container{
        padding:32px 13px 45px;
    }

    .hero h1{
        font-size:29px;
    }

    .nav-label{
        display:none;
    }

    .score-grid,
    .grid{
        grid-template-columns:1fr;
    }

    .actions{
        flex-direction:column;
    }
}

@media(max-width:520px){
    .tests{
        grid-template-columns:1fr;
    }

    .score-card{
        align-items:flex-start;
    }

    .score-circle{
        width:82px;
        height:82px;
        min-width:82px;
        font-size:25px;
    }

    .row{
        flex-direction:column;
        gap:5px;
    }

    .row strong{
        max-width:100%;
        text-align:left;
    }
}
