:root {
    --mx-blue: #3545b0;
    --mx-blue-light: #8796ff;
    --mx-green: #50c995;
    --mx-yellow: #e5bd3c;
}

body.mx-page {
    min-height: 100vh;
    display: block;
    padding: 0;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(53, 69, 176, .16),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #080b0f 0%,
            #05070a 100%
        );
}

.mx-shell {
    width: min(calc(100% - 40px), 1120px);
    margin: 0 auto;
    padding: 34px 0 64px;
}

.mx-nav {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 76px;
}

.mx-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.mx-nav-meta {
    color: #5f6e79;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.mx-header {
    max-width: 940px;
    margin-bottom: 56px;
}

.mx-header h1 {
    margin-top: 20px;
    font-size: clamp(64px, 10vw, 124px);
    line-height: .82;
    letter-spacing: -.06em;
}

.mx-tagline {
    margin: 31px 0 0;
    color: var(--text);
    font-size: clamp(21px, 2.5vw, 29px);
    line-height: 1.35;
    font-weight: 620;
}

.mx-intro {
    max-width: 790px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.mx-checker,
.mx-result {
    overflow: hidden;
    background: rgba(12, 18, 24, .80);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.mx-checker {
    padding: 28px 30px 30px;
}

.mx-checker-head,
.mx-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.mx-kicker {
    color: var(--mx-blue-light);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .17em;
}

.mx-checker h2,
.mx-summary h2 {
    margin: 9px 0 0;
    color: var(--text);
    font-size: 28px;
    line-height: 1.1;
}

.mx-mode {
    padding: 7px 10px;
    color: #8796ff;
    background: rgba(53, 69, 176, .08);
    border: 1px solid rgba(53, 69, 176, .42);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
}

.mx-form {
    margin-top: 28px;
}

.mx-label {
    display: block;
    margin-bottom: 9px;
    color: #8a98a3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.mx-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.mx-input-row input {
    min-width: 0;
    height: 54px;
    padding: 0 17px;
    color: var(--text);
    background: #080d12;
    border: 1px solid #26313a;
    border-radius: 9px;
    outline: none;
    font: inherit;
    font-size: 16px;
}

.mx-input-row input:focus {
    border-color: var(--mx-blue);
    box-shadow: 0 0 0 3px rgba(53, 69, 176, .12);
}

.mx-input-row button {
    height: 54px;
    padding: 0 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    background: var(--mx-blue);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mx-hint {
    margin: 10px 0 0;
    color: #596873;
    font-size: 11px;
    line-height: 1.5;
}

.mx-loading,
.mx-error {
    margin-top: 18px;
    padding: 15px 18px;
    border-radius: 10px;
    font-size: 13px;
}

.mx-loading {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #8c9aa5;
    background: rgba(53, 69, 176, .07);
    border: 1px solid rgba(53, 69, 176, .26);
}

.mx-spinner {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(116, 131, 225, .25);
    border-top-color: #7483e1;
    border-radius: 50%;
    animation: mx-spin .8s linear infinite;
}

.mx-error {
    color: #ff9ba5;
    background: rgba(239, 98, 112, .07);
    border: 1px solid rgba(239, 98, 112, .28);
}

@keyframes mx-spin {
    to { transform: rotate(360deg); }
}

.mx-result {
    margin-top: 24px;
}

.mx-summary {
    padding: 27px 30px;
    border-bottom: 1px solid var(--border);
}

.mx-summary p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.mx-summary-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mx-summary-meta span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: #7e8d98;
    background: rgba(255,255,255,.02);
    border: 1px solid #26313a;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}

.mx-servers {
    display: grid;
}

.mx-server {
    padding: 26px 30px;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.mx-server:last-child {
    border-bottom: 0;
}

.mx-server-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.mx-priority {
    color: #8796ff;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .13em;
}

.mx-server h3 {
    margin: 7px 0 0;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.mx-ttl {
    color: #65747f;
    font-size: 10px;
    font-weight: 750;
}

.mx-ip-list {
    overflow: hidden;
    border: 1px solid #202a32;
    border-radius: 10px;
}

.mx-ip-row {
    display: grid;
    grid-template-columns: 62px minmax(180px,.8fr) minmax(250px,1.2fr);
    gap: 16px;
    align-items: center;
    padding: 11px 13px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

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

.mx-ip-version {
    color: #8796ff;
    font-size: 9px;
    font-weight: 850;
}

.mx-ip-row code {
    color: #b9c4cc;
    background: transparent;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
}

.mx-ip-ptr {
    color: #71808a;
    font-size: 11px;
}

.mx-empty-line,
.mx-no-records {
    padding: 17px;
    color: #788690;
    font-size: 12px;
}

.mx-no-records {
    padding: 28px 30px;
}

.mx-smtp {
    margin-top: 12px;
    padding: 14px 16px;
    background: #0a1015;
    border: 1px solid #202a32;
    border-radius: 10px;
}

.mx-smtp-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.mx-smtp-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mx-yellow);
    box-shadow: 0 0 12px rgba(229,189,60,.35);
}

.mx-smtp[data-status="good"] .mx-smtp-dot {
    background: var(--mx-green);
    box-shadow: 0 0 12px rgba(80,201,149,.45);
}

.mx-smtp-head strong {
    color: #dbe1e6;
    font-size: 12px;
}

.mx-smtp-head code {
    color: #8796ff;
    background: transparent;
    font-size: 10px;
}

.mx-smtp-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #6f7e89;
    font-size: 10px;
}

.mx-banner {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #9aa8b2;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.mx-explainer {
    margin: 24px 30px 30px;
    padding: 18px 20px;
    background:
        linear-gradient(
            100deg,
            rgba(53,69,176,.13),
            rgba(53,69,176,.035)
        );
    border: 1px solid rgba(53,69,176,.28);
    border-radius: 10px;
}

.mx-explainer-label {
    display: block;
    margin-bottom: 10px;
    color: #8796ff;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .15em;
}

.mx-explainer p {
    margin: 0 0 10px;
    color: #9aa7b1;
    font-size: 12px;
    line-height: 1.65;
}

.mx-explainer p:last-child {
    margin-bottom: 0;
}

.mx-explainer strong {
    color: #e7ebef;
}

.mx-footer {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #61707b;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .10em;
}

.mx-footer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mx-blue);
    box-shadow: 0 0 11px rgba(53,69,176,.9);
}

@media (max-width: 720px) {
    .mx-shell {
        width: min(calc(100% - 28px), 1120px);
        padding-top: 24px;
    }

    .mx-nav {
        margin-bottom: 52px;
    }

    .mx-nav-meta {
        display: none;
    }

    .mx-checker-head,
    .mx-summary,
    .mx-server-head {
        flex-direction: column;
    }

    .mx-input-row {
        grid-template-columns: 1fr;
    }

    .mx-ip-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mx-spinner {
        animation: none;
    }
}
