 :root {
        --primary-color: #6366f1;
        --background-dark: #111827;
        --text-color: #ffffff;
        --border-color: rgba(255, 255, 255, 0.1);
        --chat-bg: rgba(17, 24, 39, 0.7);
    }
    
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Vazirmatn', sans-serif;
    }
    
    .chat-container {
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 9999;
    }
.close-chat i {
    cursor: pointer;
    color: #ffffff !important;
}
    .chat-button {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: var(--primary-color);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    }
    
    .chat-button:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 16px rgba(99, 102, 241, 0.6);
    }
    
    .glass-effect {
        background: var(--chat-bg);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border-color);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        border-radius: 12px;
    }
    
    .chat-popup {
        display: none;
        position: absolute;
        bottom: 80px;
        right: 0;
        width: 350px;
        height: 500px;
        overflow: hidden;
        flex-direction: column;
    }
    
    .chat-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        background-color: var(--primary-color);
        border-radius: 12px 12px 0 0;
    }
    
    .chat-title {
        font-weight: 700;
        font-size: 16px;
    }
    
    .close-chat {
        cursor: pointer;
        font-size: 18px;
    }
    
    .chat-messages {
        flex: 1;
        padding: 15px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .message {
        padding: 10px 15px;
        border-radius: 15px;
        max-width: 80%;
        word-wrap: break-word;
    }
    
    .user-message {
        background-color: var(--primary-color);
        color: white;
        align-self: flex-end;
        border-bottom-right-radius: 5px;
    }
    
    .support-message {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        align-self: flex-start;
        border-bottom-left-radius: 5px;
    }
.system-message {
    background-color: rgba(34, 197, 94, 0.3);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}
    .message-time {
        font-size: 10px;
        margin-top: 5px;
        text-align: right;
        opacity: 0.8;
    }
    
    .chat-input {
        display: flex;
        padding: 15px;
        gap: 10px;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 0 0 12px 12px;
    }
    
    .input-field {
        flex: 1;
        padding: 12px 15px;
        border-radius: 20px;
        border: 1px solid var(--border-color);
        background-color: rgba(255, 255, 255, 0.05);
        color: white;
        outline: none;
        transition: all 0.3s;
    }
    
    .input-field:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    }
    
    .send-button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--primary-color);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s;
        border: none;
    }
    
    .send-button:hover {
        background-color: #5254cc;
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
        transform: translateY(-2px);
    }
    
    .chat-status {
        padding: 10px;
        text-align: center;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .new-message-indicator {
        position: absolute;
        top: -5px;
        right: -5px;
        background-color: #ef4444;
        color: white;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 12px;
        font-weight: bold;
        display: none;
    }
    
    .login-message {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        padding: 20px;
        text-align: center;
        color: var(--text-color); 
    }
    
    .login-message p {
        color: var(--text-color); 
    }
    
    .login-message i {
        color: var(--text-color); 
    }
    
    .login-button {
        margin-top: 20px;
        padding: 10px 20px;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s;
        font-weight: bold;
    }
    
    .login-button:hover {
        background-color: #5254cc;
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
        transform: translateY(-2px);
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .chat-popup.active {
        display: flex;
        animation: fadeIn 0.3s ease forwards;
    }
    
    .typing-indicator {
        display: flex;
        padding: 10px;
        align-self: flex-start;
    }
    
    .typing-indicator span {
        height: 8px;
        width: 8px;
        margin: 0 2px;
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        display: inline-block;
        animation: typing 1s infinite ease-in-out;
    }
    
    .typing-indicator span:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .typing-indicator span:nth-child(3) {
        animation-delay: 0.4s;
    }
    
    @keyframes typing {
        0% { transform: translateY(0); }
        50% { transform: translateY(-5px); }
        100% { transform: translateY(0); }
    }
    
    .read-status {
        font-size: 10px;
        margin-top: 3px;
        text-align: right;
        color: rgba(255, 255, 255, 0.5);
    }