/* ==========================================================================
   Clean Multimodal AI Persona Chat & 8-Axis Emotion Mixer - Stylesheet
   ========================================================================== */

:root {
    --bg-dark: #0d0a14;
    --bg-card: rgba(23, 17, 34, 0.85);
    --bg-input: rgba(35, 26, 52, 0.85);
    
    --accent-pink: #ff2a85;
    --accent-pink-glow: rgba(255, 42, 133, 0.4);
    --accent-purple: #9d4edd;
    --accent-purple-glow: rgba(157, 78, 221, 0.4);
    
    --bubble-user: linear-gradient(135deg, #ff2a85, #e0115f);
    --bubble-ai: rgba(32, 24, 48, 0.85);
    --bubble-ai-border: rgba(255, 42, 133, 0.25);

    --text-primary: #ffffff;
    --text-secondary: #b3a5c9;
    --text-muted: #6e6085;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Ambient Background */
.bg-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 42, 133, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(157, 78, 221, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(20, 15, 30, 0.95) 0%, var(--bg-dark) 100%);
    z-index: -1;
}

.floating-heart {
    display: none;
}

/* Main Outer Layout Wrapper */
.chat-app-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 94vh;
    max-height: 900px;
    width: 100%;
    max-width: 860px;
    position: relative;
}

/* Main App Container (Chat Card) */
.app-container {
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: #150f22;
    border: 1px solid rgba(255, 42, 133, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-pink-glow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

/* Header Component */
.header {
    background: rgba(18, 13, 28, 0.9);
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 42, 133, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
}

.avatar-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 42, 133, 0.3), rgba(157, 78, 221, 0.3));
    border: 2px solid var(--accent-pink);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 0 12px var(--accent-pink-glow);
}

.online-badge {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    background: #00ff88;
    border-radius: 50%;
    border: 2px solid #120d1c;
    box-shadow: 0 0 8px #00ff88;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #ffffff, #ffb3d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.verified-icon {
    color: var(--accent-pink);
    font-size: 0.9rem;
}

.handle {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    width: 33px;
    height: 33px;
    min-width: 33px;
    min-height: 33px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    padding: 0;
    font-size: 0.92rem;
}

.icon-btn:hover {
    background: rgba(255, 42, 133, 0.25);
    border-color: var(--accent-pink);
    transform: scale(1.08);
}

/* Header Mode Button (Cascade Engine) */
.header-mode-btn.mode-normal {
    border-color: rgba(138, 43, 226, 0.45);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.22), rgba(255, 42, 133, 0.15));
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.25);
}

.header-mode-btn.mode-normal:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.45);
}

.header-mode-btn.mode-fast {
    border-color: rgba(0, 242, 254, 0.45);
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.22), rgba(79, 172, 254, 0.15));
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.header-mode-btn.mode-fast:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.45);
}

/* Header Overdrive Button (⚡²) */
.header-overdrive-btn {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffcc00;
    border-color: rgba(255, 204, 0, 0.35);
    background: rgba(255, 149, 0, 0.1);
}

.header-overdrive-btn:hover {
    border-color: #ffcc00;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.4);
    transform: scale(1.08);
}

.header-overdrive-btn.active {
    background: linear-gradient(135deg, #ff1a40 0%, #ff5e00 50%, #ffb700 100%);
    border-color: #ffe600;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(255, 94, 0, 0.75), 0 0 24px rgba(255, 26, 64, 0.5);
    animation: pulseOverdrive 1.8s infinite ease-in-out;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Standalone Side 14-Axis Emotion Mixer Panel (Fixed 100% ON THE SIDE - Never at bottom!) */
.emotion-mixer-panel {
    position: fixed;
    top: 20px;
    bottom: 20px;
    left: 20px;
    width: 330px;
    max-width: 90vw;
    max-height: calc(100vh - 40px);
    background: #171122;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 42, 133, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px var(--accent-pink-glow);
    padding: 18px;
    display: none;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto !important;
    z-index: 1000;
    animation: slideInFromLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.emotion-mixer-panel.open {
    display: flex;
}

.emotion-mixer-panel::-webkit-scrollbar {
    width: 6px;
}

.emotion-mixer-panel::-webkit-scrollbar-thumb {
    background: var(--accent-pink);
    border-radius: 3px;
}

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Standalone Chats Drawer Panel (Fixed on the right side - Multi-Chat List) */
.chats-drawer-panel {
    position: fixed;
    top: 20px;
    bottom: 20px;
    right: 20px;
    width: 330px;
    max-width: 90vw;
    max-height: calc(100vh - 40px);
    background: #171122;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(157, 78, 221, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px var(--accent-purple-glow);
    padding: 18px;
    display: none;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto !important;
    z-index: 1000;
    animation: slideInFromRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chats-drawer-panel.open {
    display: flex;
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ff85c0;
}

.new-chat-header-btn {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--accent-pink-glow);
    transition: var(--transition);
}

.new-chat-header-btn:hover {
    transform: scale(1.04);
}

.chats-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.chat-card-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.chat-card-item:hover {
    background: rgba(255, 42, 133, 0.12);
    border-color: rgba(255, 42, 133, 0.3);
}

.chat-card-item.active {
    background: linear-gradient(135deg, rgba(255, 42, 133, 0.2), rgba(157, 78, 221, 0.2));
    border: 1.5px solid var(--accent-pink);
    box-shadow: 0 4px 15px rgba(255, 42, 133, 0.25);
}

.chat-card-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.chat-card-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff2a85, #9d4edd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.chat-card-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-card-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-card-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: var(--transition);
}

.chat-card-action-btn:hover {
    color: #ff453a;
    background: rgba(255, 69, 58, 0.15);
}

.mixer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mixer-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff85c0;
}

.mixer-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-icon-btn {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.35);
    color: #ff6b6b;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.reset-icon-btn:hover {
    background: rgba(255, 59, 48, 0.3);
    border-color: #ff453a;
    color: #fff;
}

.auto-toggle-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Emotion Presets Bar */
.presets-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.presets-bar::-webkit-scrollbar {
    display: none;
}

.preset-btn {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.preset-btn:hover {
    background: rgba(255, 42, 133, 0.2);
    border-color: var(--accent-pink);
    color: #fff;
}

.sliders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}

@media (max-width: 700px) {
    .sliders-grid {
        grid-template-columns: 1fr;
    }
    .emotion-mixer-panel {
        width: 220px;
    }
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.73rem;
    color: var(--text-primary);
}

.val-badge {
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 6px;
    border-radius: 8px;
}

.emotion-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.emotion-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.slider-love::-webkit-slider-thumb { background: #ff2a85; }
.slider-cold::-webkit-slider-thumb { background: #00d2ff; }
.slider-happy::-webkit-slider-thumb { background: #ffb703; }
.slider-sad::-webkit-slider-thumb { background: #9d4edd; }
.slider-drama::-webkit-slider-thumb { background: #ff4d4d; }
.slider-tease::-webkit-slider-thumb { background: #00f5d4; }
.slider-shy::-webkit-slider-thumb { background: #ff99c8; }
.slider-pride::-webkit-slider-thumb { background: #e0aaff; }
.slider-jealous::-webkit-slider-thumb { background: #70e000; }
.slider-curious::-webkit-slider-thumb { background: #ff9e00; }
.slider-bored::-webkit-slider-thumb { background: #8d99ae; }
.slider-flirt::-webkit-slider-thumb { background: #ff006e; }
.slider-shock::-webkit-slider-thumb { background: #ffbe0b; }
.slider-calm::-webkit-slider-thumb { background: #06d6a0; }
.slider-stress::-webkit-slider-thumb { background: #e63946; }
.slider-insecurity::-webkit-slider-thumb { background: #a8dadc; }
.slider-excited::-webkit-slider-thumb { background: #f72585; }
.slider-guilt::-webkit-slider-thumb { background: #457b9d; }
.slider-horny::-webkit-slider-thumb { background: #ff0055; box-shadow: 0 0 10px rgba(255, 0, 85, 0.6); }
.slider-spicy::-webkit-slider-thumb { background: #ff3c00; box-shadow: 0 0 10px rgba(255, 60, 0, 0.6); }

/* Mode Selector Bar */
.mode-selector-bar {
    background: rgba(15, 10, 24, 0.8);
    padding: 8px 14px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    scrollbar-width: none;
}

.mode-selector-bar::-webkit-scrollbar {
    display: none;
}

.mode-pill {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.mode-pill:hover {
    background: rgba(255, 42, 133, 0.15);
    color: var(--text-primary);
}

.mode-pill.active {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--accent-pink-glow);
    font-weight: 600;
}

/* Chat Messages Container */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: radial-gradient(circle at center, rgba(255, 42, 133, 0.03) 0%, transparent 70%);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 42, 133, 0.3);
    border-radius: 3px;
}

/* Date Divider */
.date-divider {
    align-self: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 12px;
    border-radius: 12px;
    margin: 8px 0;
}

/* Message Bubbles */
/* Message Bubbles */
.message-row {
    display: flex;
    flex-direction: column;
    max-width: 84%;
    position: relative;
    animation: fadeIn 0.25s ease-out forwards;
    transition: margin 0.15s ease;
}

.message-row.clustered-next {
    margin-bottom: -6px;
}

.message-row.clustered-next .bubble {
    border-bottom-left-radius: 6px;
}

.message-row.ai + .message-row.ai {
    margin-top: 2px;
}

/* Floating Action Pill (Copy, Edit, Delete) */
.msg-actions-pill {
    display: none;
    position: absolute;
    top: -14px;
    z-index: 50;
    background: rgba(22, 16, 35, 0.96);
    border: 1px solid rgba(255, 42, 133, 0.45);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 42, 133, 0.25);
    border-radius: 20px;
    padding: 2px 6px;
    gap: 4px;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: popIn 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8) translateY(4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.message-row.user .msg-actions-pill {
    left: 4px;
}

.message-row.ai .msg-actions-pill {
    right: 4px;
}

.message-row:hover .msg-actions-pill,
.message-row.actions-active .msg-actions-pill {
    display: flex;
}

.msg-action-btn {
    background: transparent;
    border: none;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 0.82rem;
    padding: 2px 5px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.msg-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.15);
}

.msg-action-btn.btn-delete:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.25);
}

.msg-action-btn.btn-edit:hover {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.25);
}

.msg-action-btn.btn-copy:hover {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.25);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-row.user {
    align-self: flex-end;
    align-items: flex-end;
}

.message-row.ai {
    align-self: flex-start;
    align-items: flex-start;
}

.bubble {
    padding: 11px 15px;
    font-size: 0.95rem;
    line-height: 1.45;
    position: relative;
    word-break: break-word;
    cursor: pointer;
    user-select: text;
}

.message-row.user .bubble {
    background: var(--bubble-user);
    color: #fff;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 4px 15px rgba(255, 42, 133, 0.3);
}

.message-row.ai .bubble {
    background: #1c1528;
    border: 1px solid var(--bubble-ai-border);
    color: var(--text-primary);
    border-radius: 18px 18px 18px 4px;
}

/* Image inside Bubble */
.bubble-img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 12px;
    margin-bottom: 6px;
    display: block;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.msg-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
}

.message-row.ai .msg-footer {
    color: var(--text-muted);
}

.read-ticks {
    color: #40c4ff;
    font-size: 0.85rem;
}

/* Typing Indicator */
.typing-indicator {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #1c1528;
    border: 1px solid var(--bubble-ai-border);
    border-radius: 18px 18px 18px 4px;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
}

.typing-text-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ff85c0;
    white-space: nowrap;
}

.typing-dots-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-pink);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.1); opacity: 1; }
}

/* Toast Notification (Read Receipts / NO_RESPONSE) */
.read-toast {
    align-self: center;
    background: rgba(255, 42, 133, 0.15);
    border: 1px solid rgba(255, 42, 133, 0.3);
    color: #ff85c0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fadeIn 0.4s ease-out;
    margin: 6px 0;
}

/* Image Preview Bar */
.image-preview-bar {
    padding: 8px 18px;
    background: rgba(25, 18, 38, 0.95);
    border-top: 1px solid rgba(255, 42, 133, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-container {
    position: relative;
    width: 48px;
    height: 48px;
}

#imagePreviewImg {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--accent-pink);
}

.remove-img-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff2a85;
    color: #fff;
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Input Bar */
.input-bar {
    padding: 14px 18px;
    background: rgba(18, 13, 28, 0.95);
    border-top: 1px solid rgba(255, 42, 133, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
}

.attach-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.attach-btn:hover {
    background: rgba(255, 42, 133, 0.2);
    border-color: var(--accent-pink);
}

.chat-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 10px 16px;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
    outline: none;
    resize: none;
    height: 42px;
    min-height: 42px;
    max-height: 115px;
    box-sizing: border-box;
    overflow-y: hidden;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, border-radius 0.15s;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 42, 133, 0.4) transparent;
}

.chat-input::-webkit-scrollbar {
    width: 4px;
}

.chat-input::-webkit-scrollbar-thumb {
    background: rgba(255, 42, 133, 0.4);
    border-radius: 4px;
}

.chat-input:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 12px var(--accent-pink-glow);
}

.chat-input.multiline {
    border-radius: 14px;
}

.ghost-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(83, 189, 235, 0.35);
    color: #53bdeb;
    font-size: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.ghost-btn:hover {
    background: rgba(83, 189, 235, 0.22);
    border-color: #53bdeb;
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(83, 189, 235, 0.45);
}

.ghost-btn:active {
    transform: scale(0.95);
}

.ghost-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    border: none;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--accent-pink-glow);
    flex-shrink: 0;
}

.send-btn:hover {
    transform: scale(1.08);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Modal / Drawer System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 2000;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 520px;
    background: #171122;
    border: 1px solid rgba(255, 42, 133, 0.35);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px var(--accent-pink-glow);
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-select, .form-input, .form-textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.form-textarea {
    min-height: 120px;
    font-family: monospace;
    font-size: 0.8rem;
    line-height: 1.4;
}

.btn-primary {
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff453a;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

/* Dataset Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
    max-height: 65vh;
    overflow-y: auto;
    padding-top: 8px;
}

.gallery-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 42, 133, 0.2);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-pink);
    box-shadow: 0 6px 20px var(--accent-pink-glow);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slides-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #ff85c0;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 42, 133, 0.3);
}

.card-info {
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* Single Slideshow Viewer Modal */
.viewer-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--accent-pink);
    border-color: transparent;
}

.slide-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#viewerSlideImg {
    max-width: 100%;
    max-height: 52vh;
    border-radius: 14px;
    object-fit: contain;
    border: 1px solid rgba(255, 42, 133, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.slide-counter {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 12px;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

/* Inter-Persona Cross-Talk Secret Bubble Styling */
.message-row.cross-talk-row {
    justify-content: center;
    margin: 12px 0;
}

.cross-talk-bubble {
    background: linear-gradient(135deg, rgba(255, 42, 133, 0.15), rgba(18, 140, 126, 0.25));
    border: 1px dashed rgba(255, 42, 133, 0.45);
    border-radius: 18px;
    padding: 12px 18px;
    max-width: 88%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 15px rgba(255, 42, 133, 0.15);
    backdrop-filter: blur(10px);
}

.cross-talk-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ff75c3;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 117, 195, 0.2);
    padding-bottom: 4px;
}

.cross-talk-content {
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.45;
}

.cross-talk-time {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: left;
    margin-top: 6px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Header Mode Badge Button */
.header-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
    backdrop-filter: blur(8px);
}

.header-mode-badge:hover {
    transform: translateY(-1px) scale(1.02);
    background: rgba(255, 255, 255, 0.14);
}

.header-mode-badge.mode-normal {
    border-color: rgba(138, 43, 226, 0.45);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.18), rgba(255, 42, 133, 0.15));
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.25);
}

.header-mode-badge.mode-normal:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 18px rgba(138, 43, 226, 0.45);
}

.header-mode-badge.mode-fast {
    border-color: rgba(0, 242, 254, 0.45);
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.18), rgba(79, 172, 254, 0.15));
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.header-mode-badge.mode-fast:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.45);
}

/* Cascade Mode Selector in Settings Modal */
.cascade-mode-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.cascade-mode-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.22s ease;
    text-align: right;
    direction: rtl;
    width: 100%;
}

.cascade-mode-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.cascade-mode-option.active {
    background: rgba(255, 42, 133, 0.12);
    border-color: var(--accent-pink);
    box-shadow: 0 0 16px rgba(255, 42, 133, 0.22);
}

.cascade-mode-option .mode-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cascade-mode-option .mode-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cascade-mode-option .mode-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #ffffff;
}

.cascade-mode-option .mode-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

@media (max-width: 600px) {
    .header-mode-badge .badge-label {
        display: none;
    }
    .header-mode-badge {
        padding: 6px 9px;
    }
}

/* Header Overdrive Badge Button */
.header-overdrive-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
    backdrop-filter: blur(8px);
}

.header-overdrive-badge:hover {
    transform: translateY(-1px) scale(1.03);
    background: rgba(255, 255, 255, 0.14);
}

.header-overdrive-badge.active {
    background: linear-gradient(135deg, #ff1a40 0%, #ff5e00 50%, #ffb700 100%);
    border-color: #ffe600;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 94, 0, 0.7);
    animation: pulseOverdrive 2.2s infinite ease-in-out;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Mixer Overdrive Button */
.mixer-overdrive-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    user-select: none;
}

.mixer-overdrive-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.02);
}

.mixer-overdrive-btn.active {
    background: linear-gradient(135deg, #ff1a40, #ff5e00);
    border-color: #ffe600;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(255, 94, 0, 0.65);
    animation: pulseOverdrive 1.8s infinite ease-in-out;
}

/* Mixer Panel in Overdrive² Mode */
.emotion-mixer-panel.overdrive-mode {
    border-right: 2px solid rgba(255, 94, 0, 0.6);
    box-shadow: 0 0 35px rgba(255, 94, 0, 0.2), inset 0 0 20px rgba(255, 26, 64, 0.08);
}

.val-badge.overdrive-active {
    background: linear-gradient(135deg, rgba(255, 26, 64, 0.35), rgba(255, 94, 0, 0.35)) !important;
    border: 1px solid rgba(255, 230, 0, 0.6) !important;
    color: #ffe600 !important;
    font-weight: 800 !important;
    text-shadow: 0 0 8px rgba(255, 150, 0, 0.8) !important;
    letter-spacing: 0.2px;
}

@keyframes pulseOverdrive {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

@media (max-width: 600px) {
    .header-overdrive-badge .od-label {
        display: none;
    }
    .header-overdrive-badge {
        padding: 6px 9px;
    }
}

/* ==========================================================================
   Security Passcode PIN Lock Screen Overlay
   ========================================================================== */

.lock-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(10, 7, 18, 0.94);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

.lock-screen-overlay.unlocked {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    pointer-events: none;
}

.lock-screen-card {
    width: 100%;
    max-width: 340px;
    background: rgba(26, 19, 40, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.15);
    border-radius: 28px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lock-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 42, 133, 0.2), rgba(157, 78, 221, 0.25));
    border: 1px solid rgba(255, 42, 133, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 0 20px rgba(255, 42, 133, 0.3);
}

.lock-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.lock-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.lock-subtitle {
    font-size: 0.82rem;
    color: #b3a5c9;
    margin-bottom: 20px;
}

/* 4 PIN Dots */
.pin-dots-container {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    transition: transform 0.1s ease;
}

.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pin-dot.filled {
    background: linear-gradient(135deg, #ff2a85, #9d4edd);
    border-color: #ff2a85;
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(255, 42, 133, 0.7);
}

.pin-dot.success {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.8);
}

.pin-dots-container.shake-error {
    animation: pinShake 0.45s ease-in-out;
}

.pin-dots-container.shake-error .pin-dot {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
}

@keyframes pinShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-12px); }
    40%, 80% { transform: translateX(12px); }
}

/* Numeric Keypad */
.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 260px;
}

.keypad-btn {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.keypad-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: scale(1.05);
}

.keypad-btn:active {
    background: rgba(255, 42, 133, 0.35);
    border-color: rgba(255, 42, 133, 0.6);
    transform: scale(0.92);
}

.keypad-btn.action-btn {
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #d1d5db;
}

.keypad-btn.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.lock-error-msg {
    min-height: 20px;
    font-size: 0.82rem;
    color: #ef4444;
    margin-top: 12px;
    font-weight: 600;
}

.lock-hint {
    font-size: 0.72rem;
    color: #71717a;
    margin-top: 4px;
}

/* ==========================================================================
   Mobile-First Responsive Layout Overhauls (Phones & Small Tablets)
   ========================================================================== */

@media (max-width: 768px) {
    html, body {
        height: 100%;
        height: 100dvh;
        min-height: 100%;
        min-height: 100dvh;
        width: 100%;
        width: 100vw;
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch !important;
        justify-content: stretch !important;
    }

    body {
        padding: 0;
        margin: 0;
    }

    .chat-app-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: none !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        align-items: stretch !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
    }

    .bg-ambient, .floating-heart {
        display: none !important;
    }

    .app-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: none !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        background: #0d0a14 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        flex: 1 !important;
        overflow: hidden !important;
    }

    /* Safe Area insets for iOS notch / Home Bar */
    .header {
        padding-top: calc(10px + env(safe-area-inset-top, 0px));
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: 10px;
        gap: 8px;
    }

    .header-actions {
        gap: 4px;
    }

    .header-actions .icon-btn {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    .profile-info .name {
        font-size: 0.95rem;
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mode-selector-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 6px 10px;
        gap: 6px;
    }

    .mode-selector-bar::-webkit-scrollbar {
        display: none;
    }

    .mode-pill {
        font-size: 0.72rem;
        padding: 4px 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .chat-messages {
        flex: 1 !important;
        padding: 8px 12px 2px 12px !important;
        gap: 6px !important;
    }

    /* Input Bar with Safe Area Bottom */
    .input-bar {
        padding-bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
        padding-top: 8px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        background: #120d1c !important;
        border-top: 1px solid rgba(255, 42, 133, 0.15) !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        gap: 6px !important;
    }

    .chat-input {
        font-size: 0.95rem !important;
        padding: 10px 14px !important;
    }

    .send-btn, .ghost-btn, .attach-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    /* Side panels as slide-over mobile drawers */
    .emotion-mixer-panel,
    .chats-drawer-panel {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        width: 86vw !important;
        max-width: 340px !important;
        border-radius: 0 !important;
        z-index: 10000 !important;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.9) !important;
    }

    .emotion-mixer-panel {
        left: 0 !important;
        border-right: 1px solid rgba(255, 42, 133, 0.4) !important;
        border-left: none !important;
    }

    .chats-drawer-panel {
        right: 0 !important;
        border-left: 1px solid rgba(157, 78, 221, 0.4) !important;
        border-right: none !important;
    }
}
