:root {
    color-scheme: dark;
    --page: #020716;
    --panel: #071225;
    --panel-2: #030a18;
    --field: #020816;
    --line: #16345a;
    --line-strong: #245d91;
    --text: #f5f9ff;
    --muted: #6f86a8;
    --label: #c5d4ea;
    --blue: #0f73df;
    --cyan: #23d4ec;
    --green: #45d69c;
    --red: #ff7070;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--page);
    color: var(--text);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 10% 28%, rgba(0, 91, 255, .2), transparent 27rem),
        radial-gradient(circle at 90% 76%, rgba(0, 213, 255, .1), transparent 34rem),
        linear-gradient(145deg, #020615, #030b21 58%, #020817);
}

.page-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .12;
    background-image:
        linear-gradient(rgba(56, 142, 255, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 142, 255, .22) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent, black 24%, black 75%, transparent);
}

a {
    color: inherit;
}

.topbar,
.checker-workspace,
.site-footer {
    width: min(1320px, calc(100% - 40px));
    margin-inline: auto;
}

.topbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(45, 126, 218, .23);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: inherit;
    text-decoration: none;
}

.brand-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(59, 185, 255, .55);
    box-shadow: 0 0 22px rgba(0, 130, 255, .35);
}

.brand strong {
    display: block;
    font-size: 13px;
    letter-spacing: .13em;
}

.brand small {
    display: block;
    margin-top: 4px;
    color: #7395bf;
    font-size: 10px;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #8ba6c7;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.secure-badge span,
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

.checker-workspace {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 630px));
    justify-content: center;
    align-content: center;
    align-items: stretch;
    gap: 30px;
    padding: 0 0 112px;
}

.checker-panel {
    position: relative;
    min-height: 368px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: clamp(25px, 2.65vw, 34px);
    border: 1px solid rgba(44, 135, 238, .31);
    border-radius: 8px 24px 8px 24px;
    background: linear-gradient(150deg, rgba(9, 25, 55, .97), rgba(2, 8, 24, .98));
    box-shadow: 0 34px 90px rgba(0, 21, 69, .42), inset 0 1px 0 rgba(74, 185, 255, .08);
}

.checker-panel::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 28px;
    width: 92px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan));
    box-shadow: 0 0 12px var(--cyan);
}

h2 {
    margin: 0 0 18px;
    color: var(--text);
    font-size: clamp(19px, 1.45vw, 23px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: 0;
}

label {
    display: block;
    margin-bottom: 7px;
    color: var(--label);
    font-size: 11px;
    font-weight: 750;
}

input {
    width: 100%;
    height: 53px;
    border: 1px solid #24466f;
    border-radius: 9px;
    padding: 0 14px;
    background: rgba(1, 7, 20, .9);
    color: #fff;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

input::placeholder {
    color: rgba(197, 212, 234, .46);
}

input:hover {
    border-color: #326497;
    background: rgba(2, 12, 31, .96);
}

input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(32, 184, 255, .12);
}

.primary-button {
    width: 100%;
    min-height: 53px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 9px;
    padding: 0 16px 0 18px;
    background: linear-gradient(100deg, #075fd5, #08a9e4 58%, var(--cyan));
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(0, 119, 255, .25);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.primary-button b {
    font-size: 20px;
    line-height: 1;
}

.primary-button:disabled {
    opacity: .58;
    cursor: wait;
}

.primary-button:not(:disabled):hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 18px 42px rgba(0, 170, 255, .34);
}

.primary-button:not(:disabled):active {
    transform: translateY(0) scale(.992);
}

.primary-button:focus-visible,
.captcha-card:focus-visible {
    outline: 3px solid rgba(42, 214, 255, .3);
    outline-offset: 3px;
}

.captcha-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 168px;
    gap: 12px;
    align-items: end;
    margin-top: 12px;
}

.captcha-card {
    width: 168px;
    height: 53px;
    border: 1px solid #24466f;
    border-radius: 9px;
    padding: 4px 7px;
    overflow: hidden;
    background: #f6f8fb;
    cursor: pointer;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.captcha-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(32, 184, 255, .12);
    transform: translateY(-1px);
}

.captcha-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    filter: contrast(1.12) saturate(1.08);
}

.notice,
.result,
.imei-result {
    margin-top: 14px;
    border-radius: 9px;
}

.notice {
    padding: 13px;
    border: 1px solid #693a36;
    background: #2b1718;
    color: #ffb4aa;
    font-size: 13px;
}

.result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 13px;
    border: 1px solid #1d5f9c;
    background: rgba(2, 15, 36, .92);
}

.result[hidden],
.notice[hidden],
.imei-result[hidden] {
    display: none;
}

.result-label {
    color: #9bb1cf;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.status {
    min-width: 74px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 12px;
    margin: 0;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .08em;
}

.status.on {
    border: 1px solid rgba(255, 107, 107, .42);
    background: rgba(255, 107, 107, .16);
    color: #ff8080;
}

.status.off {
    border: 1px solid rgba(69, 214, 156, .4);
    background: rgba(69, 214, 156, .14);
    color: var(--green);
}

.imei-result {
    padding: 16px;
    border: 1px solid #1d5f9c;
    background: rgba(2, 15, 36, .92);
}

.imei-result-title {
    display: block;
    margin-bottom: 14px;
    color: var(--green);
    font-size: 13px;
    letter-spacing: .04em;
}

.imei-result-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.imei-result-list div {
    display: grid;
    grid-template-columns: minmax(150px, .55fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.imei-result-list dt {
    color: #9bb1cf;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.imei-result-list dd {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.status-badge {
    min-width: 74px;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
}

.status-badge.on {
    border: 1px solid rgba(255, 107, 107, .42);
    background: rgba(255, 107, 107, .16);
    color: #ff8080;
}

.status-badge.off {
    border: 1px solid rgba(69, 214, 156, .4);
    background: rgba(69, 214, 156, .14);
    color: var(--green);
}

.status-badge.unknown {
    border: 1px solid rgba(155, 177, 207, .3);
    background: rgba(155, 177, 207, .12);
    color: #9bb1cf;
}

.site-footer {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(45, 126, 218, .18);
    color: #456184;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .checker-workspace {
        grid-template-columns: minmax(0, 660px);
        align-items: start;
        padding: 30px 0 54px;
    }

    .checker-panel {
        height: auto;
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .topbar,
    .checker-workspace,
    .site-footer {
        width: min(100% - 28px, 1320px);
    }

    .topbar {
        min-height: 74px;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .secure-badge {
        display: none;
    }

    .brand strong {
        font-size: 12px;
    }

    .brand small {
        font-size: 10px;
    }

    .checker-workspace {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: auto;
        padding: 28px 0 34px;
    }

    .checker-panel {
        min-height: 0;
        padding: 22px 18px;
        border-radius: 6px 24px 6px 24px;
    }

    h2 {
        font-size: 20px;
    }

    .captcha-grid {
        grid-template-columns: 1fr;
    }

    .imei-result-list div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .site-footer {
        min-height: 96px;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }
}
