﻿/* ==============================================================================
   1. الهوية الفاتحة المستوحاة من الهوية البصرية الوطنية (Default Light Theme)
   ============================================================================== */
:root {
    --primary: #1e293b;
    --primary-hover: #0f172a;
    --accent: #10b981;
    --danger: #ef4444;
    --dark: #0f172a;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --input-bg: #f8fafc;
    --footer-bg: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --btn-text: #ffffff;
}

/* ==============================================================================
   2. تبديل الهوية البصرية للوضع الداكن
   ============================================================================== */
body.admin-mode {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --dark: #f8fafc;
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --input-bg: #0f172a;
    --footer-bg: #1e293b;
    --shadow: none;
    --glass-bg: rgba(15, 23, 42, 0.98);
}

/* ==============================================================================
   3. القواعد الأساسية
   ============================================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Almarai', sans-serif;
    background: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    direction: rtl;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    height: 100dvh;
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
}

@media (min-width: 481px) {
    .auth-container {
        height: 700px;
        border-radius: 24px;
        box-shadow: var(--shadow);
        border: 1px solid var(--border);
        margin: 20px;
    }
}

.portal-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1;
}

    .portal-wrapper.active-portal {
        opacity: 1;
        visibility: visible;
        z-index: 2;
    }

.auth-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-40px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.3s;
}

    .auth-card.active-card {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        z-index: 10;
    }

    .auth-card.exit-card {
        opacity: 0;
        visibility: hidden;
        transform: translateX(40px);
        z-index: 5;
    }

.card-header {
    text-align: center;
    padding: 40px 20px 10px;
    background: transparent;
    z-index: 11;
}

    .card-header h2 {
        font-size: 26px;
        font-weight: 800;
        color: var(--dark);
        margin-bottom: 8px;
    }

    .card-header p {
        font-size: 14px;
        color: var(--text-muted);
        margin: 0;
    }

.card-body {
    flex: 1;
    padding: 10px 24px 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
}

    .card-body::-webkit-scrollbar {
        display: none;
    }

.card-footer {
    padding: 20px;
    text-align: center;
    background: var(--footer-bg);
    font-size: 14px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    z-index: 11;
}

    .card-footer a {
        color: var(--primary);
        font-weight: 800;
        text-decoration: none;
        margin-right: 5px;
    }

        .card-footer a:hover {
            text-decoration: underline;
        }

/* ==============================================================================
   4. عناصر الإدخال، الأزرار، والتنبيهات
   ============================================================================== */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

    .input-group i {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #64748b;
        font-size: 16px;
    }

.form-input {
    width: 100%;
    height: 54px;
    padding: 10px 45px 10px 15px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-family: 'Almarai', sans-serif;
    font-size: 15px;
    color: var(--dark);
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: var(--input-bg);
    font-weight: 700;
    direction: rtl;
}

    .form-input:focus {
        border-color: var(--primary);
        background: var(--bg-card);
        outline: none;
    }

input[type="tel"].form-input {
    direction: ltr !important;
    text-align: center !important;
    font-size: 18px !important;
    letter-spacing: 2px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding-right: 15px !important;
}

body.admin-mode input[type="tel"].form-input {
    color: #f8fafc !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

input[type=number] {
    -moz-appearance: textfield !important;
}

.btn-primary, .btn-secondary, .btn-admin {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 14px;
    font-family: 'Almarai', sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: white;
}

.btn-primary {
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.15);
}

    .btn-primary:active:not(:disabled) {
        transform: scale(0.98);
    }

.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

    .btn-secondary:active:not(:disabled) {
        background: #e2e8f0;
        transform: scale(0.98);
    }

.btn-admin {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

    .btn-admin:active:not(:disabled) {
        transform: scale(0.98);
    }

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.forgot-pwd {
    text-align: right;
    margin-bottom: 22px;
}

    .forgot-pwd a, .forgot-link {
        color: var(--primary);
        font-size: 13px;
        text-decoration: none;
        font-weight: 800;
        cursor: pointer;
    }

.pwd-hint {
    font-size: 11px;
    color: var(--danger);
    margin-top: -15px;
    margin-bottom: 15px;
    display: block;
    font-weight: 700;
}

.admin-step-hint {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    font-weight: bold;
    margin-top: 0;
}

.info-alert {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

    .info-alert i {
        font-size: 19px;
        color: #3b82f6;
    }

.otp-group input {
    text-align: center !important;
    direction: ltr !important;
    letter-spacing: 12px !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    padding-right: 15px !important;
}

.switch-portal-wrapper {
    text-align: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
}

.switch-portal-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        transform: scale(1.04);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ==============================================================================
   5. 🖥️ الشاشة الموحّدة المنزلقة (dashboard-screen) — نسخة متجاوبة
   [PATCH v9] إصلاح التناسق على الهواتف:
     - استخدام transform بدل right (أداء أفضل + لا scrollbar)
     - 100% كأساس + 100dvh كتحسين
     - media queries ذكية لكل حجم شاشة
     - قفل تمرير body عند فتح الشاشة
   ============================================================================== */

.dashboard-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    background: var(--bg-main);
    z-index: 100015;
    display: flex;
    flex-direction: column;
    direction: rtl;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
    will-change: transform;
    overflow: hidden;
}

    .dashboard-screen.open {
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
    }

/* دعم LTR */
html[dir="ltr"] .dashboard-screen {
    direction: ltr;
    transform: translateX(-100%);
}

    html[dir="ltr"] .dashboard-screen.open {
        transform: translateX(0);
    }

/* 🔒 قفل تمرير الصفحة عند فتح الشاشة */
body.dashboard-screen-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* رأس الشاشة */
.dashboard-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 14px 16px;
    padding-top: calc(14px + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #3b82f6;
    flex-shrink: 0;
    min-height: 60px;
}

.dashboard-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    min-width: 0;
    flex: 1;
}

    .dashboard-header-title .icon-circle {
        width: 34px;
        height: 34px;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        flex-shrink: 0;
    }

    .dashboard-header-title span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

.dashboard-back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-family: inherit;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

    .dashboard-back-btn:hover {
        background: #ef4444;
        border-color: #ef4444;
    }

    .dashboard-back-btn:active {
        transform: scale(0.94);
    }

/* محتوى الشاشة */
.dashboard-content {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

    /* تمركز عمودي للحاويات القصيرة */
    .dashboard-content > .unified-screen-container {
        margin-top: auto;
        margin-bottom: auto;
    }

    /* الحاوية الموحّدة */
    .dashboard-content .unified-screen-container {
        background: var(--bg-card);
        border-radius: 14px;
        border: 1px solid var(--border);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        padding: 24px 20px;
        width: 100%;
        max-width: 480px;
        min-height: auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .dashboard-content .unified-icon-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        font-size: 36px;
        margin-bottom: 20px;
        flex-shrink: 0;
    }

    .dashboard-content .unified-title {
        font-size: 19px;
        font-weight: 900;
        color: var(--dark);
        margin: 0 0 12px 0;
        line-height: 1.35;
        word-break: break-word;
    }

    .dashboard-content .unified-text {
        font-size: 14px;
        color: var(--text-muted);
        line-height: 1.65;
        margin: 0 0 20px 0;
        font-weight: 700;
        word-break: break-word;
    }

    /* أزرار داخل الشاشة الموحّدة */
    .dashboard-content .dashboard-action-btn {
        width: 100%;
        max-width: 100%;
        min-height: 50px;
        height: auto;
        padding: 14px 18px;
        border: none;
        border-radius: 12px;
        font-family: inherit;
        font-size: 15px;
        font-weight: 800;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

        .dashboard-content .dashboard-action-btn:hover:not(:disabled) {
            transform: translateY(-2px);
        }

        .dashboard-content .dashboard-action-btn:active:not(:disabled) {
            transform: translateY(0) scale(0.98);
        }

        .dashboard-content .dashboard-action-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

/* ==============================================================================
   6. استعلامات الوسائط للشاشات الموحّدة
   ============================================================================== */

/* هواتف صغيرة جداً (< 360px) */
@media (max-width: 360px) {
    .dashboard-header {
        padding: 10px 12px;
        padding-top: calc(10px + env(safe-area-inset-top));
        min-height: 54px;
    }

    .dashboard-header-title {
        font-size: 14px;
        gap: 8px;
    }

        .dashboard-header-title .icon-circle {
            width: 30px;
            height: 30px;
            font-size: 13px;
        }

    .dashboard-back-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 13px;
    }

    .dashboard-content {
        padding: 12px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

        .dashboard-content .unified-screen-container {
            padding: 20px 16px;
            border-radius: 12px;
        }

        .dashboard-content .unified-icon-wrapper {
            width: 68px;
            height: 68px;
            font-size: 30px;
            margin-bottom: 16px;
        }

        .dashboard-content .unified-title {
            font-size: 17px;
            margin-bottom: 10px;
        }

        .dashboard-content .unified-text {
            font-size: 13px;
            margin-bottom: 16px;
        }

        .dashboard-content .dashboard-action-btn {
            font-size: 14px;
            padding: 12px 16px;
            min-height: 46px;
            gap: 6px;
        }
}

/* هواتف متوسطة (361px - 480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .dashboard-content {
        padding: 14px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

        .dashboard-content .unified-screen-container {
            padding: 22px 18px;
        }

        .dashboard-content .unified-icon-wrapper {
            width: 74px;
            height: 74px;
            font-size: 32px;
        }

        .dashboard-content .unified-title {
            font-size: 18px;
        }

        .dashboard-content .unified-text {
            font-size: 13.5px;
        }
}

/* أجهزة لوحية وما فوق (> 481px) */
@media (min-width: 481px) {
    .dashboard-content {
        padding: 30px;
    }

        .dashboard-content .unified-screen-container {
            padding: 36px 32px;
            max-width: 550px;
        }

        .dashboard-content .unified-icon-wrapper {
            width: 90px;
            height: 90px;
            font-size: 42px;
            margin-bottom: 24px;
        }

        .dashboard-content .unified-title {
            font-size: 21px;
        }

        .dashboard-content .unified-text {
            font-size: 15px;
        }

        .dashboard-content .dashboard-action-btn {
            min-height: 54px;
            font-size: 16px;
        }
}

/* هواتف أفقية (Landscape) */
@media (max-height: 500px) and (orientation: landscape) {
    .dashboard-header {
        padding: 8px 12px;
        min-height: 50px;
    }

    .dashboard-header-title {
        font-size: 13px;
    }

        .dashboard-header-title .icon-circle {
            width: 28px;
            height: 28px;
            font-size: 12px;
        }

    .dashboard-content {
        padding: 12px;
    }

        .dashboard-content .unified-screen-container {
            padding: 18px 20px;
            max-width: 600px;
        }

        .dashboard-content .unified-icon-wrapper {
            width: 60px;
            height: 60px;
            font-size: 26px;
            margin-bottom: 12px;
        }

        .dashboard-content .unified-title {
            font-size: 16px;
            margin-bottom: 8px;
        }

        .dashboard-content .unified-text {
            font-size: 12.5px;
            margin-bottom: 14px;
        }
}

/* ==============================================================================
   7. الوضع الليلي للشاشة الموحّدة
   ============================================================================== */
body.dark-mode .dashboard-screen,
body.dark-mode .dashboard-content {
    background: #0f172a;
}

    body.dark-mode .dashboard-content .unified-screen-container {
        background: #1e293b;
        border-color: #334155;
    }

    body.dark-mode .dashboard-content .unified-title {
        color: #f8fafc;
    }

    body.dark-mode .dashboard-content .unified-text {
        color: #94a3b8;
    }

/* ==============================================================================
   8. 🎯 بطاقة اختيار الوجهة (Chooser Card)
   ============================================================================== */
#chooser-card {
    max-width: 480px;
}

.chooser-hero-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
    animation: chooserPulse 2.8s ease-in-out infinite;
}

@keyframes chooserPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
    }

    50% {
        box-shadow: 0 10px 48px rgba(37, 99, 235, 0.60);
    }
}

#chooserUserName {
    color: #2563eb;
    font-weight: 800;
}

#chooserSubtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.6;
}

.chooser-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.chooser-option-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: right;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

    .chooser-option-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
        background: #fafbff;
    }

    .chooser-option-btn:active {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
    }

.chooser-option-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chooser-option-text {
    flex: 1;
    text-align: right;
}

    .chooser-option-text h3 {
        margin: 0 0 5px;
        font-size: 16px;
        font-weight: 800;
        line-height: 1.3;
    }

    .chooser-option-text p {
        margin: 0;
        font-size: 12.5px;
        color: var(--text-muted);
        line-height: 1.5;
        font-weight: 600;
    }

#linkToLogoutFromChooser {
    color: #ef4444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 9px;
    transition: background 0.2s ease, transform 0.15s ease;
}

    #linkToLogoutFromChooser:hover {
        background: rgba(239, 68, 68, 0.09);
        transform: translateY(-1px);
        text-decoration: none;
    }

    #linkToLogoutFromChooser i {
        font-size: 12px;
    }

@media (max-width: 480px) {
    .chooser-hero-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
        margin-bottom: 18px;
    }

    .chooser-option-btn {
        padding: 15px 16px;
        gap: 13px;
    }

    .chooser-option-icon {
        width: 46px;
        height: 46px;
        font-size: 19px;
    }

    .chooser-option-text h3 {
        font-size: 15px;
    }

    .chooser-option-text p {
        font-size: 11.5px;
    }

    #chooserSubtitle {
        font-size: 12.5px;
    }
}

/* ==============================================================================
   9. 🖼️ شعار Jocities
   ============================================================================== */
.card-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 6px;
}

.card-logo {
    width: 130px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 10px rgba(13, 71, 161, 0.12));
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-drag: none;
}

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

@media (max-width: 480px) {
    .card-logo {
        width: 105px;
    }

    .card-logo-wrapper {
        margin-bottom: 14px;
    }
}

/* ==============================================================================
   10. 🌐 زر تبديل اللغة
   ============================================================================== */
.lang-toggle-btn {
    position: fixed;
    top: 16px;
    inset-inline-end: 16px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #ffffff;
    color: #2563eb;
    border: 2px solid #e5e7eb;
    border-radius: 30px;
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

    .lang-toggle-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(37, 99, 235, 0.18);
        border-color: #2563eb;
        background: #f8faff;
    }

    .lang-toggle-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
    }

    .lang-toggle-btn i {
        font-size: 15px;
    }

    .lang-toggle-btn span {
        line-height: 1;
    }

@media (max-width: 480px) {
    .lang-toggle-btn {
        top: 12px;
        inset-inline-end: 12px;
        padding: 7px 12px;
        font-size: 12px;
    }

        .lang-toggle-btn i {
            font-size: 13px;
        }
}

/* ==============================================================================
   11. 🔄 تعديلات الاتجاه LTR (الإنجليزية)
   ============================================================================== */

[dir="ltr"] .btn-icon-flip {
    transform: scaleX(-1);
}

[dir="ltr"] .btn-arrow-flip {
    transform: scaleX(-1);
}

[dir="ltr"] .input-group i {
    left: auto;
    right: 15px;
}

[dir="ltr"] .input-group .form-input {
    padding-right: 45px;
    padding-left: 15px;
}

[dir="ltr"] body {
    font-family: 'Almarai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[dir="ltr"] .card-header,
[dir="ltr"] .card-body,
[dir="ltr"] .card-footer {
    text-align: left;
}

[dir="ltr"] .forgot-pwd {
    text-align: right;
}

[dir="ltr"] .unified-text ul {
    padding-right: 0;
    padding-left: 20px;
}

[dir="ltr"] .chooser-option-btn,
[dir="ltr"] .chooser-option-text {
    text-align: left;
}

[dir="ltr"] #linkToLogoutFromChooser i {
    transform: scaleX(-1);
}
