#cf-ai-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: 'Share Tech Mono', monospace;
}

.cf-ai-collapsed .cf-ai-window { display: none; }
.cf-ai-expanded .cf-ai-toggle { display: none; }

.cf-ai-toggle {
    width: 60px;
    height: 60px;
    background: rgba(10, 10, 15, 0.9);
    border: 2px solid #00ffcc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0,255,204,0.5);
    position: relative;
    animation: pulse 2s infinite;
}

.ai-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff00ff;
    box-shadow: inset 0 0 10px #ff00ff;
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px rgba(0,255,204,0.3); }
    50% { box-shadow: 0 0 30px rgba(0,255,204,0.8); }
    100% { box-shadow: 0 0 10px rgba(0,255,204,0.3); }
}

.cf-ai-window {
    width: 350px;
    height: 500px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid #ff00ff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(255,0,255,0.2);
    backdrop-filter: blur(10px);
}

.cf-ai-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255,0,255,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cf-ai-header h3 { margin: 0; color: #fff; font-size: 1.2rem; font-family: 'Share Tech Mono', monospace; }
.neon-pink { color: #ff00ff; text-shadow: 0 0 5px #ff00ff; }

.cf-ai-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.cf-ai-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cf-ai-msg {
    padding: 10px 15px;
    border-radius: 4px;
    max-width: 80%;
    font-size: 0.95rem;
}
.cf-ai-msg.system { background: rgba(0,255,204,0.1); border: 1px solid #00ffcc; color: #00ffcc; align-self: flex-start; }
.cf-ai-msg.user { background: rgba(255,0,255,0.1); border: 1px solid #ff00ff; color: #fff; align-self: flex-end; }

.cf-ai-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255,0,255,0.3);
    display: flex;
    gap: 10px;
}
.cf-ai-input-area input {
    flex: 1;
    background: rgba(0,0,0,0.5);
    border: 1px solid #00ffcc;
    color: #fff;
    padding: 8px;
    font-family: inherit;
    width: 100%;
}
.cf-ai-input-area input:focus { outline: none; box-shadow: 0 0 10px rgba(0,255,204,0.5); }
.cf-ai-input-area button {
    background: transparent;
    border: 1px solid #00ffcc;
    color: #00ffcc;
    padding: 0 15px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: inset 0 0 5px rgba(0,255,204,0.3);
}
.cf-ai-input-area button:hover { background: #00ffcc; color: #000; }

.cf-ai-footer {
    text-align: center;
    padding: 8px;
    font-size: 0.75rem;
    color: #666;
    background: rgba(0,0,0,0.8);
    border-top: 1px solid rgba(0,255,204,0.2);
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.5px;
}
