.domain-check-section {
    width: 80%;
    margin: 44px auto 70px;
}

.domain-check-box {
    position: relative;
    overflow: hidden;
    padding: 42px 42px 76px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(87, 106, 143, 0.16);
    box-shadow: 0 22px 60px rgba(87, 106, 143, 0.12);
    isolation: isolate;
}

.domain-check-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at top left, rgba(87, 106, 143, 0.34) 0%, rgba(87, 106, 143, 0.18) 28%, transparent 52%),
        radial-gradient(circle at bottom right, rgba(183, 189, 247, 0.52) 0%, rgba(183, 189, 247, 0.30) 32%, transparent 58%);
    pointer-events: none;
}

.domain-check-content {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.domain-check-badge {
    position: relative;
    isolation: isolate;
    width: fit-content;
    margin: 0 auto 18px;
    padding: 10px 18px;
    background: rgba(183, 189, 247, 0.22);
    border: 1px solid rgba(87, 106, 143, 0.22);
    border-radius: 999px;
    color: #576A8F;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(87, 106, 143, 0.10);
}

.domain-check-badge::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    pointer-events: none;
    border: 2px solid rgba(87, 106, 143, 0.42);
    box-shadow:
        0 0 0 4px rgba(183, 189, 247, 0.14),
        0 0 34px rgba(87, 106, 143, 0.22);
    animation: domainBadgePulse 1.9s infinite ease-out;
}

@keyframes domainBadgePulse {
    0% {
        transform: scale(0.94);
        opacity: 1;
    }

    68% {
        transform: scale(1.34);
        opacity: 0;
    }

    100% {
        transform: scale(1.34);
        opacity: 0;
    }
}

.domain-check-content h2 {
    margin-bottom: 14px;
    font-size: 38px;
    font-weight: 900;
    line-height: 1.55;
    letter-spacing: -1.2px;
    color: #111827;
}

.domain-check-content p {
    max-width: 680px;
    margin: 0 auto 26px;
    font-size: 18px;
    font-weight: 500;
    line-height: 2;
    color: #475569;
}

.domain-check-form {
    display: flex;
    align-items: stretch;
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    direction: rtl;
}

.domain-input-wrap {
    position: relative;
    flex: 1;
}

.domain-input {
    width: 100%;
    height: 72px;
    padding: 0 28px;
    border: 1px solid rgba(87, 106, 143, 0.12);
    outline: none;
    border-radius: 22px;
    background: #ffffff;
    color: #111827;
    font-family: "Vazirmatn", sans-serif;
    font-size: 17px;
    font-weight: 800;
    direction: ltr;
    text-align: left;
    box-shadow: 0 14px 34px rgba(87, 106, 143, 0.08);
    transition: 0.3s ease;
}

.domain-input::placeholder {
    color: #94a3b8;
}

.domain-input:focus {
    border-color: rgba(87, 106, 143, 0.28);
    box-shadow:
        0 18px 42px rgba(87, 106, 143, 0.12),
        inset 0 0 0 2px rgba(87, 106, 143, 0.10);
}

.domain-check-btn {
    flex: 0 0 auto;
    min-width: 180px;
    height: 72px;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 22px;
    background: linear-gradient(135deg, #576A8F 0%, #B7BDF7 100%);
    color: #ffffff;
    font-family: "Vazirmatn", sans-serif;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(87, 106, 143, 0.20);
    transition: 0.3s;
}

.domain-check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(87, 106, 143, 0.26);
}

.domain-check-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

/* Result pill */

.domain-result {
    display: none;
    width: fit-content;
    max-width: min(720px, 100%);
    margin: 18px auto 0;
    padding: 10px 14px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    direction: rtl;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.8;
    text-align: center;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.domain-result.show {
    display: inline-flex;
}

.domain-result-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

.domain-result-text {
    display: inline-block;
}

.domain-result.available {
    background: rgba(187, 247, 208, 0.52);
    border: 1px solid rgba(22, 163, 74, 0.20);
    color: #14532d;
}

.domain-result.available .domain-result-icon {
    background: #16a34a;
}

.domain-result.registered {
    background: rgba(254, 226, 226, 0.56);
    border: 1px solid rgba(220, 38, 38, 0.20);
    color: #991b1b;
}

.domain-result.registered .domain-result-icon {
    background: #dc2626;
}

.domain-result.invalid,
.domain-result.unsupported {
    background: rgba(254, 249, 195, 0.64);
    border: 1px solid rgba(202, 138, 4, 0.22);
    color: #854d0e;
}

.domain-result.invalid .domain-result-icon,
.domain-result.unsupported .domain-result-icon {
    background: #ca8a04;
}

.domain-result.rate_limited {
    background: rgba(255, 237, 213, 0.68);
    border: 1px solid rgba(249, 115, 22, 0.22);
    color: #9a3412;
}

.domain-result.rate_limited .domain-result-icon {
    background: #f97316;
}

.domain-result.unknown {
    background: rgba(226, 232, 240, 0.68);
    border: 1px solid rgba(100, 116, 139, 0.22);
    color: #334155;
}

.domain-result.unknown .domain-result-icon {
    background: #64748b;
}

.domain-result.loading {
    background: rgba(219, 234, 254, 0.62);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
}

.domain-result.loading .domain-result-icon {
    background: transparent;
}

.loading-icon {
    border: 3px solid rgba(37, 99, 235, 0.18);
    border-top-color: #576A8F;
    animation: domainResultSpin 0.8s linear infinite;
}

@keyframes domainResultSpin {
    to {
        transform: rotate(360deg);
    }
}

.domain-example {
    margin-top: 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.domain-example span {
    direction: ltr;
    display: inline-block;
    color: #576A8F;
}

.domain-suggestions {
    max-width: 920px;
    margin: 38px auto 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.domain-suggestions-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    text-align: center;
}

.domain-suggestions-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    direction: rtl;
}

.domain-suggestions-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(87, 106, 143, 0.10);
    color: #576A8F;
    flex: 0 0 auto;
}

.domain-suggestions-icon svg {
    width: 25px;
    height: 25px;
}

.domain-suggestions-header h3 {
    margin: 0;
    color: #111827;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.5;
    text-align: center;
}

.domain-suggestions-header p {
    max-width: 560px;
    margin: 0;
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
}

.domain-category-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.domain-category-btn {
    border: none;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #576A8F;
    font-family: "Vazirmatn", sans-serif;
    font-size: 14px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(87, 106, 143, 0.15);
    transition: 0.28s ease;
}

.domain-category-btn:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow:
        0 12px 24px rgba(87, 106, 143, 0.10),
        inset 0 0 0 1px rgba(87, 106, 143, 0.20);
}

.domain-category-btn.active {
    background: linear-gradient(135deg, #576A8F 0%, #B7BDF7 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(87, 106, 143, 0.18);
}

.domain-suggestion-hint {
    margin-top: 18px;
    color: #64748b;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.9;
    text-align: center;
}

.domain-suggestion-grid {
    display: flex;
    gap: 18px;
    margin-top: 22px;
    padding: 4px 2px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    direction: ltr;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.domain-suggestion-grid.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.domain-suggestion-grid::-webkit-scrollbar {
    display: none;
}

.domain-suggestion-card {
    position: relative;
    overflow: hidden;
    flex: 0 0 calc((100% - 18px) / 2);
    min-width: calc((100% - 18px) / 2);
    min-height: 235px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(87, 106, 143, 0.13);
    text-align: right;
    direction: rtl;
    transition: 0.3s ease;
    scroll-snap-align: start;
}

.domain-suggestion-card::before {
    content: "";
    position: absolute;
    left: -44px;
    bottom: -54px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: rgba(183, 189, 247, 0.22);
    pointer-events: none;
}

.domain-suggestion-card:hover {
    transform: translateY(-3px);
    border-color: rgba(87, 106, 143, 0.23);
    box-shadow: 0 16px 32px rgba(87, 106, 143, 0.10);
}

.domain-suggestion-card-top {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}

.domain-suggestion-card-top span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(87, 106, 143, 0.09);
    color: #576A8F;
    font-size: 13px;
    font-weight: 900;
}

.domain-suggestion-card strong {
    position: relative;
    z-index: 1;
    display: block;
    direction: ltr;
    text-align: left;
    color: #111827;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.domain-suggestion-card p {
    position: relative;
    z-index: 1;
    margin: 12px 0 20px;
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.9;
}

.domain-suggestion-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.domain-use-btn,
.domain-check-small-btn {
    flex: 1;
    border: none;
    cursor: pointer;
    height: 48px;
    border-radius: 16px;
    font-family: "Vazirmatn", sans-serif;
    font-size: 14px;
    font-weight: 900;
    transition: 0.25s ease;
}

.domain-use-btn {
    background: rgba(87, 106, 143, 0.10);
    color: #576A8F;
}

.domain-check-small-btn {
    background: #576A8F;
    color: #ffffff;
}

.domain-use-btn:hover,
.domain-check-small-btn:hover {
    transform: translateY(-2px);
}

.domain-check-small-btn:hover {
    background: #445678;
}

.domain-gift-trigger {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    width: 84px;
    height: 84px;
    border: none;
    cursor: pointer;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(87, 106, 143, 0.14), rgba(183, 189, 247, 0.28));
    color: #576A8F;
    box-shadow:
        0 16px 36px rgba(87, 106, 143, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    animation: giftFloat 2.8s ease-in-out infinite;
}

.domain-gift-trigger::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 2px solid rgba(87, 106, 143, 0.22);
    animation: giftPulse 1.9s infinite ease-out;
}

.domain-gift-trigger::after {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: inherit;
    border: 2px solid rgba(183, 189, 247, 0.30);
    animation: giftPulse 1.9s infinite ease-out 0.7s;
}

.domain-gift-trigger:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow:
        0 22px 44px rgba(87, 106, 143, 0.24),
        inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.domain-gift-icon {
    width: 34px;
    height: 34px;
    position: relative;
    z-index: 2;
}

.domain-gift-tag {
    position: absolute;
    top: -10px;
    left: -8px;
    z-index: 3;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #576A8F 0%, #B7BDF7 100%);
    color: #ffffff;
    font-family: "Vazirmatn", sans-serif;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.4;
    box-shadow: 0 10px 22px rgba(87, 106, 143, 0.20);
}

.domain-gift-spark {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.95);
    animation: giftSparkle 1.8s infinite ease-in-out;
}

.spark-1 {
    width: 6px;
    height: 6px;
    top: 10px;
    right: 14px;
}

.spark-2 {
    width: 5px;
    height: 5px;
    left: 12px;
    bottom: 16px;
    animation-delay: 0.4s;
}

.spark-3 {
    width: 4px;
    height: 4px;
    bottom: 10px;
    right: 18px;
    animation-delay: 0.8s;
}

@keyframes giftFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes giftPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.9;
    }

    75% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes giftSparkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}

.gift-popup-open {
    overflow: hidden;
}

.domain-gift-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.30);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.3s ease;
}

.domain-gift-popup-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.domain-gift-popup {
    position: relative;
    width: min(520px, 100%);
    padding: 34px 28px 26px;
    border-radius: 30px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 246, 255, 0.94));
    border: 1px solid rgba(87, 106, 143, 0.14);
    box-shadow:
        0 26px 80px rgba(87, 106, 143, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    transform: translateY(18px) scale(0.96);
    transition: 0.3s ease;
    overflow: hidden;
}

.domain-gift-popup::before {
    content: "";
    position: absolute;
    left: -50px;
    bottom: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(183, 189, 247, 0.20);
}

.domain-gift-popup-overlay.show .domain-gift-popup {
    transform: translateY(0) scale(1);
}

.domain-gift-popup-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 38px;
    height: 38px;
    border: none;
    cursor: pointer;
    border-radius: 14px;
    background: rgba(87, 106, 143, 0.08);
    color: #576A8F;
    font-size: 26px;
    line-height: 1;
    transition: 0.25s ease;
}

.domain-gift-popup-close:hover {
    background: rgba(87, 106, 143, 0.14);
    transform: rotate(10deg);
}

.domain-gift-popup-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(87, 106, 143, 0.16), rgba(183, 189, 247, 0.30));
    color: #576A8F;
    box-shadow: 0 18px 38px rgba(87, 106, 143, 0.14);
}

.domain-gift-popup-icon svg {
    width: 40px;
    height: 40px;
}

.domain-gift-popup h4 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.6;
}

.domain-gift-popup p {
    margin: 0 auto 18px;
    max-width: 400px;
    color: #475569;
    font-size: 16px;
    font-weight: 700;
    line-height: 2;
}

.domain-gift-popup p span {
    direction: ltr;
    display: inline-block;
    color: #576A8F;
    font-weight: 900;
}

.domain-gift-popup-note {
    width: fit-content;
    margin: 0 auto 20px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(183, 189, 247, 0.14);
    color: #576A8F;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.9;
}

.domain-gift-popup-btn {
    min-width: 180px;
    height: 52px;
    padding: 0 22px;
    border: none;
    cursor: pointer;
    border-radius: 16px;
    background: linear-gradient(135deg, #576A8F 0%, #B7BDF7 100%);
    color: #ffffff;
    font-family: "Vazirmatn", sans-serif;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 34px rgba(87, 106, 143, 0.18);
    transition: 0.25s ease;
}

.domain-gift-popup-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 1300px) {
    .domain-check-section {
        width: 88%;
    }
}

@media (max-width: 900px) {
    .domain-check-section {
        width: calc(100% - 28px);
        margin: 34px auto 60px;
    }

    .domain-check-box {
        padding: 34px 24px 90px;
        border-radius: 26px;
    }

    .domain-check-content h2 {
        font-size: 34px;
    }

    .domain-check-content p {
        font-size: 17px;
    }

    .domain-check-form {
        flex-direction: column;
    }

    .domain-check-btn {
        width: 100%;
        min-width: 0;
    }

    .domain-suggestion-card {
        flex-basis: 72%;
        min-width: 72%;
    }

    .domain-gift-trigger {
        width: 78px;
        height: 78px;
    }
}

@media (max-width: 620px) {
    .domain-check-section {
        width: calc(100% - 36px);
        margin: 28px auto 54px;
    }

    .domain-check-box {
        padding: 28px 18px 92px;
        border-radius: 22px;
    }

    .domain-check-content h2 {
        font-size: 27px;
    }

    .domain-check-content p {
        font-size: 15px;
    }

    .domain-check-badge {
        font-size: 13px;
    }

    .domain-input,
    .domain-check-btn {
        height: 58px;
        font-size: 15px;
        border-radius: 18px;
    }

    .domain-result {
        max-width: 100%;
        font-size: 13px;
        padding: 9px 12px;
        border-radius: 18px;
    }

    .domain-result-icon {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }

    .domain-suggestions {
        margin-top: 32px;
    }

    .domain-suggestions-title-row {
        gap: 10px;
    }

    .domain-suggestions-header h3 {
        font-size: 22px;
    }

    .domain-suggestions-header p {
        font-size: 13px;
    }

    .domain-category-list {
        justify-content: center;
    }

    .domain-category-btn {
        font-size: 13px;
        padding: 10px 14px;
    }

    .domain-suggestion-hint {
        font-size: 13px;
    }

    .domain-suggestion-card {
        flex-basis: 86%;
        min-width: 86%;
        padding: 20px;
        border-radius: 20px;
    }

    .domain-suggestion-card strong {
        font-size: 21px;
    }

    .domain-suggestion-card p {
        font-size: 13px;
    }

    .domain-suggestion-actions {
        flex-direction: column;
    }

    .domain-gift-trigger {
        right: 16px;
        bottom: 16px;
        width: 72px;
        height: 72px;
        border-radius: 22px;
    }

    .domain-gift-icon {
        width: 30px;
        height: 30px;
    }

    .domain-gift-tag {
        font-size: 10px;
        padding: 4px 8px;
    }

    .domain-gift-popup {
        padding: 30px 20px 22px;
        border-radius: 24px;
    }

    .domain-gift-popup h4 {
        font-size: 24px;
    }

    .domain-gift-popup p {
        font-size: 14px;
    }
}