/* ==========================================================
   TINDA Journey System — "تشخيص أولاً" (Diagnose First)
   Phase 1: Homepage Redesign + Pathway Boxes + Trust Bar
   ========================================================== */

/* ═══════════════════════════════════════════════════
   JOURNEY ENTRY SECTION — Below Hero on Homepage
   ═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   HERO DIAGNOSIS CTA — Primary Platform Action
   ═══════════════════════════════════════════════════ */

.hero-diag-cta-wrapper {
    max-width: 440px;
    margin: 24px auto 10px;
    text-align: center;
    padding: 0 16px;
}

.hero-diag-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 0 28px;
    height: 56px;
    border-radius: 28px;
    border: none;
    background: linear-gradient(135deg, #DC143C 0%, #E8244A 40%, #FF1744 100%);
    color: #fff;
    font-weight: 900;
    font-size: 1.02rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(220, 20, 60, 0.35),
        0 2px 8px rgba(220, 20, 60, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    overflow: hidden;
    isolation: isolate;
    letter-spacing: 0.01em;
}

/* Glow ring */
.hero-diag-cta-glow {
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    background: linear-gradient(135deg, #DC143C, #FF1744);
    opacity: 0;
    z-index: -2;
    animation: ctaGlowPulse 2.8s ease-in-out infinite;
    pointer-events: none;
}

/* Shine sweep */
.hero-diag-cta-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 70%
    );
    z-index: 0;
    pointer-events: none;
    animation: ctaShineSweep 4s ease-in-out infinite;
}

/* ── Gear Icon Container ── */
.hero-diag-cta-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 1;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-diag-cta-icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

/* AI dot on gear */
.hero-diag-cta-icon-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #00E676;
    border-radius: 50%;
    border: 1.5px solid rgba(220, 20, 60, 0.9);
    animation: aiDotBlink 2s ease-in-out infinite;
}

/* Button Text */
.hero-diag-cta-text {
    z-index: 1;
    white-space: nowrap;
}

/* Arrow */
.hero-diag-cta-arrow {
    display: flex;
    align-items: center;
    z-index: 1;
    opacity: 0.6;
    font-size: 0.8rem;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[dir="ltr"] .hero-diag-cta-arrow i {
    transform: rotate(180deg);
}

/* ── Hover States ── */
.hero-diag-cta:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 40px rgba(220, 20, 60, 0.45),
        0 4px 14px rgba(220, 20, 60, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hero-diag-cta:hover .hero-diag-cta-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.hero-diag-cta:hover .hero-diag-cta-icon svg {
    transform: rotate(90deg);
}

.hero-diag-cta:hover .hero-diag-cta-arrow {
    opacity: 1;
    transform: translateX(-3px);
}

[dir="ltr"] .hero-diag-cta:hover .hero-diag-cta-arrow {
    transform: translateX(3px);
}

.hero-diag-cta:active {
    transform: translateY(0) scale(0.97);
}

/* Hint text */
.hero-diag-cta-hint {
    margin-top: 10px;
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0.65;
}

/* ── Secondary CTA — Image Analysis (P0) ── */
.hero-image-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 24px;
    border-radius: 22px;
    border: 1.5px solid rgba(220, 20, 60, 0.35);
    background: rgba(220, 20, 60, 0.08);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.hero-image-cta i {
    color: #DC143C;
    font-size: 0.95rem;
}

.hero-image-cta:hover {
    background: rgba(220, 20, 60, 0.15);
    border-color: rgba(220, 20, 60, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.15);
}

.hero-image-cta:active {
    transform: translateY(0) scale(0.97);
}

[data-theme="light"] .hero-image-cta {
    background: rgba(220, 20, 60, 0.06);
    border-color: rgba(220, 20, 60, 0.25);
    color: #1a1a2e;
}

[data-theme="light"] .hero-image-cta:hover {
    background: rgba(220, 20, 60, 0.12);
    border-color: rgba(220, 20, 60, 0.45);
}

/* ═══ ANIMATIONS ═══ */

@keyframes ctaGlowPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(1.04); }
}

@keyframes ctaShineSweep {
    0%, 100% { left: -100%; }
    50%      { left: 150%; }
}

@keyframes aiDotBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* Light theme */
[data-theme="light"] .hero-diag-cta {
    box-shadow:
        0 8px 32px rgba(220, 20, 60, 0.22),
        0 2px 8px rgba(220, 20, 60, 0.12);
}

[data-theme="light"] .hero-diag-cta:hover {
    box-shadow:
        0 12px 40px rgba(220, 20, 60, 0.32),
        0 4px 14px rgba(220, 20, 60, 0.18);
}

[data-theme="light"] .hero-diag-cta-hint {
    color: rgba(0, 0, 0, 0.45);
}

/* ═══════════════════════════════════════════════════
   JOURNEY ENTRY SECTION — Secondary CTAs + Pathways
   ═══════════════════════════════════════════════════ */

.journey-entry-section {
    padding: 24px 0 8px;
    position: relative;
}

/* CTA Row — 2 secondary buttons */
.journey-cta-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.journey-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 14px;
    border: 1.5px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
}

.journey-cta-secondary:hover {
    border-color: rgba(220, 20, 60, 0.3);
    transform: translateY(-2px);
}

.journey-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 14px;
    border: 1.5px solid rgba(0, 196, 140, 0.3);
    background: rgba(0, 196, 140, 0.06);
    color: #00C48C;
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
}

.journey-cta-outline:hover {
    background: rgba(0, 196, 140, 0.12);
    transform: translateY(-2px);
}

/* Pathway Cards — 3-column grid (6 cards: 3×2) */
.journey-pathway-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}

.journey-path-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.journey-path-card:hover {
    border-color: rgba(220, 20, 60, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.journey-path-primary {
    border-color: rgba(220, 20, 60, 0.2);
    background: linear-gradient(145deg, rgba(220, 20, 60, 0.06) 0%, var(--bg-card) 100%);
}

.journey-path-primary:hover {
    border-color: rgba(220, 20, 60, 0.4);
    box-shadow: 0 12px 32px rgba(220, 20, 60, 0.15);
}

.journey-path-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.4rem;
}

.journey-path-card h3 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.journey-path-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.journey-path-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    background: linear-gradient(135deg, #DC143C, #FF1744);
    color: #fff;
}

/* Coming Soon card */
.journey-path-soon {
    opacity: 0.5;
    cursor: default;
    pointer-events: auto;
}

.journey-path-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-light);
}

.journey-path-badge-soon {
    background: linear-gradient(135deg, #6B7280, #9CA3AF);
}

.journey-path-badge-new {
    background: linear-gradient(135deg, #FF1744, #DC143C);
    color: #fff;
}

/* Light theme */
[data-theme="light"] .journey-path-card {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .journey-path-card:hover {
    border-color: rgba(220, 20, 60, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .journey-path-primary {
    background: linear-gradient(145deg, rgba(220, 20, 60, 0.04), #FFFFFF);
}

[data-theme="light"] .journey-cta-secondary {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.12);
}

/* Responsive — Tablet */
@media (max-width: 900px) {
    .journey-pathway-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .hero-diag-cta {
        font-size: 0.98rem;
        height: 52px;
        padding: 0 22px;
    }

    .hero-diag-cta-icon {
        width: 34px;
        height: 34px;
    }

    .hero-diag-cta-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Responsive — Mobile */
@media (max-width: 600px) {
    .hero-diag-cta-wrapper {
        padding: 0 20px;
        margin: 18px auto 6px;
    }

    .hero-diag-cta {
        height: 52px;
        font-size: 0.92rem;
        padding: 0 20px;
        border-radius: 26px;
        gap: 10px;
    }

    .hero-diag-cta-icon {
        width: 32px;
        height: 32px;
    }

    .hero-diag-cta-icon svg {
        width: 17px;
        height: 17px;
    }

    .hero-diag-cta-icon-dot {
        width: 7px;
        height: 7px;
        top: 1px;
        right: 1px;
    }

    .hero-diag-cta-hint {
        font-size: 0.7rem;
        margin-top: 8px;
    }

    .journey-cta-row {
        flex-direction: row;
        padding: 0 16px;
        gap: 10px;
    }

    .journey-cta-secondary,
    .journey-cta-outline {
        flex: 1;
        justify-content: center;
        padding: 12px 10px;
        font-size: 0.82rem;
    }

    .journey-pathway-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0 8px;
    }

    .journey-path-card {
        padding: 14px 8px 12px;
        border-radius: 12px;
    }

    .journey-path-icon {
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
        margin-bottom: 8px;
        border-radius: 10px;
    }

    .journey-path-card h3 {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .journey-path-card p {
        font-size: 0.62rem;
        line-height: 1.4;
    }

    .journey-path-badge {
        top: -6px;
        right: 6px;
        padding: 2px 7px;
        font-size: 0.58rem;
    }

    .journey-path-badge-new {
        top: -6px;
        right: 6px;
        padding: 2px 7px;
        font-size: 0.58rem;
    }

    .journey-path-badge-soon {
        top: -6px;
        right: 6px;
        padding: 2px 7px;
        font-size: 0.58rem;
    }
}

/* Extra small */
@media (max-width: 380px) {
    .hero-diag-cta {
        font-size: 0.85rem;
        height: 48px;
        padding: 0 16px;
        gap: 8px;
    }

    .hero-diag-cta-icon {
        width: 30px;
        height: 30px;
    }

    .hero-diag-cta-icon svg {
        width: 15px;
        height: 15px;
    }

    .hero-diag-cta-arrow {
        display: none;
    }

    .journey-cta-secondary,
    .journey-cta-outline {
        font-size: 0.78rem;
        padding: 11px 8px;
        gap: 5px;
    }

    .journey-pathway-grid {
        gap: 6px;
        padding: 0 4px;
    }

    .journey-path-card {
        padding: 10px 6px 10px;
    }

    .journey-path-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .journey-path-card h3 {
        font-size: 0.68rem;
    }

    .journey-path-card p {
        font-size: 0.56rem;
    }
}

/* ===== JOURNEY PROGRESS BAR (Top of page) ===== */
.tinda-journey-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(220, 20, 60, 0.12);
    padding: 0;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.tinda-journey-bar.active {
    display: block;
    transform: translateY(0);
}

.journey-bar-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.journey-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.journey-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card, #111);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted, #636366);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.journey-step.completed .journey-step-dot {
    background: var(--accent-green, #00C48C);
    border-color: var(--accent-green, #00C48C);
    color: #fff;
}

.journey-step.active .journey-step-dot {
    background: var(--primary, #DC143C);
    border-color: var(--primary, #DC143C);
    color: #fff;
    box-shadow: 0 0 12px rgba(220, 20, 60, 0.4);
}

.journey-step-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted, #636366);
    white-space: nowrap;
    transition: color 0.3s;
}

.journey-step.active .journey-step-label {
    color: var(--text-primary, #F5F5F7);
}

.journey-step.completed .journey-step-label {
    color: var(--accent-green, #00C48C);
}

.journey-step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin: 0 4px;
    position: relative;
    overflow: hidden;
}

.journey-step-line::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-green, #00C48C);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.journey-step.completed .journey-step-line::after {
    width: 100%;
}

.journey-bar-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.9rem;
    margin-right: 8px;
    transition: color 0.2s;
}
.journey-bar-close:hover {
    color: var(--text-primary);
}

/* ===== NEW HERO — "وقف التخمين" ===== */
.hero-new-headline {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-primary, #F5F5F7);
    line-height: 1.2;
    margin-bottom: 6px;
    animation: fadeInUp 0.7s ease;
    letter-spacing: -1px;
}

.hero-new-headline .highlight {
    color: var(--primary, #DC143C);
    position: relative;
}

.hero-new-subheadline {
    font-size: 1.15rem;
    color: var(--text-secondary, #A1A1A6);
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.9s ease;
    font-weight: 400;
}

/* ===== PATHWAY BOXES — "اختار مسارك" ===== */
.pathway-section {
    padding: 0 0 20px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.pathway-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.pathway-card {
    background: var(--bg-card, #111113);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px 20px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pathway-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 20px;
}

.pathway-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 20, 60, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(220, 20, 60, 0.15);
}

.pathway-card:hover::before {
    opacity: 1;
}

.pathway-card.primary-path {
    border-color: rgba(220, 20, 60, 0.25);
    background: linear-gradient(145deg, rgba(220, 20, 60, 0.06) 0%, var(--bg-card, #111113) 100%);
}

.pathway-card.primary-path::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
}

.pathway-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.pathway-card:hover .pathway-icon {
    transform: scale(1.08);
}

.pathway-icon.icon-diagnose {
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.2);
}

.pathway-icon.icon-store {
    background: rgba(0, 196, 140, 0.1);
    border: 1px solid rgba(0, 196, 140, 0.2);
}

.pathway-icon.icon-garage {
    background: rgba(30, 136, 229, 0.1);
    border: 1px solid rgba(30, 136, 229, 0.2);
}

.pathway-icon.icon-workshop {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.pathway-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary, #F5F5F7);
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.pathway-desc {
    font-size: 0.82rem;
    color: var(--text-secondary, #A1A1A6);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.pathway-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 2;
}

.pathway-badge.badge-recommended {
    background: rgba(220, 20, 60, 0.15);
    color: var(--primary, #DC143C);
    border: 1px solid rgba(220, 20, 60, 0.25);
}

.pathway-badge.badge-new {
    background: rgba(0, 196, 140, 0.15);
    color: var(--accent-green, #00C48C);
    border: 1px solid rgba(0, 196, 140, 0.25);
}

.pathway-badge.badge-soon {
    background: rgba(255, 193, 7, 0.12);
    color: var(--accent-gold, #FFC107);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* ===== HERO CTA BUTTONS ===== */
.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: var(--radius-full, 100px);
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(220, 20, 60, 0.3);
    text-decoration: none;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(220, 20, 60, 0.45);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: var(--radius-full, 100px);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary, #F5F5F7);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: var(--radius-full, 100px);
    border: 1.5px solid rgba(37, 211, 102, 0.25);
    background: rgba(37, 211, 102, 0.08);
    color: #25D366;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cta-whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

/* ===== HOW IT WORKS — "كيف تمشي معنا" ===== */
.how-it-works {
    padding: 60px 0;
    background: linear-gradient(180deg, transparent, rgba(220, 20, 60, 0.02), transparent);
}

.how-it-works .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.how-it-works .section-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.how-it-works .section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 42px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.2), rgba(220, 20, 60, 0.2), transparent);
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(220, 20, 60, 0.1);
    border: 2px solid rgba(220, 20, 60, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary, #DC143C);
    transition: all 0.3s;
}

.step-card:hover .step-number {
    background: var(--primary, #DC143C);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.3);
}

.step-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary, #F5F5F7);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--text-secondary, #A1A1A6);
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}

/* ===== TRUST BANNER TITLE (Slogan 4) ===== */
.trust-banner-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: #DC143C;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.15);
}
[data-theme="light"] .trust-banner-title {
    text-shadow: none;
}

/* ===== HERO SECONDARY CTAs ===== */
.hero-secondary-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 18px auto 8px;
    flex-wrap: wrap;
}

.hero-cta-secondary,
.hero-cta-tertiary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-cta-secondary {
    background: var(--bg-card, #131316);
    border: 1.5px solid var(--border-light, rgba(255,255,255,0.08));
    color: var(--text-primary, #fff);
}
.hero-cta-secondary:hover {
    border-color: rgba(30, 136, 229, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 136, 229, 0.1);
}

.hero-cta-tertiary {
    background: rgba(37, 211, 102, 0.08);
    border: 1.5px solid rgba(37, 211, 102, 0.25);
    color: #25D366;
}
.hero-cta-tertiary:hover {
    background: rgba(37, 211, 102, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.1);
}

[data-theme="light"] .hero-cta-secondary {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.12);
    color: #222;
}
[data-theme="light"] .hero-cta-tertiary {
    background: rgba(37, 211, 102, 0.06);
    border-color: rgba(37, 211, 102, 0.3);
}

/* ===== VALUE PROPOSITION CARDS ===== */
.value-props-section {
    padding: 2.5rem 0 1.5rem;
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.value-prop-card {
    background: var(--bg-card, #131316);
    border: 1.5px solid var(--border-light, rgba(255,255,255,0.08));
    border-radius: 16px;
    padding: 22px 16px;
    text-align: center;
    transition: all 0.3s ease;
}
.value-prop-card:hover {
    border-color: rgba(220, 20, 60, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.value-prop-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(220, 20, 60, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
    color: #DC143C;
}

.value-prop-card h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary, #fff);
    margin-bottom: 6px;
}

.value-prop-card p {
    font-size: 0.78rem;
    color: var(--text-secondary, #9E9EA8);
    line-height: 1.6;
}

[data-theme="light"] .value-prop-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}

/* ── Compatibility Highlight (P1) ── */
.value-prop-highlight {
    border-color: rgba(220, 20, 60, 0.25) !important;
    background: linear-gradient(135deg, rgba(220,20,60,0.06) 0%, rgba(0,0,0,0.15) 100%) !important;
    position: relative;
}

.value-prop-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #DC143C, transparent);
    border-radius: 2px;
}

[data-theme="light"] .value-prop-highlight {
    background: linear-gradient(135deg, rgba(220,20,60,0.04) 0%, #fff 100%) !important;
    border-color: rgba(220, 20, 60, 0.18) !important;
}

.value-prop-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(220, 20, 60, 0.1);
    color: #DC143C;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

[data-theme="light"] .value-prop-badge {
    background: rgba(220, 20, 60, 0.08);
    color: #B91C3A;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works-section {
    padding: 2rem 0 2.5rem;
}

.hiw-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-primary, #fff);
    margin-bottom: 2rem;
}

.hiw-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.hiw-step {
    flex: 1;
    text-align: center;
    padding: 0 12px;
    position: relative;
}

.hiw-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DC143C, #ff3355);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.hiw-step-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hiw-step h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary, #fff);
    margin-bottom: 6px;
}

.hiw-step p {
    font-size: 0.78rem;
    color: var(--text-secondary, #9E9EA8);
    line-height: 1.6;
}

.hiw-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 28px;
    color: rgba(220, 20, 60, 0.4);
    font-size: 0.8rem;
    min-width: 24px;
}

/* ===== DECISION PROTECTION ===== */
.decision-protection-section {
    padding: 1.5rem 0 2rem;
}

.dp-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: rgba(220, 20, 60, 0.04);
    border: 1.5px solid rgba(220, 20, 60, 0.15);
    border-radius: 18px;
    padding: 22px 26px;
    max-width: 720px;
    margin: 0 auto;
    transition: all 0.3s ease;
}
.dp-card:hover {
    border-color: rgba(220, 20, 60, 0.3);
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.06);
}

.dp-badge-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.12), rgba(220, 20, 60, 0.04));
    border: 1.5px solid rgba(220, 20, 60, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #DC143C;
}

.dp-content h4 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-primary, #fff);
    margin-bottom: 6px;
}

.dp-content p {
    font-size: 0.82rem;
    color: var(--text-secondary, #9E9EA8);
    line-height: 1.7;
    margin-bottom: 8px;
}

.dp-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #DC143C;
    text-decoration: none;
    transition: opacity 0.2s;
}
.dp-link:hover {
    opacity: 0.8;
}

[data-theme="light"] .dp-card {
    background: rgba(220, 20, 60, 0.02);
    border-color: rgba(220, 20, 60, 0.12);
}

/* ===== RESPONSIVE — New Sections ===== */
@media (max-width: 768px) {
    .value-props-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .value-prop-card { padding: 16px 10px; }
    .value-prop-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .value-prop-card h4 { font-size: 0.82rem; }
    .value-prop-card p { font-size: 0.7rem; }

    .hiw-steps { flex-wrap: nowrap; gap: 0; }
    .hiw-step { padding: 0 6px; }
    .hiw-step-icon { font-size: 1.5rem; }
    .hiw-step h4 { font-size: 0.78rem; }
    .hiw-step p { font-size: 0.68rem; }
    .hiw-connector { font-size: 0.6rem; min-width: 16px; }

    .dp-card { flex-direction: column; align-items: center; text-align: center; padding: 20px 18px; }
    .dp-badge-icon { margin-bottom: 4px; }

    .hero-secondary-ctas { gap: 8px; }
    .hero-cta-secondary, .hero-cta-tertiary { font-size: 0.8rem; padding: 9px 16px; }
}

@media (max-width: 480px) {
    .value-props-grid { gap: 8px; }
    .value-prop-card { padding: 12px 8px; }
    .value-prop-icon { width: 36px; height: 36px; font-size: 1rem; margin-bottom: 8px; }
    .value-prop-card h4 { font-size: 0.75rem; }
    .value-prop-card p { font-size: 0.65rem; }

    .hiw-title { font-size: 1.05rem; }
    .hiw-step-num { width: 26px; height: 26px; font-size: 0.72rem; }
}

/* ═══════════════════════════════════════
   IMAGE UPLOAD OPTIONS — خيارات رفع الصورة
   ═══════════════════════════════════════ */
.diag-image-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.diag-img-opt-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 12px;
    border-radius: 16px;
    border: 1.5px dashed rgba(220, 20, 60, 0.2);
    background: linear-gradient(145deg, rgba(220, 20, 60, 0.04), rgba(220, 20, 60, 0.01));
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.diag-img-opt-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(220,20,60,0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.diag-img-opt-btn:hover::before {
    opacity: 1;
}

.diag-img-opt-btn i {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(220, 20, 60, 0.08);
    color: #DC143C;
    transition: all 0.3s;
}

.diag-img-opt-btn:hover {
    border-color: rgba(220, 20, 60, 0.45);
    background: linear-gradient(145deg, rgba(220, 20, 60, 0.08), rgba(220, 20, 60, 0.03));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.1);
}

.diag-img-opt-btn:hover i {
    background: rgba(220, 20, 60, 0.15);
    transform: scale(1.08);
}

.diag-img-opt-btn:active {
    transform: scale(0.97) translateY(0);
}

.diag-img-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px auto 0;
    background: rgba(220, 20, 60, 0.06);
    border: 1px solid rgba(220, 20, 60, 0.15);
    color: #DC143C;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.2s;
}

.diag-img-remove-btn:hover {
    background: rgba(220, 20, 60, 0.12);
    border-color: rgba(220, 20, 60, 0.3);
}

/* Light Theme */
[data-theme="light"] .diag-img-opt-btn {
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
    border-color: rgba(220, 20, 60, 0.15);
}

[data-theme="light"] .diag-img-opt-btn:hover {
    background: linear-gradient(145deg, rgba(220, 20, 60, 0.06), #f8f8f8);
    border-color: rgba(220, 20, 60, 0.35);
}

@media (max-width: 380px) {
    .diag-image-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ═══════════════════════════════════════
   VOICE-TO-TEXT — مايكروفون التشخيص
   ═══════════════════════════════════════ */
.diag-textarea-wrap {
    position: relative;
}

.diag-textarea-wrap textarea {
    width: 100%;
    padding: 14px 56px 14px 16px;
    border-radius: 14px;
    border: 1.5px solid var(--border-light);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
    min-height: 110px;
}

[dir="rtl"] .diag-textarea-wrap textarea,
.diag-textarea-wrap textarea {
    padding: 14px 16px 14px 56px;
}

.diag-textarea-wrap textarea:focus {
    border-color: rgba(220, 20, 60, 0.4);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.08);
    outline: none;
}

.diag-mic-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary, rgba(255,255,255,0.06));
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

[dir="rtl"] .diag-mic-btn {
    left: 12px;
    right: auto;
}

.diag-mic-btn:hover {
    background: rgba(220, 20, 60, 0.12);
    color: #DC143C;
    transform: scale(1.08);
}

/* ── Listening State (active recording) ── */
.diag-mic-btn.listening {
    background: #DC143C;
    color: #fff;
    box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.5);
    animation: diag-mic-pulse 1.5s ease-in-out infinite;
}

.diag-mic-btn.listening i::before {
    content: "\f131"; /* fa-microphone-slash when listening (toggle visual) — actually keep mic icon, the pulse is enough */
}

@keyframes diag-mic-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.5); }
    50%  { box-shadow: 0 0 0 12px rgba(220, 20, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 20, 60, 0); }
}

/* Textarea border glow while recording */
.diag-textarea-wrap:has(.diag-mic-btn.listening) textarea {
    border-color: rgba(220, 20, 60, 0.5);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

/* ── Mic Status Bar ── */
.diag-mic-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-top: 8px;
    border-radius: 10px;
    background: rgba(220, 20, 60, 0.08);
    border: 1px solid rgba(220, 20, 60, 0.15);
    font-size: 0.82rem;
    color: #DC143C;
    font-weight: 600;
}

.diag-mic-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #DC143C;
    animation: diag-mic-dot-blink 1s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes diag-mic-dot-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.2; }
}

/* ── Mic Hint ── */
.diag-mic-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.diag-mic-hint i {
    font-size: 0.72rem;
    opacity: 0.6;
}

/* ── Light Theme ── */
[data-theme="light"] .diag-mic-btn {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
}

[data-theme="light"] .diag-mic-btn:hover {
    background: rgba(220, 20, 60, 0.1);
    color: #DC143C;
}

[data-theme="light"] .diag-mic-btn.listening {
    background: #DC143C;
    color: #fff;
}

[data-theme="light"] .diag-mic-status {
    background: rgba(220, 20, 60, 0.06);
    border-color: rgba(220, 20, 60, 0.12);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .diag-mic-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        bottom: 10px;
        left: 10px;
    }
}

/* ═══════════════════════════════════════
   DIAGNOSIS LOGIN GATE — بوابة تسجيل الدخول
   ═══════════════════════════════════════ */
.diag-login-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.diag-login-gate-overlay.open {
    opacity: 1;
}

.diag-login-gate {
    background: var(--bg-card, #131316);
    border: 1.5px solid rgba(220, 20, 60, 0.35);
    border-radius: 24px;
    max-width: 460px;
    width: 100%;
    padding: 0;
    text-align: center;
    box-shadow: 0 0 60px rgba(220, 20, 60, 0.18), 0 24px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.diag-login-gate-overlay.open .diag-login-gate {
    transform: translateY(0) scale(1);
}

.diag-login-gate-accent {
    height: 4px;
    background: linear-gradient(90deg, #7A0714, #DC143C, #ff3355, #DC143C, #7A0714);
}

.diag-login-gate-body {
    padding: 36px 28px 32px;
}

.diag-login-gate-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.18), rgba(220, 20, 60, 0.06));
    border: 2px solid rgba(220, 20, 60, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.2rem;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.12);
    animation: diag-gate-pulse 3s ease-in-out infinite;
}

@keyframes diag-gate-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(220, 20, 60, 0.12); }
    50% { box-shadow: 0 0 45px rgba(220, 20, 60, 0.25); }
}

.diag-login-gate-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-primary, #fff);
    margin-bottom: 8px;
}

.diag-login-gate-desc {
    font-size: 0.92rem;
    color: var(--text-secondary, #9E9EA8);
    line-height: 1.7;
    margin-bottom: 20px;
}

.diag-login-gate-result-preview {
    background: var(--bg-surface, #0C0C0E);
    border: 1px solid rgba(220, 20, 60, 0.12);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 22px;
    text-align: right;
}

.diag-login-gate-result-preview .preview-label {
    font-size: 0.72rem;
    color: #DC143C;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diag-login-gate-result-preview .preview-problem {
    font-size: 0.92rem;
    color: var(--text-primary, #fff);
    font-weight: 700;
}

.diag-login-gate-result-preview .preview-hint {
    font-size: 0.78rem;
    color: var(--text-secondary, #9E9EA8);
    margin-top: 4px;
}

.diag-login-gate-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-surface, #0C0C0E);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.05));
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 22px;
    text-align: right;
}

.diag-login-gate-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-secondary, #9E9EA8);
    font-weight: 600;
}

.diag-login-gate-feat i {
    color: #DC143C;
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.diag-login-gate-cta {
    width: 100%;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    background: linear-gradient(160deg, #7A0714, #C50D1F, #DC143C);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    font-family: inherit;
    box-shadow: 0 0 25px rgba(220, 20, 60, 0.35);
    transition: all 0.25s ease;
}

.diag-login-gate-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(220, 20, 60, 0.5);
}

.diag-login-gate-note {
    font-size: 0.78rem;
    color: var(--text-muted, #53535F);
    margin-top: 14px;
    font-weight: 600;
}

/* ── Diagnosis Login Wall (repeat visitors) ── */
.diag-login-wall {
    text-align: center;
    padding: 60px 24px;
    max-width: 480px;
    margin: 0 auto;
}

.diag-login-wall-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.12), rgba(220, 20, 60, 0.04));
    border: 2px solid rgba(220, 20, 60, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.8rem;
    animation: diag-gate-pulse 3s ease-in-out infinite;
}

.diag-login-wall h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary, #fff);
    margin-bottom: 12px;
}

.diag-login-wall p {
    font-size: 0.95rem;
    color: var(--text-secondary, #9E9EA8);
    line-height: 1.7;
    margin-bottom: 28px;
}

.diag-login-wall-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    background: linear-gradient(160deg, #7A0714, #C50D1F, #DC143C);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    font-family: inherit;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.35);
    transition: all 0.25s ease;
}

.diag-login-wall-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 45px rgba(220, 20, 60, 0.5);
}

[data-theme="light"] .diag-login-gate {
    background: #fff;
    border-color: rgba(220, 20, 60, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .diag-login-gate-result-preview,
[data-theme="light"] .diag-login-gate-features {
    background: #f8f8f8;
    border-color: rgba(0, 0, 0, 0.06);
}

/* ===== ENHANCED TRUST BAR ===== */
.trust-bar-enhanced {
    padding: 24px 0;
    background: rgba(220, 20, 60, 0.03);
    border-top: 1px solid rgba(220, 20, 60, 0.08);
    border-bottom: 1px solid rgba(220, 20, 60, 0.08);
}

.trust-bar-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.trust-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary, #A1A1A6);
    white-space: nowrap;
}

.trust-bar-item i {
    color: var(--primary, #DC143C);
    font-size: 1.1rem;
}

.trust-bar-item strong {
    color: var(--text-primary, #F5F5F7);
    font-weight: 800;
}

/* ===== DECISION PROTECTION BADGE ===== */
.protection-banner {
    max-width: 960px;
    margin: 0 auto 40px;
    padding: 0 16px;
}

.protection-card {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.06), rgba(220, 20, 60, 0.02));
    border: 1.5px solid rgba(220, 20, 60, 0.15);
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.protection-card:hover {
    border-color: rgba(220, 20, 60, 0.3);
    box-shadow: 0 8px 32px rgba(220, 20, 60, 0.08);
}

.protection-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(220, 20, 60, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.protection-text h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary, #F5F5F7);
    margin-bottom: 4px;
}

.protection-text p {
    font-size: 0.82rem;
    color: var(--text-secondary, #A1A1A6);
    line-height: 1.6;
}

.protection-text a {
    color: var(--primary, #DC143C);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.82rem;
}

.protection-text a:hover {
    text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 900px) {
    .pathway-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .hero-new-headline {
        font-size: 2.2rem;
    }
    
    .steps-grid {
        gap: 24px;
    }
    
    .steps-grid::before {
        display: none;
    }
    
    .trust-bar-grid {
        gap: 20px;
    }
    
    .protection-card {
        flex-direction: column;
        text-align: center;
    }
    
    .journey-step-label {
        display: none;
    }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 600px) {
    .pathway-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 12px;
    }
    
    .pathway-card {
        padding: 20px 14px 18px;
        border-radius: 16px;
    }
    
    .pathway-icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
        border-radius: 14px;
        margin-bottom: 12px;
    }
    
    .pathway-title {
        font-size: 0.92rem;
    }
    
    .pathway-desc {
        font-size: 0.75rem;
    }
    
    .hero-new-headline {
        font-size: 1.8rem;
    }
    
    .hero-new-subheadline {
        font-size: 1rem;
        padding: 0 12px;
    }
    
    .hero-cta-group {
        flex-direction: column;
        gap: 10px;
        padding: 0 20px;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary,
    .btn-cta-whatsapp {
        width: 100%;
        justify-content: center;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 16px;
    }
    
    .steps-grid::before {
        display: none;
    }
    
    .trust-bar-grid {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
        padding: 0 24px;
    }
    
    .trust-bar-item {
        white-space: normal;
    }
    
    .protection-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .journey-bar-inner {
        padding: 8px 12px;
    }
    
    .journey-step-dot {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
}

/* ===== PATHWAY CARD COMING SOON STATE ===== */
.pathway-card.coming-soon {
    opacity: 0.65;
    cursor: default;
}

.pathway-card.coming-soon:hover {
    transform: none;
    border-color: rgba(255, 193, 7, 0.2);
    box-shadow: none;
}

/* ===== LIGHT THEME ADJUSTMENTS ===== */
[data-theme="light"] .pathway-card {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .pathway-card:hover {
    border-color: rgba(220, 20, 60, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .pathway-card.primary-path {
    background: linear-gradient(145deg, rgba(220, 20, 60, 0.04) 0%, #FFFFFF 100%);
}

[data-theme="light"] .step-number {
    background: rgba(220, 20, 60, 0.06);
}

[data-theme="light"] .trust-bar-enhanced {
    background: rgba(220, 20, 60, 0.02);
}

[data-theme="light"] .protection-card {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.04), rgba(220, 20, 60, 0.01));
}

[data-theme="light"] .tinda-journey-bar {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .journey-step-dot {
    background: #F5F5F7;
}

/* ═══════════════════════════════════════════════════
   DIAGNOSIS FLOW — 5-Step Wizard Styles
   ═══════════════════════════════════════════════════ */

/* ── Progress Bar Container ── */
.diag-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    padding: 14px 12px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

/* Arabic (RTL): Steps flow RIGHT → LEFT (1 on the right) */
[dir="rtl"] .diag-progress-bar {
    direction: rtl;
}

/* English (LTR): Steps flow LEFT → RIGHT (1 on the left) */
[dir="ltr"] .diag-progress-bar {
    direction: ltr;
}

/* ── Individual Step ── */
.diag-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 56px;
    opacity: 0.4;
    transition: opacity 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}

.diag-flow-step.active,
.diag-flow-step.done {
    opacity: 1;
}

/* ── Step Dot (Circle) ── */
.dfs-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    background: var(--bg-card);
    border: 2.5px solid var(--border-light);
    color: var(--text-secondary);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.dfs-num {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

/* ── Active Step — Red Pulse ── */
.diag-flow-step.active .dfs-dot {
    background: linear-gradient(135deg, #DC143C, #FF1744);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 18px rgba(220, 20, 60, 0.4);
    animation: stepDotPulse 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.diag-flow-step.active .dfs-num {
    animation: stepNumCountIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ── Done Step — Green Check ── */
.diag-flow-step.done .dfs-dot {
    background: #00C48C;
    border-color: transparent;
    color: #fff;
    animation: stepDotCheck 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.diag-flow-step.done .dfs-num {
    animation: stepNumCheckIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ── Step Label ── */
.dfs-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.3s, font-weight 0.3s;
}

.diag-flow-step.active .dfs-label {
    color: var(--primary);
    font-weight: 700;
}

.diag-flow-step.done .dfs-label {
    color: #00C48C;
    font-weight: 600;
}

/* ── Connector Line ── */
.dfs-line {
    flex: 1;
    height: 2.5px;
    min-width: 20px;
    max-width: 60px;
    background: var(--border-light);
    margin: 0 4px;
    margin-bottom: 22px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.dfs-line::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    background: #00C48C;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* LTR: line fills left → right */
[dir="ltr"] .dfs-line::after {
    left: 0;
    transform-origin: left center;
}

/* RTL: line fills right → left */
[dir="rtl"] .dfs-line::after {
    right: 0;
    transform-origin: right center;
}

.dfs-line.filled::after {
    transform: scaleX(1);
}

/* ═══ ANIMATIONS ═══ */

/* Active dot — scale bounce */
@keyframes stepDotPulse {
    0%   { transform: scale(0.8); }
    50%  { transform: scale(1.18); }
    100% { transform: scale(1.1); }
}

/* Active number — pop in */
@keyframes stepNumCountIn {
    0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
    60%  { transform: scale(1.25) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Done dot — shrink then expand */
@keyframes stepDotCheck {
    0%   { transform: scale(1.1); }
    40%  { transform: scale(0.85); }
    100% { transform: scale(1); }
}

/* Done checkmark — pop in */
@keyframes stepNumCheckIn {
    0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
    60%  { transform: scale(1.3) rotate(8deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ── Step Panels ── */
.diag-step-panel {
    display: none;
}

.diag-step-panel.active {
    display: block;
    animation: diagSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* LTR slide: from left */
@keyframes diagSlideIn {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* RTL slide: from right */
[dir="rtl"] .diag-step-panel.active {
    animation-name: diagSlideInRTL;
}

@keyframes diagSlideInRTL {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Category Buttons */
.diag-cat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 16px;
    border: 1.5px solid var(--border-light);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.diag-cat-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(220,20,60,0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.diag-cat-btn:hover::after {
    opacity: 1;
}

.diag-cat-btn:hover {
    border-color: rgba(220, 20, 60, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.diag-cat-btn:active {
    transform: translateY(-1px) scale(0.97);
}

.diag-cat-btn.selected {
    border-color: var(--primary);
    background: rgba(220, 20, 60, 0.08);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.12), 0 4px 16px rgba(220, 20, 60, 0.1);
}

.diag-cat-btn.selected::after {
    opacity: 1;
}

.diag-cat-icon {
    font-size: 1.5rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(220, 20, 60, 0.06);
    transition: all 0.3s;
}

.diag-cat-btn:hover .diag-cat-icon,
.diag-cat-btn.selected .diag-cat-icon {
    background: rgba(220, 20, 60, 0.1);
    transform: scale(1.05);
}

.diag-cat-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Diagnosis Part Card */
.diag-part-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s;
}

.diag-part-card:hover {
    border-color: rgba(220, 20, 60, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.diag-part-img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.diag-part-info {
    flex: 1;
    min-width: 0;
}

.diag-part-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.diag-part-compat {
    font-size: 0.78rem;
    color: #00C48C;
    font-weight: 600;
    margin-bottom: 4px;
}

.diag-part-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}

.diag-part-add {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #DC143C, #FF1744);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.diag-part-add:hover {
    transform: scale(1.1);
}

.diag-part-add.added {
    background: #00C48C;
}

/* Workshop Card */
.ws-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all 0.3s;
}

.ws-card:hover {
    border-color: rgba(220, 20, 60, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ws-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(220, 20, 60, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ws-card-info {
    flex: 1;
}

.ws-card-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ws-card-specs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ws-card-spec {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ws-card-rating {
    color: #FFC107;
    font-size: 0.82rem;
    font-weight: 700;
}

.ws-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.ws-btn-call, .ws-btn-map {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.ws-btn-call {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
    color: #25D366;
}

.ws-btn-map {
    background: rgba(30, 136, 229, 0.1);
    border: 1px solid rgba(30, 136, 229, 0.2);
    color: #1E88E5;
}

/* Pulse glow for loading */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.2); }
    50% { box-shadow: 0 0 20px 8px rgba(220, 20, 60, 0.15); }
}

/* Saved Vehicle Chip in Step 3 */
.diag-vehicle-chip {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border-light);
    background: var(--bg-card);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.diag-vehicle-chip:hover {
    border-color: rgba(220, 20, 60, 0.25);
}

.diag-vehicle-chip.selected {
    border-color: var(--primary);
    background: rgba(220, 20, 60, 0.08);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.12);
}

/* Responsive overrides for diagnosis flow */
@media (max-width: 600px) {
    #diagCategories {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .diag-cat-btn {
        padding: 12px 6px;
    }

    .diag-cat-icon {
        font-size: 1.3rem;
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .diag-cat-name {
        font-size: 0.72rem;
    }

    .dfs-label {
        font-size: 0.6rem;
    }

    .dfs-dot {
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }

    .dfs-line {
        min-width: 12px;
    }

    .ws-card {
        flex-direction: column;
    }

    .ws-card-actions {
        width: 100%;
    }

    .ws-btn-call, .ws-btn-map {
        flex: 1;
        justify-content: center;
    }

    /* Step panel mobile polish */
    .diag-step-panel h2 {
        font-size: 1.25rem !important;
    }

    .diag-step-panel p {
        font-size: 0.85rem !important;
    }

    /* Image upload buttons mobile */
    .diag-img-opt-btn {
        padding: 16px 10px;
    }

    .diag-img-opt-btn i {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
}


/* ═══════════════════════════════════════════════════════════
   ONBOARDING — Welcome Modal (Clean & Professional)
   ═══════════════════════════════════════════════════════════ */

/* ── Overlay ── */
.onb-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px;
}

.onb-modal-overlay.open {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 1;
}

/* ── Modal Card ── */
.onb-modal {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-light, rgba(255,255,255,0.08));
    border-radius: 24px;
    padding: 42px 28px 26px;
    text-align: center;
    transform: scale(0.88) translateY(24px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.onb-modal-overlay.open .onb-modal {
    transform: scale(1) translateY(0);
}

/* Glow */
.onb-modal-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Close ── */
.onb-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary, #888);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

[dir="rtl"] .onb-modal-close { right: auto; left: 14px; }

.onb-modal-close:hover {
    background: rgba(220, 20, 60, 0.12);
    color: var(--primary, #DC143C);
}

/* ═══════════════════════════════
   SMART LOGO — Ring + Glow + AI Dot
   ═══════════════════════════════ */
.onb-modal-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    z-index: 1;
}

/* Rotating ring behind logo */
.onb-logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary, #DC143C);
    border-right-color: rgba(220, 20, 60, 0.2);
    animation: onbRingSpin 3s linear infinite;
}

.onb-logo-ring::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-bottom-color: rgba(220, 20, 60, 0.15);
    border-left-color: rgba(220, 20, 60, 0.08);
    animation: onbRingSpin 5s linear infinite reverse;
}

@keyframes onbRingSpin {
    to { transform: rotate(360deg); }
}

/* Logo image */
.onb-modal-logo img {
    height: 44px;
    width: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 14px rgba(220, 20, 60, 0.2));
    animation: onbLogoIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
}

/* Theme switching */
.onb-logo-light { display: none !important; }
.onb-logo-dark  { display: block !important; }

[data-theme="light"] .onb-logo-dark  { display: none !important; }
[data-theme="light"] .onb-logo-light { display: block !important; }

/* AI Dot — green pulsing indicator */
.onb-logo-ai-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2.5px solid var(--bg-card, #1a1a2e);
    z-index: 2;
    animation: onbAiDot 2s ease-in-out infinite;
}

@keyframes onbLogoIn {
    from { opacity: 0; transform: scale(0.7); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes onbAiDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
    50%      { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}

/* ── Tagline ── */
.onb-modal-tagline {
    font-family: 'Cairo', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary, #DC143C);
    letter-spacing: 0.5px;
    margin: 0 0 12px;
    z-index: 1;
    position: relative;
    animation: onbFadeUp 0.5s ease 0.28s both;
    opacity: 0.85;
}

/* ── Title & Desc ── */
.onb-modal-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 8px;
    z-index: 1;
    position: relative;
    animation: onbFadeUp 0.5s ease 0.35s both;
}

.onb-modal-desc {
    font-size: 0.85rem;
    color: var(--text-secondary, #aaa);
    line-height: 1.65;
    margin: 0 auto 22px;
    max-width: 340px;
    z-index: 1;
    position: relative;
    animation: onbFadeUp 0.5s ease 0.45s both;
}

@keyframes onbFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 3-Step Flow ── */
.onb-modal-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
    z-index: 1;
    position: relative;
}

.onb-modal-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: onbFadeUp 0.5s ease both;
}

.onb-modal-step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.18), rgba(220, 20, 60, 0.06));
    border: 1.5px solid rgba(220, 20, 60, 0.25);
    color: var(--primary, #DC143C);
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
}

.onb-modal-step span {
    font-size: 0.72rem;
    color: var(--text-secondary, #999);
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
}

.onb-modal-step-arrow {
    color: rgba(220, 20, 60, 0.25);
    font-size: 0.65rem;
    margin-bottom: 20px;
}

/* ── CTA ── */
.onb-modal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #DC143C, #b91030);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
    position: relative;
    box-shadow: 0 4px 18px rgba(220, 20, 60, 0.28);
    animation: onbFadeUp 0.5s ease 0.55s both;
}

.onb-modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(220, 20, 60, 0.42);
}

.onb-modal-cta i {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ── Choose Service Label ── */
.onb-modal-choose {
    font-family: 'Cairo', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary, #999);
    text-align: center;
    margin-bottom: 12px;
    z-index: 1;
    position: relative;
}

/* ── 4 Service Cards Grid ── */
.onb-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
    z-index: 1;
    position: relative;
}

.onb-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1.5px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: onbFadeUp 0.5s ease both;
}

.onb-service-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(220,20,60,0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.onb-service-card:active {
    transform: translateY(0) scale(0.97);
}

.onb-service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: transform 0.3s;
}

.onb-service-card:hover .onb-service-icon {
    transform: scale(1.1);
}

.onb-service-name {
    font-family: 'Cairo', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary, #F5F5F7);
    line-height: 1.2;
}

.onb-service-sub {
    font-family: 'Cairo', sans-serif;
    font-size: 0.68rem;
    color: var(--text-secondary, #999);
    line-height: 1;
}

/* ── Skip ── */
.onb-modal-skip {
    display: block;
    margin: 10px auto 0;
    padding: 6px 16px;
    border: none;
    background: none;
    color: var(--text-secondary, #777);
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1;
    position: relative;
}

.onb-modal-skip:hover {
    color: var(--primary, #DC143C);
}

/* ── Powered by AI ── */
.onb-modal-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.68rem;
    font-family: 'Cairo', sans-serif;
    color: var(--text-secondary, #555);
    letter-spacing: 0.4px;
    z-index: 1;
    position: relative;
    text-transform: uppercase;
}

.onb-powered-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    animation: onbAiDot 2s ease-in-out infinite;
    flex-shrink: 0;
}


/* ═══════════════════════════════
   ONBOARDING — Light Theme
   ═══════════════════════════════ */
[data-theme="light"] .onb-modal {
    background: #fff;
    border-color: rgba(0,0,0,0.07);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

[data-theme="light"] .onb-modal-glow {
    background: radial-gradient(circle, rgba(220, 20, 60, 0.1) 0%, transparent 70%);
}

[data-theme="light"] .onb-logo-ai-dot {
    border-color: #fff;
}

[data-theme="light"] .onb-logo-ring {
    border-top-color: var(--primary, #DC143C);
    border-right-color: rgba(220, 20, 60, 0.12);
}

[data-theme="light"] .onb-modal-close {
    background: rgba(0,0,0,0.04);
}


/* ═══════════════════════════════
   ONBOARDING — Responsive
   ═══════════════════════════════ */
@media (max-width: 480px) {
    .onb-modal {
        padding: 32px 20px 22px;
        border-radius: 20px;
        max-width: 360px;
    }

    .onb-modal-logo {
        width: 76px;
        height: 76px;
    }

    .onb-modal-logo img {
        height: 38px;
    }

    .onb-modal-title {
        font-size: 1.2rem;
    }

    .onb-modal-desc {
        font-size: 0.8rem;
    }

    .onb-modal-step-num {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .onb-modal-step span {
        font-size: 0.65rem;
    }

    .onb-modal-cta {
        font-size: 0.88rem;
        padding: 12px 20px;
    }
}

/* ═══════════════════════════════════════════════════
   DIAGNOSIS STICKY ACTION BUTTONS
   Always visible at the bottom — no scrolling needed
   ═══════════════════════════════════════════════════ */

.diag-sticky-actions {
    position: fixed;
    bottom: 80px; /* above bottom nav */
    left: 0;
    right: 0;
    z-index: 900;
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(10,14,26,0.92) 0%, var(--bg-primary, #0a0e1a) 100%);
    border-top: 1px solid rgba(220, 20, 60, 0.12);
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: diagStickySlideUp 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes diagStickySlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Primary CTA — "اطلب قطعتك" */
.diag-action-primary {
    flex: 2;
    padding: 14px 16px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #DC143C, #FF1744);
    color: #fff;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.35);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.diag-action-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: diagBtnShine 3s infinite;
}

@keyframes diagBtnShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.diag-action-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(220, 20, 60, 0.45);
}

.diag-action-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Secondary — "أحتاج فحص بشري" */
.diag-action-secondary {
    flex: 1;
    padding: 14px 12px;
    border-radius: 14px;
    border: 1.5px solid rgba(37, 211, 102, 0.35);
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s;
}

.diag-action-secondary i {
    font-size: 1.1rem;
}

.diag-action-secondary:hover {
    background: rgba(37, 211, 102, 0.18);
    border-color: rgba(37, 211, 102, 0.5);
    transform: translateY(-1px);
}

/* Back button */
.diag-action-back {
    flex: 1;
    padding: 14px 12px;
    border-radius: 14px;
    border: 1.5px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s;
}

.diag-action-back:hover {
    border-color: rgba(220, 20, 60, 0.2);
    background: rgba(220, 20, 60, 0.04);
}

/* Cart button — green */
.diag-action-cart {
    flex: 2;
    padding: 14px 16px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #00C48C, #00D68F);
    color: #fff;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 196, 140, 0.35);
    transition: all 0.25s;
}

.diag-action-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 196, 140, 0.45);
}

/* Hide sticky actions when not on diagnosis flow */
#page-diagnosis-flow:not(.active) .diag-sticky-actions {
    display: none;
}

/* RTL-specific direction for sticky actions */
[dir="rtl"] .diag-sticky-actions {
    direction: rtl;
}

/* ═══════════════════════════════════════════════════
   DIAGNOSIS FLOW — FULL RTL SUPPORT
   ═══════════════════════════════════════════════════ */

[dir="rtl"] #page-diagnosis-flow {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] #page-diagnosis-flow .diag-cat-btn,
[dir="rtl"] #page-diagnosis-flow h2,
[dir="rtl"] #page-diagnosis-flow h3,
[dir="rtl"] #page-diagnosis-flow p,
[dir="rtl"] #page-diagnosis-flow label,
[dir="rtl"] #page-diagnosis-flow span,
[dir="rtl"] #page-diagnosis-flow input,
[dir="rtl"] #page-diagnosis-flow select,
[dir="rtl"] #page-diagnosis-flow textarea {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] #diagChatMessages .diag-cart-btn,
[dir="rtl"] #diagChatMessages .diag-cart-open-btn {
    direction: rtl;
}

[dir="rtl"] #page-diagnosis-flow button {
    direction: rtl;
}

/* Diagnosis part card — flex direction RTL */
[dir="rtl"] .diag-part-card {
    flex-direction: row-reverse;
    text-align: right;
}

/* Workshop card RTL */
[dir="rtl"] .ws-card {
    flex-direction: row-reverse;
    text-align: right;
}

/* Mobile adjustments for sticky actions */
@media (max-width: 480px) {
    .diag-sticky-actions {
        bottom: 72px;
        padding: 10px 12px;
        gap: 8px;
    }

    .diag-action-primary,
    .diag-action-cart {
        font-size: 0.82rem;
        padding: 12px 10px;
    }

    .diag-action-secondary,
    .diag-action-back {
        font-size: 0.78rem;
        padding: 12px 8px;
    }

    .diag-action-secondary i {
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════
   DIAGNOSIS CHAT EXPAND / MAXIMIZE
   ═══════════════════════════════════════════════════ */

#diagChatArea.diag-chat-expanded {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    border-radius: 0;
    margin: 0;
    padding: 16px;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    animation: diagChatExpandIn 0.25s ease-out;
}

@keyframes diagChatExpandIn {
    from { opacity: 0.7; transform: scale(0.95); }
    to   { opacity: 1;   transform: scale(1); }
}

#diagChatArea.diag-chat-expanded #diagChatMessages {
    flex: 1;
    max-height: none !important;
}

#diagChatExpandBtn {
    transition: all 0.2s;
}

#diagChatExpandBtn:hover {
    background: rgba(220, 20, 60, 0.1);
    border-color: rgba(220, 20, 60, 0.3);
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════
   SYMPTOM HELPER — AI Chat in Step 2
   ═══════════════════════════════════════════════════ */

@keyframes diagHelperSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

#diagHelperToggle:hover {
    border-color: rgba(220, 20, 60, 0.5);
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(220, 20, 60, 0.04));
}

#diagHelperChat {
    animation: diagHelperSlideIn 0.3s ease-out;
}

#diagHelperMessages::-webkit-scrollbar {
    width: 4px;
}

#diagHelperMessages::-webkit-scrollbar-thumb {
    background: rgba(220, 20, 60, 0.2);
    border-radius: 4px;
}

#diagHelperInput:focus {
    border-color: rgba(220, 20, 60, 0.4);
    outline: none;
}

#diagHelperSendBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════
   DIAGNOSIS NAV BUTTONS — أزرار التنقل الاحترافية
   ═══════════════════════════════════════════ */
.diag-nav-btn {
    flex: 1;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.diag-nav-back {
    border: 1.5px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-primary);
}

.diag-nav-back:hover {
    border-color: rgba(220, 20, 60, 0.2);
    background: rgba(220, 20, 60, 0.04);
}

.diag-nav-back:active {
    transform: scale(0.97);
}

.diag-nav-next {
    flex: 2;
    border: none;
    background: linear-gradient(135deg, #DC143C, #FF1744);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.3);
}

.diag-nav-next:hover {
    box-shadow: 0 6px 24px rgba(220, 20, 60, 0.4);
    transform: translateY(-1px);
}

.diag-nav-next:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.3);
}

.diag-nav-submit {
    background: linear-gradient(135deg, #DC143C 0%, #FF1744 50%, #DC143C 100%);
    background-size: 200% 200%;
    animation: diagSubmitShimmer 3s ease infinite;
}

@keyframes diagSubmitShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 480px) {
    .diag-nav-btn {
        padding: 13px 12px;
        font-size: 0.88rem;
        border-radius: 12px;
    }
}

/* ==========================================================
   RTL (ARABIC) — Journey & Diagnosis RTL Support
   ========================================================== */

/* Journey Section */
[dir="rtl"] .journey-entry-section {
    text-align: right;
}

[dir="rtl"] .journey-path-card {
    text-align: right;
}

[dir="rtl"] .journey-path-badge {
    right: auto;
    left: 12px;
}

/* How It Works — connector arrows flip for RTL */
[dir="rtl"] .hiw-connector i.fa-chevron-left {
    transform: scaleX(-1);
}

/* Decision Protection Card */
[dir="rtl"] .dp-text {
    text-align: right;
}

/* Diagnosis Flow Steps */
[dir="rtl"] .diag-step-panel {
    text-align: right;
}

[dir="rtl"] .diag-result-summary {
    text-align: right;
}

/* Diagnosis category cards */
[dir="rtl"] .diag-cat-card {
    text-align: right;
}

/* Symptom textarea */
[dir="rtl"] .diag-symptom-textarea {
    text-align: right;
}

@media (max-width: 768px) {
    [dir="rtl"] .dp-card {
        flex-direction: column;
        text-align: center;
    }
}

/* END RTL JOURNEY SUPPORT */

/* ── Touch Devices — Kill hover transforms that cause mobile shaking ── */
@media (hover: none) and (pointer: coarse) {
  .hero-diag-cta:hover,
  .hero-image-cta:hover,
  .journey-cta-secondary:hover,
  .journey-cta-outline:hover,
  .journey-path-card:hover,
  .pathway-card:hover,
  .btn-cta-primary:hover,
  .btn-cta-secondary:hover,
  .btn-cta-whatsapp:hover,
  .hero-cta-secondary:hover,
  .hero-cta-tertiary:hover,
  .value-prop-card:hover,
  .diag-img-opt-btn:hover,
  .diag-login-gate-cta:hover,
  .diag-login-wall-cta:hover,
  .diag-cat-btn:hover,
  .ws-card:hover,
  .onb-modal-cta:hover,
  .onb-service-card:hover {
    transform: none !important;
  }
  .hero-diag-cta:hover .hero-diag-cta-arrow,
  [dir="ltr"] .hero-diag-cta:hover .hero-diag-cta-arrow {
    transform: none !important;
  }
  .hero-diag-cta:hover .hero-diag-cta-icon,
  .pathway-card:hover .pathway-icon,
  .step-card:hover .step-number,
  .onb-service-card:hover .onb-service-icon {
    transform: none !important;
  }

  /* Tame continuous animations on mobile */
  .hero-diag-cta-glow {
    animation: none !important;
  }
  .hero-diag-cta-shine {
    animation: none !important;
  }
}
