/**
 * barabd — Premium domain search strip (homepage)
 * Full-width dark cyber background — visual only.
 */

.bar-domain-search-strip--premium {
    position: relative;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
    margin-top: 0;
    padding: 48px 0 44px;
    background: linear-gradient(
        160deg,
        #010508 0%,
        #031018 30%,
        #051828 55%,
        #0a1f38 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 40px rgba(0, 0, 0, 0.25);
}

.bar-domain-search-strip--premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #39d353 0%, #22c55e 50%, #0d9488 100%);
    z-index: 3;
    pointer-events: none;
}

.bar-domain-search-strip--premium::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 55% at 0% 40%, rgba(57, 211, 83, 0.12), transparent 55%),
        radial-gradient(ellipse 75% 55% at 100% 60%, rgba(37, 99, 235, 0.14), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.bar-domain-strip-ambient {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.bar-domain-strip-ambient__mesh {
    position: absolute;
    inset: -35%;
    opacity: 0.65;
    background-image:
        radial-gradient(circle at center, rgba(57, 211, 83, 0.2) 1px, transparent 1px),
        linear-gradient(rgba(57, 211, 83, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
    background-size: 26px 26px, 56px 56px, 56px 56px;
    animation: barabdDomainMesh 42s linear infinite;
}

.bar-domain-strip-ambient__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.bar-domain-strip-ambient__blob--1 {
    width: min(50vw, 480px);
    height: min(50vw, 480px);
    top: -30%;
    right: -8%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.5) 0%, transparent 70%);
    animation: barabdDomainBlob1 20s ease-in-out infinite;
}

.bar-domain-strip-ambient__blob--2 {
    width: min(45vw, 420px);
    height: min(45vw, 420px);
    bottom: -35%;
    left: -10%;
    background: radial-gradient(circle, rgba(57, 211, 83, 0.4) 0%, transparent 72%);
    animation: barabdDomainBlob2 24s ease-in-out infinite;
}

.bar-domain-strip-ambient__streams span {
    position: absolute;
    top: -10%;
    width: 2px;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(57, 211, 83, 0.9), rgba(56, 189, 248, 0.55), transparent);
    border-radius: 2px;
    box-shadow: 0 0 16px rgba(57, 211, 83, 0.45);
    animation: barabdDomainStream 4.5s linear infinite;
    opacity: 0;
}

.bar-domain-strip-ambient__streams span:nth-child(1) { left: 5%; animation-delay: 0s; }
.bar-domain-strip-ambient__streams span:nth-child(2) { left: 18%; animation-delay: 1.4s; height: 35%; }
.bar-domain-strip-ambient__streams span:nth-child(3) { left: 35%; animation-delay: 2.6s; }
.bar-domain-strip-ambient__streams span:nth-child(4) { left: 65%; animation-delay: 0.7s; height: 38%; }
.bar-domain-strip-ambient__streams span:nth-child(5) { left: 82%; animation-delay: 2.1s; }
.bar-domain-strip-ambient__streams span:nth-child(6) { left: 94%; animation-delay: 1s; height: 32%; }

.bar-domain-strip-ambient__packets span {
    position: absolute;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(186, 230, 253, 0.65);
    text-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
    animation: barabdDomainPacket 12s linear infinite;
}

.bar-domain-strip-ambient__packets span:nth-child(1) { left: 4%; top: 18%; }
.bar-domain-strip-ambient__packets span:nth-child(2) { left: 7%; top: 72%; animation-delay: 2s; color: rgba(57, 211, 83, 0.65); }
.bar-domain-strip-ambient__packets span:nth-child(3) { left: 91%; top: 22%; animation-delay: 3.5s; }
.bar-domain-strip-ambient__packets span:nth-child(4) { left: 95%; top: 68%; animation-delay: 1.2s; }
.bar-domain-strip-ambient__packets span:nth-child(5) { left: 88%; top: 45%; animation-delay: 4s; color: rgba(57, 211, 83, 0.6); }

.bar-domain-strip-ambient__nodes span {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(57, 211, 83, 0.9);
    box-shadow: 0 0 0 3px rgba(57, 211, 83, 0.12), 0 0 18px rgba(57, 211, 83, 0.45);
    animation: barabdDomainNode 3s ease-in-out infinite;
}

.bar-domain-strip-ambient__nodes span:nth-child(1) { left: 6%; top: 35%; }
.bar-domain-strip-ambient__nodes span:nth-child(2) { left: 9%; top: 58%; animation-delay: 0.8s; }
.bar-domain-strip-ambient__nodes span:nth-child(3) { left: 92%; top: 32%; animation-delay: 1.4s; background: rgba(56, 189, 248, 0.9); }
.bar-domain-strip-ambient__nodes span:nth-child(4) { left: 96%; top: 55%; animation-delay: 2s; }

.bar-domain-strip-ambient__scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(57, 211, 83, 0.55), rgba(56, 189, 248, 0.4), transparent);
    box-shadow: 0 0 18px rgba(57, 211, 83, 0.3);
    opacity: 0.65;
    animation: barabdDomainScan 7s ease-in-out infinite;
}

.bar-domain-search-strip--premium .container-fluid {
    position: relative;
    z-index: 2;
    padding-left: clamp(16px, 4vw, 48px) !important;
    padding-right: clamp(16px, 4vw, 48px) !important;
}

/* Search bar — glass premium */
.bar-domain-search-strip--premium .bar-ds-box {
    max-width: 820px;
    min-height: 56px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    overflow: hidden;
    align-items: stretch;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(57, 211, 83, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.bar-domain-search-strip--premium .bar-ds-box:focus-within {
    transform: translateY(-2px);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(57, 211, 83, 0.25),
        0 0 40px rgba(57, 211, 83, 0.12);
}

.bar-domain-search-strip--premium .bar-ds-prefix {
    color: #0f2847;
    font-weight: 700;
    border-right-color: rgba(15, 40, 71, 0.12);
    padding-left: 22px;
}

.bar-domain-search-strip--premium .bar-ds-input {
    font-size: 1.05rem;
    padding: 16px 20px !important;
    border-radius: 0 !important;
}

.bar-domain-search-strip--premium .bar-ds-input::placeholder {
    color: #94a3b8;
}

.bar-domain-search-strip--premium .bar-ds-buttons {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.bar-domain-search-strip--premium .bar-ds-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #059669 100%) !important;
    margin: 0 !important;
    padding: 0 36px !important;
    min-height: 100%;
    height: auto;
    align-self: stretch;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none;
}

.bar-domain-search-strip--premium .bar-ds-btn:hover,
.bar-domain-search-strip--premium .bar-ds-btn:focus {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%) !important;
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

/* TLD row — glass chips */
.bar-domain-search-strip--premium .bar-domain-tld-row {
    margin-top: 28px;
    gap: 20px 28px;
}

.bar-domain-search-strip--premium .bar-domain-tld-item {
    padding: 14px 20px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 88px;
}

.bar-domain-search-strip--premium .bar-domain-tld-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(57, 211, 83, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 24px rgba(57, 211, 83, 0.1);
}

.bar-domain-search-strip--premium .bar-domain-tld-item img {
    height: 36px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.bar-domain-search-strip--premium .bar-domain-tld-item:hover img {
    transform: scale(1.08);
}

.bar-domain-search-strip--premium .bar-domain-tld-item .tld-name {
    color: #e2e8f0;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.bar-domain-search-strip--premium .bar-ds-btn-transfer {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
}

.bar-domain-search-strip--premium .bar-ds-btn-transfer:hover {
    background: rgba(57, 211, 83, 0.15) !important;
    border-color: rgba(57, 211, 83, 0.4) !important;
    color: #4ade80 !important;
    box-shadow: 0 8px 24px rgba(57, 211, 83, 0.2);
}

@keyframes barabdDomainMesh {
    0% { transform: translate(0, 0); }
    100% { transform: translate(56px, 56px); }
}

@keyframes barabdDomainBlob1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-3%, 5%); }
}

@keyframes barabdDomainBlob2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(4%, -3%); }
}

@keyframes barabdDomainStream {
    0% { top: -15%; opacity: 0; }
    10% { opacity: 0.85; }
    90% { opacity: 0.85; }
    100% { top: 105%; opacity: 0; }
}

@keyframes barabdDomainPacket {
    0% { transform: translateY(8px); opacity: 0; }
    15% { opacity: 0.8; }
    85% { opacity: 0.8; }
    100% { transform: translateY(-16px); opacity: 0; }
}

@keyframes barabdDomainNode {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

@keyframes barabdDomainScan {
    0%, 100% { top: 15%; opacity: 0; }
    10% { opacity: 0.7; }
    50% { top: 80%; opacity: 0.7; }
    60% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .bar-domain-strip-ambient__mesh,
    .bar-domain-strip-ambient__blob,
    .bar-domain-strip-ambient__streams span,
    .bar-domain-strip-ambient__packets span,
    .bar-domain-strip-ambient__nodes span,
    .bar-domain-strip-ambient__scan {
        animation: none !important;
    }
}

@media (max-width: 767.98px) {
    .bar-domain-search-strip--premium {
        padding: 36px 0 32px;
    }

    .bar-domain-search-strip--premium .bar-ds-box {
        border-radius: 16px;
        flex-wrap: wrap;
        overflow: hidden;
    }

    .bar-domain-search-strip--premium .bar-ds-prefix {
        border-right: none;
        border-bottom: 1px solid rgba(15, 40, 71, 0.1);
        width: 100%;
        justify-content: center;
        padding: 10px;
    }

    .bar-domain-search-strip--premium .bar-ds-buttons {
        width: 100%;
    }

    .bar-domain-search-strip--premium .bar-ds-btn {
        width: 100%;
        min-height: 48px;
        border-radius: 0 !important;
    }
}
