.vista-ai-domain-app,
.vista-ai-domain-app * {
    box-sizing: border-box;
}

.vista-ai-domain-app {
    --vista-navy: #081a33;
    --vista-navy-2: #0c2546;
    --vista-green: #2fbe58;
    --vista-green-dark: #219b47;
    --vista-orange: #f89a08;
    --vista-text: #10213b;
    --vista-muted: #718096;
    --vista-border: #e5eaf0;
    direction: rtl;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 14px 36px;
    font-family: inherit;
}

.vista-ai-hero {
    position: relative;
    overflow: hidden;
    padding: 46px 42px 38px;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 13% 15%, rgba(47,190,88,.17), transparent 30%),
        radial-gradient(circle at 88% 90%, rgba(72,155,255,.10), transparent 32%),
        linear-gradient(135deg, #07182f 0%, #0a2444 100%);
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 22px 60px rgba(5,20,40,.12);
}

.vista-ai-hero:before,
.vista-ai-hero:after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

.vista-ai-hero:before {
    width: 280px;
    height: 280px;
    left: -130px;
    top: -150px;
    border: 1px solid rgba(47,190,88,.22);
}

.vista-ai-hero:after {
    width: 430px;
    height: 430px;
    right: -310px;
    bottom: -335px;
    border: 1px solid rgba(255,255,255,.08);
}

.vista-ai-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(47,190,88,.11);
    border: 1px solid rgba(47,190,88,.24);
    color: #bdf0ca;
    font-size: 13px;
    font-weight: 700;
}

.vista-ai-kicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vista-green);
    box-shadow: 0 0 12px rgba(47,190,88,.8);
}

.vista-ai-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(26px, 3.1vw, 42px);
    line-height: 1.55;
    font-weight: 900;
}

.vista-ai-hero > p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 0 28px;
    color: rgba(255,255,255,.72);
    font-size: 15px;
    line-height: 2;
}

.vista-ai-search-form {
    position: relative;
    z-index: 2;
    display: flex;
    direction: rtl;
    align-items: stretch;
    gap: 9px;
    width: 100%;
    max-width: 900px;
    padding: 7px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 15px 36px rgba(0,0,0,.18);
}

.vista-ai-search-input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 17px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #172238;
    font: inherit;
    font-size: 15px;
    text-align: right;
}

.vista-ai-search-input::placeholder {
    color: #98a2b3;
}

.vista-ai-search-button {
    all: unset;
    box-sizing: border-box;
    height: 52px;
    padding: 0 21px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--vista-orange), #ff8500);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 7px 18px rgba(248,154,8,.25);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.vista-ai-search-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(248,154,8,.34);
}

.vista-ai-search-button:disabled {
    cursor: wait;
    opacity: .75;
    transform: none;
}

.vista-ai-search-button svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.vista-ai-message {
    min-height: 22px;
    margin: 22px 4px 12px;
    color: #65758b;
    font-size: 14px;
}

.vista-ai-message.is-error {
    padding: 12px 15px;
    border-radius: 10px;
    color: #9c2d2d;
    background: #fff1f1;
    border: 1px solid #ffdada;
}

.vista-ai-message.is-info {
    color: #52647d;
}

.vista-ai-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.vista-ai-card {
    position: relative;
    overflow: hidden;
    min-height: 235px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--vista-border);
    box-shadow: 0 10px 30px rgba(9,34,64,.07);
    opacity: 0;
    transform: translateY(9px);
    animation: vistaCardIn .42s ease forwards;
    animation-delay: var(--vista-delay, 0ms);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.vista-ai-card:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 74px;
    height: 3px;
    border-radius: 0 0 0 4px;
    background: linear-gradient(90deg, var(--vista-green), #7de79a);
}

.vista-ai-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47,190,88,.38);
    box-shadow: 0 17px 38px rgba(9,34,64,.11);
}

.vista-ai-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.vista-ai-score {
    direction: ltr;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    color: var(--vista-green-dark);
    font-size: 14px;
    font-weight: 900;
}

.vista-ai-score small {
    font-size: 9px;
    font-weight: 700;
    opacity: .55;
}

.vista-ai-tld {
    direction: ltr;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf9f1;
    color: #218943;
    font: 800 12px/1 Arial, sans-serif;
}

.vista-ai-domain-name {
    display: flex;
    align-items: baseline;
    gap: 0;
    margin-bottom: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--vista-text);
    font-family: Arial, sans-serif;
}

.vista-ai-domain-name strong {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 22px;
    font-weight: 800;
}

.vista-ai-domain-name span {
    color: var(--vista-green-dark);
    font-size: 16px;
    font-weight: 800;
}

.vista-ai-card p {
    flex: 1;
    margin: 0 0 18px;
    color: var(--vista-muted);
    font-size: 13px;
    line-height: 1.9;
}

.vista-ai-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vista-ai-buy {
    flex: 1;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #2fbe58, #24a64c);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 7px 16px rgba(47,190,88,.17);
    transition: transform .2s ease, box-shadow .2s ease;
}

.vista-ai-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(47,190,88,.25);
}

.vista-ai-copy {
    all: unset;
    box-sizing: border-box;
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8ef;
    border-radius: 10px;
    color: #748297;
    background: #f8fafc;
    cursor: pointer;
}

.vista-ai-copy svg {
    width: 18px;
    height: 18px;
}

.vista-ai-copy.is-copied:after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #fff;
    background: var(--vista-green);
    font-weight: 900;
}

.vista-ai-footnote {
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 12px;
    color: #7a8798;
    background: #f8fafc;
    border: 1px solid #edf0f3;
    font-size: 12px;
    line-height: 1.9;
}

.vista-ai-skeleton {
    min-height: 220px;
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #edf0f3;
}

.vista-ai-skeleton span {
    display: block;
    height: 13px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #eef1f4, #f7f8fa, #eef1f4);
    background-size: 200% 100%;
    animation: vistaShimmer 1.15s linear infinite;
}

.vista-ai-skeleton span:nth-child(1) { width: 45%; height: 25px; }
.vista-ai-skeleton span:nth-child(2) { width: 82%; }
.vista-ai-skeleton span:nth-child(3) { width: 64%; }

@keyframes vistaCardIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes vistaShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 980px) {
    .vista-ai-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .vista-ai-domain-app {
        padding: 14px 8px 26px;
    }

    .vista-ai-hero {
        padding: 30px 18px 22px;
        border-radius: 19px;
    }

    .vista-ai-hero h1 {
        font-size: 27px;
        line-height: 1.55;
    }

    .vista-ai-hero > p {
        font-size: 13px;
        line-height: 1.9;
    }

    .vista-ai-search-form {
        flex-direction: column;
        padding: 6px;
    }

    .vista-ai-search-input,
    .vista-ai-search-button {
        width: 100%;
    }

    .vista-ai-results {
        grid-template-columns: 1fr;
    }

    .vista-ai-card {
        min-height: 210px;
    }
}

/* v1.2 - style/category label */
.vista-ai-card-tags {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.vista-ai-style {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    border-radius: 999px;
    color: #13743a;
    background: #ecfbf1;
    border: 1px solid #d0f3db;
    font-size: 11px;
    font-weight: 800;
}
