:root {
    --primary-50: #faf0e6;
    --primary-100: #f0d1b0;
    --primary-200: #e9ba8a;
    --primary-300: #e09b54;
    --primary-400: #d98833;
    --primary-500: #d06a00;
    --primary-600: #bd6000;
    --primary-700: #944b00;
    --primary-800: #723a00;
    --primary-900: #572d00;
    --orange-50: #faf0e6;
    --orange-100: #f0d1b0;
    --orange-200: #e9ba8a;
    --orange-300: #e09b54;
    --orange-400: #d98833;
    --orange-500: #d06a00;
    --orange-600: #bd6000;
    --orange-700: #944b00;
    --orange-800: #723a00;
    --orange-900: #572d00;
    --neutral-50: #ebebeb;
    --neutral-100: #c0c0c0;
    --neutral-200: #a1a1a1;
    --neutral-300: #767676;
    --neutral-400: #5c5c5c;
    --neutral-500: #333333;
    --neutral-600: #2e2e2e;
    --neutral-700: #242424;
    --neutral-800: #1c1c1c;
    --neutral-900: #151515;
    --dark-50: #3a516b;
    --dark-100: #092546;
    --dark-200: #082240;
    --dark-300: #061a32;
    --dark-400: #051427;
    --dark-500: #04101d;
    --red-50: #fae6e8;
    --red-100: #f0b1b7;
    --red-200: #e98c94;
    --red-300: #e05763;
    --red-400: #d93645;
    --red-500: #d00416;
    --red-600: #bd0414;
    --red-700: #940310;
    --red-800: #72020c;
    --red-900: #570209;
    --yellow-50: #fffbe9;
    --yellow-100: #fef3bc;
    --yellow-200: #feee9b;
    --yellow-300: #fee66e;
    --yellow-400: #fde151;
    --yellow-500: #fdd926;
    --yellow-600: #e6c523;
    --yellow-700: #b49a1b;
    --yellow-800: #8b7715;
    --yellow-900: #6a5b10;
    --green-50: #e9f9f0;
    --green-100: #b9ecd2;
    --green-200: #98e3bc;
    --green-300: #68d69d;
    --green-400: #4bce8a;
    --green-500: #1ec26d;
    --green-600: #1bb163;
    --green-700: #158a4d;
    --green-800: #116b3c;
    --green-900: #0d512e;
    --body-bg: #f5f7fa;
    --surface: #ffffff;
    --surface-soft: #fafafa;
    --border: #ececec;
    --border-dark: #d6d6d6;
    --text-primary: #04101d;
    --text-secondary: #5c5c5c;
    --text-muted: #767676;
    --shadow-sm: 0 5px 20px rgba(0, 0, 0, .05);
    --shadow-md: 0 10px 35px rgba(0, 0, 0, .07);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, .10);
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    font-family: "Cairo", sans-serif;
    background: var(--body-bg);
    color: var(--text-primary);
}

    html[dir="ltr"] {
        direction: ltr;
    }

    html[dir="rtl"] {
        direction: rtl;
    }

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

.ck-editor__editable {
    font-family: "Cairo", sans-serif !important;
    font-size: 17px;
    line-height: 2;
}

.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--dark-500);
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1000;
    transition: transform .3s ease;
    flex-shrink: 0;
}

.wrapper.collapsed .sidebar {
    transform: translateX(-100%);
}

.main {
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    transition: margin-left .3s ease, margin-right .3s ease;
}

.wrapper.collapsed .main {
    margin-left: 0;
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-700);
    border-radius: 10px;
}

.logo {
    padding: 25px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .logo-icon img {
        width: 50px;
        height: 50px;
        object-fit: contain;
        display: block;
        border-radius: 12px;
    }

.logo h5 {
    margin: 0;
    color: #fff;
    font-weight: 700;
}

.logo small {
    color: #cfcfcf;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

    .sidebar-menu li {
        margin: 6px 15px;
    }

    .sidebar-menu a {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 13px 17px;
        color: #d9d9d9;
        border-radius: 12px;
        transition: all .25s ease;
    }

        .sidebar-menu a i {
            width: 20px;
            color: var(--primary-300);
            transition: .25s;
        }

        .sidebar-menu a:hover {
            background: var(--primary-500);
            color: #fff;
            transform: translateX(5px);
        }

            .sidebar-menu a:hover i {
                color: #fff;
            }

        .sidebar-menu a.active {
            background: var(--primary-500);
            color: #fff;
            box-shadow: 0 8px 20px rgba(208,106,0,.20);
        }

            .sidebar-menu a.active i {
                color: #fff;
            }

.topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    height: 70px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--neutral-50);
    color: var(--neutral-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .25s;
}

    .icon-btn:hover {
        background: var(--primary-500);
        color: #fff;
        transform: translateY(-2px);
    }

.profile,
.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(208,106,0,.20);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600;
    transition: .25s;
}

    .nav-link:hover {
        color: var(--primary-500) !important;
    }

.notification-dot {
    width: 9px;
    height: 9px;
    background: var(--red-500);
    border: 2px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    right: 4px;
}

.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-subtitle {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 15px;
}

.card {
    border: none;
    border-radius: 20px;
    transition: .3s;
}

    .card:hover {
        transform: translateY(-3px);
    }

.dashboard-card,
.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    transition: .3s;
    padding: 24px;
}

    .dashboard-card .card-body {
        padding: 24px;
    }

    .content-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }

.card-header {
    border-radius: 1rem 1rem 0 0 !important;
}

.card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

    .card-header-custom h5 {
        margin: 0;
        color: var(--text-primary);
        font-weight: 700;
    }

    .card-header-custom span {
        color: var(--text-muted);
        font-size: 13px;
    }

.table {
    background: #fff;
}

    .table thead th {
        color: var(--text-primary);
        font-weight: 700;
        letter-spacing: .3px;
        border-bottom: none;
    }

    .table tbody tr {
        transition: .25s;
    }

        .table tbody tr:hover {
            background: var(--primary-50);
        }

.badge {
    font-size: .82rem;
    font-weight: 600;
    border-radius: 8px;
}

.btn-primary {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: #fff;
    font-weight: 600;
    transition: .25s;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background: var(--primary-600);
        border-color: var(--primary-600);
        color: #fff;
        transform: translateY(-1px);
    }

.btn-warning {
    background: var(--orange-300);
    border: none;
    color: var(--neutral-700);
    font-weight: 600;
}

    .btn-warning:hover {
        background: var(--orange-400);
        color: var(--neutral-700);
    }

.btn-outline-primary {
    color: var(--primary-500);
    border-color: var(--primary-500);
}

    .btn-outline-primary:hover {
        background: var(--primary-500);
        border-color: var(--primary-500);
        color: #fff;
    }

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    min-height: 48px;
    color: var(--text-primary);
    background: #fff;
    transition: .2s;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary-500);
        box-shadow: 0 0 0 3px rgba(208,106,0,.15);
    }

.content-title-icon {
    color: var(--orange-500);
}

.content-key-badge {
    background: var(--orange-50);
    color: var(--orange-700);
}

.content-edit-btn {
    background: var(--orange-500);
    border-color: var(--orange-500);
    color: #fff;
    font-weight: 600;
    transition: .25s;
}

    .content-edit-btn:hover,
    .content-edit-btn:focus {
        background: var(--orange-600);
        border-color: var(--orange-600);
        color: #fff;
        transform: translateY(-1px);
    }

.content-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: var(--orange-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .content-icon i {
        font-size: 28px;
        color: var(--orange-500);
    }

.dashboard-page {
    background: var(--body-bg);
    min-height: 100vh;
    padding-bottom: 40px;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 40px;
    background: linear-gradient(135deg, var(--dark-500), var(--primary-800), var(--primary-500));
    color: #fff;
    box-shadow: 0 25px 60px rgba(4,16,29,.20);
}

    .dashboard-hero::before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        background: rgba(255,255,255,.07);
        border-radius: 50%;
        top: -160px;
        right: -120px;
        filter: blur(20px);
    }

    .dashboard-hero::after {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        background: rgba(250,178,2,.20);
        border-radius: 50%;
        bottom: -120px;
        left: -60px;
        filter: blur(40px);
    }

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    color: #fff !important;
}

.hero-subtitle {
    font-size: 18px;
    opacity: .85;
    position: relative;
    z-index: 2;
}

.hero-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: none;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    color: white;
    transition: .3s;
}

    .hero-btn:hover {
        background: var(--primary-300);
        color: var(--dark-500);
        transform: translateY(-3px);
    }

.hero-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.4);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.stats-card {
    background: #fff;
    border-radius: 22px;
    padding: 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
    transition: .3s;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

    .stats-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }

.stats-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    flex-shrink: 0;
}

.products {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-400));
}

.categories {
    background: linear-gradient(135deg, var(--primary-800), var(--primary-500));
}

.shipments {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-300));
}

.revenue {
    background: linear-gradient(135deg, var(--primary-900), var(--primary-600));
}

.stats-card small {
    color: var(--text-muted);
    font-size: 13px;
}

.stats-card h3 {
    margin: 6px 0;
    color: var(--text-primary);
    font-size: 30px;
    font-weight: 800;
}

.growth {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 40px;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 12px;
    font-weight: 700;
}

.chart-placeholder {
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed var(--border-dark);
    border-radius: 18px;
    background: var(--surface-soft);
}

    .chart-placeholder i {
        font-size: 70px;
        color: var(--primary-500);
        margin-bottom: 20px;
    }

.activity-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.activity-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

    .activity-icon.success {
        background: var(--green-500);
    }

    .activity-icon.warning {
        background: var(--yellow-600);
    }

    .activity-icon.danger {
        background: var(--red-500);
    }

.activity-item small {
    display: block;
    color: var(--text-muted);
}

.product-card {
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    background: #fff;
    transition: .3s;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

    .product-card img {
        width: 70px;
        height: 70px;
        border-radius: 14px;
        object-fit: cover;
    }

    .product-card h6 {
        margin: 0;
        font-weight: 700;
    }

    .product-card span {
        display: block;
        color: var(--text-muted);
        margin: 4px 0;
    }

    .product-card strong {
        color: var(--primary-500);
        font-size: 18px;
    }

.dashboard-footer,
.footer {
    background: #fff;
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.validation-summary,
.alert-danger {
    background: var(--red-50);
    border: 1px solid var(--red-100);
    color: var(--red-600);
    border-radius: 10px;
}

.alert-success {
    background: var(--green-50);
    border: 1px solid var(--green-100);
    color: var(--green-800);
}

.alert-warning {
    background: var(--yellow-50);
    border: 1px solid var(--yellow-100);
    color: var(--yellow-800);
}

.content-editor-hero {
    background: linear-gradient(135deg, var(--orange-700), var(--orange-500));
}

.content-editor-badge {
    background: var(--dark-500);
    color: var(--orange-300);
}

.content-editor-title {
    color: #fff;
}

.content-editor-subtitle {
    color: #fff;
    opacity: .85;
}

.content-editor-icon {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,.20);
    color: #fff;
}

.content-orange-icon {
    color: var(--orange-500);
}

.content-editor-header {
    background: var(--orange-600);
}

.content-save-btn {
    background: var(--orange-500);
    border-color: var(--orange-500);
    color: #fff;
}

    .content-save-btn:hover,
    .content-save-btn:focus {
        background: var(--orange-600);
        border-color: var(--orange-600);
        color: #fff;
        transform: translateY(-1px);
    }

.switch {
    position: relative;
    display: inline-block;
    width: 55px;
    height: 30px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--neutral-200);
    transition: .4s;
    border-radius: 30px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
        background-color: #fff;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: var(--orange-500);
}

    input:checked + .slider:before {
        transform: translateX(25px);
    }

#customersGrid .gridjs-th,
#customersGrid .gridjs-td {
    font-size: 15px;
}

    #customersGrid .gridjs-td .btn {
        font-size: 13px;
    }

.modal-backdrop.show {
    background: rgba(255,255,255,.08) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    opacity: 1 !important;
}

.modal .modal-footer {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

    .modal .modal-footer .close-btn,
    .modal .modal-footer .save-btn {
        width: auto;
        min-width: 0;
        flex: 1 1 0;
        white-space: nowrap;
    }

#compensationModal .compensation-footer .close-btn,
#compensationModal .compensation-footer .save-btn {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    white-space: nowrap;
}

.language-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: var(--neutral-50);
    color: var(--neutral-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .25s;
}

    .language-btn:hover {
        background: var(--primary-500);
        color: #fff;
        transform: translateY(-2px);
    }

html[dir="rtl"] .main {
    margin-left: 0;
    margin-right: 260px;
}

html[dir="rtl"] .wrapper.collapsed .main {
    margin-left: 0;
    margin-right: 0;
}

html[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    transform: none;
}

html[dir="rtl"] .wrapper.collapsed .sidebar {
    transform: translateX(100%);
}

html[dir="rtl"] .sidebar-menu a:hover {
    transform: translateX(-5px);
}

html[dir="rtl"] .notification-dot {
    right: auto;
    left: 4px;
}

html[dir="rtl"] .gridjs-container,
html[dir="rtl"] .gridjs-wrapper,
html[dir="rtl"] .gridjs-table {
    direction: rtl;
}

html[dir="rtl"] .gridjs-th,
html[dir="rtl"] .gridjs-td {
    text-align: center !important;
}

html[dir="rtl"] .gridjs-th-content {
    direction: rtl;
}

html[dir="rtl"] .gridjs-search {
    direction: rtl;
}

html[dir="rtl"] .gridjs-search-input {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .gridjs-pagination {
    direction: rtl;
}

@media (max-width: 768px) {

    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        right: auto;
        width: 260px;
        height: 100vh;
        transform: none;
        transition: left .3s ease, right .3s ease;
    }

    .wrapper.sidebar-open .sidebar {
        left: 0;
        right: auto;
    }

    .main {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .topbar {
        height: 60px;
        padding: 0 15px;
        gap: 10px;
    }

        .topbar > div:first-child {
            min-width: 0;
            flex: 1;
        }

        .topbar h4 {
            font-size: 18px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

    .topbar-right {
        gap: 8px;
        flex-shrink: 0;
    }

        .topbar-right > .icon-btn {
            width: 38px;
            height: 38px;
            font-size: 14px;
        }

            .topbar-right > .icon-btn:nth-child(1),
            .topbar-right > .icon-btn:nth-child(2) {
                display: none;
            }

    .language-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .profile {
        gap: 0;
    }

        .profile .avatar {
            width: 38px;
            height: 38px;
            font-size: 13px;
        }

        .profile > div:last-child {
            display: none;
        }

    .content {
        padding: 20px;
    }

    .dashboard-hero {
        padding: 28px;
    }

    .hero-title {
        font-size: 32px;
    }

    html[dir="rtl"] .sidebar {
        left: auto;
        right: -260px;
        transform: none;
    }

    html[dir="rtl"] .wrapper.sidebar-open .sidebar {
        left: auto;
        right: 0;
        transform: none;
    }

    html[dir="rtl"] .main {
        margin-left: 0;
        margin-right: 0;
    }

    html[dir="rtl"] .sidebar-menu a:hover {
        transform: translateX(-5px);
    }
}

@media (max-width: 576px) {

    .topbar {
        height: 56px;
        padding: 0 12px;
    }

        .topbar h4 {
            font-size: 16px;
        }

    .topbar-right {
        gap: 6px;
    }

        .topbar-right > .icon-btn {
            width: 34px;
            height: 34px;
            font-size: 13px;
        }

    .language-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .profile .avatar {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .content {
        padding: 15px;
    }

    .dashboard-hero {
        border-radius: 20px;
        padding: 24px;
    }

    .hero-title {
        font-size: 28px;
    }

    .stats-card {
        padding: 20px;
    }

    .stats-icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .page-title {
        font-size: 24px;
    }
}
@media (max-width: 768px) {

    .btn-group,
    .actions,
    .action-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
    }

        .btn-group .btn,
        .actions .btn,
        .action-buttons .btn {
            width: auto;
            flex: 0 0 auto;
            white-space: nowrap;
        }
}
.modal .modal-dialog {
    width: 92%;
    margin: 1.5rem auto;
}

.modal .modal-content,
#detailsModal .modal-content,
#editModal .modal-content,
#createModal .modal-content,
#deleteModal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
    transform: none;
}

.modal .modal-header,
.details-header,
#detailsModal .modal-header,
#editModal .modal-header,
#createModal .modal-header,
#deleteModal .modal-header {
    background: linear-gradient(135deg, #092546, #0F325D);
    color: #fff;
    border: none;
    border-bottom: 3px solid #FCCB55;
    padding: 18px 24px;
}

    .modal .modal-title,
    .details-header .modal-title,
    #detailsModal .modal-title,
    #editModal .modal-title,
    #createModal .modal-title,
    #deleteModal .modal-title {
        color: #fff;
        font-size: 20px;
        font-weight: 700;
        margin: 0;
    }

    .modal .btn-close,
    .details-header .btn-close,
    #detailsModal .btn-close,
    #editModal .btn-close,
    #createModal .btn-close,
    #deleteModal .btn-close {
        filter: invert(1);
        opacity: 1;
    }

.modal .modal-body,
#detailsModal .modal-body,
#editModal .modal-body,
#createModal .modal-body,
#deleteModal .modal-body {
    padding: 24px;
    background: #fafafa;
}

.modal .modal-footer,
#detailsModal .modal-footer,
#editModal .modal-footer,
#createModal .modal-footer,
#deleteModal .modal-footer {
    background: #fff;
    border-top: 1px solid #f1f1f1;
    padding: 18px 24px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

    .modal .modal-footer .close-btn,
    .modal .modal-footer .save-btn,
    .modal .modal-footer .delete-btn,
    #detailsModal .modal-footer .close-btn,
    #editModal .modal-footer .close-btn,
    #editModal .modal-footer .save-btn,
    #createModal .modal-footer .close-btn,
    #createModal .modal-footer .save-btn,
    #deleteModal .modal-footer .close-btn,
    #deleteModal .modal-footer .delete-btn {
        width: 220px;
        height: 48px;
        border: none;
        border-radius: 50px;
        font-weight: 700;
        transition: .3s;
    }

    .modal .modal-footer .close-btn {
        background: #092546;
        color: #fff;
    }

        .modal .modal-footer .close-btn:hover {
            background: #04101D;
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 12px 25px rgba(9, 37, 70, .25);
        }

    .modal .modal-footer .save-btn {
        background: linear-gradient(135deg, #D06A00, #BD6000);
        color: #fff;
    }

        .modal .modal-footer .save-btn:hover {
            background: linear-gradient(135deg, #BD6000, #944B00);
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 12px 25px rgba(208, 106, 0, .30);
        }

    .modal .modal-footer .delete-btn {
        background: linear-gradient(135deg, #D00416, #B10213);
        color: #fff;
    }

        .modal .modal-footer .delete-btn:hover {
            background: linear-gradient(135deg, #B10213, #92010F);
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 12px 25px rgba(208, 4, 22, .30);
        }

.modal .form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.modal .form-control,
.modal .form-select {
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    min-height: 48px;
    color: var(--text-primary);
    background: #fff;
    transition: .2s;
}

    .modal .form-control:focus,
    .modal .form-select:focus {
        border-color: var(--primary-500);
        box-shadow: 0 0 0 3px rgba(208, 106, 0, .15);
    }

.customer-modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
}

    .customer-modal-content .details-header {
        background: linear-gradient(135deg, #092546, #0F325D);
        color: #fff;
        border-bottom: 3px solid #FCCB55;
        padding: 18px 24px;
    }

.customer-modal-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .customer-modal-heading > i {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(252, 203, 85, .18);
        color: #FCCB55;
        font-size: 18px;
        flex-shrink: 0;
    }

.customer-modal-content .modal-body {
    background: #fafafa;
    padding: 24px;
}

.customer-modal-content .modal-footer {
    background: #fff;
    border-top: 1px solid #f1f1f1;
    padding: 18px 24px;
}

#detailsModal .modal-dialog {
    max-width: 760px;
}

#editModal .modal-dialog {
    max-width: 900px;
}

#createModal .modal-dialog {
    max-width: 900px;
}

#deleteModal .modal-dialog {
    max-width: 520px;
}

#compensationModal .modal-dialog,
#changePasswordModal .modal-dialog {
    max-width: 600px;
}

#walletTransactionsModal .modal-dialog {
    max-width: 1100px;
}

#deleteAccountModal .modal-dialog {
    max-width: 600px;
}

@media (max-width: 768px) {

    .modal .modal-dialog {
        width: 94%;
        margin: .75rem auto;
    }

    .modal .modal-header,
    .details-header,
    #detailsModal .modal-header,
    #editModal .modal-header,
    #createModal .modal-header,
    #deleteModal .modal-header {
        padding: 16px 18px;
    }

    .modal .modal-body,
    #detailsModal .modal-body,
    #editModal .modal-body,
    #createModal .modal-body,
    #deleteModal .modal-body {
        padding: 18px;
    }

    .modal .modal-footer,
    #detailsModal .modal-footer,
    #editModal .modal-footer,
    #createModal .modal-footer,
    #deleteModal .modal-footer {
        padding: 14px 18px;
    }

        .modal .modal-footer .close-btn,
        .modal .modal-footer .save-btn,
        .modal .modal-footer .delete-btn,
        #detailsModal .modal-footer .close-btn,
        #editModal .modal-footer .close-btn,
        #editModal .modal-footer .save-btn,
        #createModal .modal-footer .close-btn,
        #createModal .modal-footer .save-btn,
        #deleteModal .modal-footer .close-btn,
        #deleteModal .modal-footer .delete-btn {
            width: auto;
            min-width: 0;
            flex: 1 1 0;
            height: 44px;
            font-size: 13px;
            white-space: nowrap;
        }

    .customer-modal-heading > i {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .modal .modal-title,
    .details-header .modal-title,
    #detailsModal .modal-title,
    #editModal .modal-title,
    #createModal .modal-title,
    #deleteModal .modal-title {
        font-size: 17px;
    }
}

@media (max-width: 576px) {

    .modal .modal-dialog {
        width: 96%;
        margin: .5rem auto;
    }

    .modal .modal-header,
    .details-header {
        padding: 14px 16px;
    }

    .modal .modal-body {
        padding: 16px;
    }

    .modal .modal-footer {
        padding: 12px 16px;
        gap: 8px;
    }

    .customer-modal-heading {
        gap: 9px;
    }

        .customer-modal-heading > i {
            width: 34px;
            height: 34px;
            font-size: 14px;
        }

    .modal .modal-title,
    .details-header .modal-title {
        font-size: 16px;
    }

    .modal .modal-footer .close-btn,
    .modal .modal-footer .save-btn,
    .modal .modal-footer .delete-btn {
        height: 42px;
        font-size: 12px;
    }
}

html[dir="rtl"] .customer-modal-heading {
    flex-direction: row;
}

html[dir="rtl"] .modal .modal-footer {
    justify-content: flex-start;
}

html[dir="rtl"] .modal .modal-header {
    direction: rtl;
}
.language-switcher .language-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--neutral-50);
    color: var(--neutral-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s ease;
}

    .language-switcher .language-btn i {
        font-size: 17px;
    }

    .language-switcher .language-btn:hover {
        background: var(--primary-500);
        color: #fff;
        transform: translateY(-2px);
    }

    .language-switcher .language-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(208, 106, 0, .15);
    }
.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.notification-badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #D00416;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}