
.tamer-banner {
    padding: clamp(2rem, 5vw, 3.5rem) 0;
    background: var(--sayer-page-bg, #f0f8ff);
    scroll-margin-top: 4.5rem;
}

.page-cars .tamer-banner .tamer {
    opacity: 0;
    transform: translateY(14px);
    animation: tamer-banner-page-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards;
}

@keyframes tamer-banner-page-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-cars .tamer-banner .tamer {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

#tamer-focus {
    scroll-margin-top: 5rem;
}

.tamer {
    background: linear-gradient(135deg, #f6f9fd 0%, #eef3fa 100%);
    border: 1px solid rgba(17, 45, 78, 0.08);
    border-radius: 24px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tamer::before {
    content: '';
    position: absolute;
    top: -80px;
    inset-inline-end: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(17, 45, 78, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.tamer__left {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.tamer__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem 0.35rem 0.85rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3d4a5c;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(17, 45, 78, 0.1);
    box-shadow: 0 1px 2px rgba(17, 45, 78, 0.06);
}

.tamer__pill-text {
    font-weight: inherit;
    min-width: 0;
}

.tamer__pill-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A63F6, #22c55e);
    flex-shrink: 0;
}

.tamer__title {
    font-size: clamp(1.5rem, 4vw, 2.15rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--navy-blue, #1a1a2e);
    margin: 0 0 0.75rem;
}

.tamer__title-soft {
    display: block;
    font-weight: 700;
    color: #4A63F6;
    margin-top: 0.2rem;
}

.tamer__sub {
    font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
    line-height: 1.75;
    color: #5c6570;
    margin: 0 0 1.35rem;
    max-width: 36em;
}

.tamer__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.75rem;
}

.tamer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.65rem 1.15rem;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.tamer__btn svg {
    flex-shrink: 0;
}

.tamer__btn--primary {
    color: #fff;
    background: #1a2b48;
}

.tamer__btn--primary:hover {
    background: #243a5c;
}

.tamer__btn--primary:active {
    transform: scale(0.98);
}

.tamer__btn--ghost {
    color: #3d4a5c;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 45, 78, 0.12);
}

.tamer__btn--ghost:hover {
    background: #fff;
    border-color: rgba(17, 45, 78, 0.2);
}

.tamer__right {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.tamer__visual {
    margin: 0;
    max-width: min(22rem, 100%);
    width: 100%;
    line-height: 0;
    background: none;
}

.tamer__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 20rem;
    object-fit: contain;
}

@media (max-width: 768px) {
    .tamer {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 1.25rem;
    }

    .tamer__left {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tamer__pill {
        text-align: center;
    }

    .tamer__title {
        text-align: center;
    }

    .tamer__sub {
        margin-inline: auto;
        text-align: center;
        max-width: 100%;
    }

    .tamer__actions {
        justify-content: center;
        width: 100%;
    }

    .tamer__right {
        justify-content: center;
    }
}

/* Above site header (1000–1001) and car-detail share sheet (10050) */
html.tamer-modal-open .header,
html.tamer-modal-open .mobile-header,
html.tamer-modal-open .mobile-menu-row {
    visibility: hidden !important;
    pointer-events: none !important;
}

html.tamer-modal-open {
    overflow: hidden;
}

/* Tamer — verify modal */
.tamer-verify-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 11000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tamer-verify-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.tamer-verify-dialog {
    position: fixed;
    top: 50%;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: 22rem;
    margin-inline: auto;
    transform: translateY(-50%) scale(0.94);
    z-index: 11001;
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem 1.35rem max(1.35rem, env(safe-area-inset-bottom, 0px));
    max-height: min(90vh, 32rem);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    text-align: center;
    box-sizing: border-box;
}

.tamer-verify-dialog.is-visible {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}

/* نافذة الترحيب/الأسئلة بعد إغلاق التحقق — فوق مودال التحقق */
.tamer-onboard-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 11010;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tamer-onboard-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.tamer-onboard-dialog {
    position: fixed;
    top: 50%;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: 22rem;
    margin-inline: auto;
    transform: translateY(-50%) scale(0.94);
    z-index: 11011;
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem 1.35rem max(1.35rem, env(safe-area-inset-bottom, 0px));
    max-height: min(90vh, 32rem);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    text-align: center;
    box-sizing: border-box;
}

.tamer-onboard-dialog.is-visible {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}

.tamer-onboard-dialog::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.tamer-verify-dialog::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.tamer-verify__close {
    position: absolute;
    top: 0.65rem;
    inset-inline-start: 0.65rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.07);
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease;
}

.tamer-verify__close:hover {
    background: rgba(0, 0, 0, 0.13);
}

.tamer-verify__auth-header {
    display: block;
}

.tamer-verify__brand {
    display: block;
    margin: 0.35rem auto 0.75rem;
    max-width: 11rem;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* بعد التحقق — استبيان تامر (شعارات داخل المشاهد) */
.tamer-onboard__logo {
    display: block;
    margin: 0.2rem auto 1rem;
    max-width: 5.25rem;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* مسافة تحت زر الإغلاق (×) قبل السؤال — وليس بين السؤال والشعار */
.tamer-onboard-quiz-wrap {
    padding-top: 2.25rem;
    text-align: center;
}

.tamer-quiz {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 10rem;
}

.tamer-quiz__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    padding-inline: 0.65rem;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.tamer-quiz__scene {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    transition: opacity 0.26s ease, transform 0.26s ease;
}

.tamer-quiz__scene[hidden] {
    display: none !important;
}

.tamer-quiz__scene.is-leave {
    opacity: 0;
    transform: translateY(0.45rem);
}

.tamer-quiz__scene.is-enter {
    opacity: 0;
    transform: translateY(-0.42rem);
}

@keyframes tamer-quiz-dream-piece {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* زر الإرسال يبقى معطّلًا عند الفتح؛ لا نحرّك opacity لأنها تغطي مظهر :disabled فيبدو مفعّلًا ثم يخفت */
@keyframes tamer-quiz-dream-slide {
    from {
        transform: translateY(0.5rem);
    }
    to {
        transform: translateY(0);
    }
}

.tamer-quiz__scene--dream.is-anim-in .tamer-quiz__lead--dream {
    animation: tamer-quiz-dream-piece 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tamer-quiz__scene--dream.is-anim-in .tamer-quiz__answer-card {
    animation: tamer-quiz-dream-piece 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.tamer-quiz__scene--dream.is-anim-in .tamer-quiz__dream-submit {
    animation: tamer-quiz-dream-slide 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.tamer-quiz__scene--salary.is-anim-in .tamer-quiz__lead--salary {
    animation: tamer-quiz-dream-piece 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tamer-quiz__scene--salary.is-anim-in .tamer-quiz__answer-card--salary-field {
    animation: tamer-quiz-dream-piece 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.tamer-quiz__scene--salary.is-anim-in .tamer-quiz__salary-suggestions {
    animation: tamer-quiz-dream-piece 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.tamer-quiz__scene--salary.is-anim-in .tamer-quiz__salary-submit {
    animation: tamer-quiz-dream-slide 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.tamer-quiz__scene--monthly-obl.is-anim-in .tamer-quiz__lead--salary {
    animation: tamer-quiz-dream-piece 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tamer-quiz__scene--monthly-obl.is-anim-in .tamer-quiz__answer-card--salary-field {
    animation: tamer-quiz-dream-piece 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.tamer-quiz__scene--monthly-obl.is-anim-in .tamer-quiz__salary-suggestions {
    animation: tamer-quiz-dream-piece 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.tamer-quiz__scene--monthly-obl.is-anim-in .tamer-quiz__salary-submit {
    animation: tamer-quiz-dream-slide 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.tamer-quiz__oblig-error {
    margin: 0.4rem 0 0;
    text-align: center;
}

.tamer-quiz__subsidized-wrap {
    width: 100%;
    text-align: right;
    margin: 0.4rem 0 0.35rem;
}

.tamer-quiz__subsidized-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy-blue, #1a1a2e);
    cursor: pointer;
    user-select: none;
}

.tamer-quiz__subsidized-check {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    accent-color: var(--navy-blue, #1a1a2e);
}

.tamer-quiz__scene--finance-rejected.is-anim-in .tamer-quiz__lead--dream {
    animation: tamer-quiz-dream-piece 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tamer-quiz__scene--finance-rejected.is-anim-in .tamer-quiz__finance-rejected-msg {
    animation: tamer-quiz-dream-piece 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.tamer-quiz__scene--finance-rejected.is-anim-in .tamer-quiz__finance-rejected-ok {
    animation: tamer-quiz-dream-slide 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.tamer-quiz__finance-rejected-msg {
    margin: 0 0 0.75rem;
    font-size: 0.98rem;
    line-height: 1.5;
    font-weight: 700;
    color: #8b2942;
    text-align: center;
}

.tamer-quiz__lead {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-bottom: 0.85rem;
}

.tamer-quiz__logo {
    display: block;
    margin: 0.25rem auto 0;
    flex-shrink: 0;
    max-width: 5.25rem;
    width: 100%;
    height: auto;
    align-self: center;
}

/* فقاعة السؤال: خلفية بيضاء، زوايا دائرية، ذيل أسفل الوسط (مثل بطاقة الترحيب في المرجع) */
.tamer-quiz__question-bubble {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 1.35rem;
    padding: 0.9rem 1.05rem 0.95rem;
    margin: 0 0 0.85rem;
    border: 1px solid rgba(17, 45, 78, 0.07);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tamer-quiz__question-bubble::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.05));
}

.tamer-quiz__inner.is-leave {
    opacity: 0;
    transform: translateY(0.5rem);
}

.tamer-quiz__inner.is-enter {
    opacity: 0;
    transform: translateY(-0.45rem);
}

.tamer-quiz__question {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy-blue, #1a1a2e);
    line-height: 1.45;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.tamer-quiz__question--sayer-budget {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.58;
    color: #2c3340;
    padding: 0.1rem 0.15rem 0.05rem;
}

.tamer-quiz__options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-self: stretch;
}

.tamer-quiz__dream {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.65rem;
}

/* نفس ترتيب المشهد الرئيسي: سؤال ثم شعار */
.tamer-quiz__lead--dream {
    margin-bottom: 0;
}

.tamer-quiz__answer-card {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 1.35rem;
    padding: 0.75rem 0.85rem 0.8rem;
    border: 1px solid rgba(17, 45, 78, 0.07);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tamer-quiz__dream-text {
    width: 100%;
    box-sizing: border-box;
    min-height: 6.75rem;
    margin: 0;
    padding: 0.45rem 0.35rem;
    border-radius: 0.65rem;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #3d4a5c;
    background: transparent;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.tamer-quiz__dream-text::placeholder {
    color: #94a3b8;
    font-size: 0.74rem;
    line-height: 1.45;
}

.tamer-quiz__dream-text:focus {
    outline: none;
    border-color: rgba(74, 99, 246, 0.35);
    background: rgba(248, 250, 255, 0.65);
    box-shadow: 0 0 0 2px rgba(74, 99, 246, 0.1);
}

.tamer-quiz__dream-submit {
    width: 100%;
    margin-top: 1.65rem;
}

.tamer-quiz__salary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.65rem;
}

.tamer-quiz__lead--salary {
    margin-bottom: 0;
}

.tamer-quiz__salary-input {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(17, 45, 78, 0.12);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a2e;
    background: #fafbfd;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.tamer-quiz__salary-input::placeholder {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.78rem;
}

.tamer-quiz__salary-input:focus {
    outline: none;
    border-color: rgba(74, 99, 246, 0.45);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 99, 246, 0.12);
}

.tamer-quiz__salary-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.tamer-quiz__salary-chip {
    margin: 0;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(17, 45, 78, 0.1);
    background: rgba(245, 246, 248, 0.85);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    color: #4a5568;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}

.tamer-quiz__salary-chip:hover {
    border-color: rgba(74, 99, 246, 0.28);
    background: rgba(248, 250, 255, 0.95);
}

.tamer-quiz__salary-chip:active {
    transform: scale(0.98);
}

.tamer-quiz__salary-submit {
    width: 100%;
    margin-top: 1.65rem;
}

.tamer-quiz__opt {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.5rem 0.65rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(17, 45, 78, 0.06);
    background: rgba(245, 246, 248, 0.42);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    text-align: start;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.tamer-quiz__opt--with-icon {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.52rem;
}

/* دائرة صغيرة فوق النص داخل الصندوق الرمادي */
.tamer-quiz__opt-icon-ring {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.tamer-quiz__opt-icon-ring--finance {
    background: rgba(74, 99, 246, 0.2);
    color: #3d52c9;
}

.tamer-quiz__opt-icon-ring--cash {
    background: rgba(22, 163, 74, 0.2);
    color: #15803d;
}

.tamer-quiz__opt-icon-ring--neutral {
    background: rgba(107, 114, 128, 0.14);
    color: #6b7280;
}

.tamer-quiz__opt-icon-ring--commitment-free {
    background: rgba(22, 163, 74, 0.22);
    color: #15803d;
}

.tamer-quiz__opt-icon-ring--mortgage-blue {
    background: rgba(74, 99, 246, 0.22);
    color: #3d52c9;
}

.tamer-quiz__opt-icon-ring--loan-blue {
    background: rgba(55, 84, 219, 0.3);
    color: #2847c4;
}

.tamer-quiz__opt-icon-ring--loan-deeper {
    background: rgba(30, 58, 176, 0.34);
    color: #1e3a9a;
}

.tamer-quiz__opt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.tamer-quiz__opt-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.tamer-quiz__opt-label {
    display: block;
    line-height: 1.35;
    color: #6b7280;
}

.tamer-quiz__opt:hover {
    border-color: rgba(74, 99, 246, 0.22);
    background: rgba(255, 255, 255, 0.65);
}

.tamer-quiz__opt:active {
    transform: scale(0.99);
}

/* طريقة الشراء: حاوية بيضاء + خياران رماديان */
.tamer-quiz__options--dual {
    width: 100%;
    max-width: 100%;
}

.tamer-quiz__dual-shell {
    box-sizing: border-box;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 45, 78, 0.07);
    border-radius: 1rem;
    padding: 0.65rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.tamer-quiz__options--quad .tamer-quiz__opt--dual {
    min-height: 3.4rem;
    padding: 0.45rem 0.32rem;
    font-size: 0.72rem;
}

.tamer-quiz__opt--dual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 3.85rem;
    margin: 0;
    padding: 0.55rem 0.4rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(17, 45, 78, 0.05);
    background: rgba(232, 234, 239, 0.22);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.tamer-quiz__opt--dual .tamer-quiz__opt-label {
    text-align: center;
    color: #6b7280;
}

.tamer-quiz__opt--dual:hover {
    background: rgba(232, 234, 239, 0.38);
    border-color: rgba(74, 99, 246, 0.18);
}

.tamer-quiz__opt--dual:active {
    transform: scale(0.98);
}

.tamer-quiz__opt--dual.is-selected {
    border-color: rgba(74, 99, 246, 0.42);
    background: rgba(248, 250, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(74, 99, 246, 0.12);
}

.tamer-quiz__multi-next {
    width: 100%;
    margin-top: 0.85rem;
}

@media (max-width: 340px) {
    .tamer-quiz__dual-shell {
        grid-template-columns: 1fr;
    }
}

.tamer-verify__welcome {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy-blue, #1a1a2e);
    line-height: 1.35;
}

.tamer-verify__hint {
    margin: 0 0 1.1rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #5c6570;
}

.tamer-verify__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: start;
}

.tamer-verify__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

.tamer-verify__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #3d4a5c;
}

.tamer-verify__input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(17, 45, 78, 0.15);
    font-family: inherit;
    font-size: 0.9375rem;
    background: #fafbfd;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.tamer-verify__input:hover {
    border-color: rgba(17, 45, 78, 0.22);
}

.tamer-verify__input:focus {
    outline: none;
    border-color: #4A63F6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 99, 246, 0.18);
}

.tamer-verify__submit {
    margin-top: 0.15rem;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    background: #1a2b48;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.12s ease;
}

.tamer-verify__submit:hover {
    background: #243a5c;
}

.tamer-verify__submit:active {
    transform: scale(0.98);
}

.tamer-verify__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.tamer-verify__err {
    margin: 0 0 0.85rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.55rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #b42318;
    background: rgba(180, 35, 24, 0.08);
    border: 1px solid rgba(180, 35, 24, 0.2);
    text-align: start;
    word-break: break-word;
}

.tamer-verify__field--otp {
    text-align: center;
}

.tamer-verify__field--otp .tamer-verify__label {
    display: block;
    text-align: center;
}

.tamer-verify__otp-cells {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.tamer-verify__otp-digit {
    box-sizing: border-box;
    width: 2.75rem;
    min-width: 0;
    padding: 0.55rem 0.2rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(17, 45, 78, 0.15);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    background: #fafbfd;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.tamer-verify__otp-digit:hover {
    border-color: rgba(17, 45, 78, 0.22);
}

.tamer-verify__otp-digit:focus {
    outline: none;
    border-color: #4A63F6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 99, 246, 0.18);
}

.tamer-verify__resend-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0.1rem;
}

.tamer-verify__resend {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0.35rem 0.25rem;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4A63F6;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tamer-verify__resend:disabled {
    color: #8b939e;
    cursor: not-allowed;
    text-decoration: none;
}

.tamer-verify__resend:not(:disabled):hover {
    color: #3d52c9;
}

.tamer-verify__resend-time {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    unicode-bidi: embed;
    direction: ltr;
}

/* ——— عروض تامر (٧٠٠–١٥٠٠) من الـ API داخل النافذة ——— */
.tamer-sayer-offers {
    width: 100%;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    min-height: 0;
    padding: 0.1rem 0 0.05rem;
}

.tamer-sayer-offers__status {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: center;
    color: #5a6570;
    padding: 0 0.2rem;
}

.tamer-sayer-offers__status--muted {
    color: #5a6570;
    font-weight: 600;
}

.tamer-sayer-offers__status--err {
    color: #c0392b;
    font-weight: 700;
}

.tamer-sayer-offers__status--hint {
    color: #4a5a68;
    font-weight: 600;
    font-size: 0.78rem;
    line-height: 1.45;
}

.tamer-sayer-offers__list {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.65rem;
    margin: 0;
    padding: 0.35rem 0.15rem 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.35rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    /* إخفاء شريط التمرير — التمرير بالسحب/العجلة/اللمس يبقى */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tamer-sayer-offers__list::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

.tamer-sayer-offers__more-wrap {
    display: flex;
    justify-content: center;
    padding: 0.15rem 0 0.25rem;
}

.tamer-sayer-offers__more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(17, 45, 78, 0.14);
    background: #fff;
    color: #2c3d52;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        opacity 0.15s ease;
}

.tamer-sayer-offers__more-btn:hover:not(:disabled) {
    background: rgba(17, 45, 78, 0.04);
    border-color: rgba(17, 45, 78, 0.22);
}

.tamer-sayer-offers__more-btn:disabled {
    cursor: wait;
    opacity: 0.92;
}

.tamer-sayer-offers__more-label {
    line-height: 1.3;
    text-align: center;
}

.tamer-sayer-offers__more-btn:not(.is-loading) .tamer-sayer-offers__more-spinner {
    display: none;
}

.tamer-sayer-offers__more-spinner {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 0.875rem;
    height: 0.875rem;
    border: 2px solid rgba(44, 61, 82, 0.35);
    border-inline-end-color: transparent;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.65);
    transition:
        opacity 0.12s ease,
        transform 0.12s ease;
}

.tamer-sayer-offers__more-btn.is-loading .tamer-sayer-offers__more-spinner {
    opacity: 1;
    transform: scale(1);
    animation: tamer-sayer-offers-spin 0.65s linear infinite;
}

@keyframes tamer-sayer-offers-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tamer-sayer-offers__more-btn.is-loading .tamer-sayer-offers__more-spinner {
        animation: none;
        opacity: 1;
        transform: scale(1);
        border-inline-end-color: rgba(44, 61, 82, 0.35);
    }
}

.tamer-sayer-offer {
    --tamer-offer-radius: 1.05rem;
    display: flex;
    box-sizing: border-box;
    flex: 0 0 86%;
    min-width: 86%;
    max-width: 86%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem 0.7rem 0.8rem;
    border-radius: var(--tamer-offer-radius);
    background: #fff;
    border: 1px solid rgba(17, 45, 78, 0.08);
    text-decoration: none;
    color: inherit;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    box-shadow: none;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.tamer-sayer-offer:hover {
    border-color: rgba(17, 45, 78, 0.14);
    background: rgba(17, 45, 78, 0.02);
}

.tamer-sayer-offer__head {
    text-align: start;
    margin-bottom: 0.4rem;
}

.tamer-sayer-offer__brand {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f1114;
    letter-spacing: 0.02em;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.tamer-sayer-offer__brand:empty {
    display: none;
}

.tamer-sayer-offer__name-ar {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
    color: #3d4652;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tamer-sayer-offer__name-ar--solo {
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f1114;
    -webkit-line-clamp: 4;
}

.tamer-sayer-offer__img-wrap {
    position: relative;
    width: 100%;
    min-height: 5.5rem;
    max-height: 7.5rem;
    margin: 0.1rem 0 0.45rem;
    padding: 0.2rem 0.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    background: linear-gradient(180deg, #f6f8fb 0%, #fff 100%);
    overflow: hidden;
    box-sizing: border-box;
}

.tamer-sayer-offer__img-wrap img {
    max-width: 100%;
    max-height: 6.5rem;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.tamer-sayer-offer__seller {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    color: #3d4652;
    line-height: 1.4;
    padding: 0 0.1rem;
}

.tamer-sayer-offer__car-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.2rem 0.25rem;
    margin: 0 0 0.15rem;
    padding: 0 0.2rem 0.1rem;
    text-align: center;
}

.tamer-sayer-offer__car-price-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: #6a737d;
}

.tamer-sayer-offer__car-price-num {
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f1114;
    font-variant-numeric: tabular-nums;
}

.tamer-sayer-offer__car-price-sar {
    font-size: 0.62rem;
    font-weight: 700;
    color: #5a6370;
}

.tamer-onboard-dialog:has(.tamer-quiz__scene--sayer-offers:not([hidden])) {
    max-width: 21.5rem;
    max-height: min(92vh, 36rem);
    padding: 1.4rem 1.05rem max(1.35rem, env(safe-area-inset-bottom, 0px));
    /* ظل على النافذة بدل بطاقات العروض */
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.26),
        0 12px 32px rgba(20, 35, 60, 0.14),
        0 2px 6px rgba(0, 0, 0, 0.06);
}

.tamer-quiz__scene--sayer-offers {
    gap: 0.25rem;
}

.tamer-quiz__scene--sayer-offers .tamer-quiz__question-bubble {
    margin-bottom: 1.05rem;
    padding: 1rem 1.1rem 1.05rem;
}

.tamer-quiz__scene--sayer-offers .tamer-quiz__logo {
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

.tamer-quiz__scene--sayer-offers.is-anim-in .tamer-quiz__lead--dream {
    animation: tamer-quiz-dream-piece 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tamer-quiz__scene--sayer-offers.is-anim-in .tamer-sayer-offers__status {
    animation: tamer-quiz-dream-piece 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.tamer-quiz__scene--sayer-offers.is-anim-in .tamer-sayer-offers__list {
    animation: tamer-quiz-dream-piece 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
