/*==index-page-specific==*/

/* domain modal */
.domain-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.domain-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.domain-modal {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 660px;
    padding: 40px 36px;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.domain-modal-overlay.active .domain-modal {
    transform: translateY(0) scale(1);
}

.domain-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #F0F0F0;
    color: #555555;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.domain-modal-close:hover {
    background: #E0E0E0;
    color: #000000;
}

.domain-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.domain-modal-header h3 {
    font-family: 'Eurostile';
    font-weight: 700;
    font-size: 24px;
    color: #000000;
    margin-bottom: 6px;
}

.domain-modal-header p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.55);
    line-height: 21px;
}

.domain-modal-search {
    display: grid;
    grid-template-columns: 1fr 150px;
    background: #F8F9FA;
    border-radius: 100px;
    padding: 5px;
    border: 2px solid #E5E5E5;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.domain-modal-search:focus-within {
    border-color: #F26C0B;
    background: #FAFAFA;
}

.domain-modal-search input {
    border: none;
    outline: none;
    padding: 14px 20px 14px 24px;
    font-size: 15px;
    font-family: 'Neue Montreal', 'Inter', sans-serif;
    border-radius: 100px;
    width: 100%;
    background: none;
    color: #000000;
}

.domain-modal-search input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.domain-modal-search-btn {
    border-radius: 100px;
    background: #F26C0B;
    border: none;
    color: #ffffff;
    font-family: 'Neue Montreal', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease;
}

.domain-modal-search-btn:hover {
    background: #d95e08;
}

.domain-modal-search-btn span {
    position: relative;
    z-index: 2;
}

.domain-modal-search-btn .ellipes3-img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.domain-modal-search-btn .ellipes3-img img {
    width: 105px;
    height: 35px;
}

.domain-modal .domain-results {
    margin: 24px -36px -40px;
    border-radius: 0 0 24px 24px;
    box-shadow: none;
    animation: none;
}

.domain-results {
    background: #ffffff;
    overflow: hidden;
}

.domain-results-header {
    padding: 16px 24px;
    background: #F8F9FA;
    border-bottom: 1px solid #EEEEEE;
    font-size: 14px;
    color: #555555;
}

.domain-results-header strong {
    color: #000000;
}

.domain-results-list {
    max-height: 420px;
    overflow-y: auto;
}

.domain-result-row {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid #F0F0F0;
    gap: 16px;
    transition: background 0.15s ease;
}

.domain-result-row:last-child {
    border-bottom: none;
}

.domain-result-row:hover {
    background: #FAFAFA;
}

.domain-result-status {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.domain-result-status.available {
    background: #E8F5E9;
    color: #2E7D32;
}

.domain-result-status.taken {
    background: #FFEBEE;
    color: #C62828;
}

.domain-result-status.unknown {
    background: #FFF3E0;
    color: #E65100;
}

.domain-result-name {
    flex: 1;
    font-family: 'Eurostile';
    font-weight: 600;
    font-size: 15px;
    color: #000000;
}

.domain-result-label {
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 100px;
}

.domain-result-label.available {
    background: #E8F5E9;
    color: #2E7D32;
}

.domain-result-label.taken {
    background: #FFEBEE;
    color: #C62828;
}

.domain-result-label.unknown {
    background: #FFF3E0;
    color: #E65100;
}

.domain-result-price {
    font-family: 'Eurostile';
    font-weight: 700;
    font-size: 15px;
    color: #000000;
    min-width: 70px;
    text-align: right;
}

.domain-result-price span {
    font-weight: 400;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
}

.domain-result-action {
    flex-shrink: 0;
}

.domain-result-action a {
    display: inline-block;
    padding: 8px 20px;
    background: #F26C0B;
    color: #ffffff;
    font-family: 'Neue Montreal', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.domain-result-action a:hover {
    background: #d95e08;
}

.domain-result-action a.disabled {
    background: #E0E0E0;
    color: #999999;
    pointer-events: none;
}

.domain-result-divider {
    padding: 10px 24px;
    background: #F8F9FA;
    border-bottom: 1px solid #EEEEEE;
    font-family: 'Eurostile';
    font-weight: 600;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* loading spinner */
.domain-modal-search.loading .domain-modal-search-btn span {
    visibility: hidden;
}

.domain-modal-search.loading .domain-modal-search-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: domainSpin 0.6s linear infinite;
    z-index: 3;
}

@keyframes domainSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* skeleton loading */
.domain-result-skeleton {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid #F0F0F0;
    gap: 16px;
}

.skeleton-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: domainShimmer 1.2s ease infinite;
}

.skeleton-bar {
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: domainShimmer 1.2s ease infinite;
}

.skeleton-bar.w120 { width: 120px; }
.skeleton-bar.w60 { width: 60px; }
.skeleton-bar.w80 { width: 80px; }

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

/* initial hidden state for results */
#domainResults {
    display: none;
}

/* JS-generated helpers */
.skeleton-spacer {
    flex: 1;
}

.domain-error-message {
    padding: 20px 24px;
    text-align: center;
    color: #C62828;
}

@media screen and (max-width: 991px) {
    .domain-modal-overlay {
        padding: 40px 16px;
    }

    .domain-modal {
        padding: 32px 20px;
        border-radius: 20px;
    }

    .domain-modal .domain-results {
        margin: 24px -20px -32px;
        border-radius: 0 0 20px 20px;
    }

    .domain-modal-search {
        grid-template-columns: 1fr;
        border-radius: 16px;
        padding: 6px;
    }

    .domain-modal-search input {
        padding: 14px 18px;
        text-align: center;
    }

    .domain-modal-search-btn {
        border-radius: 12px;
        padding: 14px;
        margin-top: 2px;
    }

    .domain-result-row {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 8px;
    }

    .domain-result-name {
        font-size: 14px;
    }

    .domain-result-price {
        font-size: 14px;
        min-width: auto;
    }

    .domain-result-action a {
        padding: 7px 16px;
        font-size: 12px;
    }
}
