/* «یک وام جایگزین ببین!» CTA + comparison modal */

.loan-alt-offer-slot { margin-top: 1.1rem; }

.loan-alt-offer-btn {
    --alt-halo: -3px 0 7px 1px rgba(58, 82, 234, .45), 3px 0 7px 1px rgba(198, 63, 224, .45);
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    min-height: 68px;
    padding: .55rem 1.25rem .55rem .7rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #3a52ea 0%, #5a4cf0 38%, #8b45ea 72%, #c63fe0 100%);
    color: #fff;
    text-align: right;
    font-family: inherit;
    line-height: 1.45;
    cursor: pointer;
    box-shadow: var(--alt-halo), 0 12px 30px rgba(120, 72, 235, .32), inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.loan-alt-offer-btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: var(--alt-halo), 0 16px 34px rgba(120, 72, 235, .4), inset 0 1px 0 rgba(255, 255, 255, .18); }
.loan-alt-offer-btn:focus-visible { outline: 3px solid rgba(124, 58, 237, .45); outline-offset: 3px; }

.loan-alt-offer-btn__arrow { flex: 0 0 auto; font-size: 1.45rem; line-height: 1; opacity: .95; -webkit-text-stroke: .4px currentColor; }
.loan-alt-offer-btn__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.loan-alt-offer-btn__text strong { font-size: 1.08rem; font-weight: 900; letter-spacing: -.2px; }
.loan-alt-offer-btn__text small { font-size: .85rem; font-weight: 500; opacity: .92; }
.loan-alt-offer-btn__icon { flex: 0 0 auto; display: block; width: 66px; height: 52px; filter: drop-shadow(0 4px 6px rgba(30, 20, 120, .35)); }
.loan-alt-offer-btn__icon svg { display: block; width: 100%; height: 100%; }
.loan-alt-offer-btn__burst {
    position: absolute;
    top: -19px;
    right: -9px;
    width: 26px;
    height: 26px;
    pointer-events: none;
    transform-origin: 0 100%;
    transition: transform .2s ease;
}
.loan-alt-offer-btn__burst svg { display: block; width: 100%; height: 100%; }
.loan-alt-offer-btn:hover .loan-alt-offer-btn__burst { transform: scale(1.12); }

/* Mobile: compact floating pill above the sticky credit-check bar (and above the support FAB when there is no bar) */
.loan-alt-offer-fab { display: none; }
@media (max-width: 991.98px) {
    .loan-alt-offer-fab {
        display: block;
        position: fixed;
        right: 1.1rem;
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
        z-index: 1029;
        max-width: calc(100% - 1.6rem);
        animation: loan-alt-offer-fab-in .45s cubic-bezier(.2, .8, .2, 1) .5s both;
    }
    .loan-alt-offer-fab .loan-alt-offer-btn {
        width: auto;
        min-height: 0;
        padding: .3rem .95rem .3rem .45rem;
        gap: .5rem;
        box-shadow: var(--alt-halo), 0 10px 26px rgba(120, 72, 235, .42), inset 0 1px 0 rgba(255, 255, 255, .18);
    }
    .loan-alt-offer-fab .loan-alt-offer-btn__icon { width: 46px; height: 36px; }
    .loan-alt-offer-fab .loan-alt-offer-btn__text strong { font-size: .9rem; white-space: nowrap; }
    .loan-alt-offer-fab .loan-alt-offer-btn__text small { font-size: .72rem; white-space: nowrap; }
    .loan-alt-offer-fab .loan-alt-offer-btn__arrow { font-size: 1.15rem; margin-inline-end: .1rem; }
    body.modal-open .loan-alt-offer-fab { display: none; }
    body:has(.loan-alt-offer-fab) { padding-bottom: 140px; }
    body:has(.loan-alt-offer-fab) .support-fab,
    body:has(.loan-alt-offer-fab) .support-panel { display: none !important; }
}
@keyframes loan-alt-offer-fab-in {
    from { opacity: 0; transform: translateY(14px) scale(.96); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .loan-alt-offer-fab { animation: none; }
}

/* Modal */
.alt-offer-dialog { max-width: 470px; }
.alt-offer-shell {
    border: 0;
    border-radius: 24px;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
}
.alt-offer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}
.alt-offer-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .3rem .35rem .3rem 1rem;
    border-radius: 999px;
    background: #eef0ff;
    color: #3730a3;
    font-weight: 700;
    font-size: .9rem;
}
.alt-offer-badge__icon {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fde047;
    font-size: 1.05rem;
}
.alt-offer-close {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
}
.alt-offer-close:hover { background: #e2e8f0; }

.alt-offer-title { font-size: 1.3rem; font-weight: 900; color: #0f172a; margin: 0 0 .5rem; line-height: 1.6; }
.alt-offer-intro { color: #475569; font-size: .92rem; line-height: 1.95; margin: 0 0 1rem; }
.alt-offer-intro strong { color: #0f172a; font-weight: 800; }

.alt-offer-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: .5rem;
    margin-bottom: 1rem;
}
.alt-offer-compare--single { grid-template-columns: 1fr; }
.alt-offer-arrow { display: grid; place-items: center; color: #1e293b; font-size: 1.15rem; }
.alt-offer-col { border-radius: 16px; padding: .75rem .8rem; }
.alt-offer-col--target { background: #ecfdf5; border: 1px solid #d1fae5; }
.alt-offer-col--source { background: #f8fafc; border: 1px solid #e2e8f0; }
.alt-offer-col__head {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 800;
    font-size: .86rem;
    color: #0f172a;
    margin-bottom: .55rem;
}
.alt-offer-col--target .alt-offer-col__head i { color: #4338ca; font-size: 1.05rem; }
.alt-offer-col--source .alt-offer-col__head i { color: #475569; font-size: 1.05rem; }
.alt-offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.alt-offer-list li { display: flex; align-items: flex-start; gap: .4rem; font-size: .8rem; color: #334155; line-height: 1.6; }
.alt-offer-list li i { flex: 0 0 auto; margin-top: .2rem; font-size: .8rem; }
.alt-offer-col--target .alt-offer-list li i { color: #16a34a; }
.alt-offer-col--source .alt-offer-list li i { color: #ef4444; font-size: .7rem; }

.alt-offer-target {
    border: 1px solid #e0e7ff;
    background: #f8faff;
    border-radius: 18px;
    padding: .9rem;
}
.alt-offer-target__row { display: flex; align-items: center; gap: .85rem; margin-bottom: .85rem; }
.alt-offer-target__copy { flex: 1 1 auto; min-width: 0; }
.alt-offer-target__name { display: flex; align-items: center; gap: .4rem; font-weight: 900; font-size: 1.05rem; color: #0f172a; }
.alt-offer-target__name i { color: #4338ca; font-size: .95rem; }
.alt-offer-target__bank { margin-top: .15rem; color: #4338ca; font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: .3rem; }
.alt-offer-target__blurb { margin: .3rem 0 0; color: #475569; font-size: .84rem; line-height: 1.85; }
.alt-offer-target__logo {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.alt-offer-target__logo img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.alt-offer-target__logo span { font-size: 2rem; font-weight: 900; color: #4338ca; }

.alt-offer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .85rem 1rem;
    border-radius: 999px;
    background: linear-gradient(100deg, #4338ca 0%, #6d28d9 100%);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(67, 56, 202, .3);
}
.alt-offer-cta:hover { color: #fff; filter: brightness(1.06); }

.alt-offer-foot { margin: .85rem 0 0; color: #64748b; font-size: .76rem; display: flex; align-items: center; gap: .35rem; }

@media (max-width: 575.98px) {
    .alt-offer-modal { --bs-modal-margin: .75rem; }
    .alt-offer-shell { padding: 1rem .9rem .85rem; border-radius: 20px; }
    .alt-offer-title { font-size: 1.12rem; }
    .alt-offer-col { padding: .6rem; }
    .alt-offer-list li { font-size: .75rem; }
    .alt-offer-target__logo { width: 68px; height: 68px; }
}
@media (max-width: 359.98px) {
    .alt-offer-compare { grid-template-columns: 1fr; }
    .alt-offer-arrow { transform: rotate(-90deg); }
}
