#chatcash-widget-container {
    position: fixed; 
    bottom: 90px; /* MOVED UP from 24px */
    right: 24px; 
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex; flex-direction: column; align-items: flex-end;
}

#chatcash-trigger-btn {
    width: 60px; height: 60px; border-radius: 30px; color: #fff;
    border: none; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s ease;
}
#chatcash-trigger-btn:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }

#chatcash-card {
    width: 380px; height: 650px; max-height: 85vh; margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0,0,0,0.05);
    display: flex; flex-direction: column; transform-origin: bottom right;
    transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    opacity: 1; transform: scale(1) translateY(0); overflow: hidden;
}
#chatcash-card.chatcash-hidden { opacity: 0; transform: scale(0.9) translateY(20px); pointer-events: none; }

.chatcash-card-header {
    display: flex; align-items: center; padding: 16px 20px;
    background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid rgba(0, 0, 0, 0.05); z-index: 10;
}
.chatcash-avatar {
    position: relative; width: 44px; height: 44px; background: #f1f5f9; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; color: #64748b; margin-right: 12px;
}
.chatcash-status {
    position: absolute; bottom: 0; right: 0; width: 12px; height: 12px;
    background: #10b981; border-radius: 50%; border: 2px solid #fff;
}
.chatcash-header-text h4 { margin: 0 0 2px 0; font-size: 16px; font-weight: 600; color: #0f172a; }
.chatcash-header-text p { margin: 0; font-size: 13px; color: #64748b; }
#chatcash-close-btn { margin-left: auto; background: transparent; border: none; font-size: 28px; color: #94a3b8; cursor: pointer; }

.chatcash-wa-banner {
    display: flex; justify-content: center; align-items: center; gap: 8px;
    background: #e9fbf0; color: #1e293b; padding: 12px; font-size: 14px; font-weight: 500;
    text-decoration: none; border-bottom: 1px solid rgba(0,0,0,0.03); transition: background 0.2s;
}
.chatcash-wa-banner:hover { background: #d1f4e0; }
.chatcash-wa-banner svg { color: #25D366; }

.chatcash-chat-area {
    flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
    background: rgba(248, 250, 252, 0.6); scroll-behavior: smooth;
}

.chatcash-bubble {
    max-width: 85%; padding: 14px 16px; font-size: 15px; line-height: 1.4;
    animation: chatcash-pop 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) backwards; word-wrap: break-word;
}
.chatcash-bubble.chatcash-ai {
    align-self: flex-start; background: #fff; color: #334155;
    border-radius: 20px 20px 20px 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.03);
}
.chatcash-bubble.chatcash-user {
    align-self: flex-end; background: #007aff; color: #fff;
    border-radius: 20px 20px 4px 20px; box-shadow: 0 2px 8px rgba(0,122,255,0.2);
}

.chatcash-interactive-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; width: 100%; }
.chatcash-action-btn {
    background: #f1f5f9; color: #007aff; border: 1px solid #e2e8f0; padding: 10px 16px;
    border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-align: center;
}
.chatcash-action-btn:hover { background: #e2e8f0; }

.chatcash-typing { display: flex; gap: 4px; padding: 16px !important; align-items: center; }
.chatcash-dot { width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; animation: chatcash-bounce 1.4s infinite ease-in-out both; }
.chatcash-dot:nth-child(1) { animation-delay: -0.32s; }
.chatcash-dot:nth-child(2) { animation-delay: -0.16s; }

.chatcash-input-container {
    padding: 16px; background: rgba(255, 255, 255, 0.95); border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex; gap: 12px; align-items: center;
}
#chatcash-input {
    flex: 1; padding: 14px 18px; border: 1px solid #e2e8f0; border-radius: 24px;
    font-size: 15px; outline: none; transition: border-color 0.2s; background: #f8fafc;
}
#chatcash-input:focus { border-color: #007aff; background: #fff; }
#chatcash-send-btn {
    width: 44px; height: 44px; border-radius: 50%; background: #007aff; color: #fff;
    border: none; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: transform 0.2s;
}
#chatcash-send-btn:hover { transform: scale(1.05); }
#chatcash-send-btn:disabled { background: #cbd5e1; cursor: not-allowed; transform: none; }

@keyframes chatcash-pop { from { opacity: 0; transform: translateY(10px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes chatcash-bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

@media (max-width: 480px) {
    #chatcash-card { width: calc(100vw - 32px); height: calc(100vh - 160px); max-height: 800px; bottom: 170px; right: 16px; position: fixed; margin-bottom: 0; }
    #chatcash-widget-container { right: 16px; bottom: 90px; }
}