:root {
    --onemode-primary: #00ff88;
    --onemode-dark: #0f172a;
    --onemode-glass: rgba(15, 23, 42, 0.8);
    --onemode-text: #f8fafc;
    --onemode-accent: #10b981;
    --onemode-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.onemode-ai-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Launcher */
.onemode-ai-launcher {
    width: 60px;
    height: 60px;
    background: var(--onemode-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.onemode-ai-launcher:hover {
    transform: scale(1.1);
}

.onemode-ai-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

.onemode-ai-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--onemode-primary);
    opacity: 0.6;
    animation: onemode-pulse 2s infinite;
    z-index: -1;
}

@keyframes onemode-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Bubble / Chat Window */
.onemode-ai-bubble {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--onemode-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: var(--onemode-shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom right;
}

.onemode-ai-bubble.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

/* Header */
.onemode-ai-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.onemode-ai-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--onemode-primary), var(--onemode-accent));
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
}

.onemode-ai-status-online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #00ff88;
    border: 2px solid var(--onemode-dark);
    border-radius: 50%;
}

.onemode-ai-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.onemode-ai-name {
    color: var(--onemode-text);
    font-weight: 600;
    font-size: 14px;
}

.onemode-ai-status {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.onemode-ai-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.onemode-ai-close:hover {
    opacity: 1;
}

/* Body */
.onemode-ai-body {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.onemode-ai-message {
    background: rgba(255, 255, 255, 0.1);
    color: var(--onemode-text);
    padding: 12px;
    border-radius: 12px 12px 12px 0;
    font-size: 14px;
    line-height: 1.5;
    animation: onemode-fade-in 0.5s ease;
}

@keyframes onemode-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.onemode-ai-footer {
    padding: 15px 20px 20px;
}

.onemode-ai-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--onemode-accent);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: filter 0.2s, transform 0.2s;
}

.onemode-ai-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.onemode-ai-button svg {
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 480px) {
    .onemode-ai-container {
        bottom: 20px;
        right: 20px;
    }
    .onemode-ai-bubble {
        width: calc(100vw - 40px);
        bottom: 70px;
    }
}
