/* ==========================================================================
   ISHOST — انتخاب دامنه همراه هاست (configureproductdomain)
   ========================================================================== */

body.ishost-configure-page .ish-breadcrumb,
body.ishost-configure-page .master-breadcrumb,
body.ishost-product-domain .ish-breadcrumb,
body.ishost-product-domain .master-breadcrumb,
body.ishost-configure-page .primary-content > h1,
body.ishost-product-domain .primary-content > h1,
body.ishost-configure-page .primary-content > .header-lined,
body.ishost-product-domain .primary-content > .header-lined {
    display: none !important;
}

body.ishost-configure-page .primary-content > .card,
body.ishost-product-domain .primary-content > .card {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.ishost-configure-page .primary-content > .card > .card-body,
body.ishost-product-domain .primary-content > .card > .card-body {
    padding: 0 !important;
}

#order-standard_cart.ish-pdomain {
    direction: rtl !important;
    text-align: right;
    max-width: 820px;
    margin: 0 auto 2.5rem;
    float: none !important;
    width: 100% !important;
    padding: 0.75rem 0.75rem 0;
    box-sizing: border-box;
    font-family: "Vazir", "IRANSans", "IRANYekan", Tahoma, Arial, sans-serif;
}

.ish-pdomain__hide,
.ish-pdomain .cart-sidebar,
.ish-pdomain .sidebar-categories,
.ish-pdomain .sidebar-collapsed,
.ish-pdomain .categories-collapsed {
    display: none !important;
}

.ish-pdomain__body,
.ish-pdomain .cart-body {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

.ish-pdomain__row {
    margin: 0 !important;
}

.ish-pdomain__hero {
    position: relative;
    margin: 0 0 1.35rem;
    padding: 1.45rem 1.5rem 1.3rem;
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 55% at 100% 0%, rgba(245, 180, 0, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(13, 62, 163, 0.09), transparent 50%),
        #fff;
    border: 1px solid rgba(13, 62, 163, 0.12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 20px 40px -26px rgba(13, 62, 163, 0.35);
}

.ish-pdomain__hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #0d3ea3, #f5b400, #0d3ea3);
}

.ish-pdomain__kicker {
    margin: 0 0 0.3rem;
    font-size: 0.78rem;
    font-weight: 750;
    color: #0d3ea3;
}

.ish-pdomain__title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #0f172a;
}

.ish-pdomain__lead {
    margin: 0 auto;
    max-width: 34rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #64748b;
}

.ish-pdomain__lead strong {
    color: #0d3ea3;
    font-weight: 750;
}

/* ظرف گزینه‌ها — بدون شل کارت مشترک (conflict با cart.css) */
.ish-pdomain__options,
#order-standard_cart.ish-pdomain .domain-selection-options {
    display: grid;
    gap: 14px;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    background: transparent !important;
}

.ish-pdomain__option {
    --opt-accent: #0d3ea3;
    --opt-soft: rgba(13, 62, 163, 0.1);
    --opt-glow: rgba(13, 62, 163, 0.22);
    --opt-border: rgba(148, 163, 184, 0.28);
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--opt-border) !important;
    border-radius: 20px !important;
    background:
        radial-gradient(ellipse 55% 80% at 0% 20%, var(--opt-soft), transparent 60%),
        #fff !important;
    box-shadow: 0 12px 28px -22px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ish-pdomain__option--register {
    --opt-accent: #0d3ea3;
    --opt-soft: rgba(13, 62, 163, 0.1);
    --opt-glow: rgba(13, 62, 163, 0.28);
}

.ish-pdomain__option--transfer {
    --opt-accent: #3d9a78;
    --opt-soft: rgba(61, 154, 120, 0.12);
    --opt-glow: rgba(61, 154, 120, 0.28);
}

.ish-pdomain__option--own {
    --opt-accent: #475569;
    --opt-soft: rgba(71, 85, 105, 0.1);
    --opt-glow: rgba(71, 85, 105, 0.22);
}

.ish-pdomain__option--cart,
.ish-pdomain__option--sub {
    --opt-accent: #0d3ea3;
    --opt-soft: rgba(13, 62, 163, 0.08);
    --opt-glow: rgba(13, 62, 163, 0.2);
}

.ish-pdomain__option:hover {
    border-color: rgba(13, 62, 163, 0.35) !important;
    box-shadow: 0 16px 32px -20px var(--opt-glow);
}

.ish-pdomain__option:has(input[type="radio"]:checked) {
    border-color: rgba(13, 62, 163, 0.42) !important;
    background:
        radial-gradient(ellipse 70% 60% at 100% 0%, rgba(245, 180, 0, 0.1), transparent 50%),
        radial-gradient(ellipse 55% 70% at 0% 100%, var(--opt-soft), transparent 55%),
        #fff !important;
    box-shadow:
        0 0 0 1px rgba(13, 62, 163, 0.06),
        0 18px 34px -18px var(--opt-glow);
}

.ish-pdomain__option--transfer:has(input[type="radio"]:checked) {
    border-color: rgba(61, 154, 120, 0.45) !important;
}

.ish-pdomain__option--own:has(input[type="radio"]:checked) {
    border-color: rgba(71, 85, 105, 0.4) !important;
}

.ish-pdomain__option-label {
    display: block;
    margin: 0;
    cursor: pointer;
}

/* رادیوی خام/iCheck کنار آیکون مخفی؛ فقط .ish-pdomain__option-check دیده شود */
.ish-pdomain__option-label > input[type="radio"],
.ish-pdomain__option-label > .iradio,
.ish-pdomain__option-label > .icheckbox,
.ish-pdomain__option-label .iradio,
.ish-pdomain__option-label .icheckbox {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ish-pdomain__option-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 1.05rem 1.15rem;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.ish-pdomain__option-card::before {
    content: "";
    position: absolute;
    inset-inline-end: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 3px 0 0 3px;
    background: transparent;
    transition: background 0.2s ease;
}

.ish-pdomain__option:has(input[type="radio"]:checked) .ish-pdomain__option-card::before {
    background: linear-gradient(180deg, var(--opt-accent), #f5b400);
}

.ish-pdomain__option-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--opt-accent);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), var(--opt-soft));
    border: 1px solid rgba(13, 62, 163, 0.12);
    box-shadow: 0 8px 18px -12px var(--opt-glow);
}

.ish-pdomain__option--transfer .ish-pdomain__option-icon {
    border-color: rgba(61, 154, 120, 0.18);
}

.ish-pdomain__option--own .ish-pdomain__option-icon {
    border-color: rgba(71, 85, 105, 0.16);
}

.ish-pdomain__option-icon svg {
    width: 24px;
    height: 24px;
}

.ish-pdomain__option-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
}

.ish-pdomain__option-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.ish-pdomain__option-desc {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.55;
}

.ish-pdomain__option-check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.55);
    background: #fff;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ish-pdomain__option-check::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s ease;
}

.ish-pdomain__option:has(input[type="radio"]:checked) .ish-pdomain__option-icon {
    color: #fff;
    background: linear-gradient(145deg, #1248b8, var(--opt-accent));
    border-color: transparent;
    box-shadow: 0 10px 20px -10px var(--opt-glow);
}

.ish-pdomain__option--transfer:has(input[type="radio"]:checked) .ish-pdomain__option-icon {
    background: linear-gradient(145deg, #4aab88, #3d9a78);
}

.ish-pdomain__option--own:has(input[type="radio"]:checked) .ish-pdomain__option-icon {
    background: linear-gradient(145deg, #5b6b7f, #475569);
}

.ish-pdomain__option:has(input[type="radio"]:checked) .ish-pdomain__option-check {
    border-color: var(--opt-accent);
    box-shadow: 0 0 0 3px var(--opt-soft);
}

.ish-pdomain__option:has(input[type="radio"]:checked) .ish-pdomain__option-check::after {
    background: var(--opt-accent);
}

/* !important برای غلبه بر .hide()/.show() اینلاین WHMCS */
.ish-pdomain .domain-input-group {
    display: none !important;
}

.ish-pdomain .option:has(input[type="radio"]:checked) .domain-input-group,
.ish-pdomain .ish-pdomain__option:has(input[type="radio"]:checked) .domain-input-group {
    display: block !important;
    animation: ishPdomainPanelIn 0.2s ease;
}

@keyframes ishPdomainPanelIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ish-pdomain__panel {
    margin: 0 !important;
    padding: 0 1.15rem 1.15rem !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    float: none !important;
    clear: none !important;
    width: 100% !important;
}

.ish-pdomain__panel::before,
.ish-pdomain__panel::after {
    display: none !important;
    content: none !important;
}

.ish-pdomain__panel-hint {
    margin: 0 0 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.5;
}

.ish-pdomain__panel .row,
.ish-pdomain__panel .domains-row,
.ish-pdomain__panel .col-sm-8,
.ish-pdomain__panel .col-sm-2,
.ish-pdomain__panel .col-xs-9,
.ish-pdomain__panel .col-xs-3,
.ish-pdomain__panel .col-9,
.ish-pdomain__panel .col-3,
.ish-pdomain__panel .offset-sm-1,
.ish-pdomain__panel .col-sm-offset-1 {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* نوار متقارن دامنه */
.ish-pdomain__bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 54px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.32);
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 22px -16px rgba(15, 23, 42, 0.22);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ish-pdomain__bar:focus-within {
    border-color: color-mix(in srgb, var(--opt-accent) 55%, #cbd5e1);
    box-shadow:
        0 0 0 3px var(--opt-soft),
        0 12px 24px -16px var(--opt-glow);
}

.ish-pdomain__www,
.ish-pdomain__proto,
.ish-pdomain__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
    border-inline-end: 1px solid rgba(226, 232, 240, 0.95);
    flex-shrink: 0;
    font-family: ui-sans-serif, "Segoe UI", Tahoma, Arial, sans-serif;
}

.ish-pdomain__dot {
    padding: 0 6px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-weight: 800;
}

.ish-pdomain__input,
.ish-pdomain__bar .form-control.ish-pdomain__input,
.ish-pdomain__bar .form-control {
    flex: 1 1 auto;
    min-width: 0;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 52px;
    padding: 0.65rem 0.85rem !important;
    font-size: 1rem;
    text-align: left !important;
    direction: ltr !important;
    background: transparent !important;
}

.ish-pdomain__tld,
.ish-pdomain__select,
.ish-pdomain__bar select.form-control {
    flex: 0 0 110px;
    width: 110px !important;
    max-width: 110px;
    border: none !important;
    border-radius: 0 !important;
    border-inline-start: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 52px;
    background: #fafbfd !important;
    font-weight: 700;
    color: #0d3ea3;
    text-align: center;
    direction: ltr;
    padding: 0 8px !important;
}

.ish-pdomain__tld--wide,
.ish-pdomain__select {
    flex: 1 1 160px;
    width: auto !important;
    max-width: none;
    text-align: right;
    direction: ltr;
}

.ish-pdomain__tld-input {
    flex: 0 0 90px;
    width: 90px !important;
    max-width: 90px;
}

.ish-pdomain__btn,
.ish-pdomain__bar .btn-primary {
    flex: 0 0 auto;
    min-width: 110px;
    min-height: 54px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    border-inline-start: 1px solid color-mix(in srgb, var(--opt-accent) 20%, transparent) !important;
    background: linear-gradient(145deg, color-mix(in srgb, var(--opt-accent) 86%, #fff), var(--opt-accent)) !important;
    color: #fff !important;
    font-weight: 750 !important;
    font-size: 0.92rem !important;
    padding: 0 1.2rem !important;
    box-shadow: none !important;
    white-space: nowrap;
    transition: filter 0.18s ease, background 0.18s ease;
}

.ish-pdomain__btn:hover,
.ish-pdomain__bar .btn-primary:hover {
    filter: brightness(1.05);
}

.ish-pdomain__btn--transfer {
    background: linear-gradient(145deg, #4aab88, #3d9a78) !important;
}

.ish-pdomain__btn--own {
    background: linear-gradient(145deg, #5b6b7f, #475569) !important;
}

.ish-pdomain__advanced {
    display: grid;
    gap: 10px;
}

.ish-pdomain__textarea {
    width: 100%;
    min-height: 96px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    padding: 0.75rem 0.9rem;
}

.ish-pdomain__advanced-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.ish-pdomain__free {
    margin: 12px 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

.ish-pdomain__results {
    margin-top: 1.25rem;
    padding: 1.1rem 1.15rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 14px 28px -20px rgba(15, 23, 42, 0.16);
}

/* بعد از حذف w-hidden باید حتماً دیده شود (مسیر دامنه خودم) */
.ish-pdomain #DomainSearchResults:not(.w-hidden):not(.hidden) {
    display: block !important;
}

.ish-pdomain__results .primary-domain-header,
.ish-pdomain__results .headline {
    font-weight: 750;
}

.ish-pdomain__results .domain-available,
.ish-pdomain__results .domain-checker-available {
    color: #166534;
}

.ish-pdomain__results .domain-unavailable,
.ish-pdomain__results .domain-checker-unavailable {
    color: #b91c1c;
}

.ish-pdomain__results .domain-price .price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0d3ea3;
}

.ish-pdomain__results .spotlight-tlds,
.ish-pdomain__results .suggested-domains {
    margin-top: 1rem;
}

.ish-pdomain__results .suggested-domains .card-header,
.ish-pdomain__results .suggested-domains .panel-heading {
    background: #f8faff;
    font-weight: 750;
    border-radius: 12px 12px 0 0;
}

.ish-pdomain__continue-wrap {
    margin-top: 1.15rem;
}

.ish-pdomain__continue,
#btnDomainContinue.ish-pdomain__continue {
    min-width: 220px;
    min-height: 48px;
    border-radius: 14px !important;
    font-weight: 750 !important;
    background: linear-gradient(145deg, #1248b8, #0d3ea3) !important;
    border: none !important;
    box-shadow: 0 14px 28px -16px rgba(13, 62, 163, 0.65);
}

.ish-pdomain__continue:hover {
    background: linear-gradient(145deg, #0d3ea3, #0a3284) !important;
}

@media (max-width: 767.98px) {
    .ish-pdomain__option-card {
        gap: 0.75rem;
        padding: 0.95rem 0.95rem;
    }

    .ish-pdomain__option-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .ish-pdomain__option-icon svg {
        width: 21px;
        height: 21px;
    }

    .ish-pdomain__option-title {
        font-size: 0.95rem;
    }

    .ish-pdomain__panel {
        padding: 0.75rem 0.85rem 1rem !important;
    }

    .ish-pdomain__bar {
        flex-wrap: wrap;
        min-height: 0;
        border-radius: 14px;
    }

    .ish-pdomain__www,
    .ish-pdomain__proto {
        width: 100%;
        justify-content: flex-start;
        min-height: 36px;
        border-inline-end: none;
        border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    }

    .ish-pdomain__input {
        flex: 1 1 55%;
        min-height: 48px;
    }

    .ish-pdomain__tld,
    .ish-pdomain__tld-input {
        flex: 1 1 30%;
        width: auto !important;
        max-width: none;
        min-height: 48px;
    }

    .ish-pdomain__btn,
    .ish-pdomain__bar .btn-primary {
        flex: 1 1 100%;
        width: 100%;
        min-height: 46px !important;
        border-inline-start: none !important;
        border-top: 1px solid rgba(13, 62, 163, 0.12) !important;
    }

    .ish-pdomain__dot {
        display: none;
    }
}
