.message, .message2 {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    z-index: 50;
}
.message { background-color: #EF4444; }
.message2 { background-color: #3CB371; }
.message.show, .message2.show {
    opacity: 1;
    transform: translateY(0);
}
.animate-gradient {
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.sidebar {
    transition: transform 0.3s ease-in-out;
}
.sidebar.open {
    transform: translateX(0);
}
.balance-card {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}
.bonus-card {
    background: linear-gradient(135deg, #4c1d95, #7c3aed);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}
.balance-card::before, .bonus-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 10.01%);
    background-size: 20px 20px;
    animation: move-dots 10s linear infinite;
}
@keyframes move-dots {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-message .avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
 }

.chat-message .time {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
}

.chat-message .content {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chat-message .message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    position: relative;
    word-wrap: break-word;
}

.chat-message.user .message-bubble {
    background-color: #3b82f6;
    color: white;
    border-top-right-radius: 0;
}

.chat-message.support .message-bubble {
    background-color: #374151;
    color: white;
    border-top-left-radius: 0;
}

.chat-message .attached-image {
    max-width: 100%;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-message .attached-image:hover {
    transform: scale(1.02);
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ticket-item {
    background-color: #1f2937;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s;
}

.ticket-item:hover {
    background-color: #374151;
}

.ticket-item .ticket-id {
    font-weight: bold;
    color: #3b82f6;
}

.ticket-item .ticket-status {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.ticket-item .ticket-status.open {
    background-color: #10b981;
    color: white;
}

.ticket-item .ticket-status.closed {
    background-color: #ef4444;
    color: white;
}

.ticket-item .ticket-status.answered {
    background-color: #3b82f6;
    color: white;
}

#chat-form {
    display: none;
}

#chat {
    scrollbar-width: thin;
    scrollbar-color: #4b5563 #1f2937;
}

#chat::-webkit-scrollbar {
    width: 8px;
}

#chat::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 4px;
}

#chat::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

#chat::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.file-input-container {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
    border: 2px dashed #4b5563;
    border-radius: 1rem;
    background-color: #1f2937;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-label:hover {
    border-color: #3b82f6;
    background-color: #374151;
    color: #3b82f6;
}

.file-input-label i {
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.file-input-label:hover i {
    transform: translateY(-5px);
}

.file-input-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.file-input-hint {
    font-size: 0.75rem;
    color: #6b7280;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

#remove-file-button {
    display: none;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    background-color: rgba(239, 68, 68, 0.9);
    border-radius: 0.5rem;
    border: 1px solid rgba(220, 38, 38, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#remove-file-button:hover {
    background-color: rgba(220, 38, 38, 0.9);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#remove-file-button i {
    color: white;
}

#userdata {
    --y: 0px;
    transform: translateY(var(--y));
}

@keyframes fall {
    0%   { transform: translateY(-10vh) translateX(0); opacity: 0; }
    10%  { opacity: 1; }
    100% { transform: translateY(110vh) translateX(var(--swayX)); opacity: 0.9; }
}

#snow {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -5vh;
    color: white;
    will-change: transform, opacity;
    animation: fall var(--dur) linear infinite;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    user-select: none;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .snowflake { animation: none !important; opacity: 1 !important; }
}