/* =========================================
   HOSTING INFO
========================================= */

.hosting-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(52,112,220,.18),
            transparent 40%
        ),
        #091321;
    color: #f7f9fc;
}

.hosting-main {
    width: 100%;
    padding: 28px 18px 0;
}

.hosting-app {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}


/* HEADER */

.hosting-tool-header {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "icon title"
        "icon subtitle"
        "icon intro";
    column-gap: 18px;
    align-items: start;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 26px;
}

.hosting-tool-icon {
    grid-area: icon;
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(88,166,255,.26);
    border-radius: 20px;
    background: rgba(88,166,255,.08);
    color: #58a6ff;
}

.hosting-tool-icon svg,
.hosting-primary-icon svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hosting-tool-icon svg {
    width: 42px;
    height: 42px;
}

.hosting-title {
    grid-area: title;
    margin: 1px 0 0;
    color: #fff;
    font-size: 31px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: .2px;
}

.hosting-subtitle {
    grid-area: subtitle;
    margin-top: 4px;
    color: #b3c0d1;
    font-size: 16px;
    line-height: 1.4;
}

.hosting-intro {
    grid-area: intro;
    margin-top: 9px;
    color: #8fa1b8;
    font-size: 16px;
    line-height: 1.5;
}


/* FORM */

.hosting-form {
    padding: 22px 23px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    background: rgba(255,255,255,.06);
    box-shadow: 0 22px 65px rgba(0,0,0,.20);
}

.hosting-label {
    display: block;
    margin-bottom: 10px;
    color: #b7c2d2;
    font-size: 14px;
    font-weight: 700;
}

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

.hosting-input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 15px;
    outline: none;
    background: rgba(5,15,27,.78);
    color: #fff;
    font-size: 17px;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.hosting-input::placeholder {
    color: #647892;
}

.hosting-input:focus {
    border-color: rgba(88,166,255,.60);
    background: rgba(5,15,27,.92);
    box-shadow: 0 0 0 3px rgba(88,166,255,.08);
}

.hosting-input.is-error {
    border-color: rgba(255,105,105,.62);
    box-shadow: 0 0 0 3px rgba(255,105,105,.07);
}

.hosting-submit {
    min-width: 158px;
    height: 54px;
    padding: 0 24px;
    border: 1px solid rgba(88,166,255,.52);
    border-radius: 15px;
    background:
        linear-gradient(
            180deg,
            rgba(88,166,255,.25),
            rgba(88,166,255,.14)
        );
    color: #f7faff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .12s ease,
        background .16s ease;
}

.hosting-submit:hover {
    background:
        linear-gradient(
            180deg,
            rgba(88,166,255,.33),
            rgba(88,166,255,.20)
        );
}

.hosting-submit:active {
    transform: scale(.985);
}

.hosting-submit:disabled {
    opacity: .58;
    cursor: wait;
}

.hosting-help {
    margin-top: 11px;
    color: #788ba4;
    font-size: 13px;
    line-height: 1.5;
}

.hosting-error {
    display: none;
    margin-top: 13px;
    color: #ff9b9b;
    font-size: 14px;
    line-height: 1.45;
}

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


/* LOADING */

.hosting-loading {
    display: none;
    padding: 23px 0 3px;
    color: #9db0c7;
    font-size: 14px;
    text-align: center;
}

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

.hosting-loading-dot::before {
    content: "";
    width: 9px;
    height: 9px;
    display: inline-block;
    margin-right: 10px;
    border-radius: 50%;
    background: #58a6ff;
    box-shadow: 0 0 0 0 rgba(88,166,255,.42);
    animation: hosting-pulse 1.35s infinite;
}

@keyframes hosting-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(88,166,255,.40);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(88,166,255,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(88,166,255,0);
    }
}


/* RESULTS */

.hosting-results {
    display: none;
    margin-top: 22px;
    scroll-margin-top: 90px;
}

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

.hosting-result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    margin-bottom: 13px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    background: rgba(255,255,255,.055);
}

.hosting-result-site {
    min-width: 0;
}

.hosting-result-label {
    margin-bottom: 5px;
    color: #7e90a8;
    font-size: 13px;
}

.hosting-result-domain {
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
}

.hosting-status {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    color: #a9b7c9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hosting-status.is-success {
    border-color: rgba(69,211,151,.28);
    background: rgba(69,211,151,.09);
    color: #8ee7c0;
}


/* PRIMARY NETWORK */

.hosting-primary {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    border: 1px solid rgba(88,166,255,.25);
    border-radius: 19px;
    background:
        linear-gradient(
            135deg,
            rgba(88,166,255,.10),
            rgba(255,255,255,.045)
        );
}

.hosting-primary-icon {
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(88,166,255,.32);
    border-radius: 18px;
    background: rgba(88,166,255,.10);
    color: #68b0ff;
}

.hosting-primary-icon svg {
    width: 31px;
    height: 31px;
}

.hosting-primary-content {
    min-width: 0;
}

.hosting-primary-eyebrow {
    margin-bottom: 4px;
    color: #7890ab;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.hosting-primary-name {
    margin: 0;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 600;
}

.hosting-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 11px;
}

.hosting-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border: 1px solid rgba(88,166,255,.25);
    border-radius: 999px;
    background: rgba(88,166,255,.07);
    color: #87bdf4;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.hosting-badge--mono {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
}

.hosting-primary-description {
    margin: 12px 0 0;
    color: #9aabc0;
    font-size: 14px;
    line-height: 1.55;
}


/* SECTIONS */

.hosting-section {
    margin-top: 14px;
    padding: 19px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 19px;
    background: rgba(255,255,255,.045);
}

.hosting-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.hosting-section-title {
    margin: 0;
    color: #f7f9fc;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}

.hosting-section-description {
    margin-top: 5px;
    color: #7f92aa;
    font-size: 13px;
    line-height: 1.45;
}

.hosting-count {
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid rgba(88,166,255,.24);
    border-radius: 9px;
    background: rgba(88,166,255,.07);
    color: #72b4fb;
    font-size: 12px;
    font-weight: 700;
}


/* DETAIL CARDS */

.hosting-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hosting-detail {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;
    background: rgba(5,15,27,.28);
}

.hosting-detail-label {
    margin-bottom: 5px;
    color: #71859e;
    font-size: 11px;
}

.hosting-detail-value {
    overflow-wrap: anywhere;
    color: #dce5ef;
    font-size: 14px;
    line-height: 1.4;
}

.hosting-detail-value--mono {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 12px;
}


/* ADDRESS CARDS */

.hosting-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.hosting-address-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(5,15,27,.34);
}

.hosting-address-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hosting-address-version {
    flex: 0 0 auto;
    padding: 5px 7px;
    border: 1px solid rgba(88,166,255,.24);
    border-radius: 8px;
    background: rgba(88,166,255,.07);
    color: #72b4fb;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hosting-address-ip {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #fff;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.hosting-address-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.hosting-address-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
}

.hosting-address-label {
    color: #71859e;
    font-size: 11px;
    line-height: 1.4;
}

.hosting-address-value {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #bdcad9;
    font-size: 12px;
    line-height: 1.4;
}

.hosting-address-value--mono {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 11px;
}


/* NOTE */

.hosting-note {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255,191,89,.16);
    border-radius: 14px;
    background: rgba(255,191,89,.045);
    color: #9eaabd;
    font-size: 12px;
    line-height: 1.55;
}

.hosting-noscript {
    max-width: 820px;
    margin: 20px auto;
    padding: 16px;
    color: #ffb2b2;
    text-align: center;
}


/* RESPONSIVE */

@media (max-width: 760px) {

    .hosting-main {
        padding: 30px 14px 0;
    }

    .hosting-tool-header {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas:
            "icon title"
            "icon subtitle"
            "intro intro";
        column-gap: 14px;
        margin-bottom: 23px;
    }

    .hosting-tool-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .hosting-tool-icon svg {
        width: 30px;
        height: 30px;
    }

    .hosting-title {
        margin-top: 4px;
        font-size: 25px;
    }

    .hosting-subtitle {
        margin-top: 3px;
        font-size: 14px;
    }

    .hosting-intro {
        margin-top: 13px;
        font-size: 14px;
    }

    .hosting-form {
        padding: 20px;
    }

    .hosting-input-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hosting-submit {
        width: 100%;
    }

    .hosting-detail-grid,
    .hosting-address-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 480px) {

    .hosting-main {
        padding-top: 24px;
    }

    .hosting-title {
        font-size: 23px;
    }

    .hosting-form,
    .hosting-section {
        padding: 17px;
        border-radius: 17px;
    }

    .hosting-result-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 17px;
    }

    .hosting-primary {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .hosting-primary-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .hosting-primary-icon svg {
        width: 25px;
        height: 25px;
    }

    .hosting-primary-name {
        font-size: 23px;
    }

    .hosting-address-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}
