@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;500;700;1000&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: cairo;
}

.container {
    padding: 0 20px;
}

.barcode-icon {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
}

.popup_qrcode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.popup_qrcode::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.popup_qrcode-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
}

.qr {
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.qr h3 {
    background: #000000;
    color: #fff;
    padding: 0 10px;
    width: 100%;
    text-align: center;
}

.popup_qrcode-content img {
    width: 200px;
}

/**/

.popup_limit {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.popup_limit::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.popup_limit-content {
    background-color: #fff;
    color: #000;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    text-align: center;
}

.card_limit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.card_limit i {
    font-size: 60px;
    color: orange;
    margin-bottom: 10px;
    background: #ffa5004a;
    outline: 5px solid #ffa50082;
    padding: 6px 30px;
    border-radius: 50%;
}

.card_limit p {
    margin-bottom: 20px;
    text-align: left;
    color: #000;
}

.card_limit button {
    padding: 10px 20px;
    background-color: orange;
    color: #000;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    width: 100%;
}

.card_limit span {
    color: red;
}

/*____________________________________*/
.refresh {
    position: relative;
    display: inline-block;
}

.refresh::after {
    content: attr(data-alt);
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 5px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    pointer-events: none;
}

.refresh:hover::after {
    opacity: 1;
}

.refresh img {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 1s ease-in-out;
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate360 1s ease-in-out;
}


/*__________________*/

.pulse {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #2ccc48;
    cursor: pointer;
    box-shadow: 0 0 0 rgb(44 204 84 / 40%);
    animation: pulse 2s infinite;
}

.fees {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #b9ceff57;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 18px;
}

.fees p, .fees i {
    color: #0094f7;
}

.ss {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.pulse:hover {
    animation: none;
}

@-webkit-keyframes pulse {
    0% {
        -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.4);
    }

    70% {
        -webkit-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);
    }

    100% {
        -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);
    }
}

@keyframes pulse {
    0% {
        -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.4);
        box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.4);
    }

    70% {
        -moz-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);
        box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);
    }

    100% {
        -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);
        box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);
    }
}

/*___________________*/

.orders-table {
    width: 100%;
    margin-top: 20px;
    overflow-x: auto;
}

.orders-table table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.orders-table th,
.orders-table td {
    border: 1px solid #f2f2f2;
    padding: 12px;
    text-align: left;
}

.orders-table th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}

.orders-table td {
    background-color: #fff;
    color: #444;
}

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

.user_info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.detils_user {
    display: flex;
    flex-direction: column;
}

.info_user h3 {
    margin: 0;
    font-size: 23px;
    color: #333;
}

img.user_image, img.seller_user_image {
    outline: 2px solid #00000030;
    padding: 4px;
}

.info_user img {
    width: 16px;
    height: 16px;
    margin-bottom: -3px;
}

.status {
    font-size: 14px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info_user,
.price {
    display: flex;
    align-items: center;
    gap: 5px;
}

.payment-option {
    position: relative;
    padding-left: 20px;
    /* تغيير هذا الرقم لتحديد المسافة بين النص والعلامة */
}

.payment-option:before {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    content: "";
    display: block;
    width: 5px;
    height: 20px;
}

.payment-option.vodafone:before {
    background: red;
}

.payment-option.orange:before {
    background: #f77500;
}

.payment-option.etisalat:before {
    background: #6c9f03;
}

.buy-usdt {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    background-color: #2ccc48;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.buy-usdt:hover {
    background-color: #2ccc48;
    color: #000;
}

.user_info_buy {
    display: flex;
    flex-direction: column;
    gap: 80px;
    width: 100%;
}

.messages_buy, .message_u {
    text-align: center;
    max-width: 90%;
    border: 1px solid #33333338;
    border-radius: 5px;
    position: relative;
    padding: 30px 20px;
}

.messages_buy::before, .message_u::before {
    position: absolute;
    content: "Seller's instructions";
    top: -15px;
    left: 20px;
    background: #d7d7d7;
    border-radius: 5px;
    padding: 0 15px;
    font-weight: 600;
    color: red;
}

/*_________________________________*/

.popup,
.seller_popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 82%);
    z-index: 9999;
}

.popup-content,
.seller_popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 770px;
    overflow: auto;
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 5px;
}

button#closeButton,
#seller_closeButton {
    background-color: #dbdbdb;
    border: 1px solid #a3a3a3;
    padding: 5px 20px;
    border-radius: 4px;
    cursor: pointer;
}

#action {
    background-color: #2ccc48;
    border: 1px solid #00000026;
    padding: 5px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
}

.seller-info-section {
    text-align: left;
    width: 50%;
}

.form-info {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.form-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 50%;
}

.form-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.form-section form {
    display: flex;
    flex-direction: column;
}

.form-section label {
    margin-bottom: 10px;
}

.form-section input[type="number"] {
    padding: 10px 0 10px 50px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 18px;
}

.payment_select {
    margin-top: 10px;
}

.payment_select select {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 10px;
    opacity: 0.8;
}

.form-section input[type="number"]:focus,
.payment_select select:focus {
    outline-color: #FFC107;
}

.action {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.img-user {
    margin-bottom: 20px;
}

.img-user img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.payment-methods {
    margin: 15px 0;
}

input#input2 {
    background: #f7f7f7;
}

.send,
.receive {
    display: flex;
    flex-direction: column;
    position: relative;
}

.send span,
.receive span {
    position: absolute;
    top: 53px;
    left: 10px;
    color: #9393937d;
    border-right: 1px solid #cfcfcf;
    padding-right: 5px;
}

input#willReceive {
    padding: 10px 0 10px 60px;
}

p.error {
    color: red;
    text-align: center;
    margin-top: 10px;
}

/*_________________________*/

/* CSS */
.popup-overlay,
.seller_popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.popup-box,
.seller_popup-box {
    background-color: #212121;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.popup-box h2,
.seller_popup-box h2 {
    margin-top: 0;
    color: #fff;
}

.popup-box p,
.seller_popup-box p {
    color: #fff;
}

.popup-buttons,
.seller_popup-buttons {
    margin-top: 20px;
}

.popup-buttons button,
.seller_popup-buttons button {
    padding: 8px 16px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: cairo;
}

#confirmButton,
#seller_confirm_Button {
    background-color: #4caf50;
    color: #ffffff;
}

#cancelButton,
#seller_cancel_Button {
    background-color: #f44336;
    color: #ffffff;
}

/*__________________________________*/

/* CSS لتحسين تنسيق جدول البيع */
.sell-orders-table {
    margin-top: 20px;
    overflow-x: auto;

}

.sell-orders-table table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sell-orders-table th,
.sell-orders-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f2f2f2;
    border-left: 1px solid #f2f2f2;
}

.sell-orders-table th {
    background-color: #f2f2f2;
}

.sell-orders-table tbody tr:hover {
    background-color: #f5f5f5;
}


.sell-orders-table button {
    padding: 8px 12px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.sell-orders-table button:hover {
    background-color: rgb(109, 0, 0);
}

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

.seller_info_user img {
    width: 16px;
    height: 16px;
    margin-bottom: -3px;
}

.seller_price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.seller_user_limit {
    display: flex;
    flex-direction: column;
    align-items: baseline;
}

.seller_pulse {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #2ccc48;
    cursor: pointer;
    box-shadow: 0 0 0 rgb(44 204 84 / 40%);
    animation: pulse 2s infinite;
}

.seller_pulse:hover {
    animation: none;
}

@-webkit-keyframes pulse {
    0% {
        -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.4);
    }

    70% {
        -webkit-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);
    }

    100% {
        -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);
    }
}

@keyframes pulse {
    0% {
        -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.4);
        box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.4);
    }

    70% {
        -moz-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);
        box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);
    }

    100% {
        -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);
        box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);
    }
}

.seller_status {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

/*_________________________________*/

.seller_Payment_methods {
    position: relative;
    padding-left: 15px;
}

.seller_Payment_methods:before {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    content: "";
    display: block;
    width: 5px;
    height: 20px;
}

.seller_Payment_methods.vodafone:before {
    background: red;
}

.seller_Payment_methods.orange:before {
    background: #f77500;
}

.seller_Payment_methods.etisalat:before {
    background: #6c9f03;
}


/*________________________________*/

/* زر Buy */
#buyButton {
    background-color: transparent;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-family: cairo;
}

/* زر Sell */
#sellButton {
    background-color: transparent;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-family: cairo;
}

/* تنسيق عناصر الزر */
.btn_sell_buy {
    display: flex;
    border: 1px solid #eee;
    width: fit-content;
    padding: 2px;
    gap: 10px;
    border-radius: 4px;
}

/* تحديد حالة النشاط */
#buyButton:hover,
#sellButton:hover {
    opacity: 0.8;
}

/*_____________________________________*/

.seller-popup-user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #ddd;
    padding: 5px;
}

.seller-popup-info-user {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

h3.seller-popup-user-name {
    font-weight: 500;
    font-size: 15px;
}

.seller-popup-status {
    display: flex;
    align-items: center;
    gap: 5px;
}

.seller-popup-price {
    display: flex;
    align-items: center;
    gap: 5px;
}

.seller-popup-price h3 {
    font-size: 16px;
    font-weight: 500;
}

.btn_seller_confirm {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn_seller_confirm button {
    padding: 5px 20px;
    border: navajowhite;
    border-radius: 4px;
}

button#seller_close_Button255 {
    background-color: #dbdbdb;
    border: 1px solid #a3a3a3;
    padding: 5px 20px;
    border-radius: 4px;
    cursor: pointer;
}

button#seller_confirmButton {
    background-color: #F44336;
    border: 1px solid #00000026;
    padding: 5px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
}

.body_pop {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.info_and_form {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.form_buyer {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* استهداف الأقسام في النموذج */
#form_for_buyer {
    display: flex;
    flex-direction: column;
    max-width: 300px;
    margin: 0 auto;
    gap: 5px;
}

/* تنسيق عناصر الاختيار والإدخال */
.select_paymeny,
.amount_usdt,
.amount_buy {
    margin-bottom: 15px;
    outline: none;
    position: relative;

}

.form_error {
    color: red;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

#form_for_buyer label {
    display: block;
    margin-bottom: 5px;
}

h3.title-form {
    margin-bottom: 20px;
}

#form_for_buyer select,
#form_for_buyer input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
}

span.balance_usdt {
    color: #1da11d;
}

input#amount_usdt155,
input#amount_egp155,
#select_wallet {
    padding-left: 55px;
    outline-color: #FFC107;
}

.amount_usdt::before {
    content: "USDT";
    position: absolute;
    top: 44px;
    left: 5px;
    z-index: 11111111;
    width: 41px;
    line-height: 25px;
    color: #9393937d;
    border-right: 1px solid #cfcfcf;
    font-size: 15px;
}

.amount_buy::before {
    content: "EGP";
    position: absolute;
    top: 44px;
    left: 5px;
    z-index: 11111111;
    width: 33px;
    line-height: 25px;
    color: #9393937d;
    border-right: 1px solid #cfcfcf;
    font-size: 15px;
}

/*______________________________________*/
.header_section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
    padding: 0 20px;
    margin-top: 25px;
}

.header_section img {
    width: 400px;
    height: 200px;
}

.bio h5 {
    font-size: 20px;
}

.bio h2 {
    font-size: 32px;
    line-height: 1.2;
    margin-top: 20px;
}

.bio h2 span {
    color: #0094f7;
}

/*___________________________________________*/

.filter_inp {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

input#searchAmount {
    padding: 13px;
    border: 1px solid #b7b7b7dd;
    border-radius: 5px;
    outline: none;
}

select#sel_pay {
    padding: 11px;
    border: 1px solid #c1c1c1;
    border-radius: 4px;
}

.search {
    display: flex;
    gap: 15px;
}

.toggle {
    display: flex;
    gap: 15px;
    flex-direction: row;
    align-items: center;
}

.vector img {
    width: 40px;
}

/*______________________________*/

.btn_next_prev {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    direction: rtl;
    margin-top: 25px;
}

.btn_next_prev button {
    padding: 10px 20px;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    background: #000;
    color: #fff;
    cursor: pointer;
}

.btn_next_prev button:disabled {
    background-color: gray;
    /* يمكنك استبدال gray باللون أو الصورة المطلوبة */
    cursor: no-drop;
}

.btn_more button:disabled {
    background-color: #212121ba;
    /* يمكنك استبدال gray باللون أو الصورة المطلوبة */
    cursor: no-drop;
}

.btn_more {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-top: 25px;
    direction: rtl;
}

.btn_more button {
    padding: 10px 20px;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    background: #000;
    color: #fff;
    cursor: pointer;
}

/*_____________________________*/

.section_about {
    margin: 50px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section_about_head {
    text-align: center;
}

.section_about_head h2 span {
    color: #0094f7;
}

.section_about_head h2 {
    line-height: 1.5;
    font-size: 30px;
}

.section_about_body {
    display: flex;
    justify-content: space-around;
    gap: 80px;
}

.section_about_body .box {
    width: 30%;
    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    text-align: center;
    transition: 1.5s ease-in-out;
}

.section_about_body .box:hover {

    transform: scale(1.1);
}

.section_about_body .box .img {
    background: #eee;
    padding: 15px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.section_about_body .box .img img {
    width: 150px;
    height: 150px;
}

.section_body_content {
    padding: 20px;
}

.section_body_content h4 {
    font-size: 20px;
}

.section_body_content p {
    color: #f4bd0b;
}

/*_________________ section_explain __________________*/

.section_explain {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
}

.section_explain_head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section_explain_head h2 {
    font-size: 24px;
    color: #333;
}

.btn button.active {
    background-color: #0094f7;
    color: #fff;
}

.btn button {
    background-color: #fff;
    color: #000000;
    border: 1px solid #b6b9bb;
    cursor: pointer;
    padding: 8px 16px;
    margin-right: 10px;
    border-radius: 5px;
}

.section_explain_body {
    display: flex;
    justify-content: space-between;
}

.buy_card,
.sell_card {
    flex: 1;
    display: flex;
    /* إضافة إعداد flex */
    flex-wrap: wrap;
    /* تفعيل اللف للتعامل مع العناصر المتعددة */
    justify-content: space-between;
    /* توزيع العناصر بينهم بالتساوي */
}

.buy_card .box,
.sell_card .box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: calc(32% - 10px);
    transition: 1.5s ease-in-out;

}

.buy_card .box:hover,
.sell_card .box:hover {
    transform: scale(1.1);
}

.section_explain_body img {
    max-width: 241px !important;
    max-height: 184px !important;
}

.section_about_body .box img {
    width: 150px;
    height: 150px;
    text-align: center;
    margin-bottom: 20px;
}

.sell_card .box img,
.buy_card .box img {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.sell_card .box .img,
.buy_card .box .img {
    display: flex;
    justify-content: center;
    background-color: #eee;
    padding: 15px;
}


.section_body_content h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.section_body_content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}


/*_________________ section_explain __________________*/
.dark-mode-toggle {
    cursor: pointer;
}

body.dark-mode {
    background: #000;
    color: #fff;
}

/* إعدادات CSS للوضع الليلي */
.dark-mode .nav {
    background-color: #000;
    /* خلفية الشريط العلوي للملاحة في الوضع الليلي */
    color: #fff;
    /* لون النص في الوضع الليلي */
}

.dark-mode .section_explain {
    background-color: #333;
    /* خلفية القسم في الوضع الليلي */
    color: #fff;
    /* لون النص في الوضع الليلي */
}

.dark-mode .btn button {
    background-color: #007bff;
    /* خلفية الأزرار في الوضع الليلي */
    color: #fff;
    /* لون النص في الأزرار في الوضع الليلي */
}

.dark-mode .btn button:hover {
    background-color: #0056b3;
    /* لون الخلفية عند التحويم في الوضع الليلي */
}

.dark-mode .btn_sell_buy button {
    color: #fff;
}

.dark-mode #sellButton {
    color: #fff;
}

.dark-mode #searchAmount {
    background: transparent;
    border-color: #fff3;
    color: #fff;
}

.dark-mode #sel_pay {
    background: transparent;
    color: #ffff;
    border-color: #fff3;
}

.dark-mode #sel_pay option {
    color: #fff;
    background-color: #212121;
}

.dark-mode .orders-table {
    color: #ffff;
}

.dark-mode .orders-table th,
.dark-mode .sell-orders-table th {
    background-color: #212121;
    color: #c7c7c7;
    border-color: #333;
}

.dark-mode .orders-table td,
.dark-mode .sell-orders-table td {
    background-color: #212121;
    color: #c7c7c7;
    border-color: #333;
}

.dark-mode .info_user h3 {
    color: #c7c7c7;
}

.dark-mode .popup-content,
.dark-mode .seller_popup-content {
    background-color: #212121;
}

.dark-mode .form-section,
.dark-mode .form_buyer {
    background-color: #333;
}

.dark-mode .form-section input[type="number"] {
    background-color: #212121;
    color: #fff;
    outline: none;
    border-color: #575555;
}

.dark-mode input#willReceive {
    background-color: #474747;
    border-color: #575555;
}

.dark-mode .payment_select select {
    background-color: #212121;
    color: #ffff;
    outline: none;
    border-color: #575555;
}

.dark-mode input#amount_usdt155,
.dark-mode #amount_egp155,
.dark-mode #select_wallet {
    background-color: #212121;
    color: #ffff;
    outline: none;
    border-color: #575555;
}

.dark-mode .btn_more button:disabled,
.dark-mode .btn_next_prev button:disabled {
    background-color: transparent;
    border-color: #333;
    color: #7d7d7d;
}

.dark-mode .balance_usdt strong {
    color: #ffffffa1 !important;
}

.dark-mode #cash_number {
    background-color: #212121;
    color: #fff;
    border-color: #575555;
}

.dark-mode .section_about {
    padding: 35px;
    background-color: #212121;
    color: #fff;
    margin-bottom: 30px;
    border-radius: 10px;
}

.dark-mode .section_about_body .box {
    background: #040404;
}

.dark-mode .section_body_content h4 {
    color: #fff;
}

.dark-mode .section_body_content p {
    color: #fff;
    opacity: 0.5;
}

.dark-mode .section_about_body .box .img {
    background-color: #414141;
}

.dark-mode .section_explain_head h2 {
    color: #fff;
}

.dark-mode .btn button {
    background-color: #333333;
    color: #fff;
    transition: 1.5s;
}

.dark-mode .btn button:hover {
    transform: scale(1.1);
    background-color: transparent;
}

.dark-mode .btn button.active {
    background-color: #0094f7;
    color: #fff;
}

.dark-mode .buy_card .box,
.dark-mode .sell_card .box {
    background: #212121;
}

.dark-mode .sell_card .box .img,
.dark-mode .buy_card .box .img {
    background: #414141;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.dark-mode .footer {
    background-color: #212121;
}

.dark-mode .social-media a {
    color: #fff;
}

.dark-mode .header_section {
    background: #0739366b;
    border-radius: 15px;
    padding: 15px;
}

.dark-mode .seller-info-section p {
    color: #fff;
}

.dark-mode .dropdown-content {
    background-color: #333;
}

.dark-mode .dropdown-content a {
    color: #fff;
}

.dark-mode img.user_image, .dark-mode img.seller_user_image {
    border: 2px solid #4f4f4f;
}

.dark-mode .news-container {
    background-color: #0c0c0c;
}

.dark-mode .news-item {
    color: #fff;
}

.dark-mode .messages_buy {
    border: 1px solid #333333;
}

.dark-mode .fees {
    background: #212121;
}

.dark-mode .popup_limit-content {
    background: #212121;
}

.dark-mode .popup_limit-content p {
    color: #fff;
}
/*_______________________________________*/

@media (max-width: 800px) {
    .container {
        width: 95%;
        padding: 0;
    }

    .header_section {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        margin-top: 25px;
    }

    .section_about_body {
        flex-direction: column;
    }

    .section_about_body .box {
        width: 90%;
        margin: 0 auto;
    }

    .section_explain_head {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .buy_card, .sell_card {
        flex-direction: column;
    }

    .buy_card .box, .sell_card .box {
        width: 90%;
        margin: 0 auto;
        margin-bottom: 40px;
    }

    .popup-content, .seller_popup-content {
        width: 95%;
        height: 100vh;
    }

    .form-info {
        flex-direction: column-reverse;
        gap: 25px;
    }

    .info_and_form {
        flex-direction: column;
        gap: 25px;
    }

    .form-section, .form_buyer {
        width: 100%;
    }

    #form_for_buyer {
        max-width: 100%;
    }

}

@media (max-width: 630px) {
    .filter_inp {
        flex-direction: column;
    }

    .header_section {
        width: 100%;
    }

    .header_section img {
        width: 100%;
    }

    .bio h2 {
        font-size: 28px;
        margin-top: 0;
    }

    .bio h5 {
        font-weight: 500;
    }

}

/*________________________________________*/
.news-container {
    overflow: hidden;
    width: 100%;
    background-color: #f5f5f5;
    /* لون خلفية الشريط */
}

#newsTicker {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    animation: scrollNews 20s linear infinite;
    animation-fill-mode: backwards;
    /* تعيين قيمة backwards للعناصر */
}

.news-item {
    padding: 10px 20px;
    margin-right: 20px;
    color: #000;
    border-radius: 5px;
    cursor: grab;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-item i {
    color: #0094f7;
}

#newsTicker:hover {
    animation-play-state: paused;
    /* توقف الأنيميشن عند hover */
}

@keyframes scrollNews {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}


/*________________________________________*/