@font-face {
    font-family: iransans;
    font-style: normal;
    font-weight: normal;
    src: url('fonts/IRANSansWeb.eot');
    src: url('fonts/IRANSansWeb.eot-.htm#iefix') format('embedded-opentype'),
         url('fonts/IRANSansWeb.woff2') format('woff2'),
         url('fonts/IRANSansWeb.woff') format('woff'),
         url('fonts/IRANSansWeb.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: iransans !important;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ========== استایل صفحه لاگین ========== */
.login-container {
    max-width: 480px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 40px 32px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo svg {
    margin-bottom: 16px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.logo p {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 8px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 28px;
    color: #1f2937;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.input-group input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.input-group input::placeholder {
    color: #9ca3af;
}

.login-btn {
    font-family: 'iransans';
    width: 100%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    padding: 14px;
    border-radius: 40px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
}

.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 12px 18px;
    border-radius: 28px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    text-align: center;
}

.info-text {
    text-align: center;
    margin-top: 24px;
    color: #9ca3af;
    font-size: 0.75rem;
}

/* ========== استایل صفحه چت روم ========== */
.chat-app {
    width: 1400px;
    max-width: 98vw;
    height: 90vh;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: flex;
    overflow: hidden;
}

/* سایدبار کاربران */
.users-sidebar {
    width: 320px;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-header h2 {
    font-size: 1.1rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info-header {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.current-user-card {
    background: rgba(79, 70, 229, 0.08);
    border-radius: 20px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.users-list {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.user-item:hover {
    background: #f1f5f9;
    transform: translateX(-4px);
    border-color: #c7d2fe;
}

.user-item.active-pm {
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    border-right: 3px solid #8b5cf6;
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, #4f46e5, #7c3aed);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #1f2937;
}

.user-status {
    font-size: 0.7rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

/* ناحیه چت اصلی */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.chat-header {
    padding: 18px 28px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-chat-info h3 {
    color: #1f2937;
    font-size: 1.3rem;
}

.current-chat-info p {
    color: #6b7280;
    font-size: 0.75rem;
    cursor: pointer;
}

.current-chat-info p:hover {
    color: #4f46e5;
}

/* منطقه پیام‌ها */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #ffffff;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 75%;
    animation: fadeSlideUp 0.2s ease;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.outgoing {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(145deg, #4f46e5, #7c3aed);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
    color: white;
}

.message-bubble {
    background: #f1f5f9;
    padding: 10px 16px;
    border-radius: 22px;
    border-bottom-right-radius: 6px;
    color: #1f2937;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message.outgoing .message-bubble {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 22px;
}

.message-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
    font-size: 0.7rem;
    color: #6b7280;
}

.message.outgoing .message-meta {
    color: #c7d2fe;
}

.message-name {
    font-weight: 600;
}

.message-time {
    font-size: 0.65rem;
}

/* ناحیه ورودی پیام */
.chat-input-area {
    padding: 20px 24px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border-radius: 60px;
    padding: 6px 8px 6px 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.input-wrapper:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.chat-input {
    font-family: 'iransans';
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    color: #1f2937;
    font-size: 0.95rem;
    outline: none;
}

.chat-input::placeholder {
    color: #9ca3af;
}

.send-btn {
    background: #4f46e5;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.send-btn:hover {
    background: #6366f1;
    transform: scale(1.02);
}

/* اسکرول بار سفارشی */
.chat-messages::-webkit-scrollbar,
.users-sidebar::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* ریسپانسیو */
@media (max-width: 780px) {
    .users-sidebar {
        width: 100px;
    }
    
    .user-info .user-name {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .user-status {
        display: none;
    }
    
    .sidebar-header h2 span {
        display: none;
    }
    
    .message {
        max-width: 90%;
    }
    
    .chat-header {
        padding: 12px 16px;
    }
    
    .current-chat-info h3 {
        font-size: 1rem;
    }
}

/* استایل تب‌های چت */
.chat-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 40px;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tab-btn:hover {
    background: #e2e8f0;
    color: #1f2937;
}

.tab-btn.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.tab-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

.tab-btn.active .tab-badge {
    background: rgba(255, 255, 255, 0.25);
}

/* استایل هدر خصوصی */
.private-chat-info {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ede9fe;
    border-bottom: 1px solid #c7d2fe;
}

.private-chat-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.private-chat-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #4f46e5, #7c3aed);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
}

.private-chat-name {
    font-weight: 600;
    color: #1f2937;
}

.private-chat-status {
    font-size: 0.7rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 4px;
}

.close-private-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #fca5a5;
    padding: 8px 16px;
    border-radius: 30px;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.close-private-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* استایل پاپ‌آپ اخطار مدیریت - نسخه لایت */
.warning-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border: 2px solid #f59e0b;
    padding: 28px 32px;
    border-radius: 32px;
    color: #1f2937;
    z-index: 9999;
    animation: warningPop 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3), 0 0 0 1000px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 380px;
    max-width: 500px;
    cursor: pointer;
}

@keyframes warningPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.warning-notification.fade-out {
    animation: warningFadeOut 0.3s ease-out forwards;
}

@keyframes warningFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
        visibility: hidden;
    }
}

.warning-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(145deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    animation: iconPulse 0.5s ease-in-out infinite alternate;
}

@keyframes iconPulse {
    from {
        box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
        transform: scale(1);
    }
    to {
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
        transform: scale(1.05);
    }
}

.warning-content {
    flex: 1;
}

.warning-title {
    font-weight: bold;
    font-size: 1.2rem;
    color: #d97706;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-title::before {
    content: "⚠️";
    font-size: 1.1rem;
}

.warning-message {
    font-size: 1rem;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 12px;
    background: #f3f4f6;
    padding: 8px 12px;
    border-radius: 16px;
}

.warning-time {
    font-size: 0.7rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.warning-time::before {
    content: "🕐";
    font-size: 0.7rem;
}

.close-warning {
    position: absolute;
    top: 12px;
    right: 16px;
    background: #f3f4f6;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-warning:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: scale(1.1);
}

.warning-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-end;
}

.warning-confirm-btn {
    font-family:iransans;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    padding: 8px 24px;
    border-radius: 40px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.warning-confirm-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* دکمه خروج از چت - نسخه لایت */
.logout-chat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #fca5a5;
    padding: 8px 16px;
    border-radius: 40px;
    color: #dc2626;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.logout-chat-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    transform: scale(1.02);
}

.logout-chat-btn svg {
    transition: all 0.2s;
}

.logout-chat-btn:hover svg {
    transform: translateX(-3px);
}

/* استایل اعلان (toast) - نسخه لایت */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #ffffff;
    border-right: 4px solid #8b5cf6;
    padding: 12px 20px;
    border-radius: 16px;
    color: #1f2937;
    z-index: 1000;
    animation: slideInLeft 0.3s ease-out;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-notification.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.toast-avatar {
    width: 32px;
    height: 32px;
    background: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: bold;
    font-size: 0.85rem;
    color: #1f2937;
}

.toast-message {
    font-size: 0.75rem;
    color: #6b7280;
}

/* پیام خالی بودن لیست */
.empty-message {
    text-align: center;
    color: #9ca3af;
    padding: 20px;
}

/* موبایل */
@media (max-width: 600px) {
    .warning-notification {
        min-width: 320px;
        padding: 20px 24px;
        flex-direction: column;
        text-align: center;
    }
    .warning-icon {
        width: 55px;
        height: 55px;
        font-size: 2.2rem;
    }
    .warning-buttons {
        justify-content: center;
    }
    .close-warning {
        top: 8px;
        right: 12px;
    }
    .logout-chat-btn span {
        display: none;
    }
    .logout-chat-btn {
        padding: 8px 12px;
    }
}

/* استایل دکمه شکلک */
.emoji-trigger {
    background: #f1f5f9;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.3rem;
}

.emoji-trigger:hover {
    background: #e2e8f0;
    transform: scale(1.02);
}

/* پنل شکلک‌ها - نسخه لایت */
.emoji-picker {
    position: absolute;
    bottom: 80px;
    left: 100px;
    background: #ffffff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    width: 360px;
    display: none;
}

.emoji-picker.show {
    display: block;
    animation: emojiPop 0.2s ease-out;
}

@keyframes emojiPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.emoji-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.emoji-picker-header span {
    color: #4f46e5;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.close-emoji-picker {
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-emoji-picker:hover {
    background: #fee2e2;
    color: #dc2626;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}

.emoji-btn {
    background: #f8fafc;
    border: none;
    border-radius: 14px;
    padding: 8px 6px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-btn:hover {
    background: #ede9fe;
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
}

/* تذکر خودکار */
.auto-clear-notice {
    font-size: 0.65rem;
    color: #9ca3af;
    padding: 4px 12px;
    text-align: center;
    background: #f1f5f9;
    border-radius: 20px;
    margin: 0 24px 8px auto;
    display: inline-block;
}












/* ========== استایل تب‌های چت با دکمه همبرگر ========== */
.chat-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.tabs-left {
    display: flex;
    gap: 8px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 40px;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tab-btn:hover {
    background: rgba(226, 232, 240, 0.7);
    color: #1f2937;
}

.tab-btn.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.tab-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

.tab-btn.active .tab-badge {
    background: rgba(255, 255, 255, 0.25);
}

/* ========== دکمه همبرگر جدید کنار تب‌ها ========== */
.hamburger-btn-mobile {
    display: none;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
}

.hamburger-btn-mobile:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.hamburger-btn-mobile span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* انیمیشن تبدیل به X وقتی باز است */
.hamburger-btn-mobile.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn-mobile.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn-mobile.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ========== استایل ریسپانسیو ========== */
/* تبلت و موبایل */
@media (max-width: 992px) {
    .hamburger-btn-mobile {
        display: flex;
    }
    
    .chat-app {
        position: relative;
        overflow: hidden;
    }
    
    /* سایدبار - مخفی در حالت عادی */
    .users-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: right 0.3s ease;
        box-shadow: none;
        border-radius: 0;
        background: #f8fafc;
    }
    
    /* سایدبار باز */
    .users-sidebar.open {
        right: 0;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }
    
    /* صفحه چت - تمام صفحه */
    .chat-main {
        width: 100%;
        border-radius: 0;
    }
    
    /* لایه backdrop برای بستن سایدبار */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.open {
        opacity: 1;
        visibility: visible;
    }
    
    /* تنظیمات تب‌ها در موبایل */
    .chat-tabs {
        padding: 10px 16px;
    }
    
    .tab-btn {
        padding: 8px 14px;
    }
    
    .tab-btn span:not(.tab-badge) {
        display: inline-block;
        font-size: 0.8rem;
    }
    
    .tab-btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* پیام‌ها */
    .message {
        max-width: 90%;
    }
    
    .message-bubble {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    
    .chat-messages {
        padding: 16px;
    }
    
    .chat-input-area {
        padding: 12px 16px;
    }
    
    .input-wrapper {
        padding: 4px 6px 4px 16px;
    }
    
    .chat-input {
        font-size: 0.9rem;
    }
    
    .send-btn, .emoji-trigger {
        width: 40px;
        height: 40px;
    }
}

/* موبایل کوچک */
@media (max-width: 580px) {
    .tab-btn span:not(.tab-badge) {
        display: none;
    }
    
    .tab-btn {
        padding: 8px 12px;
    }
    
    .tab-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .users-sidebar {
        width: 260px;
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 400px) {
    .chat-tabs {
        padding: 8px 12px;
    }
    
    .hamburger-btn-mobile {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .hamburger-btn-mobile span {
        width: 18px;
        height: 2px;
    }
}





/* استایل پاپ آپ سفارشی مسدودیت */
.custom-block-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-block-alert.hide {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

.custom-block-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 32px;
    padding: 32px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-block-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.custom-block-title {
    color: #fca5a5;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 16px;
}

.custom-block-message {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.custom-block-timer {
    background: rgba(239, 68, 68, 0.15);
    border-radius: 60px;
    padding: 12px 20px;
    margin-bottom: 24px;
    font-family: monospace;
    font-size: 1.3rem;
    font-weight: bold;
    color: #f87171;
    direction: ltr;
    display: inline-block;
}

.custom-block-button {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-block-button:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.4);
}