﻿:root {
    /* رنگ‌های اصلی */
    --color-primary: #E30A17; /* قرمز پرچم ترکیه */
    --color-primary-dark: #B50912;
    --color-primary-light: #FF4C5A;
    /* رنگ‌های پایه */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray-light: #F5F5F5;
    --color-gray-dark: #333333;
    /* کاربردها */
    --background-main: var(--color-white);
    --background-alt: var(--color-gray-light);
    --text-main: var(--color-black);
    --text-secondary: var(--color-gray-dark);
    --button-bg: var(--color-primary);
    --button-bg-hover: var(--color-primary-dark);
    --button-text: var(--color-white);
    --header-bg: var(--color-primary);
    --footer-bg: var(--color-primary-dark);
    /* رنگ‌های چت */
    --primary-red: var(--color-primary);
    --secondary-red: var(--color-primary-dark);
    --dark-red: var(--color-primary-dark);
    --light-red: #FFE5E9;
    --white: var(--color-white);
    --gray-light: var(--color-gray-light);
    --gray-medium: #E9EDEF;
    --gray-dark: #667781;
    --chat-bg: #F5E1E4;
    --message-received: var(--color-white);
    --message-sent: #FFE5E9;
    --blue: #34B7F1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

/* کانتینر وسط‌چین */
.page-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /*! display: flex; */
    /*! flex-direction: row; */
    /*! direction: rtl; */
}

.chat-app {
    width: 90%;
    max-width: 1400px;
    height: 90vh;
    display: flex !important;
    /*! background-color: var(--white); */
    /*! box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); */
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: row !important;
    direction: rtl;
}

/* سایدبار مخاطبین */
.sidebar {
    width: 30%;
    min-width: 350px;
    background-color: var(--white);
    border-right: 1px solid var(--gray-medium);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-header {
    background-color: var(--gray-medium);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.mobile-hamburger {
    display: none;
    font-size: 29px;
    color: #fbfbfb;
    cursor: pointer;
    /* اضافه کردن این خط برای قرار دادن در سمت راست */
    /*! margin-right: auto; */
    /*! top: 15px; */
    /*! left: 15px; */
}

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
}

    .user-profile img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-left: 10px;
    }

.user-name {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-main);
}

.sidebar-icons {
    display: flex;
    gap: 20px;
    color: var(--gray-dark);
}

    .sidebar-icons i {
        font-size: 18px;
        cursor: pointer;
        transition: all 0.2s;
    }

        .sidebar-icons i:hover {
            color: var(--dark-red);
        }

.search-bar {
    padding: 8px 10px;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-medium);
}

.search-container {
    background-color: var(--gray-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 6px 12px;
}

    .search-container i {
        color: var(--gray-dark);
        font-size: 14px;
        margin-left: 8px;
    }

    .search-container input {
        border: none;
        outline: none;
        width: 100%;
        padding: 6px 0;
        background: transparent;
        font-size: 13px;
    }

        .search-container input::placeholder {
            color: var(--gray-dark);
        }

/* تب های زیر نوار جستجو */
.search-tabs {
    display: flex;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-medium);
}

.search-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: var(--gray-dark);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

    .search-tab.active {
        color: var(--secondary-red);
        font-weight: 500;
    }

        .search-tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--secondary-red);
        }

.contact-list {
    flex: 1;
    overflow-y: auto;
    background-color: var(--white);
}

.contact {
    display: flex;
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-medium);
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

    .contact:hover {
        background-color: #F5F6F6;
    }

    .contact.active {
        background-color: #F0F2F5;
    }

.contact-avatar {
    position: relative;
}

    .contact-avatar img {
        width: 49px;
        height: 49px;
        border-radius: 50%;
        margin-left: 10px;
        object-fit: cover;
    }

.online-status {
    position: absolute;
    bottom: 0;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-red);
    border: 2px solid var(--white);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.contact-name-time {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.contact-name {
    font-weight: 500;
    font-size: 16px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-time {
    font-size: 11px;
    color: var(--gray-dark);
    white-space: nowrap;
}

.contact-last-msg {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .contact-last-msg p {
        font-size: 14px;
        color: var(--gray-dark);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

.unread-count {
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    padding: 0 4px;
}

/* بخش No-Chat */
.no-chat-container {
    /*! flex: 1; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    /*! border-radius: 20px; */
    /*! box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); */
    text-align: center;
    /*! max-width: 500px; */
    width: 100%;
    /*! border: 1px solid rgba(255, 255, 255, 0.1); */
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

    .no-chat-container::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient( 45deg, transparent, rgba(255, 255, 255, 0.1), transparent );
        transform: rotate(45deg);
        animation: shimmer 8s infinite linear;
        z-index: 0;
    }

.content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.icon-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
    box-shadow: 0 10px 30px rgba(106, 17, 203, 0.4);
}

    .icon-container i {
        font-size: 50px;
        color: white;
    }

h2 {
    font-size: 28px;
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: white;
    font-weight: 700;
}

p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(34, 32, 32, 0.9);
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
    border: none;
    cursor: pointer;
    margin-top: 15px;
}

    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(106, 17, 203, 0.6);
    }

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 10s infinite ease-in-out;
}

    .floating-element:nth-child(1) {
        width: 80px;
        height: 80px;
        top: -20px;
        right: -20px;
        animation-delay: 0s;
    }

    .floating-element:nth-child(2) {
        width: 50px;
        height: 50px;
        bottom: 30px;
        left: 30px;
        animation-delay: -2s;
    }

    .floating-element:nth-child(3) {
        width: 40px;
        height: 40px;
        top: 50%;
        left: -20px;
        animation-delay: -5s;
    }

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(106, 17, 203, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(106, 17, 203, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(106, 17, 203, 0.4);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(120deg);
    }

    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

@keyframes shimmer {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }

    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

/* رسپانسیو برای موبایل */
@media (max-width: 576px) {
    .no-chat-container {
        padding: 30px 20px;
    }

    .icon-container {
        width: 100px;
        height: 100px;
    }

        .icon-container i {
            font-size: 40px;
        }

    h2 {
        font-size: 24px;
    }

    p {
        font-size: 16px;
    }
}

.no-chat-icon {
    font-size: 80px;
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.no-chat-title {
    font-size: 24px;
    font-weight: 300;
    color: var(--gray-dark);
    margin-bottom: 10px;
}

.no-chat-subtitle {
    font-size: 14px;
    color: var(--gray-dark);
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.5;
}

/* بخش تبدیل ارز */
.currency-converter {
    width: 100%;
    padding: 15px;
    background-color: var(--gray-light);
    border-radius: 10px;
    margin-bottom: 20px;
}

.currency-input {
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .currency-input input {
        padding: 10px;
        border: 1px solid var(--gray-medium);
        border-radius: 8px;
        font-size: 14px;
        text-align: right;
    }

.currency-select {
    padding: 10px;
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--white);
    margin-top: 5px;
}

.convert-buttons {
}

.convert-btn {
}

    .convert-btn:hover {
        background-color: var(--dark-red);
    }

/* بخش خدمات */
.services-section {
    width: 100%;
}

.services-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-main);
    text-align: right;
}

.services-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

    .services-scroll::-webkit-scrollbar {
        height: 6px;
    }

    .services-scroll::-webkit-scrollbar-track {
        background: var(--gray-light);
        border-radius: 10px;
    }

    .services-scroll::-webkit-scrollbar-thumb {
        background: var(--gray-dark);
        border-radius: 10px;
    }

.service-box {
    flex: 0 0 auto;
    width: 120px;
    height: 100px;
    background-color: var(--gray-light);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 10px;
    text-align: center;
}

    .service-box:hover {
        background-color: var(--gray-medium);
    }

.service-box-icon {
    font-size: 24px;
    color: var(--secondary-red);
    margin-bottom: 5px;
}

.service-box-name {
    font-size: 11px;
    color: var(--gray-dark);
    margin-bottom: 3px;
}

.service-box-price {
    font-size: 12px;
    font-weight: bold;
    color: var(--secondary-red);
}

/* بخش سفارش‌ها */
.orders-container {
    padding: 15px;
    display: none;
}

.order-box {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: var(--gray-light);
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

    .order-box:hover {
        background-color: var(--gray-medium);
    }

.order-icon {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
    color: white;
    font-size: 18px;
}

.order-info {
    flex: 1;
}

.order-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 3px;
}

.order-desc {
    font-size: 13px;
    color: var(--gray-dark);
}

/* مبدل کوچک */
.mini-converter {
    background-color: var(--gray-light);
    border-radius: 10px;
    padding: 15px;
    margin: 15px;
    display: none;
}

.mini-converter-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-main);
    text-align: right;
}

.mini-converter-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.mini-converter-input {
    flex: 1;
}

    .mini-converter-input input {
        width: 100%;
        padding: 8px;
        border: 1px solid var(--gray-medium);
        border-radius: 8px;
        font-size: 14px;
        text-align: right;
    }

.mini-converter-select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--white);
    margin-top: 5px;
}

.mini-convert-btn {
    width: 100%;
    padding: 8px;
    background-color: var(--secondary-red);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

    .mini-convert-btn:hover {
        background-color: var(--dark-red);
    }

/* بخش چت */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #C3DAE8;
    display: none;
}

.chat-header {
    background-color: var(--gray-medium);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-medium);
    height: 60px;
}

.chat-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.mobile-back {
    display: block;
    margin-left: 10px;
    font-size: 18px;
    color: var(--gray-dark);
    cursor: pointer;
}

.chat-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 12px;
    object-fit: cover;
}

.chat-title {
    flex: 1;
}

.chat-name {
    font-weight: 500;
    font-size: 16px;
    color: var(--text-main);
}

.chat-status {
    font-size: 12px;
    color: var(--gray-dark);
    margin-top: 2px;
}

.online {
    color: var(--primary-red);
}

.chat-actions {
    display: flex;
    gap: 24px;
    color: var(--gray-dark);
}

    .chat-actions i {
        font-size: 18px;
        cursor: pointer;
        transition: all 0.2s;
    }

        .chat-actions i:hover {
            color: var(--dark-red);
        }

.messages {
    flex: 1;
    padding: 20px 80px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    opacity: 1;
    background-image: none;
    scroll-behavior: smooth;
}

.message {
    max-width: 65%;
    padding: 8px 12px;
    border-radius: 7.5px;
    margin-bottom: 10px;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.received {
    align-self: flex-start;
    background-color: var(--message-received);
    border-top-left-radius: 0;
    margin-right: auto;
}

.sent {
    align-self: flex-end;
    background-color: var(--message-sent);
    border-top-right-radius: 0;
    margin-left: auto;
}

.message-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    color: var(--gray-dark);
    text-align: left;
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
    float: right;
    clear: both;
    margin-left: 10px;
}

    .message-time i {
        font-size: 16px;
    }

.message-info {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.message-media {
    margin-top: 8px;
    border-radius: 5px;
    overflow: hidden;
    max-width: 300px;
}

    .message-media img {
        width: 100%;
        height: auto;
        display: block;
    }

.message-document {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 5px;
    margin-top: 8px;
    max-width: 250px;
}

.document-icon {
    font-size: 30px;
    color: var(--gray-dark);
    margin-left: 10px;
}

.document-info {
    flex: 1;
}

.document-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.document-size {
    font-size: 12px;
    color: var(--gray-dark);
}

/* بخش پاسخ */
.reply-box {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 8px 12px;
    border-left: 3px solid var(--primary-red);
    margin-bottom: 8px;
    border-radius: 0 5px 5px 0;
    position: relative;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reply-box::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--primary-red);
}

.reply-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark-red);
    margin-bottom: 3px;
}

.reply-text {
    font-size: 13px;
    color: var(--gray-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ورودی پیام */
.message-input-container {
    background-color: var(--gray-medium);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-top: 1px solid var(--gray-light);
}

/* برای جلوگیری از همپوشانی با محتوا */
#messages {
    padding-bottom: 70px; /* ارتفاع input container + margin */
}

.input-icons {
    display: flex;
    gap: 15px;
    color: var(--gray-dark);
}

    .input-icons i {
        font-size: 22px;
        cursor: pointer;
        transition: all 0.2s;
    }

        .input-icons i:hover {
            color: var(--dark-red);
        }

.input-container {
    flex: 1;
    background-color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 5px 15px;
    min-height: 42px;
    position: relative;
}

    .input-container input {
        border: none;
        outline: none;
        width: 100%;
        padding: 8px 0;
        background: transparent;
        font-size: 15px;
    }

        .input-container input::placeholder {
            color: var(--gray-dark);
        }

.voice-message {
    color: var(--gray-dark);
    font-size: 22px;
    cursor: pointer;
    display: none;
}

.send-btn {
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .send-btn:hover {
        background-color: var(--secondary-red);
    }

    .send-btn i {
        font-size: 18px;
    }

/* انتخاب زبان */
.language-selector {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
}

.language-btn {
    padding: 5px 10px;
    background-color: var(--secondary-red);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.language-menu {
    position: absolute;
    top: 30px;
    left: 0;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
    width: 120px;
}

    .language-menu.show {
        display: block;
    }

.language-option {
    padding: 8px 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .language-option:hover {
        background-color: var(--gray-light);
    }

/* منوی کاربر */
.user-menu {
    position: absolute;
    top: 60px;
    right: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 200px;
    z-index: 1000;
    display: none;
}

    .user-menu.show {
        display: block;
    }

.user-menu-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .user-menu-item i {
        color: var(--gray-dark);
        width: 20px;
    }

    .user-menu-item:hover {
        background-color: var(--gray-light);
    }

/* مودال پروفایل */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

    .profile-modal.show {
        display: flex;
    }

.profile-content {
    background-color: var(--white);
    width: 100%;
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.profile-header {
    padding: 15px;
    background-color: var(--primary-red);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-close {
    font-size: 20px;
    cursor: pointer;
    transform: rotate(180deg);
}

.profile-tabs {
    display: flex;
    background-color: var(--gray-light);
    border-bottom: 1px solid var(--gray-medium);
}

.profile-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: var(--gray-dark);
    cursor: pointer;
    transition: all 0.2s;
}

    .profile-tab.active {
        color: var(--secondary-red);
        font-weight: 500;
        border-bottom: 2px solid var(--secondary-red);
    }

.profile-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.profile-section {
    display: none;
}

    .profile-section.active {
        display: block;
    }


.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid var(--gray-medium);
    cursor: pointer;
    position: relative;
}

    .avatar-preview:hover::after {
        content: 'تغییر تصویر';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 14px;
        border-radius: 50%;
    }

    .avatar-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.avatar-input {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
        color: var(--text-main);
    }

    .form-group input {
        width: 100%;
        padding: 10px;
        border: 1px solid var(--gray-medium);
        border-radius: 5px;
        font-size: 14px;
    }

.upload-area {
    border: 2px dashed var(--gray-medium);
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    cursor: pointer;
}

    .upload-area i {
        font-size: 40px;
        color: var(--gray-dark);
        margin-bottom: 10px;
    }

.save-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    margin-top: 20px;
}

    .save-btn:hover {
        background-color: var(--secondary-red);
    }

/* بخش خرید و فروش */
.buy-sell-container {
    padding: 15px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.buy-sell-item {
    background-color: var(--gray-light);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.buy-sell-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.buy-sell-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
}

.buy-sell-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--secondary-red);
}

.buy-sell-form {
    display: flex;
    gap: 10px;
}

.buy-sell-input {
    flex: 1;
}

    .buy-sell-input input {
        width: 100%;
        padding: 10px;
        border: 1px solid var(--gray-medium);
        border-radius: 8px;
        font-size: 14px;
        text-align: right;
    }

.buy-sell-button {
    padding: 10px 20px;
    background-color: var(--secondary-red);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

    .buy-sell-button:hover {
        background-color: var(--dark-red);
    }

.divider {
    height: 1px;
    background-color: var(--gray-medium);
    margin: 20px 0;
}

/* لیست سفارشات */
.orders-list {
    padding: 15px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.order-item {
    background-color: var(--gray-light);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-details {
    flex: 1;
}

.order-type {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 5px;
}

.order-amount {
    font-size: 13px;
    color: var(--gray-dark);
}

.order-status {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.status-completed {
    background-color: #4CAF50;
    color: white;
}

.status-pending {
    background-color: #FF9800;
    color: white;
}

.status-cancelled {
    background-color: #F44336;
    color: white;
}

/* حالت موبایل */
@media (max-width: 768px) {
    body {
        padding: 0;
        display: block;
        height: auto;
        min-height: 100vh;
    }

    .chat-app {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: auto;
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 10;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
    }

        .sidebar.active {
            transform: translateX(0);
        }

    .chat-area {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 11;
        display: none;
    }

        .chat-area.active {
            display: flex;
        }

    .mobile-back {
        display: block;
        margin-left: 15px;
    }

    .sidebar-header {
        /*! justify-content: flex-start; */
    }

    .mobile-hamburger {
        display: block;
        position: absolute;
        top: 10px; /* فاصله از بالا */
        right: 10px; /* می‌تونی بزنی left:10px اگه چپ بخوای */
        z-index: 10;
    }

    .user-profile {
        order: 1;
        margin-right: 0px;
        right: 15px;
    }

    .sidebar-icons {
        order: 2;
        /*! margin-left: 36px; */
    }

    .messages {
        padding: 15px 10px;
    }

    .message {
        max-width: 85%;
    }

    .no-chat-container {
        padding: 40px 20px;
        display: flex;
    }

    .no-chat-icon {
        font-size: 60px;
    }

    .no-chat-title {
        font-size: 20px;
    }

    .currency-inputs {
    }

    .service-box {
        width: 100px;
    }

    .chat-actions i:not(.fa-arrow-left) {
        display: none;
    }

    .language-selector {
        top: 15px;
        left: 15px;
        display: none;
    }

    .buy-sell-form {
        flex-direction: column;
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .order-status {
        align-self: flex-end;
    }

    .buy-sell-container {
        max-height: calc(100vh - 250px);
    }
}

/* حالت تاریک */
.dark-mode {
    --white: #111B21;
    --gray-light: #202C33;
    --gray-medium: #2A3942;
    --gray-dark: #8696A0;
    --chat-bg: #1A0B0E;
    --message-received: #202C33;
    --message-sent: #4B0010;
    --primary-red: #F15C6D;
    --text-main: #E9EDEF;
    --text-secondary: #8696A0;
}

    .dark-mode .contact-name,
    .dark-mode .user-name,
    .dark-mode .chat-name,
    .dark-mode .message-text,
    .dark-mode .document-name,
    .dark-mode .converter-title,
    .dark-mode .services-title,
    .dark-mode .order-title,
    .dark-mode .buy-sell-title {
        color: var(--text-main) !important;
    }

    .dark-mode .contact:hover {
        background-color: #202C33 !important;
    }

    .dark-mode .contact.active {
        background-color: #2A3942 !important;
    }

    .dark-mode .service-box {
        background-color: var(--gray-medium);
    }

        .dark-mode .service-box:hover {
            background-color: var(--gray-light);
        }

    .dark-mode .order-box {
        background-color: var(--gray-medium);
    }

        .dark-mode .order-box:hover {
            background-color: var(--gray-light);
        }

    .dark-mode .currency-converter,
    .dark-mode .mini-converter {
        background-color: var(--gray-medium);
    }

    .dark-mode .input-container {
        background-color: var(--gray-light);
    }

        .dark-mode .input-container input {
            color: var(--text-main);
        }

    .dark-mode .search-container {
        background-color: var(--gray-medium);
    }

        .dark-mode .search-container input {
            color: var(--text-main);
        }

    .dark-mode .user-menu {
        background-color: var(--gray-light);
    }

    .dark-mode .user-menu-item {
        color: var(--text-main);
    }

    .dark-mode .profile-content {
        background-color: var(--white);
    }

    .dark-mode .form-group input {
        background-color: var(--gray-light);
        border-color: var(--gray-medium);
        color: var(--text-main);
    }

    .dark-mode .upload-area {
        border-color: var(--gray-medium);
    }

    .dark-mode .buy-sell-item {
        background-color: var(--gray-medium);
    }

    .dark-mode .buy-sell-input input {
        background-color: var(--gray-light);
        border-color: var(--gray-medium);
        color: var(--text-main);
    }

    .dark-mode .order-item {
        background-color: var(--gray-medium);
    }

    .dark-mode .language-menu {
        background-color: var(--gray-light);
    }

    .dark-mode .language-option {
        color: var(--text-main);
    }

        .dark-mode .language-option:hover {
            background-color: var(--gray-medium);
        }

/* دکمه تغییر حالت تاریک */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

    .theme-toggle i {
        font-size: 20px;
    }

.auth-overlay {
    width: 100%;
    max-width: 400px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: auto !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .auth-overlay::-webkit-scrollbar {
        display: none; /* کروم، سافاری، اوپرا */
    }

.auth-header {
    background-color: var(--primary-red);
    color: white;
    padding: 15px;
    text-align: center;
    position: relative;
}

.auth-close {
    position: absolute;
    left: 15px;
    top: 15px;
    cursor: pointer;
    font-size: 18px;
}

.auth-tabs {
    display: flex;
    background-color: var(--primary-red);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

    .auth-tab.active {
        color: var(--white);
        font-weight: 500;
    }

        .auth-tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 100%;
            height: 3px;
            background-color: var(--white);
        }

.auth-body {
    padding: 20px;
}

.auth-content {
    display: none;
}

    .auth-content.active {
        display: block;
    }

.auth-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 18px;
}

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
        color: var(--text-main);
    }

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-medium);
    border-radius: 5px;
    font-size: 14px;
}

.country-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-medium);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    direction: ltr;
}

.country-flag {
    width: 30px;
    height: 20px;
    margin: 0 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.country-code {
    padding: 10px;
    background-color: var(--gray-light);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.country-dropdown {
    background: white;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    .country-dropdown.active {
        display: block;
    }

.country-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .country-item:hover {
        background-color: var(--gray-light);
    }

    .country-item .flag {
        width: 20px;
        height: 15px;
        margin-left: 10px;
        background-size: cover;
        background-position: center;
        flex-shrink: 0;
    }

.phone-input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    font-size: 16px;
    direction: ltr;
    text-align: left;
}

.auth-button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    margin-top: 10px;
}

    .auth-button:hover {
        background-color: var(--secondary-red);
    }

    .auth-button:disabled {
        background-color: var(--gray-dark);
        cursor: not-allowed;
    }

.otp-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.otp-input {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 20px;
    border: 1px solid var(--gray-medium);
    border-radius: 5px;
    direction: ltr;
}

    .otp-input:focus {
        border-color: var(--primary-red);
        outline: none;
    }

.resend-code {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-dark);
}

    .resend-code a {
        color: var(--primary-red);
        text-decoration: none;
        cursor: pointer;
    }

.countdown {
    color: var(--primary-red);
    font-weight: 500;
}

.avatar-options {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.avatar-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

    .avatar-option.selected {
        border-color: var(--primary-red);
    }

    .avatar-option img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.switch-auth {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-dark);
}

    .switch-auth a {
        color: var(--primary-red);
        text-decoration: none;
        cursor: pointer;
    }

.forgot-password {
    text-align: center;
    margin-top: 10px;
}

    .forgot-password a {
        color: var(--primary-red);
        text-decoration: none;
        cursor: pointer;
    }

/* استایل برای حالت موبایل */
@media (max-width: 760px) {
    .auth-overlay {
        width: 100%;
        background-color: var(--white);
        overflow: hidden;
        height: 100vh;
        border-radius: 0px;
        max-width: 100%;
    }


    .country-dropdown {
        width: 100%;
        right: 0;
        left: 0;
    }

    .otp-input {
        width: 40px;
        height: 40px;
    }
}
/* استایل برای انتخاب زبان */
.auth-lang-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    z-index: 1001;
    direction: rtl;
}

.auth-lang-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

    .auth-lang-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

.auth-lang-menu {
    position: absolute;
    top: 44%;
    left: 3%;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1002;
    min-width: 60px;
}

    .auth-lang-menu.active {
        display: block;
    }

.auth-lang-option {
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    text-align: center;
    transition: background-color 0.2s;
}

.auth-lang-selector h2 {
    margin: 0;
    font-size: 20px;
}

.auth-lang-option:hover {
    background-color: var(--gray-light);
}

.site-link {
    display: inline-block;
    padding: 4px 12px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 13px;
    transition: background 0.3s ease;
}

    .site-link:hover {
        background-color: #218838; /* سبز تیره‌تر موقع هاور */
    }

.header {
    background: linear-gradient(90deg, #e30a17, #b50912);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo i {
        margin-left: 10px;
        font-size: 32px;
    }

.market-status {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4caf50;
    margin-left: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.last-update {
    margin-top: 5px;
    font-size: 12px;
    opacity: 0.9;
}

.currency-table {
    width: 100%;
    border-collapse: collapse;
}

    .currency-table th {
        background-color: #f5f5f5;
        padding: 15px;
        text-align: center;
        font-weight: 600;
        color: #444;
        border-bottom: 2px solid #ddd;
    }

    .currency-table td {
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid #eee;
        transition: all 0.3s ease;
    }

    .currency-table tr:hover td {
        background-color: #f9f9f9;
    }

.currency-name {
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-left: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price {
    font-weight: bold;
    font-size: 16px;
}

.change {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

    .change.positive {
        background-color: #e8f5e9;
        color: #2e7d32;
    }

    .change.negative {
        background-color: #ffebee;
        color: #c62828;
    }

    .change.neutral {
        background-color: #f5f5f5;
        color: #757575;
    }

.trend-icon {
    margin-right: 5px;
}

footer {
    padding: 15px;
    text-align: center;
    background-color: #f5f5f5;
    color: #666;
    font-size: 12px;
    border-top: 1px solid #eee;
}

.highlow {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .currency-table th,
    .currency-table td {
        padding: 10px 5px;
    }

        .currency-table th:nth-child(3),
        .currency-table td:nth-child(3),
        .currency-table th:nth-child(4),
        .currency-table td:nth-child(4) {
            display: none;
        }

    .price {
        font-size: 14px;
    }
}

.blink-up {
    animation: blinkUp 0.8s ease;
}

.blink-down {
    animation: blinkDown 0.8s ease;
}

@keyframes blinkUp {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: #e8f5e9;
    }

    100% {
        background-color: transparent;
    }
}

@keyframes blinkDown {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: #ffebee;
    }

    100% {
        background-color: transparent;
    }
}

.contprice {
    width: 100%;
    max-width: 1000px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.card-slider-container {
    position: relative;
    height: 200px;
    margin: 5px auto 20px;
    perspective: 1000px;
    overflow: hidden;
}

.card-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.card {
    position: absolute;
    width: 100%;
    height: 150px;
    border-radius: 12px;
    display: flex;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.7s ease;
    transform-origin: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-buy {
    background: linear-gradient(135deg, #2af598 0%, #009efd 100%);
}

.card-sell {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    margin-left: 15px;
    color: white;
}

.card-content {
    text-align: right;
    flex-grow: 1;
    color: white;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-price {
    font-size: 1.3rem;
    font-weight: 700;
    direction: ltr;
    display: block;
    margin-bottom: 15px;
}

.card-btn {
    padding: 6px 15px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.buy-btn {
    background: #4CAF50;
    color: white;
}

.sell-btn {
    background: #FF5252;
    color: white;
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.background-upload {
    margin-top: 20px;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: right;
    color: #555;
}

    .background-upload input {
        margin-top: 8px;
        width: 100%;
        direction: ltr;
    }

.auto-play-status {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
}

/* انیمیشن برای تغییر کارت‌ها */
@keyframes slideIn {
    from {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* رسپانسیو برای صفحه‌های کوچک */
@media (max-width: 480px) {
    .container {
        max-width: 340px;
        padding: 15px;
    }

    .card {
        height: 140px;
        padding: 12px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-price {
        font-size: 1.1rem;
    }

    .logo {
        font-size: 1.8rem;
    }

    .title {
        font-size: 1.1rem;
    }
}

.no-chat-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

.compact-ticker-container {
    width: 100%;
    max-width: 1000px;
    margin-top: auto; /* این باعث میشه اسکرول ارز همیشه در پایین قرار بگیره */
    padding-top: 20px;
}

.compact-ticker {
    background: linear-gradient(90deg, rgba(235, 37, 37, 0.38), rgba(175, 30, 30, 0.25));
    overflow: hidden;
    position: relative;
}

.compact-track {
    display: flex;
    animation: ticker-scroll 35s linear infinite;
}

.compact-item {
    display: flex;
    align-items: center;
    padding: 0 20px;
    flex: 0 0 auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    height: 40px;
}

.currency-icon {
    font-size: 24px;
    margin-left: 12px;
}

.change-percent {
    font-weight: 600;
    font-size: 14px;
    margin: 0 15px;
    display: flex;
    align-items: center;
}

.price-range {
    display: flex;
    gap: 15px;
    font-size: 13px;
}

.low-price, .high-price {
    display: flex;
    align-items: center;
}

.price-label {
    color: rgba(17, 15, 15, 0.7);
    margin-left: 5px;
    font-size: 12px;
}

.positive {
    color: var(--positive);
}

.negative {
    color: var(--negative);
}

.last-update {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
}

/* انیمیشن‌ها */
@keyframes ticker-scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .compact-ticker-container {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        padding: 10px;
    }

    .no-chat-container {
        padding-bottom: 70px; /* فضای کافی برای اسکرول ارز در موبایل */
    }
}
/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .compact-item {
        padding: 0 15px;
    }

    .currency-icon {
        font-size: 20px;
        margin-left: 8px;
    }

    .change-percent {
        font-size: 13px;
        margin: 0 10px;
    }

    .price-range {
        gap: 10px;
        font-size: 12px;
    }

    .price-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .compact-item {
        padding: 0 12px;
    }

    .currency-icon {
        font-size: 18px;
    }

    .change-percent {
        font-size: 12px;
        margin: 0 8px;
    }

    .price-range {
        gap: 8px;
        font-size: 11px;
    }
}

.compact-converter-container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-section {
    text-align: center;
    margin-bottom: 10px;
}

.logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(227, 10, 23, 0.4);
}

    .logo i {
        font-size: 30px;
        color: white;
    }

.logo-name {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-top: 5px;
}


.converter-box {
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 200;
    padding: 12px;
}



.currency-input {
    flex: 1;
    position: relative;
}

    .currency-input input {
        width: 100%;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        text-align: right;
    }

.currency-select {
    width: 90px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
}

.convert-buttons {
}

.convert-btn {
}

.swap-btn {
}

    .convert-btn:hover, .swap-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(227, 10, 23, 0.4);
    }

.compact-ticker {
    background: linear-gradient(90deg, rgba(235, 37, 37, 0.38), rgba(175, 30, 30, 0.25));
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 40px;
}

.compact-track {
    display: flex;
    animation: ticker-scroll 35s linear infinite;
    height: 100%;
}

.compact-item {
    display: flex;
    align-items: center;
    padding: 0 15px;
    flex: 0 0 auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.currency-icon {
    font-size: 20px;
    margin-left: 10px;
}

.change-percent {
    font-weight: 600;
    font-size: 13px;
    margin: 0 10px;
    display: flex;
    align-items: center;
}

.positive {
    color: var(--positive);
}

.negative {
    color: var(--negative);
}

.price-range {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: white;
}

.low-price, .high-price {
    display: flex;
    align-items: center;
}

.price-label {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 4px;
    font-size: 11px;
}

.last-update {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 480px) {
    .compact-converter-container {
        padding: 15px;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

        .logo i {
            font-size: 30px;
        }

    .logo-name {
        font-size: 20px;
    }

    .converter-box {
        /*! padding: 12px; */
    }

    .currency-row {
    }

    .currency-select {
        width: 100%;
    }

    .convert-buttons {
    }

    .swap-btn {
        padding: 10px;
    }

    .compact-item {
        padding: 0 12px;
    }

    .currency-icon {
        font-size: 18px;
    }

    .change-percent {
        font-size: 12px;
        margin: 0 8px;
    }

    .price-range {
        gap: 8px;
        font-size: 11px;
    }
}

.logo-name {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-top: 10px;
}

.boxes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

.box {
    width: 100%;
    height: 100px;
    /*! min-height: 80px; */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.box-icon {
    font-size: 24px;
    color: white;
    margin-bottom: 8px;
}

.box-title {
    font-size: 12px;
    color: white;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.converter-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 15px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.currency-converter {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}




.currency-input {
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .currency-input label {
        color: white;
        margin-bottom: 8px;
        font-size: 14px;
        text-align: right;
    }

    .currency-input input, .currency-select {
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

.currency-select {
    margin-top: 5px;
    cursor: pointer;
}

.convert-buttons {
}

.convert-btn {
}

    .convert-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(227, 10, 23, 0.4);
    }

.image-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.compact-ticker-container {
    width: 100%;
    max-width: 100%;
    margin-top: auto;
    padding-top: 15px;
    box-sizing: border-box;
}

.compact-ticker {
    background: linear-gradient(90deg, rgba(235, 37, 37, 0.38), rgba(175, 30, 30, 0.25));
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 50px;
}

.compact-track {
    display: flex;
    animation: ticker-scroll 35s linear infinite;
}

.compact-item {
    display: flex;
    align-items: center;
    padding: 0 15px;
    flex: 0 0 auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    height: 50px;
    box-sizing: border-box;
}

.currency-icon {
    font-size: 24px;
    margin-left: 12px;
}

.change-percent {
    font-weight: 600;
    font-size: 14px;
    margin: 0 15px;
    display: flex;
    align-items: center;
}

.positive {
    color: var(--positive);
}

.negative {
    color: var(--negative);
}

.price-range {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: white;
}

.low-price, .high-price {
    display: flex;
    align-items: center;
}

.price-label {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 5px;
    font-size: 12px;
}

.last-update {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    list-style-type: 0;
    z-index: 1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 10s infinite ease-in-out;
}

    .floating-element:nth-child(1) {
        width: 80px;
        height: 80px;
        top: 10%;
        right: 10%;
        animation-delay: 0s;
    }

    .floating-element:nth-child(2) {
        width: 50px;
        height: 50px;
        bottom: 20%;
        left: 10%;
        animation-delay: -2s;
    }

    .floating-element:nth-child(3) {
        width: 40px;
        height: 40px;
        top: 50%;
        left: 20%;
        animation-delay: -5s;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(227, 10, 23, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(227, 10, 23, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(227, 10, 23, 0.4);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(120deg);
    }

    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .no-chat-container {
        padding: 30px 20px;
        height: auto;
        min-height: 90vh;
    }

    .boxes-container {
        gap: 10px;
        margin-bottom: 52%;
        grid-template-columns: repeat(4, 1fr);
    }

    .box {
        width: 70px;
        height: 70px;
    }

    .converter-section {
        flex-direction: column;
    }

    .image-box {
        height: 200px;
    }
}


.currency-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .currency-modal.active {
        display: flex;
        opacity: 1;
    }

.currency-modal-content {
    background-color: #fff;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.currency-modal.active .currency-modal-content {
    transform: translateY(0);
}

.currency-modal-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #E30A17;
    color: white;
    direction: ltr;
}

.currency-modal-back {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
}

.currency-modal-title {
    font-size: 18px;
    font-weight: bold;
    flex: 1;
    text-align: center;
}

.currency-modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.currency-converter {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.converter-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.converter-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.converter-select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9f9f9;
    min-width: 100px;
}

.converter-swap {
    background-color: #E30A17;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.converter-result {
    margin-top: 20px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.result-value {
    font-size: 24px;
    font-weight: bold;
    color: #E30A17;
    margin: 10px 0;
}

.result-details {
    font-size: 14px;
    color: #666;
}

.popular-conversions {
    margin-top: 30px;
}

.popular-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.conversion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.conversion-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .conversion-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.card-flag {
    font-size: 24px;
    margin-bottom: 8px;
}

.card-currencies {
    font-size: 14px;
    margin-bottom: 5px;
}

.card-rate {
    font-size: 16px;
    font-weight: bold;
    color: #E30A17;
}

@media (max-width: 768px) {
    .currency-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .converter-row {
        flex-direction: column;
    }

    .converter-input, .converter-select {
        width: 100%;
    }
}

.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    font-size: 24px;
    border: 0px;
    cursor: pointer;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
}

.lang-option {
    font-size: 22px;
    padding: 6px 10px;
    cursor: pointer;
}

    .lang-option:hover {
        background: #f0f0f0;
        border-radius: 6px;
    }
/* استایل بخش مالی */
.bank-accounts-list {
    margin-bottom: 2rem;
}

.bank-account-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f9f9f9;
}

.account-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

    .status-badge.Pending {
        background: #fff3cd;
        color: #856404;
    }

    .status-badge.Approved {
        background: #d4edda;
        color: #155724;
    }

    .status-badge.Rejected {
        background: #f8d7da;
        color: #721c24;
    }

.account-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.rejection-reason {
    color: #dc3545;
    font-style: italic;
    margin-top: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.loading {
    text-align: center;
    padding: 2rem;
}
/* حالت تمام صفحه برای Modal */
/* استایل Modal واریز - تمام صفحه */
.deposit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    flex-direction: column;
    background: white;
    border-radius: 0;
    overflow: hidden;
}

    .deposit-modal.show {
        display: flex;
        animation: modalFadeIn 0.4s ease;
    }

.deposit-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(12px, 4vw, 20px);
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border-bottom: 2px solid #1a2530;
    flex-shrink: 0;
}

.deposit-modal-title {
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.deposit-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: clamp(18px, 4.5vw, 22px);
}

    .deposit-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

.deposit-modal-body {
    flex: 1;
    padding: clamp(12px, 4vw, 25px);
    overflow-y: auto;
    background: linear-gradient(135deg, #ecf0f1 0%, #f8f9fa 100%);
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 180px);
}

.deposit-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: clamp(20px, 6vw, 35px);
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

    .deposit-steps::before {
        content: '';
        position: absolute;
        top: 27px;
        left: 0;
        right: 0;
        height: 4px;
        background: #f1f3f4;
        z-index: 1;
    }

.deposit-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.deposit-step-number {
    width: clamp(40px, 12vw, 55px);
    height: clamp(40px, 12vw, 55px);
    border-radius: 50%;
    background: #f1f3f4;
    color: #9aa0a6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: clamp(8px, 2vw, 12px);
    transition: all 0.3s ease;
    border: 4px solid white;
    font-size: clamp(16px, 4vw, 20px);
}

.deposit-step-title {
    font-size: clamp(12px, 3.5vw, 16px);
    color: #9aa0a6;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.deposit-step.active .deposit-step-number {
    background: #667eea;
    color: white;
    box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.2);
}

.deposit-step.active .deposit-step-title {
    color: #667eea;
}

.deposit-form {
    margin-top: clamp(15px, 4vw, 20px);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.deposit-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(15px, 4vw, 25px);
    margin-bottom: clamp(15px, 4vw, 25px);
}

@media (min-width: 768px) {
    .deposit-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.deposit-form-group {
    margin-bottom: clamp(20px, 5vw, 28px);
}

.deposit-form-label {
    display: block;
    font-weight: 600;
    color: #3c4043;
    margin-bottom: clamp(8px, 2vw, 10px);
    font-size: clamp(14px, 4vw, 16px);
}

.deposit-form-select,
.deposit-form-input {
    width: 100%;
    padding: clamp(12px, 3.5vw, 16px) clamp(14px, 3.5vw, 18px);
    border: 2px solid #e8eaed;
    border-radius: 12px;
    font-size: clamp(14px, 4vw, 16px);
    transition: all 0.3s ease;
    background: white;
}

    .deposit-form-select:focus,
    .deposit-form-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    }

.deposit-input-group {
    position: relative;
    display: flex;
}

    .deposit-input-group .deposit-form-input {
        border-radius: 12px 0 0 12px;
        flex: 1;
    }

.deposit-input-currency {
    background: #f1f3f4;
    padding: clamp(12px, 3.5vw, 16px) clamp(14px, 3.5vw, 20px);
    border: 2px solid #e8eaed;
    border-left: none;
    border-radius: 0 12px 12px 0;
    font-weight: 600;
    min-width: clamp(80px, 20vw, 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 4vw, 16px);
}

.deposit-form-help {
    font-size: clamp(12px, 3vw, 14px);
    color: #9aa0a6;
    margin-top: 8px;
}

.deposit-method-info {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 3vw, 15px);
    padding: clamp(15px, 4vw, 25px);
    background: #f8f9fe;
    border-radius: 15px;
    border: 2px solid #e8f0fe;
    margin-top: clamp(15px, 4vw, 25px);
}

.deposit-method-info-icon {
    color: #667eea;
    font-size: clamp(18px, 5vw, 24px);
    margin-top: 2px;
}

.deposit-method-info-title {
    font-weight: 600;
    color: #3c4043;
    margin-bottom: clamp(5px, 1.5vw, 8px);
    font-size: clamp(14px, 4vw, 18px);
}

.deposit-method-info-text {
    color: #5f6368;
    line-height: 1.6;
    font-size: clamp(13px, 3.5vw, 16px);
}

.deposit-summary {
    background: #f8f9fe;
    border-radius: 15px;
    padding: clamp(15px, 4vw, 28px);
    margin-top: clamp(15px, 4vw, 28px);
    border: 2px solid #e8f0fe;
}

.deposit-summary-title {
    font-weight: 700;
    color: #3c4043;
    margin-bottom: clamp(12px, 3vw, 18px);
    font-size: clamp(16px, 4.5vw, 20px);
}

.deposit-summary-content {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 3vw, 14px);
}

.deposit-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(8px, 2vw, 10px) 0;
    font-size: clamp(13px, 3.5vw, 16px);
}

.deposit-summary-fee {
    border-top: 2px dashed #e8eaed;
    padding-top: clamp(12px, 3vw, 16px);
    margin-top: 8px;
}

.deposit-summary-total {
    border-top: 2px solid #3c4043;
    padding-top: clamp(12px, 3vw, 18px);
    margin-top: 12px;
    font-weight: 700;
    font-size: clamp(16px, 4.5vw, 20px);
    color: #3c4043;
}

.deposit-modal-footer {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 3vw, 18px);
    padding: clamp(15px, 4vw, 25px);
    background: #2c3e50;
    border-top: 2px solid #1a2530;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .deposit-modal-footer {
        flex-direction: row;
    }
}

.deposit-btn {
    padding: clamp(12px, 3.5vw, 16px) clamp(20px, 5vw, 28px);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: clamp(14px, 4vw, 16px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(150px, 40vw);
    justify-content: center;
    width: 100%;
}

@media (min-width: 480px) {
    .deposit-btn {
        width: auto;
    }
}

.deposit-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .deposit-btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

.deposit-btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

    .deposit-btn-success:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
    }

.deposit-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

    .deposit-btn-secondary:hover {
        background: #cbd5e0;
    }

.deposit-btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #4a5568;
}

    .deposit-btn-outline:hover {
        border-color: #cbd5e0;
        background: #f7fafc;
    }

/* انیمیشن‌ها */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* دکمه تغییر حالت صفحه */
.deposit-fullscreen-toggle {
    position: absolute;
    top: clamp(15px, 4vw, 25px);
    right: clamp(70px, 18vw, 90px);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: clamp(35px, 9vw, 45px);
    height: clamp(35px, 9vw, 45px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: clamp(16px, 4vw, 20px);
}

    .deposit-fullscreen-toggle:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

/* بهبود برای صفحات بسیار کوچک */
@media (max-width: 340px) {
    .deposit-step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .deposit-step-title {
        font-size: 11px;
    }

    .deposit-form-row {
        gap: 12px;
    }

    .deposit-btn {
        min-width: 120px;
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* بهبود برای حالت افقی */
@media (max-height: 500px) and (orientation: landscape) {
    .deposit-modal-body {
        max-height: calc(100vh - 140px);
        padding: 10px 15px;
    }

    .deposit-steps {
        margin-bottom: 20px;
    }

    .deposit-step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .deposit-step-title {
        font-size: 11px;
    }
}

/* استایل برای موجودی */
#withdrawBalanceInfo {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

/* استایل‌های responsive برای برداشت */
@media (max-width: 768px) {
    .deposit-balance-after {
        padding: 15px;
        font-size: 1.1rem;
    }

    .deposit-checkbox-label {
        font-size: 1rem;
    }
}
/* استایل Modal کیف پول - تمام صفحه بدون حاشیه */
.wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
    border-radius: 0;
}

    .wallet-modal.show {
        display: flex;
        animation: walletFadeIn 0.3s ease;
    }

.wallet-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(15px, 5vw, 25px);
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    color: white;
    border-bottom: 2px solid #0f3460;
    flex-shrink: 0;
}

.wallet-modal-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 15px);
}

    .wallet-modal-title i {
        color: #4ecca3;
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

.wallet-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: clamp(35px, 10vw, 45px);
    height: clamp(35px, 10vw, 45px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: clamp(1rem, 4vw, 1.2rem);
}

    .wallet-modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

.wallet-modal-body {
    flex: 1;
    padding: clamp(15px, 4vw, 30px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 80px);
}

/* تب‌ها */
.wallet-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: clamp(20px, 5vw, 30px);
    border: 1px solid #0f3460;
}

.wallet-tab {
    flex: 1;
    padding: clamp(10px, 3vw, 15px) clamp(12px, 3vw, 20px);
    border: none;
    background: transparent;
    color: #b8b8b8;
    cursor: pointer;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, 2vw, 10px);
    font-size: clamp(0.8rem, 3vw, 1rem);
}

    .wallet-tab.active {
        background: linear-gradient(135deg, #4ecca3 0%, #2ea44f 100%);
        color: white;
        box-shadow: 0 5px 15px rgba(78, 204, 163, 0.3);
    }

    .wallet-tab:hover:not(.active) {
        background: rgba(255, 255, 255, 0.05);
        color: white;
    }

/* محتوای تب‌ها */
.wallet-tab-pane {
    display: none;
    animation: walletFadeIn 0.3s ease;
}

    .wallet-tab-pane.active {
        display: block;
    }

/* فرم کیف پول */
.wallet-form {
    background: rgba(255, 255, 255, 0.05);
    padding: clamp(20px, 4vw, 30px);
    border-radius: 15px;
    border: 1px solid #0f3460;
    margin-bottom: 20px;
}

.wallet-form-group {
    margin-bottom: clamp(15px, 4vw, 25px);
}

.wallet-form-label {
    display: block;
    color: #4ecca3;
    font-weight: 600;
    margin-bottom: clamp(8px, 2vw, 10px);
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
}

.wallet-form-select,
.wallet-form-input {
    width: 100%;
    padding: clamp(12px, 3vw, 15px) clamp(15px, 3vw, 20px);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #0f3460;
    border-radius: 12px;
    color: white;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    transition: all 0.3s ease;
}

    .wallet-form-select:focus,
    .wallet-form-input:focus {
        outline: none;
        border-color: #4ecca3;
        box-shadow: 0 0 0 3px rgba(78, 204, 163, 0.2);
        background: rgba(255, 255, 255, 0.15);
    }

    .wallet-form-select option {
        background: #1a1a2e;
        color: white;
    }

/* دکمه‌ها */
.wallet-btn {
    padding: clamp(12px, 3vw, 15px) clamp(20px, 4vw, 30px);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, 2vw, 10px);
    width: 100%;
}

.wallet-btn-primary {
    background: linear-gradient(135deg, #4ecca3 0%, #2ea44f 100%);
    color: white;
}

    .wallet-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(78, 204, 163, 0.4);
    }

/* لیست کیف پول‌ها */
.wallet-list {
    display: grid;
    gap: clamp(15px, 3vw, 20px);
    padding-bottom: 20px;
}

.wallet-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #0f3460;
    border-radius: 15px;
    padding: clamp(15px, 3vw, 25px);
    transition: all 0.3s ease;
}

    .wallet-item:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: #4ecca3;
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

.wallet-header {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 15px);
    margin-bottom: clamp(15px, 3vw, 20px);
}

@media (min-width: 480px) {
    .wallet-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.wallet-info {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 2vw, 15px);
    flex: 1;
}

.wallet-icon {
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    border-radius: 50%;
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.1rem, 4vw, 1.5rem);
}

    .wallet-icon img {
        width: clamp(20px, 6vw, 30px);
        height: clamp(20px, 6vw, 30px);
    }

.wallet-details {
    flex: 1;
}

.wallet-currency {
    font-size: clamp(1rem, 4vw, 1.3rem);
    font-weight: 700;
    color: #4ecca3;
    margin-bottom: 5px;
}

.wallet-network {
    color: #b8b8b8;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    margin-bottom: 8px;
}

.wallet-address {
    color: white;
    font-family: monospace;
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    word-break: break-all;
    margin-bottom: 8px;
}

.wallet-description {
    color: #888;
    font-style: italic;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

.wallet-status {
    padding: clamp(6px, 2vw, 8px) clamp(10px, 3vw, 15px);
    border-radius: 20px;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .wallet-status.pending {
        background: rgba(255, 193, 7, 0.2);
        color: #ffc107;
        border: 1px solid #ffc107;
    }

    .wallet-status.verified {
        background: rgba(40, 167, 69, 0.2);
        color: #28a745;
        border: 1px solid #28a745;
    }

    .wallet-status.rejected {
        background: rgba(220, 53, 69, 0.2);
        color: #dc3545;
        border: 1px solid #dc3545;
    }

.wallet-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

@media (min-width: 480px) {
    .wallet-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.wallet-action-btn {
    padding: clamp(6px, 2vw, 8px) clamp(10px, 3vw, 15px);
    border: none;
    border-radius: 8px;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wallet-action-edit {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    border: 1px solid #007bff;
}

    .wallet-action-edit:hover {
        background: #007bff;
        color: white;
    }

.wallet-action-delete {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

    .wallet-action-delete:hover {
        background: #dc3545;
        color: white;
    }

.wallet-action-copy {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid #6c757d;
}

    .wallet-action-copy:hover {
        background: #6c757d;
        color: white;
    }

.wallet-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #0f3460;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    color: #888;
}

@media (min-width: 480px) {
    .wallet-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.wallet-balance {
    color: #4ecca3;
    font-weight: 600;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

.wallet-loading {
    text-align: center;
    padding: clamp(30px, 8vw, 40px);
    color: #b8b8b8;
    font-size: clamp(1rem, 3.5vw, 1.1rem);
}

    .wallet-loading i {
        margin-right: 10px;
        color: #4ecca3;
        font-size: clamp(1.1rem, 4vw, 1.3rem);
    }

/* انیمیشن‌ها */
@keyframes walletFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* بهبود برای حالت افقی */
@media (max-height: 500px) and (orientation: landscape) {
    .wallet-modal-header {
        padding: 12px 15px;
    }

    .wallet-modal-body {
        padding: 10px 15px;
        max-height: calc(100vh - 60px);
    }

    .wallet-tabs {
        margin-bottom: 15px;
    }

    .wallet-item {
        padding: 12px 15px;
    }
}

/* اسکرول بار سفارشی */
.wallet-modal-body::-webkit-scrollbar {
    width: 6px;
}

.wallet-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.wallet-modal-body::-webkit-scrollbar-thumb {
    background: #4ecca3;
    border-radius: 3px;
}

    .wallet-modal-body::-webkit-scrollbar-thumb:hover {
        background: #2ea44f;
    }

/* حالت اسکرول برای محتوای طولانی */
.wallet-tab-content {
    max-height: 100%;
    overflow: visible;
}

.wallet-tab-pane {
    overflow: visible;
}

    /* اضافه کردن فضای کافی در انتهای محتوا برای اسکرول */
    .wallet-tab-pane > *:last-child {
        margin-bottom: 30px;
    }

@media (min-width: 768px) and (max-width: 1024px) {
    .boxes-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .box {
        height: 110px;
    }

    .box-icon {
        font-size: 28px;
    }

    .box-title {
        font-size: 13px;
    }
}

/* بهبود برای دسکتاپ */
@media (min-width: 1025px) {
    .boxes-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .box {
        height: 120px;
    }

    .box-icon {
        font-size: 32px;
    }

    .box-title {
        font-size: 14px;
    }
}

/* بهبود برای صفحات خیلی کوچک */
@media (max-width: 340px) {
    .boxes-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .box {
        height: 70px;
        width: 70px;
    }

    .box-icon {
        font-size: 22px;
        margin-bottom: 5px;
    }

    .box-title {
        font-size: 11px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

        .logo i {
            font-size: 25px;
        }

    .logo-name {
        font-size: 18px;
    }
}

@media (min-width: 290px) and (max-width: 340px) {
    .boxes-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .box {
        height: 60px;
        width: 60px;
    }

    .box-icon {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .box-title {
        font-size: 11px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

        .logo i {
            font-size: 25px;
        }

    .logo-name {
        font-size: 18px;
    }
}
/* جلوگیری از بیرون زدن محتوا */
.no-chat-container {
    overflow: hidden;
}

    .no-chat-container > * {
        max-width: 100%;
    }

/* بهبود اسکرول برای محتوای طولانی */
.no-chat-container {
    -webkit-overflow-scrolling: touch;
}

/* بهبود نمایش در حالت افقی */
@media (max-height: 500px) and (orientation: landscape) {
    .no-chat-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: flex-start;
        padding: 10px;
    }

    .logo-section {
        width: 100%;
        margin-bottom: 10px;
    }

    .boxes-container {
        width: 60%;
        margin-bottom: 64px;
    }

    .converter-section {
        width: 35%;
        margin-bottom: 10px;
    }

    .compact-ticker-container {
        width: 100%;
    }
}


/* Modal ویرایش کیف پول */
.wallet-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

    .wallet-edit-modal.show {
        display: flex;
        animation: walletModalFadeIn 0.4s ease;
    }

.wallet-edit-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.wallet-edit-modal-container {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.wallet-edit-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.wallet-edit-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .wallet-edit-modal-title i {
        font-size: 1.6rem;
    }

.wallet-edit-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

    .wallet-edit-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

.wallet-edit-modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: 60vh;
}

.wallet-edit-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wallet-edit-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wallet-edit-form-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.wallet-edit-form-input,
.wallet-edit-form-select {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

    .wallet-edit-form-input:focus,
    .wallet-edit-form-select:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .wallet-edit-form-input::placeholder {
        color: #a0aec0;
    }

.wallet-edit-form-help {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 4px;
}

.wallet-edit-currency-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.wallet-edit-currency-flag {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.wallet-edit-currency-info {
    flex: 1;
}

.wallet-edit-currency-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}

.wallet-edit-currency-code {
    font-size: 0.85rem;
    color: #718096;
}

.wallet-edit-balance {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin: 15px 0;
}

.wallet-edit-balance-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.wallet-edit-balance-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.wallet-edit-balance-currency {
    font-size: 1.1rem;
    opacity: 0.9;
}

.wallet-edit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.wallet-edit-btn {
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wallet-edit-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .wallet-edit-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }

.wallet-edit-btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #4a5568;
}

    .wallet-edit-btn-outline:hover {
        border-color: #cbd5e0;
        background: #f7fafc;
    }

.wallet-edit-btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    grid-column: span 2;
    margin-top: 10px;
}

    .wallet-edit-btn-danger:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(245, 101, 101, 0.3);
    }

.wallet-edit-transactions {
    margin-top: 25px;
    border-top: 2px solid #e2e8f0;
    padding-top: 20px;
}

.wallet-edit-transactions-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.wallet-edit-transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.wallet-edit-transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.wallet-edit-transaction-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.wallet-edit-transaction-info {
    flex: 1;
}

.wallet-edit-transaction-type {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.wallet-edit-transaction-date {
    font-size: 0.8rem;
    color: #718096;
}

.wallet-edit-transaction-amount {
    font-weight: 600;
    color: #48bb78;
}

    .wallet-edit-transaction-amount.negative {
        color: #f56565;
    }

.wallet-edit-modal-footer {
    padding: 20px 30px;
    background: #f7fafc;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* انیمیشن‌ها */
@keyframes walletModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes walletSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wallet-edit-modal-container {
    animation: walletSlideIn 0.4s ease;
}

/* استایل‌های responsive */
@media (max-width: 768px) {
    .wallet-edit-modal {
        padding: 15px;
    }

    .wallet-edit-modal-container {
        max-width: 100%;
        max-height: 95vh;
    }

    .wallet-edit-modal-header {
        padding: 20px;
    }

    .wallet-edit-modal-body {
        padding: 20px;
    }

    .wallet-edit-actions {
        grid-template-columns: 1fr;
    }

    .wallet-edit-btn-danger {
        grid-column: span 1;
    }

    .wallet-edit-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .wallet-edit-balance-amount {
        font-size: 1.7rem;
    }
}

/* اسکرول بار سفارشی */
.wallet-edit-modal-body::-webkit-scrollbar {
    width: 8px;
}

.wallet-edit-modal-body::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 4px;
}

.wallet-edit-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.wallet-edit-transaction-list::-webkit-scrollbar {
    width: 6px;
}

.wallet-edit-transaction-list::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.wallet-edit-transaction-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

/* افکت‌های ویژه */
.wallet-edit-form-input:disabled {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
}

.wallet-edit-currency-display:hover {
    border-color: #cbd5e0;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.wallet-edit-transaction-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
    transition: all 0.2s ease;
}

/* وضعیت‌های مختلف */
.wallet-edit-status {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 5px;
    display: inline-block;
}

    .wallet-edit-status.active {
        background: #c6f6d5;
        color: #2f855a;
    }

    .wallet-edit-status.inactive {
        background: #fed7d7;
        color: #c53030;
    }

    .wallet-edit-status.pending {
        background: #feebcb;
        color: #c05621;
    }

.open-history-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, #4ecca3 0%, #2ea44f 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 50px auto;
    transition: all 0.3s ease;
}

    .open-history-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(78, 204, 163, 0.4);
    }

/* استایل Modal تاریخچه - تمام صفحه */
.history-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
    border-radius: 0;
}

    .history-modal.show {
        display: flex;
        animation: historyFadeIn 0.3s ease;
    }

.history-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(15px, 5vw, 25px);
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    color: white;
    border-bottom: 2px solid #0f3460;
    flex-shrink: 0;
}

.history-modal-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 15px);
}

    .history-modal-title i {
        color: #4ecca3;
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

.history-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: clamp(35px, 10vw, 45px);
    height: clamp(35px, 10vw, 45px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: clamp(1rem, 4vw, 1.2rem);
}

    .history-modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

.history-modal-body {
    flex: 1;
    padding: clamp(15px, 4vw, 20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 80px);
}

/* تب‌ها */
.history-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: clamp(15px, 4vw, 25px);
    border: 1px solid #0f3460;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .history-tabs::-webkit-scrollbar {
        display: none;
    }

.history-tab {
    flex: 1;
    min-width: 120px;
    padding: clamp(10px, 3vw, 12px) clamp(12px, 3vw, 15px);
    border: none;
    background: transparent;
    color: #b8b8b8;
    cursor: pointer;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, 2vw, 8px);
    font-size: clamp(0.8rem, 3vw, 0.95rem);
}

    .history-tab.active {
        background: linear-gradient(135deg, #4ecca3 0%, #2ea44f 100%);
        color: white;
        box-shadow: 0 5px 15px rgba(78, 204, 163, 0.3);
    }

    .history-tab:hover:not(.active) {
        background: rgba(255, 255, 255, 0.05);
        color: white;
    }

/* محتوای تب‌ها */
.history-tab-pane {
    display: none;
    animation: historyFadeIn 0.3s ease;
}

    .history-tab-pane.active {
        display: block;
    }

/* فیلترها و جستجو */
.history-filters {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 3vw, 15px);
    margin-bottom: clamp(15px, 4vw, 25px);
    align-items: center;
}

.history-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.history-search-input {
    width: 100%;
    padding: clamp(10px, 3vw, 12px) clamp(15px, 3vw, 20px) clamp(10px, 3vw, 12px) clamp(35px, 3vw, 40px);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #0f3460;
    border-radius: 12px;
    color: white;
    font-size: clamp(0.85rem, 3vw, 1rem);
    transition: all 0.3s ease;
}

    .history-search-input:focus {
        outline: none;
        border-color: #4ecca3;
        box-shadow: 0 0 0 3px rgba(78, 204, 163, 0.2);
        background: rgba(255, 255, 255, 0.15);
    }

.history-search-icon {
    position: absolute;
    left: clamp(12px, 3vw, 15px);
    top: 50%;
    transform: translateY(-50%);
    color: #b8b8b8;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

.history-filter-select {
    padding: clamp(10px, 3vw, 12px) clamp(15px, 3vw, 20px);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #0f3460;
    border-radius: 12px;
    color: white;
    font-size: clamp(0.85rem, 3vw, 1rem);
    transition: all 0.3s ease;
    min-width: 150px;
}

    .history-filter-select:focus {
        outline: none;
        border-color: #4ecca3;
        box-shadow: 0 0 0 3px rgba(78, 204, 163, 0.2);
    }

/* لیست تاریخچه */
.history-list {
    display: grid;
    gap: clamp(12px, 3vw, 15px);
    padding-bottom: 20px;
}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #0f3460;
    border-radius: 15px;
    padding: clamp(15px, 3vw, 20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 3vw, 12px);
}

    .history-item:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: #4ecca3;
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.history-item-title {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    font-weight: 600;
    color: #4ecca3;
}

.history-item-date {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    color: #b8b8b8;
    white-space: nowrap;
}

.history-item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(10px, 3vw, 15px);
}

.history-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.history-detail-label {
    font-size: clamp(0.8rem, 2.5vw, 0.85rem);
    color: #b8b8b8;
}

.history-detail-value {
    font-size: clamp(0.9rem, 3vw, 1rem);
    font-weight: 600;
    color: white;
}

    .history-detail-value.positive {
        color: #4ecca3;
    }

    .history-detail-value.negative {
        color: #ff6b6b;
    }

.history-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: clamp(10px, 3vw, 12px);
    border-top: 1px solid #0f3460;
    margin-top: clamp(5px, 2vw, 8px);
}

.history-item-status {
    padding: clamp(4px, 2vw, 6px) clamp(8px, 3vw, 12px);
    border-radius: 20px;
    font-size: clamp(0.75rem, 2.5vw, 0.8rem);
    font-weight: 600;
}

.history-status-completed {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.history-status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.history-status-failed {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.history-item-actions {
    display: flex;
    gap: clamp(8px, 2vw, 10px);
}

.history-action-btn {
    padding: clamp(6px, 2vw, 8px) clamp(10px, 3vw, 12px);
    border: none;
    border-radius: 8px;
    font-size: clamp(0.75rem, 2.5vw, 0.8rem);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.history-action-details {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    border: 1px solid #007bff;
}

    .history-action-details:hover {
        background: #007bff;
        color: white;
    }

.history-action-repeat {
    background: rgba(78, 204, 163, 0.2);
    color: #4ecca3;
    border: 1px solid #4ecca3;
}

    .history-action-repeat:hover {
        background: #4ecca3;
        color: white;
    }

/* صفحه‌بندی */
.history-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 2vw, 12px);
    margin-top: clamp(20px, 4vw, 30px);
    padding: clamp(15px, 3vw, 20px) 0;
    border-top: 1px solid #0f3460;
}

.history-pagination-btn {
    padding: clamp(8px, 2vw, 10px) clamp(12px, 3vw, 15px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #0f3460;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.85rem, 3vw, 1rem);
    display: flex;
    align-items: center;
    gap: 5px;
}

    .history-pagination-btn:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.15);
        border-color: #4ecca3;
    }

    .history-pagination-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.history-pagination-info {
    font-size: clamp(0.85rem, 3vw, 1rem);
    color: #b8b8b8;
    margin: 0 clamp(10px, 3vw, 15px);
}

/* وضعیت خالی */
.history-empty {
    text-align: center;
    padding: clamp(40px, 8vw, 60px) clamp(20px, 5vw, 30px);
    color: #b8b8b8;
}

.history-empty-icon {
    font-size: clamp(3rem, 10vw, 5rem);
    color: #4ecca3;
    margin-bottom: clamp(15px, 4vw, 20px);
}

.history-empty-text {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin-bottom: clamp(15px, 4vw, 20px);
}

.history-empty-btn {
    padding: clamp(10px, 3vw, 12px) clamp(20px, 4vw, 25px);
    background: linear-gradient(135deg, #4ecca3 0%, #2ea44f 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .history-empty-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(78, 204, 163, 0.4);
    }

/* انیمیشن‌ها */
@keyframes historyFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* بهبود برای حالت افقی */
@media (max-height: 500px) and (orientation: landscape) {
    .history-modal-header {
        padding: 12px 15px;
    }

    .history-modal-body {
        padding: 10px 15px;
        max-height: calc(100vh - 60px);
    }

    .history-tabs {
        margin-bottom: 12px;
    }

    .history-item {
        padding: 12px 15px;
    }
}

/* اسکرول بار سفارشی */
.history-modal-body::-webkit-scrollbar {
    width: 6px;
}

.history-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.history-modal-body::-webkit-scrollbar-thumb {
    background: #4ecca3;
    border-radius: 3px;
}

    .history-modal-body::-webkit-scrollbar-thumb:hover {
        background: #2ea44f;
    }

/* استایل Modal دعوت - تمام صفحه */
.invite-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
    border-radius: 0;
}

    .invite-modal.show {
        display: flex;
        animation: inviteFadeIn 0.3s ease;
    }

.invite-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(15px, 5vw, 25px);
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    color: white;
    border-bottom: 2px solid #0f3460;
    flex-shrink: 0;
}

.invite-modal-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 15px);
}

    .invite-modal-title i {
        color: #4ecca3;
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

.invite-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: clamp(35px, 10vw, 45px);
    height: clamp(35px, 10vw, 45px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: clamp(1rem, 4vw, 1.2rem);
}

    .invite-modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

.invite-modal-body {
    flex: 1;
    padding: clamp(15px, 4vw, 30px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 80px);
    /* حذف display: flex و justify-content: center */
}

/* بخش کد دعوت */
.invite-code-section {
    background: linear-gradient(135deg, rgba(78, 204, 163, 0.1) 0%, rgba(46, 164, 79, 0.1) 100%);
    border: 2px solid rgba(78, 204, 163, 0.2);
    border-radius: 20px;
    padding: clamp(20px, 5vw, 30px);
    text-align: center;
    margin-bottom: clamp(20px, 5vw, 30px);
    /* اضافه کردن margin-top برای فاصله از هدر */
    margin-top: 20px;
}

.invite-code-title {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    color: #4ecca3;
    margin-bottom: clamp(15px, 4vw, 20px);
    font-weight: 600;
}

.invite-code-value {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed #4ecca3;
    border-radius: 15px;
    padding: clamp(15px, 4vw, 20px);
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 3px;
    color: white;
    margin-bottom: clamp(15px, 4vw, 20px);
    direction: ltr;
    font-family: monospace;
    /* اضافه کردن break-word برای جلوگیری از بیرون زدن */
    word-break: break-word;
}

.invite-actions {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 3vw, 15px);
    flex-wrap: wrap;
}

.invite-btn {
    padding: clamp(10px, 3vw, 12px) clamp(15px, 4vw, 20px);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: clamp(5px, 2vw, 8px);
}

.invite-btn-copy {
    background: linear-gradient(135deg, #4ecca3 0%, #2ea44f 100%);
    color: white;
}

    .invite-btn-copy:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(78, 204, 163, 0.4);
    }

.invite-btn-share {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .invite-btn-share:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

/* بخش آمار دعوت */
.invite-stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(15px, 4vw, 20px);
    margin-bottom: clamp(20px, 5vw, 30px);
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #0f3460;
    border-radius: 15px;
    padding: clamp(15px, 4vw, 20px);
    text-align: center;
    transition: all 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        border-color: #4ecca3;
    }

.stat-icon {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    color: #4ecca3;
    margin-bottom: clamp(10px, 3vw, 15px);
}

.stat-value {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    font-size: clamp(0.9rem, 3vw, 1rem);
    color: #b8b8b8;
}

/* انیمیشن‌ها */
@keyframes inviteFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* بهبود برای حالت افقی */
@media (max-height: 500px) and (orientation: landscape) {
    .invite-modal-header {
        padding: 12px 15px;
    }

    .invite-modal-body {
        padding: 10px 15px;
        max-height: calc(100vh - 60px);
    }

    .invite-code-section {
        padding: 15px;
        margin-top: 10px;
    }

    .invite-stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* اسکرول بار سفارشی */
.invite-modal-body::-webkit-scrollbar {
    width: 6px;
}

.invite-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.invite-modal-body::-webkit-scrollbar-thumb {
    background: #4ecca3;
    border-radius: 3px;
}

    .invite-modal-body::-webkit-scrollbar-thumb:hover {
        background: #2ea44f;
    }

/* بهبود برای موبایل */
@media (max-width: 768px) {
    .invite-modal-body {
        padding: 15px;
    }

    .invite-code-section {
        margin-top: 10px;
        padding: 20px 15px;
    }

    .invite-code-value {
        font-size: 1.3rem;
        padding: 12px;
    }

    .invite-actions {
        flex-direction: column;
    }

    .invite-btn {
        width: 100%;
    }
}

.admin-panel-container {
    padding: 1rem;
    color: white;
    overflow: auto;
    z-index: 10000;
    width: 100%;
    margin: 0 auto;
    /* اسکرول بار ظریف و نامرئی */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

    /* استایل اسکرول بار برای مرورگرهای مبتنی بر Webkit */
    .admin-panel-container::-webkit-scrollbar {
        width: 6px;
    }

    .admin-panel-container::-webkit-scrollbar-track {
        background: transparent;
    }

    .admin-panel-container::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
    }

        .admin-panel-container::-webkit-scrollbar-thumb:hover {
            background-color: rgba(255, 255, 255, 0.3);
        }

.admin-header {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.admin-header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-welcome h2 {
    margin: 0;
    font-size: clamp(var(--font-size-lg), 4vw, var(--font-size-2xl));
    font-weight: bold;
}

.admin-welcome p {
    margin: 0.5rem 0 0 0;
    opacity: 0.8;
    font-size: clamp(var(--font-size-sm), 3vw, var(--font-size-base));
}

.admin-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: clamp(var(--font-size-xs), 2.5vw, var(--font-size-sm));
}

/* تب‌ها */
.admin-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    overflow-x: auto;
    scrollbar-width: none;
}

    .admin-tabs::-webkit-scrollbar {
        display: none;
    }

.admin-tab {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
    flex: 1;
    text-align: center;
    font-size: clamp(var(--font-size-xs), 2.5vw, var(--font-size-base));
}

    .admin-tab.active {
        background: rgba(255, 255, 255, 0.2);
        font-weight: bold;
    }

.admin-tab-content {
    display: none;
}

    .admin-tab-content.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* کارت‌های مدیریت */
.admin-cards-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .admin-card:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.2);
    }

.admin-card-icon {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-left: 0.5rem;
    color: #64b5f6;
}

.admin-card-content {
    flex: 1;
}

    .admin-card-content h3 {
        margin: 0 0 0.3rem 0;
        font-size: clamp(var(--font-size-sm), 3vw, var(--font-size-lg));
    }

    .admin-card-content p {
        margin: 0;
        font-size: clamp(var(--font-size-xs), 2.5vw, var(--font-size-sm));
        opacity: 0.8;
    }

.card-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    font-size: clamp(0.5rem, 2vw, 0.75rem);
    margin-top: 0.5rem;
}

.badge-warning {
    background: rgba(255, 193, 7, 0.3);
}

.badge-info {
    background: rgba(33, 150, 243, 0.3);
}

.badge-success {
    background: rgba(76, 175, 80, 0.3);
}

.admin-card-arrow {
    opacity: 0.6;
    font-size: clamp(0.8rem, 3vw, 1rem);
}

/* نمودارها */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.chart-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: clamp(var(--font-size-sm), 2.5vw, var(--font-size-base));
}

.chart-container {
    height: 60px;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(var(--font-size-xs), 2.5vw, var(--font-size-sm));
    opacity: 0.8;
}

.chart-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-value {
    font-size: clamp(var(--font-size-xs), 2.5vw, var(--font-size-sm));
    font-weight: bold;
}

.chart-change {
    font-size: clamp(0.5rem, 2vw, 0.75rem);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

    .chart-change.positive {
        background: rgba(76, 175, 80, 0.3);
        color: #4caf50;
    }

    .chart-change.negative {
        background: rgba(244, 67, 54, 0.3);
        color: #f44336;
    }

/* اعلان‌ها */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.notification-icon {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #64b5f6;
    margin-top: 0.2rem;
}

.notification-content {
    flex: 1;
}

    .notification-content p {
        margin: 0 0 0.3rem 0;
        font-size: clamp(var(--font-size-xs), 2.5vw, var(--font-size-sm));
    }

.notification-time {
    font-size: clamp(0.6rem, 2vw, 0.75rem);
    opacity: 0.7;
}

/* رسپانسیو برای تبلت */
@media (min-width: 640px) {
    .admin-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* رسپانسیو برای تبلت بزرگ */
@media (min-width: 768px) {
    .admin-header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .admin-tabs {
        justify-content: center;
    }

    .admin-tab {
        flex: none;
        min-width: 120px;
    }
}

/* رسپانسیو برای دسکتاپ */
@media (min-width: 1024px) {
    .admin-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .charts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* رسپانسیو برای موبایل */
@media (max-width: 480px) {
    .admin-header {
        padding: 1rem;
    }

    .admin-card {
        padding: 0.8rem;
    }

    .admin-tab {
        padding: 0.7rem 0.5rem;
    }

    .stat-item {
        padding: 0.4rem 0.8rem;
        font-size: var(--font-size-xs);
    }
}

.mst {
    width: 100%;
    z-index: 100;
}

.auth-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-size: 14px;
    border: 1px solid #ffcdd2;
}

.auth-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-size: 14px;
    border: 1px solid #c8e6c9;
}

.password-reset-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

    .password-reset-link a {
        color: #2196f3;
        text-decoration: none;
        cursor: pointer;
    }

        .password-reset-link a:hover {
            text-decoration: underline;
        }

/* استایل‌های اختصاصی برای بخش فراموشی رمز عبور */
.forgot-password-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.forgot-password-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

    .forgot-password-actions button {
        flex: 1;
        margin: 0 5px;
    }

.back-to-login {
    background-color: #f5f5f5 !important;
    color: #333 !important;
}

.lockout-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease;
}

.lockout-content {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    margin: 10% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: slideIn 0.4s ease;
}

.lockout-header {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    color: white;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .lockout-header i {
        font-size: 48px;
        margin-bottom: 10px;
    }

    .lockout-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
    }

.lockout-body {
    padding: 25px;
    text-align: center;
}

    .lockout-body p {
        color: #555;
        line-height: 1.6;
        margin-bottom: 25px;
    }

.lockout-timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.lockout-timer-circle {
    position: relative;
    width: 100px;
    height: 100px;
}

.lockout-progress {
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
}

.progress-background {
    fill: none;
    stroke: #f1f2f6;
    stroke-width: 6;
}

.progress-bar {
    fill: none;
    stroke: #ff4757;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
}

.lockout-time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #ff4757;
}

.lockout-time-text {
    margin-top: 10px;
    color: #888;
    font-size: 14px;
}

.lockout-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.lockout-button {
    background-color: #ff4757;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

    .lockout-button:not(:disabled):hover {
        background-color: #ff2e43;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
    }

    .lockout-button:disabled {
        cursor: not-allowed;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .lockout-content {
        width: 95%;
        margin: 5% auto;
    }

    .lockout-header {
        padding: 15px;
    }

    .lockout-body {
        padding: 20px;
    }
}
/* جهت راست به چپ برای فارسی */
.modal-rtl {
    direction: rtl;
    text-align: right;
}

/* جهت چپ به راست برای سایر زبان‌ها */
.modal-ltr {
    direction: ltr;
    text-align: left;
}

/* استایل‌های خاص برای مدال‌ها با جهت RTL */
.modal-rtl .profile-header,
.modal-rtl .profile-tabs,
.modal-rtl .profile-body,
.modal-rtl .form-group,
.modal-rtl .upload-area {
    direction: rtl;
    text-align: right;
}

    .modal-rtl .form-group label {
        text-align: right;
        float: right;
        margin-left: 0;
        margin-right: 10px;
    }

.modal-rtl .profile-tab {
    margin-left: 0;
    margin-right: 20px;
}

.modal-rtl .profile-close {
    left: 15px;
    right: auto;
}

/* استایل‌های خاص برای مدال‌ها با جهت LTR */
.modal-ltr .profile-header,
.modal-ltr .profile-tabs,
.modal-ltr .profile-body,
.modal-ltr .form-group,
.modal-ltr .upload-area {
    direction: ltr;
    text-align: left;
}

    .modal-ltr .form-group label {
        text-align: left;
        float: left;
        margin-right: 0;
        margin-left: 10px;
    }

.modal-ltr .profile-tab {
    margin-right: 0;
    margin-left: 20px;
}

.modal-ltr .profile-close {
    right: 15px;
    left: auto;
}

/* استایل مدال راهنما */
.qp-verification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 10000;
    overflow-y: auto;
}

    .qp-verification-modal.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

.qp-verification-container {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.qp-verification-header {
    background: linear-gradient(90deg, #4a00e0 0%, #8e2de2 100%);
    color: white;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    direction: ltr;
}

.qp-verification-back {
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.3s;
}

    .qp-verification-back:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.qp-verification-header h1 {
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0;
}

.qp-verification-content {
    padding: 20px 15px;
}

.qp-verification-text {
    background: linear-gradient(to right, #f3e5f5, #e8f5e9);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-right: 5px solid #8e2de2;
}

    .qp-verification-text p {
        margin-bottom: 15px;
        line-height: 1.7;
        font-size: 1rem;
    }

    .qp-verification-text strong {
        color: #4a00e0;
    }

.qp-verification-notes {
    background: #fff8e1;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-right: 5px solid #ff9800;
}

    .qp-verification-notes h3 {
        color: #ff6f00;
        margin-bottom: 15px;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .qp-verification-notes ul {
        padding-right: 20px;
        margin-bottom: 15px;
    }

    .qp-verification-notes li {
        margin-bottom: 10px;
        line-height: 1.6;
    }

    .qp-verification-notes p {
        line-height: 1.6;
        font-weight: 500;
    }

.qp-verification-examples {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.qp-verification-example {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.qp-verification-example-content {
    padding: 15px;
    background: #f5f5f5;
}

.qp-verification-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.qp-verification-example:first-child .qp-verification-badge {
    background: #4caf50;
    color: white;
}

.qp-verification-example:last-child .qp-verification-badge {
    background: #f44336;
    color: white;
}

.qp-verification-example h4 {
    margin-bottom: 8px;
    color: #333;
    font-size: 1.1rem;
}

.qp-verification-example p {
    color: #666;
    font-size: 0.9rem;
}

.qp-verification-example img {
    width: 100%;
    /*! height: 200px; */
    object-fit: cover;
    display: block;
}

.qp-verification-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.qp-verification-btn {
    padding: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qp-verification-btn-primary {
    background: linear-gradient(90deg, #4a00e0 0%, #8e2de2 100%);
    color: white;
}

    .qp-verification-btn-primary:active {
        transform: scale(0.98);
    }

.qp-verification-footer {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 30px;
}

/* دکمه نمایش مدال */
.show-modal-btn {
    background: linear-gradient(90deg, #4a00e0 0%, #8e2de2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.2);
}

    .show-modal-btn:active {
        transform: scale(0.98);
    }

/* رسپانسیو برای تبلت */
@media (min-width: 768px) {
    .qp-verification-container {
        max-width: 700px;
    }

    .qp-verification-header {
        padding: 20px 25px;
    }

        .qp-verification-header h1 {
            font-size: 1.6rem;
        }

    .qp-verification-content {
        padding: 25px;
    }

    .qp-verification-examples {
        /*! grid-template-columns: 1fr 1fr; */
    }

    .qp-verification-actions {
        flex-direction: row;
    }

    .qp-verification-btn {
        flex: 1;
    }
}

/* رسپانسیو برای دسکتاپ */
@media (min-width: 1024px) {
    .qp-verification-container {
        max-width: 800px;
    }

    .qp-verification-content {
        padding: 30px;
    }
}

/* تنظیمات فونت بر اساس سایز صفحه */
@media (max-width: 360px) {
    .qp-verification-header h1 {
        font-size: 1.2rem;
    }

    .qp-verification-text p, .qp-verification-notes {
        font-size: 0.95rem;
    }

    .show-modal-btn {
        font-size: 1rem;
        padding: 14px 25px;
    }
}

/* استایل‌های بخش آپلود مدارک */
.documents-section, .verification-sample-section {
    margin: 30px 0;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(to bottom right, #f8f9fa, #ffffff);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

    .documents-section h3, .verification-sample-section h3 {
        color: #E30A17;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px dashed #e0e0e0;
    }

.section-description {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.document-upload-form {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.document-upload-area {
    cursor: pointer;
    margin: 15px 0;
    padding: 30px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    background: #fafafa;
}

    .document-upload-area:hover {
        border-color: #E30A17;
        background: #fff5f5;
    }

    .document-upload-area i {
        font-size: 2.5rem;
        color: #E30A17;
        margin-bottom: 10px;
    }

    .document-upload-area p {
        color: #6c757d;
        margin: 0;
    }

.document-file-input {
    display: none;
}

.add-document-btn {
    background: linear-gradient(90deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
}

    .add-document-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 10px rgba(46, 125, 50, 0.3);
    }

.documents-list {
    margin-top: 20px;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #FF9A00;
    transition: transform 0.3s;
}

    .document-item:hover {
        transform: translateX(-5px);
    }

.document-info {
    flex-grow: 1;
}

.document-name {
    font-weight: bold;
    color: #333;
}

.document-status {
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 5px;
}

.status-pending {
    background-color: #ff9800;
    color: white;
}

.status-approved {
    background-color: #4CAF50;
    color: white;
}

.document-actions button {
    margin-left: 10px;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.delete-document {
    background: linear-gradient(90deg, #ff5252 0%, #c50e29 100%);
    color: white;
}

    .delete-document:hover {
        box-shadow: 0 3px 8px rgba(197, 14, 41, 0.3);
    }

    .delete-document:disabled {
        background: #ccc;
        cursor: not-allowed;
        box-shadow: none;
    }

.sample-upload-area {
    position: relative;
    cursor: pointer;
    padding: 40px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s;
    background: #fafafa;
}

    .sample-upload-area:hover {
        border-color: #E30A17;
        background: #fff5f5;
    }

    .sample-upload-area i {
        font-size: 3rem;
        color: #E30A17;
        margin-bottom: 15px;
    }

.sample-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.guide-btn, .download-sample-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
}

.guide-btn {
    background: linear-gradient(90deg, #2196F3 0%, #0D47A1 100%);
    color: white;
}

.download-sample-btn {
    background: linear-gradient(90deg, #9C27B0 0%, #6A1B9A 100%);
    color: white;
}

    .guide-btn:hover, .download-sample-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

.uploaded-sample {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: white;
}

.sample-preview {
    margin: 15px 0;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

    .sample-preview img {
        width: 100%;
        height: auto;
        display: block;
    }

.change-sample-btn {
    background: linear-gradient(90deg, #FF9800 0%, #EF6C00 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

    .change-sample-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 10px rgba(255, 152, 0, 0.3);
    }

.save-btn {
    background: linear-gradient(90deg, #E30A17 0%, #B30610 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    margin: 30px auto 10px;
    transition: all 0.3s;
    width: 100%;
    max-width: 250px;
}

    .save-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(227, 10, 23, 0.3);
    }

.empty-state {
    text-align: center;
    padding: 30px;
    color: #888;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px dashed #ddd;
}

/* طراحی واکنشگرا */
@media (max-width: 768px) {
    .profile-tabs {
        /*! flex-direction: column; */
    }

    .sample-actions {
        flex-direction: column;
    }

    .document-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .document-actions {
        margin-top: 15px;
        align-self: flex-end;
    }
}
/* حالت‌های مختلف زبان */
[dir="ltr"] .compact-ticker-container {
    direction: ltr;
}

[dir="ltr"] .compact-item {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

[dir="ltr"] .currency-icon {
    margin-left: 0;
    margin-right: 15px;
}

[dir="ltr"] .change-percent {
    margin-left: 0;
    margin-right: 15px;
}

[dir="ltr"] .price-range {
    margin-right: 0;
    margin-left: 15px;
}

[dir="ltr"] .price-label {
    margin-left: 0;
    margin-right: 5px;
}

.modal-rtl .deposit-form-label,
.modal-rtl .deposit-step-title,
.modal-rtl .deposit-summary-title,
.modal-rtl .deposit-form-help {
    text-align: right;
}

.modal-rtl .deposit-input-group {
    direction: rtl;
}

.modal-rtl .deposit-input-currency {
    left: 10px;
    right: auto;
}

.modal-rtl .deposit-btn i {
    margin-left: 8px;
    margin-right: 0;
}

.modal-ltr .deposit-form-label,
.modal-ltr .deposit-step-title,
.modal-ltr .deposit-summary-title,
.modal-ltr .deposit-form-help {
    text-align: left;
}

.modal-ltr .deposit-input-group {
    direction: ltr;
}

.modal-ltr .deposit-input-currency {
    right: 10px;
    left: auto;
}

.modal-ltr .deposit-btn i {
    margin-right: 8px;
    margin-left: 0;
}

/* استایل‌های خاص برای دکمه‌ها در حالت LTR */
.modal-ltr .deposit-btn-secondary i {
    order: 2;
    margin-left: 8px;
    margin-right: 0;
}

.modal-ltr .deposit-btn-primary i {
    order: 2;
    margin-left: 8px;
    margin-right: 0;
}

/* پنل پروفایل اختصاصی */
.profilemaster-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    direction: rtl;
}

.profilemaster-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.profilemaster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

    .profilemaster-header h2 {
        margin: 0;
        font-size: 18px;
        color: #333;
    }

.profilemaster-close {
    cursor: pointer;
    font-size: 20px;
    color: #777;
    transition: color 0.3s;
}

    .profilemaster-close:hover {
        color: #333;
    }

.profilemaster-body {
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

/* بخش آواتار */
.profilemaster-avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.avatar-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid #e0e0e0;
    cursor: pointer;
}

    .avatar-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.avatar-preview:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    font-size: 24px;
    margin-bottom: 5px;
}

.avatar-overlay span {
    font-size: 12px;
}

/* فرم پروفایل */
.profilemaster-form-group {
    margin-bottom: 15px;
}

    .profilemaster-form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
        color: #333;
    }

    .profilemaster-form-group input {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 14px;
        transition: border-color 0.3s;
    }

        .profilemaster-form-group input:focus {
            border-color: #4a90e2;
            outline: none;
        }

        .profilemaster-form-group input:disabled {
            background-color: #f5f5f5;
            color: #777;
        }

.profilemaster-form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #777;
}

/* بخش تغییر رمز عبور */
.profilemaster-password-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

    .profilemaster-password-section h3 {
        margin: 0 0 15px 0;
        font-size: 16px;
        color: #333;
    }

/* دکمه‌های اقدام */
.profilemaster-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.profilemaster-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.profilemaster-btn-primary {
    background-color: #4a90e2;
    color: white;
}

    .profilemaster-btn-primary:hover {
        background-color: #3a7bc8;
    }

.profilemaster-btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

    .profilemaster-btn-secondary:hover {
        background-color: #e0e0e0;
    }

/* رسپانسیو */
@media (max-width: 576px) {
    .profilemaster-content {
        width: 95%;
    }

    .profilemaster-actions {
        flex-direction: column;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 10100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h3 {
        margin: 0;
        color: #333;
    }

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover {
        color: #000;
    }

.modal-body {
    padding: 20px;
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: left;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn:hover {
    opacity: 0.8;
}
/* استایل‌های Modal افزودن مقصد */
.destination-type-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.destination-type-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

    .destination-type-card:hover {
        border-color: #2196F3;
        background: #f8fdff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
    }

    .destination-type-card.active {
        border-color: #2196F3;
        background: linear-gradient(135deg, #f8fdff 0%, #e3f2fd 100%);
    }

.destination-type-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 12px;
    margin-left: 15px;
}

.destination-type-card[data-type="crypto"] .destination-type-icon {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.destination-type-icon i {
    font-size: 24px;
    color: white;
}

.destination-type-content {
    flex: 1;
}

    .destination-type-content h3 {
        margin: 0 0 8px 0;
        font-size: 16px;
        font-weight: 600;
        color: #333;
    }

    .destination-type-content p {
        margin: 0;
        font-size: 14px;
        color: #666;
        line-height: 1.5;
    }

.destination-type-arrow {
    color: #999;
    transition: all 0.3s ease;
}

.destination-type-card:hover .destination-type-arrow {
    color: #2196F3;
    transform: translateX(-3px);
}

/* استایل‌های فرم */
.deposit-form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

    .deposit-form-textarea:focus {
        outline: none;
        border-color: #2196F3;
        box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    }

    .deposit-form-textarea.error {
        border-color: #f44336;
        background: #fff5f5;
    }

.address-match {
    color: #4caf50;
    font-weight: 500;
}

.address-mismatch {
    color: #f44336;
    font-weight: 500;
}

/* استایل شبکه‌ها بر اساس ارز انتخاب شده */
.network-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.network-fee {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

#withdrawModal .deposit-step-content[data-step="1"] {
    display: none;
}

#withdrawModal .deposit-step-content[data-step="2"] {
    display: none;
}

#withdrawModal .deposit-step-content[data-step="3"] {
    display: none;
}

#withdrawModal .deposit-step-content[data-step="1"].active {
    display: block;
}

#withdrawModal .deposit-step-content[data-step="2"].active {
    display: block;
}

#withdrawModal .deposit-step-content[data-step="3"].active {
    display: block;
}

.history-statistics {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
}

/* استایل مودال ثبت سفارش */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h3 {
        margin: 0;
        color: #333;
    }

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.order-type-selector {
    display: flex;
    margin: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.order-type {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.3s;
}

    .order-type.active {
        background: #E30A17;
        color: white;
    }

.currency-selector {
    display: flex;
    margin: 0 20px;
    gap: 10px;
}

.currency-option {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

    .currency-option.active {
        border-color: #E30A17;
        background: #fff5f5;
    }

    .currency-option img {
        width: 24px;
        height: 16px;
        margin-right: 5px;
    }

.price-info {
    margin: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.amount-input {
    margin: 20px;
}

.input-group {
    position: relative;
    margin: 10px 0;
}

    .input-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        text-align: left;
        direction: ltr;
    }

.currency-symbol {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.converted-amount {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.wallet-selection, .bank-selection {
    margin: 20px;
}

    .wallet-selection select, .bank-selection select {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin: 10px 0;
    }

.account-info {
    margin-top: 10px;
}

    .account-info input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        margin: 5px 0;
    }

.network-fee {
    margin-top: 10px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 5px;
    font-size: 14px;
}

.total-calculation {
    margin: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.total-item {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

    .total-item.final {
        border-top: 1px solid #ddd;
        padding-top: 10px;
        font-weight: bold;
        color: #E30A17;
    }

.modal-actions {
    padding: 20px;
    display: flex;
    gap: 10px;
}

.btn-cancel, .btn-submit {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-submit {
    background: #E30A17;
    color: white;
}

    .btn-submit:disabled {
        background: #ccc;
        cursor: not-allowed;
    }
/* استایل تب سفارشات */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.order-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid transparent;
}

    .order-box:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        border-color: #2c5aa0;
    }

.order-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2c5aa0, #4a6491);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.order-info {
    flex: 1;
}

.order-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.order-desc {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Modal Styles */
.quixpal-order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.quixpal-modal-header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

    .quixpal-modal-header h3 {
        font-size: 1.4rem;
        font-weight: 600;
    }

.quixpal-close-modal {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .quixpal-close-modal:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

.quixpal-modal-body {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    overflow-y: auto;
}

/* Order Type Selector */
.quixpal-order-type-selector {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 25px;
}

.quixpal-order-type {
    flex: 1;
    text-align: center;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

    .quixpal-order-type.active {
        background-color: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        color: #2c5aa0;
    }

    .quixpal-order-type i {
        font-size: 1.2rem;
    }

/* Currency Section */
.quixpal-currency-section {
    margin-bottom: 25px;
}

    .quixpal-currency-section label {
        display: block;
        margin-bottom: 12px;
        font-weight: 600;
        color: #2c3e50;
    }

.quixpal-currency-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 15px;
}

.quixpal-currency-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

    .quixpal-currency-tab.active {
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        color: #2c5aa0;
        font-weight: 600;
    }

.quixpal-currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.quixpal-currency-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .quixpal-currency-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .quixpal-currency-item.selected {
        border-color: #2c5aa0;
        background-color: #e8f0fe;
    }

.quixpal-currency-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #2c5aa0;
}

.quixpal-currency-code {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
}

.quixpal-currency-name {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Price Info Card */
.quixpal-price-info-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
    border-left: 4px solid #2c5aa0;
}

.quixpal-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

    .quixpal-price-header h4 {
        font-weight: 600;
        color: #2c3e50;
    }

.quixpal-refresh-prices {
    background-color: #2c5aa0;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .quixpal-refresh-prices:hover {
        transform: rotate(180deg);
        background-color: #1e3a6b;
    }

.quixpal-price-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.quixpal-price-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

    .quixpal-price-item:last-child {
        border-bottom: none;
    }

.quixpal-price-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Amount Section */
.quixpal-amount-section {
    margin-bottom: 25px;
}

    .quixpal-amount-section label {
        display: block;
        margin-bottom: 12px;
        font-weight: 600;
        color: #2c3e50;
    }

.quixpal-amount-input-group {
    display: flex;
    border: 1px solid #ced4da;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

#quixpal-order-amount {
    flex: 1;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    text-align: left;
    direction: ltr;
}

.quixpal-amount-currency {
    background-color: #f8f9fa;
    padding: 15px;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
    border-right: 1px solid #ced4da;
}

.quixpal-converted-amount {
    text-align: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Payment Method Section */
.quixpal-payment-method-section {
    margin-bottom: 25px;
}

    .quixpal-payment-method-section label {
        display: block;
        margin-bottom: 12px;
        font-weight: 600;
        color: #2c3e50;
    }

.quixpal-bank-selection, .quixpal-wallet-selection {
    margin-bottom: 15px;
}

.quixpal-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 1rem;
    background-color: white;
}

.quixpal-btn-add-account, .quixpal-btn-add-wallet {
    background-color: transparent;
    border: 1px dashed #6c757d;
    color: #6c757d;
    padding: 10px 15px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: none;
}

    .quixpal-btn-add-account:hover, .quixpal-btn-add-wallet:hover {
        background-color: #f8f9fa;
        border-color: #2c5aa0;
        color: #2c5aa0;
    }

.quixpal-wallet-address {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 12px;
    word-break: break-all;
}

.quixpal-network-fee-info {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.quixpal-fee-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.quixpal-fee-note {
    font-size: 0.8rem;
    color: #856404;
}

/* Calculation Section */
.quixpal-calculation-section {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
}

.quixpal-calculation-header {
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.quixpal-calculation-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quixpal-calc-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

    .quixpal-calc-item.total {
        border-bottom: none;
        font-weight: 600;
        font-size: 1.1rem;
        color: #2c3e50;
        padding-top: 10px;
        border-top: 1px solid #ced4da;
    }

/* Modal Actions */
.quixpal-modal-actions {
    display: flex;
    gap: 15px;
    padding: 20px;
    background-color: white;
    border-top: 1px solid #dee2e6;
}

.quixpal-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quixpal-btn-secondary {
    background-color: #f8f9fa;
    color: #6c757d;
}

    .quixpal-btn-secondary:hover {
        background-color: #e9ecef;
    }

.quixpal-btn-primary {
    background-color: #2c5aa0;
    color: white;
}

    .quixpal-btn-primary:hover:not(:disabled) {
        background-color: #1e3a6b;
    }

    .quixpal-btn-primary:disabled {
        background-color: #a0aec0;
        cursor: not-allowed;
    }

/* Responsive Styles */
@media (min-width: 768px) {
    .quixpal-order-modal {
        width: 90%;
        height: 90%;
        top: 5%;
        left: 5%;
        border-radius: 12px;
        overflow: hidden;
    }

    .quixpal-price-details {
        grid-template-columns: repeat(3, 1fr);
    }

    .quixpal-price-item {
        flex-direction: column;
        text-align: center;
        border-bottom: none;
        border-right: 1px solid #dee2e6;
        padding: 0 10px;
    }

        .quixpal-price-item:last-child {
            border-right: none;
        }
}

@media (min-width: 1024px) {
    .quixpal-order-modal {
        width: 80%;
        height: 90%;
        top: 5%;
        left: 10%;
    }



    .quixpal-order-type-selector {
        grid-column: 1 / 3;
    }

    .quixpal-currency-section {
        grid-column: 1 / 2;
        grid-row: 2 / 4;
    }

    .quixpal-price-info-card {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .quixpal-amount-section {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }

    .quixpal-payment-method-section {
        grid-column: 1 / 3;
    }

    .quixpal-calculation-section {
        grid-column: 1 / 3;
    }
}

@media (min-width: 1200px) {
    .quixpal-order-modal {
        width: 70%;
        left: 15%;
    }
}

/* Animation */
@keyframes quixpal-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.quixpal-order-modal {
    animation: quixpal-fadeIn 0.3s ease;
}

/* Loading State */
.quixpal-loading {
    position: relative;
    pointer-events: none;
}

    .quixpal-loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* Error State */
.quixpal-error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.quixpal-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: quixpal-spin 1s ease-in-out infinite;
}

@keyframes quixpal-spin {
    to {
        transform: rotate(360deg);
    }
}

.quixpal-loading-message {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

/* استایل مدال موفقیت با قابلیت اسکرول */
.quixpal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    direction: rtl;
}

.success-modal {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    max-height: 85vh; /* حداکثر ارتفاع */
    overflow-y: auto; /* فعال کردن اسکرول عمودی */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid #e8f5e8;
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

    /* اسکرول بار زیبا */
    .success-modal::-webkit-scrollbar {
        width: 6px;
    }

    .success-modal::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .success-modal::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 10px;
    }

        .success-modal::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    font-size: 70px;
    color: #22c55e;
    margin-bottom: 20px;
    flex-shrink: 0; /* جلوگیری از کوچک شدن */
}

.success-title {
    font-size: 22px;
    font-weight: bold;
    color: #16a34a;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.success-message {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1; /* پر کردن فضای باقیمانده */
    min-height: 0; /* اجازه کوچک شدن */
    overflow-y: auto; /* اسکرول داخلی اگر نیاز باشد */
}

    .success-message p {
        margin-bottom: 15px;
    }

.transaction-info {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    flex-shrink: 0;
}

.info-label {
    color: #475569;
    font-weight: 500;
    font-size: 14px;
}

.info-value {
    color: #1e293b;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 13px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
    flex-shrink: 0;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .payment-method:hover {
        border-color: #3b82f6;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.payment-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-left: 15px;
    flex-shrink: 0;
}

.payment-details {
    flex: 1;
    min-width: 0; /* اجازه کوچک شدن متن */
}

.payment-title {
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 4px;
    font-size: 15px;
}

.payment-desc {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.wallet-balance {
    margin-top: 6px;
    font-size: 11px;
    color: #059669;
    display: flex;
    gap: 5px;
    align-items: center;
}

.payment-arrow {
    color: #9ca3af;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-shrink: 0;
    flex-wrap: wrap; /* در صورت نیاز خط بعدی */
}

.quixpal-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.quixpal-btn-primary {
    background: #22c55e;
    color: white;
}

    .quixpal-btn-primary:hover {
        background: #16a34a;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
    }

.quixpal-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

    .quixpal-btn-secondary:hover {
        background: #e2e8f0;
        transform: translateY(-2px);
    }

/* برای موبایل‌ها */
@media (max-width: 768px) {
    .quixpal-modal {
        padding: 10px;
    }

    .success-modal {
        padding: 20px;
        max-height: 90vh;
    }

    .payment-method {
        padding: 12px;
    }

    .payment-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-left: 10px;
    }

    .success-actions {
        flex-direction: column;
    }

    .quixpal-btn {
        width: 100%;
        justify-content: center;
    }
}

.history-action-upload {
    background: #f59e0b;
    color: white;
}

    .history-action-upload:hover {
        background: #d97706;
    }

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

    .upload-area:hover,
    .upload-area.drag-over {
        border-color: #3b82f6;
        background: #f0f9ff;
    }

.upload-placeholder i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.file-preview-item {
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

    .file-preview-item i {
        color: #3b82f6;
        margin-left: 10px;
    }

.remove-file-btn {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    margin-right: auto;
}

/* استایل‌های تب خرید/فروش */
.buy-sell-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.price-label {
    font-weight: 500;
}

.price-value {
    font-weight: bold;
    color: #374151;
}

.price-separator {
    color: #d1d5db;
}

.buy-sell-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.buy-sell-action-group {
    display: flex;
    flex-direction: column;
}

.action-input-group {
    display: flex;
    gap: 8px;
}

.buy-sell-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    text-align: left;
    direction: ltr;
}

    .buy-sell-input:focus {
        outline: none;
        border-color: #3b82f6;
    }

.buy-button {
    background: #059669 !important;
}

    .buy-button:hover {
        background: #047857 !important;
    }

.sell-button {
    background: #dc2626 !important;
}

    .sell-button:hover {
        background: #b91c1c !important;
    }

.buy-sell-button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed;
}

/* responsive */
@media (max-width: 768px) {
    .action-input-group {
        flex-direction: column;
    }

    .buy-sell-input {
        text-align: center;
    }
}
/* استایل‌های مدال و دکمه‌ها */
.quixpal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quixpal-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
}

.quixpal-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quixpal-modal-body {
    padding: 20px;
}

.quixpal-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 5px;
}

    .quixpal-modal-close:hover {
        color: #374151;
    }

/* استایل‌های دپارتمان‌ها */
.department-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.department-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    gap: 12px;
}

    .department-option:hover {
        border-color: #3b82f6;
        background: #f8fafc;
        transform: translateY(-2px);
    }

.department-icon {
    width: 50px;
    height: 50px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.department-info {
    flex: 1;
}

.department-name {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    font-size: 16px;
}

.department-desc {
    font-size: 14px;
    color: #6b7280;
}

.department-arrow {
    color: #9ca3af;
    font-size: 14px;
}

/* استایل دکمه گفتگوی جدید */
.new-chat-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

    .new-chat-btn:hover {
        background: #2563eb;
        transform: translateY(-1px);
    }

.chats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

    .chats-header h3 {
        margin: 0;
        color: #374151;
        font-size: 18px;
        font-weight: 600;
    }

.quixpal-loading-message {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 14px;
}

    .quixpal-loading-message i {
        margin-left: 8px;
        font-size: 16px;
    }

.quixpal-error-message {
    text-align: center;
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    margin: 10px 0;
}

    .quixpal-error-message i {
        margin-left: 8px;
    }

/* مدال تمام صفحه */
.fullpage-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

    .fullpage-modal.show {
        display: flex;
    }

    .fullpage-modal .quixpal-modal-content {
        width: 90%;
        max-width: 800px;
        height: 90vh;
        max-height: 800px;
        background: white;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

/* تب‌های تنظیمات */
.settings-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 20px;
}

.settings-tab {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .settings-tab.active {
        color: #3b82f6;
        border-bottom-color: #3b82f6;
        background: white;
    }

    .settings-tab i {
        margin-left: 8px;
    }

    .settings-tab:hover {
        color: #1d4ed8;
        background: #f1f5f9;
    }

/* محتوای تنظیمات */
.settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.settings-tab-pane {
    display: none;
}

    .settings-tab-pane.active {
        display: block;
    }

/* بخش‌های تنظیمات */
.settings-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

    .settings-section h4 {
        margin-bottom: 15px;
        color: #374151;
        font-size: 16px;
    }

        .settings-section h4 i {
            margin-left: 8px;
            color: #3b82f6;
        }

/* فرم‌ها */
.settings-form {
    max-width: 400px;
}

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        color: #374151;
        font-weight: 500;
    }

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

    .form-control:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

/* toggle switches */
.toggle-group {
    margin: 15px 0;
}

.toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
}

.toggle-text {
    color: #374151;
    font-weight: 500;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #10b981;
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }

.slider.round {
    border-radius: 24px;
}

    .slider.round:before {
        border-radius: 50%;
    }

/* انتخاب تم */
.theme-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.theme-option {
    flex: 1;
    min-width: 120px;
}

    .theme-option input[type="radio"] {
        display: none;
    }

    .theme-option label {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
    }

    .theme-option input[type="radio"]:checked + label {
        border-color: #3b82f6;
        background: #eff6ff;
    }

    .theme-option label i {
        font-size: 24px;
        margin-bottom: 8px;
        color: #64748b;
    }

    .theme-option input[type="radio"]:checked + label i {
        color: #3b82f6;
    }

/* اعلانات */
.notification-group {
    space-y: 10px;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.notification-info {
    flex: 1;
}

.notification-title {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 4px;
}

.notification-desc {
    display: block;
    color: #64748b;
    font-size: 12px;
}

/* دکمه‌های پایین */
.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

    .btn-primary:hover {
        background: #2563eb;
    }

.btn-secondary {
    background: #6b7280;
    color: white;
}

    .btn-secondary:hover {
        background: #4b5563;
    }

.btn i {
    margin-left: 8px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .fullpage-modal .quixpal-modal-content {
        width: 95%;
        height: 95vh;
    }

    .settings-tabs {
        flex-direction: column;
    }

    .theme-selector {
        flex-direction: column;
    }

    .settings-actions {
        flex-direction: column;
    }
}
