:root {
    --ci-dark-1: #303033;
    --ci-dark-2: #58595B;
    --ci-blue-1: #374780;
    --ci-blue-2: #3498DB;
    --ci-blue-4: #00ABFF;
    --ci-blue-4: #5398C6;
    --ci-red-1: #E74C3C;
    --ci-green-1: #03BD70;
    --ci-green-4: #077C60;
    --ci-yellow-1: #FFC433;
    --ci-yellow-3: #F3AA29;
    --ci-orange: #EE6300;
    --ci-white: #FFFFFF;
    --ci-gray-1: #F5F5F5;
    --ci-gray-2: #ECF0F1;
    --ci-gray-3: #BDC3C7;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    background-color: var(--ci-gray-1);
    color: var(--ci-dark-1);
    line-height: 1.6;
}

/* ── Typography ─────────────────── */
.page-title {
    color: var(--ci-blue-1);
    font-weight: 700;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ai-badge-title,
.ai-badge-inline {
    background: var(--ci-blue-2);
    color: #fff;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.step-label {
    font-weight: 700;
    font-size: 16px;
    color: var(--ci-blue-1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

@media (min-width: 576px) {
    .step-label {
        font-size: 18px;
    }
}

@media (min-width: 768px) {
    .step-label {
        font-size: 20px;
    }
}

@media (min-width: 992px) {
    .step-label {
        font-size: 22px;
    }
}

.step-num {
    background: var(--ci-blue-1);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .step-num {
        font-size: 13px;
        width: 19px;
        height: 19px;
    }
}

@media (min-width: 768px) {
    .step-num {
        font-size: 14px;
        width: 21px;
        height: 21px;
    }
}

.input-field-label {
    font-size: 12px;
    font-weight: 700;
    display: block;
    margin-bottom: 0.4rem;
}

@media (min-width: 576px) {
    .input-field-label {
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .input-field-label {
        font-size: 14px;
    }
}

.req-star {
    color: #ef4444;
    /* Tailwind Red-500 */
    margin-left: 2px;
    font-weight: bold;
}

/* ── Search Section Card ────────── */
/* .search-section {
    background: var(--ci-white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(55, 71, 128, 0.08);
    border: 1px solid var(--ci-gray-2);
} */

/* ── Category list ──────────────── */
.cat-scroll-container {
    background: var(--ci-white);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    flex-wrap: nowrap !important;
}

.input-wrapper.error,
.form-control.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.input-wrapper.unavailable {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.cat-scroll-container::-webkit-scrollbar {
    display: none;
}

.cat-scroll-container:active {
    cursor: grabbing;
}

.category-item {
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--ci-white);
    min-width: 90px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    position: relative;
    flex-shrink: 0;
    padding-top: 12px;
    border: 2px solid transparent;
}

@media (min-width: 576px) {
    .category-item {
        min-width: 100px;
        height: 100px;
        padding-top: 14px;
    }
}

@media (min-width: 768px) {
    .category-item {
        min-width: 110px;
        height: 110px;
        padding-top: 15px;
    }
}

@media (min-width: 992px) {
    .category-item {
        min-width: 120px;
        height: 120px;
        padding-top: 16px;
    }
}

.category-item i {
    font-size: 1.3rem;
    color: var(--ci-blue-1);
    margin-bottom: 4px;
}

@media (min-width: 576px) {
    .category-item i {
        font-size: 1.45rem;
    }
}

@media (min-width: 768px) {
    .category-item i {
        font-size: 1.6rem;
    }
}

@media (min-width: 992px) {
    .category-item i {
        font-size: 1.7rem;
    }
}

.category-item.active {
    border-color: var(--ci-blue-1);
    box-shadow: 0 0 0 1px var(--ci-blue-1), 0 4px 12px rgba(55, 71, 128, 0.12);
    background: #f0f4ff;
    transform: translateY(-2px);
}

.category-item:hover:not(.active) {
    border-color: var(--ci-blue-1);
    background: #f8faff;
}

.price-tag {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 10px;
    color: var(--ci-blue-2);
    font-weight: 700;
    opacity: 0.85;
}

@media (min-width: 576px) {
    .price-tag {
        top: 7px;
        right: 9px;
        font-size: 11px;
    }
}

@media (min-width: 768px) {
    .price-tag {
        top: 8px;
        right: 10px;
        font-size: 12px;
    }
}

.cat-label-text-h {
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    padding: 0 4px;
    color: var(--ci-blue-1);
    opacity: 0.9;
    display: block;
    margin-top: 4px;
}

@media (min-width: 576px) {
    .cat-label-text-h {
        font-size: 12px;
    }
}

@media (min-width: 768px) {
    .cat-label-text-h {
        font-size: 13px;
    }
}

@media (min-width: 992px) {
    .cat-label-text-h {
        font-size: 14px;
    }
}

.cat-label-text {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    padding: 0 4px;
    color: var(--ci-blue-1);
    opacity: 0.55;
    display: block;
}

@media (min-width: 576px) {
    .cat-label-text {
        font-size: 11px;
    }
}

@media (min-width: 768px) {
    .cat-label-text {
        font-size: 12px;
    }
}

/* ── Input group dashed wrapper ─── */
.input-group-container {
    border: 2px dashed var(--ci-gray-3);
    border-radius: 14px;
    padding: 14px;
}

@media (min-width: 768px) {
    .input-group-container {
        border: none;
        padding: 0;
    }
}

.input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--ci-dark-1);
    border-radius: 8px;
    overflow: hidden;
    height: 44px;
    background: var(--ci-white);
    transition: border-color 0.2s;
}

@media (min-width: 576px) {
    .input-wrapper {
        height: 48px;
    }
}

@media (min-width: 768px) {
    .input-wrapper {
        height: 52px;
    }
}

@media (min-width: 992px) {
    .input-wrapper {
        height: 54px;
    }
}

.input-wrapper:focus-within {
    border-color: var(--ci-blue-1);
    box-shadow: 0 0 0 3px rgba(55, 71, 128, 0.08);
}

.input-wrapper.disabled {
    background-color: #f1f5f9;
    border-color: var(--ci-gray-3);
    cursor: not-allowed;
    opacity: 0.7;
}

.input-wrapper.disabled input {
    cursor: not-allowed;
    color: var(--ci-dark-2);
}

.input-wrapper input {
    border: none;
    padding: 8px 12px;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    text-align: right;
    font-weight: 500;
    color: var(--ci-dark-1);
    background: transparent;
    font-family: 'Google Sans', 'Roboto', sans-serif;
}

@media (min-width: 576px) {
    .input-wrapper input {
        padding: 9px 13px;
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .input-wrapper input {
        padding: 10px 14px;
        font-size: 1.05rem;
    }
}

@media (min-width: 992px) {
    .input-wrapper input {
        padding: 10px 15px;
        font-size: 1.1rem;
    }
}

.search-field-error {
    display: block;
    margin-top: 8px;
    min-height: 18px;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
}

.search-field-error.is-hidden {
    visibility: hidden;
}

.modal-field-error {
    display: block;
    margin-top: 8px;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
}

.modal-field-error.is-hidden {
    display: none;
}

/* ── Language Popup (Center) ────────── */
.lang-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(231, 76, 60, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(231, 76, 60, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .lang-popup {
        padding: 10px 20px;
        font-size: 0.95rem;
        gap: 8px;
    }

    .lang-popup i {
        font-size: 1.25rem !important;
    }
}

.lang-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.tld-box {
    background: var(--ci-blue-1);
    color: #fff;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 86px;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.3s;
}

.tld-select-wrap {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    background: var(--ci-blue-1);
    flex-shrink: 0;
    transition: background-color 0.3s;
}

.tld-select-wrap::after {
    content: "\25BE";
    position: absolute;
    left: 10px;
    color: #fff;
    pointer-events: none;
    font-size: 1.2rem;
}

.tld-select {
    appearance: none;
    border: none;
    background: var(--ci-blue-1);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    height: 100%;
    padding: 0 16px 0 28px;
    outline: none;
    cursor: pointer;
    font-family: 'Google Sans', 'Roboto', sans-serif;
    transition: background-color 0.3s;
}

/* ── Specialized Input Colors ────────────────── */
.label-idn {
    color: var(--ci-yellow-3) !important;
}

.label-eng {
    color: var(--ci-blue-1) !important;
}

.label-thai {
    color: var(--ci-blue-4) !important;
}

.bg-idn {
    background-color: var(--ci-yellow-3) !important;
}

.bg-eng {
    background-color: var(--ci-blue-1) !important;
}

.bg-thai {
    background-color: var(--ci-blue-4) !important;
}

.border-idn {
    border-color: var(--ci-yellow-3) !important;
}

.border-eng {
    border-color: var(--ci-blue-1) !important;
}

.border-thai {
    border-color: var(--ci-blue-4) !important;
}

/* ── Plus Circle ────────────────── */
.plus-circle {
    width: 46px;
    height: 46px;
    background: var(--ci-blue-4);
    /* Changed from red to light blue to match results style */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    line-height: 1;
    font-weight: bold;
    flex-shrink: 0;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 171, 255, 0.25);
    z-index: 10;
    margin: 0 -18px;
    transition: all 0.3s ease;
}

.plus-circle-symbol {
    display: inline-block;
    line-height: 1;
    transform: translateY(-2px);
}

.plus-circle-compact {
    width: 40px;
    height: 40px;
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .plus-circle-compact {
        margin-top: 0;
        margin-bottom: 0;
        align-self: center;
    }
}

/* ── Search Button ──────────────── */
.btn-search-custom {
    background: var(--ci-blue-1);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    height: 44px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Google Sans', 'Roboto', sans-serif;
}

@media (min-width: 576px) {
    .btn-search-custom {
        padding: 0 20px;
        height: 48px;
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) {
    .btn-search-custom {
        padding: 0 24px;
        height: 52px;
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .btn-search-custom {
        padding: 0 26px;
        height: 54px;
    }
}

.btn-search-custom:hover {
    background: #2a3765;
    box-shadow: 0 4px 14px rgba(55, 71, 128, 0.3);
}

/* ── Badge Processing ──────────── */
.badge-processing {
    background: var(--ci-blue-2);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

/* ── Promo Strip ─────────────────── */
.promo-strip {
    background: #f0fff8;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--ci-green-4);
    flex-wrap: wrap;
}

/* ── Promo Pair Banner ──────────── */
.promo-pair-banner {
    border: 1px solid #e2e8f0;
    background: #f0f7ff !important;
    border-radius: 16px;
    padding: 24px 10px;
    /* Tighter padding for mobile */
    text-align: center;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .promo-pair-banner {
        padding: 40px 30px;
    }
}

.promo-pair-banner h2 {
    color: var(--ci-blue-1);
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .promo-pair-banner h2 {
        font-size: 1.5rem;
    }
}

.pair-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.pair-item {
    border: 2px solid var(--ci-blue-2);
    border-radius: 8px;
    padding: 10px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    background: #f0f7ff !important;
    min-width: auto;
    color: var(--ci-dark-1);
    white-space: nowrap;
}

@media (min-width: 640px) {
    .pair-item {
        padding: 14px 28px;
        font-size: 1.25rem;
        min-width: 180px;
    }
}

.pair-tag {
    position: absolute;
    top: -12px;
    left: 8px;
    background: var(--ci-blue-2);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 6px 6px 0 0;
    font-weight: 700;
}

@media (min-width: 640px) {
    .pair-tag {
        top: -14px;
        left: 10px;
        font-size: 0.72rem;
        padding: 2px 10px;
    }
}

.pair-mid-plus {
    width: 32px;
    height: 32px;
    background: var(--ci-blue-2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 5;
    margin: 0 -9px;
    border: 3px solid #fff;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .pair-mid-plus {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
        margin: 0 -11px;
        border-width: 4px;
    }
}

/* ── Results Section ─────────────── */
.dashed-container-result {
    border: 2px dashed var(--ci-gray-3);
    border-radius: 16px;
    background: var(--ci-white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-inner-card {
    background: var(--ci-white);
    border-radius: 14px;
    border: 1px solid var(--ci-gray-3);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(14, 59, 107, 0.1);
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

.card-header-custom {
    background: linear-gradient(115deg, var(--ci-gray-2) 55%, var(--ci-blue-1) 55.1%);
}

@media (min-width: 768px) {
    .card-header-custom {
        background: linear-gradient(115deg, var(--ci-gray-2) 65%, var(--ci-blue-1) 65.1%);
    }
}

.result-tld-badge {
    background: var(--ci-yellow-1);
    color: var(--ci-blue-1);
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.82rem;
    white-space: nowrap;
}

.result-domain-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ci-dark-1);
}

@media (min-width: 768px) {
    .result-domain-name {
        font-size: 1.45rem;
    }
}

.result-tld-tag {
    background: var(--ci-gray-2);
    color: var(--ci-dark-2);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.result-available-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ci-green-1);
    margin-top: 4px;
}

.status-dot-green {
    width: 9px;
    height: 9px;
    background: var(--ci-green-1);
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot-gray {
    width: 9px;
    height: 9px;
    background: #94a3b8;
    /* Tailwind Slate-400 */
    border-radius: 50%;
    flex-shrink: 0;
}

.connector-line {
    position: absolute;
    right: -1px;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--ci-gray-2);
}

/* ── Entry Animations (Revealing Results) ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        max-height: 0;
        margin-top: 0;
        margin-bottom: 0;
        overflow: hidden;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
        /* Large enough to hold content */
    }
}

.reveal-item {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* For elements that should be visible immediately and then pushed down */
.reveal-immediate {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: 0.1s;
}

/* ── SweetAlert2 Premium Polishing ───────────── */
body.custom-swal-open {
    overflow: hidden !important;
}

.custom-swal2-container.custom-swal-container {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.25rem !important;
    background: rgba(15, 23, 42, 0.58) !important;
    backdrop-filter: blur(6px) !important;
}

.custom-swal-container .custom-swal2-popup {
    width: min(95vw, 32rem) !important;
    max-height: calc(100vh - 2.5rem) !important;
    overflow-y: auto !important;
    background: #fff !important;
    color: var(--ci-dark-1) !important;
    border: none !important;
    text-align: center !important;
    animation: customSwalFadeIn 0.18s ease-out !important;
}

.custom-swal-container .custom-swal2-title {
    margin: 0 0 1rem !important;
    line-height: 1.2 !important;
}

.custom-swal-container .custom-swal2-html-container {
    margin: 0 !important;
}

.custom-swal-container .custom-swal2-actions {
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
}

.custom-swal-container .custom-swal2-styled {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    min-height: 48px !important;
    padding: 0.85rem 1rem !important;
    border: 0 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, opacity 0.15s ease !important;
}

.custom-swal-container .custom-swal2-styled:hover {
    transform: translateY(-1px) !important;
}

.custom-swal-container .custom-swal2-styled:focus-visible {
    outline: 3px solid rgba(52, 152, 219, 0.22) !important;
    outline-offset: 2px !important;
}

.custom-swal-container .custom-swal2-popup::-webkit-scrollbar {
    width: 8px !important;
}

.custom-swal-container .custom-swal2-popup::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.9) !important;
    border-radius: 999px !important;
}

@keyframes customSwalFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.premium-swal-popup {
    border-radius: 32px !important;
    padding: 2.5rem 2rem !important;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.15) !important;
    overflow-y: hidden !important;
    /* Force remove scrollbar */
}

.premium-swal-title {
    margin-bottom: 1rem !important;
}

.premium-swal-html {
    overflow: hidden !important;
}

.welcome-popup {
    border-radius: 24px !important;
}

.welcome-popup-img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ── Cinematic Flow Animations (Unroll Push-down) ─── */

.flow-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    width: 100%;
    /* REQUIRED to prevent squashing inside flex column */
}

.flow-inner {
    overflow: hidden;
    min-height: 0;
}

@keyframes smoothGridUnroll {
    0% {
        grid-template-rows: 0fr;
        opacity: 0;
    }

    40% {
        opacity: 0;
        /* Stays invisible while starting to push down */
    }

    100% {
        grid-template-rows: 1fr;
        opacity: 1;
    }
}

.result-animate .reveal-seq-1 {
    animation: smoothGridUnroll 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 3s;
}

.result-animate .reveal-seq-2 {
    animation: smoothGridUnroll 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 1s;
}

/* Ensure children are NOT hidden or animated here anymore */
.result-animate #aiConsistencyAlert:not(.d-none):not(.hidden) {
    display: flex !important;
    opacity: 1 !important;
    max-height: none !important;
}

.result-animate #docsSection:not(.d-none):not(.hidden) {
    display: block !important;
    opacity: 1 !important;
    max-height: none !important;
}

/* Allow shadows to spill out after expansion is complete */
.result-animate .reveal-seq-1 .flow-inner {
    animation: releaseOverflow 0.1s forwards;
    animation-delay: 3.2s;
    /* 2s delay + 1.2s duration = 3.2s */
}

.result-animate .reveal-seq-2 .flow-inner {
    animation: releaseOverflow 0.1s forwards;
    animation-delay: 4.2s;
    /* 3s delay + 1.2s duration = 4.2s */
}

@keyframes releaseOverflow {
    to {
        overflow: visible;
    }
}

/* ── Bouncing Flow Arrow ─── */
.flow-arrow-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    opacity: 1;
    animation: disappearFlowArrow 0.5s forwards;
    animation-delay: 2s;
}

.flow-arrow {
    width: 44px;
    height: 44px;
    background: #e8f9f0;
    color: var(--ci-green-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(3, 189, 112, 0.18);
    border: 2px solid #bbf2d8;
    animation: bounceUpDown 1s infinite alternate;
}

@keyframes bounceUpDown {
    0% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(10px);
    }
}

@keyframes disappearFlowArrow {
    to {
        opacity: 0;
        visibility: hidden;
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
}

/* Ensure arrows are properly centered */
.step-arrow-container {
    justify-content: center;
    margin: 20px 0;
}

.step-arrow-icon {
    width: 44px;
    height: 44px;
    background: #e8f9f0;
    color: var(--ci-green-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(3, 189, 112, 0.18);
    border: 2px solid #bbf2d8;
}

.antigravity-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
}

.google-g-logo {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    font-size: 1.8rem;
}

.experiment-badge {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #4b5563;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ai-consistency-box {
    max-width: 780px;
    width: 95%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1.2rem 1.5rem;
    border-radius: 30px;
    /* Pill shape */
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 1rem auto 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    animation-delay: 0.5s;
}

@media (min-width: 576px) {
    .ai-consistency-box {
        padding: 1.4rem 1.8rem;
        border-radius: 35px;
        gap: 1.4rem;
        margin: 1.2rem auto 2rem;
    }
}

@media (min-width: 768px) {
    .ai-consistency-box {
        padding: 1.6rem 2.2rem;
        border-radius: 38px;
        gap: 1.6rem;
        margin: 1.4rem auto 2.3rem;
    }
}

@media (min-width: 992px) {
    .ai-consistency-box {
        padding: 1.8rem 2.5rem;
        border-radius: 40px;
        gap: 1.8rem;
        margin: 1.5rem auto 2.5rem;
    }
}

#registerContainer {
    animation-delay: 0.1s;
}

.ai-consistency-box.high {
    background: #03bd700f;
    border: 2px solid #35ca8c;
    box-shadow: 0 0 30px #02764545, 0 20px 50px #0000000f;
}

.ai-consistency-box.high .ai-icon-wrap {
    background: #03bd70c9;
    color: #fff;
    box-shadow: 0 0 15px rgb(3 189 112 / 37%);
}

.ai-consistency-box.medium {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.15), 0 15px 40px rgba(0, 0, 0, 0.05);
}

.ai-consistency-box.medium .ai-icon-wrap {
    background: #0ea5e9;
    color: #fff;
}

.ai-consistency-box.low {
    background: var(--ci-yellow-1);
    border: 1px solid var(--ci-yellow-3);
    box-shadow: 0 10px 30px rgba(255, 196, 51, 0.2);
}

.ai-consistency-box.low .ai-icon-wrap {
    background: transparent;
    color: #000;
}

.ai-icon-wrap {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .ai-icon-wrap {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
}

@media (min-width: 768px) {
    .ai-icon-wrap {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
}

@media (min-width: 992px) {
    .ai-icon-wrap {
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
    }
}

/* ── Docs Box (Antigravity Refined) ────────────── */
.docs-box {
    max-width: 900px;
    width: 95%;
    margin: 0 auto 1.5rem;
    padding: 0;
}

@media (min-width: 576px) {
    .docs-box {
        margin: 0 auto 2rem;
    }
}

@media (min-width: 768px) {
    .docs-box {
        margin: 0 auto 2.3rem;
    }
}

@media (min-width: 992px) {
    .docs-box {
        margin: 0 auto 2.5rem;
    }
}

.docs-title-wrap {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

@media (min-width: 576px) {
    .docs-title-wrap {
        gap: 12px;
        margin-bottom: 20px;
    }
}

@media (min-width: 768px) {
    .docs-title-wrap {
        gap: 14px;
        margin-bottom: 23px;
    }
}

@media (min-width: 992px) {
    .docs-title-wrap {
        gap: 15px;
        margin-bottom: 25px;
    }
}

.docs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

@media (min-width: 576px) {
    .docs-grid {
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .docs-grid {
        gap: 22px;
    }
}

@media (min-width: 992px) {
    .docs-grid {
        gap: 24px;
    }
}

.doc-item {
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 18px;
    min-width: 220px;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

@media (min-width: 576px) {
    .doc-item {
        padding: 20px 25px;
        border-radius: 20px;
        min-width: 240px;
        gap: 16px;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .doc-item {
        padding: 22px 28px;
        border-radius: 22px;
        min-width: 250px;
        gap: 17px;
        font-size: 0.93rem;
    }
}

@media (min-width: 992px) {
    .doc-item {
        padding: 24px 30px;
        border-radius: 24px;
        min-width: 260px;
        gap: 18px;
        font-size: 0.95rem;
    }
}

.doc-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.doc-item i {
    color: var(--ci-yellow-3);
    font-size: 1rem;
    margin-top: 2px;
}

.register-container {
    animation-delay: 0.7s;
}

.btn-register {
    background: var(--ci-green-1);
    color: #fff;
    font-weight: 700;
    padding: 11px 28px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: none;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(3, 189, 112, 0.3);
    transition: all 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-family: 'Google Sans', 'Roboto', sans-serif;
}

@media (min-width: 576px) {
    .btn-register {
        padding: 12px 34px;
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .btn-register {
        padding: 13px 40px;
        font-size: 1.05rem;
    }
}

@media (min-width: 992px) {
    .btn-register {
        padding: 14px 48px;
        font-size: 1.1rem;
    }
}

.btn-register:hover {
    background: var(--ci-green-4);
    box-shadow: 0 6px 20px rgba(3, 189, 112, 0.4);
}

.btn-register.btn-register-disabled,
.btn-register:disabled {
    background: #c5cdd6;
    color: #5f6b7a;
    border: 1px solid #aeb8c4;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.95;
}

.btn-register.btn-register-disabled:hover,
.btn-register:disabled:hover {
    background: var(--ci-gray-3);
    box-shadow: none;
}

/* ── Hover Underline Utility ─────────────────────────────────────────────────── */
.hover-underline {
    text-decoration: none;
}

.hover-underline:hover {
    text-decoration: underline;
}

/* ── AI Chip ────────────────────── */
.ai-chip {
    background: var(--ci-gray-2);
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.87rem;
    color: var(--ci-blue-1);
    cursor: pointer;
    border: 1px solid var(--ci-gray-3);
    transition: all 0.2s;
}

.ai-chip:hover {
    border-color: var(--ci-blue-1);
    background: var(--ci-white);
    box-shadow: 0 2px 8px rgba(55, 71, 128, 0.1);
}

/* ── Warning Box ────────────────── */
.warning-box {
    border: 1px solid var(--ci-yellow-1);
    border-radius: 12px;
    padding: 13px 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 14px;
}

/* ── Dashed Container (AI section) ─ */
.dashed-container {
    border-radius: 14px;
    /* padding: 10px; */
    position: relative;

    background: var(--ci-white);
    /* border-radius: 12px; */
    border: 1px solid #e2e8f0;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

@media (min-width: 576px) {
    .dashed-container {
        border-radius: 15px;
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
}

@media (min-width: 768px) {
    .dashed-container {
        border-radius: 16px;
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }
}

@media (min-width: 992px) {
    .dashed-container {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
}

.ai-card {
    padding-top: 48px;
}

.ai-close-btn {
    top: 16px;
    right: 16px;
}

/* ── Loader ─────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.result-animate {
    animation: fadeIn 0.4s ease-out;
}

/* ── Consistency Modal ─────────────── */
.consist-score-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    background: #ffffff;
    border-right: none;
    min-width: 160px;
    gap: 8px;
}

@media (max-width: 767px) {
    .consist-score-panel {
        padding: 24px 20px;
        flex-direction: row;
        gap: 20px;
        min-width: unset;
    }
}

.consist-score-ring-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.consist-score-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.consist-score-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ci-dark-1);
    line-height: 1;
}

.consist-score-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ci-dark-2);
}

.consist-score-grade {
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 4px;
}

.consist-score-label {
    font-size: 0.72rem;
    color: var(--ci-dark-2);
    text-align: center;
    line-height: 1.4;
}

.consist-detail-panel {
    flex: 1;
    padding: 20px 22px;
    overflow-y: auto;
    max-height: 420px;
}

.consist-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ci-dark-2);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.consist-reason-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--ci-dark-1);
    padding: 4px 0;
}

.consist-alert-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff5f5;
    border: 1px solid #e74c3c;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

/* ── Consistency Suggestion Chips ── */
.consist-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.consist-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    background: var(--ci-white);
    border: 1.5px solid var(--ci-gray-3);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.18s;
}

.consist-chip:hover {
    border-color: var(--ci-blue-1);
    background: #f0f4ff;
    box-shadow: 0 2px 10px rgba(55, 71, 128, 0.1);
}

.consist-chip-eng {
    color: var(--ci-blue-1);
    font-weight: 700;
}

.consist-chip-plus {
    color: var(--ci-gray-3);
    font-size: 0.9rem;
}

.consist-chip-thai {
    color: var(--ci-red-1);
    font-weight: 700;
}

/* ── Bundle Cards Layout ────────── */
.bundle-box-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 20px;
}

@media (min-width: 1024px) {
    .bundle-box-wrapper {
        flex-direction: row;
    }
}

.bundle-card {
    background: transparent;
    border: none;
    padding: 0;
    flex: 1;
    position: relative;
}

.bundle-card-title {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ci-white);
    padding: 0 16px;
    font-weight: 800;
    color: var(--ci-dark-1);
    white-space: nowrap;
    font-size: 1.05rem;
}

.bundle-inner-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.domain-bundle-box {
    border: 2px solid;
    border-radius: 12px;
    position: relative;
    padding: 18px 10px 14px;
    text-align: center;
    flex: 1;
    align-self: stretch;
    background: var(--ci-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 100px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.domain-bundle-box span {
    word-break: break-all;
    overflow-wrap: break-word;
    display: block;
    width: 100%;
    padding: 0 10px;
}

@media (min-width: 576px) {
    .domain-bundle-box {
        padding: 20px 11px 15px;
        min-height: 110px;
    }
}

@media (min-width: 768px) {
    .domain-bundle-box {
        padding: 21px 12px 16px;
        min-height: 115px;
    }
}

@media (min-width: 992px) {
    .domain-bundle-box {
        padding: 22px 12px 16px;
        min-height: 120px;
    }
}

@media (max-width: 639px) {
    .domain-bundle-box {
        max-width: none;
    }
}

.domain-bundle-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.domain-bundle-tab {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.7rem;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: none;
}

@media (min-width: 576px) {
    .domain-bundle-tab {
        top: -11px;
        padding: 2.5px 12px;
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .domain-bundle-tab {
        top: -12px;
        padding: 3px 13px;
        font-size: 0.78rem;
    }
}

@media (min-width: 992px) {
    .domain-bundle-tab {
        padding: 3px 14px;
        font-size: 0.8rem;
    }
}

/* Colors for specific domain types */
.bundle-type-idn {
    border-color: var(--ci-yellow-3);
    /* background: var(--ci-yellow-3); */
}

.bundle-type-idn .domain-bundle-tab {
    border-color: var(--ci-yellow-3);
    background: var(--ci-yellow-3);
}

.bundle-type-eng {
    border-color: var(--ci-blue-1);
}

.bundle-type-eng .domain-bundle-tab {
    background: var(--ci-blue-1);
}

.bundle-type-thai {
    border-color: #5398C6;
}

.bundle-type-thai .domain-bundle-tab {
    border-color: #5398C6;
    background-color: #5398C6;
}

.bundle-plus-icon {
    width: 36px;
    height: 36px;
    background: #5398C6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
    flex-shrink: 0;
    z-index: 10;
    margin: 0;
    margin-top: 0px;
    margin-bottom: 10px;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .bundle-plus-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin: 0 -22px;
        /* Horizontal for desktop */
        border-width: 4px;
    }
}

/* Select Button */
.btn-bundle-select {
    background: #F9A826;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Google Sans', 'Roboto', sans-serif;
    box-shadow: 0 2px 5px rgba(249, 168, 38, 0.3);
    margin-top: auto;
    width: 85%;
    align-self: center;
}

.btn-bundle-select:hover {
    background: #E6951A;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(249, 168, 38, 0.4);
}




.domain-step-wrapper,
.search-step-wrapper {
    width: 100%;
}

@media (min-width: 1200px) {
    .domain-step-wrapper {
        flex: 0 0 80%;
        max-width: 80%;
        display: flex !important;
        /* flex-direction: column !important;
        flex-wrap: nowrap !important; */
    }

    .search-step-wrapper {
        flex: 0 0 20%;
        max-width: 20%;
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }

    .domain-step-wrapper>.w-100.mb-2,
    .search-step-wrapper>.w-100.mb-2 {
        flex-shrink: 0;
        min-height: 54px;
    }

    .domain-step-wrapper .dashed-container,
    .search-step-wrapper .dashed-container {
        flex: 1 1 auto;
    }
}

.search-box-wrapper {
    padding-top: 12px;
    padding-bottom: 12px;
}

@media (min-width: 1200px) {
    .search-box-wrapper {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

.transition-custom {
    transition: all 0.2s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: flex;
    background-color: rgba(255, 255, 255, 0.9);
}

.loader-overlay.is-hidden {
    display: none;
}

/* Utilities used by this page but missing in bundled Bootstrap build */
.my-n2 {
    margin-top: -0.5rem !important;
    margin-bottom: -0.5rem !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.z-0 {
    z-index: 0 !important;
}

.z-1 {
    z-index: 1 !important;
}

.text-ci-dark-1 {
    color: var(--ci-dark-1) !important;
}

.text-ci-dark-2 {
    color: var(--ci-dark-2) !important;
}

.text-ci-blue-1 {
    color: var(--ci-blue-1) !important;
}

.text-ci-blue-2 {
    color: var(--ci-blue-2) !important;
}

.text-ci-green-1 {
    color: var(--ci-green-1) !important;
}

.text-ci-red-1 {
    color: var(--ci-red-1) !important;
}

.text-ci-yellow-3 {
    color: var(--ci-yellow-3) !important;
}

.text-ci-yellow-1 {
    color: var(--ci-yellow-1) !important;
}


.text-white-soft {
    color: rgba(255, 255, 255, 0.85) !important;
}

.text-green-success {
    color: #03BD70 !important;
}

.bg-ci-yellow-3 {
    background: var(--ci-yellow-3) !important;
}

.bg-ci-blue-1 {
    background: var(--ci-blue-1) !important;
}

.bg-ci-blue-2 {
    background: #0EA5F5 !important;
}

.bg-ci-gray-1 {
    background: var(--ci-gray-1) !important;
}

.bg-ci-red-1 {
    background: var(--ci-red-1) !important;
}

.bg-warning-soft {
    background: #fff8e1 !important;
}

.bg-empty-state {
    background: #f9fafb !important;
}

.border-ci-gray-3 {
    border-color: var(--ci-gray-3) !important;
}

.border-ci-yellow-3 {
    border-color: var(--ci-yellow-3) !important;
}

.border-2-ci-gray-3 {
    border: 2px solid var(--ci-gray-3) !important;
}

.border-2-dashed-ci-gray-3 {
    border: 2px dashed var(--ci-gray-3) !important;
}

.border-top-light {
    border-top: 1px solid #eef0f5 !important;
}

.font-google-sans {
    font-family: 'Google Sans', 'Roboto', sans-serif !important;
}

.outline-none {
    outline: none !important;
}

.fw-600 {
    font-weight: 600 !important;
}

.fw-normal-custom {
    font-weight: 400 !important;
}

.opacity-80 {
    opacity: 0.8 !important;
}

.lh-1 {
    line-height: 1 !important;
}

.lh-12 {
    line-height: 1.2 !important;
}

.fs-12px {
    font-size: 12px !important;
}

.fs-14px {
    font-size: 14px !important;
}


.fs-16px {
    font-size: 16px !important;
}

.fs-20px {
    font-size: 20px !important;
}

.fs-30px {
    font-size: 30px !important;
}

.fs-08rem {
    font-size: 0.8rem !important;
}

.fs-085rem {
    font-size: 0.85rem !important;
}

.fs-095rem {
    font-size: 0.95rem !important;
}

.fs-105rem {
    font-size: 1.05rem !important;
}


.fs-11rem {
    font-size: 1.1rem !important;
}

.fs-15rem {
    font-size: 1.5rem !important;
}

.fs-3rem {
    font-size: 3rem !important;
}

.fs-30px {
    font-size: 30px !important;
}

.w-120px {
    width: 120px !important;
}

.w-130px {
    width: 130px !important;
}

.w-91-66 {
    width: 91.666667% !important;
}

.text-align-last-start {
    text-align-last: start;
}

.modal-icon-circle {
    width: 40px;
    height: 40px;
    /* background: rgba(255, 255, 255, 0.2); */
    background: #59ADE5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#consistencyModal .modal-content {
    border-radius: 16px !important;
}

#consistencyModal .btn {
    border-radius: 8px !important;
}

/* Edit domain modal styling to match the target mockup */
#editThaiModal .modal-dialog {
    max-width: 800px;
}



#editThaiModal .modal-content {
    background: #f6f7f9;
    border: 1px solid #d5dbe3 !important;
    border-radius: 16px !important;
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.24) !important;
    padding: 1.1rem 1.1rem 0.95rem !important;
}

#editThaiModal .modal-body {
    padding-top: 0 !important;
}

#editThaiModal .modal-body .input-field-label {
    font-size: 1.03rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#editThaiModal .form-control {
    height: 46px;
    border: 2px solid #afb8c4 !important;
    border-radius: 9px !important;
    background: #fff;
    color: #303033;
    font-size: 0.98rem;
    box-shadow: none !important;
}

#editThaiModal .form-control:focus {
    border-color: #8c9aac !important;
    box-shadow: 0 0 0 3px rgba(55, 71, 128, 0.1) !important;
}

#editThaiModal .d-flex.justify-content-between.align-items-center.mb-4 .btn {
    color: #9aa3af !important;
}

#editThaiModal #btnConfirmDelete {
    color: #adabab !important;
}

#editThaiModal .border-2-dashed-ci-gray-3 {
    border-color: #bac4cf !important;
    background: #f2f4f7 !important;
    border-radius: 12px !important;
}

#editThaiModal #aiSuggestions {
    gap: 0.6rem !important;
}

#editThaiModal .ai-suggestion-btn {
    background: #e8edf2;
    color: var(--ci-blue-1);
    border: 1px solid #b7c1cc;
    border-radius: 10px !important;
    min-height: 37px;
}

#editThaiModal .ai-suggestion-btn:hover {
    background: #dfe7ef;
}

#editThaiModal .bg-warning-soft {
    background: #fff6df !important;
    border-color: var(--ci-yellow-3) !important;
}

#editThaiModal .d-flex.justify-content-end.gap-2.mt-2>button {
    border-radius: 10px !important;
}

#editThaiModal .d-flex.justify-content-end.gap-2.mt-2>button[data-bs-dismiss='modal'] {
    min-width: 82px;
    background: #f4f5f7;
}

#editThaiModal #btnSaveThaiEdit {
    min-width: 164px;
    border: 0 !important;
}

.btn-reset-plain {
    background: none !important;
    border: none !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.consistency-body-panel {
    border-left: none;
    padding: 16px;
}

@media (min-width: 576px) {
    .consistency-body-panel {
        padding: 24px;
    }
}

.modal-delete-layer {
    z-index: 1070;
}

.promo-highlight {
    color: var(--ci-red-1);
    font-weight: 700;
}

.btn-search-custom.is-disabled {
    opacity: 0.5;
    filter: grayscale(1);
    cursor: not-allowed;
}

#btnSaveThaiEdit.is-disabled {
    opacity: 0.5;
    filter: grayscale(1);
    cursor: not-allowed;
}

.cat-scroll-container.is-dragging {
    cursor: grabbing;
}

.sidebar-is-open {
    display: flex !important;
}

.sidebar-is-closed {
    display: none !important;
}

.domain-plus-sign {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.95rem;
    margin: 0 4px;
}

.unified-status-note {
    color: var(--ci-blue-4);
}

.unified-status-link {
    color: var(--ci-blue-2);
    font-size: 0.9rem;
    font-weight: 700;
}

.consistency-modal-header {
    background: linear-gradient(140deg, #3498DB, #00ABFF);
    border-bottom: none;
}

.consistency-summary-wrap {
    margin-bottom: 24px;
}

.consistency-summary-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #3498db;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

@media (min-width: 576px) {
    .consistency-summary-panel {
        padding: 22px 24px;
    }
}

.consistency-summary-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 576px) {
    .consistency-summary-row {
        gap: 18px;
    }
}

.consistency-summary-icon-wrap {
    width: 40px;
    height: 40px;
    background: rgba(52, 152, 219, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.consistency-summary-icon {
    color: #3498db;
    font-size: 1.1rem;
}

.consistency-summary-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.consistency-summary-title {
    font-size: 1.05rem;
    line-height: 1.4;
    color: #1e293b;
    word-break: break-word;
    overflow-wrap: break-word;
}

.consistency-summary-title-prefix {
    font-size: 16px;
}

.consistency-summary-title-emphasis {
    margin-left: 10px;
    color: var(--ci-red-1);
    font-weight: 600;
    font-size: 16px;
}

.consistency-summary-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    opacity: 0.85;
}

.consistency-suggestion-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .consistency-suggestion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.consistency-suggestion-card {
    background: #ffffff;
    min-height: 94px;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

@media (min-width: 576px) {
    .consistency-suggestion-card {
        padding: 18px 20px;
        gap: 20px;
    }
}

.consistency-suggestion-card.is-highlighted {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border: 1.5px solid #dbeafe;
    box-shadow: 0 10px 25px -5px rgba(52, 152, 219, 0.08);
}

.consistency-suggestion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.1);
}

.consistency-suggestion-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(116, 151, 191, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .consistency-suggestion-circle {
        width: 44px;
        height: 44px;
    }
}

.consistency-suggestion-circle.is-highlighted {
    background: rgba(52, 152, 219, 0.08);
}

.consistency-suggestion-icon {
    font-size: 1.2rem;
    color: #3498DB;
}

@media (min-width: 576px) {
    .consistency-suggestion-icon {
        font-size: 1.5rem;
    }
}

.consistency-suggestion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.consistency-suggestion-domain {
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: break-word;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

@media (min-width: 576px) {
    .consistency-suggestion-domain {
        font-size: 1.1rem;
        line-height: 1.5;
    }
}

.consistency-suggestion-footer {
    margin-top: 4px;
}

.consistency-suggestion-label {
    font-size: 0.78rem;
    color: #3498DB;
    font-weight: 700;
    margin-top: 4px;
}

.score-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    border-radius: 999px;
    padding: 4px 8px;
    margin-left: 4px;
    font-size: 0.7rem;
}

.score-badge-high {
    background: #60aee2;
}

.score-badge-medium {
    background: #F59E0B;
}

.score-badge-low {
    background: #EF4444;
}

.score-badge-small {
    font-size: 0.7rem;
}

.score-badge-xs {
    font-size: 0.65rem;
    padding: 1px 6px;
    margin-left: 6px;
    font-weight: 700;
}

.score-badge-icon {
    font-size: 0.625rem;
}

.ai-suggestion-btn {
    background: var(--ci-gray-2);
    color: var(--ci-blue-1);
    border: 1px solid var(--ci-gray-3);
}

.ai-suggestion-btn-icon {
    font-size: 0.75rem;
}

.swal-popup-wide {
    width: min(95vw, 880px) !important;
    padding: 1.5rem !important;
}

.swal-popup-medium {
    width: min(95vw, 520px) !important;
}

.swal-popup-narrow {
    width: min(95vw, 480px) !important;
}

.swal-btn-primary,
.swal-btn-success,
.swal-btn-secondary,
.risk-btn-outline {
    border-radius: 10px !important;
    box-shadow: none !important;
}

.swal-btn-primary {
    background: var(--ci-blue-1) !important;
    color: #fff !important;
}

.swal-btn-success {
    background: var(--ci-green-1) !important;
    color: #fff !important;
}

.swal-btn-secondary {
    background: #94a3b8 !important;
    color: #fff !important;
}

.risk-btn-outline {
    background-color: transparent !important;
    color: var(--ci-red-1) !important;
    border: 1px solid var(--ci-red-1) !important;
}

.risk-btn-outline:hover {
    background-color: #fef2f2 !important;
}

.swal-title-success {
    color: var(--ci-green-1) !important;
    font-weight: 800 !important;
    font-size: 1.55rem !important;
    letter-spacing: -0.02em;
}

.swal-title-primary {
    color: var(--ci-blue-1) !important;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
}

.swal-title-danger {
    color: var(--ci-red-1) !important;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
}

.swal-progress-text {
    font-size: 1.1rem;
    color: var(--ci-dark-1);
    margin-top: 5px;
}

.swal-gift-icon {
    font-size: 3.5rem;
    color: var(--ci-yellow-1);
    filter: drop-shadow(0 0 10px rgba(243, 170, 41, 0.3));
}

.swal-offer-title {
    color: var(--ci-dark-1);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.swal-offer-fee-note {
    color: var(--ci-red-1);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.swal-body-note {
    color: var(--ci-dark-2);
    font-size: 0.95rem;
    line-height: 1.5;
}

.custom-top-suggestion-box {
    background: #f0f7ff;
    border: 2px dashed #3498DB;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.custom-top-suggestion-box.is-compact {
    margin-bottom: 5px;
}

.custom-top-suggestion-label {
    font-size: 0.8rem;
    color: #3498DB;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.custom-top-suggestion-domain {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
}

.custom-top-suggestion-tld {
    color: #3498DB;
}

.custom-top-suggestion-subtext {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 5px;
}

.custom-risk-popup .custom-swal2-actions {
    flex-direction: column !important;
    gap: 14px;
    margin-top: 24px !important;
    width: 100% !important;
}

.custom-risk-popup .custom-swal2-styled {
    margin: 0 !important;
    width: 100% !important;
    padding: 14px 20px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    min-height: 52px !important;
    transition: all 0.2s ease !important;
}

.custom-risk-popup .custom-swal2-styled:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.custom-danger-copy {
    color: var(--ci-dark-1);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: center;
}

.custom-danger-highlight {
    color: var(--ci-yellow-1);
}

.custom-danger-strong {
    color: var(--ci-red-1);
    font-weight: 700;
}

.custom-risk-field {
    text-align: left;
    margin-bottom: 15px;
}

.custom-risk-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ci-dark-1);
    display: block;
    margin-bottom: 5px;
}

.custom-risk-textarea {
    margin: 0 !important;
    width: 100% !important;
    font-size: 0.95rem !important;
    min-height: 80px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    transition: border-color 0.2s ease !important;
}

.custom-risk-textarea:focus {
    border-color: var(--ci-blue-1) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
}

/* Server Error Modal Custom Styles */
.server-error-modal-content {
    border: none !important;
    border-radius: 24px !important;
    padding: 35px 28px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    position: relative;
}

.server-error-modal-close {
    position: absolute !important;
    right: 24px !important;
    top: 24px !important;
    z-index: 10;
}

.server-error-modal-icon-wrap {
    width: 80px;
    height: 80px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
}

.server-error-modal-icon {
    font-size: 36px;
    color: var(--ci-red-1);
}

.server-error-modal-title {
    font-size: 1.4rem !important;
}

.server-error-modal-body-box {
    background-color: #fff9f2;
    border: 1px solid #ffdfb5;
    border-radius: 16px;
}

.server-error-modal-msg {
    color: #5c3e21;
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-line;
    word-break: break-word;
}

.server-error-modal-btn {
    background-color: #6c757d;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border: none !important;
    padding: 10px 0 !important;
    /* box-shadow: 0 4px 12px rgba(107, 108, 110, 0.2) !important; */
}

.server-error-modal-btn:hover {
    background-color: #545b62;
}

/* AI Consistency Modal Custom Styles */
#consistencyModal .modal-content {
    border-radius: 16px !important;
}

#consistencyModal .btn {
    border-radius: 8px !important;
}


.mr-1rem {
    margin-right: 1rem !important;
}

.w-xl-80 {
    width: 100% !important;
}

@media (min-width: 1200px) {
    .w-xl-80 {
        width: 80% !important;
    }
}

.nothai-name-text {
    font-size: 0.78rem !important;
    line-height: 1.4;
    word-break: break-word;
}

@media (min-width: 576px) {
    .nothai-name-text {
        font-size: 0.88rem !important;
    }
}

@media (min-width: 768px) {
    .nothai-name-text {
        font-size: 0.98rem !important;
    }
}

.ai-suggest-info-text {
    font-size: 0.78rem !important;
    line-height: 1.4;
}

@media (min-width: 576px) {
    .ai-suggest-info-text {
        font-size: 0.88rem !important;
    }
}

.docs-title-icon {
    font-size: 1.3rem !important;
    margin-top: 2px;
}

.docs-title-text {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

.docs-subtitle-text {
    font-size: 0.75rem !important;
}

@media (min-width: 576px) {
    .docs-title-icon {
        font-size: 1.6rem !important;
        margin-top: 3px;
    }

    .docs-title-text {
        font-size: 1.1rem !important;
    }

    .docs-subtitle-text {
        font-size: 0.8rem !important;
    }
}

@media (min-width: 768px) {
    .docs-title-icon {
        font-size: 2rem !important;
        margin-top: 4px;
    }

    .docs-title-text {
        font-size: 1.25rem !important;
    }

    .docs-subtitle-text {
        font-size: 0.85rem !important;
    }
}

.loader-text-responsive {
    font-size: 0.92rem !important;
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 576px) {
    .loader-text-responsive {
        font-size: 1.02rem !important;
    }
}

@media (min-width: 768px) {
    .loader-text-responsive {
        font-size: 1.1rem !important;
    }
}

.domain-input-responsive {
    font-size: 12px !important;
}

@media (min-width: 576px) {
    .domain-input-responsive {
        font-size: 0.95rem !important;
    }
}

@media (min-width: 768px) {
    .domain-input-responsive {
        font-size: 1.05rem !important;
    }
}

@media (min-width: 992px) {
    .domain-input-responsive {
        font-size: 1.1rem !important;
    }
}

/* ── Document Preview Button & Badge Styles ── */
.doc-item {
    transition: all 0.2s ease !important;
}

.doc-item:hover {
    transform: translateY(-2px);
    border-color: var(--ci-blue-2) !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1) !important;
    background-color: #f8fafc !important;
}

.doc-item .preview-badge {
    opacity: 0.85;
    transition: opacity 0.2s;
}

.doc-item:hover .preview-badge {
    opacity: 1;
    text-decoration: underline;
}

.doc-icon-wrap {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-1 {
    flex: 1 1 0%;
}

/* ── Document Preview Modal Styles for CSP Compliance ── */
.doc-preview-modal-body {
    height: 75vh;
    background-color: #f1f5f9;
}

.doc-preview-iframe {
    border: none;
    width: 100%;
    height: 100%;
}

.doc-preview-fallback-icon {
    font-size: 5rem;
}

.tld-box button {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.15s ease-in-out;
}

.tld-box button:hover {
    color: #ffffff !important;
}

.input-divider {
    width: 1px;
    height: 24px;
    background-color: #d1d5db;
    flex-shrink: 0;
    margin-right: 15px;
}

#editThaiModal .input-wrapper input {
    text-align: left !important;
}

/* ── Floating Promotion Button ─────────────────────────────────────────────── */
/* CSP-compliant styles for floating promotional button */
.floating-promo-btn {
    position: fixed;
    bottom: 100px;
    right: 50px;
    background: linear-gradient(135deg, #3d5a9e 0%, #4a6bb5 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(61, 90, 158, 0.35);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.floating-promo-btn:hover {
    background: linear-gradient(135deg, #4a6bb5 0%, #5a7bc5 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 28px rgba(61, 90, 158, 0.45);
    color: white;
}

.floating-promo-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.floating-promo-btn i {
    font-size: 18px;
    margin-right: 8px;
}

/* Responsive adjustments for floating button */
@media (max-width: 768px) {
    .floating-promo-btn {
        bottom: 80px;
        right: 20px;
        padding: 0 15px;
        width: 50px;
        height: 50px;
        border-radius: 50px;
        box-shadow: 0 6px 15px rgba(61, 90, 158, 0.4);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .floating-promo-btn:hover {
        width: 170px;
        padding: 0 18px;
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 12px 28px rgba(61, 90, 158, 0.45);
    }

    .floating-promo-btn:active {
        transform: translateY(0) scale(0.98);
    }

    .floating-promo-btn i {
        font-size: 20px;
        width: 20px;
        text-align: center;
        flex-shrink: 0;
        margin-right: 0;
        transition: margin 0.3s ease;
    }

    .floating-promo-btn:hover i {
        margin-right: 8px;
    }

    .floating-promo-btn .floating-promo-text {
        opacity: 0;
        max-width: 0;
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        transition: opacity 0.15s ease, max-width 0.3s ease;
    }

    .floating-promo-btn:hover .floating-promo-text {
        opacity: 1;
        max-width: 110px;
    }
}

@media (max-width: 480px) {
    .floating-promo-btn {
        bottom: 80px;
        right: 15px;
        width: 46px;
        height: 46px;
        padding: 0 13px;
    }

    .floating-promo-btn:hover {
        width: 160px;
        padding: 0 16px;
    }

    .floating-promo-btn i {
        font-size: 20px;
    }
}