.hdv2-home-legacy .hdv2-home-domain {
    box-sizing: border-box;
    margin: 3.75rem 0 5.5rem;
    padding: 0 1rem;
}

.hdv2-home-legacy .hdv2-home-domain > .hdv2-home__container {
    padding: 0;
}

.hdv2-home-legacy .hdv2-home-domain__panel {
    position: relative;
    padding: 2.6rem clamp(1.25rem, 5vw, 4rem) 4.25rem;
    overflow: hidden;
    border: 1px solid var(--hdv2-home-border);
    border-radius: 1rem;
    background-color: #eef3f9;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.08) 1px, transparent 0),
        radial-gradient(circle at 14% 18%, rgba(37, 99, 235, 0.16), transparent 34%),
        linear-gradient(118deg, #e4efff 0%, #f5f7fb 52%, #e7edf7 100%);
    background-size: 18px 18px, 180% 180%, 220% 220%;
    background-position: 0 0, 0% 50%, 0% 50%;
    box-shadow: var(--hdv2-home-shadow-card);
    animation: hdv2-domain-color-wave 9s ease-in-out infinite;
}

:root[data-hdv2-theme="dark"] .hdv2-home-legacy .hdv2-home-domain__panel {
    background-color: #151c29;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(96, 165, 250, 0.07) 1px, transparent 0),
        radial-gradient(circle at 14% 18%, rgba(37, 99, 235, 0.18), transparent 34%),
        linear-gradient(118deg, #111a2a 0%, #1b2230 52%, #121824 100%);
    background-size: 18px 18px, 180% 180%, 220% 220%;
}

@keyframes hdv2-domain-color-wave {
    0%,
    100% {
        background-position: 0 0, 0% 50%, 0% 50%;
    }

    50% {
        background-position: 0 0, 100% 50%, 100% 50%;
    }
}

.hdv2-home-legacy .hdv2-home-domain__head {
    max-width: 42rem;
    margin: 0 auto 1.2rem;
    text-align: center;
}

.hdv2-home-legacy .hdv2-home-domain__head .hdv2-home-heading__title-main,
.hdv2-home-legacy .hdv2-home-domain__head .hdv2-home-heading__title-sub {
    color: var(--hdv2-home-text-strong);
}

.hdv2-home-legacy .hdv2-home-domain__head .hdv2-home-heading__lead {
    color: var(--hdv2-home-muted);
}

.hdv2-home-legacy .hdv2-home-domain__eyebrow {
    margin: 0 0 0.45rem;
    color: #60a5fa;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hdv2-home-legacy .hdv2-home-domain__title {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(1.6rem, 3vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.hdv2-home-legacy .hdv2-home-domain__lead {
    display: none;
}

.hdv2-home-legacy .hdv2-home-domain__search {
    display: flex;
    max-width: 48rem;
    min-height: 3.75rem;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--hdv2-home-border);
    border-radius: 0.75rem;
    background: #ffffff;
    align-items: stretch;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hdv2-home-legacy .hdv2-home-domain__search:focus-within {
    border-color: var(--hdv2-home-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 10px 30px rgba(15, 23, 42, 0.08);
}

.hdv2-home-legacy .hdv2-home-domain__search-field {
    display: flex;
    min-width: 0;
    padding: 0 1.15rem;
    gap: 0.75rem;
    flex: 1;
    align-items: center;
}

.hdv2-home-legacy .hdv2-home-domain__search-icon {
    display: inline-flex;
    color: #64748b;
    flex-shrink: 0;
}

.hdv2-home-legacy .hdv2-home-domain__search-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hdv2-home-legacy .hdv2-home-domain__input {
    width: 100%;
    min-width: 0;
    padding: 1rem 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #111827;
    font-family: inherit;
    font-size: 0.95rem;
}

.hdv2-home-legacy .hdv2-home-domain__input::placeholder {
    color: #7a8799;
}

.hdv2-home-legacy .hdv2-home-domain__submit {
    display: inline-flex;
    min-width: 7.75rem;
    margin: 0.55rem;
    padding: 0 1.4rem;
    border: 0;
    border-radius: 0.5rem;
    background: #0b0f17;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 720;
    transition: background-color 0.15s ease;
}

.hdv2-home-legacy .hdv2-home-domain__submit:hover {
    background: #1a2230;
    opacity: 1;
}

.hdv2-home-legacy .hdv2-home-domain__submit svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hdv2-home-legacy .hdv2-home-domain__quick-links {
    display: flex;
    margin-top: 1rem;
    align-items: center;
    justify-content: center;
}

.hdv2-home-legacy .hdv2-home-domain__quick-links a {
    position: relative;
    display: inline-flex;
    padding: 0 1.25rem;
    gap: 0.45rem;
    align-items: center;
    color: var(--hdv2-home-muted);
    font-size: 0.75rem;
    font-weight: 570;
    transition: color 0.15s ease;
}

.hdv2-home-legacy .hdv2-home-domain__quick-links a + a::before {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    width: 1px;
    background: var(--hdv2-home-border);
    content: "";
}

.hdv2-home-legacy .hdv2-home-domain__quick-links a:hover {
    color: var(--hdv2-home-text-strong);
}

.hdv2-home-legacy .hdv2-home-domain__quick-links svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--hdv2-home-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hdv2-home-legacy .hdv2-home-domain__tlds {
    position: relative;
    z-index: 2;
    display: grid;
    margin: -2rem clamp(1rem, 4vw, 4rem) 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    gap: 0.75rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    list-style: none;
    box-shadow: none;
}

.hdv2-home-legacy .hdv2-home-domain__tld {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 4.75rem;
    margin: 0;
    padding: 1rem 0.75rem;
    border: 1px solid var(--hdv2-home-border);
    border-radius: 0.55rem;
    background: var(--hdv2-home-surface);
    gap: 0.65rem;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    text-align: left;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.hdv2-home-legacy .hdv2-home-domain__tld:hover {
    border-color: var(--hdv2-home-primary);
    background: var(--hdv2-home-surface);
    transform: translateY(-2px);
}

.hdv2-home-legacy .hdv2-home-domain__tld-badge {
    position: absolute;
    top: -0.55rem;
    right: 0.55rem;
    padding: 0.14rem 0.38rem;
    border: 1px solid var(--hdv2-home-border);
    border-radius: 0.3rem;
    background: var(--hdv2-home-primary-soft);
    color: var(--hdv2-home-primary);
    font-size: 0.58rem;
    font-weight: 720;
    letter-spacing: 0.01em;
}

.hdv2-home-legacy .hdv2-home-domain__tld-logo {
    width: auto;
    max-width: 3.5rem;
    height: 1.65rem;
    object-fit: contain;
    object-position: center;
    transition: transform 0.2s ease;
}

.hdv2-home-legacy .hdv2-home-domain__tld:hover .hdv2-home-domain__tld-logo {
    transform: scale(1.03);
}

.hdv2-home-legacy .hdv2-home-domain__tld-name {
    display: none;
}

.hdv2-home-legacy .hdv2-home-domain__tld-price {
    color: var(--hdv2-home-text-strong);
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

@media (max-width: 860px) {
    .hdv2-home-legacy .hdv2-home-domain__tlds {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hdv2-home-legacy .hdv2-home-domain {
        margin: 2.75rem 0 4rem;
        padding: 0 0.75rem;
    }

    .hdv2-home-legacy .hdv2-home-domain__panel {
        padding: 2.25rem 1rem 4.25rem;
        border-radius: 0.9rem;
    }

    .hdv2-home-legacy .hdv2-home-domain__title {
        font-size: clamp(1.5rem, 7.5vw, 1.85rem);
    }

    .hdv2-home-legacy .hdv2-home-domain__search {
        min-height: 3.5rem;
    }

    .hdv2-home-legacy .hdv2-home-domain__submit {
        min-width: 6.5rem;
        margin: 0.4rem;
        padding: 0 0.85rem;
    }

    .hdv2-home-legacy .hdv2-home-domain__quick-links a {
        padding: 0 0.55rem;
        flex: 1;
        flex-direction: column;
        font-size: 0.62rem;
        text-align: center;
    }

    .hdv2-home-legacy .hdv2-home-domain__quick-links a + a::before {
        top: 0;
        bottom: 0;
    }

    .hdv2-home-legacy .hdv2-home-domain__tlds {
        margin-right: 0.75rem;
        margin-left: 0.75rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hdv2-home-legacy .hdv2-home-domain__tld {
        min-height: 4.5rem;
        padding: 0.9rem 0.55rem;
    }
}

@media (max-width: 400px) {
    .hdv2-home-legacy .hdv2-home-domain__search-field {
        padding: 0 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hdv2-home-legacy .hdv2-home-domain__panel {
        animation: none;
    }

    .hdv2-home-legacy .hdv2-home-domain__search,
    .hdv2-home-legacy .hdv2-home-domain__submit,
    .hdv2-home-legacy .hdv2-home-domain__quick-links a,
    .hdv2-home-legacy .hdv2-home-domain__tld,
    .hdv2-home-legacy .hdv2-home-domain__tld-logo {
        transition: none;
    }
}
