a:hover {
    cursor: pointer !important;
}

.pec-form-select {
    background-color: var(--bs-body-bg);
    background-image: var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon,none);
    background-position: right .75rem center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    color: var(--bs-body-color);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    padding: .375rem 2.25rem .375rem .75rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    padding-left: 0.75rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.loaderF, .loaderF::after {
    border-radius: 50%;
    box-sizing: border-box;
}

.loaderF {
    animation: loader4anim1 1s linear infinite;
    border: 1px solid var(--pecpool-theme-accent-1);
    display: inline-block;
    height: 16px;
    position: relative;
    width: 16px;
}

    .loaderF::after {
        border: 3px solid;
        border-top-color: currentcolor;
        border-right-color: currentcolor;
        border-bottom-color: currentcolor;
        border-left-color: currentcolor;
        border-color: var(--pecpool-theme-1) transparent;
        content: "";
        height: 8px;
        left: 50%;
        position: absolute;
        top: 50%;
        transform: translate(-50%,-50%);
        width: 8px;
    }

    .loaderF, .loaderF::after {
        border-radius: 50%;
        box-sizing: border-box;
    }

.pec-text-middle {
    vertical-align: middle;
}

.minheight-100 {
    min-height: 100px !important;
}

.minheight-200 {
    min-height: 200px !important;
}

#peloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.7);
}

.peheight-500 {
    height: 500px;
}
/* Panel language and direction settings */
body.pecpool-fa,
body.pecpool-fa input,
body.pecpool-fa button,
body.pecpool-fa select,
body.pecpool-fa textarea,
body.pecpool-fa .dropdown-menu,
body.pecpool-fa .card,
body.pecpool-fa .modal-content {
    font-family: "Vazirmatn", "Noto Sans Arabic", "Tahoma", "Segoe UI", sans-serif !important;
}

html[dir="rtl"] body.pecpool-fa {
    text-align: right;
}

html[dir="rtl"] body.pecpool-fa .pecpool-content.has-sidebar,
html[dir="rtl"] body.pecpool-fa .pecpool-footer.has-pecpool-sidebar {
    direction: rtl;
}

html[dir="rtl"] body.pecpool-fa .dropdown-menu-end {
    right: auto !important;
    left: 0 !important;
}

html[dir="rtl"] body.pecpool-fa .form-floating > label {
    right: 0;
    left: auto;
}

html[dir="rtl"] body.pecpool-fa .form-floating > .form-control,
html[dir="rtl"] body.pecpool-fa .form-floating > .form-select {
    text-align: right;
}

html[dir="rtl"] body.pecpool-fa .pecpool-nav-pills .nav-link,
html[dir="rtl"] body.pecpool-fa .dropdown-item,
html[dir="rtl"] body.pecpool-fa .menu-name,
html[dir="rtl"] body.pecpool-fa .nav-text {
    text-align: right;
}

/* Extra RTL polish for Persian panel */
html[dir="rtl"] body.pecpool-fa,
html[dir="rtl"] body.pecpool-fa .modal,
html[dir="rtl"] body.pecpool-fa .dropdown-menu,
html[dir="rtl"] body.pecpool-fa .offcanvas,
html[dir="rtl"] body.pecpool-fa .swal-modal,
html[dir="rtl"] body.pecpool-fa .dataTables_wrapper,
html[dir="rtl"] body.pecpool-fa .dt-container {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] body.pecpool-fa .text-start,
html[dir="rtl"] body.pecpool-fa .text-left,
html[dir="rtl"] body.pecpool-fa .text-md-start,
html[dir="rtl"] body.pecpool-fa .text-lg-start,
html[dir="rtl"] body.pecpool-fa .text-xl-start {
    text-align: right !important;
}

html[dir="rtl"] body.pecpool-fa .text-end,
html[dir="rtl"] body.pecpool-fa .text-right,
html[dir="rtl"] body.pecpool-fa .text-md-end,
html[dir="rtl"] body.pecpool-fa .text-lg-end,
html[dir="rtl"] body.pecpool-fa .text-xl-end {
    text-align: left !important;
}

html[dir="rtl"] body.pecpool-fa .float-start { float: right !important; }
html[dir="rtl"] body.pecpool-fa .float-end { float: left !important; }

html[dir="rtl"] body.pecpool-fa .ms-1 { margin-left: 0 !important; margin-right: .25rem !important; }
html[dir="rtl"] body.pecpool-fa .ms-2 { margin-left: 0 !important; margin-right: .5rem !important; }
html[dir="rtl"] body.pecpool-fa .ms-3 { margin-left: 0 !important; margin-right: 1rem !important; }
html[dir="rtl"] body.pecpool-fa .ms-4 { margin-left: 0 !important; margin-right: 1.5rem !important; }
html[dir="rtl"] body.pecpool-fa .ms-5 { margin-left: 0 !important; margin-right: 3rem !important; }
html[dir="rtl"] body.pecpool-fa .me-1 { margin-right: 0 !important; margin-left: .25rem !important; }
html[dir="rtl"] body.pecpool-fa .me-2 { margin-right: 0 !important; margin-left: .5rem !important; }
html[dir="rtl"] body.pecpool-fa .me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
html[dir="rtl"] body.pecpool-fa .me-4 { margin-right: 0 !important; margin-left: 1.5rem !important; }
html[dir="rtl"] body.pecpool-fa .me-5 { margin-right: 0 !important; margin-left: 3rem !important; }
html[dir="rtl"] body.pecpool-fa .ps-1 { padding-left: 0 !important; padding-right: .25rem !important; }
html[dir="rtl"] body.pecpool-fa .ps-2 { padding-left: 0 !important; padding-right: .5rem !important; }
html[dir="rtl"] body.pecpool-fa .ps-3 { padding-left: 0 !important; padding-right: 1rem !important; }
html[dir="rtl"] body.pecpool-fa .ps-4 { padding-left: 0 !important; padding-right: 1.5rem !important; }
html[dir="rtl"] body.pecpool-fa .ps-5 { padding-left: 0 !important; padding-right: 3rem !important; }
html[dir="rtl"] body.pecpool-fa .pe-1 { padding-right: 0 !important; padding-left: .25rem !important; }
html[dir="rtl"] body.pecpool-fa .pe-2 { padding-right: 0 !important; padding-left: .5rem !important; }
html[dir="rtl"] body.pecpool-fa .pe-3 { padding-right: 0 !important; padding-left: 1rem !important; }
html[dir="rtl"] body.pecpool-fa .pe-4 { padding-right: 0 !important; padding-left: 1.5rem !important; }
html[dir="rtl"] body.pecpool-fa .pe-5 { padding-right: 0 !important; padding-left: 3rem !important; }

html[dir="rtl"] body.pecpool-fa .start-0 { left: auto !important; right: 0 !important; }
html[dir="rtl"] body.pecpool-fa .end-0 { right: auto !important; left: 0 !important; }

html[dir="rtl"] body.pecpool-fa .form-check {
    padding-left: 0;
    padding-right: 1.5em;
    text-align: right;
}

html[dir="rtl"] body.pecpool-fa .form-check .form-check-input {
    float: right;
    margin-left: 0;
    margin-right: -1.5em;
}

html[dir="rtl"] body.pecpool-fa .form-floating > label {
    right: 0;
    left: auto;
    transform-origin: 100% 0;
}

html[dir="rtl"] body.pecpool-fa .form-select,
html[dir="rtl"] body.pecpool-fa .pec-form-select {
    background-position: left .75rem center;
    padding-right: .75rem;
    padding-left: 2.25rem;
}

html[dir="rtl"] body.pecpool-fa .alert-icon-left,
html[dir="rtl"] body.pecpool-fa .alert-arrow-left {
    text-align: right;
}

html[dir="rtl"] body.pecpool-fa table.dataTable thead th,
html[dir="rtl"] body.pecpool-fa table.dataTable tbody td,
html[dir="rtl"] body.pecpool-fa table.dataTable tfoot th {
    text-align: right;
}

html[dir="rtl"] body.pecpool-fa .dataTables_filter,
html[dir="rtl"] body.pecpool-fa .dt-search {
    text-align: left !important;
}

html[dir="rtl"] body.pecpool-fa .dataTables_length,
html[dir="rtl"] body.pecpool-fa .dt-length,
html[dir="rtl"] body.pecpool-fa .dataTables_info,
html[dir="rtl"] body.pecpool-fa .dt-info {
    text-align: right !important;
}

html[dir="rtl"] body.pecpool-fa .pagination {
    padding-right: 0;
}

html[dir="rtl"] body.pecpool-fa .swal-modal,
html[dir="rtl"] body.pecpool-fa .swal-title,
html[dir="rtl"] body.pecpool-fa .swal-text {
    font-family: "Vazirmatn", "Noto Sans Arabic", "Tahoma", "Segoe UI", sans-serif !important;
    text-align: right;
}

html[dir="rtl"] body.pecpool-fa .btn-close {
    margin-left: 0 !important;
    margin-right: auto !important;
}


/* v4 Persian RTL polish for remaining views */
html[dir="rtl"] body.pecpool-fa .pecpool-content.has-sidebar {
    padding-bottom: 5.5rem;
}

@media (min-width: 992px) {
    html[dir="rtl"] body.pecpool-fa .pecpool-content.has-sidebar {
        padding-bottom: 1.5rem;
    }
}

html[dir="rtl"] body.pecpool-fa .pec-ltr-value,
html[dir="rtl"] body.pecpool-fa input.pec-ltr-value,
html[dir="rtl"] body.pecpool-fa textarea.pec-ltr-value {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext;
    font-family: "Roboto", "Segoe UI", Tahoma, sans-serif !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-nav-pills .nav-link {
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: .75rem;
}

html[dir="rtl"] body.pecpool-fa .pecpool-nav-pills .nav-link .col {
    text-align: right !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-nav-pills .nav-link .avatar.icon,
html[dir="rtl"] body.pecpool-fa .pecpool-nav-pills .nav-link .icon {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 auto;
}

html[dir="rtl"] body.pecpool-fa .form-floating.input-group > label {
    right: 0;
    left: auto;
    z-index: 5;
    width: auto;
    max-width: calc(100% - 4.5rem);
    transform-origin: 100% 0;
}

html[dir="rtl"] body.pecpool-fa .form-floating.input-group > .form-control {
    text-align: right;
}

html[dir="rtl"] body.pecpool-fa .form-floating.input-group > .btn {
    z-index: 6;
}

html[dir="rtl"] body.pecpool-fa .form-floating.input-group > .form-control.pec-ltr-value {
    text-align: left !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-table-actions a,
html[dir="rtl"] body.pecpool-fa table.dataTable .pecpool-table-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    margin: 0 2px;
}

html[dir="rtl"] body.pecpool-fa table.dataTable th,
html[dir="rtl"] body.pecpool-fa table.dataTable td {
    vertical-align: middle;
}

html[dir="rtl"] body.pecpool-fa table.dataTable thead .sorting:before,
html[dir="rtl"] body.pecpool-fa table.dataTable thead .sorting:after,
html[dir="rtl"] body.pecpool-fa table.dataTable thead .sorting_asc:before,
html[dir="rtl"] body.pecpool-fa table.dataTable thead .sorting_asc:after,
html[dir="rtl"] body.pecpool-fa table.dataTable thead .sorting_desc:before,
html[dir="rtl"] body.pecpool-fa table.dataTable thead .sorting_desc:after {
    left: .5rem;
    right: auto;
}

html[dir="rtl"] body.pecpool-fa .input-group.pecpool-copy-group .btn {
    border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius) !important;
}

html[dir="rtl"] body.pecpool-fa .input-group.pecpool-copy-group .form-control {
    border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0 !important;
}

html[dir="rtl"] body.pecpool-fa .modal-header .modal-title {
    text-align: right;
    width: 100%;
}


html[dir="rtl"] body.pecpool-fa .form-floating > label {
    text-align: right !important;
    padding-right: .75rem;
    padding-left: .75rem;
}

html[dir="rtl"] body.pecpool-fa .form-floating > .form-control:not(.pec-ltr-value) {
    text-align: right !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-transfer-summary {
    text-align: left !important;
}

/* v5 final Persian RTL fixes: mobile footer, footer padding, tables and 2FA/input groups */
html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer {
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: var(--pecpool-sidebar-width) !important;
}

html[dir="rtl"] body.pecpool-fa.pecpool-sidebar-iconic .pecpool-mobile-footer,
html[dir="rtl"] body.pecpool-fa .pecpool-sidebar-iconic .pecpool-mobile-footer {
    margin-left: 0 !important;
    margin-right: var(--pecpool-sidebar-iconic-width) !important;
}

html[dir="rtl"] body.pecpool-fa.sidebar-close .pecpool-mobile-footer,
html[dir="rtl"] body.pecpool-fa.pecpool-sidebar-iconic.sidebar-close .pecpool-mobile-footer {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 991.98px) {
    html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .container {
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: .75rem !important;
    padding-right: .75rem !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav {
    margin-left: 0 !important;
    margin-right: auto !important;
    direction: rtl;
}

html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-item .nav-link {
    padding-top: .2rem !important;
    padding-bottom: .2rem !important;
    text-align: center !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-item .nav-link > span {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-item .nav-link i,
html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-item .nav-link svg {
    margin: 0 auto 2px !important;
    display: block !important;
    clear: none !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-item .nav-link .nav-text {
    display: block !important;
    line-height: 1.15 !important;
    text-align: center !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-footer.has-pecpool-sidebar {
    padding-left: 1rem !important;
    padding-right: var(--pecpool-sidebar-width) !important;
}

html[dir="rtl"] body.pecpool-fa.pecpool-sidebar-iconic .pecpool-footer.has-pecpool-sidebar {
    padding-left: 1rem !important;
    padding-right: var(--pecpool-sidebar-iconic-width) !important;
}

html[dir="rtl"] body.pecpool-fa.sidebar-close .pecpool-footer.has-pecpool-sidebar {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-footer.has-pecpool-sidebar .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-footer .nav {
    padding-right: 0 !important;
    padding-left: 0 !important;
    gap: .35rem;
}

html[dir="rtl"] body.pecpool-fa .form-check.form-switch {
    display: inline-flex !important;
    align-items: center !important;
    gap: .5rem !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

html[dir="rtl"] body.pecpool-fa .form-check.form-switch .form-check-input {
    float: none !important;
    margin: 0 !important;
    flex: 0 0 auto;
}

html[dir="rtl"] body.pecpool-fa .form-check.form-switch .form-check-label {
    margin: 0 !important;
    white-space: nowrap;
}

html[dir="rtl"] body.pecpool-fa .form-floating.input-group,
html[dir="rtl"] body.pecpool-fa .input-group.pecpool-rtl-action-group {
    direction: rtl;
}

html[dir="rtl"] body.pecpool-fa .form-floating.input-group > .btn,
html[dir="rtl"] body.pecpool-fa .input-group.pecpool-rtl-action-group > .btn {
    border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius) !important;
    margin-right: -1px !important;
    margin-left: 0 !important;
    min-width: 4rem;
}

html[dir="rtl"] body.pecpool-fa .form-floating.input-group > .form-control:not(.pec-ltr-value),
html[dir="rtl"] body.pecpool-fa .input-group.pecpool-rtl-action-group > .form-control:not(.pec-ltr-value) {
    border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0 !important;
    text-align: right !important;
}

html[dir="rtl"] body.pecpool-fa .form-floating.input-group > .form-control.pec-ltr-value,
html[dir="rtl"] body.pecpool-fa .input-group.pecpool-rtl-action-group > .form-control.pec-ltr-value {
    border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0 !important;
    text-align: left !important;
}

html[dir="rtl"] body.pecpool-fa .form-floating.input-group > label {
    right: .35rem !important;
    left: auto !important;
    padding-right: .75rem !important;
    padding-left: .75rem !important;
    max-width: calc(100% - 5rem) !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child,
html[dir="rtl"] body.pecpool-fa table.dataTable tbody td:first-child,
html[dir="rtl"] body.pecpool-fa table.dataTable tfoot th:first-child,
html[dir="rtl"] body.pecpool-fa .pec-row-number {
    text-align: center !important;
    width: 54px !important;
    min-width: 54px !important;
    max-width: 70px !important;
    padding-left: .5rem !important;
    padding-right: .5rem !important;
    white-space: nowrap !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting_asc,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting_desc {
    padding-left: .5rem !important;
    padding-right: .5rem !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting:before,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting:after,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting_asc:before,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting_asc:after,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting_desc:before,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting_desc:after {
    display: none !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable thead th:not(:first-child).sorting,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:not(:first-child).sorting_asc,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:not(:first-child).sorting_desc {
    padding-left: 1.75rem !important;
    padding-right: .75rem !important;
}



/* v6 exact RTL/LTR polish: keep tables in original LTR column order, fix mobile nav centering, profile tabs, and LTR floating input-groups */
html[dir="rtl"] body.pecpool-fa table.table,
html[dir="rtl"] body.pecpool-fa table.dataTable,
html[dir="rtl"] body.pecpool-fa .dt-scroll-head table,
html[dir="rtl"] body.pecpool-fa .dt-scroll-body table,
html[dir="rtl"] body.pecpool-fa .dataTables_scrollHead table,
html[dir="rtl"] body.pecpool-fa .dataTables_scrollBody table {
    direction: ltr !important;
}

html[dir="rtl"] body.pecpool-fa table.table th,
html[dir="rtl"] body.pecpool-fa table.table td,
html[dir="rtl"] body.pecpool-fa table.dataTable th,
html[dir="rtl"] body.pecpool-fa table.dataTable td {
    unicode-bidi: plaintext;
}

html[dir="rtl"] body.pecpool-fa table.dataTable thead th,
html[dir="rtl"] body.pecpool-fa table.dataTable tbody td,
html[dir="rtl"] body.pecpool-fa table.dataTable tfoot th {
    text-align: center !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child .dt-column-order,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting:before,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting:after,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting_asc:before,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting_asc:after,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting_desc:before,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting_desc:after {
    display: none !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child,
html[dir="rtl"] body.pecpool-fa table.dataTable tbody td:first-child,
html[dir="rtl"] body.pecpool-fa table.dataTable tfoot th:first-child {
    text-align: center !important;
    padding-left: .75rem !important;
    padding-right: .75rem !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable tbody tr > *:first-child {
    border-top-left-radius: var(--bs-border-radius, .375rem) !important;
    border-bottom-left-radius: var(--bs-border-radius, .375rem) !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable tbody tr > *:last-child {
    border-top-right-radius: var(--bs-border-radius, .375rem) !important;
    border-bottom-right-radius: var(--bs-border-radius, .375rem) !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable thead > tr > th.dt-orderable-asc,
html[dir="rtl"] body.pecpool-fa table.dataTable thead > tr > th.dt-orderable-desc,
html[dir="rtl"] body.pecpool-fa table.dataTable thead > tr > th.dt-ordering-asc,
html[dir="rtl"] body.pecpool-fa table.dataTable thead > tr > th.dt-ordering-desc {
    padding-left: .75rem !important;
    padding-right: 1.75rem !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable thead > tr > th span.dt-column-order {
    left: auto !important;
    right: .35rem !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav,
html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-item,
html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-link {
    direction: ltr !important;
    text-align: center !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-link > span {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    text-align: center !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-link i,
html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-link svg,
html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-link .nav-text {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-nav-pills .nav-link {
    direction: rtl !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: right !important;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
    gap: 0 !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-nav-pills .nav-link .avatar.icon,
html[dir="rtl"] body.pecpool-fa .pecpool-nav-pills .nav-link > .icon,
html[dir="rtl"] body.pecpool-fa .pecpool-nav-pills .nav-link > .avatar {
    order: 0 !important;
    margin-right: 0 !important;
    margin-left: .75rem !important;
    flex: 0 0 auto !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-nav-pills .nav-link .col {
    order: 1 !important;
    text-align: right !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-nav-pills .nav-link .h6,
html[dir="rtl"] body.pecpool-fa .pecpool-nav-pills .nav-link .small,
html[dir="rtl"] body.pecpool-fa .pecpool-nav-pills .nav-link p {
    text-align: right !important;
}

html[dir="ltr"] body .form-floating.input-group > label,
html[dir="ltr"] body .input-group.form-floating > label {
    left: .35rem !important;
    right: auto !important;
    z-index: 6 !important;
    width: auto !important;
    max-width: calc(100% - 5rem) !important;
    padding-left: .75rem !important;
    padding-right: .75rem !important;
    color: var(--bs-secondary-color, #6c757d) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    transform-origin: 0 0 !important;
}

html[dir="ltr"] body .form-floating.input-group > .form-control:focus ~ label,
html[dir="ltr"] body .form-floating.input-group > .form-control:not(:placeholder-shown) ~ label,
html[dir="ltr"] body .input-group.form-floating > .form-control:focus ~ label,
html[dir="ltr"] body .input-group.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--bs-secondary-color, #6c757d) !important;
    opacity: .9 !important;
    visibility: visible !important;
}

html[dir="ltr"] body .form-floating.input-group > .btn,
html[dir="ltr"] body .input-group.form-floating > .btn {
    z-index: 5 !important;
}

/* v7 final correction: keep Persian tables RTL; only fix row-end background/rounding. Keep bottom footer background left, but center RTL menu items. */
html[dir="rtl"] body.pecpool-fa table.table,
html[dir="rtl"] body.pecpool-fa table.dataTable,
html[dir="rtl"] body.pecpool-fa .dt-scroll-head table,
html[dir="rtl"] body.pecpool-fa .dt-scroll-body table,
html[dir="rtl"] body.pecpool-fa .dataTables_scrollHead table,
html[dir="rtl"] body.pecpool-fa .dataTables_scrollBody table {
    direction: rtl !important;
}

html[dir="rtl"] body.pecpool-fa table.table th,
html[dir="rtl"] body.pecpool-fa table.table td,
html[dir="rtl"] body.pecpool-fa table.dataTable th,
html[dir="rtl"] body.pecpool-fa table.dataTable td {
    unicode-bidi: plaintext;
}

html[dir="rtl"] body.pecpool-fa table.dataTable thead th,
html[dir="rtl"] body.pecpool-fa table.dataTable tbody td,
html[dir="rtl"] body.pecpool-fa table.dataTable tfoot th {
    text-align: center !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable tbody tr > *:first-child {
    border-top-right-radius: var(--bs-border-radius, .375rem) !important;
    border-bottom-right-radius: var(--bs-border-radius, .375rem) !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable tbody tr > *:last-child {
    border-top-left-radius: var(--bs-border-radius, .375rem) !important;
    border-bottom-left-radius: var(--bs-border-radius, .375rem) !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable tbody tr:hover > *:first-child,
html[dir="rtl"] body.pecpool-fa table.dataTable tbody tr.selected > *:first-child,
html[dir="rtl"] body.pecpool-fa table.dataTable tbody tr.table-active > *:first-child {
    border-top-right-radius: var(--bs-border-radius, .375rem) !important;
    border-bottom-right-radius: var(--bs-border-radius, .375rem) !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable tbody tr:hover > *:last-child,
html[dir="rtl"] body.pecpool-fa table.dataTable tbody tr.selected > *:last-child,
html[dir="rtl"] body.pecpool-fa table.dataTable tbody tr.table-active > *:last-child {
    border-top-left-radius: var(--bs-border-radius, .375rem) !important;
    border-bottom-left-radius: var(--bs-border-radius, .375rem) !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable thead > tr > th.dt-orderable-asc,
html[dir="rtl"] body.pecpool-fa table.dataTable thead > tr > th.dt-orderable-desc,
html[dir="rtl"] body.pecpool-fa table.dataTable thead > tr > th.dt-ordering-asc,
html[dir="rtl"] body.pecpool-fa table.dataTable thead > tr > th.dt-ordering-desc {
    padding-left: 1.75rem !important;
    padding-right: .75rem !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable thead > tr > th span.dt-column-order {
    left: .35rem !important;
    right: auto !important;
}

html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child .dt-column-order,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting:before,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting:after,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting_asc:before,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting_asc:after,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting_desc:before,
html[dir="rtl"] body.pecpool-fa table.dataTable thead th:first-child.sorting_desc:after {
    display: none !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .container {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    padding-left: .75rem !important;
    padding-right: .75rem !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav {
    direction: rtl !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
    text-align: center !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-item,
html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-link {
    direction: rtl !important;
    text-align: center !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: .5rem !important;
    padding-right: .5rem !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-link > span {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    width: 100% !important;
    text-align: center !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-link i,
html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-link svg,
html[dir="rtl"] body.pecpool-fa .pecpool-mobile-footer .nav .nav-link .nav-text {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}


/* v8 profile tab RTL spacing: keep the same inside gap on the right side in Persian as the left side in English. */
html[dir="rtl"] body.pecpool-fa .pecpool-profile-tabs {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-profile-tabs .nav-link {
    direction: rtl !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: right !important;
    padding-right: 1.15rem !important;
    padding-left: 1.15rem !important;
    gap: .75rem !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-profile-tabs .nav-link .avatar.icon,
html[dir="rtl"] body.pecpool-fa .pecpool-profile-tabs .nav-link > .avatar,
html[dir="rtl"] body.pecpool-fa .pecpool-profile-tabs .nav-link > .icon {
    order: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-profile-tabs .nav-link .col {
    order: 1 !important;
    text-align: right !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

html[dir="rtl"] body.pecpool-fa .pecpool-profile-tabs .nav-link .h6,
html[dir="rtl"] body.pecpool-fa .pecpool-profile-tabs .nav-link .small,
html[dir="rtl"] body.pecpool-fa .pecpool-profile-tabs .nav-link p {
    text-align: right !important;
}


/* Payout Wallet/TxID copy display: desktop keeps the full value; mobile shows the short value. */
#transferTBL .pec-payout-copy-cell {
    max-width: 100%;
}

#transferTBL .pec-payout-copy-list {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    max-width: 100%;
}

#transferTBL .pec-payout-copy-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    max-width: 100%;
    direction: ltr;
    unicode-bidi: isolate;
}

#transferTBL .pec-payout-copy-value {
    display: inline-block;
    direction: ltr;
    unicode-bidi: plaintext;
    text-align: left;
}

#transferTBL .pec-payout-copy-short {
    display: none;
}

#transferTBL .pec-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    padding: .15rem .45rem;
    border-radius: 999px;
    line-height: 1.35;
    font-size: .72rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

#transferTBL .pec-copy-btn i {
    font-size: .85em;
}

@media (max-width: 767.98px) {
    #transferTBL .pec-payout-copy-list,
    table.dataTable .dtr-data #transferTBL .pec-payout-copy-list,
    table.dataTable .dtr-data .pec-payout-copy-list {
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    #transferTBL .pec-payout-copy-row,
    table.dataTable .dtr-data .pec-payout-copy-row {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    #transferTBL .pec-payout-copy-full,
    table.dataTable .dtr-data .pec-payout-copy-full {
        display: none;
    }

    #transferTBL .pec-payout-copy-short,
    table.dataTable .dtr-data .pec-payout-copy-short {
        display: inline;
    }

    #transferTBL .pec-payout-copy-value,
    table.dataTable .dtr-data .pec-payout-copy-value {
        min-width: 0;
        max-width: calc(100% - 4.75rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #transferTBL .pec-copy-btn,
    table.dataTable .dtr-data .pec-copy-btn {
        padding: .12rem .4rem;
        font-size: .7rem;
    }
}

html[dir="rtl"] body.pecpool-fa #transferTBL .pec-payout-copy-list,
html[dir="rtl"] body.pecpool-fa table.dataTable .dtr-data .pec-payout-copy-list {
    direction: ltr;
}
