/* ============================================================
   Portal Home — domain search hero
   Compact primary action: wider than a widget, not a banner.
   ============================================================ */

.cx-home-domain.home-domain-search,
.home-domain-search.cx-home-domain {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 1.35rem 0 2.75rem;
    box-shadow: none !important;
}

.cx-home-domain__panel {
    max-width: 54rem;
    margin: 0 auto;
    padding: 1.85rem 1.85rem 1.45rem !important;
    background:
        linear-gradient(165deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.03) 46%, transparent 72%),
        var(--surface-0724, #0c1220) !important;
    border: 1px solid rgba(0, 212, 255, 0.34) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.cx-home-domain__header {
    margin: 0 0 1.25rem;
    text-align: center;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.cx-home-domain__header h1 {
    margin: 0 0 0.45rem !important;
    color: var(--white-0724, #fff) !important;
    font-family: var(--sans, "Space Grotesk", sans-serif);
    font-size: clamp(1.65rem, 2.8vw, 2.1rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.cx-home-domain__helper {
    margin: 0 auto !important;
    max-width: 34rem;
    color: var(--muted2, #8090b0) !important;
    font-size: 1rem !important;
    line-height: 1.45;
}

.cx-home-domain__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
    max-width: 100%;
}

.cx-home-domain__input.form-control,
.cx-home-domain__row .form-control,
.cx-home-domain__row input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 3rem !important;
    min-height: 3rem !important;
    max-height: 3rem !important;
    padding: 0 0.95rem !important;
    background: rgba(7, 11, 18, 0.72) !important;
    border: 1px solid var(--border-l-0724, #22305a) !important;
    border-radius: 10px !important;
    color: var(--text-0724, #cfe0f0) !important;
    font-size: 1.02rem !important;
    line-height: 1.3;
    box-shadow: none !important;
}

.cx-home-domain__input.form-control::placeholder,
.cx-home-domain__row input[type="text"]::placeholder {
    color: var(--muted, #6a7a9a) !important;
    opacity: 1;
}

.cx-home-domain__input.form-control:focus,
.cx-home-domain__row .form-control:focus,
.cx-home-domain__row input[type="text"]:focus {
    border-color: #00d4ff !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.18) !important;
}

.cx-home-domain__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
}

button.cx-home-domain__btn-search.btn-primary,
.cx-home-domain button.cx-home-domain__btn-search,
.cx-home-domain button.cx-domain-cta {
    background: #00d4ff !important;
    background-image: none !important;
    border: 1px solid #00d4ff !important;
    color: #041018 !important;
    min-width: 6.25rem;
    max-width: 8rem;
    height: 3rem !important;
    min-height: 3rem !important;
    padding: 0 1.15rem !important;
    border-radius: 10px !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    transform: none !important;
}

button.cx-home-domain__btn-search.btn-primary:hover,
button.cx-home-domain__btn-search.btn-primary:focus,
.cx-home-domain button.cx-home-domain__btn-search:hover,
.cx-home-domain button.cx-home-domain__btn-search:focus {
    background: #00a8cc !important;
    background-image: none !important;
    border-color: #00a8cc !important;
    color: #041018 !important;
    transform: none !important;
}

.cx-home-domain__actions-mobile {
    display: none;
}

.cx-home-domain .cx-domain-search-options {
    margin: 0.55rem 0 0;
    color: var(--muted2, #8090b0);
    font-size: 0.82rem;
}

.cx-home-domain .cx-domain-search-options summary {
    cursor: pointer;
    color: var(--muted2, #8090b0);
    font-weight: 550;
    list-style: none;
}

.cx-home-domain .cx-domain-search-options summary::-webkit-details-marker {
    display: none;
}

.cx-home-domain .cx-domain-search-options summary::before {
    content: "+ ";
    color: #00d4ff;
}

.cx-home-domain .cx-domain-search-options[open] summary::before {
    content: "− ";
}

.cx-home-domain .cx-domain-search-options__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin-top: 0.45rem;
    padding: 0.55rem 0.65rem !important;
    background: rgba(7, 11, 18, 0.45) !important;
    border: 1px solid var(--border-0724, #192038) !important;
    border-radius: 8px !important;
    overflow: visible;
}

.cx-home-domain .cx-domain-safesearch {
    margin: 0 !important;
    color: var(--text-0724, #cfe0f0) !important;
    font-size: 0.82rem !important;
    font-weight: 500;
}

.cx-home-domain__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.15rem;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 212, 255, 0.12);
}

.cx-home-domain__tlds {
    margin-top: 0;
}

.cx-home-domain__meta-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

button.cx-home-domain__transfer-link,
.cx-home-domain__pricing-link {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--muted2, #8090b0) !important;
    font-size: 0.85rem !important;
    font-weight: 550 !important;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.cx-home-domain__meta-sep {
    color: var(--muted, #6a7a9a);
    font-size: 0.85rem;
}

button.cx-home-domain__transfer-link:hover,
button.cx-home-domain__transfer-link:focus,
.cx-home-domain__pricing-link:hover,
.cx-home-domain__pricing-link:focus-visible {
    color: #00d4ff !important;
    text-decoration: underline;
    background: transparent !important;
}

/* Defeat theme div[class*="domain"] on wrappers only — never buttons */
.cx-home-domain.home-domain-search,
.cx-home-domain.home-domain-search div[class*="domain"]:not(.cx-home-domain__panel):not(.cx-domain-search-options__body),
.cx-home-domain div[class*="domain"]:not(.cx-home-domain__panel):not(.cx-domain-search-options__body) {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.cx-home-domain__panel {
    padding: 1.85rem 1.85rem 1.45rem !important;
    background:
        linear-gradient(165deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.03) 46%, transparent 72%),
        var(--surface-0724, #0c1220) !important;
    border: 1px solid rgba(0, 212, 255, 0.34) !important;
    border-radius: 16px !important;
}

body.cx-homepage #main-body h2.text-center {
    margin-top: 0.35rem !important;
    padding-top: 0.25rem;
}

@media (max-width: 575.98px) {
    .cx-home-domain.home-domain-search,
    .home-domain-search.cx-home-domain {
        margin: 0.85rem 0 2rem;
    }

    .cx-home-domain__panel {
        margin-top: 0;
        padding: 1.35rem 1.1rem 1.15rem !important;
        border-radius: 14px !important;
    }

    .cx-home-domain__header h1 {
        font-size: 1.45rem !important;
    }

    .cx-home-domain__row {
        flex-wrap: wrap;
    }

    .cx-home-domain__input.form-control,
    .cx-home-domain__row .form-control,
    .cx-home-domain__row input[type="text"] {
        flex: 1 1 100%;
        width: 100%;
    }

    .cx-home-domain__actions {
        display: none;
    }

    .cx-home-domain__actions-mobile {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.45rem;
        margin-top: 0.55rem;
    }

    .cx-home-domain__btn-search {
        width: 100%;
        max-width: none;
    }

    .cx-home-domain__meta {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0.65rem;
    }
}

@media (max-width: 389.98px) {
    .cx-home-domain__header h1 {
        font-size: 1.3rem !important;
    }

    .cx-home-domain.home-domain-search {
        overflow-x: clip;
    }
}
