:root{
    --bg:#f1f5f9;
    --card:#ffffff;
    --text:#020617;
    --muted:#64748b;
    --soft:#94a3b8;
    --accent:rgb(1 113 215);
    --new-card:#fff;
}
[data-theme="dark"]{
    --bg:#020617;
    --card:#0f172a;
    --text:#e5e7eb;
    --muted:#94a3b8;
    --soft:#64748b;
    --new-card:#191f3bbf;
}

*{box-sizing:border-box}

body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:system-ui,-apple-system,Segoe UI,sans-serif;
}

.wrapper{
    max-width:1100px;
    margin:30px auto;
    display:grid;
    grid-template-columns:1fr 420px;
    gap:20px;
}
.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.h-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon{
    width:22px;
    height:22px;
    fill:var(--text);
}

.controls span {
    cursor: pointer;
    font-size: 15px;
    color: var(--muted);
    margin-left: 12px;
}

.info{
    font-size:13px;
    color:var(--muted);
    margin-top:6px;
}

.big{
    text-align:center;
    font-size:46px;
    font-weight:700;
    margin:18px 0 6px;
}

.progress{
    height:8px;
    background:rgba(0,0,0,.1);
    border-radius:0px;
    overflow:hidden;
}

.progress span{
    display:block;
    height:100%;
    width:0;
    background:linear-gradient(90deg,var(--accent),#22c55e);
    transition:width .2s;
}

.row{
    display:flex;
    justify-content:space-between;
    font-size:14px;
    margin-top:8px;
}

button{
    width:100%;
    margin-top:16px;
    padding:12px;
    border-radius:12px;
    border:none;
    background:var(--accent);
    color:#fff;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
}

.side h3{
    margin:0 0 10px;
    font-size:15px;
    color:var(--muted);
}

.ip-block{margin-bottom:16px}

.ip-title{
    font-size:13px;
    margin-bottom:6px;
}

.log{
    font-size:12px;
    color:var(--soft);
    padding:6px 0;
    border-bottom:1px dashed rgba(0,0,0,.15);
}

canvas{
    width:100%;
    height:70px;
}
strong {
    font-size: 30px;
}
.icon {
    width: 36px;
    height: 36px;
    fill: var(--text);
}
.clear {
    margin-top: 10px;
    font-size: 13px;
    cursor: pointer;
    color: #ef4444;
    font-weight: 500;
}

/* =====================
   АДАПТИВНОСТЬ
===================== */
@media (max-width: 1000px) {
    .wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin:20px auto;
    }

    .big {
        font-size:38px;
    }
}

@media (max-width: 720px) {
    .wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
        margin:15px;
    }

    .card, .side {
        padding:15px;
    }

    .big {
        font-size:32px;
    }

    .row {
        font-size:13px;
    }

    button {
        padding:10px;
        font-size:14px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap:8px;
    }

    .controls span {
        margin-left:0;
        margin-right:10px;
    }
}

@media (max-width: 480px) {
    .big {
        font-size:26px;
    }

    button {
        font-size:13px;
        padding:8px;
    }

    .info, .ip-title {
        font-size:12px;
    }

    .row {
        font-size:12px;
    }

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

    canvas {
        height:50px;
    }
}
.site-header, .site-footer {
    width: 100%;
    padding: 15px 20px;
    background: var(--card);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    display: flex;
    justify-content: center;
}

.header-container, .footer-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
}

.header-nav span {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 15px;
    font-size: 14px;
    color: var(--muted);
}

.header-nav .btn-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
header{
    background:var(--card);
    border-bottom:1px solid #e5e7eb;
}
.header-container{
    margin:auto;
    padding:16px;
}
.logo{
    text-decoration:none;
    color:var(--text);
}
.logo strong{
    font-size:20px;
}
.logo span{
    display:block;
    font-size:13px;
    color:var(--muted);
}

/* Footer */
.site-footer {
    margin-top: 30px;
    text-align: center;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 720px) {
    .header-container, .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .header-nav span {
        margin-left: 0;
    }
}
span.header-text {
    font-weight: 100;
    font-size: 15px;
    margin: 10px;
    display: inline-block;
    float: right;
}
div#ipinfo {
    font-size: 16px;
}
:root{
    --bg:#f1f5f9;
    --card:#ffffff;
    --text:#020617;
    --muted:#64748b;
}
[data-theme="dark"]{
    --bg:#020617;
    --card:#020617;
    --text:#f8fafc;
    --muted:#94a3b8;
}

*{box-sizing:border-box}
body{
    margin:0;
    font-family:system-ui,-apple-system,Segoe UI,Roboto;
    background:var(--bg);
    color:var(--text);
}
.wrapper {
    max-width: 1000px !important;
    margin: 15px auto;
    padding: 0 16px;
}
.side {
    background: var(--new-card);
    padding: 20px;
    border-radius: 16px;
}
h1{
    margin-top:0;
    font-size:26px;
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:16px;
    margin-top:20px;
}

.card {
    background: var(--new-card);
    border-radius: 16px;
    padding: 24px;
}
.box span{
    display:block;
    font-size:13px;
    color:var(--muted);
}
.box {
    background: #4a53713b;
    padding: 10px;
    border-radius: 6px;
}
.box strong {
    font-size: 18px;
    overflow: hidden;
    display: block;
}
.big-ip{
    font-size:28px;
    font-weight:700;
    letter-spacing:.5px;
}

.footer{
    margin-top:20px;
    font-size:13px;
    color:var(--muted);
}
.toggle {
    float: right;
    cursor: pointer;
    font-size: 16px;
    color: var(--muted);
}
.ip-line{
    display:flex;
    align-items:center;
    gap:10px;
}

.flag {
    width: 34px;
    height: 26px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    border: 0.5px solid #ccc;
}
img.flag-mini {
    border: 0.1px #ccc solid;
    width: 26px;
    height: 16px;
    margin-bottom: -2px;
}
a.ip-info {
    text-decoration: none;
    color: #67a9e6;
}
/* ===== SIDEBAR ===== */
.sidebar {
    padding-top: 90px !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100%;
    background: #212b56;
    color: #ffffff;
    padding: 20px;
    z-index: 1100;
}

.sidebar-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.sidebar a{
    display:block;
    padding:12px 14px;
    margin-bottom:8px;
    border-radius:8px;
    color:#e5e7eb;
    text-decoration:none;
    font-size:15px;
}

.sidebar a:hover{
    background:#0ea5e9;
    color:#fff;
}

/* ===== CONTENT OFFSET (DESKTOP) ===== */
.wrapper{
    margin-left:240px;
}

/* ===== MOBILE HEADER ===== */
.mobile-header{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:52px;
    background:#020617;
    color:#fff;
    z-index:1100;
    align-items:center;
    padding:0 16px;
}

.burger{
    font-size:22px;
    cursor:pointer;
    margin-right:12px;
}

.mobile-title{
    font-weight:600;
}

/* ===== OVERLAY ===== */
.overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    z-index:900;
    display:none;
}
.sidebar {
    border-top: 0.5px solid;
}

.mobile-header{
    z-index:1000;
}
/* ===== MOBILE ===== */
@media (max-width: 900px){
    .sidebar{
        transform:translateX(-100%);
        transition:.3s;
        width:100%;
    }

    .sidebar.open {
        transform: translateX(0);
        margin-top: 0px;
    }

    .wrapper{
        margin-left:0px;
        padding-top:0px;
    }

    .mobile-header{
        display: contents;
        background-color: #000000 !important;
    }

    .close{
    background:none;
    border:none;
    color:#fff;
    font-size:22px;
    cursor:pointer;
    line-height:1;
    z-index:1200;
}

/* всегда видна на мобильных */
@media (max-width:900px){
    .close{
        display:block;
    }
}
}
strong.menu {
    font-size: 20px;
}
.colorBG {
    background: #000000;
    padding: 10px 10px;
}
@media (min-width:900px){
    header {
    background: var(--card);
    border-bottom: 1px solid #e5e7eb;
    z-index: 9999999;
    position: relative;
}
}
@media (min-width:900px){
    .close{
        display:none;
    }
}
span#upload {
    font-weight: bold;
    font-size: 16px;
}
span#domainIp {
    color: #54b454;
    transition: 1s;
    text-shadow: 0 0 BLACK;
}
.big-ip.ip-line {
    padding-top: 15px;
}
span.alert {
    background: #d38e93;
    color: #804646;
    font-size: 17px;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 8px;
    border: 0.5px solid;
}
strong.normal-text {
    font-size: 23px;
}
.big-ip.ip-line.knowsite {
    font-size: 25px;
    max-width: 480px;
    overflow: hidden;
}
p {
    color: var(--muted);
    font-size: 14px;
}
.side h2{
    margin: 0 0 14px;
    font-size: 18px;
}

.sys-table{
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sys-table td{
    padding: 10px 8px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.sys-table td:first-child{
    color: var(--muted);
}

.status-ok{
    color: #16a34a;
    font-weight: 600;
}

.status-bad{
    color: #dc2626;
    font-weight: 600;
}
/* ===== SCAN ANIMATION ===== */

.scan{
    position: relative;
    width: 100%;
    height: 26px;
    background: rgba(0,0,0,.06);
    border-radius: 6px;
    overflow: hidden;
}

[data-theme="dark"] .scan{
    background: rgba(255,255,255,.08);
}

.scan-bar{
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent),
        transparent
    );
    animation: scanMove 1.4s infinite;
}

.scan-text{
    position: relative;
    z-index: 2;
    font-size: 13px;
    line-height: 26px;
    padding-left: 10px;
    color: var(--muted);
}

/* Result colors */
.scan.ok{
    background: rgba(22,163,74,.15);
}

.scan.bad{
    background: rgba(220,38,38,.15);
}

.scan.ok .scan-text{
    color: #16a34a;
    font-weight: 600;
}

.scan.bad .scan-text{
    color: #dc2626;
    font-weight: 600;
}

.scan.ok .scan-bar,
.scan.bad .scan-bar{
    display: none;
}

@keyframes scanMove{
    from{ left:-40%; }
    to{ left:100%; }
}
strong.middle-size {
    font-size: 21px;
}
div#slim {
    height: 4px;
}
.info-card{
    padding:20px;
    border-radius:16px;
}

.info-card h3{
    margin-bottom:15px;
    font-size:18px;
}

.info-table{
    width:100%;
    border-collapse:collapse;
    font-size:14px;
}

.info-table td{
    padding:10px 6px;
    border-bottom:1px solid #eee;
}

.info-table td:first-child{
    color:#777;
}

.info-table td:last-child{
    font-weight:600;
    text-align:right;
}
span#ip {
    overflow: hidden;
    max-width: 225px;
}
p.faq {
    padding: 15px 20px;
    background: var(--new-card);
    border-radius: 16px;
}
strong.strong-p {
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}
.wrapper.dual {
    margin-top: -10px;
    margin-bottom: 5px;
}
.faq {
    padding: 15px 20px;
    background: var(--new-card);
    border-radius: 16px;
}
.faq.gray {
    font-size: 14px;
    color: var(--muted);
    margin-top: 15px;
}
li {
    margin-left: -25px !important;
    padding: 5px !important;
}