/* =========================================
   WHOIS LOOKUP
========================================= */

.whois-page {
    margin: 0;

    min-height: 100vh;
    min-height: 100dvh;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(52,112,220,.22),
            transparent 40%
        ),
        #091321;

    color: #f7f9fc;
}


/* =========================================
   MAIN
========================================= */

.whois-main {
    width: 100%;

    padding:
        52px
        18px
        0;
}

.whois-app {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.whois-tool-header {
    text-align: center;

    margin-bottom: 34px;
}

.whois-tool-icon {
    width: 62px;
    height: 62px;

    margin: 0 auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(88,166,255,.22);

    border-radius: 18px;

    background:
        rgba(88,166,255,.08);

    color: #58a6ff;
}

.whois-tool-icon svg {
    width: 31px;
    height: 31px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.whois-title {
    margin: 0;

    color: #fff;

    font-size: 31px;
    line-height: 1.1;

    font-weight: 800;

    letter-spacing: .7px;
}

.whois-subtitle {
    margin-top: 8px;

    color: #aeb9ca;

    font-size: 16px;
}

.whois-intro {
    max-width: 590px;

    margin:
        16px
        auto
        0;

    color: #8fa1b8;

    font-size: 16px;
    line-height: 1.6;
}


/* =========================================
   LOOKUP FORM
========================================= */

.whois-form {
    padding: 22px;

    border:
        1px solid rgba(255,255,255,.11);

    border-radius: 19px;

    background:
        rgba(255,255,255,.055);

    box-shadow:
        0 22px 65px rgba(0,0,0,.24);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.whois-label {
    display: block;

    margin-bottom: 9px;

    color: #aeb9ca;

    font-size: 14px;
    font-weight: 700;
}

.whois-input-row {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        auto;

    gap: 10px;
}

.whois-input {
    width: 100%;
    height: 54px;

    padding:
        0
        16px;

    border:
        1px solid rgba(255,255,255,.13);

    border-radius: 14px;

    outline: none;

    background:
        rgba(5,15,27,.62);

    color: #fff;

    font-size: 16px;

    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.whois-input::placeholder {
    color: #60738c;
}

.whois-input:focus {
    border-color:
        rgba(88,166,255,.58);

    background:
        rgba(5,15,27,.78);

    box-shadow:
        0 0 0 3px
        rgba(88,166,255,.08);
}

.whois-input.is-error {
    border-color:
        rgba(255,105,105,.62);

    box-shadow:
        0 0 0 3px
        rgba(255,105,105,.07);
}

.whois-submit {
    min-width: 126px;
    height: 54px;

    padding:
        0
        20px;

    border:
        1px solid rgba(88,166,255,.40);

    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            rgba(88,166,255,.22),
            rgba(88,166,255,.12)
        );

    color: #f5f9ff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .12s ease,
        background .16s ease;
}

.whois-submit:hover {
    background:
        linear-gradient(
            180deg,
            rgba(88,166,255,.30),
            rgba(88,166,255,.17)
        );
}

.whois-submit:active {
    transform: scale(.98);
}

.whois-submit:disabled {
    opacity: .55;

    cursor: wait;
}

.whois-help {
    margin-top: 10px;

    color: #71849c;

    font-size: 13px;
    line-height: 1.5;
}

.whois-error {
    display: none;

    margin-top: 13px;

    color: #ff9b9b;

    font-size: 14px;
    line-height: 1.45;
}

.whois-error.is-visible {
    display: block;
}


/* =========================================
   RESULTS
========================================= */

.whois-results {
    display: none;

    margin-top: 22px;
}

.whois-results.is-visible {
    display: block;
}

.whois-result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding:
        20px
        22px;

    margin-bottom: 13px;

    border:
        1px solid rgba(255,255,255,.11);

    border-radius: 18px;

    background:
        rgba(255,255,255,.06);
}

.whois-domain {
    min-width: 0;
}

.whois-domain-label {
    margin-bottom: 5px;

    color: #7e90a8;

    font-size: 13px;
}

.whois-domain-name {
    color: #fff;

    font-size: 22px;
    line-height: 1.25;

    font-weight: 700;

    word-break: break-word;
}

.whois-status {
    flex-shrink: 0;

    padding:
        7px
        11px;

    border:
        1px solid rgba(66,215,153,.32);

    border-radius: 999px;

    background:
        rgba(66,215,153,.08);

    color: #42d799;

    font-size: 12px;
    font-weight: 700;

    text-transform: capitalize;
}


/* =========================================
   RESULT GRID
========================================= */

.whois-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 13px;
}

.whois-card {
    padding:
        18px
        19px;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 17px;

    background:
        rgba(255,255,255,.045);
}

.whois-card--wide {
    grid-column: 1 / -1;
}

.whois-card-label {
    margin-bottom: 8px;

    color: #7f91a9;

    font-size: 13px;
    font-weight: 700;
}

.whois-card-value {
    color: #edf3fa;

    font-size: 16px;
    line-height: 1.5;

    word-break: break-word;
}

.whois-card-value.is-empty {
    color: #71849c;
}


/* =========================================
   NAMESERVERS
========================================= */

.whois-nameservers {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.whois-ns {
    display: inline-flex;
    align-items: center;

    min-height: 34px;

    padding:
        6px
        10px;

    border:
        1px solid rgba(255,255,255,.09);

    border-radius: 10px;

    background:
        rgba(255,255,255,.035);

    color: #dce6f2;

    font-size: 14px;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
}


/* =========================================
   SOURCE
========================================= */

.whois-source {
    margin-top: 18px;

    text-align: center;

    color: #657990;

    font-size: 12px;
    line-height: 1.5;
}

.whois-source a {
    color: #8196ae;

    text-decoration: none;
}

.whois-source a:hover {
    color: #f26b38;
}


/* =========================================
   LOADING
========================================= */

.whois-loading {
    display: none;

    margin-top: 20px;

    text-align: center;

    color: #8294ac;

    font-size: 15px;
}

.whois-loading.is-visible {
    display: block;
}

.whois-loading-dot {
    display: inline-block;

    animation:
        whoisPulse
        1.1s
        infinite
        ease-in-out;
}

@keyframes whoisPulse {

    0%,
    100% {
        opacity: .35;
    }

    50% {
        opacity: 1;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 760px) {

    .whois-main {
        padding:
            40px
            14px
            0;
    }

    .whois-title {
        font-size: 28px;
    }

    .whois-intro {
        font-size: 15px;
    }

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

    .whois-card--wide {
        grid-column: auto;
    }

}


@media (max-width: 520px) {

    .whois-tool-icon {
        width: 56px;
        height: 56px;
    }

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

    .whois-submit {
        width: 100%;
    }

    .whois-result-summary {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* =========================================
   WHOIS — FINAL HEADER
========================================= */

.whois-tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.whois-tool-icon {
    width: 62px;
    height: 62px;

    margin: 0 auto 11px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    font-size: 42px;
    line-height: 1;

    filter:
        drop-shadow(
            0 9px 20px rgba(0,0,0,.25)
        );
}

.whois-tool-icon svg {
    display: none;
}

.whois-title {
    margin: 0;

    font-size: 29px;
    line-height: 1.08;

    font-weight: 800;
    letter-spacing: 1.3px;
}

.whois-subtitle {
    margin-top: 8px;

    color: #aeb9ca;

    font-size: 14px;
}

.whois-intro {
    max-width: 520px;

    margin: 15px auto 0;

    color: #8492a6;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================
   WHOIS — EXTENDED OUTPUT
========================================= */

.whois-section {
    margin-top: 28px;
}

.whois-section[hidden] {
    display: none;
}

.whois-section__title {
    margin: 0 0 13px;

    color: #eef3f9;

    font-size: 18px;
    line-height: 1.3;

    font-weight: 700;
}

.whois-section__description {
    margin: -5px 0 14px;

    color: #71849c;

    font-size: 14px;
    line-height: 1.5;
}


/* DETAILS */

.whois-detail-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px;
}

.whois-detail {
    min-width: 0;

    padding: 16px 17px;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 15px;

    background:
        rgba(255,255,255,.045);
}

.whois-detail--wide {
    grid-column: 1 / -1;
}

.whois-detail__label {
    margin-bottom: 7px;

    color: #8294ac;

    font-size: 14px;
    line-height: 1.3;

    font-weight: 700;
}

.whois-detail__value {
    color: #eef3f9;

    font-size: 16px;
    line-height: 1.5;

    word-break: break-word;
}


/* CONTACT CARD */

.whois-contact {
    padding: 19px;

    margin-bottom: 11px;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 17px;

    background:
        rgba(255,255,255,.045);
}

.whois-contact:last-child {
    margin-bottom: 0;
}

.whois-contact__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 16px;
}

.whois-contact__name {
    color: #fff;

    font-size: 18px;
    line-height: 1.35;

    font-weight: 700;
}

.whois-contact__roles {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    justify-content: flex-end;
}

.whois-contact__role {
    padding: 6px 9px;

    border:
        1px solid rgba(88,166,255,.24);

    border-radius: 999px;

    color: #90c1ff;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .06em;

    text-transform: uppercase;
}

.whois-contact__rows {
    display: grid;

    grid-template-columns:
        130px
        minmax(0,1fr);

    gap: 8px 14px;
}

.whois-contact__label {
    color: #8294ac;

    font-size: 14px;
    line-height: 1.5;
}

.whois-contact__value {
    color: #e9eff7;

    font-size: 16px;
    line-height: 1.5;

    word-break: break-word;
}

.whois-contact__address {
    white-space: pre-line;
}


/* NAMESERVERS */

.whois-server-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 8px;
}

.whois-server {
    padding: 11px 13px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 11px;

    background:
        rgba(255,255,255,.025);

    color: #e6edf6;

    font-size: 15px;
    line-height: 1.4;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
}

.whois-server__ips {
    margin-top: 4px;

    color: #71849c;

    font-size: 12px;
}


/* DNS KEY */

.whois-dnskey {
    margin-top: 10px;

    padding: 16px;

    border:
        1px solid rgba(255,255,255,.09);

    border-radius: 14px;

    background:
        rgba(3,12,23,.38);
}

.whois-dnskey:first-child {
    margin-top: 0;
}

.whois-dnskey__meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px 18px;

    margin-bottom: 10px;

    color: #9badc2;

    font-size: 14px;
    line-height: 1.4;
}

.whois-dnskey__meta strong {
    color: #fff;
}

.whois-dnskey__key {
    color: #dce6f2;

    font-size: 13px;
    line-height: 1.55;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    overflow-wrap: anywhere;
}


/* SUBSECTION */

.whois-subsection {
    margin-top: 19px;
}

.whois-subsection__title {
    margin-bottom: 11px;

    color: #9aabc0;

    font-size: 15px;
    font-weight: 700;
}


/* MOBILE */

@media (max-width: 600px) {

    .whois-detail-grid {
        grid-template-columns: 1fr;
    }

    .whois-detail--wide {
        grid-column: auto;
    }

    .whois-server-list {
        grid-template-columns: 1fr;
    }

    .whois-contact__head {
        flex-direction: column;

        gap: 9px;
    }

    .whois-contact__roles {
        justify-content: flex-start;
    }

    .whois-contact__rows {
        grid-template-columns: 1fr;

        gap: 2px;
    }

    .whois-contact__value {
        margin-bottom: 9px;
    }

}

/* Universal WHOIS */

.whois-detail__value {
    white-space: pre-line;
}

