: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;
}

body {
    /*! background-color: var(--gray-medium); */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.chat-app {
    width: 90%;
    max-width: 1400px;
    height: 90vh;
    display: flex;
    /*! background-color: var(--white); */
    /*! box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); */
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

/* سایدبار مخاطبین */
.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: 20px;
    color: var(--gray-dark);
    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: transparent;
    font-weight: 700;
}

p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 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: var(--chat-bg);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23F5E1E4"/><path d="M0 50 L100 50 M50 0 L50 100" stroke="%23E30A17" stroke-width="1" stroke-opacity="0.1"/></svg>');
    position: relative;
    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: none;
    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;
}

.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%;
        display: none;
    }

        .chat-area.active {
            display: flex;
        }

    .mobile-back {
        display: block;
        margin-left: 15px;
    }

    .sidebar-header {
        /*! justify-content: flex-start; */
    }

    .mobile-hamburger {
        display: block;
        /*! order: 3; */ /* قرار دادن در انتهای سمت راست */
        /*! margin-left: 15px; */
        /*! margin-right: 0; */
        right: 10px;
        /*! top: 15px; */
        /*! left: 15px; */
        margin-right: 15px;
        margin-top: 15px;
    }

    .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 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.auth-container {
    background-color: var(--white);
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.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;
}

.country-flag {
    width: 30px;
    height: 20px;
    margin: 0 10px;
    background-size: cover;
    background-position: center;
}

.country-code {
    padding: 10px;
    background-color: var(--gray-light);
    font-weight: 500;
}

.phone-input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    font-size: 16px;
}

.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;
}

    .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;
    }

.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: #94a3b8;
    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;
    left: 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: 95%;
    height: 95%;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    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;
}

.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;
    }